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.
fix(hub): move the interpreter-touching built-in plugins out of the runtime layer, and make the layering guard transitive (#1064)
Louis Choquel8c0b99b3acbd
diff --git a/.drift/acks/cli-docs.toml b/.drift/acks/cli-docs.tomlindex 4709b9d60..3e6909e0f 100644--- a/.drift/acks/cli-docs.toml+++ b/.drift/acks/cli-docs.toml@@ -1,8 +1,8 @@contract = "cli-docs"-digest = "sha256:22604d4351dd102437cb162b4e4a3e577b32cd43b3a1e6ee66891b8587785003"-reviewed_by = "Louis Choquel"-reviewed_at = "2026-07-28T08:47:52Z"-rationale = "Two build-output help strings changed: the 'output' group help in build/app.py advertised a 'typescript' --format value that does not exist (accepted: json|python|schema, and 'typescript' errors out), and method_cmd.py's --format help lacked the TypeScript/Zod parenthetical its pipe/bundle siblings carry. Reviewed both targets. docs/tools/cli/ WAS stale: build/index.md described the command as 'Generate example output JSON for a pipe', predating the python and schema formats — fixed to match the corrected group help. build/output.md was already accurate (all three subcommands list json/python/schema; TypeScript consistently framed as a downstream use of --format schema, not a format value) — no change needed. pipelex/cli/agent_cli/CLAUDE.md is out of scope: the agent CLI exposes no 'build' command at all, so no help text, flag, or format value there could have moved. Real catch, not a clean pass."+digest = "sha256:31a113f803c7dc57bc5254534627de1539237c78bef1a55cb5d88e7c9469830c"+reviewed_by = "Claude (Opus 5 1M context)"+reviewed_at = "2026-07-29T01:41:51Z"+rationale = "Merge-induced reopening: merging dev into refactor/Hub-2 reset this contract's baseline to dev's 2026-07-28 ack, so the whole modularity-track sweep across pipelex/cli/** re-presents as unreviewed even though three prior acks on this branch already covered it. Reviewed anyway rather than rubber-stamping. Mechanical check first: diffing all 26 triggers against dev and filtering out every changed import line leaves exactly three non-import changes, all already-reviewed branch work — the PipelexInterpreter to MthdsParser class rename, the matching PipelexInterpreterError to MthdsParserError rename (which also re-keys one AGENT_ERROR_HINTS entry), and build_registrar gaining builtin_plugins/core_unconditional_plugin_names. Both review targets carry zero references to any of those symbols or to any Python import path, so the sweep is structurally invisible to them; agent_cli/CLAUDE.md points at the AGENT_ERROR_HINTS dict by name instead of copying its keys, which is why an error-class rename cannot make it stale. Verified both sides live rather than by reading. Dev's side: 'pipelex build output --help' and the build group listing both now read 'JSON, Python, or JSON Schema', matching the docs/tools/cli/build/index.md line dev fixed in the same change. Branch side: 'pipelex-agent validate bundle <broken>.mthds --format json --error-format json' still emits error_type ValidateBundleError with MthdsParserError appearing only in error_source, exactly as agent_cli/CLAUDE.md line 24 describes that array — so the renamed class stays off the documented wire field on this channel. Nothing stale on either target."[trigger_files]"pipelex/cli/__init__.py" = "blob:8b137891791fe96927ad78e64b0aad7bded08bdc"@@ -12,7 +12,7 @@ rationale = "Two build-output help strings changed: the 'output' group help in b"pipelex/cli/agent_cli/commands/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391""pipelex/cli/agent_cli/commands/accept_gateway_terms_cmd.py" = "blob:a1fc438119dd10607252c08390ebd6384d999678""pipelex/cli/agent_cli/commands/agent_cli_factory.py" = "blob:caba5ab957e4a2bbb62e329ba6722a441dff781e"-"pipelex/cli/agent_cli/commands/agent_output.py" = "blob:8868104d882e160a5b5a95d3f6c7642499488786"+"pipelex/cli/agent_cli/commands/agent_output.py" = "blob:4bc25ac1b0f232dbbb76d4dbe179030b8c74a8e6""pipelex/cli/agent_cli/commands/bundle_path_resolver.py" = "blob:30339c5d91048f4e67312d5691ed9a65d57472e0""pipelex/cli/agent_cli/commands/check_model_cmd.py" = "blob:1d5a66d03e6fec2d8673959857ace87b78db03ac""pipelex/cli/agent_cli/commands/codegen/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"@@ -27,11 +27,11 @@ rationale = "Two build-output help strings changed: the 'output' group help in b"pipelex/cli/agent_cli/commands/fmt_cmd.py" = "blob:97d6fb6c328e0b718b1293bd6b73cba03edcb7dc""pipelex/cli/agent_cli/commands/init_cmd.py" = "blob:3ed36d13bddebbadb90272b689a15e9ebdbcabf7""pipelex/cli/agent_cli/commands/inputs/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"-"pipelex/cli/agent_cli/commands/inputs/_inputs_core.py" = "blob:09f4771b327cb6a6e5bb11b8bb07b6f63b4472d4"+"pipelex/cli/agent_cli/commands/inputs/_inputs_core.py" = "blob:d37826d96099028a1ad5dbc5cbf8ce0cfdb01e30""pipelex/cli/agent_cli/commands/inputs/app.py" = "blob:7e19284687b334c684fb03381a8d9d20af1aa152"-"pipelex/cli/agent_cli/commands/inputs/bundle_cmd.py" = "blob:535680905fd85258f4a71568d1d5eb8e36143d74"-"pipelex/cli/agent_cli/commands/inputs/method_cmd.py" = "blob:f71014584e3051ca514765631349e0dbfad3ae4c"-"pipelex/cli/agent_cli/commands/inputs/pipe_cmd.py" = "blob:038c82cf9777de5e0c87131c22ac64d910b8c897"+"pipelex/cli/agent_cli/commands/inputs/bundle_cmd.py" = "blob:886beecd4ea98d8ba2cc5b40061af4456285622d"+"pipelex/cli/agent_cli/commands/inputs/method_cmd.py" = "blob:bc5658f7549e766c5827884d3be939eda6e519fd"+"pipelex/cli/agent_cli/commands/inputs/pipe_cmd.py" = "blob:eda6ea9a683f01bcc59336b44354c3556b3fcfec""pipelex/cli/agent_cli/commands/lint_cmd.py" = "blob:91ad9cb4d618ba4c0b7da366cde2f74f38d350df""pipelex/cli/agent_cli/commands/models_cmd.py" = "blob:90d30128fe924677ee84f926fc733b2016333297""pipelex/cli/agent_cli/commands/pipe_cmd.py" = "blob:0be9fb13dbec21da0958ed66b45748291b4e5e2d"@@ -41,44 +41,44 @@ rationale = "Two build-output help strings changed: the 'output' group help in b"pipelex/cli/agent_cli/commands/run/_run_core.py" = "blob:0e211c802005719777dd08a439e83521dead57c4""pipelex/cli/agent_cli/commands/run/_run_core_api.py" = "blob:78a27e0ba91e6bbf99c11caedb29ad4cf20ac78b""pipelex/cli/agent_cli/commands/run/app.py" = "blob:64b2ecc02007cda11b526d8d3fc139593875dd9d"-"pipelex/cli/agent_cli/commands/run/bundle_cmd.py" = "blob:a8c2685cc21f195d51a768e44430f358ecc67b99"-"pipelex/cli/agent_cli/commands/run/method_cmd.py" = "blob:0cdc4b29197d84ff8a006bede7515cb1b1723a03"-"pipelex/cli/agent_cli/commands/run/pipe_cmd.py" = "blob:31ce470e603a5b28207d176a5ae2820216b199e0"+"pipelex/cli/agent_cli/commands/run/bundle_cmd.py" = "blob:78edc9a2fb9a27f4449d51a0a4f7012fde43ce1f"+"pipelex/cli/agent_cli/commands/run/method_cmd.py" = "blob:afc6ead79ebc71cb235a50c4c7f74660d1a9c2db"+"pipelex/cli/agent_cli/commands/run/pipe_cmd.py" = "blob:5e6f706722a884f1df51eb86695507d02f5b8064""pipelex/cli/agent_cli/commands/run/stdin_resolver.py" = "blob:4bc7f4e91ddb3900a75356f8f8e6ba5a586a3690""pipelex/cli/agent_cli/commands/validate/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391""pipelex/cli/agent_cli/commands/validate/_validate_core.py" = "blob:c07252202265806ebe3512370152d2ebce8a7e78""pipelex/cli/agent_cli/commands/validate/app.py" = "blob:d2d0ed19288c2d1c25be1650dd962189fcdb3b86"-"pipelex/cli/agent_cli/commands/validate/bundle_cmd.py" = "blob:31b5210e5495b8687ea7029c2d3660d25167eea7"+"pipelex/cli/agent_cli/commands/validate/bundle_cmd.py" = "blob:e6a85eb8920188c3eda4a9d8781d8f4194a9ec63""pipelex/cli/agent_cli/commands/validate/method_cmd.py" = "blob:24ddeef224fa2d88781141467ef80c414d34f77a"-"pipelex/cli/agent_cli/commands/validate/pipe_cmd.py" = "blob:ab9f230a54c865edf5b38ac1d572eee0f8aac0d3"-"pipelex/cli/bundle_target_resolution.py" = "blob:32ee80e4bf0ebaf1a81dc9ad4a08e4efe1baf9ff"+"pipelex/cli/agent_cli/commands/validate/pipe_cmd.py" = "blob:8f9aa91cdfa9a1688ce500c07dc00801737ea626"+"pipelex/cli/bundle_target_resolution.py" = "blob:8dccc50b700b877968ed1b2c1c3652ab1c32e956""pipelex/cli/cli_factory.py" = "blob:1f859ab3b995e1a67e5fdc812a168d56c338e970""pipelex/cli/commands/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391""pipelex/cli/commands/build/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391""pipelex/cli/commands/build/app.py" = "blob:0a96edab273c838aa9e0fae23646805c3a775e9d""pipelex/cli/commands/build/inputs/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"-"pipelex/cli/commands/build/inputs/_inputs_core.py" = "blob:2e91d50b6e547e76b7d429085d584e4cbc77b0df"+"pipelex/cli/commands/build/inputs/_inputs_core.py" = "blob:08b160de803a28126c1fafa1dc9fd9016d50b30d""pipelex/cli/commands/build/inputs/app.py" = "blob:2a7770c8294b8c2c1b4420ac00d6ffdfa50609bf"-"pipelex/cli/commands/build/inputs/bundle_cmd.py" = "blob:c096689e014c3a0fab000ab63abcfef99f0b4fd7"-"pipelex/cli/commands/build/inputs/method_cmd.py" = "blob:1f88399bb8b557779630472d5624e9a1f1d51c13"-"pipelex/cli/commands/build/inputs/pipe_cmd.py" = "blob:c8e0722c7cfc7ea340fd6a143211460687d19795"+"pipelex/cli/commands/build/inputs/bundle_cmd.py" = "blob:0cd99e9d307f46b8e8899bf7d5f3813563fcdf10"+"pipelex/cli/commands/build/inputs/method_cmd.py" = "blob:668e0b66e1c4df0451eeae7e57c2afac8706ad5b"+"pipelex/cli/commands/build/inputs/pipe_cmd.py" = "blob:00625740fd29837e3165d31be692e40e96065fc8""pipelex/cli/commands/build/output/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"-"pipelex/cli/commands/build/output/_output_core.py" = "blob:2df512eeaea4e87c60997612848139d63cfd7d77"+"pipelex/cli/commands/build/output/_output_core.py" = "blob:8fb53146353cc5ecc27f95cb7b1aea9eeba81e47""pipelex/cli/commands/build/output/app.py" = "blob:67996650b99551fbd58be30e692688204d16935a"-"pipelex/cli/commands/build/output/bundle_cmd.py" = "blob:a4a04ce555e0bbf2178206269fe769c13a0bd0f7"+"pipelex/cli/commands/build/output/bundle_cmd.py" = "blob:54c07aedb123eaaf2049965859e82b6d4800560d""pipelex/cli/commands/build/output/method_cmd.py" = "blob:2625da8d562ba4f66cf17890772c7a1a674c3bb9""pipelex/cli/commands/build/output/pipe_cmd.py" = "blob:eb0db8279c93fcff9d5fe4546f593d753282acb5""pipelex/cli/commands/build/runner/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"-"pipelex/cli/commands/build/runner/_runner_core.py" = "blob:c33eec4a86bc33b799e441cc205ec895194c07bb"+"pipelex/cli/commands/build/runner/_runner_core.py" = "blob:c8f2777f8d23bfde1d65d219d7bed8e82fc78721""pipelex/cli/commands/build/runner/app.py" = "blob:b5aa321ed93dc2cb9b138e4a26bae9eb75c732b7"-"pipelex/cli/commands/build/runner/bundle_cmd.py" = "blob:d18b32232d45010150cce2779242057adb8dc51a"+"pipelex/cli/commands/build/runner/bundle_cmd.py" = "blob:5b5ca0628f0595a0c3aae9b539ae4e7e0c92a853""pipelex/cli/commands/build/runner/method_cmd.py" = "blob:0f497ffcae50d89483d8cf953c6dc03599bc2a5f""pipelex/cli/commands/build/structures_cmd.py" = "blob:3c0cf372e381e8141fa49f18e261c5047df13e7c""pipelex/cli/commands/bundle_path_resolver.py" = "blob:60c6a2994c9b7c6e0ec212702467d668eecb6d50""pipelex/cli/commands/codegen/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391""pipelex/cli/commands/codegen/app.py" = "blob:9158084a89da23654e122e9df3a0a9c726401642""pipelex/cli/commands/codegen/check_cmd.py" = "blob:d73d0c73e82fa50e072058caf0ca92e52fe17b0f"-"pipelex/cli/commands/codegen/inputs_cmd.py" = "blob:9ff33033b25b61a9d4719d4d19c10c461b59ce3f"+"pipelex/cli/commands/codegen/inputs_cmd.py" = "blob:18da266c716b8c58b45ad89f85629adfbbfb67fd""pipelex/cli/commands/codegen/types_cmd.py" = "blob:1cb3b607a0269e12461e85ad1e6f19b2b3aa5584""pipelex/cli/commands/crate_loading.py" = "blob:aaf739abef2b84807483907365455ce2b8179aa6""pipelex/cli/commands/doctor_cmd.py" = "blob:3cc70c2844c48aa73b91cdf085864589f30bc7f8"@@ -104,25 +104,25 @@ rationale = "Two build-output help strings changed: the 'output' group help in b"pipelex/cli/commands/init/ui/types.py" = "blob:1361f29ca95bacc90bca90ea6c0e39f44b6734ab""pipelex/cli/commands/login/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391""pipelex/cli/commands/login/command.py" = "blob:ace1db9879626cc1722adaac12761aadaa6b24ed"-"pipelex/cli/commands/plugins_cmd.py" = "blob:4ad42bd78b117985f2d7478939e4cabc5b64dc4b"+"pipelex/cli/commands/plugins_cmd.py" = "blob:6019e102c644ff6adeee6a5b3f1423efc4af39f1""pipelex/cli/commands/resolve_cmd.py" = "blob:2233ab12b7cd5ef0bce697d9599d13a09e242dde""pipelex/cli/commands/run/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391""pipelex/cli/commands/run/_inputs_file_loader.py" = "blob:dde781f846968b667a0acfb4b3e3cea01cef7049""pipelex/cli/commands/run/_inputs_path_resolver.py" = "blob:c8ec89d98718e18af7aaaded44c9f545be60adab"-"pipelex/cli/commands/run/_run_core.py" = "blob:b258aa23453b7e552cfbc1ebe03d3b369dbfbd1a"+"pipelex/cli/commands/run/_run_core.py" = "blob:5f13d990bfa7219fa35b7ce1e5872d1b9693531c""pipelex/cli/commands/run/app.py" = "blob:a7090b0ff6bf2f1d47827fa27d2a138096a2e148"-"pipelex/cli/commands/run/bundle_cmd.py" = "blob:2c0233ff88988038cc6f4189499ef1744a9579c3"+"pipelex/cli/commands/run/bundle_cmd.py" = "blob:cb420bf4879c863d64c5e20ed535c42732b720a2""pipelex/cli/commands/run/exceptions.py" = "blob:e9552226e597922b6ac0757f7b52eb880a2e1472""pipelex/cli/commands/run/method_cmd.py" = "blob:828bd9b9c72a0e1132e54241817e388c97d9adad"-"pipelex/cli/commands/run/pipe_cmd.py" = "blob:88878cb413b406612d16140ec1b1b9bed8c90d94"+"pipelex/cli/commands/run/pipe_cmd.py" = "blob:f92fcb94e3ad55cf5aeec366a59fa7a74bcc9667""pipelex/cli/commands/show_cmd.py" = "blob:73eca220d97e0d3bac3b713b109b477b9e6fd4c8""pipelex/cli/commands/update_cmd.py" = "blob:06100ec3b9d6c66ca89a8c1536aa27983ae409ca""pipelex/cli/commands/validate/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"-"pipelex/cli/commands/validate/_validate_core.py" = "blob:4b07f6dabd7841b1502446f39077dfbb6dd805a3"+"pipelex/cli/commands/validate/_validate_core.py" = "blob:14cfbee9fc73a45fb5bc10486ced641d346e3424""pipelex/cli/commands/validate/app.py" = "blob:309061423af13f2f6c496a024306ad696af567ab""pipelex/cli/commands/validate/bundle_cmd.py" = "blob:1fbf3e0cf695db39101c83160a724df6468988e9""pipelex/cli/commands/validate/method_cmd.py" = "blob:2cb68d5c371a5b45841fce9c26da5e4622e6b042"-"pipelex/cli/commands/validate/pipe_cmd.py" = "blob:5720f3a3f4f3c555e772a2dbb335c3139ae4457e"+"pipelex/cli/commands/validate/pipe_cmd.py" = "blob:d67267571559006459628180f2c8b216ba7fee31""pipelex/cli/commands/which_cmd.py" = "blob:95fe153d65364449e26e9408c53441aa5fb4cf06""pipelex/cli/deck_notice.py" = "blob:542877125e89e35b02bc969cfee952155b0d7c2c""pipelex/cli/error_handlers.py" = "blob:ec4005ac908fac151275db3b28cc1685edd585b0"diff --git a/.drift/acks/config-docs.toml b/.drift/acks/config-docs.tomlindex 1c6b76fae..5e986c4c4 100644--- a/.drift/acks/config-docs.toml+++ b/.drift/acks/config-docs.toml@@ -1,11 +1,11 @@contract = "config-docs"-digest = "sha256:821341693eb86945913565bae7d9689c023cb0c6d60992aade1711b8c295a188"-reviewed_by = "Claude (Opus 5)"-reviewed_at = "2026-07-26T09:35:13Z"-rationale = "Trigger diff is import-path-only: config_check.py and aws_config.py each changed exactly one line, 'from pipelex.service_hub import' -> 'from pipelex.runtime_hub import', from the runtime/interpreter hub rename. Verified by diffing both files and filtering out every line naming a hub — nothing remained. No config field, default, validator, or TOML key moved. Opened and read docs/configuration/: its only reference to either trigger is aws-config.md, which documents the TOML section '[pipelex.aws_config]' and cites no Python import path anywhere in the tree. Nothing to update."+digest = "sha256:084ae3c3afbaaa6568ef8eefab258059268c202f3fb5eb4c64d1ab96fcb67b1e"+reviewed_by = "Louis Choquel"+reviewed_at = "2026-07-27T17:00:55Z"+rationale = "M2 mechanism/adapter split. Trigger diff on config_cogt.py is import-path-only: exactly four lines, pipelex.plugins.<vendor>.<vendor>_config -> pipelex.providers.<vendor>.<vendor>_config, from moving the seventeen built-in vendor adapters out of pipelex/plugins/ into pipelex/providers/. Verified by reading the staged diff in full — no config field, default, validator, TOML key, or section name changed, and the four config classes themselves were moved intact, not edited. The structural sync between configs.py and the pipelex.toml files is therefore untouched, which make tb confirms. Reviewed docs/configuration/ against the change: grepped the whole tree for pipelex.plugins, pipelex.providers, pipelex/plugins, pipelex/providers and each of the four config class names — zero hits. Those pages document TOML sections and keys ([pipelex.cogt], [pipelex.aws_config], etc.) and cite no Python import path anywhere, so an import-path move is invisible to them by construction. Nothing to update."[trigger_files]-"pipelex/cogt/config_cogt.py" = "blob:fca7b96f9147122b6b8300471cac637b05fed1ee"+"pipelex/cogt/config_cogt.py" = "blob:3c10f6a2b809e38b9a1112ce24ffb8ea4c32b04b""pipelex/cogt/img_gen/img_gen_job_components.py" = "blob:084985080413fd8d6c3b1b9b0747020cb0161858""pipelex/pipelex.toml" = "blob:e646e431b5db2e467bc962b738be7bc9f3b3ffb8""pipelex/system/configuration/__init__.py" = "blob:8b137891791fe96927ad78e64b0aad7bded08bdc"diff --git a/.drift/acks/hub-layering-convention.toml b/.drift/acks/hub-layering-convention.tomlindex 222b91dc8..6ca8e688f 100644--- a/.drift/acks/hub-layering-convention.toml+++ b/.drift/acks/hub-layering-convention.toml@@ -1,10 +1,10 @@contract = "hub-layering-convention"-digest = "sha256:236faf135b429372b9f93c0f750a55726db9e23d6dcd18943c30db7de7e131b0"-reviewed_by = "Claude (Opus 5 1M context)"-reviewed_at = "2026-07-26T17:04:11Z"-rationale = "Guard-only trigger change, and it tightens a carve-out rather than churning imports: `_is_type_checking_test` matched `ast.Attribute(attr=...)` with an unconstrained receiver, so any `settings.TYPE_CHECKING:` block claimed the layer-rule exemption while being an ordinary runtime condition. The attributed form is now rooted at `typing` (new TYPING_MODULE_NAME constant), with a test asserting three unrelated receivers stay violations; verified by mutation that reverting the predicate fails that test and nothing else. Re-ran both mechanical checks the last ack prescribes: 33 + 32 public module-level hub symbols, all still present in the doc's partition tables, and all 12 declared runtime-layer entries still named under Enforcement — neither hub module changed here, so no table could have moved. Updated the doc's TYPE_CHECKING carve-out bullet to state the receiver constraint, since as written it read as exempting any attribute merely named TYPE_CHECKING. Also refreshed the two test-module sentences in the same section, which the same change made stale: the closure test now carries a negative control (its detector lives in a dedent string that nothing lints, so a typo would make every entry point pass vacuously) plus a subprocess timeout, and the lifecycle test now pins the real `Pipelex.teardown` rather than a stand-in calling `class_registry_scoping.reset()` directly. Rest of the page re-read: the two rules, the string-literal half, the core split, Known inversions and the F1 measurement are all unaffected by this change and remain accurate."+digest = "sha256:19d8b6737dc50fdc11f754b6077ae0b41d0c3365a85b3407ab4326708b8efab4"+reviewed_by = "Louis Choquel"+reviewed_at = "2026-07-27T17:01:19Z"+rationale = "M2: pipelex/plugins/ split into the plugin mechanism (stays) and the seventeen built-in vendor adapters (now pipelex/providers/). Trigger diff on hub_layering_guard.py is the new 'pipelex.providers' entry plus a rewritten note above the tuple. Reviewed the target for real and edited five places. (1) The layer-rule enumeration under Enforcement listed seven declared packages; it now lists eight. This is the doc-enumeration rot M1 flagged, and it was in a section the diff did not otherwise touch. (2) 'Where the built-in plugins split' claimed pipelex/plugins/ is where the runtime-port adapters live — the exact sentence M2 falsifies. Rewritten to name the two splits separately, because they are routinely conflated: mechanism-vs-adapters does NOT cross a layer (both packages are runtime-layer, the split makes the one-way dependency legible), while runtime-vs-interpreter does. Added the sentence third-party plugin authors need: pipelex.plugins.contract and pipelex.plugins.registrar did not move, and the 'pipelex.plugins' entry-point group is a group identifier, not a module path. (3) The import-closure section named plugins.builtins as the entry point and justified it by history; the module is now providers.builtins, so the paragraph was rewritten to keep the history true under the old name and to state why one entry point still covers both packages. (4) Known inversions gained two bullets recording the cogt -> vendor edges as deliberate: the four config imports are accepted permanently (making vendor config sections plugin-contributed would trade the statically-typed configs.py/pipelex.toml sync for a dynamic registry), while the two img-gen factory imports are slated to move inward to a neutral cogt/img_gen/ mapping module — no registry, because dispatch is keyed on the cogt-owned AspectRatioTaxonomy and the gateway worker is one SDK spanning both taxonomies, so no provider key exists to dispatch on. (5) The fixed worked example still pointed at plugins/builtins.py; annotated with its current path. Verified the remaining claims rather than assuming: 'plugins -> runtime_bridge' still names only mechanism modules (bundle_validator_registry, orchestrator_registry, registrar — all three stayed), and the 'Why the boundary exists' must-not-name list plus the verification snippet enumerate the INTERPRETER packages, which M2 does not touch, so both are correct unchanged. Ran the three prescribed mechanical checks by script: all 8 declared packages named under Enforcement, all 27 runtime_hub and 22 interpreter_hub get_* accessors covered by the partition tables, and the matched triple (guard tuple / closure INTERPRETER_PACKAGES / doc INTERPRETER snippet) agrees. As in every prior entry the mechanical checks passed while blind to all five findings above. One defect they were also blind to, found only by reading the generated output: _SUBSYSTEM_SECTIONS in error_pages_generator.py keys on the module's SECOND segment, so every vendor error class silently reclassified from 'Inference & providers' to the fallback 'Platform & tooling' macro — the identical shape to M1's mthds_parsing regression, three weeks later, caught this time because M1's lesson was to read the gep diff rather than its exit code."[trigger_files]-"pipelex/cli/dev_cli/commands/hub_layering_guard.py" = "blob:93d985daadb6323335090caa3a1fd2ba6050496e"-"pipelex/interpreter_hub.py" = "blob:4081f279518a8ed82fe425f035a916f8053edd5c"-"pipelex/runtime_hub.py" = "blob:02f910112ad53872b2f6760bd601fdafc5161058"+"pipelex/cli/dev_cli/commands/hub_layering_guard.py" = "blob:47fef9ff0a052216b7925c6d372226aa47319fa2"+"pipelex/interpreter_hub.py" = "blob:b7ac885d348d32f1aa4b1e660da5b03533fb305b"+"pipelex/runtime_hub.py" = "blob:33fc3099cc4ab0c741fefb899bb93ee6b91c7cf7"diff --git a/.drift/acks/keyword-only-convention.toml b/.drift/acks/keyword-only-convention.tomlindex ef985a02b..ed54b4941 100644--- a/.drift/acks/keyword-only-convention.toml+++ b/.drift/acks/keyword-only-convention.toml@@ -1,8 +1,8 @@contract = "keyword-only-convention"-digest = "sha256:0814e13945bbe89a6d731218e5324ef877bcaa6354b101d409d7981b93a213fd"-reviewed_by = "Claude (Opus 5)"-reviewed_at = "2026-07-26T09:35:34Z"-rationale = "The trigger diff in keyword_only_guard.py is docstring-only: two prose references to pipelex.service_hub renamed to pipelex.runtime_hub by the runtime/interpreter rename. No guard behavior changed — no new violation kind, no registry schema change, no carve-out, no CLI flag, no change to the stdlib-only constraint the docstring describes. Opened docs/contribute/keyword-only-arguments.md: it names the presentation layer generically ('no Typer/hub import'), which stays accurate with two hubs under any name; its one worked grant example keys off pipelex/builder/build.py, not a hub module; and it carries no hardcoded grant count, so this change's registry migration (55 hub grants re-keyed from pipelex/service_hub.py and pipelex/method_hub.py to pipelex/runtime_hub.py and pipelex/interpreter_hub.py, with the ServiceHub./MethodHub. qualnames and the two set_instance param names rewritten) needed no doc edit. That migration is itself the doc's documented 'staleness is symmetric' path, exercised as specified — done before any check ran, and make cko passes. Nothing to update."+digest = "sha256:85a8ab8c560f91b16ecf54ff13835d3cc4a36e0d6a0ef17783fe5417ebbb2134"+reviewed_by = "Louis Choquel"+reviewed_at = "2026-07-28T16:26:27Z"+rationale = "FU-3 adds an unsorted-grant violation kind: subject_grants.toml's sorted-by-key order is now enforced rather than only asserted in the doc's prose (line 37), which is the invariant the modularity track broke three times unnoticed. Reviewed docs/contribute/keyword-only-arguments.md in full and updated five places — the violation-kinds table under Enforcement, the registry-order paragraph under 'Staleness is symmetric' (order is read from the raw text, since TOML declares table order insignificant, and the text scan is cross-checked against the parsed keys so an unreadable entry shape fails loudly instead of narrowing the scan), the PostToolUse hook bullet (registry order is a whole-file property the per-file path cannot see, same as dead grants), the auto-fix paragraph (which listed only grant-param-mismatch as never-rewritten and silently omitted dead-grant — pre-existing gap, closed here), and a pointer line after the top-of-page rule list, because that list is scoped to signatures and registry order is not a signature property. No new Make target: the check rides check-keyword-only into agent-check and CI. Negative-tested both failure modes against the real registry (a swapped adjacent entry, and a multi-line rationale carrying a phantom table header)."[trigger_files]-"pipelex/cli/dev_cli/commands/keyword_only_guard.py" = "blob:c1d6ae57b3814ed57eff2169109db1ddb3fe0d58"+"pipelex/cli/dev_cli/commands/keyword_only_guard.py" = "blob:e0be8c72d545db425efab586f7be5cc7e98f1e13"diff --git a/.test_durations b/.test_durationsindex f2f4e5bec..61d5c6e3b 100644--- a/.test_durations+++ b/.test_durations@@ -302,10 +302,10 @@"tests/integration/pipelex/core/memory/test_working_memory_factory.py::TestWorkingMemoryFactory::test_make_from_compact_memory_with_text_content": 1.5442846240475774,"tests/integration/pipelex/core/memory/test_working_memory_factory.py::TestWorkingMemoryFactory::test_with_specs_shapes_bare_int_to_declared_number": 0.4964213329949416,"tests/integration/pipelex/core/memory/test_working_memory_factory.py::TestWorkingMemoryFactory::test_without_specs_stays_bottom_up": 0.14732712402474135,- "tests/integration/pipelex/core/pipes/test_input_renderer_light_golden.py::TestInputRendererLightGolden::test_files_light_json_file_ish_and_structured_list": 1.37906041595852,- "tests/integration/pipelex/core/pipes/test_input_renderer_light_golden.py::TestInputRendererLightGolden::test_triage_explicit_reproduces_envelope": 1.0672540839295834,- "tests/integration/pipelex/core/pipes/test_input_renderer_light_golden.py::TestInputRendererLightGolden::test_triage_light_json_default": 3.406472750066314,- "tests/integration/pipelex/core/pipes/test_input_renderer_light_golden.py::TestInputRendererLightGolden::test_triage_light_toml_carries_concept_comments": 2.040056624042336,+ "tests/integration/pipelex/pipe_machinery/test_input_renderer_light_golden.py::TestInputRendererLightGolden::test_files_light_json_file_ish_and_structured_list": 1.37906041595852,+ "tests/integration/pipelex/pipe_machinery/test_input_renderer_light_golden.py::TestInputRendererLightGolden::test_triage_explicit_reproduces_envelope": 1.0672540839295834,+ "tests/integration/pipelex/pipe_machinery/test_input_renderer_light_golden.py::TestInputRendererLightGolden::test_triage_light_json_default": 3.406472750066314,+ "tests/integration/pipelex/pipe_machinery/test_input_renderer_light_golden.py::TestInputRendererLightGolden::test_triage_light_toml_carries_concept_comments": 2.040056624042336,"tests/integration/pipelex/core/stuffs/test_stuff_viewer_integration.py::TestStuffViewerIntegration::test_full_rendering_pipeline_structured_content": 0.010563499934505671,"tests/integration/pipelex/core/stuffs/test_stuff_viewer_integration.py::TestStuffViewerIntegration::test_full_rendering_pipeline_text_content": 0.8297511670971289,"tests/integration/pipelex/core/stuffs/test_stuff_viewer_integration.py::TestStuffViewerIntegration::test_html_contains_action_buttons": 0.007913873996585608,@@ -2794,19 +2794,19 @@"tests/unit/pipelex/cogt/img_gen/test_img_gen_args_input_images.py::TestImgGenArgsInputImages::test_none_taxonomy_with_images_raises": 0.009342790930531919,"tests/unit/pipelex/cogt/img_gen/test_img_gen_args_input_images.py::TestImgGenArgsInputImages::test_unexpected_prepped_file_type_raises_naming_provider[bfl_flux_2-Flux 2]": 0.0029288739897310734,"tests/unit/pipelex/cogt/img_gen/test_img_gen_args_input_images.py::TestImgGenArgsInputImages::test_unexpected_prepped_file_type_raises_naming_provider[gpt_image-GPT Image]": 0.002451291016768664,- "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py::TestImgGenArgsOpenAISizes::test_exact_size_below_reliability_boundary_logs_nothing": 0.15329258394194767,- "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py::TestImgGenArgsOpenAISizes::test_gpt_image_2_size_payload[landscape_16_9-2k-3072x1728]": 0.05483179207658395,- "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py::TestImgGenArgsOpenAISizes::test_gpt_image_2_size_payload[landscape_16_9-size5-2048x1152]": 0.0004891240387223661,- "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py::TestImgGenArgsOpenAISizes::test_gpt_image_2_size_payload[portrait_9_16-2k-1728x3072]": 0.05408437398727983,- "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py::TestImgGenArgsOpenAISizes::test_gpt_image_2_size_payload[square-1k-1024x1024]": 0.001124541973695159,- "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py::TestImgGenArgsOpenAISizes::test_gpt_image_2_size_payload[square-2k-2048x2048]": 0.041996499930974096,- "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py::TestImgGenArgsOpenAISizes::test_gpt_image_2_size_payload[square-None-1024x1024]": 0.6997200840269215,- "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py::TestImgGenArgsOpenAISizes::test_gpt_image_2_unsatisfiable_tiers_rejected[0.5k]": 0.00034374999813735485,- "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py::TestImgGenArgsOpenAISizes::test_gpt_image_2_unsatisfiable_tiers_rejected[4k]": 0.0003784580621868372,- "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py::TestImgGenArgsOpenAISizes::test_legacy_gpt_image_rejects_other_tiers": 0.000716291950084269,- "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py::TestImgGenArgsOpenAISizes::test_legacy_gpt_image_tier_1k_maps_to_fixed_size": 0.00021537404973059893,- "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py::TestImgGenArgsOpenAISizes::test_tier_derived_reliability_note_is_verbose": 0.0010218749521300197,- "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py::TestImgGenArgsOpenAISizes::test_user_exact_size_reliability_warning_stays_loud": 0.0005988749908283353,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.py::TestImgGenArgsGptSizes::test_exact_size_below_reliability_boundary_logs_nothing": 0.15329258394194767,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.py::TestImgGenArgsGptSizes::test_gpt_image_2_size_payload[landscape_16_9-2k-3072x1728]": 0.05483179207658395,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.py::TestImgGenArgsGptSizes::test_gpt_image_2_size_payload[landscape_16_9-size5-2048x1152]": 0.0004891240387223661,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.py::TestImgGenArgsGptSizes::test_gpt_image_2_size_payload[portrait_9_16-2k-1728x3072]": 0.05408437398727983,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.py::TestImgGenArgsGptSizes::test_gpt_image_2_size_payload[square-1k-1024x1024]": 0.001124541973695159,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.py::TestImgGenArgsGptSizes::test_gpt_image_2_size_payload[square-2k-2048x2048]": 0.041996499930974096,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.py::TestImgGenArgsGptSizes::test_gpt_image_2_size_payload[square-None-1024x1024]": 0.6997200840269215,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.py::TestImgGenArgsGptSizes::test_gpt_image_2_unsatisfiable_tiers_rejected[0.5k]": 0.00034374999813735485,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.py::TestImgGenArgsGptSizes::test_gpt_image_2_unsatisfiable_tiers_rejected[4k]": 0.0003784580621868372,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.py::TestImgGenArgsGptSizes::test_legacy_gpt_image_rejects_other_tiers": 0.000716291950084269,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.py::TestImgGenArgsGptSizes::test_legacy_gpt_image_tier_1k_maps_to_fixed_size": 0.00021537404973059893,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.py::TestImgGenArgsGptSizes::test_tier_derived_reliability_note_is_verbose": 0.0010218749521300197,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.py::TestImgGenArgsGptSizes::test_user_exact_size_reliability_warning_stays_loud": 0.0005988749908283353,"tests/unit/pipelex/cogt/img_gen/test_img_gen_args_prompt_and_output.py::TestImgGenArgsPromptAndOutput::test_background_available_emits_background_value[auto-auto]": 0.0009075409616343677,"tests/unit/pipelex/cogt/img_gen/test_img_gen_args_prompt_and_output.py::TestImgGenArgsPromptAndOutput::test_background_available_emits_background_value[opaque-opaque]": 0.00032158195972442627,"tests/unit/pipelex/cogt/img_gen/test_img_gen_args_prompt_and_output.py::TestImgGenArgsPromptAndOutput::test_background_available_emits_background_value[transparent-transparent]": 0.000345249951351434,@@ -3789,37 +3789,37 @@"tests/unit/pipelex/cogt/usage/test_usage_cost.py::TestComputeTokensUsageCost::test_parity_with_cost_registry_per_record[llm]": 0.00036329205613583326,"tests/unit/pipelex/cogt/usage/test_usage_cost.py::TestComputeTokensUsageCost::test_parity_with_cost_registry_per_record[search]": 0.00038979091914370656,"tests/unit/pipelex/cogt/usage/test_usage_cost.py::TestComputeTokensUsageCost::test_rated_cost_value": 0.0004501670482568443,- "tests/unit/pipelex/core/bundles/test_elaboration_metadata.py::TestElaborationMetadata::test_bundle_dump_excludes_elaboration_metadata": 0.0024202080094255507,- "tests/unit/pipelex/core/bundles/test_elaboration_metadata.py::TestElaborationMetadata::test_bundle_round_trip_drops_elaboration_metadata": 0.10196045902557671,- "tests/unit/pipelex/core/bundles/test_elaboration_metadata.py::TestElaborationMetadata::test_get_elaboration_for_returns_metadata": 0.0005203740438446403,- "tests/unit/pipelex/core/bundles/test_elaboration_metadata.py::TestElaborationMetadata::test_get_elaboration_for_returns_none_when_unknown": 0.0005772091099061072,- "tests/unit/pipelex/core/bundles/test_elaboration_metadata.py::TestElaborationMetadata::test_get_elaboration_for_returns_none_when_user_authored": 0.0008032090263441205,- "tests/unit/pipelex/core/bundles/test_elaboration_metadata.py::TestElaborationMetadata::test_round_trip_through_dump_and_validate": 0.8568641659803689,- "tests/unit/pipelex/core/bundles/test_pipe_sorter.py::TestSortPipesByDependencies::test_circular_dependency_error_carries_domain_code": 0.1093643760541454,- "tests/unit/pipelex/core/bundles/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[circular_dependency-pipes6-None-PipeValidationError]": 0.0013173330225981772,- "tests/unit/pipelex/core/bundles/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[complex_nested-pipes9-expected_order9-None]": 0.00042387499706819654,- "tests/unit/pipelex/core/bundles/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[diamond_pattern-pipes2-None-None]": 0.0009512079996056855,- "tests/unit/pipelex/core/bundles/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[image_inversion-pipes8-expected_order8-None]": 0.000937459000851959,- "tests/unit/pipelex/core/bundles/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[missing_dependency-pipes7-expected_order7-None]": 0.0008477490046061575,- "tests/unit/pipelex/core/bundles/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[multiple_chains-pipes3-expected_order3-None]": 0.00197479099733755,- "tests/unit/pipelex/core/bundles/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[no_dependencies-pipes0-expected_order0-None]": 0.6456781250890344,- "tests/unit/pipelex/core/bundles/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[pipe_batch-pipes4-expected_order4-None]": 0.0005056659574620426,- "tests/unit/pipelex/core/bundles/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[pipe_condition-pipes5-expected_order5-None]": 0.0004450410488061607,- "tests/unit/pipelex/core/bundles/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[simple_chain-pipes1-expected_order1-None]": 0.00047858298057690263,- "tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_concept_ref_in_structure": 0.00040604296373203397,- "tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_concept_with_multiplicity": 0.0007978330831974745,- "tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_declared_concept_in_refines": 0.0006657909834757447,- "tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_declared_local_concept_in_pipe_input": 0.001946750096976757,- "tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_declared_local_concept_in_pipe_output": 0.001336792076472193,- "tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_external_domain_concept_ref": 0.0007269149646162987,- "tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_hierarchical_domain_concept_ref_output": 0.0005596659611910582,- "tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_hierarchical_domain_external_concept_ref": 0.08855716598918661,- "tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_item_concept_ref_in_structure": 0.0003057920257560909,- "tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_native_concept_in_pipe_input": 0.001558333053253591,- "tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_native_concept_in_pipe_output": 0.6012131670140661,- "tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_native_concept_in_refines": 0.0007308330968953669,- "tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_native_concept_with_domain_prefix": 0.0011017919168807566,- "tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_same_domain_concept_ref_declared": 0.000619333004578948,+ "tests/unit/pipelex/mthds_parsing/test_elaboration_metadata.py::TestElaborationMetadata::test_bundle_dump_excludes_elaboration_metadata": 0.0024202080094255507,+ "tests/unit/pipelex/mthds_parsing/test_elaboration_metadata.py::TestElaborationMetadata::test_bundle_round_trip_drops_elaboration_metadata": 0.10196045902557671,+ "tests/unit/pipelex/mthds_parsing/test_elaboration_metadata.py::TestElaborationMetadata::test_get_elaboration_for_returns_metadata": 0.0005203740438446403,+ "tests/unit/pipelex/mthds_parsing/test_elaboration_metadata.py::TestElaborationMetadata::test_get_elaboration_for_returns_none_when_unknown": 0.0005772091099061072,+ "tests/unit/pipelex/mthds_parsing/test_elaboration_metadata.py::TestElaborationMetadata::test_get_elaboration_for_returns_none_when_user_authored": 0.0008032090263441205,+ "tests/unit/pipelex/mthds_parsing/test_elaboration_metadata.py::TestElaborationMetadata::test_round_trip_through_dump_and_validate": 0.8568641659803689,+ "tests/unit/pipelex/mthds_parsing/test_pipe_sorter.py::TestSortPipesByDependencies::test_circular_dependency_error_carries_domain_code": 0.1093643760541454,+ "tests/unit/pipelex/mthds_parsing/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[circular_dependency-pipes6-None-PipeValidationError]": 0.0013173330225981772,+ "tests/unit/pipelex/mthds_parsing/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[complex_nested-pipes9-expected_order9-None]": 0.00042387499706819654,+ "tests/unit/pipelex/mthds_parsing/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[diamond_pattern-pipes2-None-None]": 0.0009512079996056855,+ "tests/unit/pipelex/mthds_parsing/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[image_inversion-pipes8-expected_order8-None]": 0.000937459000851959,+ "tests/unit/pipelex/mthds_parsing/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[missing_dependency-pipes7-expected_order7-None]": 0.0008477490046061575,+ "tests/unit/pipelex/mthds_parsing/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[multiple_chains-pipes3-expected_order3-None]": 0.00197479099733755,+ "tests/unit/pipelex/mthds_parsing/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[no_dependencies-pipes0-expected_order0-None]": 0.6456781250890344,+ "tests/unit/pipelex/mthds_parsing/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[pipe_batch-pipes4-expected_order4-None]": 0.0005056659574620426,+ "tests/unit/pipelex/mthds_parsing/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[pipe_condition-pipes5-expected_order5-None]": 0.0004450410488061607,+ "tests/unit/pipelex/mthds_parsing/test_pipe_sorter.py::TestSortPipesByDependencies::test_sort_pipes_by_dependencies[simple_chain-pipes1-expected_order1-None]": 0.00047858298057690263,+ "tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_concept_ref_in_structure": 0.00040604296373203397,+ "tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_concept_with_multiplicity": 0.0007978330831974745,+ "tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_declared_concept_in_refines": 0.0006657909834757447,+ "tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_declared_local_concept_in_pipe_input": 0.001946750096976757,+ "tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_declared_local_concept_in_pipe_output": 0.001336792076472193,+ "tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_external_domain_concept_ref": 0.0007269149646162987,+ "tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_hierarchical_domain_concept_ref_output": 0.0005596659611910582,+ "tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_hierarchical_domain_external_concept_ref": 0.08855716598918661,+ "tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_item_concept_ref_in_structure": 0.0003057920257560909,+ "tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_native_concept_in_pipe_input": 0.001558333053253591,+ "tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_native_concept_in_pipe_output": 0.6012131670140661,+ "tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_native_concept_in_refines": 0.0007308330968953669,+ "tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_native_concept_with_domain_prefix": 0.0011017919168807566,+ "tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py::TestPipelexBundleBlueprintConceptConstruction::test_valid_same_domain_concept_ref_declared": 0.000619333004578948,"tests/unit/pipelex/core/concepts/concept_blueprint/test_concept_blueprint.py::TestConceptStructureBlueprintValidation::test_concept_rejects_field_names_that_are_not_python_identifiers[2fast]": 0.00034566596150398254,"tests/unit/pipelex/core/concepts/concept_blueprint/test_concept_blueprint.py::TestConceptStructureBlueprintValidation::test_concept_rejects_field_names_that_are_not_python_identifiers[class]": 0.0006220829673111439,"tests/unit/pipelex/core/concepts/concept_blueprint/test_concept_blueprint.py::TestConceptStructureBlueprintValidation::test_concept_rejects_field_names_that_are_not_python_identifiers[not-valid]": 0.0003867910127155483,@@ -4159,78 +4159,78 @@"tests/unit/pipelex/core/domains/test_domain_validation.py::TestDomainValidation::test_is_domain_code_valid[my_lib->legal.contracts-True]": 0.0018799579702317715,"tests/unit/pipelex/core/domains/test_domain_validation.py::TestDomainValidation::test_is_domain_code_valid[native-True]": 0.0005444170092232525,"tests/unit/pipelex/core/domains/test_domain_validation.py::TestDomainValidation::test_is_domain_code_valid[scoring_lib->scoring-True]": 0.0005918740062043071,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_elaborates_preliminary_text_to_three_pipes": 0.0015175420558080077,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_empty_pipe_dict_short_circuits": 0.0010860000038519502,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_image_input_only_on_step_1": 0.0009451259975321591,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_main_pipe_still_resolves_after_elaboration": 0.0008610409568063915,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_model_to_structure_none_yields_step_2_default": 0.08221833396237344,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_model_to_structure_propagates_to_step_2": 0.0008667910587973893,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_short_circuits_when_no_preliminary_text": 0.6289397919899784,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_step1_output_is_always_single_text[Foo-Text]": 0.002056084049399942,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_step1_output_is_always_single_text[Foo[3]-Text]": 0.001637666893657297,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_step1_output_is_always_single_text[Foo[]-Text]": 0.0009355840156786144,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_synthetic_name_collision_raises": 0.0006544169737026095,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_text_output_caught_by_elaborator_defense_in_depth": 0.0012128330999985337,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_text_output_rejected_at_blueprint_construction[Text[2]]": 0.0008235421264544129,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_text_output_rejected_at_blueprint_construction[Text[]]": 0.0011417509522289038,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_text_output_rejected_at_blueprint_construction[Text]": 0.0005496240337379277,- "tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py::TestBundleElaborator::test_text_output_rejected_at_blueprint_construction[native.Text]": 0.0007593340706080198,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[double_dot_domain-domain = \"legal..contracts\"\\ndescription = \"Domain with double dots\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-PipelexInterpreterError]": 0.09161079191835597,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[duplicate_keys-domain = \"test_domain\"\\ndescription = \"First definition\"\\ndescription = \"Duplicate definition key\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-PipelexInterpreterError]": 0.04448758403304964,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[empty_domain-domain = \"\"\\ndescription = \"Domain with empty string\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-PipelexInterpreterError]": 0.10516245797043666,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[invalid_array_syntax-domain = \"test_domain\"\\ndescription = \"Domain with invalid array syntax\"\\n\\n[concept]\\nTestConcept = [\"Unclosed array\"\\n-PipelexInterpreterError]": 0.06369008292676881,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[invalid_array_syntax-domain = \"test_domain\"\\ndescription = \"Domain with invalid array syntax\"\\n\\n[concept]\\n[concept]\\n-PipelexInterpreterError]": 0.06548895698506385,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[invalid_domain_name-domain = \"invalid-domain-with-hyphens\"\\ndescription = \"Domain with invalid characters\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-PipelexInterpreterError]": 0.09293108305428177,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[invalid_escape_sequence-domain = \"test_domain\"\\ndescription = \"Domain with invalid escape sequence \\\\z\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-PipelexInterpreterError]": 0.03853424999397248,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[invalid_mthds_syntax-domain = \"test_domain\"\\ndescription = \"Domain with invalid MTHDS syntax\"\\n\\n[concept]\\nInvalidConcept = \"This is missing a closing quote-PipelexInterpreterError]": 0.04861650004750118,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[invalid_nested_section-domain = \"test_domain\"\\ndescription = \"Domain with invalid nested section\"\\n\\n[invalid_section]\\nsome_key = \"This section is not allowed\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-PipelexInterpreterError]": 0.09739579097367823,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[invalid_root_key-domain = \"test_domain\"\\ndescription = \"Domain with invalid root key\"\\ninvalid_root_key = \"This key should not be allowed at root level\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-PipelexInterpreterError]": 0.12008549907477573,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[invalid_table_syntax-domain = \"test_domain\"\\ndescription = \"Domain with invalid table syntax\"\\n\\n[concept.]\\nInvalidName = \"Empty table name\"\\n-PipelexInterpreterError]": 0.05110912397503853,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[leading_dot_domain-domain = \".legal\"\\ndescription = \"Domain with leading dot\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-PipelexInterpreterError]": 0.10110308404546231,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[malformed_section-domain = \"test_domain\"\\ndescription = \"Domain with malformed section\"\\n\\n[concept\\nTestConcept = \"Missing closing bracket\"\\n-PipelexInterpreterError]": 0.04173587408149615,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[missing_domain-# Missing required domain field\\ndescription = \"Domain without domain field\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-PipelexInterpreterError]": 0.07675287494203076,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[multiple_invalid_root_keys-domain = \"test_domain\"\\ndescription = \"Domain with multiple invalid root keys\"\\ninvalid_key_1 = \"First invalid key\"\\ninvalid_key_2 = \"Second invalid key\"\\nunknown_field = \"Another unknown field\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-PipelexInterpreterError]": 0.1837619169964455,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[unclosed_string-domain = \"test_domain\"\\ndescription = \"Domain with unclosed string\\n-PipelexInterpreterError]": 0.04563762398902327,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[wrong_type_for_concept_section-domain = \"test_domain\"\\ndescription = \"Domain with wrong type for concept\"\\nconcept = \"should_be_dict_not_string\"\\n-PipelexInterpreterError]": 0.06967087503289804,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[wrong_type_for_definition-domain = \"test_domain\"\\ndescription = 456\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-PipelexInterpreterError]": 0.07637099892599508,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[wrong_type_for_domain-domain = 123\\ndescription = \"Domain should be string, not number\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-PipelexInterpreterError]": 0.09686174901435152,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_invalid_mthds_should_raise_exception[wrong_type_for_pipe_section-domain = \"test_domain\"\\ndescription = \"Domain with wrong type for pipe\"\\npipe = \"should_be_dict_not_string\"\\n-PipelexInterpreterError]": 0.07634849904570729,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[complex_pipes-domain = \"complex_domain\"\\ndescription = \"Domain with multiple pipe types\"\\n\\n[concept]\\nInputData = \"Input data concept\"\\nProcessedData = \"Processed data concept\"\\n\\n[pipe.llm_pipe]\\ntype = \"PipeLLM\"\\ndescription = \"Generate content\"\\ninputs = { data = \"InputData\" }\\noutput = \"ProcessedData\"\\nprompt = \"Process this data: $data\"\\n\\n[pipe.sequence_pipe]\\ntype = \"PipeSequence\"\\ndescription = \"Sequential processing\"\\ninputs = { input_data = \"InputData\" }\\noutput = \"ProcessedData\"\\nsteps = [\\n { pipe = \"llm_pipe\", result = \"llm_result\" },\\n { pipe = \"final_step\", result = \"final_output\" },\\n]\\n-expected_blueprint30]": 0.010902749898377806,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[concepts_with_named_structures-domain = \"named_structures\"\\ndescription = \"Domain with concepts using named structure references\"\\n\\n[concept]\\nBasicInfo = \"Basic information concept\"\\n\\n[concept.ProductInfo]\\ndescription = \"Information about a product\"\\nstructure = \"ProductData\"\\n\\n[concept.OrderInfo]\\ndescription = \"Information about an order\"\\nstructure = \"OrderData\"\\n-expected_blueprint5]": 0.006791624997276813,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[concepts_with_refines-domain = \"refining_concepts\"\\ndescription = \"Domain with concepts that refine others\"\\n\\n[concept]\\nConcept1 = \"A concept1\"\\nConcept2 = \"A concept2\"\\n\\n[concept.Concept3]\\ndescription = \"A concept3\"\\nrefines = \"Image\"\\n-expected_blueprint6]": 0.004387624037917703,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[concepts_with_structures-domain = \"structured_concepts\"\\ndescription = \"Domain with structured concepts\"\\n\\n[concept]\\nSimpleData = \"Simple data concept\"\\n\\n[concept.PersonInfo]\\ndescription = \"Information about a person\"\\n\\n[concept.PersonInfo.structure]\\nname = \"The name of the person\"\\nage = { type = \"number\", description = \"The age of the person\", required = true }\\nbirthdate = { type = \"date\", description = \"The birthdate of the person\", required = true }\\n-expected_blueprint4]": 0.01067945803515613,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[deep_hierarchical_domain-domain = \"legal.contracts.shareholder\"\\ndescription = \"A deeply nested hierarchical domain\"\\n-expected_blueprint3]": 0.0030602909973822534,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[domain_with_system_prompts-domain = \"system_prompt_test\"\\ndescription = \"A domain with system prompts\"\\nsystem_prompt = \"You are an expert assistant\"\\n-expected_blueprint1]": 0.0027598750311881304,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[empty_concepts-domain = \"empty_concepts\"\\ndescription = \"Domain with empty concept section\"\\n-expected_blueprint8]": 0.004872584016993642,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[hierarchical_domain-domain = \"legal.contracts\"\\ndescription = \"A hierarchical domain for legal contracts\"\\n-expected_blueprint2]": 0.003268458996899426,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_batch-domain = \"test_pipes\"\\ndescription = \"Domain with batch pipe\"\\n\\n[concept]\\nItem = \"Item concept\"\\nProcessedData = \"Processed data concept\"\\n\\n[pipe.batch_process]\\ntype = \"PipeBatch\"\\ndescription = \"Process items in batch\"\\ninputs = { items = \"Item[]\" }\\noutput = \"ProcessedData\"\\nbranch_pipe_code = \"process_item\"\\ninput_list_name = \"items\"\\ninput_item_name = \"current_item\"\\n-expected_blueprint29]": 0.005294916976708919,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_compose-domain = \"test_pipes\"\\ndescription = \"Domain with template processing pipe\"\\n\\n[pipe.compose_output]\\ntype = \"PipeCompose\"\\ndescription = \"Process a Jinja2 template\"\\ninputs = { name = \"Text\" }\\noutput = \"Text\"\\n\\n[pipe.compose_output.template]\\ntemplate = \"Hello {{ name }}!\"\\ncategory = \"markdown\"\\n-expected_blueprint24]": 0.007597665011417121,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_compose_without_category-domain = \"test_pipes\"\\ndescription = \"Domain with template processing pipe\"\\n\\n[pipe.process_template]\\ntype = \"PipeCompose\"\\ndescription = \"Process a Jinja2 template\"\\ninputs = { name = \"Text\" }\\noutput = \"Text\"\\ntemplate = \"Hello {{ name }}!\"\\n-expected_blueprint23]": 0.007031373912468553,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_condition-domain = \"test_pipes\"\\ndescription = \"Domain with conditional pipe\"\\n\\n[concept]\\nProcessedData = \"Processed data concept\"\\n\\n[pipe.conditional_process]\\ntype = \"PipeCondition\"\\ndescription = \"Process based on condition\"\\noutput = \"ProcessedData\"\\nexpression = \"input_data.category\"\\noutcomes = { small = \"process_small\", large = \"process_large\" }\\ndefault_outcome = \"continue\"\\n-expected_blueprint27]": 0.005184125038795173,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_extract-domain = \"test_pipes\"\\ndescription = \"Domain with extract pipe\"\\n\\n[pipe.extract_text]\\ntype = \"PipeExtract\"\\ndescription = \"Extract text from document\"\\ninputs = { document = \"Document\" }\\noutput = \"Page[]\"\\nmodel = \"$extract-testing\"\\n-expected_blueprint20]": 0.005921749980188906,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_func-domain = \"test_pipes\"\\ndescription = \"Domain with function pipe\"\\n\\n[concept]\\nProcessedData = \"Processed data concept\"\\n\\n[pipe.process_data]\\ntype = \"PipeFunc\"\\ndescription = \"Process data with function\"\\noutput = \"ProcessedData\"\\nfunction_name = \"process_data_function\"\\n-expected_blueprint21]": 0.031992167059797794,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_img_gen-domain = \"test_pipes\"\\ndescription = \"Domain with image generation pipe\"\\n\\n[pipe.generate_image]\\ntype = \"PipeImgGen\"\\ndescription = \"Generate an image from a prompt\"\\noutput = \"Image\"\\nprompt = \"A beautiful landscape\"\\n-expected_blueprint22]": 0.008465124992653728,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_llm_basic-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.generate_text]\\ntype = \"PipeLLM\"\\ndescription = \"Generate text using LLM\"\\noutput = \"Text\"\\nprompt = \"Generate a story about a programmer\"\\n-expected_blueprint9]": 0.006067291949875653,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_llm_boolean_multiplicity-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[concept]\\nDocumentSummary = \"Summary of a document\"\\n\\n[pipe.analyze_documents]\\ntype = \"PipeLLM\"\\ndescription = \"Analyze multiple documents and single query\"\\ninputs = { documents = \"Text[]\", query = \"Text\" }\\noutput = \"DocumentSummary\"\\nprompt = \"\"\"\\nAnalyze these documents based on the query: $query\\n\\nDocuments:\\n@documents\\n\"\"\"\\n-expected_blueprint19]": 0.005329290986992419,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_llm_dynamic_multiple-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.brainstorm_solutions]\\ntype = \"PipeLLM\"\\ndescription = \"Brainstorm multiple solutions\"\\ninputs = { problem = \"Text\" }\\noutput = \"Text[]\"\\nprompt = \"Brainstorm solutions for this problem: $problem\"\\n-expected_blueprint14]": 0.006182332988828421,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_llm_fixed_prompt-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.simple_generation]\\ntype = \"PipeLLM\"\\ndescription = \"Simple text generation with fixed prompt\"\\noutput = \"Text\"\\nprompt = \"Write a haiku about programming\"\\n-expected_blueprint16]": 0.00710199901368469,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_llm_multiple_outputs-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.generate_ideas]\\ntype = \"PipeLLM\"\\ndescription = \"Generate multiple ideas\"\\noutput = \"Text[3]\"\\nprompt = \"Generate creative ideas for a mobile app\"\\n-expected_blueprint13]": 0.005045960017014295,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_llm_structured_output-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[concept]\\nPersonInfo = \"Information about a person\"\\n\\n[pipe.extract_person_info]\\ntype = \"PipeLLM\"\\ndescription = \"Extract structured person information\"\\ninputs = { text = \"Text[1]\" }\\noutput = \"PersonInfo\"\\nprompt = \"Extract person information from this text: $text\"\\n-expected_blueprint18]": 0.009351041982881725,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_llm_system_template-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.contextual_analysis]\\ntype = \"PipeLLM\"\\ndescription = \"Analysis with dynamic system prompt\"\\ninputs = { expertise_level = \"Text\", content = \"Text\" }\\noutput = \"Text\"\\nsystem_prompt = \"You are an expert with $expertise_level level knowledge\"\\nprompt = \"Analyze this content: $content\"\\n-expected_blueprint17]": 0.005526499997358769,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_llm_vision-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.analyze_image]\\ntype = \"PipeLLM\"\\ndescription = \"Analyze image content\"\\ninputs = { image = \"Image\" }\\noutput = \"Text\"\\nprompt = \"Describe what you see in this image in detail: $image\"\\n-expected_blueprint15]": 0.005018666968680918,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_llm_with_inputs-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.extract_info]\\ntype = \"PipeLLM\"\\ndescription = \"Extract information from text\"\\ninputs = { text = \"Text\", topic = \"Text\" }\\noutput = \"Text\"\\nprompt = \"\"\"\\nExtract information about $topic from this text:\\n\\n@text\\n\"\"\"\\n-expected_blueprint10]": 0.005694832012522966,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_llm_with_long_prompt-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.expert_analysis]\\ntype = \"PipeLLM\"\\ndescription = \"Expert analysis with system prompt\"\\ninputs = { extracted_text = \"Text\" }\\noutput = \"Text\"\\nprompt = \"\"\"\\nExtract all articles/items from this invoice text: $extracted_text. For each item find: item name, quantity, unit price, total price, description, and product code if\\n available. Return each article as separate structured data.\\n\"\"\"\\n-expected_blueprint12]": 0.00644441694021225,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_llm_with_system_prompt-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.expert_analysis]\\ntype = \"PipeLLM\"\\ndescription = \"Expert analysis with system prompt\"\\noutput = \"Text\"\\nsystem_prompt = \"You are a data analysis expert with 20 years of experience\"\\nprompt = \"Analyze the following data and provide insights\"\\n-expected_blueprint11]": 0.006591500015929341,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_parallel-domain = \"test_pipes\"\\ndescription = \"Domain with parallel pipe\"\\n\\n[concept]\\nProcessedData = \"Processed data concept\"\\n\\n[pipe.parallel_process]\\ntype = \"PipeParallel\"\\ndescription = \"PipeParallel example in PIPE_PARALLEL_TEST_CASES\"\\noutput = \"ProcessedData\"\\nbranches = [\\n { pipe = \"process_a\", result = \"result_a\" },\\n { pipe = \"process_b\", result = \"result_b\" },\\n]\\nadd_each_output = true\\n-expected_blueprint28]": 0.008586832962464541,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_sequence-domain = \"test_pipes\"\\ndescription = \"Domain with sequence pipe\"\\n\\n[concept]\\nProcessedData = \"Processed data concept\"\\n\\n[pipe.process_sequence]\\ntype = \"PipeSequence\"\\ndescription = \"Process data in sequence\"\\noutput = \"ProcessedData\"\\nsteps = [\\n { pipe = \"step1\", result = \"intermediate1\" },\\n { pipe = \"step2\", result = \"final_result\" },\\n]\\n-expected_blueprint25]": 0.008014751074369997,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[pipe_sequence_with_cross_domain_ref-domain = \"orchestration\"\\ndescription = \"Domain with cross-domain pipe ref in sequence\"\\n\\n[pipe.orchestrate]\\ntype = \"PipeSequence\"\\ndescription = \"Orchestrate with cross-domain pipe\"\\noutput = \"Text\"\\nsteps = [\\n { pipe = \"scoring.compute_score\", result = \"score\" },\\n { pipe = \"format_result\", result = \"final\" },\\n]\\n-expected_blueprint26]": 0.006797291978728026,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[simple_concept-domain = \"simple_concept\"\\ndescription = \"A simple concept\"\\n\\n[concept]\\nConcept1 = \"A concept\"\\nConcept2 = \"A concept\"\\n-expected_blueprint7]": 0.002947458007838577,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_make_pipelex_bundle_blueprint[simple_domain-domain = \"simple_test\"\\ndescription = \"A simple test domain\"\\n-expected_blueprint0]": 0.6487686650361866,- "tests/unit/pipelex/core/interpreter/test_interpreter.py::TestPipelexInterpreter::test_toml_syntax_error_carries_mthds_source": 0.08450033393455669,- "tests/unit/pipelex/core/interpreter/test_interpreter_preliminary_text.py::TestInterpreterPreliminaryText::test_mthds_with_preliminary_text_elaborates_end_to_end": 0.8978004579548724,- "tests/unit/pipelex/core/interpreter/test_interpreter_preliminary_text.py::TestInterpreterPreliminaryText::test_mthds_without_preliminary_text_is_unchanged": 0.10391195700503886,- "tests/unit/pipelex/core/interpreter/test_validation_error_categorizer.py::TestBlueprintValidationErrorCategorizer::test_wrapped_batch_collision_keeps_its_error_type[pipe_batch-\\ndomain = \"batch_collision\"\\ndescription = \"PipeBatch input-name collision\"\\n\\n[concept]\\nItem = \"an item\"\\nResult = \"a result\"\\n\\n[pipe.run_batch]\\ntype = \"PipeBatch\"\\ndescription = \"Batch over items\"\\ninputs = { items = \"Item[]\" }\\noutput = \"Result[]\"\\nbranch_pipe_code = \"process_item\"\\ninput_list_name = \"items\"\\ninput_item_name = \"items\"\\n-run_batch-batch_collision]": 0.6139054580708034,- "tests/unit/pipelex/core/interpreter/test_validation_error_categorizer.py::TestBlueprintValidationErrorCategorizer::test_wrapped_batch_collision_keeps_its_error_type[sub_pipe_sequence_step-\\ndomain = \"subpipe_collision\"\\ndescription = \"SubPipe batch_over/batch_as collision\"\\n\\n[concept]\\nItem = \"an item\"\\nResult = \"a result\"\\n\\n[pipe.run_seq]\\ntype = \"PipeSequence\"\\ndescription = \"Sequence that batches a step over its own name\"\\ninputs = { items = \"Item[]\" }\\noutput = \"Result\"\\nsteps = [\\n { pipe = \"process_one\", batch_over = \"items\", batch_as = \"items\", result = \"results\" },\\n]\\n-run_seq-subpipe_collision]": 0.13113500096369535,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_elaborates_preliminary_text_to_three_pipes": 0.0015175420558080077,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_empty_pipe_dict_short_circuits": 0.0010860000038519502,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_image_input_only_on_step_1": 0.0009451259975321591,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_main_pipe_still_resolves_after_elaboration": 0.0008610409568063915,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_model_to_structure_none_yields_step_2_default": 0.08221833396237344,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_model_to_structure_propagates_to_step_2": 0.0008667910587973893,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_short_circuits_when_no_preliminary_text": 0.6289397919899784,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_step1_output_is_always_single_text[Foo-Text]": 0.002056084049399942,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_step1_output_is_always_single_text[Foo[3]-Text]": 0.001637666893657297,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_step1_output_is_always_single_text[Foo[]-Text]": 0.0009355840156786144,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_synthetic_name_collision_raises": 0.0006544169737026095,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_text_output_caught_by_elaborator_defense_in_depth": 0.0012128330999985337,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_text_output_rejected_at_blueprint_construction[Text[2]]": 0.0008235421264544129,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_text_output_rejected_at_blueprint_construction[Text[]]": 0.0011417509522289038,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_text_output_rejected_at_blueprint_construction[Text]": 0.0005496240337379277,+ "tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py::TestBundleElaborator::test_text_output_rejected_at_blueprint_construction[native.Text]": 0.0007593340706080198,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[double_dot_domain-domain = \"legal..contracts\"\\ndescription = \"Domain with double dots\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-MthdsParserError]": 0.09161079191835597,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[duplicate_keys-domain = \"test_domain\"\\ndescription = \"First definition\"\\ndescription = \"Duplicate definition key\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-MthdsParserError]": 0.04448758403304964,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[empty_domain-domain = \"\"\\ndescription = \"Domain with empty string\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-MthdsParserError]": 0.10516245797043666,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[invalid_array_syntax-domain = \"test_domain\"\\ndescription = \"Domain with invalid array syntax\"\\n\\n[concept]\\nTestConcept = [\"Unclosed array\"\\n-MthdsParserError]": 0.06369008292676881,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[invalid_array_syntax-domain = \"test_domain\"\\ndescription = \"Domain with invalid array syntax\"\\n\\n[concept]\\n[concept]\\n-MthdsParserError]": 0.06548895698506385,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[invalid_domain_name-domain = \"invalid-domain-with-hyphens\"\\ndescription = \"Domain with invalid characters\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-MthdsParserError]": 0.09293108305428177,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[invalid_escape_sequence-domain = \"test_domain\"\\ndescription = \"Domain with invalid escape sequence \\\\z\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-MthdsParserError]": 0.03853424999397248,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[invalid_mthds_syntax-domain = \"test_domain\"\\ndescription = \"Domain with invalid MTHDS syntax\"\\n\\n[concept]\\nInvalidConcept = \"This is missing a closing quote-MthdsParserError]": 0.04861650004750118,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[invalid_nested_section-domain = \"test_domain\"\\ndescription = \"Domain with invalid nested section\"\\n\\n[invalid_section]\\nsome_key = \"This section is not allowed\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-MthdsParserError]": 0.09739579097367823,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[invalid_root_key-domain = \"test_domain\"\\ndescription = \"Domain with invalid root key\"\\ninvalid_root_key = \"This key should not be allowed at root level\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-MthdsParserError]": 0.12008549907477573,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[invalid_table_syntax-domain = \"test_domain\"\\ndescription = \"Domain with invalid table syntax\"\\n\\n[concept.]\\nInvalidName = \"Empty table name\"\\n-MthdsParserError]": 0.05110912397503853,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[leading_dot_domain-domain = \".legal\"\\ndescription = \"Domain with leading dot\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-MthdsParserError]": 0.10110308404546231,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[malformed_section-domain = \"test_domain\"\\ndescription = \"Domain with malformed section\"\\n\\n[concept\\nTestConcept = \"Missing closing bracket\"\\n-MthdsParserError]": 0.04173587408149615,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[missing_domain-# Missing required domain field\\ndescription = \"Domain without domain field\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-MthdsParserError]": 0.07675287494203076,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[multiple_invalid_root_keys-domain = \"test_domain\"\\ndescription = \"Domain with multiple invalid root keys\"\\ninvalid_key_1 = \"First invalid key\"\\ninvalid_key_2 = \"Second invalid key\"\\nunknown_field = \"Another unknown field\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-MthdsParserError]": 0.1837619169964455,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[unclosed_string-domain = \"test_domain\"\\ndescription = \"Domain with unclosed string\\n-MthdsParserError]": 0.04563762398902327,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[wrong_type_for_concept_section-domain = \"test_domain\"\\ndescription = \"Domain with wrong type for concept\"\\nconcept = \"should_be_dict_not_string\"\\n-MthdsParserError]": 0.06967087503289804,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[wrong_type_for_definition-domain = \"test_domain\"\\ndescription = 456\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-MthdsParserError]": 0.07637099892599508,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[wrong_type_for_domain-domain = 123\\ndescription = \"Domain should be string, not number\"\\n\\n[concept]\\nTestConcept = \"A test concept\"\\n-MthdsParserError]": 0.09686174901435152,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_invalid_mthds_should_raise_exception[wrong_type_for_pipe_section-domain = \"test_domain\"\\ndescription = \"Domain with wrong type for pipe\"\\npipe = \"should_be_dict_not_string\"\\n-MthdsParserError]": 0.07634849904570729,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[complex_pipes-domain = \"complex_domain\"\\ndescription = \"Domain with multiple pipe types\"\\n\\n[concept]\\nInputData = \"Input data concept\"\\nProcessedData = \"Processed data concept\"\\n\\n[pipe.llm_pipe]\\ntype = \"PipeLLM\"\\ndescription = \"Generate content\"\\ninputs = { data = \"InputData\" }\\noutput = \"ProcessedData\"\\nprompt = \"Process this data: $data\"\\n\\n[pipe.sequence_pipe]\\ntype = \"PipeSequence\"\\ndescription = \"Sequential processing\"\\ninputs = { input_data = \"InputData\" }\\noutput = \"ProcessedData\"\\nsteps = [\\n { pipe = \"llm_pipe\", result = \"llm_result\" },\\n { pipe = \"final_step\", result = \"final_output\" },\\n]\\n-expected_blueprint30]": 0.010902749898377806,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[concepts_with_named_structures-domain = \"named_structures\"\\ndescription = \"Domain with concepts using named structure references\"\\n\\n[concept]\\nBasicInfo = \"Basic information concept\"\\n\\n[concept.ProductInfo]\\ndescription = \"Information about a product\"\\nstructure = \"ProductData\"\\n\\n[concept.OrderInfo]\\ndescription = \"Information about an order\"\\nstructure = \"OrderData\"\\n-expected_blueprint5]": 0.006791624997276813,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[concepts_with_refines-domain = \"refining_concepts\"\\ndescription = \"Domain with concepts that refine others\"\\n\\n[concept]\\nConcept1 = \"A concept1\"\\nConcept2 = \"A concept2\"\\n\\n[concept.Concept3]\\ndescription = \"A concept3\"\\nrefines = \"Image\"\\n-expected_blueprint6]": 0.004387624037917703,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[concepts_with_structures-domain = \"structured_concepts\"\\ndescription = \"Domain with structured concepts\"\\n\\n[concept]\\nSimpleData = \"Simple data concept\"\\n\\n[concept.PersonInfo]\\ndescription = \"Information about a person\"\\n\\n[concept.PersonInfo.structure]\\nname = \"The name of the person\"\\nage = { type = \"number\", description = \"The age of the person\", required = true }\\nbirthdate = { type = \"date\", description = \"The birthdate of the person\", required = true }\\n-expected_blueprint4]": 0.01067945803515613,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[deep_hierarchical_domain-domain = \"legal.contracts.shareholder\"\\ndescription = \"A deeply nested hierarchical domain\"\\n-expected_blueprint3]": 0.0030602909973822534,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[domain_with_system_prompts-domain = \"system_prompt_test\"\\ndescription = \"A domain with system prompts\"\\nsystem_prompt = \"You are an expert assistant\"\\n-expected_blueprint1]": 0.0027598750311881304,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[empty_concepts-domain = \"empty_concepts\"\\ndescription = \"Domain with empty concept section\"\\n-expected_blueprint8]": 0.004872584016993642,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[hierarchical_domain-domain = \"legal.contracts\"\\ndescription = \"A hierarchical domain for legal contracts\"\\n-expected_blueprint2]": 0.003268458996899426,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_batch-domain = \"test_pipes\"\\ndescription = \"Domain with batch pipe\"\\n\\n[concept]\\nItem = \"Item concept\"\\nProcessedData = \"Processed data concept\"\\n\\n[pipe.batch_process]\\ntype = \"PipeBatch\"\\ndescription = \"Process items in batch\"\\ninputs = { items = \"Item[]\" }\\noutput = \"ProcessedData\"\\nbranch_pipe_code = \"process_item\"\\ninput_list_name = \"items\"\\ninput_item_name = \"current_item\"\\n-expected_blueprint29]": 0.005294916976708919,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_compose-domain = \"test_pipes\"\\ndescription = \"Domain with template processing pipe\"\\n\\n[pipe.compose_output]\\ntype = \"PipeCompose\"\\ndescription = \"Process a Jinja2 template\"\\ninputs = { name = \"Text\" }\\noutput = \"Text\"\\n\\n[pipe.compose_output.template]\\ntemplate = \"Hello {{ name }}!\"\\ncategory = \"markdown\"\\n-expected_blueprint24]": 0.007597665011417121,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_compose_without_category-domain = \"test_pipes\"\\ndescription = \"Domain with template processing pipe\"\\n\\n[pipe.process_template]\\ntype = \"PipeCompose\"\\ndescription = \"Process a Jinja2 template\"\\ninputs = { name = \"Text\" }\\noutput = \"Text\"\\ntemplate = \"Hello {{ name }}!\"\\n-expected_blueprint23]": 0.007031373912468553,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_condition-domain = \"test_pipes\"\\ndescription = \"Domain with conditional pipe\"\\n\\n[concept]\\nProcessedData = \"Processed data concept\"\\n\\n[pipe.conditional_process]\\ntype = \"PipeCondition\"\\ndescription = \"Process based on condition\"\\noutput = \"ProcessedData\"\\nexpression = \"input_data.category\"\\noutcomes = { small = \"process_small\", large = \"process_large\" }\\ndefault_outcome = \"continue\"\\n-expected_blueprint27]": 0.005184125038795173,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_extract-domain = \"test_pipes\"\\ndescription = \"Domain with extract pipe\"\\n\\n[pipe.extract_text]\\ntype = \"PipeExtract\"\\ndescription = \"Extract text from document\"\\ninputs = { document = \"Document\" }\\noutput = \"Page[]\"\\nmodel = \"$extract-testing\"\\n-expected_blueprint20]": 0.005921749980188906,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_func-domain = \"test_pipes\"\\ndescription = \"Domain with function pipe\"\\n\\n[concept]\\nProcessedData = \"Processed data concept\"\\n\\n[pipe.process_data]\\ntype = \"PipeFunc\"\\ndescription = \"Process data with function\"\\noutput = \"ProcessedData\"\\nfunction_name = \"process_data_function\"\\n-expected_blueprint21]": 0.031992167059797794,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_img_gen-domain = \"test_pipes\"\\ndescription = \"Domain with image generation pipe\"\\n\\n[pipe.generate_image]\\ntype = \"PipeImgGen\"\\ndescription = \"Generate an image from a prompt\"\\noutput = \"Image\"\\nprompt = \"A beautiful landscape\"\\n-expected_blueprint22]": 0.008465124992653728,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_llm_basic-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.generate_text]\\ntype = \"PipeLLM\"\\ndescription = \"Generate text using LLM\"\\noutput = \"Text\"\\nprompt = \"Generate a story about a programmer\"\\n-expected_blueprint9]": 0.006067291949875653,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_llm_boolean_multiplicity-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[concept]\\nDocumentSummary = \"Summary of a document\"\\n\\n[pipe.analyze_documents]\\ntype = \"PipeLLM\"\\ndescription = \"Analyze multiple documents and single query\"\\ninputs = { documents = \"Text[]\", query = \"Text\" }\\noutput = \"DocumentSummary\"\\nprompt = \"\"\"\\nAnalyze these documents based on the query: $query\\n\\nDocuments:\\n@documents\\n\"\"\"\\n-expected_blueprint19]": 0.005329290986992419,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_llm_dynamic_multiple-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.brainstorm_solutions]\\ntype = \"PipeLLM\"\\ndescription = \"Brainstorm multiple solutions\"\\ninputs = { problem = \"Text\" }\\noutput = \"Text[]\"\\nprompt = \"Brainstorm solutions for this problem: $problem\"\\n-expected_blueprint14]": 0.006182332988828421,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_llm_fixed_prompt-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.simple_generation]\\ntype = \"PipeLLM\"\\ndescription = \"Simple text generation with fixed prompt\"\\noutput = \"Text\"\\nprompt = \"Write a haiku about programming\"\\n-expected_blueprint16]": 0.00710199901368469,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_llm_multiple_outputs-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.generate_ideas]\\ntype = \"PipeLLM\"\\ndescription = \"Generate multiple ideas\"\\noutput = \"Text[3]\"\\nprompt = \"Generate creative ideas for a mobile app\"\\n-expected_blueprint13]": 0.005045960017014295,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_llm_structured_output-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[concept]\\nPersonInfo = \"Information about a person\"\\n\\n[pipe.extract_person_info]\\ntype = \"PipeLLM\"\\ndescription = \"Extract structured person information\"\\ninputs = { text = \"Text[1]\" }\\noutput = \"PersonInfo\"\\nprompt = \"Extract person information from this text: $text\"\\n-expected_blueprint18]": 0.009351041982881725,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_llm_system_template-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.contextual_analysis]\\ntype = \"PipeLLM\"\\ndescription = \"Analysis with dynamic system prompt\"\\ninputs = { expertise_level = \"Text\", content = \"Text\" }\\noutput = \"Text\"\\nsystem_prompt = \"You are an expert with $expertise_level level knowledge\"\\nprompt = \"Analyze this content: $content\"\\n-expected_blueprint17]": 0.005526499997358769,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_llm_vision-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.analyze_image]\\ntype = \"PipeLLM\"\\ndescription = \"Analyze image content\"\\ninputs = { image = \"Image\" }\\noutput = \"Text\"\\nprompt = \"Describe what you see in this image in detail: $image\"\\n-expected_blueprint15]": 0.005018666968680918,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_llm_with_inputs-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.extract_info]\\ntype = \"PipeLLM\"\\ndescription = \"Extract information from text\"\\ninputs = { text = \"Text\", topic = \"Text\" }\\noutput = \"Text\"\\nprompt = \"\"\"\\nExtract information about $topic from this text:\\n\\n@text\\n\"\"\"\\n-expected_blueprint10]": 0.005694832012522966,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_llm_with_long_prompt-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.expert_analysis]\\ntype = \"PipeLLM\"\\ndescription = \"Expert analysis with system prompt\"\\ninputs = { extracted_text = \"Text\" }\\noutput = \"Text\"\\nprompt = \"\"\"\\nExtract all articles/items from this invoice text: $extracted_text. For each item find: item name, quantity, unit price, total price, description, and product code if\\n available. Return each article as separate structured data.\\n\"\"\"\\n-expected_blueprint12]": 0.00644441694021225,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_llm_with_system_prompt-domain = \"test_pipes\"\\ndescription = \"Domain with pipe definitions\"\\n\\n[pipe.expert_analysis]\\ntype = \"PipeLLM\"\\ndescription = \"Expert analysis with system prompt\"\\noutput = \"Text\"\\nsystem_prompt = \"You are a data analysis expert with 20 years of experience\"\\nprompt = \"Analyze the following data and provide insights\"\\n-expected_blueprint11]": 0.006591500015929341,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_parallel-domain = \"test_pipes\"\\ndescription = \"Domain with parallel pipe\"\\n\\n[concept]\\nProcessedData = \"Processed data concept\"\\n\\n[pipe.parallel_process]\\ntype = \"PipeParallel\"\\ndescription = \"PipeParallel example in PIPE_PARALLEL_TEST_CASES\"\\noutput = \"ProcessedData\"\\nbranches = [\\n { pipe = \"process_a\", result = \"result_a\" },\\n { pipe = \"process_b\", result = \"result_b\" },\\n]\\nadd_each_output = true\\n-expected_blueprint28]": 0.008586832962464541,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_sequence-domain = \"test_pipes\"\\ndescription = \"Domain with sequence pipe\"\\n\\n[concept]\\nProcessedData = \"Processed data concept\"\\n\\n[pipe.process_sequence]\\ntype = \"PipeSequence\"\\ndescription = \"Process data in sequence\"\\noutput = \"ProcessedData\"\\nsteps = [\\n { pipe = \"step1\", result = \"intermediate1\" },\\n { pipe = \"step2\", result = \"final_result\" },\\n]\\n-expected_blueprint25]": 0.008014751074369997,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[pipe_sequence_with_cross_domain_ref-domain = \"orchestration\"\\ndescription = \"Domain with cross-domain pipe ref in sequence\"\\n\\n[pipe.orchestrate]\\ntype = \"PipeSequence\"\\ndescription = \"Orchestrate with cross-domain pipe\"\\noutput = \"Text\"\\nsteps = [\\n { pipe = \"scoring.compute_score\", result = \"score\" },\\n { pipe = \"format_result\", result = \"final\" },\\n]\\n-expected_blueprint26]": 0.006797291978728026,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[simple_concept-domain = \"simple_concept\"\\ndescription = \"A simple concept\"\\n\\n[concept]\\nConcept1 = \"A concept\"\\nConcept2 = \"A concept\"\\n-expected_blueprint7]": 0.002947458007838577,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_make_pipelex_bundle_blueprint[simple_domain-domain = \"simple_test\"\\ndescription = \"A simple test domain\"\\n-expected_blueprint0]": 0.6487686650361866,+ "tests/unit/pipelex/mthds_parsing/test_parser.py::TestMthdsParser::test_toml_syntax_error_carries_mthds_source": 0.08450033393455669,+ "tests/unit/pipelex/mthds_parsing/test_parser_preliminary_text.py::TestInterpreterPreliminaryText::test_mthds_with_preliminary_text_elaborates_end_to_end": 0.8978004579548724,+ "tests/unit/pipelex/mthds_parsing/test_parser_preliminary_text.py::TestInterpreterPreliminaryText::test_mthds_without_preliminary_text_is_unchanged": 0.10391195700503886,+ "tests/unit/pipelex/mthds_parsing/test_validation_error_categorizer.py::TestBlueprintValidationErrorCategorizer::test_wrapped_batch_collision_keeps_its_error_type[pipe_batch-\\ndomain = \"batch_collision\"\\ndescription = \"PipeBatch input-name collision\"\\n\\n[concept]\\nItem = \"an item\"\\nResult = \"a result\"\\n\\n[pipe.run_batch]\\ntype = \"PipeBatch\"\\ndescription = \"Batch over items\"\\ninputs = { items = \"Item[]\" }\\noutput = \"Result[]\"\\nbranch_pipe_code = \"process_item\"\\ninput_list_name = \"items\"\\ninput_item_name = \"items\"\\n-run_batch-batch_collision]": 0.6139054580708034,+ "tests/unit/pipelex/mthds_parsing/test_validation_error_categorizer.py::TestBlueprintValidationErrorCategorizer::test_wrapped_batch_collision_keeps_its_error_type[sub_pipe_sequence_step-\\ndomain = \"subpipe_collision\"\\ndescription = \"SubPipe batch_over/batch_as collision\"\\n\\n[concept]\\nItem = \"an item\"\\nResult = \"a result\"\\n\\n[pipe.run_seq]\\ntype = \"PipeSequence\"\\ndescription = \"Sequence that batches a step over its own name\"\\ninputs = { items = \"Item[]\" }\\noutput = \"Result\"\\nsteps = [\\n { pipe = \"process_one\", batch_over = \"items\", batch_as = \"items\", result = \"results\" },\\n]\\n-run_seq-subpipe_collision]": 0.13113500096369535,"tests/unit/pipelex/core/memory/input_shaper/test_csv_by_signature.py::TestInputShaperCsvBySignature::test_bare_csv_path_under_declared_list": 3.570027957961429,"tests/unit/pipelex/core/memory/input_shaper/test_csv_by_signature.py::TestInputShaperCsvBySignature::test_csv_under_singular_is_wrong_scalar_kind": 0.008770500076934695,"tests/unit/pipelex/core/memory/input_shaper/test_csv_by_signature.py::TestInputShaperCsvBySignature::test_fixed_count_matching_rows": 0.004303208028431982,@@ -4351,30 +4351,30 @@"tests/unit/pipelex/core/memory/test_working_memory_typed_access.py::TestWorkingMemoryTypedAccess::test_simple_access_with_matching_type": 0.0021539999870583415,"tests/unit/pipelex/core/memory/test_working_memory_typed_access.py::TestWorkingMemoryTypedAccess::test_simple_access_with_wrong_type": 0.0018491260125301778,"tests/unit/pipelex/core/memory/test_working_memory_typed_access.py::TestWorkingMemoryTypedAccess::test_simple_access_without_type": 0.9243902919697575,- "tests/unit/pipelex/core/pipes/output/test_output_renderer.py::TestRenderOutputJsonFormat::test_json_format_returns_valid_json": 0.003210250986739993,- "tests/unit/pipelex/core/pipes/output/test_output_renderer.py::TestRenderOutputPythonFormat::test_python_format_contains_python_instantiation": 0.0021577500156126916,- "tests/unit/pipelex/core/pipes/output/test_output_renderer.py::TestRenderOutputPythonFormat::test_python_format_returns_python_code_not_json": 0.8396624170127325,- "tests/unit/pipelex/core/pipes/output/test_output_renderer.py::TestRenderOutputSchemaFormat::test_schema_format_returns_json_schema": 0.11168812494724989,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_anything_formats.py::TestRenderOutputAnythingFormats::test_anything_json_renders_output_options": 0.001864542078692466,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_anything_formats.py::TestRenderOutputAnythingFormats::test_anything_python_renders_option_lines": 0.0008771239663474262,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_anything_formats.py::TestRenderOutputAnythingFormats::test_anything_schema_renders_schema_options": 0.13817716797348112,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_anything_formats.py::TestRenderOutputAnythingFormats::test_anything_without_possible_outputs_raises[json]": 0.8814953750115819,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_anything_formats.py::TestRenderOutputAnythingFormats::test_anything_without_possible_outputs_raises[python]": 0.0007487920229323208,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_anything_formats.py::TestRenderOutputAnythingFormats::test_anything_without_possible_outputs_raises[schema]": 0.0007887080428190529,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_empty_dependencies_yield_no_outputs": 1.0189520429703407,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_multiple_mapped_pipes_are_ordered_deterministically": 0.005086291988845915,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_operator_pipe_types_yield_no_outputs[PipeImgGen]": 0.12541587493615225,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_operator_pipe_types_yield_no_outputs[PipeLLM]": 0.0007779159350320697,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_render_failure_yields_placeholder[pipelex_error]": 0.0017398340278305113,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_render_failure_yields_placeholder[value_error]": 0.0020882090320810676,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_single_mapped_pipe_falls_back_to_whole_dict": 0.0010143759427592158,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_single_mapped_pipe_uses_content_key": 0.0010377499856986105,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_collect_sequence.py::TestCollectPossibleOutputsSequence::test_anything_last_pipe_recurses_into_it": 0.11157445696881041,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_collect_sequence.py::TestCollectPossibleOutputsSequence::test_concrete_last_pipe_yields_single_entry": 0.0019685010192915797,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_collect_sequence.py::TestCollectPossibleOutputsSequence::test_empty_sub_pipes_yield_no_outputs": 0.875476083077956,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_collect_sequence.py::TestCollectPossibleOutputsSequence::test_last_pipe_render_failure_yields_no_outputs[pipelex_error]": 0.003392375016119331,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_collect_sequence.py::TestCollectPossibleOutputsSequence::test_last_pipe_render_failure_yields_no_outputs[value_error]": 0.004822999995667487,- "tests/unit/pipelex/core/pipes/output/test_output_renderer_collect_sequence.py::TestCollectPossibleOutputsSequence::test_last_sub_pipe_with_empty_code_yields_no_outputs": 0.0006513329572044313,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer.py::TestRenderOutputJsonFormat::test_json_format_returns_valid_json": 0.003210250986739993,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer.py::TestRenderOutputPythonFormat::test_python_format_contains_python_instantiation": 0.0021577500156126916,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer.py::TestRenderOutputPythonFormat::test_python_format_returns_python_code_not_json": 0.8396624170127325,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer.py::TestRenderOutputSchemaFormat::test_schema_format_returns_json_schema": 0.11168812494724989,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_anything_formats.py::TestRenderOutputAnythingFormats::test_anything_json_renders_output_options": 0.001864542078692466,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_anything_formats.py::TestRenderOutputAnythingFormats::test_anything_python_renders_option_lines": 0.0008771239663474262,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_anything_formats.py::TestRenderOutputAnythingFormats::test_anything_schema_renders_schema_options": 0.13817716797348112,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_anything_formats.py::TestRenderOutputAnythingFormats::test_anything_without_possible_outputs_raises[json]": 0.8814953750115819,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_anything_formats.py::TestRenderOutputAnythingFormats::test_anything_without_possible_outputs_raises[python]": 0.0007487920229323208,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_anything_formats.py::TestRenderOutputAnythingFormats::test_anything_without_possible_outputs_raises[schema]": 0.0007887080428190529,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_empty_dependencies_yield_no_outputs": 1.0189520429703407,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_multiple_mapped_pipes_are_ordered_deterministically": 0.005086291988845915,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_operator_pipe_types_yield_no_outputs[PipeImgGen]": 0.12541587493615225,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_operator_pipe_types_yield_no_outputs[PipeLLM]": 0.0007779159350320697,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_render_failure_yields_placeholder[pipelex_error]": 0.0017398340278305113,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_render_failure_yields_placeholder[value_error]": 0.0020882090320810676,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_single_mapped_pipe_falls_back_to_whole_dict": 0.0010143759427592158,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_condition.py::TestCollectPossibleOutputsCondition::test_single_mapped_pipe_uses_content_key": 0.0010377499856986105,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_sequence.py::TestCollectPossibleOutputsSequence::test_anything_last_pipe_recurses_into_it": 0.11157445696881041,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_sequence.py::TestCollectPossibleOutputsSequence::test_concrete_last_pipe_yields_single_entry": 0.0019685010192915797,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_sequence.py::TestCollectPossibleOutputsSequence::test_empty_sub_pipes_yield_no_outputs": 0.875476083077956,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_sequence.py::TestCollectPossibleOutputsSequence::test_last_pipe_render_failure_yields_no_outputs[pipelex_error]": 0.003392375016119331,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_sequence.py::TestCollectPossibleOutputsSequence::test_last_pipe_render_failure_yields_no_outputs[value_error]": 0.004822999995667487,+ "tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_sequence.py::TestCollectPossibleOutputsSequence::test_last_sub_pipe_with_empty_code_yields_no_outputs": 0.0006513329572044313,"tests/unit/pipelex/core/pipes/test_concept_multiplicity_formatting.py::TestFormatConceptWithMultiplicity::test_format_concept_with_multiplicity[Concept123-2-Concept123[2]]": 0.0009279160294681787,"tests/unit/pipelex/core/pipes/test_concept_multiplicity_formatting.py::TestFormatConceptWithMultiplicity::test_format_concept_with_multiplicity[ConceptName-None-ConceptName]": 0.00044583395356312394,"tests/unit/pipelex/core/pipes/test_concept_multiplicity_formatting.py::TestFormatConceptWithMultiplicity::test_format_concept_with_multiplicity[Document-10-Document[10]]": 0.0007212500204332173,@@ -4407,47 +4407,47 @@"tests/unit/pipelex/core/pipes/test_concept_multiplicity_formatting.py::TestFormatConceptWithMultiplicity::test_parse_format_round_trip[Text[]]": 0.0006252499879337847,"tests/unit/pipelex/core/pipes/test_concept_multiplicity_formatting.py::TestFormatConceptWithMultiplicity::test_parse_format_round_trip[Text]": 0.00044958293437957764,"tests/unit/pipelex/core/pipes/test_concept_multiplicity_formatting.py::TestFormatConceptWithMultiplicity::test_parse_format_round_trip[domain.Concept?]": 0.12128216697601601,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeBatch]": 0.002484999946318567,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeCompose]": 0.002433043031487614,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeCondition]": 0.0014396669575944543,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeExtract]": 0.0018248749547638,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeFunc]": 0.0016193329938687384,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeImgGen]": 0.00288862397428602,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeLLM]": 0.00416958297137171,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeParallel]": 0.002119207929354161,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeSearch]": 0.0008260419708676636,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeSequence]": 0.001308040984440595,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeStructure]": 0.14170104201184586,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeBatch]": 0.0021998760057613254,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeCompose]": 0.0015482919407077134,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeCondition]": 0.0011959579424001276,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeExtract]": 0.0016519170021638274,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeFunc]": 0.001968291006051004,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeImgGen]": 0.0028836659621447325,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeLLM]": 0.0016470830305479467,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeParallel]": 0.0018386669689789414,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeSearch]": 0.00184674997581169,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeSequence]": 0.0016097070183604956,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeStructure]": 0.0012394159566611052,- "tests/unit/pipelex/core/pipes/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_pipe_classes_were_discovered": 0.9199185409815982,- "tests/unit/pipelex/core/pipes/test_handle_pipe_errors_suffix.py::TestRequiredProvidedSuffix::test_concept_error_renders_author_syntax_suffix": 0.0006111670518293977,- "tests/unit/pipelex/core/pipes/test_handle_pipe_errors_suffix.py::TestRequiredProvidedSuffix::test_multiple_required_refs_join_without_brackets": 0.1696313749998808,- "tests/unit/pipelex/core/pipes/test_handle_pipe_errors_suffix.py::TestRequiredProvidedSuffix::test_multiplicity_error_suppresses_the_suffix": 0.9845670010545291,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_date_scalar_unwraps_to_bare_iso_string": 0.00020975095685571432,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_document_scalar_unwraps_to_bare_url": 0.0008113330695778131,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_dynamic_keeps_the_whole_envelope": 0.00030399998649954796,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_explicit_toml_default_keeps_section_layout": 0.1203098320402205,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_image_scalar_unwraps_to_bare_url": 0.0007148339063860476,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_light_toml_attaches_concept_comments": 0.0004024159861728549,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_light_toml_round_trips_and_keeps_declaration_order": 0.0020800839411094785,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_number_scalar_unwraps_to_bare_number": 0.00032775005092844367,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_scalar_empty_list_stays_empty": 0.0003776679513975978,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_scalar_multiple_unwraps_element_wise": 0.0005872910260222852,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_scalar_with_extra_required_fields_falls_back_to_envelope": 0.00020520895486697555,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_structured_keeps_content_dict": 0.0005640410236082971,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_structured_multiple_keeps_list_of_dicts": 0.0015189589466899633,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_text_scalar_unwraps_to_bare_string": 0.9840247089159675,- "tests/unit/pipelex/core/pipes/test_input_renderer_light.py::TestInputRendererLight::test_yes_no_scalar_unwraps_to_bare_bool": 0.00025970907881855965,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeBatch]": 0.002484999946318567,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeCompose]": 0.002433043031487614,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeCondition]": 0.0014396669575944543,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeExtract]": 0.0018248749547638,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeFunc]": 0.0016193329938687384,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeImgGen]": 0.00288862397428602,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeLLM]": 0.00416958297137171,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeParallel]": 0.002119207929354161,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeSearch]": 0.0008260419708676636,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeSequence]": 0.001308040984440595,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_dry_run_calls_register_execution_data[PipeStructure]": 0.14170104201184586,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeBatch]": 0.0021998760057613254,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeCompose]": 0.0015482919407077134,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeCondition]": 0.0011959579424001276,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeExtract]": 0.0016519170021638274,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeFunc]": 0.001968291006051004,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeImgGen]": 0.0028836659621447325,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeLLM]": 0.0016470830305479467,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeParallel]": 0.0018386669689789414,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeSearch]": 0.00184674997581169,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeSequence]": 0.0016097070183604956,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_live_run_calls_register_execution_data[PipeStructure]": 0.0012394159566611052,+ "tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py::TestPipeExecutionDataCoverage::test_pipe_classes_were_discovered": 0.9199185409815982,+ "tests/unit/pipelex/mthds_parsing/test_handle_pipe_errors_suffix.py::TestRequiredProvidedSuffix::test_concept_error_renders_author_syntax_suffix": 0.0006111670518293977,+ "tests/unit/pipelex/mthds_parsing/test_handle_pipe_errors_suffix.py::TestRequiredProvidedSuffix::test_multiple_required_refs_join_without_brackets": 0.1696313749998808,+ "tests/unit/pipelex/mthds_parsing/test_handle_pipe_errors_suffix.py::TestRequiredProvidedSuffix::test_multiplicity_error_suppresses_the_suffix": 0.9845670010545291,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_date_scalar_unwraps_to_bare_iso_string": 0.00020975095685571432,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_document_scalar_unwraps_to_bare_url": 0.0008113330695778131,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_dynamic_keeps_the_whole_envelope": 0.00030399998649954796,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_explicit_toml_default_keeps_section_layout": 0.1203098320402205,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_image_scalar_unwraps_to_bare_url": 0.0007148339063860476,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_light_toml_attaches_concept_comments": 0.0004024159861728549,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_light_toml_round_trips_and_keeps_declaration_order": 0.0020800839411094785,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_number_scalar_unwraps_to_bare_number": 0.00032775005092844367,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_scalar_empty_list_stays_empty": 0.0003776679513975978,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_scalar_multiple_unwraps_element_wise": 0.0005872910260222852,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_scalar_with_extra_required_fields_falls_back_to_envelope": 0.00020520895486697555,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_structured_keeps_content_dict": 0.0005640410236082971,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_structured_multiple_keeps_list_of_dicts": 0.0015189589466899633,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_text_scalar_unwraps_to_bare_string": 0.9840247089159675,+ "tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py::TestInputRendererLight::test_yes_no_scalar_unwraps_to_bare_bool": 0.00025970907881855965,"tests/unit/pipelex/core/pipes/test_input_requirements_factory.py::TestMakeInputRequirementsFromString::test_brackets_at_start_treated_as_concept_name": 0.10390958306379616,"tests/unit/pipelex/core/pipes/test_input_requirements_factory.py::TestMakeInputRequirementsFromString::test_concept_attribute_access": 0.049726542027201504,"tests/unit/pipelex/core/pipes/test_input_requirements_factory.py::TestMakeInputRequirementsFromString::test_concept_code_resolution[accounting-Text[3]-native.Text-3-Native always wins]": 0.06541462399763986,@@ -4497,10 +4497,10 @@"tests/unit/pipelex/core/pipes/test_input_stuff_specs_presence.py::TestInputStuffSpecsPresence::test_required_equals_declared_without_markers": 0.0007588750449940562,"tests/unit/pipelex/core/pipes/test_input_stuff_specs_presence.py::TestInputStuffSpecsPresence::test_required_names_excludes_optional_inputs": 0.00048337504267692566,"tests/unit/pipelex/core/pipes/test_input_stuff_specs_presence.py::TestInputStuffSpecsPresence::test_root_validator_preserves_presence": 0.31365654204273596,- "tests/unit/pipelex/core/pipes/test_inputs_template_toml.py::TestSerializeInputsTemplateToml::test_empty_template_serializes_to_empty_document": 0.14595691597787663,- "tests/unit/pipelex/core/pipes/test_inputs_template_toml.py::TestSerializeInputsTemplateToml::test_multiline_string_round_trips": 0.0011875840136781335,- "tests/unit/pipelex/core/pipes/test_inputs_template_toml.py::TestSerializeInputsTemplateToml::test_none_values_become_empty_strings": 0.000672166992444545,- "tests/unit/pipelex/core/pipes/test_inputs_template_toml.py::TestSerializeInputsTemplateToml::test_representative_template_round_trips": 1.0115443750401028,+ "tests/unit/pipelex/pipe_machinery/test_inputs_template_toml.py::TestSerializeInputsTemplateToml::test_empty_template_serializes_to_empty_document": 0.14595691597787663,+ "tests/unit/pipelex/pipe_machinery/test_inputs_template_toml.py::TestSerializeInputsTemplateToml::test_multiline_string_round_trips": 0.0011875840136781335,+ "tests/unit/pipelex/pipe_machinery/test_inputs_template_toml.py::TestSerializeInputsTemplateToml::test_none_values_become_empty_strings": 0.000672166992444545,+ "tests/unit/pipelex/pipe_machinery/test_inputs_template_toml.py::TestSerializeInputsTemplateToml::test_representative_template_round_trips": 1.0115443750401028,"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_false_is_compatible_with_none": 0.1411746249650605,"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_false_is_not_compatible_with_variable_list": 0.0008430829620920122,"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_multiplicity_compatibility[1-1-True]": 0.0007216249941848218,@@ -4574,55 +4574,55 @@"tests/unit/pipelex/core/pipes/test_parse_concept_with_multiplicity.py::TestParseConceptWithMultiplicity::test_valid_hierarchical_domain_concept_with_fixed_count": 0.0008592090453021228,"tests/unit/pipelex/core/pipes/test_parse_concept_with_multiplicity.py::TestParseConceptWithMultiplicity::test_valid_hierarchical_domain_concept_with_variable_list": 0.0009057079441845417,"tests/unit/pipelex/core/pipes/test_parse_concept_with_multiplicity.py::TestParseConceptWithMultiplicity::test_valid_simple_concept": 0.8989219579962082,- "tests/unit/pipelex/core/pipes/test_pipe_abstract_namespace_strip.py::TestPipeAbstractNamespaceStrip::test_validate_pipe_code_syntax_raises_for_invalid_after_strip": 0.19126366602722555,- "tests/unit/pipelex/core/pipes/test_pipe_abstract_namespace_strip.py::TestPipeAbstractNamespaceStrip::test_validate_pipe_code_syntax_strips_namespace[a.b.my_pipe-my_pipe]": 0.07188270799815655,- "tests/unit/pipelex/core/pipes/test_pipe_abstract_namespace_strip.py::TestPipeAbstractNamespaceStrip::test_validate_pipe_code_syntax_strips_namespace[domain.my_pipe-my_pipe]": 0.9872308330377564,- "tests/unit/pipelex/core/pipes/test_pipe_abstract_namespace_strip.py::TestPipeAbstractNamespaceStrip::test_validate_pipe_code_syntax_strips_namespace[my_pipe-my_pipe]": 0.0003917909343726933,- "tests/unit/pipelex/core/pipes/test_pipe_abstract_signature_surface.py::TestPipeAbstractSignatureSurface::test_is_signature_false_for_controller": 0.0005427500582300127,- "tests/unit/pipelex/core/pipes/test_pipe_abstract_signature_surface.py::TestPipeAbstractSignatureSurface::test_is_signature_false_for_operator": 0.8982222490012646,- "tests/unit/pipelex/core/pipes/test_pipe_abstract_signature_surface.py::TestPipeAbstractSignatureSurface::test_is_signature_false_ignores_pipe_category": 0.0006362919812090695,- "tests/unit/pipelex/core/pipes/test_pipe_abstract_signature_surface.py::TestPipeAbstractSignatureSurface::test_pipe_dependencies_default_returns_empty_set": 0.12573783297557384,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_extra_fields_raises_error": 0.000675083021633327,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_missing_mandatory_fields_raises_error": 0.1310228329966776,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_validate_inputs_blueprint_correct": 0.0008730420377105474,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_validate_inputs_blueprint_incorrect": 0.000873708981089294,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_validate_pipe_category_correct": 0.00042579200817272067,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_validate_pipe_category_incorrect": 0.000897624995559454,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_validate_pipe_type_correct": 0.8471103330375627,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_validate_pipe_type_incorrect": 0.0004933749441988766,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_force_marker_on_output_rejected[Text!]": 0.0002741240314207971,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_force_marker_on_output_rejected[Text[]!]": 0.00038249901263043284,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_force_marker_on_output_rejected[domain.Concept!]": 0.0006819580448791385,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_input_syntax_rejected[?Text]": 0.000360417936462909,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_input_syntax_rejected[Text??]": 0.0003885410260409117,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_input_syntax_rejected[Text?[]]": 0.0002931260969489813,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_output_syntax_rejected[!Text]": 0.1490864580264315,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_output_syntax_rejected[Text??]": 0.00031108298571780324,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_output_syntax_rejected[Text?[]]": 0.0003101249458268285,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_marker_on_plural_input_rejected[Text[3]!]": 0.000426042010076344,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_marker_on_plural_input_rejected[Text[3]?]": 0.0003950830432586372,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_marker_on_plural_input_rejected[Text[]!]": 0.0005152079975232482,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_marker_on_plural_input_rejected[Text[]?]": 0.0005595830152742565,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_optional_marker_on_plural_output_rejected[Text[3]?]": 0.0003921250463463366,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_optional_marker_on_plural_output_rejected[Text[]?]": 0.0002966659376397729,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_optional_output_accepted[Text?]": 0.0004077909979969263,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_optional_output_accepted[domain.Concept?]": 0.0007364579942077398,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_singular_input_markers_accepted[Text!]": 0.000354335003066808,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_singular_input_markers_accepted[Text?]": 0.940837999980431,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_singular_input_markers_accepted[domain.Concept!]": 0.000821291992906481,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_singular_input_markers_accepted[domain.Concept?]": 0.0007295829709619284,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_coercing_signature_tag_to_pipe_type_raises": 0.11342116689775139,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_pipe_category_signature_member_removed": 0.0010441250051371753,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_pipe_type_signature_member_removed": 0.0006859159911982715,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_signature_tag_is_not_controller": 4.441868875059299,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_signature_tag_is_not_operator": 0.1393020010436885,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_signature_tag_not_in_pipe_category": 0.0003025420010089874,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_signature_tag_not_in_pipe_type": 0.0020210009533911943,- "tests/unit/pipelex/core/pipes/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_signature_tag_value": 0.8369382499950007,- "tests/unit/pipelex/core/pipes/test_pipe_validate_before_run.py::TestPipeValidateBeforeRun::test_run_pipe_missing_multiple_inputs_raises_error": 0.07980653998674825,- "tests/unit/pipelex/core/pipes/test_pipe_validate_before_run.py::TestPipeValidateBeforeRun::test_run_pipe_missing_single_input_raises_error": 0.697139250987675,- "tests/unit/pipelex/core/pipes/test_pipe_validate_before_run.py::TestPipeValidateBeforeRun::test_run_pipe_partial_inputs_raises_error_for_missing": 0.20985945704160258,- "tests/unit/pipelex/core/pipes/test_run_pipe_tracer_metadata.py::TestRunPipeForwardsTracerMetadata::test_run_pipe_passes_description_and_domain_code_to_tracer": 1.0602267510257661,+ "tests/unit/pipelex/pipe_machinery/test_pipe_abstract_namespace_strip.py::TestPipeAbstractNamespaceStrip::test_validate_pipe_code_syntax_raises_for_invalid_after_strip": 0.19126366602722555,+ "tests/unit/pipelex/pipe_machinery/test_pipe_abstract_namespace_strip.py::TestPipeAbstractNamespaceStrip::test_validate_pipe_code_syntax_strips_namespace[a.b.my_pipe-my_pipe]": 0.07188270799815655,+ "tests/unit/pipelex/pipe_machinery/test_pipe_abstract_namespace_strip.py::TestPipeAbstractNamespaceStrip::test_validate_pipe_code_syntax_strips_namespace[domain.my_pipe-my_pipe]": 0.9872308330377564,+ "tests/unit/pipelex/pipe_machinery/test_pipe_abstract_namespace_strip.py::TestPipeAbstractNamespaceStrip::test_validate_pipe_code_syntax_strips_namespace[my_pipe-my_pipe]": 0.0003917909343726933,+ "tests/unit/pipelex/pipe_machinery/test_pipe_abstract_signature_surface.py::TestPipeAbstractSignatureSurface::test_is_signature_false_for_controller": 0.0005427500582300127,+ "tests/unit/pipelex/pipe_machinery/test_pipe_abstract_signature_surface.py::TestPipeAbstractSignatureSurface::test_is_signature_false_for_operator": 0.8982222490012646,+ "tests/unit/pipelex/pipe_machinery/test_pipe_abstract_signature_surface.py::TestPipeAbstractSignatureSurface::test_is_signature_false_ignores_pipe_category": 0.0006362919812090695,+ "tests/unit/pipelex/pipe_machinery/test_pipe_abstract_signature_surface.py::TestPipeAbstractSignatureSurface::test_pipe_dependencies_default_returns_empty_set": 0.12573783297557384,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_extra_fields_raises_error": 0.000675083021633327,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_missing_mandatory_fields_raises_error": 0.1310228329966776,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_validate_inputs_blueprint_correct": 0.0008730420377105474,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_validate_inputs_blueprint_incorrect": 0.000873708981089294,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_validate_pipe_category_correct": 0.00042579200817272067,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_validate_pipe_category_incorrect": 0.000897624995559454,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_validate_pipe_type_correct": 0.8471103330375627,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint.py::TestPipeBlueprintValidation::test_validate_pipe_type_incorrect": 0.0004933749441988766,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_force_marker_on_output_rejected[Text!]": 0.0002741240314207971,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_force_marker_on_output_rejected[Text[]!]": 0.00038249901263043284,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_force_marker_on_output_rejected[domain.Concept!]": 0.0006819580448791385,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_input_syntax_rejected[?Text]": 0.000360417936462909,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_input_syntax_rejected[Text??]": 0.0003885410260409117,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_input_syntax_rejected[Text?[]]": 0.0002931260969489813,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_output_syntax_rejected[!Text]": 0.1490864580264315,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_output_syntax_rejected[Text??]": 0.00031108298571780324,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_output_syntax_rejected[Text?[]]": 0.0003101249458268285,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_marker_on_plural_input_rejected[Text[3]!]": 0.000426042010076344,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_marker_on_plural_input_rejected[Text[3]?]": 0.0003950830432586372,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_marker_on_plural_input_rejected[Text[]!]": 0.0005152079975232482,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_marker_on_plural_input_rejected[Text[]?]": 0.0005595830152742565,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_optional_marker_on_plural_output_rejected[Text[3]?]": 0.0003921250463463366,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_optional_marker_on_plural_output_rejected[Text[]?]": 0.0002966659376397729,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_optional_output_accepted[Text?]": 0.0004077909979969263,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_optional_output_accepted[domain.Concept?]": 0.0007364579942077398,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_singular_input_markers_accepted[Text!]": 0.000354335003066808,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_singular_input_markers_accepted[Text?]": 0.940837999980431,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_singular_input_markers_accepted[domain.Concept!]": 0.000821291992906481,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_singular_input_markers_accepted[domain.Concept?]": 0.0007295829709619284,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_coercing_signature_tag_to_pipe_type_raises": 0.11342116689775139,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_pipe_category_signature_member_removed": 0.0010441250051371753,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_pipe_type_signature_member_removed": 0.0006859159911982715,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_signature_tag_is_not_controller": 4.441868875059299,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_signature_tag_is_not_operator": 0.1393020010436885,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_signature_tag_not_in_pipe_category": 0.0003025420010089874,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_signature_tag_not_in_pipe_type": 0.0020210009533911943,+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_signature_tag_value": 0.8369382499950007,+ "tests/unit/pipelex/pipe_machinery/test_pipe_validate_before_run.py::TestPipeValidateBeforeRun::test_run_pipe_missing_multiple_inputs_raises_error": 0.07980653998674825,+ "tests/unit/pipelex/pipe_machinery/test_pipe_validate_before_run.py::TestPipeValidateBeforeRun::test_run_pipe_missing_single_input_raises_error": 0.697139250987675,+ "tests/unit/pipelex/pipe_machinery/test_pipe_validate_before_run.py::TestPipeValidateBeforeRun::test_run_pipe_partial_inputs_raises_error_for_missing": 0.20985945704160258,+ "tests/unit/pipelex/pipe_machinery/test_run_pipe_tracer_metadata.py::TestRunPipeForwardsTracerMetadata::test_run_pipe_passes_description_and_domain_code_to_tracer": 1.0602267510257661,"tests/unit/pipelex/core/pipes/test_stuff_spec.py::TestStuffSpecToBundleRepresentation::test_presence_defaults_to_plain": 0.00024066702462732792,"tests/unit/pipelex/core/pipes/test_stuff_spec.py::TestStuffSpecToBundleRepresentation::test_to_bundle_representation_with_custom_domain_concept": 0.00023254100233316422,"tests/unit/pipelex/core/pipes/test_stuff_spec.py::TestStuffSpecToBundleRepresentation::test_to_bundle_representation_with_native_text[1-[1]]": 0.0007686250610277057,@@ -4642,62 +4642,62 @@"tests/unit/pipelex/core/pipes/test_stuff_spec.py::TestStuffSpecToBundleRepresentation::test_to_bundle_representation_with_various_native_concepts[Text-5-native.Text[5]]": 0.00037774897646158934,"tests/unit/pipelex/core/pipes/test_stuff_spec.py::TestStuffSpecToBundleRepresentation::test_to_bundle_representation_with_various_native_concepts[Text-None-native.Text]": 0.0006253329920582473,"tests/unit/pipelex/core/pipes/test_stuff_spec.py::TestStuffSpecToBundleRepresentation::test_to_bundle_representation_with_various_native_concepts[Text-True-native.Text[]]": 0.0003619170165620744,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[-False]": 0.0005509580369107425,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[.-False]": 0.000355833035428077,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[..-False]": 0.0009052500245161355,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[...-False]": 0.0008801659569144249,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[.my_input-False]": 0.0007921659853309393,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[.my_input.field_name-False]": 0.000668915978167206,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[123_input-False]": 0.0002970419591292739,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[MyInput-False]": 0.0008722079801373184,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[a-True]": 0.0008322510402649641,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[a.b-True]": 0.0007657089736312628,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[a.b.c-True]": 0.0023248750367201865,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[a_b-True]": 0.0005417910288088024,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[input_1.field_2.nested_3-True]": 0.0009207080001942813,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[input_123-True]": 0.0004087499692104757,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my input-False]": 0.0006091250106692314,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my-input-False]": 0.0010570429731160402,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[myInput-False]": 0.00030729197897017,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[myInput.field_name-False]": 0.0009350409382022917,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input-True]": 0.6707125419634394,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input.-False]": 0.0006747499573975801,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input...field-False]": 0.0009306659922003746,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input..field-False]": 0.0006799580296501517,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input..field_name-False]": 0.00036387506406754255,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input.Field_name-False]": 0.0006814569351263344,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input.fieldName-False]": 0.00037649902515113354,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input.field_name-True]": 0.000359458033926785,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input.field_name.-False]": 0.0002840830129571259,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input.field_name.nested_field-True]": 0.0009283740655519068,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input_field-True]": 0.0003565829829312861,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_error_message": 0.09929112403187901,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[...]": 0.0004410829860717058,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[..]": 0.0006607510731555521,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[.]": 0.0003600420313887298,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[.my_input]": 0.0009022510494105518,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[123_input]": 0.0029367919778451324,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[MyInput]": 0.0007726238691248,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[]": 0.000633876072242856,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[my input]": 0.0003789170295931399,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[my-input]": 0.0011033340124413371,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[myInput.field_name]": 0.00043658295180648565,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[myInput]": 0.0009672489832155406,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[my_input...field]": 0.0007211669581010938,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[my_input..field]": 0.0008702510385774076,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[my_input.Field_name]": 0.001002250995952636,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[my_input.]": 0.0003114169812761247,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[my_input.fieldName]": 0.0006411680369637907,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[a.b.c]": 0.0006767090526409447,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[a.b]": 0.0007951660081744194,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[a]": 0.000633459014352411,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[a_b]": 0.0006285840063355863,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[input_1.field_2.nested_3]": 0.0005352500011213124,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[input_123]": 0.0005466249422170222,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[my_input.field_name.nested_field]": 0.0008145409519784153,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[my_input.field_name]": 0.0006035839323885739,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[my_input]": 0.00032608502078801394,- "tests/unit/pipelex/core/pipes/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[my_input_field]": 0.00032720796298235655,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[-False]": 0.0005509580369107425,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[.-False]": 0.000355833035428077,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[..-False]": 0.0009052500245161355,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[...-False]": 0.0008801659569144249,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[.my_input-False]": 0.0007921659853309393,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[.my_input.field_name-False]": 0.000668915978167206,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[123_input-False]": 0.0002970419591292739,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[MyInput-False]": 0.0008722079801373184,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[a-True]": 0.0008322510402649641,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[a.b-True]": 0.0007657089736312628,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[a.b.c-True]": 0.0023248750367201865,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[a_b-True]": 0.0005417910288088024,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[input_1.field_2.nested_3-True]": 0.0009207080001942813,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[input_123-True]": 0.0004087499692104757,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my input-False]": 0.0006091250106692314,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my-input-False]": 0.0010570429731160402,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[myInput-False]": 0.00030729197897017,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[myInput.field_name-False]": 0.0009350409382022917,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input-True]": 0.6707125419634394,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input.-False]": 0.0006747499573975801,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input...field-False]": 0.0009306659922003746,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input..field-False]": 0.0006799580296501517,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input..field_name-False]": 0.00036387506406754255,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input.Field_name-False]": 0.0006814569351263344,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input.fieldName-False]": 0.00037649902515113354,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input.field_name-True]": 0.000359458033926785,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input.field_name.-False]": 0.0002840830129571259,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input.field_name.nested_field-True]": 0.0009283740655519068,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_is_valid_input_name[my_input_field-True]": 0.0003565829829312861,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_error_message": 0.09929112403187901,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[...]": 0.0004410829860717058,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[..]": 0.0006607510731555521,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[.]": 0.0003600420313887298,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[.my_input]": 0.0009022510494105518,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[123_input]": 0.0029367919778451324,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[MyInput]": 0.0007726238691248,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[]": 0.000633876072242856,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[my input]": 0.0003789170295931399,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[my-input]": 0.0011033340124413371,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[myInput.field_name]": 0.00043658295180648565,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[myInput]": 0.0009672489832155406,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[my_input...field]": 0.0007211669581010938,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[my_input..field]": 0.0008702510385774076,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[my_input.Field_name]": 0.001002250995952636,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[my_input.]": 0.0003114169812761247,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_invalid[my_input.fieldName]": 0.0006411680369637907,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[a.b.c]": 0.0006767090526409447,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[a.b]": 0.0007951660081744194,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[a]": 0.000633459014352411,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[a_b]": 0.0006285840063355863,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[input_1.field_2.nested_3]": 0.0005352500011213124,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[input_123]": 0.0005466249422170222,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[my_input.field_name.nested_field]": 0.0008145409519784153,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[my_input.field_name]": 0.0006035839323885739,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[my_input]": 0.00032608502078801394,+ "tests/unit/pipelex/pipe_machinery/test_validation.py::TestInputNameValidation::test_validate_input_name_valid[my_input_field]": 0.00032720796298235655,"tests/unit/pipelex/core/stuffs/date_content/test_date_content_renders.py::TestDateContentRenders::test_accepts_naive_iso_time_string": 0.0007592909969389439,"tests/unit/pipelex/core/stuffs/date_content/test_date_content_renders.py::TestDateContentRenders::test_construction_date_and_naive_time": 0.0004613740020431578,"tests/unit/pipelex/core/stuffs/date_content/test_date_content_renders.py::TestDateContentRenders::test_construction_date_and_offset_time": 0.000760124996304512,@@ -6369,20 +6369,20 @@"tests/unit/pipelex/pipeline/test_input_normalizer.py::TestInputNormalizerUrlGuards::test_blank_url_raises_input_error[]": 0.7197358749690466,"tests/unit/pipelex/pipeline/test_input_normalizer.py::TestInputNormalizerUrlGuards::test_directory_path_raises_input_error": 0.0034439160372130573,"tests/unit/pipelex/pipeline/test_input_normalizer.py::TestInputNormalizerUrlGuards::test_missing_file_raises_input_error": 0.0839380839606747,- "tests/unit/pipelex/pipeline/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_copy_with_update_preserves_request_id": 0.000397041963879019,- "tests/unit/pipelex/pipeline/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_accepts_well_formed_input[11111111-2222-3333-4444-555555555555]": 0.0009628339903429151,- "tests/unit/pipelex/pipeline/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_accepts_well_formed_input[abc-123]": 0.0014607080374844372,- "tests/unit/pipelex/pipeline/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_accepts_well_formed_input[req_abc.123]": 0.0006407069158740342,- "tests/unit/pipelex/pipeline/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_accepts_well_formed_input[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]": 0.0878618760034442,- "tests/unit/pipelex/pipeline/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_defaults_to_none": 0.7452630839543417,- "tests/unit/pipelex/pipeline/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_rejects_unsanitized_input[abc\\ndef]": 0.0006059999577701092,- "tests/unit/pipelex/pipeline/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_rejects_unsanitized_input[abc\\rdef]": 0.00048191589303314686,- "tests/unit/pipelex/pipeline/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_rejects_unsanitized_input[abc\\tdef]": 0.0009425010648556054,- "tests/unit/pipelex/pipeline/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_rejects_unsanitized_input[abc\\x00def]": 0.00043287500739097595,- "tests/unit/pipelex/pipeline/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_rejects_unsanitized_input[abc\\x1b[31mfake]": 0.00044633407378569245,- "tests/unit/pipelex/pipeline/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_rejects_unsanitized_input[caf\\xe9]": 0.000809708028100431,- "tests/unit/pipelex/pipeline/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_rejects_unsanitized_input[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]": 0.0006942510372027755,- "tests/unit/pipelex/pipeline/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_round_trips_through_json": 0.0008127920445986092,+ "tests/unit/pipelex/system/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_copy_with_update_preserves_request_id": 0.000397041963879019,+ "tests/unit/pipelex/system/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_accepts_well_formed_input[11111111-2222-3333-4444-555555555555]": 0.0009628339903429151,+ "tests/unit/pipelex/system/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_accepts_well_formed_input[abc-123]": 0.0014607080374844372,+ "tests/unit/pipelex/system/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_accepts_well_formed_input[req_abc.123]": 0.0006407069158740342,+ "tests/unit/pipelex/system/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_accepts_well_formed_input[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]": 0.0878618760034442,+ "tests/unit/pipelex/system/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_defaults_to_none": 0.7452630839543417,+ "tests/unit/pipelex/system/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_rejects_unsanitized_input[abc\\ndef]": 0.0006059999577701092,+ "tests/unit/pipelex/system/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_rejects_unsanitized_input[abc\\rdef]": 0.00048191589303314686,+ "tests/unit/pipelex/system/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_rejects_unsanitized_input[abc\\tdef]": 0.0009425010648556054,+ "tests/unit/pipelex/system/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_rejects_unsanitized_input[abc\\x00def]": 0.00043287500739097595,+ "tests/unit/pipelex/system/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_rejects_unsanitized_input[abc\\x1b[31mfake]": 0.00044633407378569245,+ "tests/unit/pipelex/system/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_rejects_unsanitized_input[caf\\xe9]": 0.000809708028100431,+ "tests/unit/pipelex/system/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_rejects_unsanitized_input[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]": 0.0006942510372027755,+ "tests/unit/pipelex/system/test_job_metadata_request_id.py::TestJobMetadataRequestId::test_request_id_round_trips_through_json": 0.0008127920445986092,"tests/unit/pipelex/pipeline/test_load_libraries_and_activate.py::TestLoadLibrariesAndActivate::test_rejects_bare_string": 0.8094069579965435,"tests/unit/pipelex/pipeline/test_pipeline_manager.py::TestPipelineManagerRemoval::test_concurrent_duplicate_still_raises": 0.11257208295864984,"tests/unit/pipelex/pipeline/test_pipeline_manager.py::TestPipelineManagerRemoval::test_remove_is_tolerant_of_absent_key": 0.0003518330049701035,@@ -6448,713 +6448,713 @@"tests/unit/pipelex/pipeline/test_validation_report.py::TestBuildValidationReport::test_assembles_canonical_report_from_ingredients": 0.5700374170555733,"tests/unit/pipelex/pipeline/test_validation_report.py::TestBuildValidationReport::test_runnable_when_nothing_pending": 0.0008544999291189015,"tests/unit/pipelex/pipeline/test_validation_report.py::TestBuildValidationReport::test_warnings_ride_the_report_without_flipping_the_verdict": 0.11150670802453533,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_auth_error_is_configuration": 0.09650354302721098,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_bad_request[content_policy-Your request was rejected due to content_policy_violation-content-safety filters]": 0.10228562506381422,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_bad_request[generic_bad_request-Invalid parameter: max_tokens must be positive-content-None]": 0.09296412399271503,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_connection_error_is_transient": 0.0971504999906756,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_error_report_includes_category": 0.17281179095152766,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_generic_status_error_is_configuration": 0.09326908295042813,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_not_found_raises_llm_model_not_found_error": 0.1095094159245491,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_permission_denied_generic_is_configuration": 0.10860116605181247,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_permission_denied_quota_is_capacity": 0.10053837503073737,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_rate_limit[billing_limit-You have reached your billing limit-capacity-billing]": 0.10867196001345292,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_rate_limit[generic_rate_limit-rate_limit_error: Number of request tokens has exceeded your per-minute limit-transient-retry]": 0.7645912910229526,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_rate_limit[quota_exhaustion-Your account quota has been exceeded-capacity-billing]": 0.07468295801663771,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_server_error_is_transient": 0.08276549901347607,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_timeout_is_transient": 0.10367333400063217,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_provider_metadata_is_serialized_in_error_report": 0.003994416969362646,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc0-transient]": 0.0043344590230844915,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc1-transient]": 0.0027584590716287494,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc2-transient]": 0.006725833052769303,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc3-transient]": 0.09682087501278147,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_real_instructor_propagates_transport_error_raw": 0.014915540989022702,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_unrecognized_underlying_falls_back_to_unknown": 0.00788433401612565,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_auth_error_is_configuration": 0.009683623909950256,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_bad_request_content_policy": 0.004306874994654208,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_connection_error_is_transient": 0.00856116705108434,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_generic_status_error_is_configuration": 0.005449501040857285,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_not_found_raises_llm_model_not_found_error": 0.00444920890731737,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_permission_quota_is_capacity": 0.0030012489878572524,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_rate_limit_is_transient": 0.6751836240291595,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_rate_limit_quota_is_capacity": 0.00893249997170642,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_server_error_is_transient": 0.0044415409793145955,- "tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_timeout_is_transient": 0.004973916977178305,- "tests/unit/pipelex/plugins/anthropic/test_extract_anthropic_metadata.py::TestExtractAnthropicMetadata::test_body_without_error_type_yields_none_provider_error_code": 0.09317199897486717,- "tests/unit/pipelex/plugins/anthropic/test_extract_anthropic_metadata.py::TestExtractAnthropicMetadata::test_extracts_provider_error_code_from_body": 0.0011420410592108965,- "tests/unit/pipelex/plugins/anthropic/test_extract_anthropic_metadata.py::TestExtractAnthropicMetadata::test_extracts_retry_after_seconds_when_header_present": 0.002476707973983139,- "tests/unit/pipelex/plugins/anthropic/test_extract_anthropic_metadata.py::TestExtractAnthropicMetadata::test_extracts_status_code_and_request_id_from_rate_limit_error": 0.5974150839610957,- "tests/unit/pipelex/plugins/anthropic/test_extract_anthropic_metadata.py::TestExtractAnthropicMetadata::test_handles_connection_error_without_response": 0.0007832100382074714,- "tests/unit/pipelex/plugins/anthropic/test_extract_anthropic_metadata.py::TestExtractAnthropicMetadata::test_handles_timeout_error_without_response": 0.0007184169953688979,- "tests/unit/pipelex/plugins/anthropic/test_extract_anthropic_metadata.py::TestExtractAnthropicMetadata::test_retry_after_seconds_is_none_when_header_absent": 0.0022168330615386367,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_edit_routing.py::TestAzureImgGenWorkerEditRouting::test_multiple_input_images_send_bracketed_array_field_name": 0.0034926669322885573,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_edit_routing.py::TestAzureImgGenWorkerEditRouting::test_single_input_image_routes_to_edits_with_bare_image_field": 0.6896317090140656,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_edit_routing.py::TestAzureImgGenWorkerEditRouting::test_without_input_image_routes_to_generations_with_json_body": 0.08947891602292657,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_auth_401_is_check_credentials": 0.0057424159604124725,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_content_policy_400_is_change_input": 0.002310666022822261,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_generic_400_is_change_input": 0.0024717909400351346,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_malformed_json_response_is_wrapped": 0.002360916987527162,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_malformed_size_is_wrapped[1024xfoo]": 0.003319750016089529,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_malformed_size_is_wrapped[axb]": 0.005518499994650483,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_malformed_size_is_wrapped[wide x tall]": 0.08920641796430573,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_not_found_404_raises_img_gen_model_not_found_error": 0.002804792020469904,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_quota_402_is_check_billing": 0.002816332911606878,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_rate_limit_429_is_wait_and_retry_with_metadata": 1.5052694169571623,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_raw_response_body_excluded_from_message": 1.4062280000071041,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_server_error_500_is_ambiguous": 0.004474750952795148,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[ConnectError-transient]": 2.5529797910130583,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[ConnectTimeout-transient]": 2.6627599580097012,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[PoolTimeout-transient]": 1.1852776669547893,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[ReadError-ambiguous]": 0.003306458063889295,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[ReadTimeout-ambiguous]": 0.0037178750499151647,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[RemoteProtocolError-ambiguous]": 0.0026715409476310015,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[WriteError-ambiguous]": 0.0038128330488689244,- "tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[WriteTimeout-ambiguous]": 0.0026727919466793537,- "tests/unit/pipelex/plugins/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_connect_error_is_transient[connection_refused-transient-wait_and_retry]": 1.2601719579542987,- "tests/unit/pipelex/plugins/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_error_report_includes_category": 1.9611223329557106,- "tests/unit/pipelex/plugins/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_http_status_error_categorization[auth_error_401-401-Invalid subscription key-configuration-check_credentials]": 0.003143292968161404,- "tests/unit/pipelex/plugins/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_http_status_error_categorization[bad_request_400-400-Invalid parameter value-content-change_input]": 0.003783332009334117,- "tests/unit/pipelex/plugins/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_http_status_error_categorization[forbidden_403-403-Access denied-configuration-check_credentials]": 0.006405334046576172,- "tests/unit/pipelex/plugins/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_http_status_error_categorization[quota_exhausted_402-402-Quota exhausted for this subscription-capacity-check_billing]": 0.004725706996396184,- "tests/unit/pipelex/plugins/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_http_status_error_categorization[rate_limit_429-429-Rate limit exceeded-transient-wait_and_retry]": 1.5051855830824934,- "tests/unit/pipelex/plugins/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_http_status_error_categorization[server_error_500-500-Internal server error-ambiguous-wait_and_retry]": 0.002914208045694977,- "tests/unit/pipelex/plugins/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_read_timeout_is_ambiguous[read_timeout-ambiguous-wait_and_retry]": 0.0031447489745914936,- "tests/unit/pipelex/plugins/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_extracts_provider_error_code_from_flat_body": 0.0005203750333748758,- "tests/unit/pipelex/plugins/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_extracts_provider_error_code_from_nested_error": 0.0008557079709134996,- "tests/unit/pipelex/plugins/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_extracts_retry_after_seconds": 0.0009845830500125885,- "tests/unit/pipelex/plugins/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_extracts_status_code_and_request_id_from_status_error": 0.6877450830070302,- "tests/unit/pipelex/plugins/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_falls_back_to_apim_request_id_header": 0.0005152499652467668,- "tests/unit/pipelex/plugins/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_handles_connect_error_without_response": 0.002309083007276058,- "tests/unit/pipelex/plugins/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_handles_timeout_exception_without_response": 0.07422404200769961,- "tests/unit/pipelex/plugins/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_html_error_body_falls_back_to_raw_string": 0.0011707079829648137,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_no_reasoning_params_passes": 0.6333253319608048,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_reasoning_budget_raises_capability_error": 0.10045500099658966,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_reasoning_effort_raises_capability_error[high]": 0.0006532490369863808,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_reasoning_effort_raises_capability_error[low]": 0.0005029999883845448,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_reasoning_effort_raises_capability_error[max]": 0.0009548760135658085,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_reasoning_effort_raises_capability_error[medium]": 0.0009756249492056668,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_reasoning_effort_raises_capability_error[minimal]": 0.001263874932192266,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_reasoning_effort_raises_capability_error[none]": 0.0012780828983522952,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_client_error_classification[access_denied-AccessDeniedException-User is not authorized to access this model-configuration-None]": 0.04392787499818951,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_client_error_classification[model_not_ready-ModelNotReadyException-Model is not ready for inference-transient-None]": 0.04230287502286956,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_client_error_classification[service_quota_exceeded-ServiceQuotaExceededException-You have exceeded the service quota for this resource-capacity-billing]": 0.0447365430300124,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_client_error_classification[service_unavailable-ServiceUnavailableException-Service is temporarily unavailable-transient-None]": 0.04846124997129664,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_client_error_classification[throttling_generic-ThrottlingException-Rate exceeded for model-transient-retry]": 0.7045383328804746,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_client_error_classification[throttling_quota-ThrottlingException-Account quota limit exceeded for this model-capacity-billing]": 0.04733887605834752,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_client_error_classification[validation_exception-ValidationException-Invalid parameter: max_tokens must be positive-content-None]": 0.053452707012183964,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_error_report_capacity_not_retryable": 0.05662145803216845,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_error_report_configuration_not_retryable": 0.15266304212855175,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_error_report_transient_is_retryable": 0.052882083982694894,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[AccessDeniedException-Not authorized-403-configuration-check_credentials]": 0.041975874977651983,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[ModelNotReadyException-Model not ready-503-transient-wait_and_retry]": 0.06660075002582744,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[ServiceQuotaExceededException-Quota exceeded-400-capacity-check_billing]": 0.7323029589606449,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[ServiceUnavailableException-Service unavailable-503-transient-wait_and_retry]": 0.045190790959168226,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[ThrottlingException-Quota limit exceeded for this account-429-capacity-check_billing]": 0.048159999889321625,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[ThrottlingException-Rate exceeded-429-transient-wait_and_retry]": 0.03193950100103393,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[UnknownAWSException-Mystery client failure-409-configuration-change_input]": 0.04850020905723795,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[UnknownAWSException-Mystery failure-500-transient-wait_and_retry]": 0.05789645796176046,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[ValidationException-Invalid request-400-content-change_input]": 0.05804504198022187,- "tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_resource_not_found_raises_llm_model_not_found_error": 0.17933650000486523,- "tests/unit/pipelex/plugins/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_access_denied_exception": 0.0006530009559355676,- "tests/unit/pipelex/plugins/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_full_response_metadata": 0.734608999977354,- "tests/unit/pipelex/plugins/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_invalid_retry_after_returns_none": 0.0007213320350274444,- "tests/unit/pipelex/plugins/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_malformed_response_dict_tolerated": 0.0005272509879432619,- "tests/unit/pipelex/plugins/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_minimal_response_no_metadata": 0.0016857509617693722,- "tests/unit/pipelex/plugins/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_provider_error_code_set_per_aws_code[AccessDeniedException-403]": 0.0011891659814864397,- "tests/unit/pipelex/plugins/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_provider_error_code_set_per_aws_code[ResourceNotFoundException-404]": 0.0025342919398099184,- "tests/unit/pipelex/plugins/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_provider_error_code_set_per_aws_code[ServiceUnavailableException-503]": 0.08767220901791006,- "tests/unit/pipelex/plugins/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_provider_error_code_set_per_aws_code[ThrottlingException-429]": 0.0008432490285485983,- "tests/unit/pipelex/plugins/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_provider_error_code_set_per_aws_code[ValidationException-400]": 0.00231983297271654,- "tests/unit/pipelex/plugins/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_service_quota_exceeded": 0.0009096669964492321,- "tests/unit/pipelex/plugins/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_error_report_for_file_not_found": 0.005509249051101506,- "tests/unit/pipelex/plugins/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_error_report_for_io_error": 0.09122120903339237,- "tests/unit/pipelex/plugins/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_extraction_error_categorization[file_not_found-FileNotFoundError-No such file: /tmp/missing.pdf-content-change_input]": 0.6428934999858029,- "tests/unit/pipelex/plugins/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_extraction_error_categorization[invalid_format_value_error-ValueError-Unsupported document format: .xyz-content-change_input]": 0.005909416999202222,- "tests/unit/pipelex/plugins/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_extraction_error_categorization[io_error_transient-OSError-Disk read error on /tmp/doc.pdf-transient-wait_and_retry]": 0.0037224169936962426,- "tests/unit/pipelex/plugins/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_extraction_error_categorization[not_implemented_error_subclass_of_runtime_error-NotImplementedError-Conversion path not implemented-content-change_input]": 0.003704999980982393,- "tests/unit/pipelex/plugins/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_extraction_error_categorization[permission_error_subclass_of_os_error-PermissionError-Permission denied: /tmp/restricted.pdf-transient-wait_and_retry]": 0.004674124007578939,- "tests/unit/pipelex/plugins/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_extraction_error_categorization[runtime_conversion_failure-RuntimeError-Docling engine crashed during conversion-content-change_input]": 0.003466084017418325,- "tests/unit/pipelex/plugins/docling/test_docling_worker_semantic.py::TestDoclingWorkerSemantic::test_local_exception_carries_semantic_user_action[FileNotFoundError-No such file-content-change_input]": 0.7891574579989538,- "tests/unit/pipelex/plugins/docling/test_docling_worker_semantic.py::TestDoclingWorkerSemantic::test_local_exception_carries_semantic_user_action[OSError-Disk read error-transient-wait_and_retry]": 0.1270837920019403,- "tests/unit/pipelex/plugins/docling/test_docling_worker_semantic.py::TestDoclingWorkerSemantic::test_local_exception_carries_semantic_user_action[RuntimeError-Conversion failed-content-change_input]": 0.002808750024996698,- "tests/unit/pipelex/plugins/docling/test_docling_worker_semantic.py::TestDoclingWorkerSemantic::test_local_exception_carries_semantic_user_action[ValueError-Unsupported format-content-change_input]": 0.002998167008627206,- "tests/unit/pipelex/plugins/fal/test_extract_fal_metadata.py::TestExtractFalMetadata::test_extracts_provider_error_code_from_body": 0.0005143340677022934,- "tests/unit/pipelex/plugins/fal/test_extract_fal_metadata.py::TestExtractFalMetadata::test_extracts_retry_after_seconds": 0.0002916679950430989,- "tests/unit/pipelex/plugins/fal/test_extract_fal_metadata.py::TestExtractFalMetadata::test_extracts_status_code_and_request_id": 0.6760690829250962,- "tests/unit/pipelex/plugins/fal/test_extract_fal_metadata.py::TestExtractFalMetadata::test_generic_client_error_has_no_status": 0.0006187920225784183,- "tests/unit/pipelex/plugins/fal/test_extract_fal_metadata.py::TestExtractFalMetadata::test_missing_credentials_has_no_status": 0.07593049999559298,- "tests/unit/pipelex/plugins/fal/test_extract_fal_metadata.py::TestExtractFalMetadata::test_quota_402_carries_status_code": 0.0011462500551715493,- "tests/unit/pipelex/plugins/fal/test_extract_fal_metadata.py::TestExtractFalMetadata::test_timeout_error_has_no_status_or_request_id": 0.0006157909519970417,- "tests/unit/pipelex/plugins/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_generic_fal_error_carries_metadata": 0.16251575003843755,- "tests/unit/pipelex/plugins/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[400-content-change_input]": 0.05624583305325359,- "tests/unit/pipelex/plugins/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[401-configuration-check_credentials]": 0.05946824897546321,- "tests/unit/pipelex/plugins/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[402-capacity-check_billing]": 0.6991344169946387,- "tests/unit/pipelex/plugins/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[403-configuration-check_credentials]": 0.05315504100872204,- "tests/unit/pipelex/plugins/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[409-configuration-change_input]": 0.06685670797014609,- "tests/unit/pipelex/plugins/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[422-configuration-change_input]": 0.05884158401750028,- "tests/unit/pipelex/plugins/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[429-transient-wait_and_retry]": 0.04905833298107609,- "tests/unit/pipelex/plugins/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[500-transient-wait_and_retry]": 0.06360195897286758,- "tests/unit/pipelex/plugins/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_not_found_404_raises_img_gen_model_not_found_error": 0.06130008306354284,- "tests/unit/pipelex/plugins/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_timeout_carries_metadata": 0.04984549997607246,- "tests/unit/pipelex/plugins/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_error_report_includes_category": 0.1404630429460667,- "tests/unit/pipelex/plugins/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_generic_client_error_is_transient[generic_fal_error-transient-wait_and_retry]": 0.04918933392036706,- "tests/unit/pipelex/plugins/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_http_error_categorization[auth_error_401-401-Invalid API key-configuration-check_credentials]": 0.06530633306829259,- "tests/unit/pipelex/plugins/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_http_error_categorization[bad_request_400-400-Invalid parameter-content-change_input]": 0.07202274998417124,- "tests/unit/pipelex/plugins/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_http_error_categorization[forbidden_403-403-Access denied-configuration-check_credentials]": 0.04117508395574987,- "tests/unit/pipelex/plugins/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_http_error_categorization[quota_exhausted_402-402-Payment required - quota exhausted-capacity-check_billing]": 0.05280620895791799,- "tests/unit/pipelex/plugins/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_http_error_categorization[rate_limit_429-429-Too many requests-transient-wait_and_retry]": 0.8503246249747463,- "tests/unit/pipelex/plugins/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_http_error_categorization[server_error_500-500-Internal server error-transient-wait_and_retry]": 0.06670491601107642,- "tests/unit/pipelex/plugins/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_missing_credentials_is_configuration[missing_fal_key-configuration-check_credentials]": 0.052213625982403755,- "tests/unit/pipelex/plugins/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_timeout_error_is_transient[request_timeout-transient-wait_and_retry]": 0.07802925107534975,- "tests/unit/pipelex/plugins/gateway/test_extract_gateway_metadata.py::TestExtractGatewayMetadata::test_extracts_provider_error_code_from_body": 0.0009515420533716679,- "tests/unit/pipelex/plugins/gateway/test_extract_gateway_metadata.py::TestExtractGatewayMetadata::test_extracts_retry_after_seconds": 0.0010002090130001307,- "tests/unit/pipelex/plugins/gateway/test_extract_gateway_metadata.py::TestExtractGatewayMetadata::test_extracts_status_code_and_request_id": 0.7494938749587163,- "tests/unit/pipelex/plugins/gateway/test_extract_gateway_metadata.py::TestExtractGatewayMetadata::test_falls_back_to_portkey_trace_id": 0.004495540983043611,- "tests/unit/pipelex/plugins/gateway/test_extract_gateway_metadata.py::TestExtractGatewayMetadata::test_handles_connection_error_without_response": 0.1010214589186944,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_client.py::TestGatewayCompletionsClient::test_happy_path_wires_endpoint_placeholder_key_and_portkey_headers[False-false]": 0.0019174600020051003,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_client.py::TestGatewayCompletionsClient::test_happy_path_wires_endpoint_placeholder_key_and_portkey_headers[True-true]": 0.0027307909913361073,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_client.py::TestGatewayCompletionsClient::test_make_extras_delegates_to_gateway_factory": 0.15883445797953755,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_client.py::TestGatewayCompletionsClient::test_wrong_sdk_variant_raises_factory_error": 0.7438844999996945,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_azure_falls_back_to_choices_content": 0.0004434999427758157,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_azure_page_schema_violation_is_wrapped": 0.0006528330268338323,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_azure_top_level_pages_with_images": 0.000450958963483572,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_azure_without_pages_anywhere_raises": 0.0005802909727208316,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_deepseek_falls_back_to_choices_content": 0.00036737503251060843,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_deepseek_page_schema_violation_is_wrapped": 0.00028441601898521185,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_deepseek_scaled_down_image_logs_warning_and_parses": 0.001403666043188423,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_deepseek_top_level_pages_happy_path": 0.0006237099878489971,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_deepseek_without_pages_anywhere_raises": 0.0002566250041127205,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_dispatch_routes_each_handle_to_its_parser[azure-document-intelligence-_make_extract_output_from_response_azure]": 0.0014429170987568796,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_dispatch_routes_each_handle_to_its_parser[deepseek-ocr-_make_extract_output_from_response_deepseek]": 0.0007743738824501634,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_dispatch_routes_each_handle_to_its_parser[linkup-fetch-_make_extract_output_from_response_linkup_fetch]": 0.0020815419848077,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_dispatch_routes_each_handle_to_its_parser[mistral-document-ai-2505-_make_extract_output_from_response_mistral]": 0.7923520829644985,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_dispatch_unknown_handle_raises_value_error": 0.0011297919554635882,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_content_string_falsy_paths_return_none[content-not-a-str]": 0.0003164589870721102,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_content_string_falsy_paths_return_none[message-not-a-dict]": 0.0002674169954843819,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[choices-not-a-list]": 0.0007342490134760737,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[content-json-not-a-list]": 0.0032419589697383344,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[content-malformed-json]": 0.0004332089447416365,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[content-not-a-str]": 0.00035074999323114753,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[empty-choices]": 0.0007815829594619572,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[message-missing]": 0.0004570829914882779,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[message-not-a-dict]": 0.0032101680408231914,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[no-choices]": 0.0009200000786222517,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_happy_path": 0.0005679590394720435,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_linkup_fetch_happy_path": 0.00026641704607754946,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_linkup_fetch_invalid_fetch_result_is_wrapped[json-but-not-a-fetch-result]": 0.0003505829954519868,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_linkup_fetch_invalid_fetch_result_is_wrapped[malformed-json]": 0.14916095801163465,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_linkup_fetch_without_content_raises": 0.0003021259908564389,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_mistral_page_schema_violation_is_wrapped": 0.0007956239860504866,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_mistral_pages_with_images_corner_handling": 0.0023152920184656978,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_mistral_without_pages_raises": 0.0002965009771287441,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_base64_document_becomes_image_url_part_with_auto_detail": 0.0012082509929314256,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_images_become_image_url_parts[None-auto]": 0.004663415951654315,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_images_become_image_url_parts[high-high]": 0.0033287089318037033,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_images_become_image_url_parts[low-low]": 0.002862541936337948,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_local_path_image_raises_type_error": 0.0017131249769590795,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_non_base64_document_raises_type_error[http-url-document]": 0.006270999961998314,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_non_base64_document_raises_type_error[local-path-document]": 0.11764937598491088,- "tests/unit/pipelex/plugins/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_system_and_user_text": 0.7499994169920683,- "tests/unit/pipelex/plugins/gateway/test_gateway_extract_worker_semantic.py::TestGatewayExtractWorkerSemantic::test_genuine_not_found_404_raises_extract_model_not_found_error": 0.16757024999242276,- "tests/unit/pipelex/plugins/gateway/test_gateway_extract_worker_semantic.py::TestGatewayExtractWorkerSemantic::test_status_error_carries_semantic_user_action_via_web_fetch[AuthenticationError-401-configuration-check_credentials]": 0.05925649992423132,- "tests/unit/pipelex/plugins/gateway/test_gateway_extract_worker_semantic.py::TestGatewayExtractWorkerSemantic::test_status_error_carries_semantic_user_action_via_web_fetch[BadRequestError-400-content-change_input]": 0.052416999998968095,- "tests/unit/pipelex/plugins/gateway/test_gateway_extract_worker_semantic.py::TestGatewayExtractWorkerSemantic::test_status_error_carries_semantic_user_action_via_web_fetch[PermissionDeniedError-403-configuration-check_credentials]": 0.057568208081647754,- "tests/unit/pipelex/plugins/gateway/test_gateway_extract_worker_semantic.py::TestGatewayExtractWorkerSemantic::test_status_error_carries_semantic_user_action_via_web_fetch[RateLimitError-429-transient-wait_and_retry]": 0.7971754579921253,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_exact_size_derives_grid_cell_from_rules": 0.003993874997831881,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_exact_size_without_rules_raises": 0.005631374951917678,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_non_gemini_img_gen_job_gets_no_image_config": 0.08196566696278751,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_sized_request_with_unknown_taxonomy_raises": 0.002905374043621123,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_tier_beyond_taxonomy_raises": 0.0012916669948026538,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_tier_threads_image_size_token": 0.7851641260203905,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_tier_without_rules_raises": 0.002342584019061178,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_unset_size_omits_image_size": 0.0012402081047184765,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_unset_size_with_unknown_taxonomy_keeps_ratio_only_mapping": 0.004479666997212917,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_unset_size_without_rules_keeps_ratio_only_mapping": 0.0013623330742120743,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_edit_routing.py::TestGatewayImgGenWorkerEditRouting::test_with_input_image_but_no_generations_segment_raises": 0.12476212496403605,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_edit_routing.py::TestGatewayImgGenWorkerEditRouting::test_with_input_image_routes_to_edits_with_multipart_body": 0.7001076259766705,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_edit_routing.py::TestGatewayImgGenWorkerEditRouting::test_with_multiple_input_images_sends_bracketed_array_field_name": 0.007383374962955713,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_edit_routing.py::TestGatewayImgGenWorkerEditRouting::test_without_input_image_routes_to_generations_as_before": 0.003033416927792132,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_malformed_body.py::TestGatewayImgGenWorkerMalformedBody::test_flux_2_pro_undecodable_image_is_wrapped[corrupt-image-bytes]": 0.047433750005438924,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_malformed_body.py::TestGatewayImgGenWorkerMalformedBody::test_flux_2_pro_undecodable_image_is_wrapped[invalid-base64-padding]": 0.002868042094632983,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_malformed_body.py::TestGatewayImgGenWorkerMalformedBody::test_flux_2_pro_undecodable_image_is_wrapped[unrecognized-file-type]": 0.10473437403561547,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_malformed_body.py::TestGatewayImgGenWorkerMalformedBody::test_gpt_image_malformed_size_is_wrapped[1024xfoo]": 0.00424908398417756,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_malformed_body.py::TestGatewayImgGenWorkerMalformedBody::test_gpt_image_malformed_size_is_wrapped[axb]": 0.6908727900008671,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_malformed_body.py::TestGatewayImgGenWorkerMalformedBody::test_gpt_image_malformed_size_is_wrapped[wide x tall]": 0.0037289989995770156,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_semantic.py::TestGatewayImgGenWorkerSemantic::test_genuine_not_found_404_raises_img_gen_model_not_found_error": 0.0048459580284543335,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_semantic.py::TestGatewayImgGenWorkerSemantic::test_quota_keywords_in_rate_limit_message_is_check_billing": 0.11616758396849036,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_semantic.py::TestGatewayImgGenWorkerSemantic::test_status_error_carries_semantic_user_action[AuthenticationError-401-configuration-check_credentials]": 0.0070201680064201355,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_semantic.py::TestGatewayImgGenWorkerSemantic::test_status_error_carries_semantic_user_action[BadRequestError-400-content-change_input]": 0.0023741250624880195,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_semantic.py::TestGatewayImgGenWorkerSemantic::test_status_error_carries_semantic_user_action[PermissionDeniedError-403-configuration-check_credentials]": 0.004057666927110404,- "tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_semantic.py::TestGatewayImgGenWorkerSemantic::test_status_error_carries_semantic_user_action[RateLimitError-429-transient-wait_and_retry]": 0.7251464569708332,- "tests/unit/pipelex/plugins/gateway/test_gateway_quota_detection.py::TestGatewayQuotaDetection::test_extract_worker_propagates_quota_as_capacity": 0.17883979197358713,- "tests/unit/pipelex/plugins/gateway/test_gateway_quota_detection.py::TestGatewayQuotaDetection::test_imggen_worker_propagates_rate_limit_as_transient": 0.6571976660052314,- "tests/unit/pipelex/plugins/gateway/test_gateway_quota_detection.py::TestGatewayQuotaDetection::test_search_worker_propagates_auth_error_as_configuration": 0.059942000021692365,- "tests/unit/pipelex/plugins/gateway/test_gateway_search_worker_semantic.py::TestGatewaySearchWorkerSemantic::test_genuine_not_found_404_raises_search_model_not_found_error": 0.14604275103192776,- "tests/unit/pipelex/plugins/gateway/test_gateway_search_worker_semantic.py::TestGatewaySearchWorkerSemantic::test_status_error_carries_semantic_user_action[AuthenticationError-401-configuration-check_credentials]": 0.08933616598369554,- "tests/unit/pipelex/plugins/gateway/test_gateway_search_worker_semantic.py::TestGatewaySearchWorkerSemantic::test_status_error_carries_semantic_user_action[BadRequestError-400-content-change_input]": 0.06328933296026662,- "tests/unit/pipelex/plugins/gateway/test_gateway_search_worker_semantic.py::TestGatewaySearchWorkerSemantic::test_status_error_carries_semantic_user_action[PermissionDeniedError-403-configuration-check_credentials]": 0.057057416008319706,- "tests/unit/pipelex/plugins/gateway/test_gateway_search_worker_semantic.py::TestGatewaySearchWorkerSemantic::test_status_error_carries_semantic_user_action[RateLimitError-429-transient-wait_and_retry]": 0.7121589590096846,- "tests/unit/pipelex/plugins/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_authentication_error_carries_status_code_401": 0.000553084013517946,- "tests/unit/pipelex/plugins/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_body_is_the_response_details": 0.0010151659953407943,- "tests/unit/pipelex/plugins/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_body_without_error_or_status_yields_none_provider_error_code": 0.0006789998733438551,- "tests/unit/pipelex/plugins/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_extracts_provider_error_code_from_nested_error_status": 0.0003643330419436097,- "tests/unit/pipelex/plugins/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_extracts_provider_error_code_from_top_level_status": 0.001076124026440084,- "tests/unit/pipelex/plugins/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_extracts_retry_after_seconds_when_header_present": 0.0008978329715318978,- "tests/unit/pipelex/plugins/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_extracts_status_code_from_client_error": 0.7673368340474553,- "tests/unit/pipelex/plugins/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_handles_none_response_gracefully": 0.0006082920590415597,- "tests/unit/pipelex/plugins/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_handles_server_error_with_status_code_500": 0.0007840409525670111,- "tests/unit/pipelex/plugins/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_httpx_read_error_marked_as_network_error": 0.0006325420108623803,- "tests/unit/pipelex/plugins/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_httpx_remote_protocol_error_marked_as_network_error": 0.10175216698553413,- "tests/unit/pipelex/plugins/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_retry_after_seconds_is_none_when_header_absent": 0.0013923319638706744,- "tests/unit/pipelex/plugins/google/test_google_factory_tokens.py::TestGoogleFactoryTokens::test_no_thoughts_token_count_omits_output_reasoning": 0.0014721660409122705,- "tests/unit/pipelex/plugins/google/test_google_factory_tokens.py::TestGoogleFactoryTokens::test_thoughts_token_count_maps_to_output_reasoning": 0.6683750419761054,- "tests/unit/pipelex/plugins/google/test_google_factory_tokens.py::TestGoogleFactoryTokens::test_zero_thoughts_token_count_omits_output_reasoning": 0.1578170830034651,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_aspect_ratio_literal_mapping[landscape_4_1-4:1]": 0.0012369999894872308,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_aspect_ratio_literal_mapping[landscape_4_3-4:3]": 0.00040195893961936235,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_aspect_ratio_literal_mapping[landscape_8_1-8:1]": 0.002259331988170743,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_aspect_ratio_literal_mapping[portrait_1_4-1:4]": 0.0007789580267854035,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_aspect_ratio_literal_mapping[portrait_1_8-1:8]": 0.0014002910465933383,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_aspect_ratio_literal_mapping[square-1:1]": 1.0803586250403896,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_aspect_ratio_literal_rejects_portrait_9_21": 0.0007392929401248693,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_exact_grid_hit_derives_ratio_and_size[gemini_2_5-exact_size5-1:1-1K]": 0.0009071669192053378,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_exact_grid_hit_derives_ratio_and_size[gemini_3_flash-exact_size0-1:1-2K]": 0.00036524899769574404,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_exact_grid_hit_derives_ratio_and_size[gemini_3_flash-exact_size1-16:9-2K]": 0.00039641704643145204,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_exact_grid_hit_derives_ratio_and_size[gemini_3_flash-exact_size2-16:9-4K]": 0.0010272920480929315,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_exact_grid_hit_derives_ratio_and_size[gemini_3_flash-exact_size3-1:4-1K]": 0.0008153749513439834,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_exact_grid_hit_derives_ratio_and_size[gemini_3_flash_lite-exact_size6-1:1-1K]": 0.0004613759811036289,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_exact_grid_hit_derives_ratio_and_size[gemini_3_pro-exact_size4-1:1-2K]": 0.0008113340009003878,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_exact_grid_miss_suggests_nearest_cells": 0.0029203740414232016,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_exact_grid_respects_taxonomy_ratio_gating": 0.00033249991247430444,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_exact_grid_respects_taxonomy_size_gating": 0.0006805000593885779,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_2_5_rejects_banner_ratios[landscape_4_1]": 0.0003397089894860983,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_2_5_rejects_banner_ratios[landscape_8_1]": 0.0006631670403294265,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_2_5_rejects_banner_ratios[portrait_1_4]": 0.0003457499551586807,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_2_5_rejects_banner_ratios[portrait_1_8]": 0.0003019999712705612,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_2_5_rejects_non_1k_sizes[2K]": 0.00032120803371071815,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_2_5_rejects_non_1k_sizes[4K]": 0.00029570801416411996,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_dimensions[landscape_16_9-4K-expected_dimensions13]": 0.00032108399318531156,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_dimensions[landscape_4_1-1K-expected_dimensions0]": 0.00039166701026260853,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_dimensions[landscape_4_1-2K-expected_dimensions1]": 0.11596920998999849,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_dimensions[landscape_4_1-4K-expected_dimensions2]": 0.6970823340234347,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_dimensions[landscape_8_1-1K-expected_dimensions3]": 0.001177875034045428,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_dimensions[landscape_8_1-2K-expected_dimensions4]": 0.0008002500399015844,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_dimensions[landscape_8_1-4K-expected_dimensions5]": 0.000804667070042342,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_dimensions[portrait_1_4-1K-expected_dimensions6]": 0.0012117930455133319,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_dimensions[portrait_1_4-2K-expected_dimensions7]": 0.0006977489683777094,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_dimensions[portrait_1_4-4K-expected_dimensions8]": 0.0011233339319005609,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_dimensions[portrait_1_8-1K-expected_dimensions9]": 0.0008165419567376375,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_dimensions[portrait_1_8-2K-expected_dimensions10]": 0.0006857910193502903,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_dimensions[portrait_1_8-4K-expected_dimensions11]": 0.00037512503331527114,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_dimensions[square-1K-expected_dimensions12]": 0.0003204579697921872,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_lite_full_ratio_set_at_1k[landscape_4_1-expected_dimensions0]": 0.0007260419079102576,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_lite_full_ratio_set_at_1k[portrait_1_8-expected_dimensions1]": 0.00034662592224776745,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_lite_full_ratio_set_at_1k[square-expected_dimensions2]": 0.0008062489796429873,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_lite_rejects_non_1k_sizes[2K]": 0.00025774992536753416,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_flash_lite_rejects_non_1k_sizes[4K]": 0.00031037506414577365,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_grids_are_consistent": 0.0005398750072345138,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_pro_rejects_banner_ratios[landscape_4_1]": 0.00032687600469216704,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_pro_rejects_banner_ratios[landscape_8_1]": 0.0003792499774135649,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_pro_rejects_banner_ratios[portrait_1_4]": 0.0007572919712401927,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_pro_rejects_banner_ratios[portrait_1_8]": 0.001955874962732196,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_pro_standard_ratios_work_at_every_size[landscape_21_9-1K-expected_dimensions2]": 0.00040049897506833076,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_pro_standard_ratios_work_at_every_size[portrait_2_3-4K-expected_dimensions1]": 0.0005209169466979802,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_gemini_3_pro_standard_ratios_work_at_every_size[square-2K-expected_dimensions0]": 0.0005621660384349525,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_image_size_for_tier[1k-1K]": 0.0003844999591819942,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_image_size_for_tier[2k-2K]": 0.0005954589578323066,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_image_size_for_tier[4k-4K]": 0.0002919169492088258,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_image_size_for_tier_rejects_half_k": 0.00045133300591260195,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_non_google_taxonomy_rejected": 0.0003629170823842287,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_portrait_9_21_rejected_for_every_taxonomy[gemini_2_5]": 0.0008703750791028142,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_portrait_9_21_rejected_for_every_taxonomy[gemini_3_flash]": 0.00029887602431699634,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_portrait_9_21_rejected_for_every_taxonomy[gemini_3_flash_lite]": 0.0006997079472057521,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_portrait_9_21_rejected_for_every_taxonomy[gemini_3_pro]": 0.0006525409989990294,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_resolve_image_config_from_exact_size": 0.0003536250442266464,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_resolve_image_config_from_tier[gemini_2_5-square-1k-expected2]": 0.00041420903289690614,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_resolve_image_config_from_tier[gemini_3_flash-landscape_16_9-4k-expected1]": 0.0005214589182287455,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_resolve_image_config_from_tier[gemini_3_flash-square-2k-expected0]": 0.00040258298395201564,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_resolve_image_config_rejects_half_k": 0.10270616709021851,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_resolve_image_config_rejects_tier_beyond_taxonomy": 0.0009400420822203159,- "tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py::TestGoogleImgGenFactory::test_resolve_image_config_unset_size_omits_wire_param": 0.00024845695588737726,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_auth_401_is_check_credentials": 0.010689418006222695,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_content_policy_400_is_change_input": 0.005041709111537784,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_forbidden_403_is_check_credentials": 0.0034825410111807287,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_generic_400_is_change_input": 0.003934666980057955,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_generic_rate_limit_429_is_wait_and_retry": 0.004034541023429483,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_httpx_transport_error_is_wrapped_as_transient[ConnectError-ConnectError]": 0.00417037500301376,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_httpx_transport_error_is_wrapped_as_transient[ConnectTimeout-ConnectTimeout]": 0.005507499969098717,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_httpx_transport_error_is_wrapped_as_transient[ReadError-TransportError]": 0.002193207968957722,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_httpx_transport_error_is_wrapped_as_transient[RemoteProtocolError-TransportError]": 0.004721831995993853,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_not_found_404_is_change_model_with_metadata": 0.6173785010469146,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_quota_429_is_check_billing": 0.003479791048448533,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_server_error_500_is_wait_and_retry": 0.0028552919975481927,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_to_error_report_serializes_metadata": 0.11918562598293647,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_unhandled_4xx_is_change_input": 0.0068383749458007514,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_payload.py::TestGoogleImgGenWorkerPayload::test_exact_size_derives_ratio_and_image_size": 0.11708350095432252,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_payload.py::TestGoogleImgGenWorkerPayload::test_tier_is_sent_as_image_size_token": 0.6627818749984726,- "tests/unit/pipelex/plugins/google/test_google_img_gen_worker_payload.py::TestGoogleImgGenWorkerPayload::test_unset_size_omits_image_size_param": 0.055673249007668346,- "tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc0-transient]": 0.00753995799459517,- "tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc1-transient]": 0.0031964569934643805,- "tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc2-transient]": 0.005548708082642406,- "tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc3-transient]": 0.0935692919883877,- "tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_real_instructor_propagates_client_error_raw": 0.032922834041528404,- "tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_unrecognized_underlying_falls_back_to_unknown": 0.002879749983549118,- "tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_auth_error_is_configuration": 0.005140124005265534,- "tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_bad_request_content_policy": 0.0048125419998541474,- "tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_bad_request_generic_is_content": 0.0020560849807225168,- "tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_forbidden_is_configuration": 0.004812707949895412,- "tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_not_found_raises_llm_model_not_found_error": 0.00467112596379593,- "tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_rate_limit_generic_is_transient": 0.0030721660587005317,- "tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_rate_limit_quota_is_capacity": 0.001957542961463332,- "tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_server_error_is_transient": 0.8318311239709146,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_adaptive_mode_effort_maps_to_thinking_level[high-HIGH]": 0.051022332976572216,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_adaptive_mode_effort_maps_to_thinking_level[low-LOW]": 0.0504538330133073,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_adaptive_mode_effort_maps_to_thinking_level[max-HIGH]": 0.0576068329392001,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_adaptive_mode_effort_maps_to_thinking_level[medium-MEDIUM]": 0.04933637595968321,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_adaptive_mode_effort_maps_to_thinking_level[minimal-MINIMAL]": 0.047577251971233636,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_adaptive_mode_effort_maps_to_thinking_level[xhigh-HIGH]": 0.08263883297331631,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_adaptive_mode_effort_none_disables_thinking": 0.0477262909989804,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_effort_budget_capped_by_max_tokens": 0.15760812506778166,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_explicit_budget_capped_by_max_tokens": 0.03628849907545373,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_explicit_budget_passes_through[adaptive]": 0.0449495839420706,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_explicit_budget_passes_through[manual]": 0.047865001019090414,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_manual_mode_effort_maps_to_budget[high-16384]": 0.034890625975094736,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_manual_mode_effort_maps_to_budget[low-1024]": 0.04561924992594868,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_manual_mode_effort_maps_to_budget[max-65536]": 0.058163999929092824,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_manual_mode_effort_maps_to_budget[medium-5000]": 0.04389375098980963,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_manual_mode_effort_maps_to_budget[minimal-512]": 0.6401406249497086,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_manual_mode_effort_maps_to_budget[xhigh-32768]": 0.060106582939624786,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_manual_mode_effort_none_disables_thinking": 0.04209383303532377,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_no_reasoning_params_returns_none": 0.0011485840659588575,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_reasoning_budget_with_thinking_mode_none_raises": 0.0021814590436406434,- "tests/unit/pipelex/plugins/google/test_google_reasoning.py::TestGoogleReasoning::test_thinking_mode_none_raises_capability_error": 0.001520959020126611,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_error_report_capacity_not_retryable": 0.11345979198813438,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_error_report_includes_category_and_retryable": 0.0024321239325217903,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[auth_401-401-Request had invalid authentication credentials-configuration-None]": 0.0047098330105654895,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[bad_request_400_content_policy-400-Your request was rejected due to content_policy_violation-content-safety filters]": 0.006043499975930899,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[bad_request_400_generic-400-Invalid parameter: temperature must be between 0 and 2-content-None]": 0.004798583977390081,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[bad_request_400_safety-400-The response was blocked by safety systems-content-safety filters]": 0.0037908749654889107,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[forbidden_403-403-Permission denied on resource project-configuration-None]": 0.003991166013292968,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[other_client_error_fallback-422-Unprocessable entity-configuration-review]": 0.004396958043798804,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[rate_limit_429_billing-429-Billing account is not active-capacity-billing]": 0.0037403739988803864,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[rate_limit_429_generic-429-Too many requests, please slow down-transient-retry]": 0.004564833070617169,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[rate_limit_429_quota-429-Resource has been exhausted (e.g. check quota)-capacity-billing]": 0.006634083052631468,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_not_found_raises_img_gen_model_not_found_error": 0.004885165952146053,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_server_error_has_transient_category": 0.0021666239481419325,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[auth_401-401-Request had invalid authentication credentials-configuration-None]": 0.7037427079048939,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[bad_request_400_content_policy-400-Your request was rejected due to content_policy_violation-content-safety filters]": 0.0036702080396935344,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[bad_request_400_generic-400-Invalid parameter: temperature must be between 0 and 2-content-None]": 0.0034324589651077986,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[bad_request_400_safety-400-The response was blocked by safety systems-content-safety filters]": 0.0024901660508476198,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[forbidden_403-403-Permission denied on resource project-configuration-None]": 0.0032320839818567038,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[other_client_error_fallback-422-Unprocessable entity-configuration-review]": 0.0032060419907793403,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[rate_limit_429_billing-429-Billing account is not active-capacity-billing]": 0.0041545419953763485,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[rate_limit_429_generic-429-Too many requests, please slow down-transient-retry]": 0.003245999978389591,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[rate_limit_429_quota-429-Resource has been exhausted (e.g. check quota)-capacity-billing]": 0.0032684169709682465,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_not_found_raises_llm_model_not_found_error": 0.0016914589214138687,- "tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_server_error_has_transient_category": 0.0023327100789174438,- "tests/unit/pipelex/plugins/huggingface/test_extract_huggingface_metadata.py::TestExtractHuggingFaceMetadata::test_extracts_provider_error_code_from_body": 0.0011378350318409503,- "tests/unit/pipelex/plugins/huggingface/test_extract_huggingface_metadata.py::TestExtractHuggingFaceMetadata::test_extracts_retry_after_seconds": 0.0010934160090982914,- "tests/unit/pipelex/plugins/huggingface/test_extract_huggingface_metadata.py::TestExtractHuggingFaceMetadata::test_extracts_status_code_and_request_id": 0.6940172070171684,- "tests/unit/pipelex/plugins/huggingface/test_extract_huggingface_metadata.py::TestExtractHuggingFaceMetadata::test_falls_back_to_amzn_trace_id_header": 0.0010267490288242698,- "tests/unit/pipelex/plugins/huggingface/test_extract_huggingface_metadata.py::TestExtractHuggingFaceMetadata::test_html_body_falls_back_to_raw_string": 0.0015825829468667507,- "tests/unit/pipelex/plugins/huggingface/test_extract_huggingface_metadata.py::TestExtractHuggingFaceMetadata::test_inference_timeout_has_no_status": 0.11183375009568408,- "tests/unit/pipelex/plugins/huggingface/test_extract_huggingface_metadata.py::TestExtractHuggingFaceMetadata::test_unread_streaming_response_body_is_tolerated": 0.0007516669575124979,- "tests/unit/pipelex/plugins/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_error_report_includes_category": 0.08187208394519985,- "tests/unit/pipelex/plugins/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_hf_http_error_categorization[auth_error_401-401-Invalid token-configuration-check_credentials]": 0.002001041022595018,- "tests/unit/pipelex/plugins/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_hf_http_error_categorization[bad_request_400-400-Invalid parameters-content-change_input]": 0.0031623750110156834,- "tests/unit/pipelex/plugins/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_hf_http_error_categorization[forbidden_403-403-Access denied-configuration-check_credentials]": 0.002880499989259988,- "tests/unit/pipelex/plugins/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_hf_http_error_categorization[quota_exhausted_402-402-Quota exhausted-capacity-check_billing]": 0.006911541044246405,- "tests/unit/pipelex/plugins/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_hf_http_error_categorization[rate_limit_429-429-Rate limit exceeded-transient-wait_and_retry]": 0.70404124900233,- "tests/unit/pipelex/plugins/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_hf_http_error_categorization[server_error_503-503-Service unavailable-transient-wait_and_retry]": 0.003849749977234751,- "tests/unit/pipelex/plugins/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_hf_http_error_categorization[unknown_status_none-None-Unknown error occurred-unknown-contact_support]": 0.003696666972246021,- "tests/unit/pipelex/plugins/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_inference_timeout_is_transient[inference_timeout-transient-wait_and_retry]": 0.0029814569861628115,- "tests/unit/pipelex/plugins/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[400-content-change_input]": 0.0029828340047970414,- "tests/unit/pipelex/plugins/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[401-configuration-check_credentials]": 0.0038325420464389026,- "tests/unit/pipelex/plugins/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[402-capacity-check_billing]": 0.004008248972240835,- "tests/unit/pipelex/plugins/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[403-configuration-check_credentials]": 0.004207833029795438,- "tests/unit/pipelex/plugins/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[409-configuration-change_input]": 0.0036356649943627417,- "tests/unit/pipelex/plugins/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[422-configuration-change_input]": 0.0029232490342110395,- "tests/unit/pipelex/plugins/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[429-transient-wait_and_retry]": 0.7024525000015274,- "tests/unit/pipelex/plugins/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[500-transient-wait_and_retry]": 0.0034299170365557075,- "tests/unit/pipelex/plugins/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_not_found_404_raises_img_gen_model_not_found_error": 0.0018828329630196095,- "tests/unit/pipelex/plugins/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_timeout_carries_metadata": 0.07388929295120761,- "tests/unit/pipelex/plugins/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupAuthenticationError-configuration-check_credentials]": 0.758778124989476,- "tests/unit/pipelex/plugins/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupFailedFetchError-transient-wait_and_retry]": 0.00928883400047198,- "tests/unit/pipelex/plugins/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupFetchResponseTooLargeError-content-change_input]": 0.002633000025525689,- "tests/unit/pipelex/plugins/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupFetchUrlIsFileError-content-change_input]": 0.009703040996100754,- "tests/unit/pipelex/plugins/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupInsufficientCreditError-capacity-check_billing]": 0.0028187090065330267,- "tests/unit/pipelex/plugins/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupInvalidRequestError-content-change_input]": 0.004493125015869737,- "tests/unit/pipelex/plugins/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupNoResultError-content-change_input]": 0.006144042068626732,- "tests/unit/pipelex/plugins/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupTimeoutError-transient-wait_and_retry]": 0.002711457957047969,- "tests/unit/pipelex/plugins/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupTooManyRequestsError-transient-wait_and_retry]": 0.004706042003817856,- "tests/unit/pipelex/plugins/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupUnknownError-transient-wait_and_retry]": 0.12060995900537819,- "tests/unit/pipelex/plugins/linkup/test_linkup_search_worker_semantic.py::TestLinkupSearchWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupAuthenticationError-configuration-check_credentials]": 0.6025707500521094,- "tests/unit/pipelex/plugins/linkup/test_linkup_search_worker_semantic.py::TestLinkupSearchWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupInsufficientCreditError-capacity-check_billing]": 0.002214748994447291,- "tests/unit/pipelex/plugins/linkup/test_linkup_search_worker_semantic.py::TestLinkupSearchWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupInvalidRequestError-content-change_input]": 0.002351124945562333,- "tests/unit/pipelex/plugins/linkup/test_linkup_search_worker_semantic.py::TestLinkupSearchWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupNoResultError-content-change_input]": 0.002119248965755105,- "tests/unit/pipelex/plugins/linkup/test_linkup_search_worker_semantic.py::TestLinkupSearchWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupTimeoutError-transient-wait_and_retry]": 0.002984248916618526,- "tests/unit/pipelex/plugins/linkup/test_linkup_search_worker_semantic.py::TestLinkupSearchWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupTooManyRequestsError-transient-wait_and_retry]": 0.004840167006477714,- "tests/unit/pipelex/plugins/linkup/test_linkup_search_worker_semantic.py::TestLinkupSearchWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupUnknownError-transient-wait_and_retry]": 0.1231739580980502,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[auth_error-LinkupAuthenticationError-Invalid API key-configuration-check_credentials]": 0.7209928740048781,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[failed_fetch-LinkupFailedFetchError-Could not fetch URL-transient-wait_and_retry]": 0.00385262502823025,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[insufficient_credit-LinkupInsufficientCreditError-No credits remaining-capacity-check_billing]": 0.002539290930144489,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[invalid_request-LinkupInvalidRequestError-Bad URL format-content-change_input]": 0.0028632080648094416,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[no_result-LinkupNoResultError-No results found-content-change_input]": 0.001505332998931408,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[rate_limit-LinkupTooManyRequestsError-Too many requests-transient-wait_and_retry]": 0.002657832927070558,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[response_too_large-LinkupFetchResponseTooLargeError-Response exceeds size limit-content-change_input]": 0.0022727090399712324,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[timeout-LinkupTimeoutError-Request timed out-transient-wait_and_retry]": 0.0022444589994847775,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[unknown_error-LinkupUnknownError-Something went wrong-transient-wait_and_retry]": 0.0032704579061828554,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[url_is_file-LinkupFetchUrlIsFileError-URL points to a file-content-change_input]": 0.014233582944143564,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_report_for_auth": 0.0016693329671397805,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_report_for_no_result": 0.1232919170288369,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_categorization[auth_error-LinkupAuthenticationError-Invalid API key-configuration-check_credentials]": 0.002318251004908234,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_categorization[insufficient_credit-LinkupInsufficientCreditError-No credits remaining-capacity-check_billing]": 0.0021485419711098075,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_categorization[invalid_request-LinkupInvalidRequestError-Bad query format-content-change_input]": 0.002841001027263701,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_categorization[no_result-LinkupNoResultError-No results found-content-change_input]": 0.0026816659956239164,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_categorization[rate_limit-LinkupTooManyRequestsError-Too many requests-transient-wait_and_retry]": 0.0029103760025464,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_categorization[timeout-LinkupTimeoutError-Request timed out-transient-wait_and_retry]": 0.0024354999768547714,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_categorization[unknown_error-LinkupUnknownError-Something went wrong-transient-wait_and_retry]": 0.002050166018307209,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_report_for_no_result": 0.001239707984495908,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_report_for_rate_limit": 0.0016781260492280126,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_user_action_uses_specific_kind[LinkupAuthenticationError-check_credentials]": 0.0020325840450823307,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_user_action_uses_specific_kind[LinkupInsufficientCreditError-check_billing]": 0.0015971240354701877,- "tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_user_action_uses_specific_kind[LinkupTooManyRequestsError-wait_and_retry]": 0.002127709041815251,- "tests/unit/pipelex/plugins/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_authentication_error_carries_status_code_401": 0.0005607510101981461,- "tests/unit/pipelex/plugins/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_body_without_type_or_code_yields_none_provider_error_code": 0.00043879193253815174,- "tests/unit/pipelex/plugins/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_extracts_provider_error_code_from_body_top_level": 0.0006419160054065287,- "tests/unit/pipelex/plugins/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_extracts_provider_error_code_from_nested_error_section": 0.00036875001387670636,- "tests/unit/pipelex/plugins/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_extracts_retry_after_seconds_when_header_present": 0.0005087080062367022,- "tests/unit/pipelex/plugins/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_extracts_status_code_from_rate_limit_error": 0.7526783740031533,- "tests/unit/pipelex/plugins/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_falls_back_to_code_when_type_is_absent": 0.00035641604335978627,- "tests/unit/pipelex/plugins/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_handles_no_response_error_without_status_code": 0.000643167004454881,- "tests/unit/pipelex/plugins/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_handles_non_json_body_gracefully": 0.0007555829943157732,- "tests/unit/pipelex/plugins/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_httpx_read_error_marked_as_network_error": 0.0006110839894972742,- "tests/unit/pipelex/plugins/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_httpx_remote_protocol_error_marked_as_network_error": 0.09651870798552409,- "tests/unit/pipelex/plugins/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_retry_after_seconds_is_none_when_header_absent": 0.00037183199310675263,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_httpx_transport_error_document_path_is_wrapped_as_transient": 0.0017256679711863399,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_httpx_transport_error_image_path_is_wrapped_as_transient[ConnectError-ConnectError]": 0.0015959579613991082,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_httpx_transport_error_image_path_is_wrapped_as_transient[ConnectTimeout-ConnectTimeout]": 0.004951207956764847,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_httpx_transport_error_image_path_is_wrapped_as_transient[ReadError-TransportError]": 0.0027542909956537187,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_httpx_transport_error_image_path_is_wrapped_as_transient[RemoteProtocolError-TransportError]": 0.0036143760662525892,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_404_raises_extract_model_not_found_error": 0.11992429092060775,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[400-Invalid request-content-change_input]": 0.0021922090090811253,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[400-Request blocked by content_policy-content-change_input]": 0.0038202079595066607,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[401-Invalid API key-configuration-check_credentials]": 0.0014871659805066884,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[402-Payment required: insufficient credits-capacity-check_billing]": 4.569618250010535,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[403-Forbidden-configuration-check_credentials]": 0.0012878329725936055,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[418-I'm a teapot-configuration-change_input]": 0.002302499022334814,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[429-Rate limit exceeded-transient-wait_and_retry]": 0.0027290830039419234,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[429-Too many requests, quota exceeded-capacity-check_billing]": 0.003215832985006273,- "tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[500-Server error-transient-wait_and_retry]": 0.004251415084581822,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_make_mistral_document_url_chunk_base64_second_pass_failure_raises": 0.0026197079569101334,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_make_mistral_document_url_chunk_base64_two_pass": 0.002034915960393846,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_make_mistral_document_url_chunk_http_kept": 0.0022839170414954424,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_make_mistral_document_url_chunk_local_path_uploads": 0.006296252075117081,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_make_mistral_image_url_chunk_from_uri[base64_becomes_data_url-prepared1-data:image/png;base64,QUJD]": 0.002303791989106685,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_make_mistral_image_url_chunk_from_uri[http_url_kept_as_is-prepared0-https://example.com/pic.png]": 0.6731687919818796,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_make_mistral_image_url_chunk_local_path_raises": 0.0029940000968053937,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_upload_file_to_mistral_for_ocr": 0.11048804095480591,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_clean_base64_already_clean_returned_unchanged[already_jpeg-\\xff\\xd8\\xff\\xe0\\x00\\x10JFIF-jpeg-payload-bytes]": 1.0057918330421671,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_clean_base64_already_clean_returned_unchanged[already_png-\\x89PNG\\r\\n\\x1a\\npng-payload-bytes]": 0.24756220798008144,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_clean_base64_invalid_input_returns_original": 0.14700274995993823,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_clean_base64_no_magic_in_window_returns_original[magic_beyond_scan_window-\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\xff\\xd8\\xff\\xe0\\x00\\x10JFIF-jpeg-payload-bytes]": 0.15909945900784805,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_clean_base64_no_magic_in_window_returns_original[no_magic_at_all-\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03]": 0.24615870701381937,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_clean_base64_strips_prepended_metadata[jpeg_with_metadata-\\xff\\xd8\\xff\\xe0\\x00\\x10JFIF-jpeg-payload-bytes]": 0.2588554591056891,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_clean_base64_strips_prepended_metadata[png_with_metadata-\\x89PNG\\r\\n\\x1a\\npng-payload-bytes]": 0.24924604198895395,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_make_extract_output_from_mistral_response": 0.29120770801091567,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_make_extracted_image_full_coords": 0.1348403340089135,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_make_extracted_image_missing_base64_raises": 0.00043704197742044926,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_make_extracted_image_partial_coords[all_coords_missing-None-None-None-None]": 0.19087970798136666,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_make_extracted_image_partial_coords[only_top_left-10-20-None-None]": 0.14302600000519305,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_make_extracted_image_partial_coords[only_x_pair-10-None-110-None]": 0.13816304301144555,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_mistral_document_url[prepared0-data:application/pdf;base64,UERG]": 0.0021871239878237247,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_mistral_document_url[prepared1-https://example.com/file.pdf]": 0.0021246669930405915,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_mistral_document_url_local_path_raises": 0.003957791021093726,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_mistral_image_url[prepared0-data:image/png;base64,QUJD]": 0.001854291942436248,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_mistral_image_url[prepared1-https://example.com/pic.png]": 0.0026375409797765315,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_mistral_image_url_local_path_raises": 0.0028927509556524456,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_nb_tokens_by_category[120-45-120-45]": 0.0014902909751981497,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_nb_tokens_by_category[None-7-0-7]": 0.11465483391657472,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_nb_tokens_by_category[None-None-0-0]": 0.0026359179755672812,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_openai_typed[None-auto]": 0.0034780409769155085,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_openai_typed[high-high]": 0.0038617499521933496,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_openai_typed[low-low]": 0.004567500029224902,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_openai_typed_local_path_raises": 0.002064415020868182,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_system_first_then_user": 0.0023575000232085586,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_text_only": 0.6201311660115607,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_with_documents": 0.003711916971951723,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_with_images_preserves_order": 0.003906500991433859,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_without_user_content[None-0]": 0.0011740830377675593,- "tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_without_user_content[only the system speaks-1]": 0.0024089569924399257,- "tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc0-transient]": 0.001511958020273596,- "tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc1-transient]": 0.0016357909771613777,- "tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc2-transient]": 0.0028357089031487703,- "tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc3-transient]": 0.080162082973402,- "tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_real_instructor_propagates_transport_error_raw": 0.015089168038684875,- "tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_unrecognized_underlying_falls_back_to_unknown": 0.00310008495580405,- "tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_auth_error_is_configuration": 0.003188417002093047,- "tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_bad_request_content_policy": 0.002380457939580083,- "tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_bad_request_generic_is_content": 0.003118499997071922,- "tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_not_found_raises_llm_model_not_found_error": 0.008205167017877102,- "tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_payment_required_is_capacity": 0.001787375018466264,- "tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_rate_limit_generic_is_transient": 0.6892320830374956,- "tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_rate_limit_quota_is_capacity": 0.0046830010251142085,- "tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_server_error_is_transient": 0.0027604589704424143,- "tests/unit/pipelex/plugins/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_no_reasoning_params_returns_unset": 0.1029832920175977,- "tests/unit/pipelex/plugins/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_budget_with_thinking_mode_manual_raises": 0.0011930829496122897,- "tests/unit/pipelex/plugins/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_budget_with_thinking_mode_none_raises": 0.6146743330173194,- "tests/unit/pipelex/plugins/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_effort_maps_correctly[high-reasoning]": 0.049458999012131244,- "tests/unit/pipelex/plugins/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_effort_maps_correctly[low-reasoning]": 0.04307795793283731,- "tests/unit/pipelex/plugins/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_effort_maps_correctly[max-reasoning]": 0.08309545792872086,- "tests/unit/pipelex/plugins/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_effort_maps_correctly[medium-reasoning]": 0.03857920708833262,- "tests/unit/pipelex/plugins/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_effort_maps_correctly[minimal-reasoning]": 0.05505695892497897,- "tests/unit/pipelex/plugins/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_effort_maps_correctly[xhigh-reasoning]": 0.0658296249457635,- "tests/unit/pipelex/plugins/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_thinking_mode_adaptive_raises_capability_error": 0.0009455410181544721,- "tests/unit/pipelex/plugins/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_thinking_mode_none_raises_capability_error": 0.0007906249957159162,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_error_report_includes_category": 0.12617995805339888,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_error_classification[auth_error_401-401-Invalid API key provided-configuration-None]": 0.003390624886378646,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_error_classification[bad_request_content_policy_400-400-Your request was rejected due to content_policy_violation-content-safety filters]": 0.006085040979087353,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_error_classification[bad_request_generic_400-400-Invalid parameter: unsupported document format-content-None]": 0.0049479990266263485,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_error_classification[payment_required_402-402-Payment required: insufficient credits-capacity-billing]": 0.003380166948772967,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_error_classification[rate_limit_generic_429-429-Rate limit exceeded. Please retry after 20s-transient-retry]": 0.009094666049350053,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_error_classification[rate_limit_quota_429-429-Rate limit reached: your account quota has been exceeded-capacity-billing]": 0.006380208011250943,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_error_classification[server_error_503-503-Service temporarily unavailable-transient-None]": 0.002621250052470714,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_not_found_raises_extract_model_not_found_error": 0.00267129298299551,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_error_report_capacity_not_retryable": 0.002723249956034124,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_error_report_transient_is_retryable": 0.0033409989555366337,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[auth_error_401-401-Invalid API key provided-configuration-None]": 0.005281999008730054,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[bad_request_content_policy_400-400-Your request was rejected due to content_policy_violation-content-safety filters]": 0.004938958969432861,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[bad_request_generic_400-400-Invalid parameter: temperature must be between 0 and 1-content-None]": 0.004484874953050166,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[forbidden_403-403-You do not have access to this resource-configuration-None]": 0.003084167023189366,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[payment_required_402-402-Payment required: insufficient credits-capacity-billing]": 0.7111298750387505,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[rate_limit_generic_429-429-Rate limit exceeded. Please retry after 20s-transient-retry]": 0.009335833019576967,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[rate_limit_quota_429-429-Rate limit reached: your account quota has been exceeded-capacity-billing]": 0.25820795906474814,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[server_error_500-500-Internal server error-transient-None]": 0.00608941592508927,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_not_found_raises_llm_model_not_found_error": 0.003072290972340852,- "tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_unhandled_4xx_is_configuration": 0.005268584005534649,- "tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_authentication_error_carries_status_code_401": 0.002957999997306615,- "tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_body_without_type_or_code_yields_none_provider_error_code": 0.0004706250037997961,- "tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_extracts_provider_error_code_from_type_attribute": 0.0010739579447545111,- "tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_extracts_retry_after_seconds_when_header_present": 0.0009375010267831385,- "tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_extracts_status_code_and_request_id_from_rate_limit_error": 0.6193286250345409,- "tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_falls_back_to_code_when_type_is_absent": 0.0008880830137059093,- "tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_handles_connection_error_without_response": 0.0018172090058214962,- "tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_handles_timeout_error_without_response": 0.0009407500037923455,- "tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_not_found_error_carries_status_code_404": 0.12328750098822638,- "tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_retry_after_seconds_clamps_past_http_date_to_zero": 0.0011989170452579856,- "tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_retry_after_seconds_is_none_for_unparseable_value": 0.0009895419352687895,- "tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_retry_after_seconds_is_none_when_header_absent": 0.0008665420464240015,- "tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_retry_after_seconds_parses_future_http_date": 0.0016388750518672168,- "tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_auth_error_is_configuration_check_credentials": 0.06117670796811581,- "tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_connection_error_is_transient": 0.06198904104530811,- "tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_content_policy_bad_request_is_content_change_input": 0.0548653329606168,- "tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_generic_bad_request_is_content_change_input": 0.06064695690292865,- "tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_generic_status_error_409_is_configuration": 0.04784804198425263,- "tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_generic_status_error_503_is_transient": 0.13771183299832046,- "tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_not_found_raises_img_gen_model_not_found_error_with_change_model": 0.06013304099906236,- "tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_permission_denied_is_configuration_check_credentials": 0.04533641703892499,- "tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_quota_is_capacity_check_billing": 0.050767957989592105,- "tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_rate_limit_is_transient": 0.826022250985261,- "tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_server_error_is_transient": 0.05353008396923542,- "tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_timeout_is_transient": 0.05418816697783768,- "tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_no_reasoning_params_returns_none": 0.0016487909015268087,- "tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_budget_raises_capability_error": 0.0009077920694835484,- "tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_budget_with_thinking_mode_none_raises": 0.10600370896281675,- "tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_effort_maps_correctly[high-high]": 0.048049084027297795,- "tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_effort_maps_correctly[low-low]": 0.08139487501466647,- "tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_effort_maps_correctly[max-xhigh]": 0.055296125065069646,- "tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_effort_maps_correctly[medium-medium]": 0.04663979104952887,- "tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_effort_maps_correctly[minimal-minimal]": 0.07849170692497864,- "tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_effort_maps_correctly[none-none]": 0.7399095420259982,- "tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_effort_maps_correctly[xhigh-xhigh]": 0.049666040984448045,- "tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_thinking_mode_adaptive_raises_capability_error": 0.0007780419546179473,- "tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_thinking_mode_none_raises_capability_error": 0.0011189999640919268,- "tests/unit/pipelex/plugins/openai/test_openai_completions_usage_capture.py::TestOpenAICompletionsUsageCapture::test_factory_maps_basic_usage": 0.6151112089282833,- "tests/unit/pipelex/plugins/openai/test_openai_completions_usage_capture.py::TestOpenAICompletionsUsageCapture::test_factory_maps_cached_audio_and_reasoning_details": 0.0014989180490374565,- "tests/unit/pipelex/plugins/openai/test_openai_completions_usage_capture.py::TestOpenAICompletionsUsageCapture::test_worker_gen_text_captures_usage": 0.0036747920094057918,- "tests/unit/pipelex/plugins/openai/test_openai_completions_usage_capture.py::TestOpenAICompletionsUsageCapture::test_worker_gen_text_no_usage_leaves_empty": 0.08017408289015293,- "tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc0-transient]": 0.004208291997201741,- "tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc1-transient]": 0.0017005839617922902,- "tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc2-transient]": 0.15127799997571856,- "tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_real_instructor_propagates_transport_error_raw": 0.33356933400500566,- "tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_unrecognized_underlying_falls_back_to_unknown": 0.0029266250785440207,- "tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_auth_error_is_configuration": 0.004242540919221938,- "tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_bad_request_content_policy": 0.0038973750779405236,- "tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_bad_request_generic_is_content": 0.00565191701753065,- "tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_connection_error_is_transient": 0.00403724901843816,- "tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_not_found_is_configuration": 0.004396583943162113,- "tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_rate_limit_is_transient": 0.6468827079515904,- "tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_rate_limit_quota_is_capacity": 0.006082250038161874,- "tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_timeout_is_transient": 0.004419000004418194,- "tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_authentication_error_is_configuration_check_credentials": 0.0021175420260988176,- "tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_connection_error_is_transient": 0.003264416998717934,- "tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_content_policy_bad_request_is_content_change_input": 0.006152042013127357,- "tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_error_report_includes_provider_metadata": 0.1026959580485709,- "tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_generic_bad_request_is_content_change_input": 0.004358667065389454,- "tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_internal_server_error_is_transient": 0.0036700828932225704,- "tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_not_found_raises_img_gen_model_not_found_error_with_change_model": 0.003696041996590793,- "tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_permission_denied_is_configuration_check_credentials": 0.0038649989292025566,- "tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_quota_exhausted_is_capacity_with_check_billing": 0.005643542041070759,- "tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_rate_limit_is_transient_with_wait_and_retry": 0.6539237070828676,- "tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_timeout_is_transient": 0.00149891700129956,- "tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_usage_capture.py::TestOpenAIImgGenWorkerUsageCapture::test_worker_captures_img_gen_usage": 0.8421038339729421,- "tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_no_reasoning_params_returns_none": 0.000509166915435344,- "tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_budget_raises_capability_error": 0.0010169989545829594,- "tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_budget_with_thinking_mode_none_raises": 0.12266637594439089,- "tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_effort_maps_correctly[high-high]": 0.05973316705785692,- "tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_effort_maps_correctly[low-low]": 0.04036812495905906,- "tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_effort_maps_correctly[max-xhigh]": 0.053742292046081275,- "tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_effort_maps_correctly[medium-medium]": 0.0496343340491876,- "tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_effort_maps_correctly[minimal-minimal]": 0.04827412503072992,- "tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_effort_maps_correctly[none-none]": 0.8735435830312781,- "tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_effort_maps_correctly[xhigh-xhigh]": 0.078382418025285,- "tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_thinking_mode_adaptive_raises_capability_error": 0.0018397510284557939,- "tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_thinking_mode_none_raises_capability_error": 0.000567167007829994,- "tests/unit/pipelex/plugins/openai/test_openai_responses_usage_capture.py::TestOpenAIResponsesUsageCapture::test_factory_maps_basic_usage": 0.6513618730823509,- "tests/unit/pipelex/plugins/openai/test_openai_responses_usage_capture.py::TestOpenAIResponsesUsageCapture::test_factory_maps_cached_and_reasoning_details": 0.0006895410479046404,- "tests/unit/pipelex/plugins/openai/test_openai_responses_usage_capture.py::TestOpenAIResponsesUsageCapture::test_worker_gen_text_captures_usage": 0.0038405010709539056,- "tests/unit/pipelex/plugins/openai/test_openai_responses_usage_capture.py::TestOpenAIResponsesUsageCapture::test_worker_gen_text_no_usage_leaves_empty": 0.10269862599670887,- "tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc0-transient]": 0.0024986659991554916,- "tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc1-transient]": 0.005501790961716324,- "tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc2-transient]": 0.07966695801587775,- "tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_real_instructor_propagates_transport_error_raw": 0.05249029101105407,- "tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_unrecognized_underlying_falls_back_to_unknown": 0.0029968750313855708,- "tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_auth_error_is_configuration": 0.003166917071212083,- "tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_bad_request_content_policy": 0.0019579160143621266,- "tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_bad_request_generic_is_content": 0.0029777089366689324,- "tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_connection_error_is_transient": 0.0033682089997455478,- "tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_not_found_raises_llm_model_not_found_error": 0.0023881239467300475,- "tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_rate_limit_is_transient": 0.7271886239177547,- "tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_rate_limit_quota_is_capacity": 0.003742999047972262,- "tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_timeout_is_transient": 0.0034763760631904006,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_auth_error_has_configuration_category": 0.0038245419273152947,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_bad_request[blocked_by_safety-The response was blocked by safety systems-content-safety filters]": 0.005733208963647485,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_bad_request[content_policy-Your request was rejected due to content_policy_violation-content-safety filters]": 0.0027672919677570462,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_bad_request[generic_bad_request-Invalid parameter: temperature must be between 0 and 2-content-None]": 0.0046098739840090275,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_connection_error_has_transient_category": 0.002226084005087614,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_not_found_has_configuration_category": 0.003160207939799875,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_rate_limit[generic_rate_limit-Rate limit exceeded. Please retry after 20s-transient-retry]": 0.593930667033419,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_rate_limit[quota_exceeded-You exceeded your current quota, please check your plan-capacity-billing]": 0.006564542010892183,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_rate_limit[quota_insufficient-Error: insufficient_quota - you have exceeded your billing limit-capacity-billing]": 0.005315874994266778,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_timeout[api_timeout-Request timed out-transient]": 0.00286079099169001,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_unhandled_4xx_is_configuration[_make_openai_conflict_error]": 0.002633458061609417,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_unhandled_4xx_is_configuration[_make_openai_unprocessable_error]": 0.0032207079930230975,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_error_report_capacity_not_retryable": 0.08994912501657382,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_error_report_includes_category_and_retryable": 0.003071292012464255,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_img_gen_auth_error": 0.004427957988809794,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_img_gen_rate_limit_transient": 0.003384625946637243,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_img_gen_unhandled_4xx_is_configuration": 0.0035126670845784247,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_responses_llm_rate_limit_quota": 0.0023602090077474713,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_responses_llm_rate_limit_transient": 0.0028809169307351112,- "tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_responses_llm_unhandled_4xx_is_configuration": 0.0049176670727320015,- "tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_error_handling.py::TestPypdfium2WorkerErrorHandling::test_error_report_for_file_not_found": 0.0025235419743694365,- "tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_error_handling.py::TestPypdfium2WorkerErrorHandling::test_error_report_for_os_error_is_retryable": 0.20976099895779043,- "tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_error_handling.py::TestPypdfium2WorkerErrorHandling::test_extraction_error_categorization[file_not_found-FileNotFoundError-No such file: /tmp/missing.pdf-content-change_input]": 0.8257286259322427,- "tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_error_handling.py::TestPypdfium2WorkerErrorHandling::test_extraction_error_categorization[invalid_pdf_format-ValueError-Not a valid PDF file-content-change_input]": 0.004610333999153227,- "tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_error_handling.py::TestPypdfium2WorkerErrorHandling::test_extraction_error_categorization[io_error_transient-OSError-Permission denied: /tmp/locked.pdf-transient-wait_and_retry]": 0.0021767090074718,- "tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_error_handling.py::TestPypdfium2WorkerErrorHandling::test_extraction_error_categorization[runtime_extraction_failure-RuntimeError-Failed to parse PDF structure-content-change_input]": 0.0017903330735862255,- "tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_semantic.py::TestPypdfium2WorkerSemantic::test_local_exception_carries_semantic_user_action[FileNotFoundError-No such file-content-change_input]": 0.6885997920180671,- "tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_semantic.py::TestPypdfium2WorkerSemantic::test_local_exception_carries_semantic_user_action[OSError-Disk read error-transient-wait_and_retry]": 0.10657879296923056,- "tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_semantic.py::TestPypdfium2WorkerSemantic::test_local_exception_carries_semantic_user_action[RuntimeError-PDF parsing failed-content-change_input]": 0.0036087919725105166,- "tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_semantic.py::TestPypdfium2WorkerSemantic::test_local_exception_carries_semantic_user_action[ValueError-Invalid PDF-content-change_input]": 0.004504915908910334,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_auth_error_is_configuration": 0.09650354302721098,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_bad_request[content_policy-Your request was rejected due to content_policy_violation-content-safety filters]": 0.10228562506381422,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_bad_request[generic_bad_request-Invalid parameter: max_tokens must be positive-content-None]": 0.09296412399271503,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_connection_error_is_transient": 0.0971504999906756,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_error_report_includes_category": 0.17281179095152766,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_generic_status_error_is_configuration": 0.09326908295042813,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_not_found_raises_llm_model_not_found_error": 0.1095094159245491,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_permission_denied_generic_is_configuration": 0.10860116605181247,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_permission_denied_quota_is_capacity": 0.10053837503073737,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_rate_limit[billing_limit-You have reached your billing limit-capacity-billing]": 0.10867196001345292,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_rate_limit[generic_rate_limit-rate_limit_error: Number of request tokens has exceeded your per-minute limit-transient-retry]": 0.7645912910229526,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_rate_limit[quota_exhaustion-Your account quota has been exceeded-capacity-billing]": 0.07468295801663771,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_server_error_is_transient": 0.08276549901347607,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py::TestAnthropicWorkerErrorHandling::test_timeout_is_transient": 0.10367333400063217,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_provider_metadata_is_serialized_in_error_report": 0.003994416969362646,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc0-transient]": 0.0043344590230844915,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc1-transient]": 0.0027584590716287494,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc2-transient]": 0.006725833052769303,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc3-transient]": 0.09682087501278147,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_real_instructor_propagates_transport_error_raw": 0.014915540989022702,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_unrecognized_underlying_falls_back_to_unknown": 0.00788433401612565,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_auth_error_is_configuration": 0.009683623909950256,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_bad_request_content_policy": 0.004306874994654208,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_connection_error_is_transient": 0.00856116705108434,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_generic_status_error_is_configuration": 0.005449501040857285,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_not_found_raises_llm_model_not_found_error": 0.00444920890731737,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_permission_quota_is_capacity": 0.0030012489878572524,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_rate_limit_is_transient": 0.6751836240291595,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_rate_limit_quota_is_capacity": 0.00893249997170642,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_server_error_is_transient": 0.0044415409793145955,+ "tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py::TestAnthropicWorkerObjectErrorHandling::test_wrapped_timeout_is_transient": 0.004973916977178305,+ "tests/unit/pipelex/providers/anthropic/test_extract_anthropic_metadata.py::TestExtractAnthropicMetadata::test_body_without_error_type_yields_none_provider_error_code": 0.09317199897486717,+ "tests/unit/pipelex/providers/anthropic/test_extract_anthropic_metadata.py::TestExtractAnthropicMetadata::test_extracts_provider_error_code_from_body": 0.0011420410592108965,+ "tests/unit/pipelex/providers/anthropic/test_extract_anthropic_metadata.py::TestExtractAnthropicMetadata::test_extracts_retry_after_seconds_when_header_present": 0.002476707973983139,+ "tests/unit/pipelex/providers/anthropic/test_extract_anthropic_metadata.py::TestExtractAnthropicMetadata::test_extracts_status_code_and_request_id_from_rate_limit_error": 0.5974150839610957,+ "tests/unit/pipelex/providers/anthropic/test_extract_anthropic_metadata.py::TestExtractAnthropicMetadata::test_handles_connection_error_without_response": 0.0007832100382074714,+ "tests/unit/pipelex/providers/anthropic/test_extract_anthropic_metadata.py::TestExtractAnthropicMetadata::test_handles_timeout_error_without_response": 0.0007184169953688979,+ "tests/unit/pipelex/providers/anthropic/test_extract_anthropic_metadata.py::TestExtractAnthropicMetadata::test_retry_after_seconds_is_none_when_header_absent": 0.0022168330615386367,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_edit_routing.py::TestAzureImgGenWorkerEditRouting::test_multiple_input_images_send_bracketed_array_field_name": 0.0034926669322885573,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_edit_routing.py::TestAzureImgGenWorkerEditRouting::test_single_input_image_routes_to_edits_with_bare_image_field": 0.6896317090140656,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_edit_routing.py::TestAzureImgGenWorkerEditRouting::test_without_input_image_routes_to_generations_with_json_body": 0.08947891602292657,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_auth_401_is_check_credentials": 0.0057424159604124725,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_content_policy_400_is_change_input": 0.002310666022822261,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_generic_400_is_change_input": 0.0024717909400351346,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_malformed_json_response_is_wrapped": 0.002360916987527162,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_malformed_size_is_wrapped[1024xfoo]": 0.003319750016089529,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_malformed_size_is_wrapped[axb]": 0.005518499994650483,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_malformed_size_is_wrapped[wide x tall]": 0.08920641796430573,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_not_found_404_raises_img_gen_model_not_found_error": 0.002804792020469904,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_quota_402_is_check_billing": 0.002816332911606878,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_rate_limit_429_is_wait_and_retry_with_metadata": 1.5052694169571623,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_raw_response_body_excluded_from_message": 1.4062280000071041,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_server_error_500_is_ambiguous": 0.004474750952795148,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[ConnectError-transient]": 2.5529797910130583,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[ConnectTimeout-transient]": 2.6627599580097012,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[PoolTimeout-transient]": 1.1852776669547893,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[ReadError-ambiguous]": 0.003306458063889295,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[ReadTimeout-ambiguous]": 0.0037178750499151647,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[RemoteProtocolError-ambiguous]": 0.0026715409476310015,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[WriteError-ambiguous]": 0.0038128330488689244,+ "tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py::TestAzureImgGenWorkerSemantic::test_transport_failure_categorization[WriteTimeout-ambiguous]": 0.0026727919466793537,+ "tests/unit/pipelex/providers/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_connect_error_is_transient[connection_refused-transient-wait_and_retry]": 1.2601719579542987,+ "tests/unit/pipelex/providers/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_error_report_includes_category": 1.9611223329557106,+ "tests/unit/pipelex/providers/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_http_status_error_categorization[auth_error_401-401-Invalid subscription key-configuration-check_credentials]": 0.003143292968161404,+ "tests/unit/pipelex/providers/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_http_status_error_categorization[bad_request_400-400-Invalid parameter value-content-change_input]": 0.003783332009334117,+ "tests/unit/pipelex/providers/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_http_status_error_categorization[forbidden_403-403-Access denied-configuration-check_credentials]": 0.006405334046576172,+ "tests/unit/pipelex/providers/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_http_status_error_categorization[quota_exhausted_402-402-Quota exhausted for this subscription-capacity-check_billing]": 0.004725706996396184,+ "tests/unit/pipelex/providers/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_http_status_error_categorization[rate_limit_429-429-Rate limit exceeded-transient-wait_and_retry]": 1.5051855830824934,+ "tests/unit/pipelex/providers/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_http_status_error_categorization[server_error_500-500-Internal server error-ambiguous-wait_and_retry]": 0.002914208045694977,+ "tests/unit/pipelex/providers/azure_rest/test_azure_worker_error_handling.py::TestAzureWorkerErrorHandling::test_read_timeout_is_ambiguous[read_timeout-ambiguous-wait_and_retry]": 0.0031447489745914936,+ "tests/unit/pipelex/providers/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_extracts_provider_error_code_from_flat_body": 0.0005203750333748758,+ "tests/unit/pipelex/providers/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_extracts_provider_error_code_from_nested_error": 0.0008557079709134996,+ "tests/unit/pipelex/providers/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_extracts_retry_after_seconds": 0.0009845830500125885,+ "tests/unit/pipelex/providers/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_extracts_status_code_and_request_id_from_status_error": 0.6877450830070302,+ "tests/unit/pipelex/providers/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_falls_back_to_apim_request_id_header": 0.0005152499652467668,+ "tests/unit/pipelex/providers/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_handles_connect_error_without_response": 0.002309083007276058,+ "tests/unit/pipelex/providers/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_handles_timeout_exception_without_response": 0.07422404200769961,+ "tests/unit/pipelex/providers/azure_rest/test_extract_azure_metadata.py::TestExtractAzureMetadata::test_html_error_body_falls_back_to_raw_string": 0.0011707079829648137,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_no_reasoning_params_passes": 0.6333253319608048,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_reasoning_budget_raises_capability_error": 0.10045500099658966,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_reasoning_effort_raises_capability_error[high]": 0.0006532490369863808,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_reasoning_effort_raises_capability_error[low]": 0.0005029999883845448,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_reasoning_effort_raises_capability_error[max]": 0.0009548760135658085,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_reasoning_effort_raises_capability_error[medium]": 0.0009756249492056668,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_reasoning_effort_raises_capability_error[minimal]": 0.001263874932192266,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_reasoning.py::TestBedrockReasoning::test_reasoning_effort_raises_capability_error[none]": 0.0012780828983522952,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_client_error_classification[access_denied-AccessDeniedException-User is not authorized to access this model-configuration-None]": 0.04392787499818951,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_client_error_classification[model_not_ready-ModelNotReadyException-Model is not ready for inference-transient-None]": 0.04230287502286956,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_client_error_classification[service_quota_exceeded-ServiceQuotaExceededException-You have exceeded the service quota for this resource-capacity-billing]": 0.0447365430300124,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_client_error_classification[service_unavailable-ServiceUnavailableException-Service is temporarily unavailable-transient-None]": 0.04846124997129664,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_client_error_classification[throttling_generic-ThrottlingException-Rate exceeded for model-transient-retry]": 0.7045383328804746,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_client_error_classification[throttling_quota-ThrottlingException-Account quota limit exceeded for this model-capacity-billing]": 0.04733887605834752,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_client_error_classification[validation_exception-ValidationException-Invalid parameter: max_tokens must be positive-content-None]": 0.053452707012183964,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_error_report_capacity_not_retryable": 0.05662145803216845,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_error_report_configuration_not_retryable": 0.15266304212855175,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_error_handling.py::TestBedrockWorkerErrorHandling::test_error_report_transient_is_retryable": 0.052882083982694894,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[AccessDeniedException-Not authorized-403-configuration-check_credentials]": 0.041975874977651983,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[ModelNotReadyException-Model not ready-503-transient-wait_and_retry]": 0.06660075002582744,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[ServiceQuotaExceededException-Quota exceeded-400-capacity-check_billing]": 0.7323029589606449,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[ServiceUnavailableException-Service unavailable-503-transient-wait_and_retry]": 0.045190790959168226,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[ThrottlingException-Quota limit exceeded for this account-429-capacity-check_billing]": 0.048159999889321625,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[ThrottlingException-Rate exceeded-429-transient-wait_and_retry]": 0.03193950100103393,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[UnknownAWSException-Mystery client failure-409-configuration-change_input]": 0.04850020905723795,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[UnknownAWSException-Mystery failure-500-transient-wait_and_retry]": 0.05789645796176046,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_client_error_carries_semantic_user_action[ValidationException-Invalid request-400-content-change_input]": 0.05804504198022187,+ "tests/unit/pipelex/providers/bedrock/test_bedrock_worker_semantic.py::TestBedrockWorkerSemantic::test_resource_not_found_raises_llm_model_not_found_error": 0.17933650000486523,+ "tests/unit/pipelex/providers/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_access_denied_exception": 0.0006530009559355676,+ "tests/unit/pipelex/providers/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_full_response_metadata": 0.734608999977354,+ "tests/unit/pipelex/providers/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_invalid_retry_after_returns_none": 0.0007213320350274444,+ "tests/unit/pipelex/providers/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_malformed_response_dict_tolerated": 0.0005272509879432619,+ "tests/unit/pipelex/providers/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_minimal_response_no_metadata": 0.0016857509617693722,+ "tests/unit/pipelex/providers/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_provider_error_code_set_per_aws_code[AccessDeniedException-403]": 0.0011891659814864397,+ "tests/unit/pipelex/providers/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_provider_error_code_set_per_aws_code[ResourceNotFoundException-404]": 0.0025342919398099184,+ "tests/unit/pipelex/providers/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_provider_error_code_set_per_aws_code[ServiceUnavailableException-503]": 0.08767220901791006,+ "tests/unit/pipelex/providers/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_provider_error_code_set_per_aws_code[ThrottlingException-429]": 0.0008432490285485983,+ "tests/unit/pipelex/providers/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_provider_error_code_set_per_aws_code[ValidationException-400]": 0.00231983297271654,+ "tests/unit/pipelex/providers/bedrock/test_extract_bedrock_metadata.py::TestExtractBedrockMetadata::test_service_quota_exceeded": 0.0009096669964492321,+ "tests/unit/pipelex/providers/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_error_report_for_file_not_found": 0.005509249051101506,+ "tests/unit/pipelex/providers/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_error_report_for_io_error": 0.09122120903339237,+ "tests/unit/pipelex/providers/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_extraction_error_categorization[file_not_found-FileNotFoundError-No such file: /tmp/missing.pdf-content-change_input]": 0.6428934999858029,+ "tests/unit/pipelex/providers/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_extraction_error_categorization[invalid_format_value_error-ValueError-Unsupported document format: .xyz-content-change_input]": 0.005909416999202222,+ "tests/unit/pipelex/providers/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_extraction_error_categorization[io_error_transient-OSError-Disk read error on /tmp/doc.pdf-transient-wait_and_retry]": 0.0037224169936962426,+ "tests/unit/pipelex/providers/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_extraction_error_categorization[not_implemented_error_subclass_of_runtime_error-NotImplementedError-Conversion path not implemented-content-change_input]": 0.003704999980982393,+ "tests/unit/pipelex/providers/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_extraction_error_categorization[permission_error_subclass_of_os_error-PermissionError-Permission denied: /tmp/restricted.pdf-transient-wait_and_retry]": 0.004674124007578939,+ "tests/unit/pipelex/providers/docling/test_docling_worker_error_handling.py::TestDoclingWorkerErrorHandling::test_extraction_error_categorization[runtime_conversion_failure-RuntimeError-Docling engine crashed during conversion-content-change_input]": 0.003466084017418325,+ "tests/unit/pipelex/providers/docling/test_docling_worker_semantic.py::TestDoclingWorkerSemantic::test_local_exception_carries_semantic_user_action[FileNotFoundError-No such file-content-change_input]": 0.7891574579989538,+ "tests/unit/pipelex/providers/docling/test_docling_worker_semantic.py::TestDoclingWorkerSemantic::test_local_exception_carries_semantic_user_action[OSError-Disk read error-transient-wait_and_retry]": 0.1270837920019403,+ "tests/unit/pipelex/providers/docling/test_docling_worker_semantic.py::TestDoclingWorkerSemantic::test_local_exception_carries_semantic_user_action[RuntimeError-Conversion failed-content-change_input]": 0.002808750024996698,+ "tests/unit/pipelex/providers/docling/test_docling_worker_semantic.py::TestDoclingWorkerSemantic::test_local_exception_carries_semantic_user_action[ValueError-Unsupported format-content-change_input]": 0.002998167008627206,+ "tests/unit/pipelex/providers/fal/test_extract_fal_metadata.py::TestExtractFalMetadata::test_extracts_provider_error_code_from_body": 0.0005143340677022934,+ "tests/unit/pipelex/providers/fal/test_extract_fal_metadata.py::TestExtractFalMetadata::test_extracts_retry_after_seconds": 0.0002916679950430989,+ "tests/unit/pipelex/providers/fal/test_extract_fal_metadata.py::TestExtractFalMetadata::test_extracts_status_code_and_request_id": 0.6760690829250962,+ "tests/unit/pipelex/providers/fal/test_extract_fal_metadata.py::TestExtractFalMetadata::test_generic_client_error_has_no_status": 0.0006187920225784183,+ "tests/unit/pipelex/providers/fal/test_extract_fal_metadata.py::TestExtractFalMetadata::test_missing_credentials_has_no_status": 0.07593049999559298,+ "tests/unit/pipelex/providers/fal/test_extract_fal_metadata.py::TestExtractFalMetadata::test_quota_402_carries_status_code": 0.0011462500551715493,+ "tests/unit/pipelex/providers/fal/test_extract_fal_metadata.py::TestExtractFalMetadata::test_timeout_error_has_no_status_or_request_id": 0.0006157909519970417,+ "tests/unit/pipelex/providers/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_generic_fal_error_carries_metadata": 0.16251575003843755,+ "tests/unit/pipelex/providers/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[400-content-change_input]": 0.05624583305325359,+ "tests/unit/pipelex/providers/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[401-configuration-check_credentials]": 0.05946824897546321,+ "tests/unit/pipelex/providers/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[402-capacity-check_billing]": 0.6991344169946387,+ "tests/unit/pipelex/providers/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[403-configuration-check_credentials]": 0.05315504100872204,+ "tests/unit/pipelex/providers/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[409-configuration-change_input]": 0.06685670797014609,+ "tests/unit/pipelex/providers/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[422-configuration-change_input]": 0.05884158401750028,+ "tests/unit/pipelex/providers/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[429-transient-wait_and_retry]": 0.04905833298107609,+ "tests/unit/pipelex/providers/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[500-transient-wait_and_retry]": 0.06360195897286758,+ "tests/unit/pipelex/providers/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_not_found_404_raises_img_gen_model_not_found_error": 0.06130008306354284,+ "tests/unit/pipelex/providers/fal/test_fal_img_gen_worker_semantic.py::TestFalImgGenWorkerSemantic::test_timeout_carries_metadata": 0.04984549997607246,+ "tests/unit/pipelex/providers/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_error_report_includes_category": 0.1404630429460667,+ "tests/unit/pipelex/providers/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_generic_client_error_is_transient[generic_fal_error-transient-wait_and_retry]": 0.04918933392036706,+ "tests/unit/pipelex/providers/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_http_error_categorization[auth_error_401-401-Invalid API key-configuration-check_credentials]": 0.06530633306829259,+ "tests/unit/pipelex/providers/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_http_error_categorization[bad_request_400-400-Invalid parameter-content-change_input]": 0.07202274998417124,+ "tests/unit/pipelex/providers/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_http_error_categorization[forbidden_403-403-Access denied-configuration-check_credentials]": 0.04117508395574987,+ "tests/unit/pipelex/providers/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_http_error_categorization[quota_exhausted_402-402-Payment required - quota exhausted-capacity-check_billing]": 0.05280620895791799,+ "tests/unit/pipelex/providers/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_http_error_categorization[rate_limit_429-429-Too many requests-transient-wait_and_retry]": 0.8503246249747463,+ "tests/unit/pipelex/providers/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_http_error_categorization[server_error_500-500-Internal server error-transient-wait_and_retry]": 0.06670491601107642,+ "tests/unit/pipelex/providers/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_missing_credentials_is_configuration[missing_fal_key-configuration-check_credentials]": 0.052213625982403755,+ "tests/unit/pipelex/providers/fal/test_fal_worker_error_handling.py::TestFalWorkerErrorHandling::test_timeout_error_is_transient[request_timeout-transient-wait_and_retry]": 0.07802925107534975,+ "tests/unit/pipelex/providers/gateway/test_extract_gateway_metadata.py::TestExtractGatewayMetadata::test_extracts_provider_error_code_from_body": 0.0009515420533716679,+ "tests/unit/pipelex/providers/gateway/test_extract_gateway_metadata.py::TestExtractGatewayMetadata::test_extracts_retry_after_seconds": 0.0010002090130001307,+ "tests/unit/pipelex/providers/gateway/test_extract_gateway_metadata.py::TestExtractGatewayMetadata::test_extracts_status_code_and_request_id": 0.7494938749587163,+ "tests/unit/pipelex/providers/gateway/test_extract_gateway_metadata.py::TestExtractGatewayMetadata::test_falls_back_to_portkey_trace_id": 0.004495540983043611,+ "tests/unit/pipelex/providers/gateway/test_extract_gateway_metadata.py::TestExtractGatewayMetadata::test_handles_connection_error_without_response": 0.1010214589186944,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_client.py::TestGatewayCompletionsClient::test_happy_path_wires_endpoint_placeholder_key_and_portkey_headers[False-false]": 0.0019174600020051003,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_client.py::TestGatewayCompletionsClient::test_happy_path_wires_endpoint_placeholder_key_and_portkey_headers[True-true]": 0.0027307909913361073,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_client.py::TestGatewayCompletionsClient::test_make_extras_delegates_to_gateway_factory": 0.15883445797953755,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_client.py::TestGatewayCompletionsClient::test_wrong_sdk_variant_raises_factory_error": 0.7438844999996945,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_azure_falls_back_to_choices_content": 0.0004434999427758157,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_azure_page_schema_violation_is_wrapped": 0.0006528330268338323,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_azure_top_level_pages_with_images": 0.000450958963483572,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_azure_without_pages_anywhere_raises": 0.0005802909727208316,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_deepseek_falls_back_to_choices_content": 0.00036737503251060843,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_deepseek_page_schema_violation_is_wrapped": 0.00028441601898521185,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_deepseek_scaled_down_image_logs_warning_and_parses": 0.001403666043188423,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_deepseek_top_level_pages_happy_path": 0.0006237099878489971,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_deepseek_without_pages_anywhere_raises": 0.0002566250041127205,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_dispatch_routes_each_handle_to_its_parser[azure-document-intelligence-_make_extract_output_from_response_azure]": 0.0014429170987568796,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_dispatch_routes_each_handle_to_its_parser[deepseek-ocr-_make_extract_output_from_response_deepseek]": 0.0007743738824501634,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_dispatch_routes_each_handle_to_its_parser[linkup-fetch-_make_extract_output_from_response_linkup_fetch]": 0.0020815419848077,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_dispatch_routes_each_handle_to_its_parser[mistral-document-ai-2505-_make_extract_output_from_response_mistral]": 0.7923520829644985,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_dispatch_unknown_handle_raises_value_error": 0.0011297919554635882,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_content_string_falsy_paths_return_none[content-not-a-str]": 0.0003164589870721102,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_content_string_falsy_paths_return_none[message-not-a-dict]": 0.0002674169954843819,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[choices-not-a-list]": 0.0007342490134760737,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[content-json-not-a-list]": 0.0032419589697383344,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[content-malformed-json]": 0.0004332089447416365,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[content-not-a-str]": 0.00035074999323114753,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[empty-choices]": 0.0007815829594619572,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[message-missing]": 0.0004570829914882779,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[message-not-a-dict]": 0.0032101680408231914,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_falsy_paths_return_none[no-choices]": 0.0009200000786222517,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_extract_pages_from_choices_content_happy_path": 0.0005679590394720435,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_linkup_fetch_happy_path": 0.00026641704607754946,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_linkup_fetch_invalid_fetch_result_is_wrapped[json-but-not-a-fetch-result]": 0.0003505829954519868,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_linkup_fetch_invalid_fetch_result_is_wrapped[malformed-json]": 0.14916095801163465,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_linkup_fetch_without_content_raises": 0.0003021259908564389,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_mistral_page_schema_violation_is_wrapped": 0.0007956239860504866,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_mistral_pages_with_images_corner_handling": 0.0023152920184656978,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py::TestGatewayCompletionsExtractOutput::test_mistral_without_pages_raises": 0.0002965009771287441,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_base64_document_becomes_image_url_part_with_auto_detail": 0.0012082509929314256,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_images_become_image_url_parts[None-auto]": 0.004663415951654315,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_images_become_image_url_parts[high-high]": 0.0033287089318037033,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_images_become_image_url_parts[low-low]": 0.002862541936337948,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_local_path_image_raises_type_error": 0.0017131249769590795,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_non_base64_document_raises_type_error[http-url-document]": 0.006270999961998314,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_non_base64_document_raises_type_error[local-path-document]": 0.11764937598491088,+ "tests/unit/pipelex/providers/gateway/test_gateway_completions_messages.py::TestGatewayCompletionsMessages::test_system_and_user_text": 0.7499994169920683,+ "tests/unit/pipelex/providers/gateway/test_gateway_extract_worker_semantic.py::TestGatewayExtractWorkerSemantic::test_genuine_not_found_404_raises_extract_model_not_found_error": 0.16757024999242276,+ "tests/unit/pipelex/providers/gateway/test_gateway_extract_worker_semantic.py::TestGatewayExtractWorkerSemantic::test_status_error_carries_semantic_user_action_via_web_fetch[AuthenticationError-401-configuration-check_credentials]": 0.05925649992423132,+ "tests/unit/pipelex/providers/gateway/test_gateway_extract_worker_semantic.py::TestGatewayExtractWorkerSemantic::test_status_error_carries_semantic_user_action_via_web_fetch[BadRequestError-400-content-change_input]": 0.052416999998968095,+ "tests/unit/pipelex/providers/gateway/test_gateway_extract_worker_semantic.py::TestGatewayExtractWorkerSemantic::test_status_error_carries_semantic_user_action_via_web_fetch[PermissionDeniedError-403-configuration-check_credentials]": 0.057568208081647754,+ "tests/unit/pipelex/providers/gateway/test_gateway_extract_worker_semantic.py::TestGatewayExtractWorkerSemantic::test_status_error_carries_semantic_user_action_via_web_fetch[RateLimitError-429-transient-wait_and_retry]": 0.7971754579921253,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_exact_size_derives_grid_cell_from_rules": 0.003993874997831881,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_exact_size_without_rules_raises": 0.005631374951917678,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_non_gemini_img_gen_job_gets_no_image_config": 0.08196566696278751,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_sized_request_with_unknown_taxonomy_raises": 0.002905374043621123,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_tier_beyond_taxonomy_raises": 0.0012916669948026538,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_tier_threads_image_size_token": 0.7851641260203905,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_tier_without_rules_raises": 0.002342584019061178,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_unset_size_omits_image_size": 0.0012402081047184765,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_unset_size_with_unknown_taxonomy_keeps_ratio_only_mapping": 0.004479666997212917,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_extras.py::TestGatewayImgGenExtras::test_unset_size_without_rules_keeps_ratio_only_mapping": 0.0013623330742120743,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_edit_routing.py::TestGatewayImgGenWorkerEditRouting::test_with_input_image_but_no_generations_segment_raises": 0.12476212496403605,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_edit_routing.py::TestGatewayImgGenWorkerEditRouting::test_with_input_image_routes_to_edits_with_multipart_body": 0.7001076259766705,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_edit_routing.py::TestGatewayImgGenWorkerEditRouting::test_with_multiple_input_images_sends_bracketed_array_field_name": 0.007383374962955713,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_edit_routing.py::TestGatewayImgGenWorkerEditRouting::test_without_input_image_routes_to_generations_as_before": 0.003033416927792132,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_malformed_body.py::TestGatewayImgGenWorkerMalformedBody::test_flux_2_pro_undecodable_image_is_wrapped[corrupt-image-bytes]": 0.047433750005438924,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_malformed_body.py::TestGatewayImgGenWorkerMalformedBody::test_flux_2_pro_undecodable_image_is_wrapped[invalid-base64-padding]": 0.002868042094632983,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_malformed_body.py::TestGatewayImgGenWorkerMalformedBody::test_flux_2_pro_undecodable_image_is_wrapped[unrecognized-file-type]": 0.10473437403561547,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_malformed_body.py::TestGatewayImgGenWorkerMalformedBody::test_gpt_image_malformed_size_is_wrapped[1024xfoo]": 0.00424908398417756,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_malformed_body.py::TestGatewayImgGenWorkerMalformedBody::test_gpt_image_malformed_size_is_wrapped[axb]": 0.6908727900008671,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_malformed_body.py::TestGatewayImgGenWorkerMalformedBody::test_gpt_image_malformed_size_is_wrapped[wide x tall]": 0.0037289989995770156,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_semantic.py::TestGatewayImgGenWorkerSemantic::test_genuine_not_found_404_raises_img_gen_model_not_found_error": 0.0048459580284543335,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_semantic.py::TestGatewayImgGenWorkerSemantic::test_quota_keywords_in_rate_limit_message_is_check_billing": 0.11616758396849036,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_semantic.py::TestGatewayImgGenWorkerSemantic::test_status_error_carries_semantic_user_action[AuthenticationError-401-configuration-check_credentials]": 0.0070201680064201355,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_semantic.py::TestGatewayImgGenWorkerSemantic::test_status_error_carries_semantic_user_action[BadRequestError-400-content-change_input]": 0.0023741250624880195,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_semantic.py::TestGatewayImgGenWorkerSemantic::test_status_error_carries_semantic_user_action[PermissionDeniedError-403-configuration-check_credentials]": 0.004057666927110404,+ "tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_semantic.py::TestGatewayImgGenWorkerSemantic::test_status_error_carries_semantic_user_action[RateLimitError-429-transient-wait_and_retry]": 0.7251464569708332,+ "tests/unit/pipelex/providers/gateway/test_gateway_quota_detection.py::TestGatewayQuotaDetection::test_extract_worker_propagates_quota_as_capacity": 0.17883979197358713,+ "tests/unit/pipelex/providers/gateway/test_gateway_quota_detection.py::TestGatewayQuotaDetection::test_imggen_worker_propagates_rate_limit_as_transient": 0.6571976660052314,+ "tests/unit/pipelex/providers/gateway/test_gateway_quota_detection.py::TestGatewayQuotaDetection::test_search_worker_propagates_auth_error_as_configuration": 0.059942000021692365,+ "tests/unit/pipelex/providers/gateway/test_gateway_search_worker_semantic.py::TestGatewaySearchWorkerSemantic::test_genuine_not_found_404_raises_search_model_not_found_error": 0.14604275103192776,+ "tests/unit/pipelex/providers/gateway/test_gateway_search_worker_semantic.py::TestGatewaySearchWorkerSemantic::test_status_error_carries_semantic_user_action[AuthenticationError-401-configuration-check_credentials]": 0.08933616598369554,+ "tests/unit/pipelex/providers/gateway/test_gateway_search_worker_semantic.py::TestGatewaySearchWorkerSemantic::test_status_error_carries_semantic_user_action[BadRequestError-400-content-change_input]": 0.06328933296026662,+ "tests/unit/pipelex/providers/gateway/test_gateway_search_worker_semantic.py::TestGatewaySearchWorkerSemantic::test_status_error_carries_semantic_user_action[PermissionDeniedError-403-configuration-check_credentials]": 0.057057416008319706,+ "tests/unit/pipelex/providers/gateway/test_gateway_search_worker_semantic.py::TestGatewaySearchWorkerSemantic::test_status_error_carries_semantic_user_action[RateLimitError-429-transient-wait_and_retry]": 0.7121589590096846,+ "tests/unit/pipelex/providers/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_authentication_error_carries_status_code_401": 0.000553084013517946,+ "tests/unit/pipelex/providers/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_body_is_the_response_details": 0.0010151659953407943,+ "tests/unit/pipelex/providers/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_body_without_error_or_status_yields_none_provider_error_code": 0.0006789998733438551,+ "tests/unit/pipelex/providers/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_extracts_provider_error_code_from_nested_error_status": 0.0003643330419436097,+ "tests/unit/pipelex/providers/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_extracts_provider_error_code_from_top_level_status": 0.001076124026440084,+ "tests/unit/pipelex/providers/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_extracts_retry_after_seconds_when_header_present": 0.0008978329715318978,+ "tests/unit/pipelex/providers/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_extracts_status_code_from_client_error": 0.7673368340474553,+ "tests/unit/pipelex/providers/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_handles_none_response_gracefully": 0.0006082920590415597,+ "tests/unit/pipelex/providers/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_handles_server_error_with_status_code_500": 0.0007840409525670111,+ "tests/unit/pipelex/providers/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_httpx_read_error_marked_as_network_error": 0.0006325420108623803,+ "tests/unit/pipelex/providers/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_httpx_remote_protocol_error_marked_as_network_error": 0.10175216698553413,+ "tests/unit/pipelex/providers/google/test_extract_google_metadata.py::TestExtractGoogleMetadata::test_retry_after_seconds_is_none_when_header_absent": 0.0013923319638706744,+ "tests/unit/pipelex/providers/google/test_google_factory_tokens.py::TestGoogleFactoryTokens::test_no_thoughts_token_count_omits_output_reasoning": 0.0014721660409122705,+ "tests/unit/pipelex/providers/google/test_google_factory_tokens.py::TestGoogleFactoryTokens::test_thoughts_token_count_maps_to_output_reasoning": 0.6683750419761054,+ "tests/unit/pipelex/providers/google/test_google_factory_tokens.py::TestGoogleFactoryTokens::test_zero_thoughts_token_count_omits_output_reasoning": 0.1578170830034651,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_aspect_ratio_literal_mapping[landscape_4_1-4:1]": 0.0012369999894872308,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_aspect_ratio_literal_mapping[landscape_4_3-4:3]": 0.00040195893961936235,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_aspect_ratio_literal_mapping[landscape_8_1-8:1]": 0.002259331988170743,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_aspect_ratio_literal_mapping[portrait_1_4-1:4]": 0.0007789580267854035,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_aspect_ratio_literal_mapping[portrait_1_8-1:8]": 0.0014002910465933383,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_aspect_ratio_literal_mapping[square-1:1]": 1.0803586250403896,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_aspect_ratio_literal_rejects_portrait_9_21": 0.0007392929401248693,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_exact_grid_hit_derives_ratio_and_size[gemini_2_5-exact_size5-1:1-1K]": 0.0009071669192053378,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_exact_grid_hit_derives_ratio_and_size[gemini_3_flash-exact_size0-1:1-2K]": 0.00036524899769574404,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_exact_grid_hit_derives_ratio_and_size[gemini_3_flash-exact_size1-16:9-2K]": 0.00039641704643145204,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_exact_grid_hit_derives_ratio_and_size[gemini_3_flash-exact_size2-16:9-4K]": 0.0010272920480929315,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_exact_grid_hit_derives_ratio_and_size[gemini_3_flash-exact_size3-1:4-1K]": 0.0008153749513439834,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_exact_grid_hit_derives_ratio_and_size[gemini_3_flash_lite-exact_size6-1:1-1K]": 0.0004613759811036289,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_exact_grid_hit_derives_ratio_and_size[gemini_3_pro-exact_size4-1:1-2K]": 0.0008113340009003878,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_exact_grid_miss_suggests_nearest_cells": 0.0029203740414232016,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_exact_grid_respects_taxonomy_ratio_gating": 0.00033249991247430444,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_exact_grid_respects_taxonomy_size_gating": 0.0006805000593885779,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_2_5_rejects_banner_ratios[landscape_4_1]": 0.0003397089894860983,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_2_5_rejects_banner_ratios[landscape_8_1]": 0.0006631670403294265,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_2_5_rejects_banner_ratios[portrait_1_4]": 0.0003457499551586807,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_2_5_rejects_banner_ratios[portrait_1_8]": 0.0003019999712705612,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_2_5_rejects_non_1k_sizes[2K]": 0.00032120803371071815,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_2_5_rejects_non_1k_sizes[4K]": 0.00029570801416411996,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_dimensions[landscape_16_9-4K-expected_dimensions13]": 0.00032108399318531156,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_dimensions[landscape_4_1-1K-expected_dimensions0]": 0.00039166701026260853,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_dimensions[landscape_4_1-2K-expected_dimensions1]": 0.11596920998999849,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_dimensions[landscape_4_1-4K-expected_dimensions2]": 0.6970823340234347,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_dimensions[landscape_8_1-1K-expected_dimensions3]": 0.001177875034045428,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_dimensions[landscape_8_1-2K-expected_dimensions4]": 0.0008002500399015844,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_dimensions[landscape_8_1-4K-expected_dimensions5]": 0.000804667070042342,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_dimensions[portrait_1_4-1K-expected_dimensions6]": 0.0012117930455133319,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_dimensions[portrait_1_4-2K-expected_dimensions7]": 0.0006977489683777094,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_dimensions[portrait_1_4-4K-expected_dimensions8]": 0.0011233339319005609,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_dimensions[portrait_1_8-1K-expected_dimensions9]": 0.0008165419567376375,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_dimensions[portrait_1_8-2K-expected_dimensions10]": 0.0006857910193502903,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_dimensions[portrait_1_8-4K-expected_dimensions11]": 0.00037512503331527114,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_dimensions[square-1K-expected_dimensions12]": 0.0003204579697921872,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_lite_full_ratio_set_at_1k[landscape_4_1-expected_dimensions0]": 0.0007260419079102576,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_lite_full_ratio_set_at_1k[portrait_1_8-expected_dimensions1]": 0.00034662592224776745,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_lite_full_ratio_set_at_1k[square-expected_dimensions2]": 0.0008062489796429873,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_lite_rejects_non_1k_sizes[2K]": 0.00025774992536753416,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_flash_lite_rejects_non_1k_sizes[4K]": 0.00031037506414577365,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_grids_are_consistent": 0.0005398750072345138,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_pro_rejects_banner_ratios[landscape_4_1]": 0.00032687600469216704,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_pro_rejects_banner_ratios[landscape_8_1]": 0.0003792499774135649,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_pro_rejects_banner_ratios[portrait_1_4]": 0.0007572919712401927,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_pro_rejects_banner_ratios[portrait_1_8]": 0.001955874962732196,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_pro_standard_ratios_work_at_every_size[landscape_21_9-1K-expected_dimensions2]": 0.00040049897506833076,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_pro_standard_ratios_work_at_every_size[portrait_2_3-4K-expected_dimensions1]": 0.0005209169466979802,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_gemini_3_pro_standard_ratios_work_at_every_size[square-2K-expected_dimensions0]": 0.0005621660384349525,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_image_size_for_tier[1k-1K]": 0.0003844999591819942,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_image_size_for_tier[2k-2K]": 0.0005954589578323066,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_image_size_for_tier[4k-4K]": 0.0002919169492088258,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_image_size_for_tier_rejects_half_k": 0.00045133300591260195,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_non_google_taxonomy_rejected": 0.0003629170823842287,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_portrait_9_21_rejected_for_every_taxonomy[gemini_2_5]": 0.0008703750791028142,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_portrait_9_21_rejected_for_every_taxonomy[gemini_3_flash]": 0.00029887602431699634,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_portrait_9_21_rejected_for_every_taxonomy[gemini_3_flash_lite]": 0.0006997079472057521,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_portrait_9_21_rejected_for_every_taxonomy[gemini_3_pro]": 0.0006525409989990294,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_resolve_image_config_from_exact_size": 0.0003536250442266464,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_resolve_image_config_from_tier[gemini_2_5-square-1k-expected2]": 0.00041420903289690614,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_resolve_image_config_from_tier[gemini_3_flash-landscape_16_9-4k-expected1]": 0.0005214589182287455,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_resolve_image_config_from_tier[gemini_3_flash-square-2k-expected0]": 0.00040258298395201564,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_resolve_image_config_rejects_half_k": 0.10270616709021851,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_resolve_image_config_rejects_tier_beyond_taxonomy": 0.0009400420822203159,+ "tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py::TestImgGenGeminiMapping::test_resolve_image_config_unset_size_omits_wire_param": 0.00024845695588737726,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_auth_401_is_check_credentials": 0.010689418006222695,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_content_policy_400_is_change_input": 0.005041709111537784,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_forbidden_403_is_check_credentials": 0.0034825410111807287,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_generic_400_is_change_input": 0.003934666980057955,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_generic_rate_limit_429_is_wait_and_retry": 0.004034541023429483,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_httpx_transport_error_is_wrapped_as_transient[ConnectError-ConnectError]": 0.00417037500301376,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_httpx_transport_error_is_wrapped_as_transient[ConnectTimeout-ConnectTimeout]": 0.005507499969098717,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_httpx_transport_error_is_wrapped_as_transient[ReadError-TransportError]": 0.002193207968957722,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_httpx_transport_error_is_wrapped_as_transient[RemoteProtocolError-TransportError]": 0.004721831995993853,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_not_found_404_is_change_model_with_metadata": 0.6173785010469146,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_quota_429_is_check_billing": 0.003479791048448533,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_server_error_500_is_wait_and_retry": 0.0028552919975481927,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_to_error_report_serializes_metadata": 0.11918562598293647,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py::TestGoogleImgGenWorkerErrorHandling::test_unhandled_4xx_is_change_input": 0.0068383749458007514,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_payload.py::TestGoogleImgGenWorkerPayload::test_exact_size_derives_ratio_and_image_size": 0.11708350095432252,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_payload.py::TestGoogleImgGenWorkerPayload::test_tier_is_sent_as_image_size_token": 0.6627818749984726,+ "tests/unit/pipelex/providers/google/test_google_img_gen_worker_payload.py::TestGoogleImgGenWorkerPayload::test_unset_size_omits_image_size_param": 0.055673249007668346,+ "tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc0-transient]": 0.00753995799459517,+ "tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc1-transient]": 0.0031964569934643805,+ "tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc2-transient]": 0.005548708082642406,+ "tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc3-transient]": 0.0935692919883877,+ "tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_real_instructor_propagates_client_error_raw": 0.032922834041528404,+ "tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_unrecognized_underlying_falls_back_to_unknown": 0.002879749983549118,+ "tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_auth_error_is_configuration": 0.005140124005265534,+ "tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_bad_request_content_policy": 0.0048125419998541474,+ "tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_bad_request_generic_is_content": 0.0020560849807225168,+ "tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_forbidden_is_configuration": 0.004812707949895412,+ "tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_not_found_raises_llm_model_not_found_error": 0.00467112596379593,+ "tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_rate_limit_generic_is_transient": 0.0030721660587005317,+ "tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_rate_limit_quota_is_capacity": 0.001957542961463332,+ "tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py::TestGoogleLLMWorkerObjectErrorHandling::test_wrapped_server_error_is_transient": 0.8318311239709146,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_adaptive_mode_effort_maps_to_thinking_level[high-HIGH]": 0.051022332976572216,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_adaptive_mode_effort_maps_to_thinking_level[low-LOW]": 0.0504538330133073,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_adaptive_mode_effort_maps_to_thinking_level[max-HIGH]": 0.0576068329392001,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_adaptive_mode_effort_maps_to_thinking_level[medium-MEDIUM]": 0.04933637595968321,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_adaptive_mode_effort_maps_to_thinking_level[minimal-MINIMAL]": 0.047577251971233636,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_adaptive_mode_effort_maps_to_thinking_level[xhigh-HIGH]": 0.08263883297331631,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_adaptive_mode_effort_none_disables_thinking": 0.0477262909989804,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_effort_budget_capped_by_max_tokens": 0.15760812506778166,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_explicit_budget_capped_by_max_tokens": 0.03628849907545373,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_explicit_budget_passes_through[adaptive]": 0.0449495839420706,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_explicit_budget_passes_through[manual]": 0.047865001019090414,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_manual_mode_effort_maps_to_budget[high-16384]": 0.034890625975094736,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_manual_mode_effort_maps_to_budget[low-1024]": 0.04561924992594868,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_manual_mode_effort_maps_to_budget[max-65536]": 0.058163999929092824,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_manual_mode_effort_maps_to_budget[medium-5000]": 0.04389375098980963,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_manual_mode_effort_maps_to_budget[minimal-512]": 0.6401406249497086,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_manual_mode_effort_maps_to_budget[xhigh-32768]": 0.060106582939624786,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_manual_mode_effort_none_disables_thinking": 0.04209383303532377,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_no_reasoning_params_returns_none": 0.0011485840659588575,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_reasoning_budget_with_thinking_mode_none_raises": 0.0021814590436406434,+ "tests/unit/pipelex/providers/google/test_google_reasoning.py::TestGoogleReasoning::test_thinking_mode_none_raises_capability_error": 0.001520959020126611,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_error_report_capacity_not_retryable": 0.11345979198813438,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_error_report_includes_category_and_retryable": 0.0024321239325217903,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[auth_401-401-Request had invalid authentication credentials-configuration-None]": 0.0047098330105654895,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[bad_request_400_content_policy-400-Your request was rejected due to content_policy_violation-content-safety filters]": 0.006043499975930899,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[bad_request_400_generic-400-Invalid parameter: temperature must be between 0 and 2-content-None]": 0.004798583977390081,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[bad_request_400_safety-400-The response was blocked by safety systems-content-safety filters]": 0.0037908749654889107,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[forbidden_403-403-Permission denied on resource project-configuration-None]": 0.003991166013292968,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[other_client_error_fallback-422-Unprocessable entity-configuration-review]": 0.004396958043798804,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[rate_limit_429_billing-429-Billing account is not active-capacity-billing]": 0.0037403739988803864,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[rate_limit_429_generic-429-Too many requests, please slow down-transient-retry]": 0.004564833070617169,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_client_error[rate_limit_429_quota-429-Resource has been exhausted (e.g. check quota)-capacity-billing]": 0.006634083052631468,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_not_found_raises_img_gen_model_not_found_error": 0.004885165952146053,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_img_gen_server_error_has_transient_category": 0.0021666239481419325,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[auth_401-401-Request had invalid authentication credentials-configuration-None]": 0.7037427079048939,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[bad_request_400_content_policy-400-Your request was rejected due to content_policy_violation-content-safety filters]": 0.0036702080396935344,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[bad_request_400_generic-400-Invalid parameter: temperature must be between 0 and 2-content-None]": 0.0034324589651077986,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[bad_request_400_safety-400-The response was blocked by safety systems-content-safety filters]": 0.0024901660508476198,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[forbidden_403-403-Permission denied on resource project-configuration-None]": 0.0032320839818567038,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[other_client_error_fallback-422-Unprocessable entity-configuration-review]": 0.0032060419907793403,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[rate_limit_429_billing-429-Billing account is not active-capacity-billing]": 0.0041545419953763485,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[rate_limit_429_generic-429-Too many requests, please slow down-transient-retry]": 0.003245999978389591,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_client_error[rate_limit_429_quota-429-Resource has been exhausted (e.g. check quota)-capacity-billing]": 0.0032684169709682465,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_not_found_raises_llm_model_not_found_error": 0.0016914589214138687,+ "tests/unit/pipelex/providers/google/test_google_worker_error_handling.py::TestGoogleWorkerErrorHandling::test_llm_server_error_has_transient_category": 0.0023327100789174438,+ "tests/unit/pipelex/providers/huggingface/test_extract_huggingface_metadata.py::TestExtractHuggingFaceMetadata::test_extracts_provider_error_code_from_body": 0.0011378350318409503,+ "tests/unit/pipelex/providers/huggingface/test_extract_huggingface_metadata.py::TestExtractHuggingFaceMetadata::test_extracts_retry_after_seconds": 0.0010934160090982914,+ "tests/unit/pipelex/providers/huggingface/test_extract_huggingface_metadata.py::TestExtractHuggingFaceMetadata::test_extracts_status_code_and_request_id": 0.6940172070171684,+ "tests/unit/pipelex/providers/huggingface/test_extract_huggingface_metadata.py::TestExtractHuggingFaceMetadata::test_falls_back_to_amzn_trace_id_header": 0.0010267490288242698,+ "tests/unit/pipelex/providers/huggingface/test_extract_huggingface_metadata.py::TestExtractHuggingFaceMetadata::test_html_body_falls_back_to_raw_string": 0.0015825829468667507,+ "tests/unit/pipelex/providers/huggingface/test_extract_huggingface_metadata.py::TestExtractHuggingFaceMetadata::test_inference_timeout_has_no_status": 0.11183375009568408,+ "tests/unit/pipelex/providers/huggingface/test_extract_huggingface_metadata.py::TestExtractHuggingFaceMetadata::test_unread_streaming_response_body_is_tolerated": 0.0007516669575124979,+ "tests/unit/pipelex/providers/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_error_report_includes_category": 0.08187208394519985,+ "tests/unit/pipelex/providers/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_hf_http_error_categorization[auth_error_401-401-Invalid token-configuration-check_credentials]": 0.002001041022595018,+ "tests/unit/pipelex/providers/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_hf_http_error_categorization[bad_request_400-400-Invalid parameters-content-change_input]": 0.0031623750110156834,+ "tests/unit/pipelex/providers/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_hf_http_error_categorization[forbidden_403-403-Access denied-configuration-check_credentials]": 0.002880499989259988,+ "tests/unit/pipelex/providers/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_hf_http_error_categorization[quota_exhausted_402-402-Quota exhausted-capacity-check_billing]": 0.006911541044246405,+ "tests/unit/pipelex/providers/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_hf_http_error_categorization[rate_limit_429-429-Rate limit exceeded-transient-wait_and_retry]": 0.70404124900233,+ "tests/unit/pipelex/providers/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_hf_http_error_categorization[server_error_503-503-Service unavailable-transient-wait_and_retry]": 0.003849749977234751,+ "tests/unit/pipelex/providers/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_hf_http_error_categorization[unknown_status_none-None-Unknown error occurred-unknown-contact_support]": 0.003696666972246021,+ "tests/unit/pipelex/providers/huggingface/test_hf_worker_error_handling.py::TestHuggingFaceWorkerErrorHandling::test_inference_timeout_is_transient[inference_timeout-transient-wait_and_retry]": 0.0029814569861628115,+ "tests/unit/pipelex/providers/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[400-content-change_input]": 0.0029828340047970414,+ "tests/unit/pipelex/providers/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[401-configuration-check_credentials]": 0.0038325420464389026,+ "tests/unit/pipelex/providers/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[402-capacity-check_billing]": 0.004008248972240835,+ "tests/unit/pipelex/providers/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[403-configuration-check_credentials]": 0.004207833029795438,+ "tests/unit/pipelex/providers/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[409-configuration-change_input]": 0.0036356649943627417,+ "tests/unit/pipelex/providers/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[422-configuration-change_input]": 0.0029232490342110395,+ "tests/unit/pipelex/providers/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[429-transient-wait_and_retry]": 0.7024525000015274,+ "tests/unit/pipelex/providers/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_http_error_carries_semantic_user_action[500-transient-wait_and_retry]": 0.0034299170365557075,+ "tests/unit/pipelex/providers/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_not_found_404_raises_img_gen_model_not_found_error": 0.0018828329630196095,+ "tests/unit/pipelex/providers/huggingface/test_huggingface_img_gen_worker_semantic.py::TestHuggingFaceImgGenWorkerSemantic::test_timeout_carries_metadata": 0.07388929295120761,+ "tests/unit/pipelex/providers/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupAuthenticationError-configuration-check_credentials]": 0.758778124989476,+ "tests/unit/pipelex/providers/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupFailedFetchError-transient-wait_and_retry]": 0.00928883400047198,+ "tests/unit/pipelex/providers/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupFetchResponseTooLargeError-content-change_input]": 0.002633000025525689,+ "tests/unit/pipelex/providers/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupFetchUrlIsFileError-content-change_input]": 0.009703040996100754,+ "tests/unit/pipelex/providers/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupInsufficientCreditError-capacity-check_billing]": 0.0028187090065330267,+ "tests/unit/pipelex/providers/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupInvalidRequestError-content-change_input]": 0.004493125015869737,+ "tests/unit/pipelex/providers/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupNoResultError-content-change_input]": 0.006144042068626732,+ "tests/unit/pipelex/providers/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupTimeoutError-transient-wait_and_retry]": 0.002711457957047969,+ "tests/unit/pipelex/providers/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupTooManyRequestsError-transient-wait_and_retry]": 0.004706042003817856,+ "tests/unit/pipelex/providers/linkup/test_linkup_extract_worker_semantic.py::TestLinkupExtractWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupUnknownError-transient-wait_and_retry]": 0.12060995900537819,+ "tests/unit/pipelex/providers/linkup/test_linkup_search_worker_semantic.py::TestLinkupSearchWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupAuthenticationError-configuration-check_credentials]": 0.6025707500521094,+ "tests/unit/pipelex/providers/linkup/test_linkup_search_worker_semantic.py::TestLinkupSearchWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupInsufficientCreditError-capacity-check_billing]": 0.002214748994447291,+ "tests/unit/pipelex/providers/linkup/test_linkup_search_worker_semantic.py::TestLinkupSearchWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupInvalidRequestError-content-change_input]": 0.002351124945562333,+ "tests/unit/pipelex/providers/linkup/test_linkup_search_worker_semantic.py::TestLinkupSearchWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupNoResultError-content-change_input]": 0.002119248965755105,+ "tests/unit/pipelex/providers/linkup/test_linkup_search_worker_semantic.py::TestLinkupSearchWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupTimeoutError-transient-wait_and_retry]": 0.002984248916618526,+ "tests/unit/pipelex/providers/linkup/test_linkup_search_worker_semantic.py::TestLinkupSearchWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupTooManyRequestsError-transient-wait_and_retry]": 0.004840167006477714,+ "tests/unit/pipelex/providers/linkup/test_linkup_search_worker_semantic.py::TestLinkupSearchWorkerSemantic::test_linkup_error_carries_semantic_user_action[LinkupUnknownError-transient-wait_and_retry]": 0.1231739580980502,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[auth_error-LinkupAuthenticationError-Invalid API key-configuration-check_credentials]": 0.7209928740048781,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[failed_fetch-LinkupFailedFetchError-Could not fetch URL-transient-wait_and_retry]": 0.00385262502823025,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[insufficient_credit-LinkupInsufficientCreditError-No credits remaining-capacity-check_billing]": 0.002539290930144489,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[invalid_request-LinkupInvalidRequestError-Bad URL format-content-change_input]": 0.0028632080648094416,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[no_result-LinkupNoResultError-No results found-content-change_input]": 0.001505332998931408,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[rate_limit-LinkupTooManyRequestsError-Too many requests-transient-wait_and_retry]": 0.002657832927070558,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[response_too_large-LinkupFetchResponseTooLargeError-Response exceeds size limit-content-change_input]": 0.0022727090399712324,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[timeout-LinkupTimeoutError-Request timed out-transient-wait_and_retry]": 0.0022444589994847775,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[unknown_error-LinkupUnknownError-Something went wrong-transient-wait_and_retry]": 0.0032704579061828554,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_categorization[url_is_file-LinkupFetchUrlIsFileError-URL points to a file-content-change_input]": 0.014233582944143564,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_report_for_auth": 0.0016693329671397805,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_extract_error_report_for_no_result": 0.1232919170288369,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_categorization[auth_error-LinkupAuthenticationError-Invalid API key-configuration-check_credentials]": 0.002318251004908234,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_categorization[insufficient_credit-LinkupInsufficientCreditError-No credits remaining-capacity-check_billing]": 0.0021485419711098075,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_categorization[invalid_request-LinkupInvalidRequestError-Bad query format-content-change_input]": 0.002841001027263701,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_categorization[no_result-LinkupNoResultError-No results found-content-change_input]": 0.0026816659956239164,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_categorization[rate_limit-LinkupTooManyRequestsError-Too many requests-transient-wait_and_retry]": 0.0029103760025464,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_categorization[timeout-LinkupTimeoutError-Request timed out-transient-wait_and_retry]": 0.0024354999768547714,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_categorization[unknown_error-LinkupUnknownError-Something went wrong-transient-wait_and_retry]": 0.002050166018307209,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_report_for_no_result": 0.001239707984495908,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_error_report_for_rate_limit": 0.0016781260492280126,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_user_action_uses_specific_kind[LinkupAuthenticationError-check_credentials]": 0.0020325840450823307,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_user_action_uses_specific_kind[LinkupInsufficientCreditError-check_billing]": 0.0015971240354701877,+ "tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py::TestLinkupWorkerErrorHandling::test_search_user_action_uses_specific_kind[LinkupTooManyRequestsError-wait_and_retry]": 0.002127709041815251,+ "tests/unit/pipelex/providers/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_authentication_error_carries_status_code_401": 0.0005607510101981461,+ "tests/unit/pipelex/providers/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_body_without_type_or_code_yields_none_provider_error_code": 0.00043879193253815174,+ "tests/unit/pipelex/providers/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_extracts_provider_error_code_from_body_top_level": 0.0006419160054065287,+ "tests/unit/pipelex/providers/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_extracts_provider_error_code_from_nested_error_section": 0.00036875001387670636,+ "tests/unit/pipelex/providers/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_extracts_retry_after_seconds_when_header_present": 0.0005087080062367022,+ "tests/unit/pipelex/providers/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_extracts_status_code_from_rate_limit_error": 0.7526783740031533,+ "tests/unit/pipelex/providers/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_falls_back_to_code_when_type_is_absent": 0.00035641604335978627,+ "tests/unit/pipelex/providers/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_handles_no_response_error_without_status_code": 0.000643167004454881,+ "tests/unit/pipelex/providers/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_handles_non_json_body_gracefully": 0.0007555829943157732,+ "tests/unit/pipelex/providers/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_httpx_read_error_marked_as_network_error": 0.0006110839894972742,+ "tests/unit/pipelex/providers/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_httpx_remote_protocol_error_marked_as_network_error": 0.09651870798552409,+ "tests/unit/pipelex/providers/mistral/test_extract_mistral_metadata.py::TestExtractMistralMetadata::test_retry_after_seconds_is_none_when_header_absent": 0.00037183199310675263,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_httpx_transport_error_document_path_is_wrapped_as_transient": 0.0017256679711863399,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_httpx_transport_error_image_path_is_wrapped_as_transient[ConnectError-ConnectError]": 0.0015959579613991082,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_httpx_transport_error_image_path_is_wrapped_as_transient[ConnectTimeout-ConnectTimeout]": 0.004951207956764847,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_httpx_transport_error_image_path_is_wrapped_as_transient[ReadError-TransportError]": 0.0027542909956537187,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_httpx_transport_error_image_path_is_wrapped_as_transient[RemoteProtocolError-TransportError]": 0.0036143760662525892,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_404_raises_extract_model_not_found_error": 0.11992429092060775,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[400-Invalid request-content-change_input]": 0.0021922090090811253,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[400-Request blocked by content_policy-content-change_input]": 0.0038202079595066607,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[401-Invalid API key-configuration-check_credentials]": 0.0014871659805066884,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[402-Payment required: insufficient credits-capacity-check_billing]": 4.569618250010535,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[403-Forbidden-configuration-check_credentials]": 0.0012878329725936055,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[418-I'm a teapot-configuration-change_input]": 0.002302499022334814,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[429-Rate limit exceeded-transient-wait_and_retry]": 0.0027290830039419234,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[429-Too many requests, quota exceeded-capacity-check_billing]": 0.003215832985006273,+ "tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py::TestMistralExtractWorkerSemantic::test_mistral_error_carries_semantic_user_action[500-Server error-transient-wait_and_retry]": 0.004251415084581822,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_make_mistral_document_url_chunk_base64_second_pass_failure_raises": 0.0026197079569101334,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_make_mistral_document_url_chunk_base64_two_pass": 0.002034915960393846,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_make_mistral_document_url_chunk_http_kept": 0.0022839170414954424,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_make_mistral_document_url_chunk_local_path_uploads": 0.006296252075117081,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_make_mistral_image_url_chunk_from_uri[base64_becomes_data_url-prepared1-data:image/png;base64,QUJD]": 0.002303791989106685,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_make_mistral_image_url_chunk_from_uri[http_url_kept_as_is-prepared0-https://example.com/pic.png]": 0.6731687919818796,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_make_mistral_image_url_chunk_local_path_raises": 0.0029940000968053937,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_document_prep.py::TestMistralFactoryDocumentPrep::test_upload_file_to_mistral_for_ocr": 0.11048804095480591,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_clean_base64_already_clean_returned_unchanged[already_jpeg-\\xff\\xd8\\xff\\xe0\\x00\\x10JFIF-jpeg-payload-bytes]": 1.0057918330421671,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_clean_base64_already_clean_returned_unchanged[already_png-\\x89PNG\\r\\n\\x1a\\npng-payload-bytes]": 0.24756220798008144,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_clean_base64_invalid_input_returns_original": 0.14700274995993823,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_clean_base64_no_magic_in_window_returns_original[magic_beyond_scan_window-\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\xff\\xd8\\xff\\xe0\\x00\\x10JFIF-jpeg-payload-bytes]": 0.15909945900784805,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_clean_base64_no_magic_in_window_returns_original[no_magic_at_all-\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03\\x00\\x01\\x02\\x03]": 0.24615870701381937,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_clean_base64_strips_prepended_metadata[jpeg_with_metadata-\\xff\\xd8\\xff\\xe0\\x00\\x10JFIF-jpeg-payload-bytes]": 0.2588554591056891,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_clean_base64_strips_prepended_metadata[png_with_metadata-\\x89PNG\\r\\n\\x1a\\npng-payload-bytes]": 0.24924604198895395,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_make_extract_output_from_mistral_response": 0.29120770801091567,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_make_extracted_image_full_coords": 0.1348403340089135,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_make_extracted_image_missing_base64_raises": 0.00043704197742044926,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_make_extracted_image_partial_coords[all_coords_missing-None-None-None-None]": 0.19087970798136666,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_make_extracted_image_partial_coords[only_top_left-10-20-None-None]": 0.14302600000519305,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.py::TestMistralFactoryExtractOutput::test_make_extracted_image_partial_coords[only_x_pair-10-None-110-None]": 0.13816304301144555,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_mistral_document_url[prepared0-data:application/pdf;base64,UERG]": 0.0021871239878237247,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_mistral_document_url[prepared1-https://example.com/file.pdf]": 0.0021246669930405915,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_mistral_document_url_local_path_raises": 0.003957791021093726,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_mistral_image_url[prepared0-data:image/png;base64,QUJD]": 0.001854291942436248,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_mistral_image_url[prepared1-https://example.com/pic.png]": 0.0026375409797765315,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_mistral_image_url_local_path_raises": 0.0028927509556524456,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_nb_tokens_by_category[120-45-120-45]": 0.0014902909751981497,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_nb_tokens_by_category[None-7-0-7]": 0.11465483391657472,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_nb_tokens_by_category[None-None-0-0]": 0.0026359179755672812,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_openai_typed[None-auto]": 0.0034780409769155085,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_openai_typed[high-high]": 0.0038617499521933496,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_openai_typed[low-low]": 0.004567500029224902,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_openai_typed_local_path_raises": 0.002064415020868182,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_system_first_then_user": 0.0023575000232085586,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_text_only": 0.6201311660115607,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_with_documents": 0.003711916971951723,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_with_images_preserves_order": 0.003906500991433859,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_without_user_content[None-0]": 0.0011740830377675593,+ "tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py::TestMistralFactoryMessages::test_make_simple_messages_without_user_content[only the system speaks-1]": 0.0024089569924399257,+ "tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc0-transient]": 0.001511958020273596,+ "tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc1-transient]": 0.0016357909771613777,+ "tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc2-transient]": 0.0028357089031487703,+ "tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc3-transient]": 0.080162082973402,+ "tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_real_instructor_propagates_transport_error_raw": 0.015089168038684875,+ "tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_unrecognized_underlying_falls_back_to_unknown": 0.00310008495580405,+ "tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_auth_error_is_configuration": 0.003188417002093047,+ "tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_bad_request_content_policy": 0.002380457939580083,+ "tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_bad_request_generic_is_content": 0.003118499997071922,+ "tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_not_found_raises_llm_model_not_found_error": 0.008205167017877102,+ "tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_payment_required_is_capacity": 0.001787375018466264,+ "tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_rate_limit_generic_is_transient": 0.6892320830374956,+ "tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_rate_limit_quota_is_capacity": 0.0046830010251142085,+ "tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py::TestMistralLLMWorkerObjectErrorHandling::test_wrapped_server_error_is_transient": 0.0027604589704424143,+ "tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_no_reasoning_params_returns_unset": 0.1029832920175977,+ "tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_budget_with_thinking_mode_manual_raises": 0.0011930829496122897,+ "tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_budget_with_thinking_mode_none_raises": 0.6146743330173194,+ "tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_effort_maps_correctly[high-reasoning]": 0.049458999012131244,+ "tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_effort_maps_correctly[low-reasoning]": 0.04307795793283731,+ "tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_effort_maps_correctly[max-reasoning]": 0.08309545792872086,+ "tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_effort_maps_correctly[medium-reasoning]": 0.03857920708833262,+ "tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_effort_maps_correctly[minimal-reasoning]": 0.05505695892497897,+ "tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_reasoning_effort_maps_correctly[xhigh-reasoning]": 0.0658296249457635,+ "tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_thinking_mode_adaptive_raises_capability_error": 0.0009455410181544721,+ "tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py::TestMistralReasoning::test_thinking_mode_none_raises_capability_error": 0.0007906249957159162,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_error_report_includes_category": 0.12617995805339888,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_error_classification[auth_error_401-401-Invalid API key provided-configuration-None]": 0.003390624886378646,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_error_classification[bad_request_content_policy_400-400-Your request was rejected due to content_policy_violation-content-safety filters]": 0.006085040979087353,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_error_classification[bad_request_generic_400-400-Invalid parameter: unsupported document format-content-None]": 0.0049479990266263485,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_error_classification[payment_required_402-402-Payment required: insufficient credits-capacity-billing]": 0.003380166948772967,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_error_classification[rate_limit_generic_429-429-Rate limit exceeded. Please retry after 20s-transient-retry]": 0.009094666049350053,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_error_classification[rate_limit_quota_429-429-Rate limit reached: your account quota has been exceeded-capacity-billing]": 0.006380208011250943,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_error_classification[server_error_503-503-Service temporarily unavailable-transient-None]": 0.002621250052470714,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_extract_worker_not_found_raises_extract_model_not_found_error": 0.00267129298299551,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_error_report_capacity_not_retryable": 0.002723249956034124,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_error_report_transient_is_retryable": 0.0033409989555366337,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[auth_error_401-401-Invalid API key provided-configuration-None]": 0.005281999008730054,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[bad_request_content_policy_400-400-Your request was rejected due to content_policy_violation-content-safety filters]": 0.004938958969432861,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[bad_request_generic_400-400-Invalid parameter: temperature must be between 0 and 1-content-None]": 0.004484874953050166,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[forbidden_403-403-You do not have access to this resource-configuration-None]": 0.003084167023189366,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[payment_required_402-402-Payment required: insufficient credits-capacity-billing]": 0.7111298750387505,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[rate_limit_generic_429-429-Rate limit exceeded. Please retry after 20s-transient-retry]": 0.009335833019576967,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[rate_limit_quota_429-429-Rate limit reached: your account quota has been exceeded-capacity-billing]": 0.25820795906474814,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_error_classification[server_error_500-500-Internal server error-transient-None]": 0.00608941592508927,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_not_found_raises_llm_model_not_found_error": 0.003072290972340852,+ "tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py::TestMistralWorkerErrorHandling::test_llm_worker_unhandled_4xx_is_configuration": 0.005268584005534649,+ "tests/unit/pipelex/providers/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_authentication_error_carries_status_code_401": 0.002957999997306615,+ "tests/unit/pipelex/providers/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_body_without_type_or_code_yields_none_provider_error_code": 0.0004706250037997961,+ "tests/unit/pipelex/providers/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_extracts_provider_error_code_from_type_attribute": 0.0010739579447545111,+ "tests/unit/pipelex/providers/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_extracts_retry_after_seconds_when_header_present": 0.0009375010267831385,+ "tests/unit/pipelex/providers/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_extracts_status_code_and_request_id_from_rate_limit_error": 0.6193286250345409,+ "tests/unit/pipelex/providers/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_falls_back_to_code_when_type_is_absent": 0.0008880830137059093,+ "tests/unit/pipelex/providers/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_handles_connection_error_without_response": 0.0018172090058214962,+ "tests/unit/pipelex/providers/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_handles_timeout_error_without_response": 0.0009407500037923455,+ "tests/unit/pipelex/providers/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_not_found_error_carries_status_code_404": 0.12328750098822638,+ "tests/unit/pipelex/providers/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_retry_after_seconds_clamps_past_http_date_to_zero": 0.0011989170452579856,+ "tests/unit/pipelex/providers/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_retry_after_seconds_is_none_for_unparseable_value": 0.0009895419352687895,+ "tests/unit/pipelex/providers/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_retry_after_seconds_is_none_when_header_absent": 0.0008665420464240015,+ "tests/unit/pipelex/providers/openai/test_extract_openai_metadata.py::TestExtractOpenAIMetadata::test_retry_after_seconds_parses_future_http_date": 0.0016388750518672168,+ "tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_auth_error_is_configuration_check_credentials": 0.06117670796811581,+ "tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_connection_error_is_transient": 0.06198904104530811,+ "tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_content_policy_bad_request_is_content_change_input": 0.0548653329606168,+ "tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_generic_bad_request_is_content_change_input": 0.06064695690292865,+ "tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_generic_status_error_409_is_configuration": 0.04784804198425263,+ "tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_generic_status_error_503_is_transient": 0.13771183299832046,+ "tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_not_found_raises_img_gen_model_not_found_error_with_change_model": 0.06013304099906236,+ "tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_permission_denied_is_configuration_check_credentials": 0.04533641703892499,+ "tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_quota_is_capacity_check_billing": 0.050767957989592105,+ "tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_rate_limit_is_transient": 0.826022250985261,+ "tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_server_error_is_transient": 0.05353008396923542,+ "tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.py::TestOpenAICompletionsImgGenWorkerErrorHandling::test_timeout_is_transient": 0.05418816697783768,+ "tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_no_reasoning_params_returns_none": 0.0016487909015268087,+ "tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_budget_raises_capability_error": 0.0009077920694835484,+ "tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_budget_with_thinking_mode_none_raises": 0.10600370896281675,+ "tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_effort_maps_correctly[high-high]": 0.048049084027297795,+ "tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_effort_maps_correctly[low-low]": 0.08139487501466647,+ "tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_effort_maps_correctly[max-xhigh]": 0.055296125065069646,+ "tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_effort_maps_correctly[medium-medium]": 0.04663979104952887,+ "tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_effort_maps_correctly[minimal-minimal]": 0.07849170692497864,+ "tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_effort_maps_correctly[none-none]": 0.7399095420259982,+ "tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_reasoning_effort_maps_correctly[xhigh-xhigh]": 0.049666040984448045,+ "tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_thinking_mode_adaptive_raises_capability_error": 0.0007780419546179473,+ "tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py::TestOpenAICompletionsReasoning::test_thinking_mode_none_raises_capability_error": 0.0011189999640919268,+ "tests/unit/pipelex/providers/openai/test_openai_completions_usage_capture.py::TestOpenAICompletionsUsageCapture::test_factory_maps_basic_usage": 0.6151112089282833,+ "tests/unit/pipelex/providers/openai/test_openai_completions_usage_capture.py::TestOpenAICompletionsUsageCapture::test_factory_maps_cached_audio_and_reasoning_details": 0.0014989180490374565,+ "tests/unit/pipelex/providers/openai/test_openai_completions_usage_capture.py::TestOpenAICompletionsUsageCapture::test_worker_gen_text_captures_usage": 0.0036747920094057918,+ "tests/unit/pipelex/providers/openai/test_openai_completions_usage_capture.py::TestOpenAICompletionsUsageCapture::test_worker_gen_text_no_usage_leaves_empty": 0.08017408289015293,+ "tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc0-transient]": 0.004208291997201741,+ "tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc1-transient]": 0.0017005839617922902,+ "tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc2-transient]": 0.15127799997571856,+ "tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_real_instructor_propagates_transport_error_raw": 0.33356933400500566,+ "tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_unrecognized_underlying_falls_back_to_unknown": 0.0029266250785440207,+ "tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_auth_error_is_configuration": 0.004242540919221938,+ "tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_bad_request_content_policy": 0.0038973750779405236,+ "tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_bad_request_generic_is_content": 0.00565191701753065,+ "tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_connection_error_is_transient": 0.00403724901843816,+ "tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_not_found_is_configuration": 0.004396583943162113,+ "tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_rate_limit_is_transient": 0.6468827079515904,+ "tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_rate_limit_quota_is_capacity": 0.006082250038161874,+ "tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.py::TestOpenAICompletionsWorkerObjectErrorHandling::test_wrapped_timeout_is_transient": 0.004419000004418194,+ "tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_authentication_error_is_configuration_check_credentials": 0.0021175420260988176,+ "tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_connection_error_is_transient": 0.003264416998717934,+ "tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_content_policy_bad_request_is_content_change_input": 0.006152042013127357,+ "tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_error_report_includes_provider_metadata": 0.1026959580485709,+ "tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_generic_bad_request_is_content_change_input": 0.004358667065389454,+ "tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_internal_server_error_is_transient": 0.0036700828932225704,+ "tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_not_found_raises_img_gen_model_not_found_error_with_change_model": 0.003696041996590793,+ "tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_permission_denied_is_configuration_check_credentials": 0.0038649989292025566,+ "tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_quota_exhausted_is_capacity_with_check_billing": 0.005643542041070759,+ "tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_rate_limit_is_transient_with_wait_and_retry": 0.6539237070828676,+ "tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_error_handling.py::TestOpenAIImgGenWorkerErrorHandling::test_timeout_is_transient": 0.00149891700129956,+ "tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_usage_capture.py::TestOpenAIImgGenWorkerUsageCapture::test_worker_captures_img_gen_usage": 0.8421038339729421,+ "tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_no_reasoning_params_returns_none": 0.000509166915435344,+ "tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_budget_raises_capability_error": 0.0010169989545829594,+ "tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_budget_with_thinking_mode_none_raises": 0.12266637594439089,+ "tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_effort_maps_correctly[high-high]": 0.05973316705785692,+ "tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_effort_maps_correctly[low-low]": 0.04036812495905906,+ "tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_effort_maps_correctly[max-xhigh]": 0.053742292046081275,+ "tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_effort_maps_correctly[medium-medium]": 0.0496343340491876,+ "tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_effort_maps_correctly[minimal-minimal]": 0.04827412503072992,+ "tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_effort_maps_correctly[none-none]": 0.8735435830312781,+ "tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_reasoning_effort_maps_correctly[xhigh-xhigh]": 0.078382418025285,+ "tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_thinking_mode_adaptive_raises_capability_error": 0.0018397510284557939,+ "tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py::TestOpenAIResponsesReasoning::test_thinking_mode_none_raises_capability_error": 0.000567167007829994,+ "tests/unit/pipelex/providers/openai/test_openai_responses_usage_capture.py::TestOpenAIResponsesUsageCapture::test_factory_maps_basic_usage": 0.6513618730823509,+ "tests/unit/pipelex/providers/openai/test_openai_responses_usage_capture.py::TestOpenAIResponsesUsageCapture::test_factory_maps_cached_and_reasoning_details": 0.0006895410479046404,+ "tests/unit/pipelex/providers/openai/test_openai_responses_usage_capture.py::TestOpenAIResponsesUsageCapture::test_worker_gen_text_captures_usage": 0.0038405010709539056,+ "tests/unit/pipelex/providers/openai/test_openai_responses_usage_capture.py::TestOpenAIResponsesUsageCapture::test_worker_gen_text_no_usage_leaves_empty": 0.10269862599670887,+ "tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc0-transient]": 0.0024986659991554916,+ "tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc1-transient]": 0.005501790961716324,+ "tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_raw_sdk_transport_error_is_classified[sdk_exc2-transient]": 0.07966695801587775,+ "tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_real_instructor_propagates_transport_error_raw": 0.05249029101105407,+ "tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_unrecognized_underlying_falls_back_to_unknown": 0.0029968750313855708,+ "tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_auth_error_is_configuration": 0.003166917071212083,+ "tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_bad_request_content_policy": 0.0019579160143621266,+ "tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_bad_request_generic_is_content": 0.0029777089366689324,+ "tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_connection_error_is_transient": 0.0033682089997455478,+ "tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_not_found_raises_llm_model_not_found_error": 0.0023881239467300475,+ "tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_rate_limit_is_transient": 0.7271886239177547,+ "tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_rate_limit_quota_is_capacity": 0.003742999047972262,+ "tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.py::TestOpenAIResponsesWorkerObjectErrorHandling::test_wrapped_timeout_is_transient": 0.0034763760631904006,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_auth_error_has_configuration_category": 0.0038245419273152947,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_bad_request[blocked_by_safety-The response was blocked by safety systems-content-safety filters]": 0.005733208963647485,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_bad_request[content_policy-Your request was rejected due to content_policy_violation-content-safety filters]": 0.0027672919677570462,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_bad_request[generic_bad_request-Invalid parameter: temperature must be between 0 and 2-content-None]": 0.0046098739840090275,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_connection_error_has_transient_category": 0.002226084005087614,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_not_found_has_configuration_category": 0.003160207939799875,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_rate_limit[generic_rate_limit-Rate limit exceeded. Please retry after 20s-transient-retry]": 0.593930667033419,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_rate_limit[quota_exceeded-You exceeded your current quota, please check your plan-capacity-billing]": 0.006564542010892183,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_rate_limit[quota_insufficient-Error: insufficient_quota - you have exceeded your billing limit-capacity-billing]": 0.005315874994266778,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_timeout[api_timeout-Request timed out-transient]": 0.00286079099169001,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_unhandled_4xx_is_configuration[_make_openai_conflict_error]": 0.002633458061609417,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_completions_llm_unhandled_4xx_is_configuration[_make_openai_unprocessable_error]": 0.0032207079930230975,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_error_report_capacity_not_retryable": 0.08994912501657382,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_error_report_includes_category_and_retryable": 0.003071292012464255,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_img_gen_auth_error": 0.004427957988809794,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_img_gen_rate_limit_transient": 0.003384625946637243,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_img_gen_unhandled_4xx_is_configuration": 0.0035126670845784247,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_responses_llm_rate_limit_quota": 0.0023602090077474713,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_responses_llm_rate_limit_transient": 0.0028809169307351112,+ "tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py::TestOpenAIWorkerErrorHandling::test_responses_llm_unhandled_4xx_is_configuration": 0.0049176670727320015,+ "tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_error_handling.py::TestPypdfium2WorkerErrorHandling::test_error_report_for_file_not_found": 0.0025235419743694365,+ "tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_error_handling.py::TestPypdfium2WorkerErrorHandling::test_error_report_for_os_error_is_retryable": 0.20976099895779043,+ "tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_error_handling.py::TestPypdfium2WorkerErrorHandling::test_extraction_error_categorization[file_not_found-FileNotFoundError-No such file: /tmp/missing.pdf-content-change_input]": 0.8257286259322427,+ "tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_error_handling.py::TestPypdfium2WorkerErrorHandling::test_extraction_error_categorization[invalid_pdf_format-ValueError-Not a valid PDF file-content-change_input]": 0.004610333999153227,+ "tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_error_handling.py::TestPypdfium2WorkerErrorHandling::test_extraction_error_categorization[io_error_transient-OSError-Permission denied: /tmp/locked.pdf-transient-wait_and_retry]": 0.0021767090074718,+ "tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_error_handling.py::TestPypdfium2WorkerErrorHandling::test_extraction_error_categorization[runtime_extraction_failure-RuntimeError-Failed to parse PDF structure-content-change_input]": 0.0017903330735862255,+ "tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_semantic.py::TestPypdfium2WorkerSemantic::test_local_exception_carries_semantic_user_action[FileNotFoundError-No such file-content-change_input]": 0.6885997920180671,+ "tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_semantic.py::TestPypdfium2WorkerSemantic::test_local_exception_carries_semantic_user_action[OSError-Disk read error-transient-wait_and_retry]": 0.10657879296923056,+ "tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_semantic.py::TestPypdfium2WorkerSemantic::test_local_exception_carries_semantic_user_action[RuntimeError-PDF parsing failed-content-change_input]": 0.0036087919725105166,+ "tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_semantic.py::TestPypdfium2WorkerSemantic::test_local_exception_carries_semantic_user_action[ValueError-Invalid PDF-content-change_input]": 0.004504915908910334,"tests/unit/pipelex/plugins/test_bundle_validator_registry.py::TestBundleValidatorRegistry::test_contribution_recorded_on_the_active_plugin": 0.0003043740289285779,"tests/unit/pipelex/plugins/test_bundle_validator_registry.py::TestBundleValidatorRegistry::test_duplicate_mode_fails_loud_naming_both_plugins": 0.0007446249946951866,"tests/unit/pipelex/plugins/test_bundle_validator_registry.py::TestBundleValidatorRegistry::test_empty_registry_reports_mode_absent": 0.11159483302617446,@@ -7201,7 +7201,7 @@"tests/unit/pipelex/plugins/test_inference_backend_coverage.py::TestInferenceBackendCoverage::test_cross_family_vendor_registers_into_all_its_families[linkup]": 0.0003347099991515279,"tests/unit/pipelex/plugins/test_inference_backend_coverage.py::TestInferenceBackendCoverage::test_cross_family_vendor_registers_into_all_its_families[mistral]": 0.00037716602673754096,"tests/unit/pipelex/plugins/test_inference_backend_coverage.py::TestInferenceBackendCoverage::test_cross_family_vendor_registers_into_all_its_families[openai]": 0.0003397089894860983,- "tests/unit/pipelex/plugins/test_linkup_plugin_guard.py::TestLinkupSearchWorkerGuard::test_missing_linkup_sdk_raises_missing_dependency": 0.7409487919067033,+ "tests/unit/pipelex/providers/linkup/test_linkup_plugin_guard.py::TestLinkupSearchWorkerGuard::test_missing_linkup_sdk_raises_missing_dependency": 0.7409487919067033,"tests/unit/pipelex/plugins/test_model_lister_coverage.py::TestModelListerCoverage::test_registered_sdk_resolves_to_a_lister[anthropic]": 0.00034479197347536683,"tests/unit/pipelex/plugins/test_model_lister_coverage.py::TestModelListerCoverage::test_registered_sdk_resolves_to_a_lister[azure_openai]": 0.0009358330280520022,"tests/unit/pipelex/plugins/test_model_lister_coverage.py::TestModelListerCoverage::test_registered_sdk_resolves_to_a_lister[azure_openai_responses]": 0.00039833300979807973,@@ -7239,41 +7239,41 @@"tests/unit/pipelex/plugins/test_plugin_discovery.py::TestPluginDiscovery::test_duplicate_orchestrator_names_both": 0.0006399570847861469,"tests/unit/pipelex/plugins/test_plugin_discovery.py::TestPluginDiscovery::test_registry_round_trip": 0.001436999998986721,"tests/unit/pipelex/plugins/test_plugin_discovery.py::TestPluginDiscovery::test_version_mismatch_fails_loud": 0.0011169580393470824,- "tests/unit/pipelex/plugins/test_plugin_pipelex_storage_images.py::TestGoogleFactoryPipelexStorageSupport::test_prepare_image_part_with_pipelex_storage_uri": 0.7210978340008296,- "tests/unit/pipelex/plugins/test_plugin_pipelex_storage_images.py::TestMistralFactoryPipelexStorageSupport::test_make_mistral_image_url_with_pipelex_storage_uri": 0.09015033295145258,- "tests/unit/pipelex/plugins/test_plugin_pipelex_storage_images.py::TestPromptImageUtilsPipelexStorageSupport::test_prepare_prompt_image_as_base64_with_pipelex_storage_uri": 0.18312679196242243,+ "tests/unit/pipelex/providers/test_plugin_pipelex_storage_images.py::TestGoogleFactoryPipelexStorageSupport::test_prepare_image_part_with_pipelex_storage_uri": 0.7210978340008296,+ "tests/unit/pipelex/providers/test_plugin_pipelex_storage_images.py::TestMistralFactoryPipelexStorageSupport::test_make_mistral_image_url_with_pipelex_storage_uri": 0.09015033295145258,+ "tests/unit/pipelex/providers/test_plugin_pipelex_storage_images.py::TestPromptImageUtilsPipelexStorageSupport::test_prepare_prompt_image_as_base64_with_pipelex_storage_uri": 0.18312679196242243,"tests/unit/pipelex/plugins/test_registered_plugin_names.py::TestRegisteredPluginNames::test_empty_when_nothing_registered": 0.096032957022544,"tests/unit/pipelex/plugins/test_registered_plugin_names.py::TestRegisteredPluginNames::test_only_registered_discoveries_are_named": 0.7302815829752944,"tests/unit/pipelex/plugins/test_require_sdk.py::TestRequireSdk::test_dotted_spec_with_absent_parent_raises_missing_dependency": 0.0020585000165738165,"tests/unit/pipelex/plugins/test_require_sdk.py::TestRequireSdk::test_missing_spec_raises_missing_dependency": 0.0015124999918043613,"tests/unit/pipelex/plugins/test_require_sdk.py::TestRequireSdk::test_multi_spec_partial_missing_names_only_absent": 0.10445387498475611,"tests/unit/pipelex/plugins/test_require_sdk.py::TestRequireSdk::test_present_spec_does_not_raise": 0.642039624042809,- "tests/unit/pipelex/plugins/test_secrets_plugin.py::TestSecretsPlugin::test_env_factory_constructs_an_env_secrets_provider": 0.12042454193579033,- "tests/unit/pipelex/plugins/test_secrets_plugin.py::TestSecretsPlugin::test_registers_the_env_factory": 0.722800332994666,+ "tests/unit/pipelex/providers/secrets/test_secrets_plugin.py::TestSecretsPlugin::test_env_factory_constructs_an_env_secrets_provider": 0.12042454193579033,+ "tests/unit/pipelex/providers/secrets/test_secrets_plugin.py::TestSecretsPlugin::test_registers_the_env_factory": 0.722800332994666,"tests/unit/pipelex/plugins/test_secrets_provider_registry.py::TestSecretsProviderRegistry::test_contribution_recorded_on_the_active_plugin": 0.0006684170220978558,"tests/unit/pipelex/plugins/test_secrets_provider_registry.py::TestSecretsProviderRegistry::test_duplicate_method_fails_loud_naming_both_plugins": 0.09373887500260025,"tests/unit/pipelex/plugins/test_secrets_provider_registry.py::TestSecretsProviderRegistry::test_empty_registry_misses_every_method": 0.0007073740707710385,"tests/unit/pipelex/plugins/test_secrets_provider_registry.py::TestSecretsProviderRegistry::test_get_required_miss_raises_listing_registered_methods": 0.0006764589925296605,"tests/unit/pipelex/plugins/test_secrets_provider_registry.py::TestSecretsProviderRegistry::test_registered_factory_is_retrievable_by_method": 0.6490110840531997,- "tests/unit/pipelex/plugins/test_storage_plugin.py::TestStoragePlugin::test_factory_constructs_the_matching_provider[in-memory]": 0.05554354202467948,- "tests/unit/pipelex/plugins/test_storage_plugin.py::TestStoragePlugin::test_factory_constructs_the_matching_provider[local]": 0.07053058396559209,- "tests/unit/pipelex/plugins/test_storage_plugin.py::TestStoragePlugin::test_factory_constructs_the_matching_provider[s3]": 0.07494629098800942,- "tests/unit/pipelex/plugins/test_storage_plugin.py::TestStoragePlugin::test_gcp_factory_reads_credentials_from_the_hub_secrets_provider": 0.3349483740166761,- "tests/unit/pipelex/plugins/test_storage_plugin.py::TestStoragePlugin::test_registers_a_factory_for_every_builtin_method": 0.7647797919926234,+ "tests/unit/pipelex/providers/storage/test_storage_plugin.py::TestStoragePlugin::test_factory_constructs_the_matching_provider[in-memory]": 0.05554354202467948,+ "tests/unit/pipelex/providers/storage/test_storage_plugin.py::TestStoragePlugin::test_factory_constructs_the_matching_provider[local]": 0.07053058396559209,+ "tests/unit/pipelex/providers/storage/test_storage_plugin.py::TestStoragePlugin::test_factory_constructs_the_matching_provider[s3]": 0.07494629098800942,+ "tests/unit/pipelex/providers/storage/test_storage_plugin.py::TestStoragePlugin::test_gcp_factory_reads_credentials_from_the_hub_secrets_provider": 0.3349483740166761,+ "tests/unit/pipelex/providers/storage/test_storage_plugin.py::TestStoragePlugin::test_registers_a_factory_for_every_builtin_method": 0.7647797919926234,"tests/unit/pipelex/plugins/test_storage_provider_registry.py::TestStorageProviderRegistry::test_contribution_recorded_on_the_active_plugin": 0.0009717909852042794,"tests/unit/pipelex/plugins/test_storage_provider_registry.py::TestStorageProviderRegistry::test_duplicate_method_fails_loud_naming_both_plugins": 0.09088424901710823,"tests/unit/pipelex/plugins/test_storage_provider_registry.py::TestStorageProviderRegistry::test_empty_registry_misses_every_method": 0.0007029579719528556,"tests/unit/pipelex/plugins/test_storage_provider_registry.py::TestStorageProviderRegistry::test_get_required_miss_raises_listing_registered_methods": 0.0008662079926580191,"tests/unit/pipelex/plugins/test_storage_provider_registry.py::TestStorageProviderRegistry::test_registered_factory_is_retrievable_by_method": 0.7504359159502201,- "tests/unit/pipelex/plugins/test_transport_retry_wiring.py::TestTransportRetryWiring::test_anthropic_factory_passes_max_retries": 0.8364323329878971,- "tests/unit/pipelex/plugins/test_transport_retry_wiring.py::TestTransportRetryWiring::test_gateway_completions_factory_passes_max_retries": 0.004081791033968329,- "tests/unit/pipelex/plugins/test_transport_retry_wiring.py::TestTransportRetryWiring::test_gateway_responses_factory_passes_max_retries": 0.10085025004809722,- "tests/unit/pipelex/plugins/test_transport_retry_wiring.py::TestTransportRetryWiring::test_google_factory_passes_retry_options": 0.0025528749683871865,- "tests/unit/pipelex/plugins/test_transport_retry_wiring.py::TestTransportRetryWiring::test_mistral_factory_builds_retry_config_when_enabled": 0.00204149994533509,- "tests/unit/pipelex/plugins/test_transport_retry_wiring.py::TestTransportRetryWiring::test_mistral_factory_disables_retry_when_zero": 0.0025108749978244305,- "tests/unit/pipelex/plugins/test_transport_retry_wiring.py::TestTransportRetryWiring::test_openai_factory_passes_max_retries": 0.056762292981147766,- "tests/unit/pipelex/plugins/test_transport_retry_wiring.py::TestTransportRetryWiring::test_portkey_completions_factory_passes_max_retries": 0.0028863330371677876,- "tests/unit/pipelex/plugins/test_transport_retry_wiring.py::TestTransportRetryWiring::test_portkey_responses_factory_passes_max_retries": 0.003642791009042412,+ "tests/unit/pipelex/providers/test_transport_retry_wiring.py::TestTransportRetryWiring::test_anthropic_factory_passes_max_retries": 0.8364323329878971,+ "tests/unit/pipelex/providers/test_transport_retry_wiring.py::TestTransportRetryWiring::test_gateway_completions_factory_passes_max_retries": 0.004081791033968329,+ "tests/unit/pipelex/providers/test_transport_retry_wiring.py::TestTransportRetryWiring::test_gateway_responses_factory_passes_max_retries": 0.10085025004809722,+ "tests/unit/pipelex/providers/test_transport_retry_wiring.py::TestTransportRetryWiring::test_google_factory_passes_retry_options": 0.0025528749683871865,+ "tests/unit/pipelex/providers/test_transport_retry_wiring.py::TestTransportRetryWiring::test_mistral_factory_builds_retry_config_when_enabled": 0.00204149994533509,+ "tests/unit/pipelex/providers/test_transport_retry_wiring.py::TestTransportRetryWiring::test_mistral_factory_disables_retry_when_zero": 0.0025108749978244305,+ "tests/unit/pipelex/providers/test_transport_retry_wiring.py::TestTransportRetryWiring::test_openai_factory_passes_max_retries": 0.056762292981147766,+ "tests/unit/pipelex/providers/test_transport_retry_wiring.py::TestTransportRetryWiring::test_portkey_completions_factory_passes_max_retries": 0.0028863330371677876,+ "tests/unit/pipelex/providers/test_transport_retry_wiring.py::TestTransportRetryWiring::test_portkey_responses_factory_passes_max_retries": 0.003642791009042412,"tests/unit/pipelex/reporting/test_cost_report_renderer.py::TestRenderRunCostReport::test_console_channel_only": 0.0033198330784216523,"tests/unit/pipelex/reporting/test_cost_report_renderer.py::TestRenderRunCostReport::test_csv_channel_only": 0.0031382080633193254,"tests/unit/pipelex/reporting/test_cost_report_renderer.py::TestRenderRunCostReport::test_no_op_when_both_channels_off": 0.0015167079400271177,@@ -7573,11 +7573,11 @@"tests/unit/pipelex/test_error_report_problem_document.py::TestErrorReportProblemDocument::test_strict_mode_passes_through_detail_for_caller_facing_report": 0.0007309590000659227,"tests/unit/pipelex/test_error_report_problem_document.py::TestErrorReportProblemDocument::test_strict_mode_redacts_detail_and_drops_disclosure_fields": 0.00037933402927592397,"tests/unit/pipelex/test_error_report_problem_document.py::TestErrorReportProblemDocument::test_strict_mode_redacts_detail_for_input_domain_without_caller_facing_flag": 0.0003160840133205056,- "tests/unit/pipelex/test_hub_class_registry.py::TestHubClassRegistry::test_get_class_registry_library_without_registry_falls_back_to_global": 0.0009308339795097709,- "tests/unit/pipelex/test_hub_class_registry.py::TestHubClassRegistry::test_get_class_registry_with_library_id_returns_library_registry": 0.0009797499515116215,- "tests/unit/pipelex/test_hub_class_registry.py::TestHubClassRegistry::test_get_class_registry_without_library_id_returns_global": 0.6962510410230607,- "tests/unit/pipelex/test_hub_class_registry.py::TestHubClassRegistry::test_library_class_registry_gc_with_teardown": 0.0844612080254592,- "tests/unit/pipelex/test_hub_class_registry.py::TestHubClassRegistry::test_library_class_registry_not_in_model_dump": 0.0008788760169409215,+ "tests/unit/pipelex/test_class_registry_scoping.py::TestHubClassRegistry::test_get_class_registry_library_without_registry_falls_back_to_global": 0.0009308339795097709,+ "tests/unit/pipelex/test_class_registry_scoping.py::TestHubClassRegistry::test_get_class_registry_with_library_id_returns_library_registry": 0.0009797499515116215,+ "tests/unit/pipelex/test_class_registry_scoping.py::TestHubClassRegistry::test_get_class_registry_without_library_id_returns_global": 0.6962510410230607,+ "tests/unit/pipelex/test_class_registry_scoping.py::TestHubClassRegistry::test_library_class_registry_gc_with_teardown": 0.0844612080254592,+ "tests/unit/pipelex/test_class_registry_scoping.py::TestHubClassRegistry::test_library_class_registry_not_in_model_dump": 0.0008788760169409215,"tests/unit/pipelex/test_iter_cause_chain.py::TestIterCauseChain::test_self_loop_yields_seed_once": 0.0011258750455453992,"tests/unit/pipelex/test_iter_cause_chain.py::TestIterCauseChain::test_single_exception_yields_only_itself": 0.0006387080065906048,"tests/unit/pipelex/test_iter_cause_chain.py::TestIterCauseChain::test_two_cycle_yields_each_node_exactly_once": 0.12677275098394603,diff --git a/AGENTS.md b/AGENTS.mdindex b3bb8327d..44aef9088 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -86,6 +86,12 @@.venv/bin/pipelex-dev generate-error-pages```+ - **`generate-error-identity`**: Regenerate the committed `(error_type, title, type_uri)` snapshot of every `PipelexError` subclass at `tests/data/errors/error_identity.txt`. `error_type` is the bare class name and consumers outside this repo branch on it, so a rename is a silent wire break — the snapshot turns it into a reviewable diff, gated by `tests/unit/pipelex/errors/test_error_identity_snapshot.py`. Run after adding, renaming or removing an error class. Also available as `make generate-error-identity` (alias `make gei`).++ ```bash+ .venv/bin/pipelex-dev generate-error-identity+ ```+### Pipelex CLI CommandsTo run the Pipelex CLI commands without the logo, you can use the `--no-logo` flag, this will avoid useless tokens in the console output.@@ -320,7 +326,7 @@ Use one casing per acronym (`LLMError` vs `LlmError` collide when kebab-cased in### Spec vs Blueprint Architecture-- **Blueprints** (`pipelex/pipe_operators/`, `pipelex/pipe_controllers/`, `pipelex/core/`) are the MTHDS language reference — what `.mthds` files parse into.+- **Blueprints** (`pipelex/pipe_operators/`, `pipelex/pipe_controllers/`, `pipelex/pipe_machinery/`, `pipelex/mthds_parsing/`, `pipelex/core/`) are the MTHDS language reference — what `.mthds` files parse into. The base `PipeBlueprint` lives in `pipe_machinery/`, the bundle blueprint the parser produces in `mthds_parsing/`, and the concept/domain blueprints in `core/`.- **Specs** (`pipelex/builder/pipe/`) are a convenience authoring format for AI agents. Each spec has `to_blueprint()` that transforms it into the corresponding blueprint. Spec-level fields may differ from blueprint-level fields.When adding validation or fields, decide which layer they belong to. Language rules go on blueprints; authoring convenience goes on specs. See `pipelex/builder/CLAUDE.md` for details.diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 58e3779b3..3e4b7731d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,14 +2,36 @@## [Unreleased]+### Added++- **Renaming an error class is now a reviewable diff instead of a silent wire break.** `ErrorReport.error_type` is `type(self).__name__` with no indirection, and consumers outside this repo `switch` on that string — so a rename leaves their build green and their branch silently unmatched. Nothing in the repo flagged that, which is how `PipelexInterpreterError` → `MthdsParserError` reached four consumer sites unannounced. `tests/data/errors/error_identity.txt` now pins the `(error_type, title, type_uri)` triple of every discoverable `PipelexError` subclass, regenerated with `make generate-error-identity` (alias `make gei`, or `pipelex-dev generate-error-identity`) and gated by `tests/unit/pipelex/errors/test_error_identity_snapshot.py`. The rendering is pure — no Pipelex bootstrap — and the population comes from the same `iter_pipelex_error_subclasses()` helper the docs generator uses, so it cannot silently miss a deferred-import error module. Documented in [Error Model](under-the-hood/error-model.md).++- **The vendor-neutrality of `pipelex.cogt` is now pinned, not just documented.** `tests/unit/pipelex/cogt/test_cogt_dependency_boundaries.py` asserts two golden sets over an AST walk of `pipelex/cogt/**`: its third-party import roots (framework and infrastructure only — no inference-provider SDK), and the exact `cogt → pipelex.providers` statements, each recorded with its import form so promoting a deferred import to module level shows up too. These are the edges [Known inversions](contribute/hub-layering.md#known-inversions) documents in prose, and no other gate can see them — `pipelex.cogt` and `pipelex.providers` are both runtime-layer, so the hub-layering guard and the import-closure test are blind to an edge between them by construction. Golden sets rather than a rule, because these are accepted inversions: the point is to turn a sixth edge into a diff a reviewer reads. The img-gen neutrality test's coverage comment is corrected in the same change to claim only what its glob proves.++- **The subject-grants registry's sort order is now enforced, not just claimed.** `subject_grants.toml` is machine-written and rewritten sorted by key on every `make subject-grant`, and the convention doc has always said so — but nothing checked it, and an unsorted registry parses fine and grants exactly the same subjects, so a bulk path rewrite scrambled it silently and stayed scrambled across three commits. The keyword-only guard gains an `unsorted-grant` violation kind, riding the existing `make check-keyword-only` → `make agent-check` → CI gates with no new target. Order is read from the raw file text — TOML declares table order insignificant, so the parsed `dict` is no evidence of it — and the text scan is cross-checked against the parsed keys, with a disagreement raised as an explicit check error rather than a quietly narrowed scan. Registry order is a whole-file property, so it is a full-scan rule: the per-file `PostToolUse` hook cannot see it, exactly as with `dead-grant`. See [Keyword-only arguments](contribute/keyword-only-arguments.md).++- **`.test_durations` is gated against a bulk path rewrite.** The per-test timing map pytest-split uses to balance the CI shards is generated, committed, and touched by nobody, so a rewrite of test paths walks straight past it: the file still parses, the shards still run, and they silently unbalance against tests that can never match again. `tests/unit/repo/test_test_durations_paths.py` asserts every recorded test *file path* still exists on disk. The gate is deliberately on the file path, not the node id — a path rewrite breaks paths, while parametrization churn breaks node ids and is benign (pytest-split treats an unknown id as average duration), so pinning ids would need a full unfiltered collection plus a tolerance policy for legitimate drift.+### Changed- **Breaking: `pipelex.hub` is gone, split into `pipelex.runtime_hub` and `pipelex.interpreter_hub`.** The split names the two layers it separates, on the textbook language-implementation division: the **runtime** is the machinery present at execution time whatever is loaded, the **interpreter** reads a method and executes it. There is no alias shim — a stale import fails loudly at import time rather than silently resolving to the wrong layer. `runtime_hub` holds process-scoped infrastructure (config, console, secrets, storage, telemetry, models, inference, content generation, reporting, run mode, tracing, the plugin registries, `get_class_registry`); `interpreter_hub` holds the loaded method's machinery (library manager and lookups, the current-library contextvar, library dirs, pipe router, pipe run and pipeline manager, the PipeFunc executor). `get_pipelex_hub` splits into `get_runtime_hub` / `get_interpreter_hub`, so every external call site must pick the container it actually meant. The rule is one-way and mechanically enforced (`make check-hub-layering`, alias `chl`, in `make agent-check` and CI): `interpreter_hub` may import `runtime_hub`, never the reverse, and no module anywhere may reference `pipelex.hub` — in an import *or* a string literal (dynamic import, mock patch target, config path). The payoff is measurable and pinned by a subprocess import-closure test: importing the Pipelex runtime now loads **zero** interpreter modules, down from 50 — you can embed the inference engine without loading a line of the MTHDS interpreter. See [Hub layering convention](contribute/hub-layering.md).-- **Breaking: misplaced types moved to the package that actually owns them.** `JobMetadata` / `JobCategory` / `UnitJobId` → `pipelex.system.job_metadata`, `JobMetadataError` → `pipelex.system.exceptions`, `TraceContext` → `pipelex.system.trace_context`, `DataInclusionConfig` → `pipelex.system.data_inclusion_config`, `TextFormat` → `pipelex.tools.templating.text_format`, `TemplatingStyle` / `TagStyle` → `pipelex.tools.templating.templating_style`, `TemplateCategory` → `pipelex.tools.jinja2.template_category`, and the neutral resolved-field layer → `pipelex.core.concepts.resolved_fields`. The TOML config shape is unchanged throughout (`[...graph_config.data_inclusion]` still parses); only the Python homes moved. The two pipe renderers regrouped into `pipelex.core.pipes.rendering` (`input_renderer` from `core.pipes.inputs`, `output_renderer` from `core.pipes.output`).+- **Breaking: misplaced types moved to the package that actually owns them.** `JobMetadata` / `JobCategory` / `UnitJobId` → `pipelex.system.job_metadata`, `JobMetadataError` → `pipelex.system.exceptions`, `TraceContext` → `pipelex.system.trace_context`, `DataInclusionConfig` → `pipelex.system.data_inclusion_config`, `TextFormat` → `pipelex.tools.templating.text_format`, `TemplatingStyle` / `TagStyle` → `pipelex.tools.templating.templating_style`, `TemplateCategory` → `pipelex.tools.jinja2.template_category`, and the neutral resolved-field layer → `pipelex.core.concepts.resolved_fields`. The TOML config shape is unchanged throughout (`[...graph_config.data_inclusion]` still parses); only the Python homes moved. The two pipe renderers regrouped into one `rendering/` package (`input_renderer` from `core.pipes.inputs`, `output_renderer` from `core.pipes.output`); they ship at `pipelex.pipe_machinery.rendering`, having left `core/` with the rest of the Pipe machinery — see the entry below.- **Breaking: `core/`'s data model resolves concepts and pipes through injected providers instead of reaching into the hub.** `StuffFactory.make_stuff_from_stuff_content_or_data` / `make_from_blueprint` / `make_from_concept_ref`, `InputShaper.shape` / `resolve_input_kind`, `WorkingMemoryFactory.make_from_pipeline_inputs`, `InputStuffSpecsFactory.make_from_blueprint` / `make_from_string`, and `StuffSpecFactory.make_from_blueprint` all take a required `concept_provider`. A new read-side contract owns that surface — `ConceptProviderAbstract` (`pipelex.core.concepts.concept_provider_abstract`), which `ConceptLibraryAbstract` now extends, keeping library management in the interpreter layer. There is no pipe counterpart: nothing in core's runtime half resolves a pipe, so `get_required_pipe` stays on `PipeLibraryAbstract`. `pipelex.core`'s data-model packages join the enforced runtime layer as a result; the half that names a `Pipe` stays in the interpreter layer by construction.+- **Breaking: the pipe-kind registration manifest left `core/` — `CoreRegistryModels` no longer carries the pipe lists.** `PIPE_OPERATORS`, `PIPE_OPERATORS_FACTORY`, `PIPE_CONTROLLERS`, `PIPE_CONTROLLERS_FACTORY`, `PIPE_SIGNATURES` and `PIPE_SIGNATURES_FACTORY` now live on `PipeRegistryModels` in the new `pipelex.pipe_machinery.registry_models`; `pipelex.core.registry_models.CoreRegistryModels` keeps the value model (`STUFF`, `EXPERIMENTAL`, `FIELD_EXTRACTION`) only. Both manifests are registered side by side at boot, so no registered class changes and serialized payloads are untouched — only the import path of the pipe half moved. The point is the directory: a manifest listing every pipe class and every pipe factory made `core` read as a dependant of the pipe packages it sits below, and importing it pulled the whole interpreter in. `core.registry_models` now imports nothing from `pipe_operators` / `pipe_controllers` / `pipe_signature`, which drops core's inverted `core → pipe_*` import statements from 43 to 19. The new [Registration surface](contribute/registration-surface.md) page documents every place a new pipe kind has to be registered.+- **Breaking: the MTHDS parser left `core/` — `pipelex.core.interpreter` and `pipelex.core.bundles` are now `pipelex.mthds_parsing`, and `PipelexInterpreter` is `MthdsParser`.** `core/interpreter/interpreter.py` becomes `mthds_parsing/parser.py`; `bundle_elaborator`, `helpers`, `validation_error_categorizer`, `pipe_sorter` and `pipelex_bundle_blueprint` move across unchanged; the two `exceptions.py` modules merge into one. Parsing the MTHDS language is an MTHDS-owned concept, and `core/interpreter/` collided with the *interpreter layer* while meaning something much narrower. **`PipelexInterpreterError` is renamed `MthdsParserError`** — this is wire-visible, not merely an import break: the class name is the `error_type` value clients branch on, and its documentation `type_uri` moves from `errors/pipelex-interpreter-error/` to `errors/mthds-parser-error/` (a docs redirect keeps the retired URI resolving; a consumer switching on the string does **not** get one). Its RFC 7807 `title` moves with it, from `"Pipelex interpreter"` to `"MTHDS parser"` — declared rather than auto-derived, since deriving from the class name would render the standard's brand as "Mthds parser". Its error-reference page also moves macro-section, from Platform & tooling back to **Authoring & language**, where a `.mthds` that will not parse belongs. `BundleElaboratorError` keeps its name. `PipelexBundleBlueprintValidationErrorData` did **not** move with the parser: `pipeline/` and `libraries/` carry it into every runtime-layer import closure, so it now lives in `pipelex.core.exceptions` beside the two sibling structured error-data models — which is what lets `mthds_parsing` be named in the closure test's interpreter predicate with no exclusion.+- **Breaking: core's Pipe machinery moved to `pipelex.pipe_machinery`, and `pipelex.core` is now a single declared runtime-layer package.** `pipe_abstract`, `pipe_factory`, `pipe_blueprint`, `validation`, `template_guard_lint` and `rendering/` leave `pipelex.core.pipes` for `pipelex.pipe_machinery` (joining `registry_models`, which arrived there earlier); `handle_pipe_errors` follows its importers into `pipelex.mthds_parsing`. `PipeType` and `PipeCategory` travel with `pipe_blueprint`. What is left in `pipelex.core.pipes` is exactly its runtime half — `inputs/`, `stuff_spec/`, `pipe_output`, `variable_multiplicity`, `exceptions`. The layer question is **inbound, not outbound**: every module that moved has zero declared runtime-layer importers, while every module that stayed has at least one. The payoff is the declaration itself — the hub-layering guard's `RUNTIME_LAYER_PACKAGES` drops six `pipelex.core.*` entries for the single `pipelex.core`, and the import-closure test's interpreter predicate drops its per-module list *and* its one exclusion to become a plain top-level-package membership test. Both were enumerations working around modules filed in the wrong package. Measured: `pipelex.core` modules loading a non-zero number of interpreter modules 9 → **0**, and inverted `core → pipe_*` import statements 43 → **0**.+- **Breaking: the interpreter-touching built-in plugins moved to `pipelex.interpreter_plugins`, and `build_registrar` takes the plugin list as a parameter.** `DirectOrchestratorPlugin` and `PipeFuncPlugin` construct interpreter-layer objects (a `DirectOrchestrator`, a `DirectBundleValidator`, a `DirectPipeFuncExecutor`), so they no longer live under the runtime-layer `pipelex.plugins` package: they are now `pipelex.interpreter_plugins.direct.direct_plugin` and `pipelex.interpreter_plugins.pipe_func.pipe_func_plugin`. The runtime adapters' own manifest keeps them as `RUNTIME_BUILTIN_PLUGINS` / `RUNTIME_CORE_UNCONDITIONAL_PLUGIN_NAMES` (it ships at `pipelex.providers.builtins`, having moved with the adapters later in this same cycle — see the entry below); `pipelex.interpreter_plugins.builtins` composes both halves into `BUILTIN_PLUGINS` / `CORE_UNCONDITIONAL_PLUGIN_NAMES`. `build_registrar` now requires `builtin_plugins=` and `core_unconditional_plugin_names=` instead of importing them, which is what keeps `pipelex.plugins` importable without the interpreter. External plugins are unaffected — they are discovered through the `pipelex.plugins` entry point and sit in no declared layer. `PipelexPlugin` gains a documented invariant: **a plugin belongs to exactly one layer.**+- **Breaking: the built-in vendor adapters left `pipelex.plugins` for the new `pipelex.providers`.** `pipelex/plugins/` was two things under one name — the plugin *mechanism* and the built-in vendor *adapters* — and the name read as the second, which is what kept the one-way dependency between them invisible. The provider directories (`anthropic`, `azure_rest`, `bedrock`, `blackboxai`, `docling`, `fal`, `gateway`, `google`, `huggingface`, `linkup`, `mistral`, `openai`, `openrouter`, `portkey`, `pypdfium2`, `secrets`, `storage`) are now `pipelex.providers.<name>`, and their aggregate manifest moves with them to `pipelex.providers.builtins`. `pipelex.plugins` keeps the mechanism only: `contract`, `registrar`, `discovery`, `exceptions`, `model_handle`, `sdk_client_registry`, `sdk_client_manager`, `backend_extras_factory` and the capability registries. `providers/` beats `backends/` as a name because `pipelex/cogt/model_backends/` already exists and the code's own word for the non-inference adapters is "provider" (`secrets_provider_registry`, `storage_provider_registry`).++ Two things this does **not** change. **The plugin contract is untouched** — an out-of-tree plugin imports `pipelex.plugins.contract` and `pipelex.plugins.registrar`, both of which stay put, and it is still discovered through the `pipelex.plugins` entry-point group, which is a group identifier rather than a module path. **No layer moved**: both packages are declared runtime-layer, and `pipelex.providers` joins `RUNTIME_LAYER_PACKAGES` alongside `pipelex.plugins`. That addition is asserted by a test, because omitting it would have made the guard *quieter* rather than louder — its transitive rule filters candidates through `is_runtime_layer`, so an undeclared package is excluded from the rule's domain instead of reported by it.++ The break is in-tree only: measured across every sibling repo, **no external consumer imports the vendor paths**. In the error reference, the single "Provider plugins" heading splits into **Provider adapters** (a vendor SDK rejected the call) and **Plugin system** (a plugin failed to load or claimed a taken slot); both stay under *Inference & providers*, and no error class is renamed, so every `error_type` and `type_uri` is unchanged.++- **Breaking: the img-gen geometry mappings moved inward, out of the vendor adapters and into `pipelex/cogt/img_gen/`.** `pipelex.providers.google.google_img_gen_factory.GoogleImgGenFactory` is now `pipelex.cogt.img_gen.img_gen_gemini_mapping.ImgGenGeminiMapping`, and `pipelex.providers.openai.openai_img_gen_factory.OpenAIImgGenFactory` is now `pipelex.cogt.img_gen.img_gen_gpt_mapping.ImgGenGptMapping`. The wire-literal type aliases follow the family rather than the vendor (`ResolvedGoogleImageConfig` → `ResolvedGeminiImageConfig`, `GoogleAspectRatioType` → `GeminiAspectRatioType`, `GoogleImageSize` → `GeminiImageSize`, `OpenAIImageLegacySizeType` / `OpenAIImageModerationType` / `OpenAIImageInputFidelityType` → `GptImageLegacySizeType` / `GptImageModerationType` / `GptImageInputFidelityType`), as do the methods that had carried the vendor into the class name (`size_for_legacy_openai_image`, `moderation_for_openai_image`, `input_fidelity_for_openai_image` → `size_for_legacy_gpt_image`, `moderation_literal`, `input_fidelity_literal`). They were never vendor adapters: they map `AspectRatioTaxonomy` — a `cogt`-owned enum that names model families and no providers — onto provider wire values, and no family is served by a single adapter (the `openai` and `azure_openai` decks both ship GPT Image models; the gateway worker resolves Gemini geometry through the same mapping the native Google worker uses), so there was no provider key to dispatch on and no registry to dispatch through. `cogt/img_gen/img_gen_args_factory.py` now imports nothing from `pipelex.providers`, and the Google worker and the gateway factory import inward instead. One behavior-adjacent detail: `moderation_literal` returns `None` where it used to return the OpenAI SDK's `omit` sentinel — which is what removes the last SDK import from the mapping — and since the caller already dropped the key in that case, the emitted API arguments are identical. Neutrality is pinned by a test from both directions (no third-party import in the mapping source, no `pipelex.providers` module in its import closure), because both packages are runtime-layer and the hub-layering guard is blind to an edge between them by construction. Measured across every sibling repo: no external consumer imports either path.### Fixed+- **The hub-layering guard was only one hop deep, and four modules of the declared runtime-layer `pipelex.plugins` package breached the boundary through it.** `plugins/direct/direct_plugin.py`, `plugins/pipe_func/pipe_func_plugin.py` and their two aggregators (`builtins.py`, `discovery.py`) reached `pipelex.interpreter_hub` — and 57–67 interpreter modules — through `runtime_bridge`, `pipeline` and `pipe_operators`, while both `make check-hub-layering` and the import-closure test stayed green. The headline zero-interpreter-modules property was never damaged (nothing on the inference-layer or `runtime_hub` path reached those four), but the declaration claimed something the measurement contradicted. Fixed by relocating the two interpreter-touching plugins (above) rather than by declaring an exception, and the guard now has a **transitive rule**: it resolves the module-level import graph of `pipelex/` and reports any runtime-layer module that *reaches* the interpreter hub, with the shortest import chain and the line of its first hop. The built-in adapters' manifest also joins the import-closure test's entry points, since static analysis cannot see a dynamic import; it ships at `pipelex.providers.builtins`.- **`hub.set_observer()` was documented as the way to register a custom observer, and never worked.** The value was written to the hub and never read — the live path is `Pipelex.make(observers={...})` → `MultiObserver` → `PipeRouter`, so anyone following that page got a silently ignored observer. The write-only state is deleted and both `docs/advanced/observer-provider-injection.md` and `docs/advanced/index.md` are rewritten to the mechanism that actually works, with a warning against hand-constructing a hub.- **A duplicate `set_library_manager` pair in `Pipelex.setup` built, registered, then silently discarded a first `LibraryManager()`** when the caller passed none. Removed.- **The validation feature page promised a check that does not exist and cannot exist.** "Structure validation — Verify concept compatibility between pipes, ensuring inputs and outputs match" read as an inter-step contract: step N's output concept matched against step N+1's declared input concept. `PipeSequence` steps do not chain that way — each resolves its inputs by name from working memory, sourced from the pipeline's inputs or any earlier step, so there is no consecutive-step contract to verify. [Validation & Dry Run](features/validation-dry-run.md) now describes the checks that actually run (per-pipe input concepts, controller output boundary, variable binding) and states the working-memory resolution model explicitly.diff --git a/CLAUDE.md b/CLAUDE.mdindex 58e6e9da0..c8d8f21a7 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -129,6 +129,12 @@.venv/bin/pipelex-dev generate-error-pages```+ - **`generate-error-identity`**: Regenerate the committed `(error_type, title, type_uri)` snapshot of every `PipelexError` subclass at `tests/data/errors/error_identity.txt`. `error_type` is the bare class name and consumers outside this repo branch on it, so a rename is a silent wire break — the snapshot turns it into a reviewable diff, gated by `tests/unit/pipelex/errors/test_error_identity_snapshot.py`. Run after adding, renaming or removing an error class. Also available as `make generate-error-identity` (alias `make gei`).++ ```bash+ .venv/bin/pipelex-dev generate-error-identity+ ```+- **`refresh-graph-ui-sri`**: Refetch the pinned graph viewer assets from jsDelivr (`@pipelex/mthds-ui` standalone JS+CSS, `elkjs`) and rewrite `pipelex/graph/reactflow/standalone_assets.py` with new `sha384` Subresource Integrity hashes. Use when bumping the pinned mthds-ui or elkjs version.```bash@@ -148,7 +154,7 @@### Spec vs Blueprint Architecture-- **Blueprints** (`pipelex/pipe_operators/`, `pipelex/pipe_controllers/`, `pipelex/core/`) are the MTHDS language reference — what `.mthds` files parse into.+- **Blueprints** (`pipelex/pipe_operators/`, `pipelex/pipe_controllers/`, `pipelex/pipe_machinery/`, `pipelex/mthds_parsing/`, `pipelex/core/`) are the MTHDS language reference — what `.mthds` files parse into. The base `PipeBlueprint` lives in `pipe_machinery/`, the bundle blueprint the parser produces in `mthds_parsing/`, and the concept/domain blueprints in `core/`.- **Specs** (`pipelex/builder/pipe/`) are a convenience authoring format for AI agents. Each spec has `to_blueprint()` that transforms it into the corresponding blueprint. Spec-level fields may differ from blueprint-level fields.When adding validation or fields, decide which layer they belong to. Language rules go on blueprints; authoring convenience goes on specs. See `pipelex/builder/CLAUDE.md` for details.diff --git a/Makefile b/Makefileindex e5ce5eaaf..bd56d9d3e 100644--- a/Makefile+++ b/Makefile@@ -104,6 +104,8 @@ make check-mthds-schema - Check MTHDS JSON Schema is up-to-datemake cms - Shorthand -> check-mthds-schemamake generate-error-pages - Generate one docs page per PipelexError subclass under docs/errors/make gep - Shorthand -> generate-error-pages+make generate-error-identity - Regenerate the committed PipelexError wire-identity snapshot+make gei - Shorthand -> generate-error-identitymake update-gateway-models - Update gateway models referencemake ugm - Shorthand -> update-gateway-modelsmake check-gateway-models - Check gateway models reference is up-to-date@@ -210,6 +212,7 @@ export HELPdocs docs-check docs-serve-versioned docs-list docs-deploy docs-deploy-stable docs-deploy-specific-version docs-delete \generate-mthds-schema generate-mthds-schema-quiet gms check-mthds-schema cms \generate-error-pages generate-error-pages-quiet gep \+ generate-error-identity generate-error-identity-quiet gei \update-gateway-models update-gateway-models-quiet ugm check-gateway-models cgm up \test-count check-test-badge \serve-graph serve-graph-bg stop-graph-server view-graph sg vg \@@ -416,6 +419,16 @@ generate-error-pages-quiet: envgep: generate-error-pages@echo "> done: gep = generate-error-pages"+generate-error-identity: env+ $(call PRINT_TITLE,"Regenerating the PipelexError wire-identity snapshot")+ $(VENV_PIPELEX_DEV) generate-error-identity++generate-error-identity-quiet: env+ $(VENV_PIPELEX_DEV) generate-error-identity --quiet++gei: generate-error-identity+ @echo "> done: gei = generate-error-identity"+update-gateway-models: env$(call PRINT_TITLE,"Updating gateway models reference")$(VENV_PIPELEX_DEV) update-gateway-models@@ -526,6 +539,10 @@ codex-tests: env# balance the 8 CI shards. Runs the same selection as gha-tests but records how# long each test takes instead of sharding. Run at release time (see the release# skill) so the shards stay balanced; a stale file silently unbalances them.+# tests/unit/repo/test_test_durations_paths.py gates the one kind of staleness+# that is never benign: an entry whose test FILE no longer exists (a bulk path+# rewrite). Drifting parametrization ids are left alone — pytest-split treats an+# unknown id as average duration.store-test-durations: env$(call PRINT_TITLE,"Storing test durations for pytest-split shard balancing")@echo "• Regenerating test model fixtures with ci profile"diff --git a/TODOS.md b/TODOS.mdindex 6f6935a1e..abdf47acc 100644--- a/TODOS.md+++ b/TODOS.md@@ -1,683 +1,783 @@-# TODOS — split `pipelex.hub` into `runtime_hub` + `interpreter_hub`+# Modularity refactors — implementation tracker-**Worktree:** `_hub/` · **Branch:** `refactor/Hub` (off `origin/dev`, base `f23fda7a0` = v0.40.0) · **PR:** [#1062 → `dev`](https://github.com/Pipelex/pipelex/pull/1062), open.+**Design doc:** [`wip/refactoring/modularity-refactors.md`](wip/refactoring/modularity-refactors.md) — the *why*, the rulings, the measurement snippets. This file is the *how*: ordered work, checkboxes, hard checkpoints.-**Status:** **ALL PHASES DONE + THE RENAME LANDED + PHASES A AND B OF THE REVIEW FOLLOW-UPS APPLIED — all gates green.** PR #1062 is open. **Jump to [Checkpoint B record](#checkpoint-b-record--test-hardening) first**, then [Checkpoint A record](#checkpoint-a-record--pr-1062-review-follow-ups), then [▶ Resume here](#-resume-here-the-rename-is-landed) for the state they build on.+**Worktree:** `_hub/` · **Branch:** `refactor/Modularity-3` (M3 + M1 + M2 + F1, pushed at `6e74c6f26`; `refactor/Modularity-4` merged in via PR #1065 and deleted) · **Base:** `refactor/Hub-2` (PR #1064, still open — see [Gating](#gating)) · **PR:** [#1067](https://github.com/Pipelex/pipelex/pull/1067), open **against `refactor/Hub-2`** so the diff carries the modularity work only; GitHub retargets it to `dev` when #1064 lands · **Status:** **F1 complete and reviewed three times — CHECKPOINT F1 cleared.** All four tracks reviewed and their fixes committed. Only Phase 5 remains.-> ⚠ **The `/review` follow-ups are partially applied.** The executable plan is [`wip/hub/pr-1062-review-followups.md`](wip/hub/pr-1062-review-followups.md) — read it before touching this branch. **Phase A (A1's doc-honesty fix + A2–A8) is done**, recorded at [Checkpoint A](#checkpoint-a-record--pr-1062-review-follow-ups); **Phase B (test hardening, B1–B7) is done**, recorded at [Checkpoint B](#checkpoint-b-record--test-hardening) — every item mutation-verified. **Phase C (release-wave additions) is not started**, and neither is the F1 remedy.->-> **The defect Phase A documents is still live**, deliberately: the layer rule is enforced only one hop deep, so four modules of the *declared runtime-layer* `pipelex.plugins` package load `interpreter_hub` (plus 57–67 interpreter modules) with both gates green. Re-verified twice — 2026-07-26 by the review, and again at Checkpoint A before publishing the numbers. Three things about it are settled and worth not re-deriving: the blast radius is exactly 4 of 476 declared runtime-layer modules, all in `plugins` (the other ten packages are clean across 345 modules); there are three transitive routes, not just the `runtime_bridge` one named in the first draft, and only two of the four modules are leaves; and **the shipped 0-interpreter-modules headline property is *not* damaged** — the inference layer and `runtime_hub` still measure 0 and never reach the breaching modules. What was false was the doc's *scope claim*, and A1 fixed exactly that.->-> **D-R4 is DECIDED (2026-07-27): remedy (d) paired with a minimal (c), in its own PR after #1062 merges** — the built-ins split by layer, the two interpreter-touching plugins relocate to a single interpreter-side home (e.g. `pipelex/interpreter_plugins/`), the weld moves to where welding is legal, and the guard learns the transitive check. Simulated: `pipelex.plugins` goes to 0 of 128 breaching with 3 modules relocated, so the declaration keeps its single line and becomes true. The full decision record and resolutions are in the plan (D-R4 + "Remedy (d) — resolutions").->-> The plan also carries additions the [cross-repo sweep](#cross-repo-sweep) tables below are missing — five consumer repos, and the `docs/specs/` + `conformance/` governed surface that names `pipelex.hub` explicitly. Those are Phase C, folded into the release-gated sweep per D-R1.--The split is landed, the boundary is mechanically enforced (`make check-hub-layering` + a subprocess import-closure test over eight entry points), the misplaced types are moved, and core's data model has joined the runtime layer behind injected providers. Every runtime-layer entry point measures **0 interpreter modules**. Docs and the CHANGELOG breaking-change note are written, and the [runtime/interpreter rename](wip/hub/layer-and-hub-renaming.md) is applied throughout.+**Reviewed 2026-07-27** (`/plan-eng-review`, 8 issues, all ruled). The review reversed **D-M1-2**, ruled **D-M1-4**/**D-M1-5**/**D-M1-6**, re-scoped **F1**, and corrected the cross-repo blast radius in both directions. The changes are folded in below; see [Review findings](#review-findings) for what moved and why.-**What is left is not a phase** — it is the release-gated [cross-repo sweep](#cross-repo-sweep) (three waves). Nothing else is open.+Three tracks, ordered by dependency: **M3 → M1** (M3 is a prerequisite slice of M1), **M2** independent, then one small follow-up. Each track is its own PR.-### Cold start — read in this order+----1. [The one rule](#the-one-rule) and [Symbol partition](#symbol-partition) — the settled boundary.-2. [Checkpoint H-4 record](#checkpoint-h-4-record) — **start here**: why the plan's "all of `core/` goes low" premise was wrong, the `if it names a Pipe, it is high` rule that replaced it, and the injected-provider pattern.-3. [Checkpoint H-3 record](#checkpoint-h-3-record) — the two type moves, why `TraceContext` had to travel with `JobMetadata`, and why the templating primitives split across two packages.-4. [Checkpoint H-2 record](#checkpoint-h-2-record) — what the guard actually enforces (two rules, not one), its two carve-outs, and two CI wiring traps.-5. [Checkpoint H-1 record](#checkpoint-h-1-record) — the split itself, including the two places reality forced a change to the plan (the D5 slot could not live on `RuntimeHub`; boot was deliberately not reordered).-6. [`docs/contribute/hub-layering.md`](docs/contribute/hub-layering.md) — the shipped specification: the two halves, "Where core splits", enforcement, and "Placement, not coupling".+## How to use this file-Three notes for whoever picks this up:+- Work top to bottom. Tick a box only when the thing is *done and verified*, not when it is written.+- **Checkpoints are hard stops.** At a `🛑 CHECKPOINT` you finish the phase, run the gates, update this file, fan out the reviews, and stop for the user. Do not start the next phase in the same session.+- The [Cold-start brief](#cold-start-brief) at the bottom is what a fresh session reads first. Keep it true.+- Measured numbers are recorded as of the date noted. Re-measure rather than trusting them; the *shape* (which modules, zero vs non-zero) is the criterion, not the absolute count.-- **The cross-repo sweep is the only substantial work remaining, and it is release-gated.** Three waves now: the `pipelex.hub` split ([table](#cross-repo-sweep)), the Phase 3 type moves ([table](#cross-repo-impact-added-by-phase-3)), and the Phase 4 moves + signature changes ([table](#cross-repo-impact-added-by-phase-4)). Do all three in one pass per repo.-- **The `hub-layering-convention` drift contract is now in the manifest.** Louis gave explicit say-so; it was added, reviewed, and acked — see [Proposed, reverted, then landed](#proposed-reverted-then-landed).-- **`core.pipes.pipe_output → pipeline.pipeline_models` was NOT removed.** H-3 predicted Phase 4 would take it out; it did not. It remains one of the two edges pulling non-inference modules into the inference closure, which is why the module/SLOC rows are flat at H-4. The reason recorded at H-4 — "`pipe_output` is on the Pipe-touching (high) side of the core split" — was **wrong**, and the PR #1062 review corrected it: `pipe_output` names no `Pipe`, imports zero interpreter modules, and sits inside `runtime_hub`'s own closure. It is runtime-layer. What survives is the edge itself: `SpecialPipelineId` is a leaf constant filed in an interpreter-named package. See [`wip/pr-1062-review-notes.md`](wip/pr-1062-review-notes.md).-- **The PR #1062 agent-review pass is recorded in [`wip/pr-1062-review-notes.md`](wip/pr-1062-review-notes.md).** It fixed the `pipe_output` misclassification above, widened the import-closure predicate to name core's Pipe machinery (closing a real `core.pipes.pipe_blueprint` blind spot), and deferred one item: `pipeline` / `pipe_run` / `graph` leak leaf models into every runtime closure, so the predicate cannot name them yet.+----Design rationale, alternatives considered, and the full measured argument live in [`wip/hub/hub-split-refactor.md`](wip/hub/hub-split-refactor.md). This file is the executable tracker: what to do, in what order, with the concrete tables the work needs. Where the two disagree, this file wins — it carries the settled decisions and the re-measured numbers.+## Gating-ℹ **The names in this document are the final ones.** Louis challenged the Phase 0–4 naming at the close of H-4 and settled on a rename, which has since **landed as its own commit**: the layers are **runtime** / **interpreter**, and the hubs are `runtime_hub` (`RuntimeHub`) / `interpreter_hub` (`InterpreterHub`). This tracker has been swept to those names — including the cross-repo tables, so the sweep rewrites external repos exactly once, straight to the final names. The intermediate `service_hub` / `method_hub` names never shipped. The decision, the rejected alternatives, and the mechanical plan are in [`wip/hub/layer-and-hub-renaming.md`](wip/hub/layer-and-hub-renaming.md); [D1](#decisions) keeps the original naming decision's reasoning verbatim.+- [ ] **PR #1064 (`refactor/Hub-2`) is merged to `dev`.** All three tracks build on the F1 remedy (`pipelex/interpreter_plugins/`, the transitive guard rule). This branch is already based on it, so work can *start* before the merge — but no track may be opened as a PR against `dev` until #1064 lands, or the diff will carry #1064's changes.+- [ ] **PR topology — ruled 2026-07-27: three PRs, with M1 STACKED on M3.** The plan previously said both "M3 → M1" and "each track is based on #1064 and opened against `dev`", which cannot both be true. The topology is:-Note that the prose below still uses "low layer" / "high layer" in the historical checkpoint records (H-1 through H-4), because that was the vocabulary at the time. Read *low* as **runtime** and *high* as **interpreter**; the shipped code, tests, guard and docs use only the new terms.+ ```+ #1064 (refactor/Hub-2)+ └─ M3 ─────────── PR → dev+ └─ M1 ─────── PR → M3 (retarget to dev once M3 merges)+ └─ M2 ─────────── PR → dev (independent)+ └─ F1 ─────── PR → M2+ ```-## The one rule+ ⚠ **Superseded in practice by [D-M2-4](#decisions).** M3, M1 and M2 all landed as commits on `refactor/Modularity-3`, in that order. The prescribed *landing order* is what mattered and it is satisfied; splitting the branch into three PRs after the fact would re-create exactly the three-file conflict the topology existed to avoid. Open it as **one PR against `dev`** once #1064 merges (or split M3 off first if a smaller review is wanted — it is the only one of the three that is genuinely self-contained). F1 stays a separate PR on top, since it is the only behavior change in the track.-`interpreter_hub` may import `runtime_hub`. **`runtime_hub` must never import `interpreter_hub`.** That single arrow is the whole architecture, and it is what the Phase 2 guard checks.+- [x] **Landing order is prescribed, not optional.** M1 and M2 both modify `hub_layering_guard.py`, `test_runtime_layer_import_closure.py` and `docs/contribute/hub-layering.md`. They are *architecturally* independent but **not operationally** independent — parallel branches conflict on those three files. Land M3 → M1 first, then rebase M2. ⚠ **A drift ack does not survive the rebase**: the digest reads the git index, so re-review and re-ack `hub-layering-convention` after rebasing M2.+ → **Resolved by construction (D-M2-4): M2 was built directly on top of M1 on this branch, not on a parallel branch.** The prescribed landing order is satisfied, the three-file conflict never arises, and the rebase-and-re-ack step disappears — the `hub-layering-convention` ack recorded at CHECKPOINT M2 is already against the final tree. The PR topology below collapses accordingly.+- [ ] **M2 is NOT release-gated.** Measured 2026-07-27 across every sibling repo: **zero** external consumers import `pipelex.plugins.<vendor>`. The "one breaking wave" argument covers M3 and M1 only. M2 may land whenever it is ready — it does not have to wait for the sweep, and its row comes out of the [Phase 5](#phase-5--close-out) table.-> At H-1 only the forbidden direction is load-bearing; the permitted one turned out to be unused, because the one low-layer thing `interpreter_hub` needs (the class-registry scoping slot) lives below *both* hubs. Importing either hub loads the other in neither direction — stronger than the rule requires. Phase 2's guard should still check the forbidden direction, not assert the permitted one exists.+----`pipelex/hub.py` is deleted outright — not kept as an alias for either half. A stale import must fail loudly at import time rather than silently resolve to the wrong layer.+## Ground rules for every move-## Baseline — measured on the base commit+These are cross-cutting and each one has already been the cause of a confusing failure somewhere in this repo. Read them before the first `git mv`.-Reproduce with the snippet in [Exit criteria](#exit-criteria--measured-not-asserted). Re-taken at CHECKPOINT H-1 — the after is in [Measured after](#measured-after).+- [ ] **Re-path `subject_grants.toml` in the same commit as the move — and *before* running `make agent-check`.** Grants are keyed `<path>::<qualname>` and staleness is symmetric: a grant whose def moved **hard-fails** `check-keyword-only`. Worse, `make agent-check` runs `fix-keyword-only` *first*, which will silently rewrite the now-"ungranted" subjects to keyword-only — corrupting the diff. Order is always: `git mv` → rewrite grant paths → `make cko` (read-only, must be green) → then `make agent-check`.+ Measured grant hits by moving path (2026-07-27): `core/bundles` 6 · `core/interpreter` 15 · `core/pipes/pipe_abstract` 5 · `core/pipes/rendering` 15 · `core/pipes/pipe_factory` 0 · `core/registry_models` 0 · `plugins/` 160.+- [ ] **Regenerate error pages when an exceptions module moves.** `docs/errors/<slug>.md` carries a `Defined in | <module path>` row, so every moved error class churns its page. Verified: the page **filename and `type_uri` derive from the class name, not the module path** — so a pure move is URL-stable, and only a class *rename* changes a published `type_uri`. Run `make gep` after each move and inspect the diff.+- [ ] **Mirror the test tree in the same commit** — and **derive the list from each test module's actual subject, never from an inventory written in advance.** M1 proved this twice: the tracker's M1a and M1b test inventories were both materially incomplete. Grep each candidate for the source module it imports and route it by that. For M2: `tests/unit/pipelex/plugins/`, `tests/integration/pipelex/plugins/`.+- [ ] **Check every moved test for a path derived from its own depth.** `Path(__file__).parents[N]` silently resolves to a different directory after a move — no import rewrite, type checker or import-graph tool sees a parent count, and it fails only when the test runs. M1b hit exactly this. Re-anchor on a named directory (`next(p for p in Path(__file__).parents if p.name == "tests")`) rather than fixing the index.+- [ ] **`make cleanderived` after every batch of moves**, before running linters or pytest — stale `__pycache__` and collection state make the linters chase ghosts.+- [ ] **Rewrite imports by exact module path, never by prefix substring.** Two live traps:+ - `pipelex.plugins.secrets` (vendor dir) vs `pipelex.plugins.secrets_provider_registry` (mechanism module) — same for `storage`. A prefix `sed` corrupts the mechanism modules.+ - `pipelex.core.interpreter` (the package) vs `pipelex.interpreter_hub` / `interpreter_plugins` (unrelated). Anchor on `pipelex.core.interpreter.` and `pipelex.core.interpreter import`.+- [ ] **Rewrite string-literal module references too — they are not imports and nothing sees them.** `mocker.patch("pipelex.plugins.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model")` is a module path that no import rewrite, no type checker, and no import-graph tool will touch. They fail loudly at test time, but only *after* the move, and a naive import-only rewrite turns the suite red in bulk. Measured 2026-07-27: **M2 = 189** literals, **M1 = 15** (the closure test's own config strings are among them). The `secrets` / `storage` ambiguity above is worse in string form — the sample includes `"pipelex.plugins.storage.storage_plugin..."`.+- [ ] **Use `git mv`** so history follows the file; do the import rewrite as a separate hunk in the same commit.+- [ ] **Sweep with `git grep` or `/usr/bin/grep`, never a bare `grep -r`.** This shell's `grep` is a **ugrep wrapper that honours `.gitignore`** — from the workspace root it silently skips every sibling repo, and inside `_hub` it skips the stale `site/` tree. It returns a *false clean* on exactly the completeness sweep a rename refactor depends on, and it fails silently by construction. Found during M2's review round; M2's own verdict survived re-verification only because the load-bearing pass happened to use `git grep`.+- [ ] **A brace-glob is a module reference no per-name regex will match.** `plugins/{google,openai}/*_img_gen_factory.py` names two modules and matches neither a `google` nor an `openai` substitution keyed on a single vendor. Same class of miss as a string literal, one level further out — and it survives into *unchecked plan items*, where it is worst, because those are instructions for work not yet done. Grep for the brace form explicitly before declaring a rename complete.+- [ ] **Every measurement/guard set is a matched set.** Whenever a module changes layer or package, four places must agree: `RUNTIME_LAYER_PACKAGES` (the guard), `INTERPRETER_PACKAGES` (the closure test), the `INTERPRETER` set in `docs/contribute/hub-layering.md`'s verification snippet, and the classification snippet's `I` in the design doc. Updating one and not the others makes a check pass vacuously.+ **Two of the four are now mechanically bound** (M1c): a test asserts the closure predicate and the doc snippet name the same packages, and two more assert that every entry in `RUNTIME_LAYER_PACKAGES` / `INTERPRETER_PACKAGES` resolves on disk — so a typo can no longer guard nothing. `INTERPRETER_CORE` / `INTERPRETER_CORE_EXCLUDED` are **gone**; do not re-add them. The design doc's copy stays manual (it lives in `wip/`, which is archived at track end).-| | baseline | target after Phase 1 |-| --- | --- | --- |-| interpreter modules loaded by `cogt.content_generation.content_generator` | 50 | **0** |-| pipelex modules loaded | 357 | ≤ 260 |-| SLOC loaded | 29,193 | ≤ 19,000 |+----Call-site inventory (`ast`-parsed over `pipelex/` + `tests/`, zero symbols left unclassified by the partition below):+## Phase 0 — baseline-| | count |-| --- | --- |-| files importing `pipelex.hub` | 309 |-| — low-only | 134 |-| — high-only | 139 |-| — straddling (gain a second import line) | 36 |-| parenthesized multi-line import blocks | 29 |-| `PipelexHub()` construction sites | 5 (2 production, 3 test) |-| `importlib.import_module("pipelex.hub")` hacks | 3 |+Cheap, and it is what every exit criterion is measured against.-## Decisions+- [x] Confirm the tree is clean and gates are green *before* touching anything: `make agent-check`, `make agent-test`, `make drift-check`, `make chl`. — all green on `95a1e9bf7`.+- [x] Re-run the [core classification snippet](wip/refactoring/modularity-refactors.md#measurement) and paste the result into [Measurements](#measurements) below with today's date. — reproduced the [Measurements](#measurements) table exactly (97 / 51×3 / 33 / 30×4, same nine modules).+- [x] Note any drift from the design doc's numbers. **Known already:** re-measured on `bc30149c7` the counts are uniformly higher than the doc's (`registry_models` 97 vs 92, the 48s are 51, the 30 is 33, the 28s are 30). The *set of nine* modules and their ordering are unchanged, so the plan holds; only the absolute figures moved. — confirmed on `95a1e9bf7`; no further drift.+- Also baselined here because M3's exit criteria need them: **43** inverted `core → pipe_*` import statements (24 `registry_models` · 12 `pipelex_bundle_blueprint` · 4 `bundle_elaborator` · 2 `output_renderer` · 1 `pipe_abstract`).+- ⚠ **Gotcha, cost ~10 min:** `make cleanderived` deletes `tests/integration/pipelex/fixtures/_generated_model_sets.py`, which is gitignored but *not* regenerated by `agent-check` — only by the test targets. So the ground rules' "`cleanderived` before the linters" order makes pyright fail with 12 unrelated `reportMissingImports` in `model_selection.py`. Regenerate with `.venv/bin/pipelex-dev preprocess-test-models --generate-fixtures --profile ci` before re-running `agent-check`.-**D1 — module names. SUPERSEDED by the [runtime/interpreter rename](wip/hub/layer-and-hub-renaming.md); the modules are now `pipelex/runtime_hub.py` + `pipelex/interpreter_hub.py`.** The original decision, kept because its rejected alternatives are still live reasoning: *SETTLED: `pipelex/service_hub.py` + `pipelex/method_hub.py`, both flat at the package root, `pipelex/hub.py` deleted. Rejected: keeping `hub.py` for one half (a stale import would silently succeed); `library_hub` (the high half also holds the router, the runner, and the pipeline manager); a `pipelex/hubs/` package (`pipelex.hubs.services` reads worse than `pipelex.service_hub` at 300+ call sites). Noted for review: `method_hub` borrows the MTHDS noun for a runtime container — acceptable because the object genuinely holds the loaded method's libraries, but it is a conscious call against the brand-boundary rule.* That last note is exactly what Louis acted on at the close of H-4: the flat-at-the-root shape and the no-alias deletion survive unchanged, only the two names moved. `library_hub` was re-proposed and re-rejected during the rename, on the same grounds plus one more — a library is inert, while the container is active machinery.+----**D2 — one container or two. SETTLED: two** — `RuntimeHub` and `InterpreterHub`, each its own singleton, each with its own module-level accessors. One container would have to live in the low module, forcing every high-level slot to a quoted `TYPE_CHECKING` annotation — that keeps the god-object and adds a fig leaf. Two is affordable: the construction surface is five sites total.+## M3 — split the boot manifest by layer-**D3 — where `get_pipe_func_executor_registry` lands. SETTLED: high (`interpreter_hub`).** It is a plugin registry by kind but its protocol lives in `pipe_operators/func/`. The underlying inversion — `pipelex/plugins/pipe_func_executor_registry.py` importing from `pipe_operators/` — is recorded as a follow-up (see [Known inversions](#known-inversions-not-fixed-here)), not fixed here.+Removes core's fattest interpreter edge and seeds `pipe_machinery/`. Small, self-contained, no behavior change.-**D4 — does `core/` join the low layer now? SETTLED: no, not in Phase 1.** Five `core/` modules use high-hub symbols; converting them means passing resolved concepts in rather than looking them up, which is design work, not mechanical. Phase 4 does it, and the guard's low-layer set widens only when that lands.+### Work-**D5 — `get_class_registry` is low but reads the library manager. SETTLED: callable resolver slot, defaulting to "no scoping", installed downward at boot.** Not in the design doc; surfaced while building the partition table. It is the decision that makes Phase 1.6 possible at all, so it is recorded here in full.+- [x] Create `pipelex/pipe_machinery/__init__.py` (empty, per repo convention).+- [x] Create `pipelex/pipe_machinery/registry_models.py` holding `PipeRegistryModels(RegistryModels)` with the six pipe lists: `PIPE_OPERATORS`, `PIPE_OPERATORS_FACTORY`, `PIPE_CONTROLLERS`, `PIPE_CONTROLLERS_FACTORY`, `PIPE_SIGNATURES`, `PIPE_SIGNATURES_FACTORY`, plus the ~24 `pipe_operators` / `pipe_controllers` / `pipe_signature` imports that come with them. — 24 imports, as measured.+- [x] Strip those six lists and their imports out of `pipelex/core/registry_models.py`. `CoreRegistryModels` keeps `STUFF`, `EXPERIMENTAL`, `FIELD_EXTRACTION` and the `core.stuffs` imports only. It should end up importing nothing from `pipe_operators` / `pipe_controllers` / `pipe_signature`, and no longer needing `PipeAbstractType` / `PipeFactoryProtocol` / `Any`. — all three dropped as predicted.+- [x] `pipelex/pipelex.py`: import both and register both — two adjacent `register_classes` lines. (`RegistryModels.get_all_models()` reflects over `dir(cls)` and dedups through a `set`, so the split is mechanical and double-registration is impossible.)+- [x] Add `"pipe_machinery"` to `INTERPRETER_PACKAGES` **and** drop `"pipelex.core.registry_models"` from `INTERPRETER_CORE` in `tests/unit/pipelex/test_runtime_layer_import_closure.py`. Do this in M3, not M1 — the moment an interpreter module lives under a new top-level package the predicate must count it, or the test under-counts silently. (The design doc puts this in M1 move 4; it belongs here for `pipe_machinery`, and in M1 for `mthds_parsing`.)+ Also **proved the new token is live**, rather than trusting `DIRTY_ENTRY_POINT` (which only proves *some* token matches): ran `_CLOSURE_SCRIPT` against `pipelex.pipe_machinery.registry_models` and asserted both that it exits 1 and that the offenders list contains a `pipe_machinery` module of its own. This is M1c's "one leaf probe per new package" step, done early for M3's token.+- [x] Update the guard's `RUNTIME_LAYER_PACKAGES` docstring where it enumerates `registry_models` as part of core's interpreter half (`hub_layering_guard.py` ~line 101). The declaration tuple itself does not change in M3.+- [x] `docs/contribute/hub-layering.md`: update the two places naming `core.registry_models` as Pipe machinery inside `core/` (~lines 111, 242).+ ⚠ **There were four, not two.** The drift review found two more, and they are the load-bearing ones: the *"`runtime_hub` must not name anything from …"* list under "Why the boundary exists" (line 80) and the **`INTERPRETER` set inside the page's own verification snippet** (line 91). Both enumerate the interpreter top-level packages, so both go stale on any new one — and a reader running the stale snippet measures zero interpreter modules and believes it. Expect the same pair in M1a (`mthds_parsing`). The tracker's grep for `registry_models` finds neither; grep for `interpreter_plugins` to find them.+- [x] Write the **registration-surface doc** — new page under `docs/contribute/`, registered in **two** places in `mkdocs.yml`: the `llmstxt-md` plugin's section list (~line 330) and the real `nav:` (~line 569). Missing the first one silently drops the page from `llms.txt`. Content: adding a pipe kind touches the kind's package, the type tag (`PipeType`/`PipeCategory`), the blueprint union in `core/bundles/pipelex_bundle_blueprint.py`, `PipeRegistryModels`, and the spec map (`builder/pipe/pipe_spec_map.py` + `pipe_spec_union.py`). Include the note that the spec-layer parallel in `builder/pipe/` is deliberate (see `pipelex/builder/CLAUDE.md`, spec vs blueprint), not duplication to collapse. — `docs/contribute/registration-surface.md`, both mkdocs registrations done.+- [x] **Not doing:** the `PipeBlueprintUnion` extraction (cut in design doc v2 — it would move twice, since M1 hoists `core/bundles/` wholesale). **Not doing:** moving `PipeType` / `PipeCategory` out of `core/pipes/pipe_blueprint.py` — measured 0, runtime-layer, stays in `core/` permanently (D-M1-2). — respected; note `PipeType`/`PipeCategory` move with `pipe_blueprint.py` in M1b under the *reversed* D-M1-2, so "stays in `core/` permanently" here is superseded by the reversal (see [Decisions](#decisions)).+- [x] **CRITICAL — regression test for the split registration.** Nothing in the suite asserts that pipe classes reach the class registry: `tests/unit/pipelex/test_hub_lifecycle.py:39-51` asserts hub singletons and scoping, and the class-registry tests use a synthetic `ScopedModel`. If either `register_classes` line is dropped or mis-wired, **boot still succeeds** and kajson deserialization of a pipe fails later, in production.+ **Assert the full set, not a sample.** One pipe + one stuff only catches a missing *whole* registration call — it cannot catch dropping one of the six lists, or one model out of a list, while hand-splitting `core/registry_models.py:53-93`. So: freeze the pre-split `CoreRegistryModels.get_all_models()` set, assert `CoreRegistryModels ∪ PipeRegistryModels` equals it exactly, **and** assert the two manifests are disjoint. That pins every model across the split and is the only new failure mode M3 introduces.+ → **`tests/unit/pipelex/test_registry_models_split.py`** (new module — the repo's one-TestClass-per-module rule rules out appending to `test_hub_lifecycle.py`, which T1 named). Three tests, and the third is the one T1's verify step is about: the frozen-set and disjointness assertions are computed *from the manifests* and would stay green if `Pipelex.make` never registered them, so a third test reads the **booted class registry** through `get_class_registry()`. **Both mutation checks run, both red as intended:** deleting the `PipeRegistryModels` `register_classes` line → *"booted class registry is missing 24 registered model(s)"*; deleting one model from `PIPE_OPERATORS` → set-equality failure *and* *"missing 1 registered model(s): ['PipeSearch']"*. The frozen set is 42 class names; names are unique, and the test asserts that too so the set comparison cannot lie.+- [x] **`make drift-ack CONTRACT=hub-layering-convention`.** M3 edits `hub_layering_guard.py` (the docstring above the tuple), which is a trigger file in `drift.toml:65-69` — so the contract opens and M3's checkpoint `make drift-check` fails without an ack. Review `docs/contribute/hub-layering.md` for real first: M3 moves the pipe manifest out of `core/`, which the doc describes in two places. Stage the trigger files before acking (the digest reads the git index).+- [x] Changelog entry under `[Unreleased] → ### Changed`, marked **breaking** (`CoreRegistryModels` no longer carries the pipe lists; `pipelex.pipe_machinery.registry_models.PipeRegistryModels` is new).+- [x] **Not in the plan, done anyway (matched-pair ground rule).** The design doc's classification snippet gained `"pipe_machinery"` in its `I` set — it is the *third* copy of the interpreter-package list, alongside the closure test's `INTERPRETER_PACKAGES` and the hub-layering page's `INTERPRETER`. The plan deferred this to M1 ("after M1, extend `I` with …"); leaving it would have made the design doc's own measurement under-count for the whole M3→M1 window. Snippet preamble now names all three copies explicitly so the next package cannot update one and miss two.+- [x] **Not in the plan, done anyway.** `tests/unit/pipelex/cli/dev/test_hub_layering_guard.py:52` asserted `not is_runtime_layer("pipelex.core.registry_models")` under the comment *"Everything that names a `Pipe` … stays in the interpreter layer"*. Post-M3 that module names no `Pipe`, so the assertion was still passing under a false rationale — it now belongs with `pipelex.core.qualified_ref` (undeclared because `pipelex.core` is not a declared package). Regrouped, and added `assert not is_runtime_layer("pipelex.pipe_machinery.registry_models")` for the new home. ⚠ This is the same test M1c rewrites wholesale (T5) — expect a conflict there and resolve in M1c's favour.-> **Amended at implementation (H-1): the slot does not live on `RuntimeHub`.** It lives in a new leaf module, `pipelex/system/registries/class_registry_access.py`, reached through the `class_registry_scoping` module singleton. The mechanism, the default, and the downward-at-boot crossing are all exactly as designed below — only the physical home moved, and it was forced by a measured cycle rather than chosen. See [Checkpoint H-1 record → D5 amendment](#d5-amendment-the-resolver-slot-could-not-live-on-servicehub).+### Exit criteria-Today's body reaches straight into the high layer:+| | baseline | target | **actual** |+| --- | --- | --- | --- |+| interpreter modules loaded by `pipelex.core.registry_models` | 97 | **0** | ✅ **0** (and `hub=0`) |+| inverted `core → pipe_*` import statements | 43 | 19 | ✅ **19** |+| pipe-kind manifests filed inside `core/` | 2 | 1 | ✅ **1** (`PipeBlueprintUnion` only; it moves in M1a) |+| tests pinning pipe classes into the class registry | 0 | **1** | ✅ **1** module / 3 tests, all three mutation checks red |-```python-def get_class_registry() -> ClassRegistryAbstract:- library_id = _library_id.get()- if library_id is not None:- registry = get_library_manager().get_library_class_registry(library_id) # ← HIGH- if registry is not None:- return registry- return KajsonManager.get_class_registry()-```+> **On the "97 interpreter modules" framing.** `registry_models.py` is a boot-time composition manifest with exactly one consumer (`pipelex.py:500`) and it appears in no runtime entry-point closure — so the 97 is not a live problem, and M2's exit criteria explicitly bless the same shape (`builtins.py`, "by design"). M3's real justification is the *directory*: a pipe-kind manifest filed in `core/` makes `core` look like it depends on pipes. Do not oversell the metric in the PR description.-`get_class_registry` is the single symbol all three `importlib` hacks want, and it has 29 importers spread across both layers — so it must be low, and it must keep its library scoping (Phase 1 is zero-behavior-change).+### 🛑 CHECKPOINT M3 — HARD STOP-Resolution: `RuntimeHub` grows a `Callable[[], ClassRegistryAbstract | None]` slot — default returns `None`, and boot installs the library-scoped resolver once `InterpreterHub` is populated. `get_class_registry` calls the slot and falls back to `KajsonManager.get_class_registry()`. The `_library_id` ContextVar stays in `interpreter_hub` with the rest of its family; the resolver closure is what crosses, and it crosses downward at boot, not as an import.+1. **Gates** (in this order): `make cko` → `make cleanderived` → `make agent-check` → `make agent-test` → `make drift-check` → `make chl` → `make tb`.+2. **Verify:** re-run the core classification snippet; `pipelex.core.registry_models` must report `0 0`. Confirm the closure test still passes *and* that its `DIRTY_ENTRY_POINT` control still fails (it is what proves the predicate is live).+3. **Update this file:** tick the boxes, record measured actuals in [Measurements](#measurements), refresh the [Cold-start brief](#cold-start-brief), log any decision taken or question raised.+4. **Commit** the phase, then **fan out the reviews** per [Review fan-out protocol](#review-fan-out-protocol) with the commit SHA. M3 reviews: `correctness-and-boot` + `over-engineering`.+5. **Stop.** Report the review verdicts to the user and wait.-This is not a new pattern — it is exactly how `_isolated_execution_probe` already works (`HubSlot.ISOLATED_EXECUTION_PROBE`, defaulting to `_never_in_isolated_execution`), so the precedent, the naming, and the plugin-claim machinery are all in place.+#### Review round — done 2026-07-27, fixes applied on Louis' call-Alternative considered and rejected: move the whole `_library_id` contextvar family down into `runtime_hub`. Simpler (no indirection) but it splits the "current library" concept across both modules and makes `pipelex.runtime_hub` export `set_current_library`, which reads wrong. Also rejected: drop the scoping from `get_class_registry` and expose a separate high `get_scoped_class_registry` — that is a behavior change, and `tests/unit/pipelex/test_class_registry_scoping.py` pins the current semantics.+`correctness-and-boot`: **no defects.** It re-derived the move independently (six lists byte-identical, both `register_classes` calls live, no other call-site rebuilds from `CoreRegistryModels` alone, no new cycle, no cross-repo consumer of the old path) and re-ran the gates itself.-`tests/unit/pipelex/test_class_registry_scoping.py` is the regression guard for D5 — it must keep passing unmodified except for its import lines.+`over-engineering`: **production change clean and load-bearing**; three defects, all in the new test module. All three confirmed against the code and fixed:-## Symbol partition+- **The frozen 42-name `PRE_SPLIT_REGISTERED_MODEL_NAMES` literal was spent scaffolding.** Its job — "nothing dropped while hand-splitting" — expired at commit time, after which it billed a hand-edit on every legitimate addition. Confirmed non-hypothetical: the registered-model set grew in each of the last four substantive commits to that file (#953, #1014, #1028, #1039). Replaced with a **derived structural invariant**: every pipe kind must declare the factory that `pipe_factory.py:121` will look up for it by string (`f"{pipe_type.value}Factory"`). That catches the realistic error (a half-dropped kind/factory pair), stays green on a deliberate removal of both halves, and needs no maintenance ever.+- **The disjointness assertion was redundant** with the name-collision check in the same module (`union` is a list concat, so `len(names) == len(union)` already fails on exactly that input) and guarded a runtime-harmless state. Dropped; the collision check was **kept and is load-bearing** — the registry is keyed by class name and kajson's `register_classes` skips a name it already holds.+- **The name-prefix assertions were tautological or wrong.** `all(startswith("Pipe"))` over the pipe manifest cannot fail; `not any(startswith("Pipe"))` over core encoded a layer heuristic our own [`hub-layering.md`](docs/contribute/hub-layering.md) contradicts — `PipeOutput` is **runtime-layer** ("reads as Pipe machinery but is not"), so registering it in `CoreRegistryModels` would be correct and would have tripped the assertion. Both dropped.-Complete and verified: an `ast` sweep of every `from pipelex.hub import …` across `pipelex/` and `tests/` classified every imported name against these two sets with nothing left over.+Two further items, one from each reviewer:-### → `pipelex/runtime_hub.py` (runtime layer)+- **Module-level docstring** violated `pipelex/kit/agent_rules/pytest_standards.md:80` ("not on top of the file and not on top of the class"). Rewritten as a comment block — same rationale preserved, correct placement. (Both agents cited the rule as `.claude/rules/pytest-standards.md`, which does not exist; the kit file is the real one.)+- **The matched triple disagreed on `pipe_signature`** — present in the design doc's `I`, absent from the closure test's `INTERPRETER_PACKAGES` and `hub-layering.md`'s `INTERPRETER`. Pre-dates M3 (verified at `95a1e9bf7`), but this commit is the first to *write the invariant down*, so leaving it would have been dishonest. Added to both shipped copies after confirming `pipelex/pipe_signature/` is a real top-level package that imports `interpreter_hub` directly (`signature_walk.py:11`) and is loaded by **zero** of the closure test's runtime entry points — so the predicate got stricter with no red. The prose must-not-name list at `hub-layering.md` gained `pipe_signature` **and** `interpreter_plugins`, which it had also been missing. All three copies verified equal by script.-| group | symbols |-| --- | --- |-| container | `RuntimeHub`, `get_runtime_hub`, `set_runtime_hub` |-| config | `get_required_config`, `get_optional_config` |-| console | `get_console` |-| secrets | `get_secrets_provider`, `get_secret` |-| system registries | `get_class_registry` (see D5), `get_func_registry` |-| storage | `get_storage_provider` |-| telemetry | `get_telemetry_manager`, `get_otel_tracer` |-| models | `get_models_manager`, `get_model_deck`, `get_sdk_client_manager` |-| inference | `get_inference_manager`, `get_llm_worker`, `get_img_gen_worker`, `get_extract_worker` |-| content generation | `get_content_generator`, `scoped_content_generator` |-| reporting | `get_report_delegate`, `is_in_isolated_execution` |-| run mode | `is_dry_run_forced` |-| tracing | `scoped_event_log`, `get_event_log_override` |-| plugin registries | `get_inference_backend_registry`, `get_model_lister_registry`, `get_orchestrator_registry`, `get_bundle_validator_registry`, `get_storage_provider_registry`, `get_secrets_provider_registry` |--### → `pipelex/interpreter_hub.py` (interpreter layer)--| group | symbols |-| --- | --- |-| container | `InterpreterHub`, `get_interpreter_hub`, `set_interpreter_hub` |-| library manager | `get_library_manager`, `get_library` |-| library lookups | `get_concept_library`, `get_required_concept`, `get_native_concept`, `get_required_domain`, `get_optional_domain`, `get_pipe_library`, `get_pipes`, `get_required_pipe`, `get_optional_pipe`, `get_pipe_source` |-| current-library contextvar | `set_current_library`, `get_current_library`, `get_current_library_id_or_none`, `clear_current_library`, `scoped_current_library` |-| library dirs | `resolve_library_dirs`, `get_default_library_dirs` |-| pipe router | `get_pipe_router`, `set_pipe_router`, `teardown_current_pipe_router`, `scoped_pipe_router` |-| run | `get_pipe_run`, `get_pipeline_manager`, `get_pipeline` |-| pipe func (D3) | `get_pipe_func_executor`, `scoped_pipe_func_executor`, `get_pipe_func_executor_registry` |+⚠ One reviewer claim was **wrong and rejected**: the `over-engineering` agent asserted the three copies were "correctly in sync". They were not — verified directly. It had also, in an earlier message, attributed conclusions to two sub-agents before hearing from them, and retracted that itself.-Setter methods follow their getters onto the matching container. Do **not** delete the accessors with no in-tree importers (`get_bundle_validator_registry`, `get_orchestrator_registry`, `get_pipe_func_executor_registry`, `get_default_library_dirs`, `get_func_registry`, `scoped_pipe_func_executor`) — they are reached internally via the container and several are live external plugin contract (see [Cross-repo sweep](#cross-repo-sweep)). Placement is decided by kind, not by in-tree usage.+Mutation checks on the rewritten module, each red on exactly the intended test: drop a pipe kind → factory-pairing test; delete a `register_classes` line → liveness test (still caught, which is what made the derived rewrite safe); duplicate a class name across manifests → collision test.-### Straddling files — hand-review list for step 1.4+**Gap noticed, deliberately not closed here — decide it in M1.** The `hub-layering-convention` drift contract triggers on `hub_layering_guard.py` + the two hub modules and reviews `hub-layering.md`. The closure test's `INTERPRETER_PACKAGES` is **not** a trigger, and `hub-layering.md`'s `INTERPRETER` snippet is the thing that drifted from it — so no contract binds the matched triple, which is exactly why the `pipe_signature` disagreement survived unnoticed. Adding the closure test as a trigger (or a contract binding the three copies) is a drift-registry decision, and M1 touches all three files anyway. Raised now so it is not rediscovered the hard way.-These are the only files that gain a second import line. Everything else is a one-line module swap.+----| file | low symbols | high symbols |-| --- | --- | --- |-| `pipelex/cli/commands/build/inputs/_inputs_core.py` | `get_telemetry_manager` | `get_library_manager`, `get_required_pipe`, `resolve_library_dirs`, `set_current_library` |-| `pipelex/cli/commands/build/output/_output_core.py` | `get_telemetry_manager` | `get_library_manager`, `get_required_pipe`, `resolve_library_dirs`, `set_current_library` |-| `pipelex/cli/commands/build/runner/_runner_core.py` | `get_telemetry_manager` | `get_current_library_id_or_none`, `get_library_manager`, `get_required_pipe` |-| `pipelex/cli/commands/codegen/inputs_cmd.py` | `get_telemetry_manager` | `get_required_pipe` |-| `pipelex/cli/commands/show_cmd.py` | `get_console`, `get_models_manager`, `get_secrets_provider`, `get_telemetry_manager` | `get_library_manager`, `get_pipe_library`, `get_required_pipe`, `resolve_library_dirs`, `set_current_library` |-| `pipelex/cli/commands/validate/_validate_core.py` | `get_console`, `get_telemetry_manager` | `get_library_manager`, `get_pipe_library`, `get_pipes`, `get_required_pipe`, `resolve_library_dirs`, `set_current_library` |-| `pipelex/cli/commands/which_cmd.py` | `get_console`, `get_telemetry_manager` | `get_library_manager`, `get_optional_pipe`, `get_pipe_source`, `resolve_library_dirs`, `set_current_library` |-| `pipelex/core/stuffs/stuff_factory.py` | `get_class_registry` | `get_concept_library`, `get_native_concept`, `get_required_concept` |-| `pipelex/libraries/library_manager.py` | `get_class_registry` | `get_current_library`, `get_current_library_id_or_none`, `scoped_current_library` |-| `pipelex/pipe_operators/compose/pipe_compose.py` | `get_class_registry` | `get_concept_library`, `get_native_concept` |-| `pipelex/pipe_operators/extract/pipe_extract.py` | `get_content_generator`, `get_model_deck` | `get_concept_library`, `get_native_concept` |-| `pipelex/pipe_operators/func/pipe_func.py` | `get_class_registry` | `get_pipe_func_executor` |-| `pipelex/pipe_operators/img_gen/pipe_img_gen.py` | `get_class_registry`, `get_content_generator`, `get_model_deck` | `get_concept_library`, `get_native_concept` |-| `pipelex/pipe_operators/llm/helpers.py` | `get_class_registry` | `get_required_concept` |-| `pipelex/pipe_operators/llm/pipe_llm.py` | `get_class_registry`, `get_content_generator`, `get_model_deck` | `get_concept_library`, `get_native_concept`, `get_required_concept` |-| `pipelex/pipe_operators/structure/pipe_structure.py` | `get_class_registry`, `get_content_generator`, `get_model_deck` | `get_concept_library`, `get_native_concept` |-| `pipelex/pipe_run/dry_run_in_process.py` | `scoped_content_generator`, `scoped_event_log` | `get_library_manager`, `scoped_pipe_router` |-| `pipelex/pipeline/bundle_validator.py` | `get_telemetry_manager`, `scoped_content_generator` | `clear_current_library`, `get_current_library`, `get_current_library_id_or_none`, `get_library_manager`, `get_pipe_library`, `scoped_pipe_router`, `set_current_library` |-| `pipelex/pipeline/pipeline_run_setup.py` | `get_event_log_override`, `get_otel_tracer`, `get_report_delegate`, `get_telemetry_manager` | `clear_current_library`, `get_current_library_id_or_none`, `get_library_manager`, `get_pipeline_manager`, `get_required_pipe`, `set_current_library` |-| `pipelex/pipeline/runner.py` | `get_report_delegate`, `get_telemetry_manager` | `clear_current_library`, `get_current_library_id_or_none`, `get_library_manager`, `get_pipe_run`, `get_pipeline_manager`, `set_current_library` |-| `tests/integration/pipelex/pipeline/test_bundle_validator.py` | `get_telemetry_manager` | `clear_current_library`, `get_library_manager`, `get_required_pipe` |-| `tests/integration/pipelex/pipeline/test_pipeline_run_setup_characterization.py` | `get_report_delegate`, `get_telemetry_manager` | `clear_current_library`, `get_current_library_id_or_none`, `get_library_manager`, `get_pipeline_manager`, `set_current_library` |-| `tests/integration/pipelex/pipeline/test_pipeline_run_setup_emit_gates.py` | `get_report_delegate` | `clear_current_library`, `get_library_manager` |-| `tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_absence.py` | `get_class_registry` | `get_concept_library`, `get_pipe_library` |-| `tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_branch_type_validation.py` | `get_class_registry` | `get_concept_library`, `get_pipe_library` |-| `tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_unresolvable_structure_class.py` | `get_class_registry` | `get_concept_library`, `get_pipe_library` |-| `tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm.py` | `get_class_registry` | `get_native_concept`, `get_pipe_library`, `get_pipe_router` |-| `tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_date_output_path.py` | `get_content_generator` | `get_pipe_library`, `get_pipe_router` |-| `tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_yes_no_output_path.py` | `get_content_generator` | `get_pipe_library`, `get_pipe_router` |-| `tests/integration/pipelex/pipes/operator/pipe_structure/test_preliminary_text_e2e.py` | `get_report_delegate` | `get_native_concept`, `get_pipe_router`, `get_required_pipe` |-| `tests/integration/pipelex/pipes/operator/pipe_structure/test_preliminary_text_inline_e2e.py` | `get_report_delegate` | `get_native_concept`, `get_pipe_router`, `get_required_pipe` |-| `tests/integration/pipelex/pipes/optionals/test_parallel_optional_combine_validation.py` | `get_class_registry` | `get_concept_library`, `get_pipe_library` |-| `tests/integration/pipelex/system/test_hub_slot_injection_precedence.py` | `get_content_generator` | `get_pipe_router` |-| `tests/unit/pipelex/core/memory/input_shaper/conftest.py` | `get_class_registry` | `get_concept_library` |-| `tests/unit/pipelex/core/stuffs/test_stuff_factory_implicit_memory.py` | `get_class_registry` | `get_concept_library` |-| `tests/unit/pipelex/test_class_registry_scoping.py` | `get_class_registry` | `clear_current_library`, `get_library_manager`, `set_current_library` |--Note the shape of the `pipe_operators/` rows: every one of them straddles for the same reason — `get_class_registry` / `get_content_generator` / `get_model_deck` (low) next to `get_concept_library` / `get_native_concept` (high). That is the D4 boundary showing through, and it is what Phase 4 dissolves.--## Phases--### Phase 0 — declare the boundary ✅--- [x] 0.1 Confirm **D5**. Settled as recorded above, and amended at implementation (the slot's home moved; the mechanism did not).-- [x] 0.2 Baseline re-taken on the branch tip and confirmed identical to the table above (357 / 29,193 / 50).-- [x] 0.3 Wrote [`docs/contribute/hub-layering.md`](docs/contribute/hub-layering.md) — the two hubs, the partition, how to place a new symbol, the class-registry exception, the measurement, enforcement, and the known inversions. Modelled on `keyword-only-arguments.md`. Its "Enforcement" section describes what is true at H-1 and is rewritten by Phase 2 when the guard lands.-- [x] 0.4 Updated `docs/under-the-hood/architecture-overview.md` with a "What Keeps The Layers Apart: The Two Hubs" section naming the boundary and the one-arrow rule, linking to the contributor doc. Added both pages to the `mkdocs.yml` nav.--### Phase 1 — the split ✅--- [x] 1.1 Created `pipelex/runtime_hub.py`. Module-level imports verified to name nothing from `libraries`, `pipe_operators`, `pipe_controllers`, `codegen`, `builder`, `core.bundles`, `core.concepts`, or `core.pipes`.-- [x] 1.2 Created `pipelex/interpreter_hub.py`, importing `runtime_hub`'s layer for the D5 install. `set_interpreter_hub` installs the resolver, so scoping is live exactly when a InterpreterHub exists and a caller cannot forget to wire it.-- [x] 1.3 Deleted `pipelex/hub.py`.-- [x] 1.4 Rewrote all 309 call sites via an `ast` pass over the whole import statement (the 29 parenthesized blocks came through intact). The 36 straddlers each gained a second import line, as predicted. **Two string-literal references the AST pass could not see broke the suite and had to be found by running it** — see the record below.-- [x] 1.5 Re-wired boot. Both hubs are constructed and installed at the top of `Pipelex.__init__`; every setter was retargeted to its own container. **The setter sequence was deliberately NOT reordered** — see the record below.-- [x] 1.6 Replaced all three `importlib.import_module("pipelex.hub")` hacks with plain top-level imports and deleted the `_get_class_registry` shims. The import target is the new leaf module, not `runtime_hub` — that is the D5 amendment.-- [x] 1.7 `Pipelex.teardown` and the `make()` failure path now release both hubs' process-global state. Pinned by `tests/unit/pipelex/test_hub_lifecycle.py`, which asserts a boot installs both singletons and that the reset really drops the scoping a InterpreterHub installed.--**CHECKPOINT H-1** — zero behavior change.--Gates: `make agent-check` + **full** `make agent-test` (no test edits beyond import lines) + `make drift-check`. Expect the **`cli-docs` drift contract to fire** — `pipelex/cli/**/*.py` is a trigger and the rewrite touches many CLI files. Review `docs/tools/cli/` and `pipelex/cli/agent_cli/CLAUDE.md`, then `make drift-ack` with an honest rationale ("import-path-only change, CLI surface unaffected" is legitimate if that is what the review found). Re-take the measurement and record the after against the target table.--### Checkpoint H-1 record--Written at the checkpoint so Phase 2 can start cold. Everything below is what actually happened, including where the plan was wrong.--#### Measured after--| | baseline | target | **after H-1** |-| --- | --- | --- | --- |-| interpreter modules loaded by `cogt.content_generation.content_generator` | 50 | **0** | **0** ✅ |-| pipelex modules loaded | 357 | ≤ 260 | 275 |-| SLOC loaded | 29,193 | ≤ 19,000 | 21,186 |+## M1 — make core's layer split physical-The headline property is met exactly: the inference layer now loads **zero** `libraries` / `pipe_operators` / `pipe_controllers` / `codegen` / `builder` modules. The module and SLOC targets were missed, and the reason is that the estimate was wrong rather than the change: those targets were derived from "236 modules / 17,683 SLOC *plus headroom for cogt's own modules*", and the real headroom is ~40 modules / ~3,500 SLOC, not the ~24 / ~1,300 assumed. A low-only hub's own closure measures 235 modules / 17,675 SLOC on this branch — within 1 of the estimate — so the partition is exactly as tight as designed; only the headroom guess was low. **Do not treat the module/SLOC rows as open work.** Squeezing them further means attacking `cogt`'s own dependency weight (`system.telemetry.otel_factory` → `core.pipes.pipe_output` → `core.stuffs.stuff` is the fattest edge), which is Phase 3/4 territory, not the hub boundary.+Hoists the eight interpreter-layer modules (plus four measured-zero leaf modules that move for cohesion) out of `core/` into two new packages, then collapses the guard declaration to a single entry. This is the big one — split into three commits.-#### D5 amendment: the resolver slot could not live on `RuntimeHub`+### D-M1-4 — RULED 2026-07-27: rename, and treat it as a wire break-D5 assumed `core/concepts/` could reach `get_class_registry` from `pipelex.runtime_hub`. It cannot. `core.concepts.concept` is **inside `runtime_hub`'s own import closure**:+**Rename `PipelexInterpreterError` → `MthdsParserError`.** But the premise the original recommendation rested on was wrong. The plan said *"No external consumer imports `PipelexInterpreter`, so the class rename adds nothing to the sweep."* Measured — it is consumed in five repos, and four of them consume it **as a string, not an import**:```-runtime_hub → cogt.llm.llm_worker_abstract → system.telemetry.otel_factory- → core.pipes.pipe_output → core.stuffs.stuff → core.concepts.concept+pipelex-temporal/pipelex_temporal/temporal_bundle_validator.py:26 from ... import PipelexInterpreter+mthds-starter-js/src/lib/errors.ts:176 case "PipelexInterpreterError":+pipelex-starter-js/src/lib/errors.ts:257 case "PipelexInterpreterError":+vscode-pipelex/.../cliValidationBackend.test.ts:99 error_type: 'PipelexInterpreterError'+playroom/src/app/api/graph/route.ts:119 message.includes("PipelexInterpreterError")```-so a module-level `from pipelex.runtime_hub import get_class_registry` in `concept.py` is a hard cycle — and it fails in *both* import orders, which is why it could not simply be ordered around. The design doc's claim that "a hub that does not import `Concept` has no cycle with `concept.py`" was half right: the cycle is not via `Concept`, it is via `cogt → system → core`.--Resolution, which preserves every property D5 was chosen for:--- `pipelex/system/registries/class_registry_access.py` — a new leaf module importing nothing from `pipelex`. Holds the real `get_class_registry` plus the `class_registry_scoping` slot (a module singleton in the `config_manager` style; the resolver default returns `None`, so a RuntimeHub-only process degrades to the global registry rather than raising, exactly as [Risks](#risks-and-containment) requires).-- `pipelex.runtime_hub.get_class_registry` delegates to it and stays the **public** accessor — so the symbol partition table above is unchanged and the cross-repo contract is still "low symbols come from `runtime_hub`".-- The three `core/concepts/` modules import the leaf directly, because they are the one place the public accessor is unreachable.-- `interpreter_hub.set_interpreter_hub` installs the library-scoped resolver; `Pipelex.teardown` calls `class_registry_scoping.reset()`.--`tests/unit/pipelex/test_class_registry_scoping.py` (the D5 regression guard) passes unmodified except for its import lines, as required.+Those four TypeScript consumers branch on the class name as the `error_type` **wire value**. Renaming does not break their build — they silently stop matching and fall through to a generic error branch. This is the exact failure the guard's own docstring names: *a missed import is an ImportError, a missed string is not.*-#### Boot was not reordered — deliberately+- [x] Rename the class. `BundleElaboratorError` (its subclass) keeps its name.+- [x] Add the `mkdocs.yml` `redirect_maps` entry (`errors/pipelex-interpreter-error.md` → the new page) so the retired `type_uri` still resolves. Verified: the page filename and `type_uri` derive from the **class name**, not the module path (`docs/errors/pipelex-interpreter-error.md:18` carries `| Defined in | pipelex.core.interpreter.exceptions |` as a body row) — so the pure module moves are URL-stable and only this rename churns a URL.+- [x] Changelog: **wire-visible** break, not merely an import break. Name the `error_type` value change explicitly.+- [x] Carry all five repos into the [Phase 5](#phase-5--close-out) sweep table. The redirect fixes the human-facing docs link and does **nothing** for the four machine consumers — they need a coordinated string change.-Step 1.5 predicted the setter sequence would "split cleanly at line 475 with no reordering" once the duplicate pair was deleted. It does not, and cannot: **D3 puts the PipeFunc executor on the high hub**, so `set_pipe_func_executor_registry` and `set_pipe_func_executor` are InterpreterHub calls sitting in the middle of the RuntimeHub run, and `set_isolated_execution_probe` is a RuntimeHub call sitting after the InterpreterHub ones.+### M1a — `pipelex/mthds_parsing/`-Reordering to force a clean split would have moved setters across documented ordering dependencies (the storage-provider block explicitly resolves *after* secrets is on the hub so the GCP factory's secret read works) — a real behavior risk at a checkpoint whose bar is zero behavior change. So: **both hubs are constructed and installed at the top of `__init__`, and the setter sequence is otherwise byte-identical in order.** That delivers what "populate RuntimeHub fully before InterpreterHub" was actually protecting against — no setter can ever run against a missing hub — without touching execution order. Untangling the interleave belongs with D3's inversion, not here.+- [x] `git mv` into a new `pipelex/mthds_parsing/`: `core/interpreter/interpreter.py` → `parser.py`, `bundle_elaborator.py`, `helpers.py`, `validation_error_categorizer.py`, `core/bundles/pipe_sorter.py`, `pipelex_bundle_blueprint.py`.+- [x] **Create `pipelex/mthds_parsing/__init__.py` (empty).** Not optional: ruff runs `select = ["ALL"]` (`pyproject.toml:346`) and `INP001` is per-file-ignored **only** for `tests/**` (`:469`), so a source package without an `__init__.py` fails lint. M1a deletes two package initializers, so this is easy to miss.+- [x] **Add `"mthds_parsing"` to `INTERPRETER_PACKAGES` in THIS commit, not M1c**, and run the closure gate here. Between M1a and M1c the package would otherwise exist as an interpreter home that the predicate does not count — the merged exceptions module could enter a runtime closure with the test staying green. (The tracker previously deferred this to M1c.)+- [x] Merge `core/bundles/exceptions.py` + `core/interpreter/exceptions.py` into one `mthds_parsing/exceptions.py` (topical split only if a circular import forces it, per the error-class location convention).+- [x] Delete `core/bundles/` and `core/interpreter/` (including their empty `__init__.py`).+- [x] Rename the class `PipelexInterpreter` → `MthdsParser` across the tree (33 Python files, ~76 references incl. docs). Apply the D-M1-4 ruling to `PipelexInterpreterError`.+- [x] Rewrite importers. ⚠ **Do not work from a hand-written list** — the previous one was materially incomplete (26 importer files exist; it named ~11 and missed `builder/conventions.py`, `builder/operations/runner_code_ops.py`, `cli/bundle_target_resolution.py`, `language/mthds_schema_generator.py`, agent-CLI commands, …). Rewrite mechanically, then **assert zero surviving references to the old paths** — imports *and* string literals — as the completion check.+- [x] Move tests: `tests/unit/pipelex/core/{bundles,interpreter}/` → `tests/unit/pipelex/mthds_parsing/`.+- [x] **Re-path subject grants AND fix the embedded qualname.** `core/bundles` 6 + `core/interpreter` 15 hits — but `subject_grants.toml:2615` is `["pipelex/core/interpreter/interpreter.py::PipelexInterpreter.make_pipelex_bundle_blueprint"]`, which embeds the **renamed class**. Re-pathing alone leaves a stale grant that hard-fails `check-keyword-only`; the qualname must become `MthdsParser.make_pipelex_bundle_blueprint`. Then `make cko`.+- [x] `make gep` and inspect the `docs/errors/` diff (expect `Defined in` row churn; a filename/`type_uri` change only if D-M1-4 says rename).-#### Findings in passing — both resolved, one bigger than recorded+### M1b — `pipelex/pipe_machinery/`-- **Duplicate `set_library_manager` deleted** ✅. Confirmed dead: nothing between the two pairs reads it, and `make tb` plus the full suite pass without it.-- **`_observer` deleted** ✅ — but the tracker's "confirm no external consumer sets it" check turned up something worse than dead code. `docs/advanced/observer-provider-injection.md` **documented `hub.set_observer()` as the public way to register a custom observer**, and that documented API never worked: the value was written and never read, while the live path is `Pipelex.make(observers={...})` → `MultiObserver` → `PipeRouter`. Anyone following that page got a silently ignored observer. Both that page and `docs/advanced/index.md` (which showed a bare `PipelexHub()` being constructed and configured — equally inert) are rewritten to the mechanism that actually works, with a warning against hand-constructing a hub. Verified across the workspace: no repo sets `set_observer`.+**D-M1-2 was REVERSED 2026-07-27** — see [Review findings](#review-findings). The original ruling classified modules by the measurement snippet, which counts **outbound** edges ("how many interpreter modules does X load?"). That answers "is X a leaf?", not "which layer owns X?". The layer question is **inbound: who needs this?** Under the inbound test, four more `core/pipes/` modules are interpreter-only and move with the rest:-#### One fix outside the plan, required by the exit criterion--After the split the measurement still reported 3 interpreter modules, via `content_generator → pipelex.config → plugins.pipe_func_executor_registry → pipe_operators.func.pipe_func_executor_protocol` — D3's underlying inversion, which [Known inversions](#known-inversions-not-fixed-here) had scheduled as "not fixed here". But the exit criterion demands 0 and instructs that the printed offender is what to fix, and Phase 2.5's closure regression test would fail on it regardless. The import is **type-only**, so it was deferred under `TYPE_CHECKING` with a string annotation on the type alias. The placement inversion itself is untouched and stays recorded.--#### Landmines the AST rewrite could not see--`pipelex.hub` ceasing to exist turns a missed *import* into an immediate `ImportError` — but not a missed **string literal**. Two of those existed, and neither is reachable by an import-graph tool:--- `tests/helpers/init_cmd_helpers.py` — `mocker.patch("pipelex.hub.get_console", ...)`. This broke **36 tests** across the init CLI suites, and the failure surfaced as `AttributeError: module 'pipelex' has no attribute 'hub'` from `pkgutil.resolve_name`, nowhere near the hub.-- `tests/unit/pipelex/cli/test_agent_cli_output_discipline.py` — `mocker.patch("...agent_cli_factory.PipelexHub.get_optional_instance")`, caught by grep before the run.--If Phase 2's guard is meant to catch "the string-literal `importlib.import_module` form", it should also be pointed at `mocker.patch` targets — that is where this class of reference actually lives in this repo.--#### Housekeeping done at H-1--- **Subject grants migrated**: 54 `pipelex/hub.py::` entries → 55 under `pipelex/runtime_hub.py::` / `pipelex/interpreter_hub.py::` (`set_instance` and `set_pipelex_hub` each split in two; `set_observer` dropped with the state). `make cko` is green, and staleness is symmetric so a missed entry would have failed.-- **Doc references swept**: `docs/under-the-hood/{pipe-routing-and-execution,runtime-bridge-and-transport,execution-graph-tracing}.md`, `docs/advanced/{index,observer-provider-injection}.md`, `tests/CLAUDE.md`, and in-code docstrings in `signature_walk.py` / the keyword-only guard modules. CHANGELOG history entries were left alone (they are release records). No live `pipelex.hub` reference remains anywhere in `pipelex/`, `tests/`, or `docs/`.--#### Still open at H-1--- **The CHANGELOG breaking-change note is not written yet** — it stays scheduled at H-4 per the plan, but `pipelex.hub` is *already* gone as of this checkpoint. If this branch is ever merged before H-4, write it first.-- The **cross-repo sweep** is untouched and still release-gated.-- One semantic edge worth knowing: `class_registry_scoping` is process-global, so the doctor path (which installs a fresh `RuntimeHub` but leaves any existing `InterpreterHub` in place) now keeps library scoping alive where the single hub would have raised. Strictly more coherent — the InterpreterHub genuinely is still installed — and unreachable in practice, since doctor runs in its own process. Noted rather than fixed.--### Phase 2 — enforce it ✅--- [x] 2.1 Added `pipelex-dev check-hub-layering` — guard in `pipelex/cli/dev_cli/commands/hub_layering_guard.py` (stdlib-only AST core), command in `check_hub_layering_cmd.py` (rich presentation), following the `keyword_only_guard.py` / `check_keyword_only_cmd.py` split exactly. Catches imports **and** string literals, and resolves relative imports against the importing module's own package. **The guard grew a second rule beyond the plan** — see the record below.-- [x] 2.2 Low layer declared as `pipelex.cogt`, `pipelex.plugins`, `pipelex.reporting`, `pipelex.system`, `pipelex.tools`. All five compliant; the guard hard-blocks with an empty exception list (one escape-hatch marker exists, on the guard's own declaration of the forbidden path).-- [x] 2.3 Wired into `make agent-check`, the `make check` aggregate, and both CI lint workflows, with the `chl` alias.-- [x] 2.4 `tests/unit/pipelex/cli/dev/test_hub_layering_guard.py` — layer membership, both directions of the arrow, every import spelling (plain / aliased / `from pipelex import interpreter_hub` / relative), both string forms, the prose-is-not-a-reference and `runtime_hub`-is-not-`hub` boundary cases, the `TYPE_CHECKING` carve-out and its three non-exempt neighbours, the escape hatch, and the dead-module rule across all three layers.-- [x] 2.5 `tests/unit/pipelex/test_runtime_layer_import_closure.py` — imports each low-layer entry point in a subprocess and asserts zero interpreter modules **and** no `pipelex.interpreter_hub` in `sys.modules`. Parametrized over two entry points: the inference layer and `runtime_hub` itself.--**CHECKPOINT H-2** — boundary declared, enforced, and regression-tested.--### Checkpoint H-2 record+| `core/pipes/` module | runtime-layer importers | verdict |+| --- | --- | --- |+| `pipe_output` | 4 | runtime — **stays** |+| `variable_multiplicity` | 5 | runtime — **stays** |+| `exceptions` | 1 | runtime — **stays** |+| `pipe_blueprint` | **0** | interpreter — **moves** |+| `validation` | **0** | interpreter — **moves** |+| `template_guard_lint` | **0** | interpreter — **moves** |+| `handle_pipe_errors` | **0** | interpreter — **moves** |++Every importer of `pipe_blueprint` is `pipe_operators/` (7), `pipe_controllers/` (4), `pipe_signature/` (2), `builder/` (4), `libraries/` (1), `pipeline/` (1), plus the four modules M1 already hoists. **Runtime genuinely does not know about pipes** — which is what the original rule of thumb said all along.++- [x] `git mv` into the package M3 created: `core/pipes/pipe_abstract.py`, `core/pipes/pipe_factory.py`, `core/pipes/rendering/` (both renderers + `__init__.py`), **plus `pipe_blueprint.py`** (D-M1-2 reversed).+- [x] Home the other three flagged modules. `validation.py` is imported by `pipe_blueprint` and `pipe_abstract` → `pipe_machinery/`. `template_guard_lint.py` is imported only by `pipe_operators/` + `pipe_controllers/` → `pipe_machinery/`. `handle_pipe_errors.py` is imported by `validation_error_categorizer` (going to `mthds_parsing/`) and `pipeline/validate_bundle.py` → **`mthds_parsing/`**. Verify each against the closure test after the move; the inbound test used *declared* runtime packages, and `pipeline/` / `pipe_run/` are undeclared straddlers.+- [x] Rewrite importers tree-wide (`pipe_abstract` is imported very widely — expect the largest single hunk of the track). Include the 15 string literals (ground rules).+- [x] Move tests. The previous inventory was incomplete; the actual set under `tests/unit/pipelex/core/pipes/` is `rendering/`, `test_pipe_abstract_namespace_strip.py`, `test_pipe_abstract_signature_surface.py`, `test_pipe_blueprint.py`, `test_pipe_blueprint_presence_markers.py`, `test_pipe_blueprint_signature_enums.py`, `test_validation.py` → **`pipe_machinery/`**; `test_handle_pipe_errors_suffix.py` → **`mthds_parsing/`** (it follows its module, not the package). Plus `tests/integration/pipelex/core/pipes/test_input_renderer_light_golden.py` → the integration mirror. Re-derive the list at move time rather than trusting this one.+- [x] Re-path subject grants (`core/pipes/pipe_abstract` 5 + `core/pipes/rendering` 15 hits, plus whatever the four newly-moved modules carry — re-measure), then `make cko`.+- [x] Confirm `core/pipes/` now holds exactly its runtime half: `inputs/`, `stuff_spec/`, `pipe_output.py`, `variable_multiplicity.py`, `exceptions.py`. **Do not** name the new package `pipelex/pipes/` — two `pipes` packages in adjacent layers would be actively confusing.++### M1c — collapse the declaration and the docs++- [x] Collapse `RUNTIME_LAYER_PACKAGES` in `pipelex/cli/dev_cli/commands/hub_layering_guard.py`: the six `pipelex.core.*` entries become the single `"pipelex.core"`. Rewrite the long `#:` note above the tuple (~lines 97-105) — it currently justifies the package-by-package listing, which no longer exists.+- [x] **Rewrite `test_core_is_split_between_the_layers` wholesale** in `tests/unit/pipelex/cli/dev/test_hub_layering_guard.py`. (The tracker previously pointed at line 52; that line asserts `pipelex.toolsmith.thing` and is unrelated.) The real block carries **six** core assertions, all of which invert or go stale — including `assert not is_runtime_layer(module_qname="pipelex.core.qualified_ref")`, commented *"the split is deliberate, not an omission"*, which is precisely what M1c reverses. The test's name and docstring become false too. Replace with a `test_core_is_wholly_runtime_layer` asserting the positive, and draw negatives from `mthds_parsing/` and `pipe_machinery/` so they assert the new boundary rather than the absence of the old one.+ ⚠ **Vacuous-green window.** `is_runtime_layer` is a pure string predicate over qnames — it never checks that a module exists. Between M1b and M1c, four of those assertions reference module paths that no longer exist **and keep passing**. Do the rewrite in the same commit as the collapse. (Standalone hardening deferred — see [Follow-ups](#follow-ups-from-the-review).)+- [x] Closure test (`test_runtime_layer_import_closure.py`): add `"mthds_parsing"` to `INTERPRETER_PACKAGES`; then **delete `INTERPRETER_CORE`, `INTERPRETER_CORE_EXCLUDED` and the `is_interpreter` branches that read them.** With D-M1-2 reversed and `pipe_blueprint` moving too, this is now correct **as stated** — nothing is left for them to name. (Under the *original* D-M1-2 it would have silently relaxed a live constraint: `hub-layering.md:220` says `pipe_blueprint` is the one entry not caught transitively, so it was the only name in the tuple doing real work. Reversing D-M1-2 is what makes the deletion honest.) Also update the module docstring's "two documented interpreter homes are deliberately absent" paragraph.+- [x] **Prove each new `INTERPRETER_PACKAGES` token is spelled right.** `DIRTY_ENTRY_POINT` only proves that *at least one* configured token matches — it imports `interpreter_hub`, whose closure contains several old interpreter packages, so a typo in `mthds_parsing`, `pipe_machinery` or `pipe_signature` leaves the suite green while that token guards nothing. The predicate lives inside a `textwrap.dedent` string, so nothing type-checks it. Add one leaf probe per new package (a case that must be flagged), or lift the predicate out of the embedded string and unit-test it directly.+- [x] **D-M1-6 — RULED: add `"pipe_signature"` to `INTERPRETER_PACKAGES`.** Verified 2026-07-27 against all five runtime entry points: **zero** `pipe_signature` modules loaded by any of them, so this is safe and surfaces no pre-existing leak. It is independent of the moves — pull it forward to Phase 0 or M3 if you want it out of M1c's diff.+- [x] **Verify the straddler did not become a failure.** `PipelexBundleBlueprintValidationErrorData` (moving into `mthds_parsing/exceptions.py`) is imported by `pipeline/` and `libraries/`. Measured 2026-07-27: **no runtime-layer entry point currently loads it** — `runtime_hub`, `plugins.builtins` and `content_generator` pull in only `pipelex.pipeline` + `pipeline.pipeline_models` — so the deleted exclusion should cost nothing. If the closure test *does* fail on it, do **not** re-add an exclusion: move the data class to a runtime-layer home instead, and record the decision here.+- [x] **Spec + conformance, in this same change.** `conformance/tests/pipelex_transport/test_data.py:45` pins `("pipelex.core.pipes.pipe_abstract", "PipeAbstract", "class")` in `ALLOWED_SURFACE` — an active, unskipped test — and `docs/specs/pipelex-transport-boundary.md:133` names the same path. Workspace CLAUDE.md requires both sides to change with the code, and `make check-spec-links` gates it. ⚠ `_hub`'s `make agent-test` **structurally cannot catch this** — different repo. Also check `docs/specs/pipelex-transport-boundary.md:164` (`pipelex.plugins.orchestrator_registry` — survives M2, it is a mechanism module) and `docs/specs/pipelex-mthds-protocol.md:47` (`PipelexBundleBlueprint` — class name unchanged, path only).+- [x] `docs/contribute/hub-layering.md`: (a) **keep the rule of thumb as written** — *"if it names a `Pipe`, it belongs to the interpreter layer"* (line 115) is correct, and was only slated for rewrite to accommodate the `pipe_blueprint` misclassification that D-M1-2's reversal removes; (b) delete the `core.pipes.pipe_output` carve-out paragraph (line 110) — the collapsed declaration now covers it; (c) **rewrite line 220's predicate paragraph** — it justifies naming core's Pipe-machinery modules one by one and singles out `pipe_blueprint`; both disappear (this target was missing from the tracker); (d) update the Known-inversions (line 242) and "Where core splits" (line 111) sections for the new package names; (e) update line 80's `runtime_hub` must-not-name list.+- [x] Update the classification snippet in `wip/refactoring/modularity-refactors.md` → Measurement (`I` gains `mthds_parsing`, `pipe_machinery`) so the design doc does not go stale.+- [x] `make drift-plan` → the `hub-layering-convention` contract triggers on `hub_layering_guard.py`; review the doc for real, `git add` the trigger files, then `make drift-ack CONTRACT=hub-layering-convention RATIONALE="…"`.+- [x] Changelog entry, **breaking**: the two new packages, the class rename, and the `type_uri` change if D-M1-4 says rename.++### Exit criteria++| | baseline | target | **actual** |+| --- | --- | --- | --- |+| `RUNTIME_LAYER_PACKAGES` entries naming `pipelex.core.*` | 6 | **1** (`pipelex.core`) | ✅ **1** |+| `core` modules loading > 0 interpreter modules | 9 (8 after M3) | **0** | ✅ **0** (4 after M1a, 0 after M1b) |+| `core/pipes/` modules with 0 runtime-layer importers (inbound test) | 4 | **0** | ✅ **0** — what remains scores 4 / 5 / 1 |+| doc carve-outs for `core.pipes.pipe_output` | 1 | 0 | ✅ **0** |+| inverted `core → pipe_*` import statements | 19 (after M3) | **0** | ✅ **0** (3 after M1a) |+| `INTERPRETER_CORE` / `INTERPRETER_CORE_EXCLUDED` entries | 7 / 2 | **deleted** | ✅ **deleted** — `EXCLUDED` in M1a, `CORE` in M1b |-Gates: `make agent-check` ✅ (pyright 0 errors, mypy 2,352 files, keyword-only PASSED, hub-layering PASSED) · `make agent-test` ✅ (full suite) · `make drift-check` ✅ (no contract opened — see below).+### 🛑 CHECKPOINT M1 — HARD STOP-#### The guard enforces two rules, not one+1. **Gates:** `make cko` → `make cleanderived` → `make agent-check` → `make agent-test` → `make drift-check` → `make chl` → `make gep` (diff must be reviewed, not just generated).+2. **Verify:** re-run the classification snippet with the extended set — every remaining `pipelex.core.*` module reports `0 0`. **Re-run the inbound test too** (see [Measurements](#measurements)) — every module left in `core/pipes/` must have ≥1 runtime-layer importer. `make chl` passes with the collapsed declaration *and* the transitive rule reports zero breaching runtime-layer modules. Closure test green including the dirty control.+3. **Cross-repo gate (cannot be run from `_hub`):** in the `conformance/` repo, update `ALLOWED_SURFACE` and `docs/specs/pipelex-transport-boundary.md`, then run `make check-spec-links`. This is a hard checkpoint item, not sweep work.+4. **Update this file** + [Cold-start brief](#cold-start-brief) + [Measurements](#measurements).+5. **Commit**, then **fan out reviews** with the commit range. M1 reviews: `correctness-and-imports` + `boundary-and-naming` + `over-engineering` + `test-and-docs-sync`.+6. **Stop.** Report verdicts and wait.-The plan specified one rule (no `interpreter_hub` in the low layer). The guard ships with a second: **no module anywhere in `pipelex/` or `tests/` may reference `pipelex.hub`.** That is the H-1 note about `mocker.patch` targets, generalized — and generalizing it is what makes it work. The plan framed the string check as an `importlib.import_module` special case; scanning *every* string constant for an exact-or-boundary match on the module path catches `importlib`, `mocker.patch`, `pkgutil.resolve_name`, and any config-driven dotted path in one mechanism, with no call-site special-casing.+#### Checkpoint record — reached 2026-07-27, commits `0f0309b8f` · `c9c45c475` · `10080cf26`-Scope follows from the two rules being different: `tests/` is scanned for the dead-module rule **only**. `tests.*` is in no declared layer, so a test may still freely patch `pipelex.interpreter_hub` — while a stale `pipelex.hub` patch target, the thing that actually broke 36 tests, now fails the check.+**All gates green** at `10080cf26`: `cko`, `cleanderived` + fixture regen, `agent-check` (ruff / pyright 0 / mypy 0 / cko / chl), full `agent-test`, `drift-check`, `chl`, `gep` (no churn — no error class moved in M1b/M1c), `tb`. Every exit-criterion actual is in the table above.-Matching is exact-or-boundary (`==`, or a `.`/`:` suffix), which is why `pipelex.runtime_hub` does not match `pipelex.hub` and why a docstring that merely *mentions* a module is not a reference. Two in-tree docstrings do exactly that and are correctly ignored. A path assembled at runtime from f-strings is beyond any AST scan; nothing does that today, and it is noted in the module docstring rather than defended against.+**Decisions taken during implementation** (each one the plan authorized in advance):-#### Two carve-outs, both deliberate+- **D-M1-8 — `PipelexBundleBlueprintValidationErrorData` moved to `pipelex.core.exceptions`, not into `mthds_parsing/`.** M1c's plan said to verify the straddler "did not become a failure" and, if it did, to move the data class to a runtime-layer home rather than re-add an exclusion. It did: the claim "no runtime-layer entry point currently loads it" was wrong — `pipelex.core.memory.working_memory_factory` reaches it, and the closure test's own docstring said so all along (`core.bundles.exceptions` was in `INTERPRETER_CORE_EXCLUDED` precisely because it lands in every runtime closure). Moved to `core/exceptions.py`, which already holds the two sibling structured error-data models it shares `PipeValidationErrorType` with. That is what let `INTERPRETER_CORE_EXCLUDED` be deleted outright in M1a instead of being carried forward.+- **`INTERPRETER_CORE` deleted in M1b, not M1c.** M1b is the commit that empties it; leaving a four-entry tuple whose comment says "not under a top-level package of its own" for one commit would have been the exact "passing under a false rationale" shape M3's review flagged.+- **Test moves were re-derived, and the tracker's inventory was again incomplete** — it missed `test_execution_data_coverage.py`, `test_pipe_validate_before_run.py`, `test_run_pipe_tracer_metadata.py` and `test_inputs_template_toml.py`. Derived instead from each module's actual subject (grep each test for the `core.pipes.*` module it imports).+- **`tests/unit/pipelex/core/test_data/` stays put.** It is a shared MTHDS corpus consumed from `tests/integration/pipelex/language/` as well as by the parser tests, so it is not a mirror of a source module. Noted rather than silently left.-- **`if TYPE_CHECKING:` is exempt from the layer rule, not from the dead-module rule.** The rule is about what *loads*; a type-only import loads nothing, and H-1's own out-of-plan fix used exactly this deferral. Its `else` branch, `if not TYPE_CHECKING:`, and any `pipelex.hub` import inside a `TYPE_CHECKING` block all stay violations — each is pinned by a test.-- **`# hub-layering: ignore`** mirrors `# kw-only: ignore`. There is exactly one in `pipelex/` and one in the test suite, both on lines that *declare* the forbidden path as data. The guard flagged its own configuration on first run, which is a good sign about the matcher and the reason the hatch exists.+**The one real bug the move introduced, and nothing static could have caught it.** `tests/integration/.../test_input_renderer_light_golden.py` derived its fixture paths from `Path(__file__).parents[4]`. Moving it one level shallower silently repointed that at the repo root, and it failed only in the full suite — no import rewrite, type checker or import-graph tool sees a parent count. Re-anchored on `tests/` **by name**; every other moved test was then swept for the same shape (none had it). Worth carrying into M2: a depth index is a module-location dependency that looks like a constant.-#### Verified by breaking it, not only by unit tests+**Cross-repo gate (item 3) — done, and it reports more than M1 caused.** `conformance/tests/pipelex_transport/test_data.py` and `docs/specs/pipelex-transport-boundary.md` now pin `pipelex.pipe_machinery.pipe_abstract`; `make check-spec-links` passes. Running the transport arm against this branch (`CONFORMANCE_PIPELEX_PYTHON=_hub/.venv/bin/python`) then reports two failures, and the split matters:-Both forms were injected into a real low-layer module (`cogt/content_generation/content_generator.py`) and the CLI was confirmed to report them at the right lines with the right kinds, then the file was restored byte-identically. Snippet-level unit tests would not have caught a filesystem-walk or layer-membership mistake.+- **7 provider-side symbols missing — all pre-existing**, none touched by M1: `pipelex.hub.*` (5, retired by the hub split) plus `pipelex.pipeline.job_metadata.JobMetadata` and `pipelex.graph.trace_context.TraceContext` (moved by the Phase 3 type moves). `ALLOWED_SURFACE` is stale w.r.t. two *earlier* tracks. This is release-gated sweep debt that predates M1 and should be folded into the same wave.+- **1 consumer-side hit — M1-caused and working as designed**: `pipelex-transport/pipelex_transport/primitives/pipe_classification.py` still imports `pipelex.core.pipes.pipe_abstract`. The deny-by-default AST scan is pointing at the Phase 5 sweep item. **Deliberately not fixed here** — `pipelex-transport` pins a *released* `pipelex`, so changing it now breaks it immediately; it lands with the wave.-#### Two wiring traps worth knowing+⚠ **Both cross-repo edits are left UNCOMMITTED in their own repos** (`conformance/` on `dev`, workspace-root `docs/specs/`), one line each. Committing them to `dev` would break those repos against the released `pipelex` before the wave lands. Whoever runs the sweep must pick them up.-- **The CI aggregator gates on an explicit bash result check, not on `needs`.** Adding `lint-hub-layering` to `lint-all`'s `needs` list is *not* enough — `if: always()` means the aggregator runs regardless, and the `[ "${{ needs.<job>.result }}" != "success" ]` chain is what actually fails the build. Both were updated. A new lint job added without touching that chain would be silently advisory.-- **A new job, not a step on `lint-keyword-only`.** Folding both AST guards into one job would have meant renaming it, and that job name may be a required status check — a rename silently un-requires it. The repo already runs one job per guard; this follows that.+**Two follow-ups closed early, both mutation-checked.** T10 (guard against vacuously-green string-predicate tests) is **done**, in the form the plan preferred: `RUNTIME_LAYER_PACKAGES` entries and `INTERPRETER_PACKAGES` tokens must each resolve on disk. And the gap M3's checkpoint flagged as "no contract binds the matched triple" is now bound by a test rather than a drift contract — the closure predicate and `hub-layering.md`'s snippet must name the same set. ⚠ **The design doc's third copy is deliberately not asserted**, since `wip/` is archived at track end; it stays a manual concern for M2, which adds no interpreter package and so should not disturb it.-#### Proposed, reverted, then landed+#### Review round — done 2026-07-28, fixes applied-A `hub-layering-convention` drift contract (triggers: the guard + both hub modules; review: `docs/contribute/hub-layering.md`) is the exact analogue of the existing `keyword-only-convention` contract, and it mechanizes the doc obligation Phase 4 and the rename both carried. It was added at H-2, confirmed to open correctly, then **reverted**: `.claude/skills/drift-review` states that during the pilot the manifest must not grow without the user's explicit say-so, because ack friction is the thing being measured. Left as a decision for Louis rather than a silent addition. Note that `cli-docs` legitimately did not fire on this work — it excludes `pipelex/cli/dev_cli/**`.+Four reviews over `6d5b9418a..a23c1b70b`. **All four cleared the moves themselves**, each by measurement rather than reading: every module under the three packages imports cleanly, the only module-level cycle in `pipelex/` (`core.stuffs.stuff` ↔ `stuff_artefact`) is unchanged and untouched, `pipelex/core/**` holds zero imports of any interpreter package, and the collapse to one `pipelex.core` entry *widens* enforcement — `core.exceptions`, `core.registry_models`, `core.qualified_ref` and bare `core.pipes` were previously undeclared and unchecked. The D-M1-8 placement was tested skeptically and stands: 6 of 9 runtime entry points transitively load `pipeline.exceptions`, so filing the straddler with the parser would have broken the property for real.-**Louis approved it after the rename landed, and it is now in `drift.toml`, reviewed and acked.** It carries no verify command, matching `keyword-only-convention`: `check-hub-layering` already gates `make check` and CI, so re-running it before an ack would add the unstaged-file hard error without adding a guarantee. The initial review is mechanical and worth repeating rather than re-reading — extract every public module-level symbol from both hubs and confirm each appears in the doc's partition tables, then import `RUNTIME_LAYER_PACKAGES` from the guard and confirm every declared package is named under Enforcement. The closure test was deliberately left out of the triggers; it is the obvious first addition if the contract ever proves under-triggered.+**Every defect was documentation, fixture or test-quality drift — none in the moves.** All confirmed against the code before fixing.-#### Docs updated+- **The user-facing regression, and the one no gate could catch.** `_SUBSYSTEM_SECTIONS` in `pipelex/errors/error_pages_generator.py` never got an `mthds_parsing` row. `_subsystem_key` reads the module's *second segment*, so the rename silently reclassified both parser errors through `_FALLBACK_MACRO_SLUG` — the two errors a method author hits most moved from **Authoring & language** to **Platform & tooling**. Fixed with the missing row. ⚠ **The lesson is about the check, not the row:** `make gep` reporting "no diff" was read as evidence the rename propagated, and it is not — it proves committed matches generated, and the pages matched *because* they baked in the wrong fallback. The generator is deliberately built so a missing curation entry still renders rather than failing. **Read the generated diff, never just the exit code.**+- **A wire-visible brand defect the rename introduced.** `title()` auto-derives from the class name, so `MthdsParserError` published the RFC 7807 title `"Mthds parser"` — the standard's brand, mis-cased, on every error report. Fixed with `_declared_title = "MTHDS parser"`. The five error-report fixtures that paired the new `error_type` with the retired `title`/`type_uri` are corrected, and the identity triple is now **pinned by a test** (`test_mthds_parser_error_identity_is_pinned`) — nothing asserted it before, which is exactly how the fixtures came to carry a shape the class cannot produce.+- **An overclaim I wrote into the M1c rewrite.** "Every `pipelex.core.*` module loads zero interpreter modules" is false as stated: `core.pipes.pipe_output` loads `pipeline.pipeline_models`, and `runtime_hub` also loads `pipe_run.pipe_run_mode`. It holds only under the closure predicate's deliberate `pipeline`/`pipe_run` carve-out — which line 228 of the same page states plainly. The base commit had said the honest opposite at that spot. Qualified in all four places the property is stated. See [deferred follow-ups](wip/refactoring/deferred-placement-follow-ups.md) §3: the caveat now repeats in four places, which is itself the argument for moving those two leaves.+- **Eighteen assertions carrying three bits.** The two guard tests M1c rewrote were an *inventory*, not an invariant: with `pipelex.core` a single prefix entry, any string under it is True and any string under `pipe_machinery.`/`mthds_parsing.` is False, invented names included. This repeats the defect M3's own review round found and recorded as a lesson. Replaced with derived invariants: `pipelex.core` is declared with **no** `pipelex.core.*` sub-entry (re-splitting core fails), and `RUNTIME_LAYER_PACKAGES` ∩ `INTERPRETER_PACKAGES` = ∅ — which also binds two declarations maintained in separate modules and never previously compared.+- **The regex scraper was self-inflicted.** `INTERPRETER_PACKAGES` lived inside the `textwrap.dedent` string, which is what forced a regex to read it back and was the stated justification for the new tests. Hoisted to a real module-level constant handed to the subprocess **as argv** — no interpolation, no scraper, names now lint-visible. Mutation-checked that the argv path is load-bearing: emptying the set makes the negative control fail.+- **`parents[5]`, and why it was worse than a style point.** `test_hub_layering_guard.py` validated the declaration against `Path(__file__).resolve().parents[5] / "pipelex"` while the sibling test added in the *same commit* carries a comment condemning depth indices. Not merely fragile: `parents[6]` is the workspace root, which holds a sibling `pipelex/` checkout — so a module moved one level shallower would validate a **different repo** and pass. Re-anchored on `tests/` by name.+- **Stale prose, all fixed:** `runtime_hub.py`'s "one rule" docstring (still forbade two deleted packages, omitted the four current ones — and it is a declared trigger of the drift contract whose ack reviewed only the doc copy); `hub-layering.md` placing the renderers in `core/pipes/rendering/` in the present tense, plus the paragraph arguing for that regrouping; two adjacent paragraphs on the same premise reaching opposite conclusions; the closure test's own entry-point and `pipe_machinery` comments; `handle_pipe_errors.py` citing a now-sibling module; the blueprint-location enumeration in the kit rules source and `builder/CLAUDE.md`; `tests/CLAUDE.md` missing rows; the CHANGELOG naming a package deleted later in the same unreleased cycle.-- `docs/contribute/hub-layering.md` — the "Enforcement" section was rewritten from "a guard is the next step" to the shipped two-rule specification: what each rule checks, why the string half is the load-bearing one, both carve-outs, the `tests/` scoping, and the rule-vs-property split.-- `docs/under-the-hood/architecture-overview.md` — one sentence stating the boundary is mechanically enforced rather than held up by review.+**Deferred, not fixed** — placement and naming accuracy, no silent bug, recorded in [`wip/refactoring/deferred-placement-follow-ups.md`](wip/refactoring/deferred-placement-follow-ups.md): three modules in `mthds_parsing/` that are not parsing (`pipe_sorter`, the generic half of `helpers`, `handle_pipe_errors`); the parser fixture corpus still filed under `tests/unit/pipelex/core/`; and the `pipeline`/`pipe_run` leaf leak. `pipe_machinery/` was checked module by module and is accurately named throughout.-### Phase 3 — the placement residue ✅+**Fixed in passing** (pre-existing, same class): `tests/CLAUDE.md` had no row for `pipelex/codegen/` or `pipelex/pipe_signature/` either.-Neither item was coupling; both were types living in the wrong package, and each was independently correct. Both are **resolved by moving the type**, not by adding indirection — no resolver slot, no protocol, no `TYPE_CHECKING` deferral was needed for either.+----- [x] 3.1 **`JobMetadata`** → `pipelex/system/job_metadata.py` (with `JobCategory`, `UnitJobId`); `JobMetadataError` → `pipelex/system/exceptions.py`. `TraceContext` moved with it → `pipelex/system/trace_context.py`, and `DataInclusionConfig` moved down to `pipelex/system/data_inclusion_config.py` so `trace_context` no longer imports `graph_config`. **`cogt → pipeline` is now 0 statements.**-- [x] 3.2 **`cogt.templating.*`** → moved down to `tools`. `TextFormat` / `TemplatingStyle` / `TagStyle` → `pipelex/tools/templating/`; `TemplateCategory` → `pipelex/tools/jinja2/`. **`tools → cogt` drops from 15 statements to 3** (the `tools/pdf` renderer only).+## M2 — separate the plugin mechanism from the vendor adapters-**CHECKPOINT H-3** — placement residue resolved.+`pipelex/plugins/` is two things under one name: the mechanism (17 top-level modules) and the built-in vendor adapters (17 directories). Splitting them makes the one-way dependency visible: adapters → mechanism, engine → mechanism, mechanism → nothing.-### Checkpoint H-3 record+### Work-Gates: `make agent-check` ✅ (pyright 0 errors, mypy 2,354 files, keyword-only PASSED, hub-layering PASSED) · `make agent-test` ✅ (full suite) · `make drift-check` ✅ (no contract opened).+- [x] **Create `pipelex/providers/__init__.py` (empty)** — same `INP001` reason as `mthds_parsing/` (ruff `select = ["ALL"]`, tests-only exemption). The commit fails lint without it.+- [x] `git mv` the 17 vendor directories to a new `pipelex/providers/`: `anthropic`, `azure_rest`, `bedrock`, `blackboxai`, `docling`, `fal`, `gateway`, `google`, `huggingface`, `linkup`, `mistral`, `openai`, `openrouter`, `portkey`, `pypdfium2`, `secrets`, `storage`. (D-M2-1: `providers/` over `backends/` — `backends/` would collide with `pipelex/cogt/model_backends/`, and the code's own vocabulary for the non-inference adapters is already "provider": `secrets_provider_registry`, `storage_provider_registry`.)+- [x] `pipelex/plugins/` keeps the mechanism only: `contract.py`, `registrar.py`, `discovery.py`, `exceptions.py`, the seven `*_registry.py`, `model_handle.py`, `sdk_client_registry.py`, `sdk_client_manager.py`, `backend_extras_factory.py`.+- [x] `builtins.py` follows the vendors → `pipelex/providers/builtins.py`, still exporting `RUNTIME_BUILTIN_PLUGINS` / `RUNTIME_CORE_UNCONDITIONAL_PLUGIN_NAMES`. Re-point the downward import in `pipelex/interpreter_plugins/builtins.py`. Both stay parameters of `build_registrar` — unchanged.+- [x] Rewrite imports. **Watch the `secrets` / `storage` trap** (ground rules): `pipelex.plugins.secrets` is a vendor dir, `pipelex.plugins.secrets_provider_registry` is a mechanism module that must not move. Same for `storage`.+- [x] **Rewrite the 189 string-literal module references** (ground rules) — `mocker.patch("pipelex.plugins.<vendor>...")` targets, invisible to import rewrites and to pyright. They fail loudly at test time, so `make agent-test` is the gate, but budget them as real work: an import-only rewrite turns the suite red in bulk and reads as a catastrophic move rather than expected residue.+- [x] **Add `"pipelex.providers"` to `RUNTIME_LAYER_PACKAGES`, and add a guard test that proves it.** This is the one step where a mistake is invisible — dropping the vendors from the guard silently un-declares the largest runtime package.+ ⚠ **The plan previously claimed "the transitive rule is what catches it." That is backwards.** Verified at `pipelex/cli/dev_cli/commands/hub_layering_guard.py:677`: the rule iterates `sorted(module for module in reaching if is_runtime_layer(module_qname=module))`. An **undeclared** package is excluded from the rule's domain, so omitting it makes the guard go *quieter*, not louder. **No existing gate catches this.** Add an explicit assertion to `tests/unit/pipelex/cli/dev/test_hub_layering_guard.py` that a representative `pipelex.providers.*` module `is_runtime_layer`.+- [x] Add `pipelex/providers/builtins.py` to the closure test's `RUNTIME_LAYER_ENTRY_POINTS` (replacing `pipelex.plugins.builtins`, which after the move no longer aggregates anything). Its presence there is load-bearing history: that module and three neighbours breached the boundary transitively while both gates stayed green.+- [x] Move tests: `tests/unit/pipelex/plugins/` and `tests/integration/pipelex/plugins/` — split so vendor tests land under a `providers/` mirror and mechanism tests stay under `plugins/`.+- [x] Re-path subject grants (160 hits under `plugins/` — the bulk are vendor workers), then `make cko`.+- [x] `make gep` — several vendor directories carry exceptions modules (`gateway`, `portkey`, `bedrock`, `google`, `mistral`, `openai`, …), so expect a wide `Defined in` diff. Filenames and `type_uri`s must be **unchanged** (no class renames in M2); if one changes, something got renamed by accident.+- [x] Docs sweep for `pipelex/plugins/<vendor>/` paths: `docs/under-the-hood/reasoning-controls.md` (a table of ~10 paths), `error-model.md` (3 refs to `pipelex/plugins/*/`), `inference-backend-plugins.md`, `secrets-provider-plugins.md`, `orchestrator-plugins.md`. **Do not touch the entry-point group name** `"pipelex.plugins"` — it is a group identifier, not a module path, and it is the third-party contract.+- [x] **Sweep architectural prose in *source*, not just `docs/`.** Two module docstrings describe the pre-M2 layout and go stale silently: `pipelex/plugins/contract.py:33-35` ("``pipelex.plugins`` for the runtime half, ``pipelex.interpreter_plugins`` for the interpreter half" — after M2 the runtime *adapters* are in `pipelex.providers`), and `pipelex/interpreter_plugins/builtins.py:3-8` (describes `pipelex.plugins` as the neighbouring runtime adapter package). Both are the kind of comment the repo's own diagram-maintenance rule says must move with the code.+- [x] `docs/contribute/hub-layering.md` → **Known inversions**: record the four `cogt → provider config` imports (`anthropic`, `google`, `mistral`, `openai` config classes reached from `cogt/config_cogt.py`) as a deliberate, documented exception. Rationale (D-M2-2): the main config model is statically typed end-to-end (`configs.py` ⇄ `pipelex.toml` structural sync); making vendor config sections plugin-contributed would trade that static typing for a dynamic registry.+- [x] **`make drift-ack CONTRACT=hub-layering-convention`.** M2 adds `pipelex.providers` to `RUNTIME_LAYER_PACKAGES`, a trigger file in `drift.toml:65-69`, so the contract opens and M2's checkpoint `make drift-check` fails without an ack. Review the doc for real — M2 adds a whole runtime-layer package, which the "Where core splits" and Known-inversions sections both describe.+- [x] Changelog entry, **breaking**: `pipelex.plugins.<vendor>` → `pipelex.providers.<vendor>`. Two things to state explicitly: (a) the *plugin entry-point contract is unaffected* — an external plugin imports `pipelex.plugins.contract` / `pipelex.plugins.registrar`, both of which stay put; (b) **no known external consumer imports the vendor paths** (measured 2026-07-27: zero hits across every sibling repo), so the break is in-tree only. Do not imply a consumer migration that nobody needs.-#### Measured after+### Exit criteria-| | baseline | H-1 | **after H-3** |+| | baseline | target | **actual** || --- | --- | --- | --- |-| interpreter modules loaded by `cogt.content_generation.content_generator` | 50 | 0 | **0** ✅ |-| pipelex modules loaded | 357 | 275 | **268** † |-| SLOC loaded | 29,193 | 21,186 | **20,304** † |+| mechanism modules importing a vendor | 1 (`builtins.py`, by design) | **0 in `plugins/`**, 1 in `providers/` | ✅ **0 / 1** — `providers/builtins.py` names all 17, nothing under `pipelex/plugins/` names any |+| vendor modules importing outside `providers/` + `plugins/` | 0 | 0 (unchanged) | ✅ **0** |+| guard test asserting `pipelex.providers.*` is runtime-layer | 0 | **1** | ✅ **1**, derived from disk and mutation-checked red |+| `cogt → <specific vendor>` statements | 7 | 7 (4 documented, 2 in F1, 1 self-resolving) | ✅ **7**, and they are the *only* three source files outside `providers/` naming a vendor |+| `RUNTIME_LAYER_PACKAGES` covers every vendor module | yes | yes | ✅ **17 / 17** |-† Recorded from a stale run, caught by the PR #1062 review and re-verified at [Checkpoint A](#checkpoint-a-record--pr-1062-review-follow-ups): the tree measures **269 / 20,305**, not 268 / 20,304. The baseline and H-1 rows reproduce to the digit, so the method is sound and only the recording was off. The 0-interpreter-modules row — the one that matters — is exact.+⚠ **Measurement trap, cost ~10 min and it under-counted silently.** `pypdfium2` contains a digit, so a `[a-z_]*` character class in a grep pattern skips it — the first pass reported 16 of 17 vendor imports in `builtins.py` and would have reported a clean `cogt` count even if a `pypdfium2` import existed. Use `[a-z0-9_]+` for anything matching a vendor segment. The *rewrite* script was never at risk (it uses literal vendor names), only the measurements taken afterwards — which is the worse of the two, because a measurement is what tells you the rewrite was complete.-Cross-package import statements, the number Phase 3 was actually aimed at:+> **The "vendor imports nothing but the mechanism" metric was false by construction** and is restated above. The design doc deliberately preserves cross-vendor edges (`blackboxai` / `openrouter` / `portkey` → `openai`; `gateway` → `fal` / `google` / `openai` / `portkey`) because they stay inside the new package — e.g. `blackboxai/blackboxai_completions_factory.py:9` and `openrouter/openrouter_completions_factory.py:8` import `OpenAICompletionsFactory` at module level. A metric targeting zero could never be met. Measure "imports outside `providers/` **and** `plugins/`" instead.-| edge | before | after |-| --- | --- | --- |-| `cogt → pipeline` | 18 | **0** |-| `tools → cogt` | 15 | **3** |-| `graph → cogt` | 2 | **0** |-| `reporting → graph` | 1 | **0** |-| `system → graph` | 1 | 1 (by design — see below) |--The module/SLOC rows moved only a little because the fat edge was never `cogt → pipeline` alone. Two edges still pull `graph` and `pipeline` modules into the inference closure, and **both are out of Phase 3's scope by construction**:+### 🛑 CHECKPOINT M2 — HARD STOP-- `system.configuration.configs → graph.graph_config` (→ `mermaid_config`, `reactflow_config`): the main config model must name every subconfig, and the repo's convention is that submodels live in their own sub-packages. This is inherent to the one-big-config design, not a layering defect. It is the surviving `system → graph` edge.-- `core.pipes.pipe_output → pipeline.pipeline_models`: a `core → pipeline` edge, which is **Phase 4 territory**.+1. **Gates:** `make cko` → `make cleanderived` → `make agent-check` → `make agent-test` → `make drift-check` → `make chl` → `make gep` (review the diff).+2. **Verify:** transitive layering rule reports zero breaching runtime-layer modules; closure test reports zero interpreter modules for every runtime entry point *including the new `providers.builtins`*; the dirty control still fails.+3. **Update this file** + [Cold-start brief](#cold-start-brief) + [Measurements](#measurements).+4. **Commit**, then **fan out reviews**. M2 reviews: `correctness-and-imports` + `boundary-and-naming` + `over-engineering`.+5. **Stop.** Report verdicts and wait.-Together they account for the 7 `graph.*` and 2 `pipeline.*` modules still in the closure. Do not chase them here.+#### Checkpoint record — reached 2026-07-28-#### 3.1 — where things landed, and why+**All gates green**: `cko`, `cleanderived` + fixture regen, `agent-check` (ruff / pyright 0 / mypy 0 / cko / chl), full `agent-test`, `drift-check` (two contracts acked), `chl`, `gep` (diff reviewed, see below), `tb`. Every exit-criterion actual is in the table above.-`JobMetadata` had to go somewhere `cogt` may import, which means a declared low-layer package. `pipelex/system/` is that package and it already houses `telemetry/otel_context.py` — the sibling transport `JobMetadata` carries alongside `TraceContext`.+**Scale of the move:** 17 vendor packages + `builtins.py` out of `pipelex/plugins/`; **1364 substitutions across 136 files**, of which **191 were string literals** (the plan predicted 189 — the drift is two, both in test mock targets). The completion check was the one that makes "did I get them all?" answerable: grep the whole tree for the old paths and assert the only survivors are in the deliberately excluded files (`CHANGELOG.md`, `TODOS.md`, `wip/`, `docs/errors/` — history and generated pages, which must not be textually rewritten; the error pages are regenerated by `make gep` instead).-`TraceContext` moved **with** it rather than staying in `graph/`. Leaving it would only have renamed the inversion: `system/job_metadata.py → pipelex.graph.trace_context` is a `system → graph` edge, exactly the direction being removed. Its one graph dependency was `DataInclusionConfig`, so that class moved down to `pipelex/system/data_inclusion_config.py` and `graph_config.py` now imports it from there. **The TOML shape is unchanged** — the key is still `[pipelex.pipeline_execution_config.graph_config.data_inclusion]`; only the Python class's home moved. `pipelex.system.trace_context` now has a leaf closure: no `graph`, no `pipeline`.+**The `secrets` / `storage` trap was real and was avoided by construction.** Every substitution anchors the vendor name on a `(?![A-Za-z0-9_])` lookahead, so `plugins.secrets` (vendor dir) rewrites while `plugins.secrets_provider_registry` (mechanism module) does not. Verified after the fact by asserting that no mechanism module is reachable at a `pipelex.providers.*` path, and that the `pipelex.plugins` **entry-point group name** — a group identifier, not a module path, and the third-party contract — is untouched.-Two homes were considered and rejected for `TraceContext`: `pipelex/tracing/` (would have created a `system ⇄ tracing` package cycle, since `tracing → system` already exists) and `pipelex/system/telemetry/` (that package is OTel + PostHog; `TraceContext` is the pipelex-native node-tree transport, and conflating them would mislead).+**Decisions taken during implementation:**-#### 3.2 — why the templating primitives split across two packages+- **D-M2-4 — M2 was built on top of M1 on this branch, not on a parallel branch off #1064.** The plan's topology had M2 independent and rebased after M1, with a mandatory drift re-ack because a rebase invalidates the digest. Building it stacked satisfies the prescribed landing order, eliminates the three-file conflict the plan warned about, and makes the ack recorded here final. See [Gating](#gating).+- **Test split derived per module, not from the plan's two-line instruction.** The vendor subdirectories were unambiguous, but the flat modules needed reading. `test_linkup_plugin_guard.py`, `test_secrets_plugin.py` and `test_storage_plugin.py` are *vendor* tests despite sitting at the `plugins/` root (they moved into the matching `providers/<vendor>/` mirrors); `test_transport_retry_wiring.py` and `test_plugin_pipelex_storage_images.py` are cross-vendor and moved to the `providers/` root; `test_inference_backend_coverage.py` reads as a vendor test by name but is a *mechanism* round-trip over `BUILTIN_PLUGINS` and stayed. On the integration side `conftest.py` moved with the four vendor tests, because all four of its consumers moved and the three modules that stayed use none of it.+- **`tests/CLAUDE.md` gained a `pipelex/providers/` row.** The source-to-test mapping is 1:1 by convention; a new source package with no row silently drops out of every targeted test run.-None of the three moved modules named anything from `cogt`, so this was pure misfiling. But they could not all land in one new package:+**The one user-facing defect, and it is the same shape M1 hit three weeks ago.** `_SUBSYSTEM_SECTIONS` in `pipelex/errors/error_pages_generator.py` had a `plugins` row and no `providers` row. `_subsystem_key` reads a module's **second dotted segment**, so every vendor error class would have silently reclassified out of *Inference & providers* into the `_FALLBACK_MACRO_SLUG` (*Platform & tooling*) — with `make gep` exiting 0 and producing an entirely plausible diff. This is M1's `mthds_parsing` regression repeating on the next module move, and it was caught **only** because M1's recorded lesson was to read the generated diff rather than trust the exit code. Fixed by splitting the row in two, which the content wanted anyway: **Provider adapters** (a vendor SDK rejected the call) and **Plugin system** (a plugin failed to load or claimed a taken slot). Verified by the negative: `docs/errors/platform-and-tooling.md` is byte-identical, so nothing fell through. No page was added or removed, so no `type_uri` changed.-- `TextFormat`, `TemplatingStyle`, `TagStyle` → `pipelex/tools/templating/`. That package imports nothing from `pipelex` beyond its own sibling — a genuine leaf.-- `TemplateCategory` → `pipelex/tools/jinja2/`, because its entire payload is a map of jinja2 filters (`jinja2_filters`, `jinja2_models`, `jinja2_with_images_filter`). Filing it in `tools/templating/` would have made that package import `tools/jinja2` while `tools/jinja2` imports it back — a cycle inside one layer. As placed, the edges run one way: `tools/mermaid → tools/jinja2 → tools/templating`.+**Two drift contracts opened, not one.** `hub-layering-convention` was predicted. `config-docs` was not — re-pathing the four vendor config imports touches `cogt/config_cogt.py`, a trigger. Reviewed for real and logged as **friction**: `docs/configuration/` cites no Python import path anywhere, so an import-only diff cannot affect it *by construction*. That is the second such opening on that contract from a pure refactor sweep, and the dogfood log now carries a concrete narrowing proposal (ignore diffs confined to import statements) backed by two data points.-What stays in `cogt/templating/` — `TemplateBlueprint`, the sigil preprocessor, `template_rendering` — belongs there: a blueprint is language-layer, and the rest imports `tools/jinja2` downward.+#### Review round — done 2026-07-28, fixes applied-#### Housekeeping done at H-3+Three reviews over `7beda698f..dee323e28`. **All three cleared the move itself, by measurement rather than reading.** The `correctness-and-imports` pass found **no import defect at all**: it AST-walked every `.py` under `pipelex/` and `tests/`, resolved all 944 `pipelex.`-prefixed string constants against the live interpreter (which covers every `mocker.patch` target), imported all 111 modules under `pipelex.providers` in one process, and confirmed that importing the entire `pipelex.plugins` mechanism pulls in **zero** `providers` modules — so the one-way dependency is empirically true, not merely asserted. `boundary-and-naming` independently verified the same and confirmed the "omitting the entry makes the guard quieter, not louder" premise by monkeypatching the tuple and watching the guard report zero violations either way.-- **Subject grant migrated**: `pipelex/graph/trace_context.py::TraceContext.copy_for_child` → `pipelex/system/trace_context.py::…`. Recorded **before** running any check, per the `fko`-silently-rewrites warning in `CLAUDE.md`. No grants existed for the moved templating modules (the two that do, on `template_preprocessor` / `template_rendering`, did not move).-- **Tests**: `tests/unit/pipelex/pipeline/test_job_metadata_request_id.py` → `tests/unit/pipelex/system/` (self-contained, so the move is free). The two `TraceContext` test modules **stayed** in `tests/unit/pipelex/graph/` — they consume `make_trace_context` and the `data_inclusion_config` / `graph_config` fixtures from that directory's `conftest.py`, which the graph tests use heavily. Splitting the fixture module to mirror the source move would cost more than the tidiness is worth.-- **Docs**: `docs/contribute/hub-layering.md` gained a "Placement, not coupling" section recording both moves and the generalizable lesson, and its "Known inversions" bullet was corrected (`tools → cogt` is now the pdf renderer only). `docs/under-the-hood/execution-graph-tracing.md`'s file-reference table was updated for the two moved modules.-- **`make cleanderived` deletes `tests/integration/pipelex/fixtures/_generated_model_sets.py`**, and pyright then fails on 12 unresolved-import errors that have nothing to do with your change. `make regenerate-test-models-quiet` restores it. Worth knowing before debugging a phantom failure.+**Every defect was in the documentation of the boundary, or in the test that guards it. None in the move.**-#### Cross-repo impact added by Phase 3+- **The new guard test repeated a defect this track has now made three times.** `is_runtime_layer` matches by dotted prefix, so reading the vendor list off disk and looping over it carried exactly one bit — `is_runtime_layer("pipelex.providers.totally_invented.x")` is `True`, the assert fires on the first entry, and the remaining iterations can never execute. Two reviewers flagged it, and both correctly noted the test must **not** be deleted: it is the only thing in the suite that catches a dropped declaration, because the guard CLI itself stays green. The clincher is that `test_core_is_declared_as_one_whole_package`, which M1c added *to this same file*, has a docstring condemning precisely this shape. Replaced with a membership assertion over **both** halves of the split — which is strictly stronger than what it replaced (dropping `pipelex.plugins` now fails too, where the disk-scan version only caught `pipelex.providers`), carries two bits instead of one, and drops a real second failure mode the reviewers spotted: an adapter added without an `__init__.py` is importable as a namespace package but was silently skipped by the filter. Both mutations checked red.+- **A boundary claim my own commit contradicted two sections later.** "Where the built-in plugins split" asserted the one-way dependency as three clauses, and the third — *"the engine depends only on the mechanism"* — is false: importing `cogt.config_cogt` alone loads **8** `pipelex.providers.*` modules, which the Known-inversions bullet added in the *same commit* documents and justifies. One document, two opposite claims about the same word. This is the identical shape M1's review found ("two adjacent paragraphs on the same premise reaching opposite conclusions"), and it is the worst defect of the round: a layering page that states the boundary wrongly is more harmful than one that omits it. Clause dropped and scoped explicitly to the two packages, with a pointer to the inversions.+- **"One directory per vendor" is wrong twice over.** `providers/secrets/` registers the built-in `env` backend — no vendor exists — and `providers/storage/` registers local, in-memory, S3 and GCP behind a single directory; in both cases only the registration shim moved, the implementations are under `pipelex/tools/`. The package *name* survives this (all three reviewers agree `providers` is right, and it is exactly why `vendors/` would have been wrong), but the prose overreached. Corrected, and the exception is now stated rather than glossed.+- **Hardcoded counts, flagged independently by all three reviewers**, against an explicit workspace rule ("Never hardcode counts… they create diff churn, go stale silently, and add no value"). Four live locations pinned "seventeen" / "the seven capability registries". The irony was pointed out and is fair: the neighbouring test went out of its way to avoid becoming an inventory while the prose beside it hardcoded the number. Fixed. Left alone deliberately: the same words inside the recorded drift-ack rationales and the dogfood log, which are append-only records of a decision at a point in time — rewriting them would falsify the record.+- **Two unchecked F1 items named paths M2 had moved** (`plugins/{google,openai}/*_img_gen_factory.py`). Completed items' historical references are correct as written; it is specifically the open ones that must name the current tree, because F1 is the next work on this branch and this file is its handoff. Fixed.-These are **new** breakages on top of the `pipelex.hub` split, and they land in the same release-gated sweep:--| repo | files touched by the Phase 3 moves |-| --- | --- |-| `pipelex-temporal/` (private) | 22 |-| `pipelex-mistralai-workflows/` | 6 |-| `pipelex-api/` | 1 |+**One reviewer claim was wrong and is rejected:** `correctness-and-imports` reported a fifth hardcoded count at `hub_layering_guard.py:114`. There is no numeral in that file — verified by grep. The other four locations it named were correct.-The import lines to rewrite, in full:+**Two method findings worth more than the defects.**-| old | new |-| --- | --- |-| `pipelex.pipeline.job_metadata` | `pipelex.system.job_metadata` |-| `pipelex.graph.trace_context` | `pipelex.system.trace_context` |-| `pipelex.graph.graph_config import DataInclusionConfig` | `pipelex.system.data_inclusion_config import DataInclusionConfig` |-| `pipelex.pipeline.exceptions import JobMetadataError` | `pipelex.system.exceptions import JobMetadataError` |-| `pipelex.cogt.templating.text_format` | `pipelex.tools.templating.text_format` |-| `pipelex.cogt.templating.templating_style` | `pipelex.tools.templating.templating_style` |-| `pipelex.cogt.templating.template_category` | `pipelex.tools.jinja2.template_category` |+- **This shell's `grep` is a ugrep wrapper that honours `.gitignore`.** Run from the workspace root it silently skips every sibling repo; inside `_hub` it skips the stale `site/` tree. A naive `grep -r` therefore returns a **false clean** on exactly the sweep a rename refactor depends on. The whole-tree completion check was re-run with `/usr/bin/grep` and the verdict held — but it held by luck of using `git grep` for the load-bearing pass, not by design. **Use `/usr/bin/grep` or `git grep` for any completeness sweep.**+- **A brace-glob evades a per-vendor regex.** `plugins/{google,openai}/` is a real module reference that no substitution keyed on a single vendor name will match — it is the same class of miss as a string literal, one level further out. Worth adding to the ground rules before the release-wave sweep; the same shape exists in a `pipelex-api/wip/` note.-Clean (no action): `pipelex-cookbook/`, `cocode/`, `pipelex-worker/`, `pipelex-starter-python/`, `pipelex-relay/`, `sandbox/`.+**Reported and not reproduced:** one reviewer saw the new guard test fail once in five full-suite runs, with `is_runtime_layer` returning `False` for a module the committed tuple covers — impossible against this tree, and the run carried the `bringing up nodes...`-twice signature that `docs/agents/debugging-hanging-pytest-runs.md` names as xdist worker crash-and-replace. Re-run 25 times under xdist after the rewrite: **zero failures**. The rewritten test no longer touches the filesystem, which removes one of the two moving parts. Recorded as an unreproduced observation rather than closed — if it recurs it needs root-causing, not tolerating.-### Phase 4 — core's data model joins the low layer ✅+**Not done here, deliberately:** the `wip/` docs that still describe the pre-M2 layout (`wip/plugins/*.md`, the design doc's own prose) were excluded from the rewrite along with `CHANGELOG.md` and `TODOS.md`, per M1's method. The design doc's classification snippet needs **no** change — M2 adds a runtime-layer package, not an interpreter one, so the matched triple is undisturbed.-- [x] 4.1 Converted the `core/` straddlers to injected providers. **The plan's premise was wrong** — `core/` is two layers, not one, and only its *data model* can be low. See the H-4 record.-- [x] 4.2 Widened the guard's low layer with core's six data-model packages, and added six `pipelex.core.*` entry points to `RUNTIME_LAYER_ENTRY_POINTS`.+----**CHECKPOINT H-4** — the boundary is complete, enforced, and measured.+## Follow-up F1 — the two `cogt → vendor` img-gen factory imports behind a registry-### Checkpoint H-4 record+Deliberately **not** inside the 127-file M2 move: this is a behavior change and would be invisible in that diff (D-M2-2).-Gates: `make agent-check` ✅ (pyright 0 errors, mypy 2,356 files, keyword-only PASSED, hub-layering PASSED) · `make agent-test` ✅ (full suite, no test edits beyond the mechanical ones recorded below) · `make drift-check` ✅ (both contracts reviewed and acked — see below).+**Re-scoped 2026-07-27 from three imports to two.** Two corrections:-## ▶ Resume here — the rename is landed+1. **`backend_factory.py:53` (VertexAI) is dropped.** VertexAI support is being removed, so the edge self-resolves. Do not build auth-dispatch machinery for a vendor on its way out — it would outlive its reason. The import is already deferred (`# noqa: PLC0415`), so it costs nothing while it remains.+2. **No registry. There is no dispatch key.** The first review proposed an arg-builder slot on `inference_backend_registry`; the outside voice showed that cannot work, and it is verified:+ - `ImgGenArgsFactory.make_args_for_model(cls, model_rules, *, img_gen_job, nb_images, model_id, model_name)` — **receives no `sdk`** (`img_gen_args_factory.py:54-62`).+ - Dispatch is a `match` over **`AspectRatioTaxonomy`**, not over a provider (`img_gen_args_factory.py:367-396`): `GPT_IMAGE_LEGACY` / `GPT_IMAGE_2` → `OpenAIImgGenFactory.size_for_*`, `GEMINI_*` → `GoogleImgGenFactory.resolve_image_config`, `QWEN_IMAGE` → …+ - The gateway worker is **one SDK that executes both** OpenAI and Google taxonomies (`gateway_img_gen_worker.py:78-84`), so an `(family, sdk)` key cannot select the right helper at all.-All four phases **and** the runtime/interpreter rename are landed, with all three gates green. The rename's own record is [below](#the-runtimeinterpreter-rename-record); the rest of this section is the H-4 close-out it followed.+**Ruled: move the helpers, do not dispatch them.** Extract the OpenAI/Google taxonomy and geometry helpers into a **neutral mapping module under `cogt/img_gen/`**, then have both `ImgGenArgsFactory` and the provider workers import *inward*. These are taxonomy utilities keyed by a `cogt`-owned enum — they were never independently dispatched workers.-The two contracts that were left open on purpose at the H-4 pause were reviewed and acked:+- [x] Extract the taxonomy/geometry helpers from `providers/google/google_img_gen_factory.py` and `providers/openai/openai_img_gen_factory.py` into a neutral `cogt/img_gen/` mapping module. (Both re-pathed by M2 — F1 is unstarted work, so its paths must name the current tree.) — **two** modules, not one (D-F1-1): `cogt/img_gen/img_gen_gemini_mapping.py` + `cogt/img_gen/img_gen_gpt_mapping.py`.+- [x] Re-point `img_gen_args_factory.py:37-38` (currently **module-level**, not deferred) and the provider workers to import inward from it. Net import-cost improvement: removes two eager vendor imports from a `cogt` module. — done; the inward importers are `providers/google/google_img_gen_worker.py` and `providers/gateway/gateway_factory.py`.+- [x] Tests covering each taxonomy branch, including the unmapped-taxonomy path. — the branch coverage already existed and moved with the module (`test_img_gen_gemini_mapping.py`, incl. the non-Gemini-taxonomy rejection; the GPT-Image branches are covered from the args-factory side). What was **missing** is the invariant F1 actually buys, added as `test_img_gen_mapping_neutrality.py` (D-F1-4).+- [x] Changelog entry.+- [x] Leave `backend_factory.py:53` alone; re-check after VertexAI removal lands. — untouched; it is now the *only* remaining `cogt → specific vendor` edge of this kind.-- **`config-docs` — clean-pass.** The only trigger change was one import line in `configs.py` (`TemplatingStyle` moving `cogt.templating` → `tools.templating`, the Phase 3 placement fix); every other trigger file was byte-identical. No config field, default, validator, or TOML key moved. `docs/configuration/` documents no import path, and every Python path the docs *do* cite still resolves.-- **`cli-docs` — clean-pass.** All 10 triggers changed by exactly one import line each (the Phase 4 renderer regroup). Verified against the **live CLI** rather than by reading alone — `pipelex build inputs pipe`, `pipelex build output pipe`, `pipelex-agent inputs pipe` — arguments, flags, format values and defaults all match `docs/tools/cli/`. The behavior-adjacent half of Phase 4 was checked too: no CLI doc cites a Python import path or calls a factory that gained a required `concept_provider`, and the runner codegen emits none. `agent_cli/CLAUDE.md`'s layout map lists only `agent_cli`'s own modules, none of which moved.+**Why this beats the registry**, recorded so it is not re-litigated: no hub wiring, no registrar menu entry, and therefore **no plugin-API version bump**. `plugins/contract.py:5-19` uses strict coarse API equality and explicitly versions registrar changes, so adding a menu capability would force a coordinated plugin wave — for two import sites. It also fixes the dependency *direction* rather than routing it through machinery, and it leaves `pipelex.plugins.contract` untouched, which is what M2's changelog promises.-Also swept `docs/` and `wip/` for stale references to the H-4 moves (`core.pipes.output.*`, `codegen.resolved_fields`, `core.pipes.inputs.input_renderer`): every remaining hit is intentional historical prose in `hub-layering.md` or this tracker.+### Exit criteria-**One observation is worth carrying forward, because it is now a pattern rather than an anecdote.** This refactor opened **four contracts across three different ids**, and every one of them was import-path churn. The narrowing proposed in the earlier `config-docs` dogfood entry (scope the trigger to files that define settings) would **not** have prevented today's opening — `configs.py` is squarely inside that narrowed set. The mechanism that would prevent all four is a content-aware digest that ignores changes confined to import statements (and, for `keyword-only-convention`, to comments/docstrings): one manifest-wide change instead of three separate glob surgeries. Recorded in `wip/drift-contracts/dogfood-log.md` as the thing to weigh before any per-contract narrowing — it is evidence for the pilot's keep/narrow/mechanize verdict, not a change to make now.+| | baseline | target | **actual** |+| --- | --- | --- | --- |+| `cogt → specific vendor` import statements | 7 | **5** (4 config + 1 deferred VertexAI) | ✅ **5** |+| source files outside `providers/` naming a vendor module | 3 | **2** | ✅ **2** (`config_cogt.py`, `backend_factory.py`) |+| eager vendor imports in `cogt/img_gen/` | 2 | **0** | ✅ **0** |+| third-party imports in the mapping modules | 1 (`openai`) | **0** | ✅ **0**, and pinned by a test |+| tests pinning the neutrality of the new home | 0 | **1** | ✅ **1** module / 2 tests, both mutation-checked red |-**Next: [PR #1062](https://github.com/Pipelex/pipelex/pull/1062) is open against `dev`** (base was still exactly `f23fda7a0` at open time, so no merge was needed). The only thing outstanding after it lands is the release-gated cross-repo sweep, already retargeted to the final names. Louis' drift-contract decision is resolved — `hub-layering-convention` is in the manifest, reviewed and acked.+### 🛑 CHECKPOINT F1 — HARD STOP-The PR body carries a **reviewer map**, which this diff needs: 528 files, of which ~490 are mechanical import churn. It names the dozen files where the judgment actually lives, and pre-empts the two things that look wrong at a glance — `subject_grants.toml`'s 221/221 re-sort (the registry is machine-written sorted, and was not in sort order before; the parsed mapping is identical modulo renames) and the deliberately un-swept old names in D1, the checkpoint records, and `.drift/acks/`.+Gates as above (this one *does* change behavior, so `make agent-test` is the real gate, not a formality). Reviews: `correctness-and-boot` + `over-engineering`. Then stop.-### The runtime/interpreter rename — record+#### Checkpoint record — reached 2026-07-28-Landed as its own commit after H-4, per [`wip/hub/layer-and-hub-renaming.md`](wip/hub/layer-and-hub-renaming.md). Gates: `make agent-check` ✅ · full `make agent-test` ✅ · `make drift-check` ✅.+**All gates green**: `cko`, `cleanderived` + fixture regen, `agent-check` (ruff / pyright 0 / mypy 0 / cko / chl), full `agent-test`, `drift-check`, `chl`, `gep` (diff reviewed — empty, and *verified* empty rather than assumed: no error class moved, and `cogt` already had its `_SUBSYSTEM_SECTIONS` row, so the M1/M2 regression shape could not repeat here), `tb`.-**Pre-flight was clean.** Grepping the whole workspace — including the private `pipelex-temporal`, the heaviest consumer — turned up **zero** collisions on `runtime_hub` / `RuntimeHub` / `interpreter_hub` / `InterpreterHub`. The only hits were the plan documents themselves.+**Scale:** 2 source modules + 1 test module moved, 127 substitutions across 11 files plus the durations file. Same rewrite method as M1/M2 (ordered longest-first substitutions over `git ls-files`, `CHANGELOG.md` / `TODOS.md` / `wip/` / `docs/errors/` excluded, then a whole-tree `git grep` completion check asserting the only survivors are in those excluded files). ⚠ `.test_durations` is **not** an exclusion — M1 and M2 both rewrote it, and it carries test node ids that a test move invalidates.-**A token substitution was the right tool here, and the plan's AST warning did not apply.** Phase 1 needed an `ast` rewrite because it was *splitting* one module into two: each import line had to be classified symbol by symbol, and 29 parenthesized multi-line blocks were the hazard. This rename is 1:1 — no import splits, no classification — so the question is only whether the four tokens ever appear where they must not. They do not: enumerating every whole word in `pipelex/` and `tests/` containing any of them returned exactly the identifiers that should change (`get_method_hub`, `set_service_hub`, the hub-named test functions, and the bare class names). Substring replacement across 332 files, then a re-parse of every file in both trees, was safer than a formatting-preserving AST rewrite and left zero residuals.+**One near-miss the completion sweep caught by construction:** `OpenAIImageURL` is a live local alias for the OpenAI SDK's `ImageURL` in four completions factories. A substitution keyed on `OpenAIImage` would have corrupted all four; the list keys on the full type names (`OpenAIImageLegacySizeType`, `OpenAIImageModerationType`, `OpenAIImageInputFidelityType`), so none matched. Verified after the fact — the four sites are untouched.-**The string-literal landmine was real again, and pre-enumerated.** The H-1 lesson (a missed `mocker.patch` target is invisible to every import-graph tool) held: `tests/helpers/init_cmd_helpers.py` carried `mocker.patch("pipelex.service_hub.get_console", ...)` — the same file, the same shape that broke 36 tests at H-1. Because the sweep was token-based over the whole file rather than import-based, it was caught for free. The other string references were the guard's own configuration, the closure test's entry-point list, and the guard test's patch-target fixtures.+**Decisions taken during implementation** — see [Decisions](#decisions) for D-F1-1 … D-F1-4.-**What the plan under-specified: the enum members in the *test* file.** Step 4 lists the guard's `HubLayeringViolationKind` renames but step 5 lists only the test's constants and patch targets, so a first pass renamed the members in the source and left `HubLayeringViolationKind.METHOD_HUB_IMPORT` in the test — 7 failures. Mechanical to fix, but worth recording: when an enum member is renamed, its *references* live wherever the enum is asserted on, and the plan's per-file checklists split that pair across two steps.+#### Review round — done 2026-07-28, fixes applied-**Vocabulary, not just identifiers.** `LOW_LAYER_PACKAGES` → `RUNTIME_LAYER_PACKAGES` and `is_low_layer` → `is_runtime_layer` were in the plan; the prose was not, and it was the larger edit. "Low layer" / "high layer" was swept out of the guard, both hub docstrings, `class_registry_access.py`, the guard's success panel (it printed `Low layer: …` to the user), `hub-layering.md`, `architecture-overview.md` and the CHANGELOG. The historical checkpoint records in *this* file deliberately keep the old vocabulary, with a reading key in the header note — rewriting them would falsify what was decided when.+`correctness-and-boot`: **no defects.** It reconstructed both pre-move files, applied only the documented renames, and diffed against the new ones — the **entire** functional delta is `moderation_literal`'s `omit` → `None`, everything else being docstrings. It then traced every consumer of that value and confirmed the branch is identical (`Omit` is not a `str`, so the old `isinstance` test and the new `is None` test agree on every input), verified all three `mocker.patch` targets followed the class, confirmed no orphan `.test_durations` entries, and recomputed the neutrality property independently — 43 modules in the mapping closure, zero `pipelex.providers`, zero `pipelex.config`, no deferred or dynamic import anywhere in it. It also confirmed boot is untouched: the moved modules are lookup tables, present in no manifest and no entry point.-**Judgment calls made while sweeping the docs**, none of them mechanical:+⚠ **Its one unreproduced observation has a mundane explanation, and it is reassuring rather than worrying.** It saw the closure subprocess fail exactly once, reporting **10** `pipelex.providers` modules, and could not reproduce it in 8 further full-suite runs or 15 standalone ones. Ten is the exact count [Measurements](#post-f1-measured-2026-07-28) records for the deliberate mutation used to prove the guard discriminates — so the reviewer observed that mutation in flight, in a shared worktree, and what it actually witnessed is the guard firing correctly on a genuinely coupled tree. Its suggested hardening (`-I` plus explicit `cwd=`/`env=`) is **not applied**: cwd on `sys.path[0]` is what makes the subprocess measure the *working tree* rather than an installed copy, and the sibling `test_runtime_layer_import_closure.py` is built the same way. Recorded rather than silently dismissed — if it ever appears with no concurrent editing, that reasoning is what to re-examine.-- `hub-layering.md` gained an opening section naming the two layers as the language-implementation split, so a reader meets the vocabulary before the rule. The headline property was restated from "importing the inference layer must not load the interpreter" to **"importing the Pipelex runtime loads zero interpreter modules"** — the same measurement, phrased as the outward-facing claim.-- The `runtime_bridge` clarifier the plan asked for landed in two places, not one: `hub-layering.md`'s intro and the guard's module docstring, since `plugins → runtime_bridge` appears in that file's Known-inversions list.-- **D1 was preserved verbatim rather than swept.** Mechanically renaming it would have produced a decision record whose rejected alternatives argued about names that were no longer the subject. It is now marked SUPERSEDED, quotes the original in full, and notes that its own "conscious call against the brand-boundary rule" caveat is precisely what Louis acted on.-- `.drift/acks/keyword-only-convention.toml` was **left alone** — an ack is an on-the-record review decision, and rewriting the rationale of a past review to mention a module that did not exist at review time would be falsifying the record.+`over-engineering`: **the move itself is clean and not over-engineered** — verified as a pure placement fix with no registry, no plugin slot, no dispatch layer and no shim, and the `omit` → `None` change *removes* machinery rather than adding it. The equivalence was confirmed independently rather than taken on trust (the old caller never put the sentinel in the dict either, and the worker reads the key's absence). Grants correctly re-pathed; `bc22ba934` verified a pure re-sort by identical line multiset.-**One trigger file changed, so `keyword-only-convention` re-opened** — `keyword_only_guard.py`'s docstring names the hub. Reviewed and acked as import-path/prose-only; no guard behavior, registry schema, or carve-out changed.+**Every defect was in the new guard test, and the headline one is this track's own recurring shape — a check that cannot fail.**-**Cross-repo is retargeted, not extended.** The sweep tables in this file now name `pipelex.runtime_hub` / `pipelex.interpreter_hub` directly. External repos still import `pipelex.hub`, so they are rewritten exactly once — the intermediate names never reach them, and never shipped.+- **`assert MAPPING_MODULE_PATHS` sat at the top of a test parametrized over that same list, so it was unreachable.** pytest never calls a body for an empty parameter set: it reports `SKIPPED [1] got empty parameter set` and exits 0. Verified directly with a throwaway repro against this venv rather than taken on the reviewer's word. The line therefore could not catch the one failure it named — a stale glob turning the check into a silent green skip — and **D-F1-4's written justification for the glob was false as a result**. The sibling assertion in the *non*-parametrized test is reachable and does the job for real, so the fix is a deletion, not an addition: the dead assert goes, the third copy of the same check inside `_CLOSURE_SCRIPT` goes with it (its only caller is already gated by the reachable one), and the surviving guard now carries a comment explaining why it cannot live in the parametrized sibling. Mutation-checked: with the glob pointed at a non-matching pattern the module reports **1 failed, 1 skipped** — loud, which is the whole point.+- **Kept the glob, against the reviewer's preferred fix.** Replacing it with a two-item literal would retire all three vacuity checks at once, which is true and tempting. But the glob is the only thing that covers a third taxonomy family on the day it lands, and this invariant is invisible to every other gate in the repo (D-F1-4) — a new mapping module silently outside the check is a worse failure than one reachable assertion is a cost. One reachable guard, one line of cost.+- **Duplicated closure machinery with `test_runtime_layer_import_closure.py`: judged, not drifted.** The reviewer is right that this branch's M1/M2 rounds were about killing near-duplicate guard mechanics, so it deserved a ruling rather than silence. Ruling: **keep them separate.** After the deletions above the shared surface is a ten-line script, a timeout constant and one `subprocess.run` — and the two guards must be able to diverge (the closure test's detector is parameterized by interpreter packages passed as argv and carries a dirty-control entry point; this one has a fixed prefix and no entry-point list). Extracting a helper would couple them to save less than it costs.+- **Stale grant rationale fixed** — `input_fidelity_literal` still read *"Derives the OpenAI fidelity literal"* after the de-vendoring rename D-F1-2 motivated. Re-recorded through `make sgr` so the registry stays machine-written and sorted.+- **Stale tense in this file fixed** — the re-sort was still described as pending future work inside the very range that landed it.-#### The plan's premise was wrong: `core/` is two layers+**An overclaim I caught while verifying one of the reviewer's "cleared" items, and it is the M2 shape again.** My own docstring, changelog entry and `hub-layering.md` bullet all said the GPT Image family is "served by three different SDKs (OpenAI, Azure REST, the Pipelex gateway)". The shipped decks prove **two** — `openai.toml` and `azure_openai.toml` are the only ones declaring a `gpt_image_*` taxonomy. The gateway *worker* is genuinely written for these models (it routes through the same args factory and carries the OpenAI `/images/generations` → `/images/edits` split), but its catalog is fetched remotely, so no shipped config settles it. The two proven adapters already defeat "file it in the OpenAI adapter", so the argument never needed the third. Reworded in all three places to what the config proves. ⚠ The reviewer had marked this claim *checked and accurate*; a reviewer confirming a claim is not the same as the claim being verifiable from the tree.-Phase 4 assumed all of `pipelex/core/` could join the low layer once five straddlers were converted. Measurement said otherwise, and the correction is the main finding of this checkpoint.+**One finding confirmed against the code and rejected:** the `"not supported by OpenAI image model '<name>'"` error strings. They name the *model the user chose*, which is an OpenAI model whichever SDK routes to it — Azure and the gateway serve OpenAI's models, they do not make them theirs. The module docstring's neutrality claim is about the *mapping*, not the model, so the two do not contradict. Rewriting them would churn several test `match=` patterns to make the messages less accurate.-Beyond the five hub straddlers, **seven `core/` modules import the interpreter *directly*** — no hub involved, so no amount of dependency injection touches them:+**Fixed alongside, in its own commit** — `subject_grants.toml` had stopped being sorted by key, which its own documentation calls an invariant (`docs/contribute/keyword-only-arguments.md:37`: *"machine-written and sorted by key, so diffs stay stable and merge conflicts resolve trivially"*). Measured 11 out-of-order pairs; F1 contributed 2 of them and **M1 and M2 the rest** — a bulk path rewrite re-paths a grant key without moving its block, and `check-keyword-only` does not gate order, so the invariant broke silently and stayed broken across three commits. Kept out of F1's diff as branch debt rather than F1 debt: it is `bc22ba934`, a pure reordering (304 insertions against 304 deletions, with the key set, every `param` and every `rationale` asserted unchanged before writing).-| module | pulls | why it is irreducible |-| --- | --- | --- |-| `core/registry_models.py` | every pipe + factory | it *is* the registry of pipe kinds |-| `core/bundles/pipelex_bundle_blueprint.py` | 12 pipe blueprints | a discriminated union over every pipe kind |-| `core/interpreter/bundle_elaborator.py` | 4 pipe blueprints | it is the interpreter |-| `core/pipes/pipe_abstract.py` | `libraries.library_crate`, `pipe_signature.exceptions` | the base class every pipe extends |+#### Third review round — `/review`, done 2026-07-28-Measured: `pipelex.core.pipes.pipe_abstract` alone loads **30** interpreter modules while importing no hub at all. So the honest boundary is not `pipelex.core` — it is **"if it names a `Pipe`, it is high."**+Run against `origin/refactor/Modularity-3` (the F1-only diff), after the two agent rounds above. **No correctness defect.** The move is complete and the consumer set closes: enumerating every pre-move reference to the two classes and their six type aliases at the base yields exactly the sites F1 touched, with no survivor anywhere in the tree outside `CHANGELOG.md` / `TODOS.md` / `wip/`. The `omit` → `None` equivalence re-verified independently (`Omit`/`omit` now appear nowhere in `pipelex/`; the only reader of the `moderation` key is `openai_img_gen_worker.py:78`, which pops it). The neutrality property re-measured in a fresh interpreter: **0** `pipelex.providers` modules and **0** vendor-SDK roots in the mapping closure. Gates re-run green: `cko`, `agent-check` (ruff / pyright 0 / mypy 0 / cko / chl), `drift-check`, `tb`, full `agent-test`. Codex, given the same scoped diff adversarially, returned **no findings** and reproduced the closure measurement itself.-Louis' call (option A of three): declare core's data-model packages low, leave the Pipe-touching remainder high. Rejected: threading a provider through `PipeFactory.make_from_blueprint` too — that is **337 call sites (332 in tests, ~85 files)** and buys *no* additional closure property, since `pipe_factory` stays interpreter-bound either way.+Five items, none critical. Three fixed mechanically, two ruled by Louis:-#### What landed+- **The corrected three-SDK claim survived in a fourth copy, and it was inside the very test that pins the property.** `test_img_gen_mapping_neutrality.py`'s header said *"GPT Image by the OpenAI, Azure REST and gateway workers"* — the exact wording `fd141d4ed` set out to retire from the docstring, the changelog and `hub-layering.md`. Same matched-set failure as `pipe_signature` in M3 and the four-not-two occurrences in M3's doc sweep: the sweep found the three copies someone had listed, not the copies that exist. Reworded to what the decks prove (re-verified: `openai.toml` and `azure_openai.toml` are still the only two declaring a `gpt_image*` taxonomy).+- **Two subject-grant rationales describe an operand that is not the granted param.** `ImgGenGeminiMapping.img_gen_taxonomy` and `.optional_img_gen_taxonomy` grant `param = "inference_model"` but read *"Operates on the aspect-ratio taxonomy"* — copied from the seven siblings that really do take `taxonomy`. Pre-existing (identical at the base), but this round's own fix list already re-recorded `input_fidelity_literal` for exactly this defect and stopped at one. Re-recorded both through `make sgr`; sort invariant re-asserted over all keys.+- **A comprehension variable shadowed the parameter interpolated two lines below it.** `img_gen_gpt_mapping.py:89` built its "supported aspect ratios" list with `for aspect_ratio in …` while `aspect_ratio` is the function's own parameter, used at line 91 in the error message. Correct only because comprehensions carry their own scope — and the sibling builder at line 120 already names it `supported_ratio`. Renamed to match. Pre-existing, moved unchanged.+- **`.test_durations` carried 112 orphan entries and `test_parser.py`'s 54 tests had none — M1 debt, fixed here in its own commit.** The ground rules call `.test_durations` a non-exclusion precisely because a test move invalidates its node ids, but M1's rewrite re-pathed *directories* and missed *basename renames*: `test_interpreter.py` → `test_parser.py` (52 entries), `test_interpreter_preliminary_text.py` → `test_parser_preliminary_text.py`, plus the renderer moves into `pipe_machinery/rendering/`, `test_job_metadata_request_id.py` into `system/`, and `test_hub_class_registry.py` → `test_class_registry_scoping.py`. Nothing gated it: the file is generated, pytest-split silently treats an unknown node id as average duration, so the only symptom was CI shard imbalance. Reconciled against a full unfiltered `--collect-only` (`-m ""` — the marker filter in `addopts` hides ~312 items and would have "orphaned" every `e2e` entry), matching each dead id to a live one by its `Class::test` tail: **125 remapped, 0 ambiguous, 0 dropped.** The two surviving dead ids are `pipe_img_gen` parametrizations keyed on the generated model-set fixture, so they are profile-dependent rather than orphaned, and were left alone. ⚠ **This is a third instance of the same shape** (`subject_grants.toml` order, the matched triple, now durations): a *generated or bookkeeping* file that no gate validates, broken by a bulk rewrite, invisible until someone measures it.+- **The test module that still named the vendor is renamed.** `test_img_gen_args_openai_sizes.py` / `TestImgGenArgsOpenAISizes` → `test_img_gen_args_gpt_sizes.py` / `TestImgGenArgsGptSizes`. It exercises `AspectRatioTaxonomy.GPT_IMAGE_2` / `GPT_IMAGE_LEGACY` and patches `pipelex.cogt.img_gen.img_gen_gpt_mapping.log`, so it was the last "OpenAI" that D-F1-2 should have taken. (`test_safety_openai_moderation_mapping` keeps its name — `SafetyCheckerTaxonomy.OPENAI_MODERATION` is a real enum member.) Its 13 durations entries were re-pathed in the same reconciliation.-**Two read-side contracts, new in `core/`:**+**One gap recorded, deliberately not closed** — see [Follow-ups from the review](#follow-ups-from-the-review): the neutrality guard is weaker than its comment claims in two ways. The AST check reads only the mapping modules' *own* import statements and the closure check counts only `pipelex.providers`, so a vendor SDK reached **transitively** through another `pipelex.cogt` module passes both. Unexercised today — measured **zero** vendor-SDK imports anywhere in `pipelex/` outside `providers/`, which is the stronger invariant and is itself unguarded. And `_MAPPING_DIR.glob("img_gen_*_mapping.py")` is non-recursive and name-keyed, so *"a third taxonomy family is covered the day it lands"* holds only for a family landing in that exact directory under that exact suffix. Both are cheap to close and neither is worth the machinery F1 exists to avoid; recorded so the claim is not mistaken for a proof.-- `ConceptProviderAbstract` (`core/concepts/concept_provider_abstract.py`) — `get_required_concept`, `get_native_concept`, `get_required_concept_from_concept_ref_or_code`, `is_compatible`.-- ~~`PipeProviderAbstract` (`core/pipes/pipe_provider_abstract.py`) — `get_required_pipe`.~~ **Deleted at [Checkpoint A](#checkpoint-a-record--pr-1062-review-follow-ups) (A5)**: it had zero consumers and its docstring described the opposite of what the code does. `get_required_pipe` is back on `PipeLibraryAbstract`.+----`ConceptLibraryAbstract` now **extends** the provider abstract, keeping add/remove/list/setup/teardown high. The split is the point: core depends on resolution, never on a library lifecycle. Both abstracts already named only `core` types, so this was an inverted dependency waiting to be undone.+## Phase 5 — close out-**Injected, not looked up.** `StuffFactory.{make_stuff_from_stuff_content_or_data, make_from_blueprint, make_from_concept_ref}`, `InputShaper.{shape, resolve_input_kind}`, `WorkingMemoryFactory.make_from_pipeline_inputs`, `InputStuffSpecsFactory.{make_from_blueprint, make_from_string}`, `StuffSpecFactory.make_from_blueprint` all take a required `concept_provider`. Injection happens in the high half: `pipe_factory`, `input_renderer`, `output_renderer` call the hub themselves and hand the result down, as does `pipeline/execution_seams.py`.+- [x] **One PR is open — [#1067](https://github.com/Pipelex/pipelex/pull/1067), based on `refactor/Hub-2` rather than `dev`.** [Gating](#gating) said no track may open against `dev` until #1064 lands, or the diff carries #1064's changes. Stacking on the base branch satisfies that without waiting: the diff is the modularity work only, and GitHub retargets the PR to `dev` automatically when #1064 merges. **Still verify the retarget happened** once #1064 lands — an auto-retarget is not a merge, and the base must read `dev` before this one goes in.+- [ ] Write the **cross-repo sweep handoff** into `wip/refactoring/` — the sweep is release-gated and shared with the hub split, the Phase 3 type moves, and the `interpreter_plugins` relocation. It must land as **one breaking wave**, not four. Known external hits:-**One import was simply wrong**: `stuff_factory.py` imported `ConceptLibraryConceptNotFoundError` from `libraries.concept.concept_library` — a re-export path. The class already lived in `core/concepts/exceptions.py`. A one-line fix deleted a whole interpreter edge.+ **Re-measured 2026-07-27 across every repo in the workspace.** The previous table was materially incomplete — it named one repo; there are eight. It also called `pipelex-temporal` "private and unchecked" when it is checked out at the workspace root and carries the most hits of any consumer.-**Two placement fixes** (the H-3 pattern again):+ | repo | hits | what |+ | --- | --- | --- |+ | `pipelex-temporal` | **13** | `PipelexInterpreter` (class, 3 files) · `PipeAbstract` · `PipeFactory` · `PipelexInterpreterError` in a comment |+ | `pipelex-api` | 5 | `PipelexBundleBlueprint` · `PipeAbstract` · `PipelexBundleBlueprintValidationErrorData` |+ | `pipelex-transport` | 3 | `PipeAbstract` (`primitives/pipe_classification.py` + 2 tests) — **was missing from the table entirely** |+ | `mthds-starter-js` | 2 | `"PipelexInterpreterError"` — **wire string**, `src/lib/errors.ts:176` + test |+ | `pipelex-starter-js` | 2 | `"PipelexInterpreterError"` — **wire string**, `src/lib/errors.ts:257` + test |+ | `conformance` | 1 | `ALLOWED_SURFACE` pin — **handled at CHECKPOINT M1, not here** |+ | `vscode-pipelex` | 1 | `error_type: 'PipelexInterpreterError'` — **wire string** |+ | `playroom` | 1 | `message.includes("PipelexInterpreterError")` — **wire string** |-- `codegen/resolved_fields.py` → `core/concepts/resolved_fields.py`. It names nothing outside `pipelex.core`, yet put `pipelex.codegen` into the closure of every core module reaching structure generation.-- `core/pipes/inputs/input_renderer.py` + `core/pipes/output/output_renderer.py` → **`core/pipes/rendering/`**. Both render a `PipeAbstract`, so both are high; leaving `input_renderer` beside the low input-spec modules would have forced the low-layer declaration to enumerate *modules* instead of packages. `core/pipes/output/` is gone. Tests mirrored to `tests/unit/pipelex/core/pipes/rendering/`.+ **The four wire-string consumers are the dangerous ones**: they branch on the error class name as an `error_type` value, so the rename does not break their build — they silently fall through to a generic error branch. No Python grep or type checker finds them.-#### Measured after+ Verified clean for the M1 module set: `pipelex-cookbook`, `cocode`, `pipelex-mistralai-workflows`, `pipelex-worker`, `pipelex-starter-python`, `pipelex-relay`, `sandbox`, `pipelex-daytona-sandbox` (it imports `pipelex.plugins.contract` / `registrar`, which do not move). **M2 and F1 contribute nothing to this sweep** — zero external consumers import `pipelex.plugins.<vendor>`, and zero import either img-gen mapping under any name (re-measured across every repo at F1 time; the only hit anywhere is the released `pipelex/` checkout itself). No kajson-registered class moves, so serialized payloads are untouched.-| | baseline | H-1 | H-3 | H-4 | **Checkpoint A** |-| --- | --- | --- | --- | --- | --- |-| interpreter modules loaded by `cogt.content_generation.content_generator` | 50 | 0 | 0 | 0 | **0** ✅ |-| pipelex modules loaded | 357 | 275 | 268 † | 268 † | **269** |-| SLOC loaded | 29,193 | 21,186 | 20,304 † | 20,304 † | **20,299** |+- [ ] **Fix the workspace repo table first.** `pipelex-transport` and `pipelex-daytona-sandbox` are real consumer repos missing from the workspace-root `CLAUDE.md` table — which is the table every cross-repo sweep is built from, and the reason `pipelex-transport` was missed here. Add both (and audit for others) before the sweep runs.+- [ ] Archive this tracker to `wip/refactoring/` when the track completes (repo convention — see how `wip/hub/hub-split-tracker.md` was handled).+- [ ] Update the memory entry `project_modularity_refactors.md`.-† The H-3 / H-4 module and SLOC cells were recorded from a stale run — the same tree measures **269 / 20,305**, confirmed by re-reading every closure module at both revisions. The Checkpoint A column is a fresh measurement after the [Phase A follow-ups](#checkpoint-a-record--pr-1062-review-follow-ups); the 6-SLOC drop is those edits (chiefly A3's deletion in `runtime_hub.py`, which is itself in the closure), not a module leaving it. Baseline and H-1 reproduce to the digit.+----The inference-layer numbers are unchanged by design — Phase 4 widened *which* modules are guaranteed clean, it did not touch `cogt`'s own weight. The new numbers are the six core entry points, each measured at **0 interpreter modules and no `pipelex.interpreter_hub`**, up from 50 each before this phase:+## Review fan-out protocol-| entry point | interpreter modules before → after |-| --- | --- |-| `core.stuffs.stuff_factory` | 50 → **0** |-| `core.memory.input_shaper` | 50 → **0** |-| `core.memory.working_memory_factory` | 50 → **0** |-| `core.pipes.stuff_spec.stuff_spec_factory` | 50 → **0** |-| `core.pipes.inputs.input_stuff_specs_factory` | 50 → **0** |-| `core.concepts.structure_generation.generator` | 2 → **0** |+At every checkpoint, spawn the reviews **in parallel, in one message**, each as a **fresh sub-agent with no inherited context**. Hand each one *only* a pointer to the changes — never this plan, never the design doc, never the rationale, never your own conclusions. A reviewer that has read the justification cannot independently find the flaw in it.-#### Housekeeping done at H-4+Prompt template (fill the bracketed parts, change nothing else):-- **Grants**: 4 new (the provider-abstract getters), recorded **before** any check ran; 6 migrated with `resolved_fields`; 15 migrated with the two renderers; **4 deleted as dead** (`ConceptLibraryAbstract.get_{native_concept,required_concept,required_concept_from_concept_ref_or_code}`, `PipeLibraryAbstract.get_required_pipe`) — those defs moved to the provider abstracts, and staleness is symmetric so `make cko` hard-failed until the registry was cleaned.-- **Test call sites**: 74 across 12 files gained `concept_provider=get_concept_library()`, applied by an AST-driven fixer keyed off pyright's own `Argument missing` report so no unrelated `make_from_blueprint` was touched. ⚠ The first pass mangled 3 files: for a multi-line call the closing-paren line is whitespace-only, so a "does the preceding text end in a comma?" check must look back **across newlines**, not within the line. Reverted and redone.-- **Docs**: `docs/contribute/hub-layering.md` gained a "Where core splits" section (the two halves, the `if it names a Pipe, it is high` rule, and the injected-provider pattern), two new "Placement, not coupling" entries, a corrected low-layer list under Enforcement, and a rewritten `core/` bullet under Known inversions. `docs/under-the-hood/architecture-overview.md` gained a paragraph on core straddling the line. `docs/under-the-hood/codegen-projections.md` updated for the `resolved_fields` move.-- **CHANGELOG**: the breaking-change note that had been deferred since H-1 is now written under `[Unreleased]`, covering all four phases — the `pipelex.hub` split, the moved types, and the injected providers.--#### Still open--- **The cross-repo sweep is still untouched and release-gated.** It now has a **third** wave on top of the `pipelex.hub` split and the Phase 3 type moves — see [Cross-repo impact added by Phase 4](#cross-repo-impact-added-by-phase-4).-- ~~**The `hub-layering-convention` drift contract decision is still Louis'**~~ — **resolved: approved and landed** after the rename. See [Proposed, reverted, then landed](#proposed-reverted-then-landed).-- A plausible sequel, now much cheaper to argue for than at H-2: a general layering ratchet. The remaining measured inversions are in [Known inversions](#known-inversions-not-fixed-here).+> Run the `/code-review` skill on the following changes in the repo at `/Users/lchoquel/repos/Pipelex/_hub`:+> `[git diff <base>..<sha>` — or the list of unstaged files]+>+> Focus dimension: **[dimension]**.+>+> We want clean, solid software — not over-engineering. Report concrete defects with file:line, and say plainly if you find none. Do not propose speculative features or abstractions.-#### Cross-repo impact added by Phase 4+Dimensions to draw from:-| old | new |+| dimension | what the reviewer is asked to hunt || --- | --- |-| `pipelex.codegen.resolved_fields` | `pipelex.core.concepts.resolved_fields` |-| `pipelex.core.pipes.inputs.input_renderer` | `pipelex.core.pipes.rendering.input_renderer` |-| `pipelex.core.pipes.output.output_renderer` | `pipelex.core.pipes.rendering.output_renderer` |--Plus the signature changes: any external caller of `StuffFactory.make_stuff_from_stuff_content_or_data`, `WorkingMemoryFactory.make_from_pipeline_inputs`, `InputShaper.shape`, `InputStuffSpecsFactory.make_from_*` or `StuffSpecFactory.make_from_blueprint` must now pass `concept_provider=get_concept_library()`. Do all three waves in one pass per repo.--### Checkpoint A record — PR #1062 review follow-ups--Phase A of [`wip/hub/pr-1062-review-followups.md`](wip/hub/pr-1062-review-followups.md) is applied: A1's doc-honesty fix plus A2–A8. Per **D-R4** the [F1](wip/hub/pr-1062-review-followups.md#f1--the-layer-rule-is-only-enforced-one-hop-deep) *remedy* is deliberately **not** here — it is its own PR after #1062 merges — so this checkpoint makes the shipped documentation true about a defect that still exists, rather than fixing the defect.+| `correctness-and-imports` | broken/circular imports, a moved symbol whose importers were missed, a rewrite that hit the wrong module (`plugins.secrets` vs `secrets_provider_registry`), test files left behind their source |+| `correctness-and-boot` | behavior change hiding in a mechanical move; boot-sequence registration correct and complete |+| `boundary-and-naming` | does the new package boundary actually hold, or did the move just relabel the problem? are the names right for what is inside them? |+| `over-engineering` | anything introduced that is not load-bearing: speculative abstraction, indirection with one caller, a guard entry that guards nothing, machinery kept alive after its reason expired |+| `test-and-docs-sync` | guard config / closure-test predicate / design-doc snippet in agreement; docs describing the old tree; a check that now passes vacuously |-#### What landed+**Reading the verdicts:** treat a finding as a real defect only after you confirm it against the code. Reviewers with no context will sometimes flag an intentional ruling from the [Decisions](#decisions) table as a bug — that is expected and is not a reason to reverse the ruling; note it and move on. Design tradeoffs that are not silent bugs get captured as deferred follow-ups in `wip/refactoring/`, not reflexively fixed.-- **A1 — the scope claim is corrected.** `docs/contribute/hub-layering.md`'s "Every declared package is compliant" now says what it means: the declaration is compliant *with the direct-import rule*, which the guard does not follow transitively. Known inversions carries the measurement (the four `pipelex.plugins` modules, their interpreter-module counts, and which two are leaves versus aggregators), states plainly that the headline property is unaffected, and describes the decided fix. Re-measured on the working tree before publishing: 57 / 67 / 67 / 58, reproducing the review exactly.-- **A2 — `pipelex.runtime_hub` joined `RUNTIME_LAYER_PACKAGES`.** The module at the centre of the rule was exempt from it, since no tuple entry was a prefix of it. Verified zero-risk both ways: still 0 violations tree-wide, and an `interpreter_hub` import injected into `runtime_hub.py` in memory is caught at the injected line. `is_runtime_layer`'s docstring now records that matching is exact-or-dotted-prefix, so a bare module is a legal entry beside the packages.-- **A3 — write-only `RuntimeHub._class_registry` deleted**, with `set_class_registry`, `get_required_class_registry`, the `pipelex.py` call site and the subject grant. Zero callers here or in any sibling repo. It was the twin of the `_observer` state H-1 deleted for exactly this reason, and a live trap besides: it returned the boot-time global while the module-level `get_class_registry()` returns the library-scoped one, so the two diverged under `scoped_current_library(...)`.-- **A4 — the loop-invariant `get_concept_library()` in `_delighten_template` is hoisted** above the loop.-- **A5 — `PipeProviderAbstract` deleted; `get_required_pipe` is back on `PipeLibraryAbstract`.** The follow-up plan left this a two-way choice (delete, or keep for symmetry and rewrite the docstring). Deleted, because the abstract had zero consumers, bought no closure property (`core.pipes` is not runtime-layer), and its docstring asserted the opposite of the code — it claimed core takes pipe resolution as a parameter, while the only two sites that follow a pipe reference (`core/pipes/rendering/output_renderer.py:51` and `:84`) call `interpreter_hub.get_required_pipe` directly. Symmetry with `ConceptProviderAbstract` is not a reason to ship an unused abstraction. The absence is now documented where it will be questioned — on `PipeLibraryAbstract` and in `hub-layering.md` — so the next reader does not "restore" it.-- **A6 — five accuracy fixes.** `runtime_hub.py`'s docstring stopped forbidding `core.concepts` / `core.pipes` wholesale (`core.concepts` is a *declared runtime-layer package* and sits in `runtime_hub`'s own closure); `pipelex.py`'s boot comment stopped claiming the InterpreterHub install "needs a RuntimeHub already in place" (it stores a lazily-resolved callable and needs nothing); the CHANGELOG names the exact templating modules, since `pipelex.tools.templating.__init__` is 0 bytes and the path it printed raised `ImportError` for the external consumers who read that file; and the low/high vocabulary survivors are swept — **four**, not the two the review found (`concept_library_abstract.py` and `pipe_library_abstract.py` carried "stays here, high" too).-- **A7 — `make generate-error-pages` re-run.** `job-metadata-error.md` had followed neither of Phase 3's moves; it now reports `pipelex.system.exceptions`, and the generator also re-filed its index entry from "execution and runtime" to "platform and tooling", which is the subsystem grouping following the class.-- **A8 — the class-registry leaf-import rule is restated.** It said "import the leaf only from inside `runtime_hub`'s import closure", which is false for two of the three in-tree importers (verified: `concept.py` is inside, `concept_factory.py` and `structure_generation/generator.py` are not). The real criterion is a module that must stay import-light *with respect to* `runtime_hub`. As written, the rule invited someone to "fix" `concept_factory.py` into re-coupling `core.concepts` to the whole cogt/plugin stack — and neither gate would have noticed, because the closure test measures interpreter modules, not weight.-- **Batched in:** the published doc's pointer to `wip/pr-1062-review-notes.md` is folded into an in-place sentence. `wip/` is outside `docs_dir`, so it was unreachable for a reader on docs.pipelex.com and would dangle once the file is archived.+----#### The measurement+## Decisions-Re-taken here rather than copied — see the [H-4 table](#measured-after-1) for the full row and the stale-recording footnote. The closure is **269 modules / 20,299 SLOC / 0 interpreter modules**. The 6-SLOC drop against the pre-Phase-A tree is A3's deletion in `runtime_hub.py` (itself in the closure), confirmed by re-reading every closure module at both revisions; no module left the closure.+Inherited from the design doc (already ruled — do not re-litigate):-#### Not in this checkpoint+| id | ruling |+| --- | --- |+| **D-M1-1** | Pipe manifest → `pipelex/pipe_machinery/registry_models.py` as `PipeRegistryModels`; M3 creates the package, M1 fills it |+| **D-M1-3** | `core/interpreter/` + `core/bundles/` → `pipelex/mthds_parsing/`; `PipelexInterpreter` → `MthdsParser` |+| **D-M2-1** | Vendors → `pipelex/providers/`, flat, no capability nesting |-- **The F1 remedy** — (d) split the built-ins by layer + (c) teach the guard the transitive check. Its own PR after #1062 merges, per D-R4. Until it lands, Known inversions is the record that keeps the breach visible.-- **[Phase C](wip/hub/pr-1062-review-followups.md#phase-c--release-wave-additions)** — folded into the release-gated cross-repo sweep per D-R1. It adds a governed `docs/specs/` + `conformance/` surface and five consumer repos the [sweep tables](#cross-repo-sweep) below are missing, including `pipelex-transport`, whose `bridge.py` calls a changed signature in production code.+Ruled during the **2026-07-27 review**:-[Phase B](#checkpoint-b-record--test-hardening) followed immediately and is now applied too.+| id | ruling | why |+| --- | --- | --- |+| **D-M1-2** | ~~`pipe_blueprint.py` is runtime and stays in `core/`~~ → **REVERSED. It is interpreter-layer and moves**, along with `validation.py`, `template_guard_lint.py` and `handle_pipe_errors.py` | The measurement snippet counts **outbound** edges, which answers "is X a leaf?" not "which layer owns X?". The layer question is **inbound**: zero declared runtime-layer modules import any of these four. Runtime does not know about pipes |+| **D-M1-4** | **Rename** `PipelexInterpreterError` → `MthdsParserError`, add the `redirect_maps` entry, and carry **five** repos into the sweep | The premise "no external consumer imports `PipelexInterpreter`" was false; four TS repos consume it as an `error_type` **wire string**, which the redirect does not help |+| **D-M1-5** | **Delete** `INTERPRETER_CORE` / `INTERPRETER_CORE_EXCLUDED` and their `is_interpreter` branches | Correct *because* D-M1-2 was reversed. Under the original ruling this would have silently relaxed the one entry `hub-layering.md:220` calls load-bearing |+| **D-M1-6** | **Add** `"pipe_signature"` to `INTERPRETER_PACKAGES` | Verified against all five runtime entry points: zero `pipe_signature` modules loaded. Safe, no pre-existing leak, and independent of the moves |+| **D-M2-2** | The four `cogt` config imports: accepted + documented (unchanged). The factory imports: **two**, not three, fixed by a **neutral `cogt/img_gen/` mapping module** — **no registry** | VertexAI is being removed so its edge self-resolves. The registry cannot dispatch these: `make_args_for_model` takes no sdk, dispatch is by `AspectRatioTaxonomy`, and gateway is one SDK spanning both taxonomies. A registry slot would also force a plugin-API bump for two import sites |+| **D-M1-7** | **M1 stacks on M3** (PR → M3, retargeted to `dev` on merge). M2 lands after M1 and re-acks drift post-rebase | The plan asserted both "M3 → M1" and "each track branches from #1064 against `dev`"; M1 cannot be both. M1/M2 share three files, so they are not operationally parallel |+| **D-M2-3** | **M2 is not release-gated** and comes out of the sweep table | Measured: zero external consumers import `pipelex.plugins.<vendor>` |+| **D-M1-8** | **`PipelexBundleBlueprintValidationErrorData` moved to `pipelex.core.exceptions`**, not into `mthds_parsing/` with the parser that raises it | Ruled during M1a under the authority M1c's plan granted ("if the closure test *does* fail on it, move the data class to a runtime-layer home instead"). It does fail: `core.memory.working_memory_factory` reaches it, and the closure test's `INTERPRETER_CORE_EXCLUDED` existed for exactly that. `core/exceptions.py` already holds the two sibling structured error-data models keyed on the same `PipeValidationErrorType`. Moving the leaf is what let the exclusion be deleted outright rather than carried forward |+| **D-M2-4** | **M2 is stacked on M1 on one branch**, not a parallel branch off #1064 rebased afterwards | The plan's own [Gating](#gating) already prescribed the landing order M3 → M1 → M2 and warned that the three shared files make them non-parallel. Stacking satisfies the order, removes the conflict, and removes the mandatory post-rebase drift re-ack — the ack recorded at CHECKPOINT M2 is against the final tree rather than a tree that will move |+| **D-R-1** | **No third layer** between runtime and interpreter | A layer encodes a forbidden arrow; there is only one (`runtime_hub ↛ interpreter_hub`). The shared kernel a third layer would hold already exists as `core/`'s value model, which both layers use. The pipe vocabulary fails the entry test — only the interpreter needs it |+| **D-F1-1** | **Two mapping modules, not one.** `cogt/img_gen/img_gen_gemini_mapping.py` + `cogt/img_gen/img_gen_gpt_mapping.py` | The plan said "a neutral `cogt/img_gen/` mapping module", singular. The two taxonomy families share **zero** code, come to ~500 lines together, and cover disjoint `AspectRatioTaxonomy` members; the repo files one topic per module, and the existing tests were already split per family. Named on the package's own `img_gen_*` prefix convention, with classes `ImgGen<Family>Mapping` to match `ImgGenArgsFactory` / `ImgGenParamSupport` |+| **D-F1-2** | **Rename the classes and the vendor-suffixed methods**, rather than carrying `GoogleImgGenFactory` / `OpenAIImgGenFactory` into `cogt/` | Two things were wrong in the new home, and both are the defect this track keeps finding — a name that describes where the code used to live. (a) The **vendor** is not what the mapping is keyed by: dispatch is by model *family*, and the gateway resolves Gemini geometry through a Portkey SDK, so "Google" names a party that is not always involved. (b) "Factory" contradicts the repo's own convention (`make_from_*`); these are lookup tables and validators. Renames measured in-tree only: **zero** consumers in any sibling repo |+| **D-F1-3** | **`moderation_literal` returns `None` instead of the OpenAI `omit` sentinel** | Load-bearing for the move, not a drive-by simplification: `Omit`/`omit` come from `from openai import …`, so keeping the sentinel would have put a hard vendor-SDK import in the neutral layer — exactly what F1 exists to remove. Verified equivalent rather than assumed: the sole caller already collapsed the non-`str` case to "emit no key" (`img_gen_args_factory.make_args_from_safety_checker`), and `openai_img_gen_worker.py:78` only ever pops a `str`. The emitted API arguments are identical on every path |+| **D-F1-4** | **Add a neutrality test** (`tests/unit/pipelex/cogt/img_gen/test_img_gen_mapping_neutrality.py`) | Nothing in the repo can catch a regression here. `pipelex.cogt` and `pipelex.providers` are **both** runtime-layer, so the hub-layering guard and the import-closure test are blind to an edge between them *by construction* — the property F1 buys would otherwise be unguarded from the moment it landed, which is the shape of the M2 finding Codex #5 caught. Two complementary checks because the coupling has two routes back: an AST read of the modules' own imports (catches a fresh `from openai import omit`) and a subprocess closure measurement (catches a `pipelex.cogt.*` import that drags an adapter in behind it). The module list is globbed from disk so a third family is covered the day it lands. ⚠ **The first version guarded that glob in the wrong place** — see the [review round](#review-round--done-2026-07-28-fixes-applied-1) |++---++## Measurements++Baseline, measured **2026-07-27** on `bc30149c7` (venv-synced, subprocess per module — see the design doc's snippet).++Core modules loading > 0 interpreter modules (`interp_mods`, `pulls interpreter_hub`):++| module | interp_mods | hub | moved by |+| --- | --- | --- | --- |+| `core.registry_models` | 97 | yes | M3 |+| `core.pipes.pipe_factory` | 51 | yes | M1b |+| `core.pipes.rendering.input_renderer` | 51 | yes | M1b |+| `core.pipes.rendering.output_renderer` | 51 | yes | M1b |+| `core.pipes.pipe_abstract` | 33 | no | M1b |+| `core.bundles.pipe_sorter` | 30 | no | M1a |+| `core.bundles.pipelex_bundle_blueprint` | 30 | no | M1a |+| `core.interpreter.bundle_elaborator` | 30 | no | M1a |+| `core.interpreter.interpreter` | 30 | no | M1a |-### Checkpoint B record — test hardening+Measured **0** outbound and therefore worth restating: `core.pipes.pipe_blueprint` (**moves anyway — D-M1-2 reversed**, see the inbound test below), and the four leaf modules that move for cohesion — `core.bundles.exceptions`, `core.interpreter.exceptions`, `core.interpreter.helpers`, `core.interpreter.validation_error_categorizer`.-Gates: `make agent-check` ✅ (pyright 0 errors, mypy 2,358 files, keyword-only PASSED, hub-layering PASSED) · full `make agent-test` ✅ · `make drift-check` ✅ (one contract re-opened, reviewed and acked — see below).+### The inbound test — added 2026-07-27, and it is the one that decides layer-Phase B of [`wip/hub/pr-1062-review-followups.md`](wip/hub/pr-1062-review-followups.md) is applied in full: B1–B7. Three new test modules, three hardened ones, one guard fix.+The classification snippet above counts **outbound** edges. That tells you whether a module is a *leaf*, not which layer owns it. A module can import nothing and still be exclusively interpreter business. The layer question is **who needs this** — measured against the *declared* runtime-layer packages:-**Every item was verified by mutation.** Watching a new test go green proves nothing about what it pins, and two of these items exist precisely because an existing test *appeared* to pin something it did not. So for each one the pinned behavior was removed, the new test confirmed to fail, and the mutation reverted. What that turned up is worth keeping:+```bash+RUNTIME='pipelex/(cogt|plugins|reporting|system|tools|runtime_hub|core/(concepts|domains|memory|stuffs)|core/pipes/(inputs|stuff_spec))'+for m in pipe_blueprint pipe_output validation variable_multiplicity template_guard_lint handle_pipe_errors exceptions; do+ n=$(grep -rln "core\.pipes\.$m\b" pipelex/ --include="*.py" | grep -cE "$RUNTIME")+ printf "core.pipes.%-24s %s\n" "$m" "$n"+done+```-- **B1's mutation is the finding, restated as a fact.** Deleting `class_registry_scoping.reset()` from `Pipelex.teardown` fails the new test and *only* it — the three other tests in the module, including the pre-existing one that calls `reset()` directly under a `# what Pipelex.teardown does` comment, stay green. That comment was the whole safety net. The simulation test is kept, because it does pin `reset()`'s own semantics; its comment now says so instead of overclaiming.-- **B2 needed a stronger assertion than the plan specified.** The plan said to assert `returncode == 1` on a known-dirty entry point. That would **not** have worked: the closure script's *second* check (`pipelex.interpreter_hub in sys.modules`) exits 1 for `pipelex.interpreter_hub` whatever the offender predicate does, so the control would have passed over a completely broken detector. The test asserts the offender *message* too. Confirmed by mutation: typo-ing `INTERPRETER_PACKAGES` and emptying `INTERPRETER_CORE` fails the control while all eight real entry points pass vacuously — the exact failure mode the item was written against.-- **B5's mutation reproduces the regression the finding describes.** Making `resolve_input_kind` accept `concept_provider` and then call `get_concept_library()` anyway fails the new test alone, with the other 69 `input_shaper` tests green. Before it, that regression failed nothing anywhere.-- **B3 and B4** fail 4-of-6 and 2-of-5 respectively when their gates are removed (`sys.exit(1)` deleted from both command paths; the `__pycache__` skip dropped from `iter_source_files`).-- **B6 is a fix, not just a test.** `_is_type_checking_test` matched `ast.Attribute(attr=...)` with an unconstrained receiver, so `settings.TYPE_CHECKING:` — an ordinary runtime condition — claimed the layer-rule exemption. Tightened to require the receiver to be `typing`. Verified safe before tightening: nothing in `pipelex/` or `tests/` uses the attributed form at all, so there was no alias (`import typing as t`) to break.+Result on `89ae4950b`: `pipe_output` 4 · `variable_multiplicity` 5 · `exceptions` 1 → **runtime, stay**. `pipe_blueprint` 0 · `validation` 0 · `template_guard_lint` 0 · `handle_pipe_errors` 0 → **interpreter, move**.-**B6 re-opened the `hub-layering-convention` drift contract**, which the plan had said Phase B would not do — `hub_layering_guard.py` is one of its triggers. Reviewed and acked. Both prescribed mechanical checks were re-run (33 + 32 public module-level hub symbols all present in the partition tables; all 12 declared runtime-layer entries named under Enforcement), and `docs/contribute/hub-layering.md` gained the receiver constraint on its `TYPE_CHECKING` bullet.+The control matters: `pipe_output` and `variable_multiplicity` score non-zero, so the test discriminates rather than flagging everything. ⚠ It measures against *declared* runtime packages; `pipeline/` and `pipe_run/` are undeclared straddlers, so re-verify any move against the closure test.-**One observation from that ack is worth carrying forward.** The read-through caught staleness the contract's triggers structurally cannot see: B1/B2/B7 changed the two test modules the doc has sections on, and neither test file is a trigger — deliberately, per the contract's initial scoping. So the contract fired on the guard, and the review found the spillover. That is not an argument for widening the triggers (the scoping was Louis' call, and the spillover was caught anyway); it is evidence that a review target's value is bounded by what the reviewer reads, not by what opened the contract. Recorded in `wip/drift-contracts/dogfood-log.md` as this contract's second consecutive `real-catch`.+Other baselines: `cogt → specific vendor` = 7 statements (4 config, 2 img-gen factory, 1 inline `vertexai_factory`). Runtime entry-point closures (`runtime_hub`, `plugins.builtins`, `content_generator`) currently pull in only `pipelex.pipeline` + `pipeline.pipeline_models` from the straddler zone.-**Two things caught in passing, both fixed here:**+### Post-M3, measured 2026-07-27-- **The plan's B2 instruction would not have worked as written** — see the bullet above. Recorded because it generalizes: a negative control that asserts only an exit code is only as strong as the *first* thing that can produce it.-- **Two dead anchor links in `hub-layering.md`**, pre-existing since the page was written and invisible to every gate the branch runs — `make docs-check` reports them as `INFO`, not a failure. The heading is `### The rule — \`make check-hub-layering\``, and Python-Markdown strips the em dash rather than turning it into a second hyphen, so `#the-rule--make-check-hub-layering` never resolved. Confirmed against the built site's real `id`, and confirmed pre-existing by re-running the check with Phase B stashed.+Baseline above re-taken on `95a1e9bf7` before any edit: **identical** to the table — same nine modules, same counts. No drift since `bc30149c7`.-**No CHANGELOG entry.** Phase B adds tests and tightens a `pipelex-dev` guard, and `pipelex/cli/dev_cli` is excluded from both wheel and sdist — nothing here reaches a release consumer.+After M3, with `"pipe_machinery"` added to the snippet's `I` set:-The measurement is untouched by Phase B — no production module changed except the guard, which is dev-CLI-only and outside every closure. The [Checkpoint A column](#measured-after-1) stands.+| module | interp_mods | hub | moved by |+| --- | --- | --- | --- |+| ~~`core.registry_models`~~ | ~~97~~ → **0** | **0** | ✅ M3, done |+| `core.pipes.pipe_factory` | 51 | yes | M1b |+| `core.pipes.rendering.input_renderer` | 51 | yes | M1b |+| `core.pipes.rendering.output_renderer` | 51 | yes | M1b |+| `core.pipes.pipe_abstract` | 33 | no | M1b |+| `core.bundles.pipe_sorter` | 30 | no | M1a |+| `core.bundles.pipelex_bundle_blueprint` | 30 | no | M1a |+| `core.interpreter.bundle_elaborator` | 30 | no | M1a |+| `core.interpreter.interpreter` | 30 | no | M1a |-## Exit criteria — measured, not asserted+Nine → eight. Every other module's count is **unchanged**, which is the expected shape: `registry_models` had exactly one consumer and was on no other module's import path.-The headline property is that the inference layer must stop importing the interpreter. Measure it directly, from the repo root on a synced venv:+Inverted `core → pipe_*` import statements: **43 → 19** — `pipelex_bundle_blueprint` 12 · `bundle_elaborator` 4 · `output_renderer` 2 · `pipe_abstract` 1. All 19 belong to modules M1 hoists, so M1's target of **0** needs no further work in `core/` beyond the moves already planned.-```bash-.venv/bin/python - <<'PY'-import sys-from pathlib import Path--import pipelex.cogt.content_generation.content_generator # noqa: F401--INTERPRETER = {"libraries", "pipe_operators", "pipe_controllers", "codegen", "builder"}-loaded = {name: mod for name, mod in sys.modules.items() if name.startswith("pipelex.")}-interpreter = sorted(n for n in loaded if n.split(".")[1] in INTERPRETER)-sloc = 0-for mod in loaded.values():- file = getattr(mod, "__file__", None)- if file:- sloc += sum(1 for line in Path(file).read_text(encoding="utf-8").splitlines() if line.strip() and not line.strip().startswith("#"))-print(f"pipelex modules: {len(loaded)} | sloc: {sloc} | interpreter modules: {len(interpreter)}")-print("offenders:", interpreter)-PY-```+### Post-M1, measured 2026-07-27 on `10080cf26`-If Phase 1 lands and `interpreter modules` is not 0, the snippet prints the offenders: something imports the interpreter outside the hub, and the shortest import path to it is what to fix. Swap the imported module to measure any other entry point (`pipelex.pipelex`, `pipelex.runtime_hub`, …).+Classification snippet with `I` = the nine interpreter packages: **zero** `pipelex.core.*` modules report a non-zero `interp_mods` or `hub`. The table is empty — M1's headline criterion, reached in two steps (M1a took it 8 → 4 by hoisting the parser, M1b took it 4 → 0 by hoisting the Pipe machinery).-The module/SLOC targets come from importing exactly the types a low-only hub would annotate — 236 modules / 17,683 SLOC with the interpreter subpackages at zero — plus headroom for cogt's own modules.+Inverted `core → pipe_*` import statements: **43 → 19 (M3) → 3 (M1a) → 0**. The 3 that survived M1a were `pipe_abstract`'s one `pipe_signature.exceptions` import and `output_renderer`'s two deferred `pipe_controllers` imports under `TYPE_CHECKING` — both modules M1b moved, so no further work in `core/` was needed.-## Findings in passing+Inbound test, re-derived at move time rather than trusted: everything that moved scored **0** declared runtime-layer importers (`pipe_blueprint`, `validation`, `template_guard_lint`, `handle_pipe_errors`, `pipe_abstract`, `pipe_factory`, `rendering`); everything that stayed scored non-zero (`pipe_output` 4, `variable_multiplicity` 5, `exceptions` 1). The control still discriminates, which is what makes the verdict meaningful.-> **Both are resolved as of H-1** — see [Findings in passing — both resolved, one bigger than recorded](#findings-in-passing--both-resolved-one-bigger-than-recorded). The `_observer` one turned out to be more than dead code: a public doc page documented the inert setter as the supported API.+`core/pipes/` final contents: `inputs/`, `stuff_spec/`, `exceptions.py`, `pipe_output.py`, `variable_multiplicity.py` — exactly the runtime half the plan predicted.-Both surfaced while inventorying the boot sequence. Neither is caused by this refactor; both are in its blast radius, and the repo's flag-and-fix rule applies.+### Post-M2, measured 2026-07-28-- **Duplicate `set_library_manager` in `Pipelex.setup`.** Lines 364–365 and 474–475 are the identical pair `self.library_manager = library_manager or LibraryManager()` + `self.pipelex_hub.set_library_manager(...)`. Nothing between them touches `library_manager` (verified), so when the caller passes no manager the first `LibraryManager()` is constructed, registered, and then silently discarded and replaced by a second instance. Delete the earlier pair — it is dead, and removing it is what makes the low/high boot split clean with no reordering (step 1.5).-- **`_observer` is write-only state.** `PipelexHub.set_observer` is called at `pipelex.py:503`, but there is no `get_observer` on the container and no module-level accessor — the live observer reaches its consumer directly via `PipeRouter(observer=multi_observer)` at line 531. The design doc lists "observer" among the `interpreter_hub` contents; it should be **deleted rather than moved**. Confirm no external consumer sets it before removing (see [Cross-repo sweep](#cross-repo-sweep)).+The move: **17** vendor packages + `builtins.py` from `pipelex/plugins/` to `pipelex/providers/`. **136** files rewritten, **1364** substitutions, of which **191** string literals (predicted 189) and **145** `subject_grants.toml` path keys (12 grants stay, all on mechanism modules).-## Risks and containment+| | before | after |+| --- | --- | --- |+| directories under `pipelex/plugins/` | 17 vendors + mechanism | **0 vendors** — mechanism modules only |+| `RUNTIME_LAYER_PACKAGES` entries | 7 | **8** (`pipelex.providers` added) |+| source files outside `providers/` naming a specific vendor | 3 | **3** (unchanged — the documented `cogt` edges) |+| `pipelex/plugins/` modules naming a vendor | 1 (`builtins.py`) | **0** |-- **Big mechanical diff.** Contained by: the rewrite is scriptable from the partition table; `pipelex.hub` ceasing to exist means a missed site is an import error, not a silent wrong-layer resolution; and full `make agent-test` is the zero-behavior-change bar. The 29 multi-line import blocks are the one place a careless script does real damage — rewrite via `ast`, not regex.-- **Two singletons, two lifecycles, two teardowns.** Contained by the tiny construction surface. Watch `Pipelex.teardown` / `teardown_if_needed` and the fixtures that reset hub state — a half-reset hub between tests is the realistic failure mode, and it surfaces as cross-test pollution rather than a clean failure. Step 1.7 exists for this; make the "both hubs reset" assertion explicit rather than implied.-- **D5's resolver slot is installed at boot, not imported.** If a consumer builds a `RuntimeHub` without ever populating a `InterpreterHub` (the doctor path, some tests), `get_class_registry` must degrade to the unscoped `KajsonManager` registry rather than raise. Default the slot to a function returning `None`, never to an unset attribute.+`INTERPRETER_PACKAGES` is **unchanged** — M2 adds a runtime-layer package, so the matched triple (guard tuple / closure predicate / hub-layering snippet / design-doc snippet) is undisturbed, and the design doc needed no edit. Verified by script rather than assumed: the closure predicate and the doc snippet still name the same set.-## Cross-repo sweep+### Post-F1, measured 2026-07-28-Release-gated follow-up — `pipelex.hub` is imported outside this repo and every one of these breaks the moment the module disappears.+| | before | after |+| --- | --- | --- |+| `cogt → specific vendor` import statements | 7 | **5** — the four `config_cogt.py` config classes (documented, D-M2-2) + the deferred `VertexAIFactory` |+| source files outside `providers/` naming a vendor module | 3 | **2** (`cogt/config_cogt.py`, `cogt/model_backends/backend_factory.py`) |+| third-party packages imported by the img-gen mapping modules | 1 (`openai`) | **0** |+| `pipelex.providers.*` modules in the mapping modules' import closure | — | **0**, measured in a fresh interpreter |-| repo | files importing `pipelex.hub` |-| --- | --- |-| `pipelex-temporal/` (private) | 35 |-| `pipelex-mistralai-workflows/` | 11 |-| `pipelex-api/` | 9 |-| `pipelex-cookbook/` | 2 |-| `cocode/` | 2 |+⚠ The vendor-segment character class matters here too (the M2 trap): `[a-z0-9_]+`, not `[a-z_]*`. The measurement above is the whole verdict for F1 — the rewrite itself was keyed on literal module paths and was never at risk.-Clean (no action): `pipelex-worker/`, `pipelex-starter-python/`, `pipelex-relay/`, `n8n-nodes-pipelex/`, `sandbox/`.+The mutation that proves the closure check discriminates: adding one `pipelex.providers.google.google_factory` import to a mapping module makes it report **10** provider modules, not one — `google_factory` reaches `pipelex.config`, which reaches `config_cogt`, which names the four vendor configs. The documented `cogt → config` inversion is therefore also the shortest path back to full vendor coupling, which is worth knowing before anyone calls it harmless.-Symbols crossing the repo boundary today, which is the surface whose new home is a published contract change:+*(Append post-phase re-measurements here as each checkpoint clears.)*-`clear_current_library`, `get_bundle_validator_registry`, `get_class_registry`, `get_console`, `get_content_generator`, `get_current_library`, `get_current_library_id_or_none`, `get_library_manager`, `get_model_deck`, `get_orchestrator_registry`, `get_pipe_func_executor_registry`, `get_pipe_library`, `get_pipe_router`, `get_pipelex_hub`, `get_report_delegate`, `get_required_concept`, `get_required_pipe`, `get_secret`, `get_storage_provider`, `get_storage_provider_registry`, `is_dry_run_forced`, `scoped_current_library`, `set_current_library`+----Two notes on that list: `get_pipelex_hub` splits into two accessors, so every external site must pick a half; and `set_pipe_router` / `teardown_current_pipe_router` / `scoped_pipe_router` are documented as depended upon by our Mistral Workflows plugin, so their move is a contract change to announce, not just to make.+## Review findings-**Rewrite straight to the final names — there is no intermediate step.** `service_hub` / `method_hub` never shipped, so external repos go directly from `pipelex.hub` to:+`/plan-eng-review`, 2026-07-27, against `89ae4950b`. Eight issues, all ruled. Recorded so the reasoning survives the checkpoint.-| old | new |-| --- | --- |-| `from pipelex.hub import <runtime symbol>` | `from pipelex.runtime_hub import …` — everything in the [`runtime_hub` partition table](#-pipelexruntime_hubpy-runtime-layer) |-| `from pipelex.hub import <interpreter symbol>` | `from pipelex.interpreter_hub import …` — everything in the [`interpreter_hub` partition table](#-pipelexinterpreter_hubpy-interpreter-layer) |-| `get_pipelex_hub` | `get_runtime_hub` **or** `get_interpreter_hub` — pick the container the call site actually meant |-| `PipelexHub` | `RuntimeHub` **or** `InterpreterHub` |+| # | finding | ruling |+| --- | --- | --- |+| 1 | "No external consumer imports `PipelexInterpreter`" was false — 5 repos, and 4 consume it as an `error_type` **wire string** that renaming breaks silently | Rename; carry all 5 into the sweep (D-M1-4) |+| 2 | `conformance/` `ALLOWED_SURFACE` + `docs/specs/` pin `core.pipes.pipe_abstract`; unmentioned by the plan, and `_hub`'s suite cannot catch it | Hard item at CHECKPOINT M1, not sweep work |+| 3 | D-M1-2 classified by **outbound** imports; the inbound test says `pipe_blueprint` + 3 more are interpreter-only | D-M1-2 reversed; all four move; this makes D-M1-5's deletion honest and saves a doc rewrite |+| 4 | M2 has **zero** external blast radius; the "one wave" argument does not cover it | M2 de-gated from the sweep (D-M2-3) |+| 5 | The `hub-layering-convention` drift contract fires in all 3 tracks; only M1c had an ack | Ack steps added to M3 and M2 |+| 6 | The guard test needs a full rewrite, not a one-line fix — and 4 assertions go **vacuously green** between M1b and M1c | Rewrite wholesale in the collapse commit |+| 7 | 189 (M2) + 15 (M1) **string-literal** module references that no import rewrite or type checker sees | Added to ground rule 5, budgeted per track |+| 8 | F1's "dispatch through `inference_backend_registry`" does not typecheck — it is `MakeWorkerFn`-only | F1 re-scoped to 2 imports + a new registry slot (D-M2-2) |-**Phase 3 added a second wave of breakage to the same sweep** — the moved types, not the hub accessors. The per-repo counts and the complete old→new import table are in [Cross-repo impact added by Phase 3](#cross-repo-impact-added-by-phase-3). Do both waves in one pass per repo.+Also settled: **no third layer** is needed (D-R-1).-## Known inversions — not fixed here+### Outside voice — Codex, same day, 15 further findings-Named so the docs stay honest, not scheduled.+Run in-repo at `reasoning_effort=high`, told what the review above had already found. Verdict: *"not implementation-ready."* Eight claims were verified against the tree; all held. All 15 are folded in.-- `plugins/pipe_func/pipe_func_plugin.py` and `plugins/pipe_func_executor_registry.py` import from `pipe_operators/`; `plugins/direct/direct_plugin.py` imports from `pipeline/`. None import the hub, so the guard will not flag them — but they mean "plugins is a low layer" is not yet unconditionally true. This is D3's underlying inversion.-- A general layering ratchet ("no low module may import any high module", with an allowlist) is out of scope. The measured inversion set is real but larger than this change should carry. **Re-measured at H-3**, after Phase 3 removed the two biggest clusters: `cogt → core` (21), `system → cogt` (7), `plugins → runtime_bridge` (6), `tools → cogt` (3 — the pdf renderer reaching for `cogt.extract` / `cogt.image` types, the same misfiling pattern Phase 3 fixed elsewhere), and one genuine wart — `cogt/model_backends/model_lists.py` importing `pipelex.cli.exceptions.PipelexCLIError`. `cogt → pipeline` (18) is gone. The general rule is now a more plausible sequel than it was at H-2.-- Eager optional-SDK imports: `pipelex/tracing/event_log_factory.py` imports `dynamodb_event_log` at module level, which runs a module-level `try: import boto3`, so `boto3`/`botocore`/`jmespath`/`dateutil`/`six` load in every process that touches the tracing factory. A three-line fix (import `DynamoDBEventLog` inside the factory branch, the pattern already used for `pypdfium2` in `cogt/content_generation/render_generate.py`), entirely independent of this plan. Most other heavy roots (`posthog`, `pypdfium2`, `pillow`, `polyfactory`, `datamodel-code-generator`) are **base** dependencies, not extras — not the same kind of finding.+| # | finding | where it landed |+| --- | --- | --- |+| **5** | **The M2 guard claim was backwards.** The plan said omitting `"pipelex.providers"` is caught by the transitive rule. It cannot be — `hub_layering_guard.py:677` filters through `is_runtime_layer`, so an **undeclared** package is excluded from the rule's domain. The plan named its riskiest step and pointed at a safety net that does not exist | M2 — explicit guard test |+| **14/15** | F1 had no workable dispatch key (`make_args_for_model` takes no sdk; dispatch is by taxonomy; gateway is one SDK spanning both) and implied an unplanned plugin-API bump | **F1 rewritten** — neutral mapping module, no registry |+| **3** | PR topology was self-contradictory (M3→M1 *and* each track based on #1064) | Gating — M1 stacks on M3 |+| **1** | `mthds_parsing` unguarded between M1a and M1c | Predicate updated in **M1a** |+| **2** | `mthds_parsing/` and `providers/` had no `__init__.py` step; ruff `INP001` fails the commit | Both tracks |+| **4** | M1 and M2 are architecturally but **not operationally** independent; a rebase invalidates the drift ack | Gating — landing order + re-ack |+| **6** | `DIRTY_ENTRY_POINT` proves *a* token matches, not that each new one is spelled right | M1c — leaf probe per package |+| **7** | The M3 regression test was too weak — one pipe + one stuff misses a dropped list or model | M3 — full-set + disjointness |+| **8** | `subject_grants.toml:2615` embeds `PipelexInterpreter.make_pipelex_bundle_blueprint`; re-pathing alone leaves it stale | M1a |+| **9/10** | Hand-written importer and test-move inventories were materially incomplete (26 importer files, not ~11) | M1a / M1b — assert-zero-old-paths |+| **11** | The design doc still contradicted this tracker | Superseded banner added to the design doc |+| **12** | M2's "vendor imports nothing but mechanism = 0" is false by construction — cross-vendor edges are deliberately kept | Metric restated |+| **13** | Stale architectural prose in *source* (`contract.py:33-35`, `interpreter_plugins/builtins.py:3-8`) | M2 sweep |++Clean on two axes it checked independently: pydantic/kajson (the discriminated union keys on the stable `type` field and no registered concrete pipe class moves) and entry-point metadata / relative imports.++## Follow-ups from the review++Not in this wave. Captured with their evidence so they are not re-derived.++> **Assessed and written up as an implementation handoff: [`wip/refactoring/review-follow-ups.md`](wip/refactoring/review-follow-ups.md).** Each of the three open items below was re-verified against the tree on 2026-07-28 at `7ddb77f87` and carries a stable id there — **FU-1**, **FU-2**, **FU-3** — plus a concrete recommendation, reproduction commands and sizing. Cite the ids. The bullets below remain the record of *what was noticed*; the handoff is the record of *what to do*. Target branch: `refactor/Hub-2`, after #1067 merges into it.++- [ ] **FU-1 — Decouple `error_type` from the Python class name.** Give each `PipelexError` an explicit stable wire identifier instead of deriving `error_type` and the docs `type_uri` from the class name. Every error-class rename is currently a silent break for any consumer switching on the string, and nothing in the repo flags it. Evidence: `mthds-starter-js/src/lib/errors.ts:176`, `pipelex-starter-js/src/lib/errors.ts:257`, `vscode-pipelex/.../cliValidationBackend.test.ts:99`, `playroom/src/app/api/graph/route.ts:119` — **all four re-confirmed live 2026-07-28, still branching on the retired `PipelexInterpreterError`**. Would also remove the need for the `redirect_maps` workaround. Independent of all three tracks; touches the error model and the agent-CLI JSON envelope, so it needs a matching spec/conformance change. → The assessment **splits this in two**: a golden identity snapshot closes the "nothing flags it" half cheaply and with no spec change, and is what should land before the sweep; the `_declared_error_type` refactor is deferred, since the no-backward-compat rule means it cannot save the four consumers anyway. Note `title` / `type_uri` already have the `_declared_*` hatch — `error_type`, the only one machines branch on, is the one that lacks it. See [FU-1](wip/refactoring/review-follow-ups.md#fu-1--nothing-flags-an-error-class-rename-and-it-is-a-wire-break).+- [ ] **FU-2 — Close the two holes in the img-gen neutrality guard, or downgrade its comment to what it proves.** Raised by the [third F1 review round](#third-review-round--review-done-2026-07-28); recorded rather than fixed because both are cheap and neither is worth machinery on a track whose whole argument was "placement, not indirection". (a) **Transitive vendor SDKs are unguarded.** `_import_roots` reads only the mapping modules' own import statements and `_CLOSURE_SCRIPT` counts only `pipelex.providers`, so an `openai` import reached through some other `pipelex.cogt` module passes both checks. ~~Measured clean today — **zero** vendor-SDK imports anywhere in `pipelex/` outside `providers/` — and *that* is the stronger invariant, unguarded and worth a repo-wide test of its own rather than a denylist bolted onto this one.~~ (b) **The glob under-claims its own coverage.** `_MAPPING_DIR.glob("img_gen_*_mapping.py")` is non-recursive and suffix-keyed, so "a third taxonomy family is covered the day it lands" holds only for a family landing in that exact directory under that exact name. Either bind the convention with a test or soften the comment.++ ⚠ **Correction, 2026-07-28 — the struck sentence is false, and it was the stated justification for a test that would be red on day one.** Struck rather than silently rewritten, because the defect is instructive: five modules outside `providers/` do import a vendor SDK — `tools/pdf/pypdfium2_renderer.py` (module-level), `tools/storage/s3_storage_provider.py`, `tools/storage/gcp_storage_provider.py`, `tracing/dynamodb_event_log.py`, `reporting/reporting_manager.py`. All legitimate: they are *infrastructure* SDKs (pypdfium2, boto3/botocore, google.cloud), which is exactly the shim-vs-implementation split M2's own review recorded for `providers/storage/`. The invariant that **is** true and worth pinning is narrower — `pipelex/cogt/**` imports zero vendor SDKs, and `cogt → pipelex.providers` is exactly the documented five statements. [FU-2](wip/refactoring/review-follow-ups.md#fu-2--the-img-gen-neutrality-guard-is-weaker-than-its-comment-and-its-recorded-remedy-is-wrong) carries the scan that produced this and the corrected remedy. **This is the fourth time on this branch that a check's justification, rather than the check, was the defect** — and the first where the bad justification was written into a *deferred* item, where nothing would have re-tested it before someone acted on it.+- [ ] **FU-3 — Gate the bookkeeping files a bulk rewrite silently breaks.** ⚠ Re-measured 2026-07-28: **both artifacts are clean today** (`subject_grants.toml` 0 out-of-order pairs; `.test_durations` 0 dead file paths, 2 node-id orphans that are the known profile-dependent `pipe_img_gen` parametrizations) — so this is about the *missing gate*, not a live defect. [FU-3](wip/refactoring/review-follow-ups.md#fu-3--the-bookkeeping-files-a-bulk-rewrite-breaks-are-still-ungated) recommends doing the sort check inside the existing `keyword_only_guard.py` and gating durations on the **file path** rather than the node id — a path check is unambiguous, needs no collection run, and needs no tolerance policy for the two benign orphans. Three instances on this branch, each found by hand well after the fact: `subject_grants.toml` losing its sort (fixed in `bc22ba934`), the matched triple disagreeing on `pipe_signature` (fixed in M3), and `.test_durations` carrying 112 orphan node ids across three commits (fixed in the third F1 round). All three share a shape — a generated or bookkeeping artifact that no gate validates, invalidated by a bulk path rewrite, invisible until someone measures it. A cheap `make check` addition covers two of them: assert `subject_grants.toml` keys are sorted, and assert every `.test_durations` node id resolves against a full unfiltered collection. ⚠ The collection must run with `-m ""` — the marker filter in `addopts` hides ~312 items, so a naive check would report every `e2e` entry as an orphan.+- [x] **Guard against vacuously-green string-predicate tests.** ✅ **Done in M1c** — see T10. Assert that every module qname referenced as a string literal in the guard and closure tests resolves to a real module. `is_runtime_layer` never checks existence, so a moved module silently converts assertions into tests of nonexistent paths — the M1b→M1c window is the worked example. Best done **after M1**, when the guard config is in its final shape.++## Cold-start brief++**Read this first in a new session.** Keep it true at every checkpoint.++- **Where:** worktree `_hub/`, based on `refactor/Hub-2` (PR #1064). **One branch**: `refactor/Modularity-3`, pushed at `6e74c6f26`, carrying M3 + M1 + M2 + F1. F1 was developed on `refactor/Modularity-4` and merged in through PR #1065 — the separate-PR topology [Gating](#gating) prescribed for it, honoured and now closed; that branch is deleted. The track's own PR is **[#1067](https://github.com/Pipelex/pipelex/pull/1067), against `refactor/Hub-2`**. Related memory: `project_modularity_refactors.md`, `project_hub_split_refactor.md`.+- **What:** three refactors continuing the hub split — M3 (split the boot manifest, seed `pipe_machinery/`), M1 (hoist core's interpreter half into `mthds_parsing/` + `pipe_machinery/`, collapse the guard declaration), M2 (split `plugins/` into mechanism + `providers/`), then follow-up F1 (the two img-gen factory imports, fixed by moving the mappings inward — **no registry**, see D-M2-2).+- **Why now:** **M3 and M1** break external imports, and the repo already owes a release-gated cross-repo sweep for the hub split — landing them first means consumers absorb one breaking wave instead of several. **M2 and F1 do not** (measured zero external consumers for both) and can land on their own schedule.+- **State:** **M3, M1, M2 and F1 all done and committed on one branch — sitting at CHECKPOINT F1.** M1 is three commits: `0f0309b8f` (M1a, parser → `mthds_parsing/`), `c9c45c475` (M1b, Pipe machinery → `pipe_machinery/`), `10080cf26` (M1c, declaration collapse + guards + docs), plus `7beda698f` for the review fixes. M2 is one commit on top (D-M2-4 — stacked, not parallel) plus `fa6f4fae9` for its review fixes, then F1. All gates green at every checkpoint, all exit criteria met. **Every track's review round is done and its fixes committed** — the moves cleared every time, every defect was docs/fixture/test-quality drift, and three placement items are deferred to `wip/refactoring/deferred-placement-follow-ups.md`. **F1 has had three rounds** (`correctness-and-boot`, `over-engineering`, then `/review` against the F1-only diff): no correctness defect in any of them, and the third round's fixes are the last of it. Only Phase 5 remains.+- **Blocking:** PR #1064 must merge before #1067 can retarget to `dev` and go in. **No open decisions.**+- **⚠ Two cross-repo edits are uncommitted in sibling repos** — `conformance/tests/pipelex_transport/test_data.py` and workspace-root `docs/specs/pipelex-transport-boundary.md`, one line each, repointing `PipeAbstract` to `pipelex.pipe_machinery`. They are release-gated with the rest of the sweep and must not be lost.+- **What M3 actually changed:** no module moved paths and no class was renamed — only the six pipe lists moved from `CoreRegistryModels` to `pipelex.pipe_machinery.registry_models.PipeRegistryModels`. M3 contributes **nothing** to the cross-repo sweep. **M1 is where the sweep debt is incurred**, and it is bigger than the module moves: `PipelexInterpreterError` → `MthdsParserError` is the `error_type` **wire string** four TypeScript consumers branch on, and the docs redirect does nothing for them.+- **What M2 confirmed, and the one thing it adds:** every M1 lesson below fired again. The test inventory in the plan was incomplete a third time (six flat modules needed per-module classification, and one — `test_inference_backend_coverage.py` — reads as a vendor test by name while being a mechanism test by subject). The generated-output lesson paid off directly: `_SUBSYSTEM_SECTIONS` was missing a `providers` row, the identical defect M1 hit with `mthds_parsing`, and `make gep` exits 0 either way. **The new one: a grep character class is a measurement bug.** `pypdfium2` has a digit, so `[a-z_]*` silently skips it — the rewrite was safe (literal vendor names) but the *verification* under-counted, which is worse, because the verification is what licenses "done". Use `[a-z0-9_]+`.+- **What M1 learned that M2 will hit again:**+ 1. **Test inventories written in advance are wrong.** Both of M1's were materially incomplete. Derive the move list from each test's actual subject, at move time.+ 2. **A `Path(__file__).parents[N]` in a moved test is a silent bug** — nothing static sees a parent count, and it fails only under the full suite. Sweep for it after every test move.+ 3. **Doc enumerations are where `hub-layering.md` rots** — and the ones that go stale are rarely in the paragraph your diff touches. M1c found two (`The layer rule`, the must-not-name list) well away from the change. Grep for a *sibling* package name, not for the thing you moved.+ 4. **Moving the leaf beats excluding it.** M1a's straddler decision is the general lesson: an exclusion records a placement problem, a move removes it. `pipeline` / `pipe_run` are the two left.+ 5. `make cleanderived` deletes a gitignored generated test fixture that only the test targets rebuild, so pyright fails on unrelated errors until you regenerate it (command in [Phase 0](#phase-0--baseline)).+- **The four things that will bite you:** (1) re-path `subject_grants.toml` *before* `make agent-check`, or `fix-keyword-only` silently rewrites your subjects — note that a whole-tree textual rewrite re-paths them for free, including qualnames embedded in the key, which is how M1a's `PipelexInterpreter.make_pipelex_bundle_blueprint` fixed itself; (2) `pipelex.plugins.secrets` is a vendor dir but `pipelex.plugins.secrets_provider_registry` is a mechanism module — no prefix `sed`; (3) the guard tuple, the closure-test predicate, the hub-layering snippet and the design-doc snippet are a matched set — **the first three are now mechanically bound by tests** (M1c), the design doc's is not; (4) **string literals are module references too** — 189 in M2, invisible to every import tool.+- **What the rewrite method looked like, since M2 is the same shape at larger scale:** one Python script over `git ls-files`, an ordered longest-first substitution list (dotted paths, then filesystem paths, then test paths, then the class rename), excluding `CHANGELOG.md` / `TODOS.md` / `wip/` / `docs/errors/` — history and generated pages must not be rewritten. Then `grep` the whole tree for the old paths and assert the only survivors are in those excluded files. That completion check is what makes "did I get them all?" answerable.+- **The measurement trap that already caught this plan once:** the classification snippet counts *outbound* imports. It tells you whether a module is a leaf, **not** which layer owns it. Use the [inbound test](#the-inbound-test--added-2026-07-27-and-it-is-the-one-that-decides-layer) for layer decisions.+- **What F1 adds, and it generalizes past this track:** a placement fix *inside one layer* has no gate. Both `pipelex.cogt` and `pipelex.providers` are runtime-layer, so the hub guard and the closure test cannot see an edge between them by construction — every `cogt → vendor` inversion on this page is invisible to both. Whenever you fix one, the invariant you just bought is unguarded from that moment on unless you write the test yourself (D-F1-4). The same is true of the four `config_cogt` edges that stay, which is why they are documented rather than merely tolerated.++---++## Implementation Tasks++Synthesized from the review's findings. Each derives from a specific finding above.++- [x] **T1 (P1, human: ~3h / CC: ~20min)** — M3 — Add the regression test pinning pipe + stuff classes into the class registry after boot+ - Surfaced by: Test review — M3 splits `register_classes`; nothing asserts registry contents; failure is silent at boot+ - Files: ~~`tests/unit/pipelex/test_hub_lifecycle.py`~~ → **new `tests/unit/pipelex/test_registry_models_split.py`** (one TestClass per module is a repo rule), `pipelex/pipelex.py`+ - Verify: `make tb`, then drop one `register_classes` line and confirm the test goes red — ✅ done, and the stronger mutation too (drop one model from one list)+- [x] **T2 (P1, human: ~1d / CC: ~40min)** — M1b — Hoist `pipe_blueprint`, `validation`, `template_guard_lint`, `handle_pipe_errors` out of `core/`+ - Surfaced by: Issue 3 — D-M1-2 classified by outbound imports; inbound test shows 0 runtime-layer importers+ - Files: `pipelex/core/pipes/`, `pipelex/pipe_machinery/`, `pipelex/mthds_parsing/`+ - Verify: inbound test reports ≥1 runtime importer for every module left in `core/pipes/`; `make chl`; closure test+- [x] **T3 (P1, human: ~2h / CC: ~15min)** — M1c — Update `conformance` ALLOWED_SURFACE + `docs/specs/pipelex-transport-boundary.md`+ - Surfaced by: Issue 2 — active unskipped test pins `pipelex.core.pipes.pipe_abstract`; `_hub`'s suite cannot catch it+ - Files: `conformance/tests/pipelex_transport/test_data.py`, `docs/specs/pipelex-transport-boundary.md`+ - Verify: `make check-spec-links` in `conformance/`+- [ ] **T4 (P1, human: ~4h / CC: ~30min)** — Phase 5 — Expand the sweep table to 8 repos incl. the 4 `error_type` wire-string consumers+ - Surfaced by: Issue 1 — the table named one repo; there are eight, and four consume a wire string+ - Files: `TODOS.md`, workspace-root `CLAUDE.md` (✅ done)+ - Verify: re-run the cross-repo grep; every hit appears in the table+- [x] **T5 (P2, human: ~2h / CC: ~15min)** — M1c — Rewrite `test_core_is_split_between_the_layers` wholesale+ - Surfaced by: Issue 6 — six assertions invert or go stale; four go vacuously green between M1b and M1c+ - Files: `tests/unit/pipelex/cli/dev/test_hub_layering_guard.py`+ - Verify: `.venv/bin/pytest tests/unit/pipelex/cli/dev/test_hub_layering_guard.py`+- [x] **T6 (P2, human: ~1h / CC: ~10min)** — M3 + M2 — Add `drift-ack` steps for `hub-layering-convention`+ - Surfaced by: Issue 5 — `drift.toml:65-69` triggers on the guard; all three tracks touch it, only M1c acked+ - Files: `TODOS.md`, `drift.toml`+ - Verify: `make drift-check` green at each checkpoint — ✅ M3 half done: the contract opened exactly as predicted (only after `git add`; the digest reads the index), was reviewed for real, acked, and logged in `wip/drift-contracts/dogfood-log.md` (mandatory per ack). M2's ack landed at CHECKPOINT M2 — and M2 opened a *second* contract the plan did not predict, `config-docs`, because re-pathing the four vendor config imports touches `config_cogt.py`. Both reviewed for real, both acked, both logged.+- [x] **T7 (P2, human: ~1d / CC: ~30min)** — M2 — Rewrite the 189 string-literal module references+ - Surfaced by: Issue 7 — invisible to import rewrites and pyright; 189 in M2, 15 in M1+ - Files: `tests/unit/pipelex/plugins/`, `pipelex/plugins/`+ - Verify: `make agent-test`; zero surviving `pipelex.plugins.<vendor>` literals+- [x] **T8 (P2, human: ~1d / CC: ~30min)** — F1 — Extract the taxonomy/geometry helpers into a neutral `cogt/img_gen/` mapping module; both sides import inward+ - Surfaced by: Issue 8 + Codex #14/#15 — `make_args_for_model` takes no sdk, dispatch is by `AspectRatioTaxonomy`, gateway is one SDK spanning both; a registry slot would force a plugin-API bump+ - Files: `pipelex/cogt/img_gen/img_gen_args_factory.py`, `pipelex/providers/{google,openai}/*_img_gen_factory.py`+ - Verify: a test per taxonomy branch incl. the unmapped-taxonomy path; `pipelex.plugins.contract` untouched+- [x] **T11 (P1, human: ~2h / CC: ~15min)** — M2 — Add a guard test asserting `pipelex.providers.*` is runtime-layer+ - Surfaced by: Codex #5 — the transitive rule filters through `is_runtime_layer`, so an omitted declaration is excluded from the check, not caught by it. No existing gate covers this+ - Files: `tests/unit/pipelex/cli/dev/test_hub_layering_guard.py`+ - Verify: drop `"pipelex.providers"` from the tuple and confirm the test goes red+- [x] **T12 (P2, human: ~2h / CC: ~15min)** — M1a — Fix the embedded qualname in `subject_grants.toml:2615` alongside the re-path+ - Surfaced by: Codex #8 — the key carries `PipelexInterpreter.make_pipelex_bundle_blueprint`; re-pathing alone leaves it stale and hard-fails `check-keyword-only`+ - Files: `subject_grants.toml`+ - Verify: `make cko`+- [x] **T13 (P2, human: ~1h / CC: ~10min)** — ~~M1a~~ + ~~M2~~ — Create the two missing `__init__.py` files — ✅ both done (`pipelex/mthds_parsing/__init__.py`, `pipelex/providers/__init__.py`)+ - Surfaced by: Codex #2 — ruff `select = ["ALL"]`, `INP001` exempt only for `tests/**`; both commits fail lint as written+ - Files: `pipelex/mthds_parsing/__init__.py`, `pipelex/providers/__init__.py`+ - Verify: `make agent-check`+- [ ] **T9 (P3, human: ~3d / CC: ~1 session)** — follow-up — Decouple `error_type` from the Python class name+- [x] **T10 (P3, human: ~4h / CC: ~25min)** — follow-up — Guard against vacuously-green string-predicate tests — ✅ **done in M1c**, both halves: `RUNTIME_LAYER_PACKAGES` entries and `INTERPRETER_PACKAGES` tokens must each resolve on disk, mutation-checked red++---++## GSTACK REVIEW REPORT++| Review | Trigger | Why | Runs | Status | Findings |+|--------|---------|-----|------|--------|----------|+| CEO Review | `/plan-ceo-review` | Scope & strategy | 0 | — | — |+| Codex Review | `/codex review` | Independent 2nd opinion | 1 | ISSUES FOUND → absorbed | 15 findings, all folded |+| Eng Review | `/plan-eng-review` | Architecture & tests (required) | 1 | CLEAR | 8 issues, 1 critical gap (closed) |+| Design Review | `/plan-design-review` | UI/UX gaps | 0 | — | — |+| DX Review | `/plan-devex-review` | Developer experience gaps | 0 | — | — |++- **CODEX:** ran in-repo at high reasoning effort; verdict *"not implementation-ready"*, 15 findings. Eight verified against the tree, all held. All folded in. Two reversed prior rulings: **F1 drops the registry** for a neutral `cogt/img_gen/` mapping module (no dispatch key exists), and **M1 stacks on M3** (the topology was self-contradictory). The sharpest catch: the plan claimed the transitive rule catches an omitted `RUNTIME_LAYER_PACKAGES` entry — it is the opposite, an undeclared package is excluded from the rule's domain (`hub_layering_guard.py:677`).+- **CROSS-MODEL:** 23 findings total, no overlap — the two passes were complementary rather than confirming. The eng review found *classification and blast-radius* errors (outbound-vs-inbound layer test, wire strings, missing consumer repos); Codex found *build-order and gate-efficacy* errors (lint failures, unguarded windows, a safety net that does not exist). Both agreed independently that F1's registry framing was wrong; only Codex found why.+- **VERDICT:** ENG CLEARED — ready to implement. Scope accepted as-is (three tracks + F1, three stacked PRs); 23 findings folded; 1 critical test gap closed by the regression rule.++NO UNRESOLVED DECISIONSdiff --git a/docs/CLAUDE.md b/docs/CLAUDE.mdindex 3c4cda5e4..98f015dd9 100644--- a/docs/CLAUDE.md+++ b/docs/CLAUDE.md@@ -92,7 +92,7 @@ Mike (`mike deploy X.Y.Z latest`) creates two directories on gh-pages: `X.Y.Z/`The `docs/building-methods/` section documents the MTHDS language — what users write in `.mthds` files. This corresponds to the **blueprint** layer, NOT the spec layer.-- **Blueprints** define the MTHDS language — what `.mthds` files parse into via `PipelexInterpreter`.+- **Blueprints** define the MTHDS language — what `.mthds` files parse into via `MthdsParser`.- **Specs** (in `pipelex/builder/pipe/`) are a simplified authoring format for AI agents with convenience fields that get transformed into blueprint fields via `to_blueprint()`. Specs are NOT the language definition.Documentation under `docs/building-methods/` must describe blueprint-level fields, not spec-level convenience fields. For example, `PipeComposeSpec.target_format` is a spec convenience — the MTHDS language uses `category` + `templating_style` on the `TemplateBlueprint` instead.diff --git a/docs/contribute/drift-contracts.md b/docs/contribute/drift-contracts.mdindex f8b2cb943..ea52cc1bb 100644--- a/docs/contribute/drift-contracts.md+++ b/docs/contribute/drift-contracts.md@@ -8,11 +8,11 @@ Not every code↔doc relationship deserves a review contract. This repo distingu| Tier | Mechanism | Judgment needed ||---|---|---|-| **Derived** | Regenerate and diff: `check-config-sync`, `check-mthds-schema`, `check-gateway-models`, `generate-error-pages` | None — the output is a pure function of its sources |+| **Derived** | Regenerate and diff: `check-config-sync`, `check-mthds-schema`, `check-gateway-models`, `generate-error-pages`, `generate-error-identity` | None — the output is a pure function of its sources || **Linkage** | Referential integrity of declared cross-references (the spec/conformance `check-spec-links` pair) | None — links either resolve or they don't || **Review** | Drift contracts: "this changed → that must be looked at, and the look recorded" | Yes — someone must judge whether the prose still holds |-The standing rule: **anything mechanizable becomes a derived check.** If a review contract keeps opening and the review is always the same mechanical comparison, delete the contract and write a derived check instead — it needs no judgment and can't be rubber-stamped. The best review contract is one you eventually mechanize out of existence. Corollary: generated artifacts (`docs/errors/`, `derived/`, gateway model docs) must never appear in a contract's `review` list — reviewing generator *output* is how you end up editing generated files.+The standing rule: **anything mechanizable becomes a derived check.** If a review contract keeps opening and the review is always the same mechanical comparison, delete the contract and write a derived check instead — it needs no judgment and can't be rubber-stamped. The best review contract is one you eventually mechanize out of existence. Corollary: generated artifacts (`docs/errors/`, `derived/`, `tests/data/errors/error_identity.txt`, gateway model docs) must never appear in a contract's `review` list — reviewing generator *output* is how you end up editing generated files.## How it worksdiff --git a/docs/contribute/hub-layering.md b/docs/contribute/hub-layering.mdindex b6d8d0ab8..fab259e4d 100644--- a/docs/contribute/hub-layering.md+++ b/docs/contribute/hub-layering.md@@ -77,9 +77,11 @@ Placement is decided by *kind*, not by who currently imports it. Several accesso## Why the boundary exists-`runtime_hub` must not name anything from `libraries`, `pipe_operators`, `pipe_controllers`, `codegen`, `builder`, `core.bundles`, `core.interpreter`, or the Pipe-touching modules of `core.pipes` at module level. Those module-level imports exist only to type the getters, but they are what made a single hub drag the entire method interpreter into every consumer that just wanted `get_console()`.+`runtime_hub` must not name anything from `libraries`, `pipe_operators`, `pipe_controllers`, `codegen`, `builder`, `interpreter_plugins`, `pipe_machinery`, `pipe_signature` or `mthds_parsing` at module level. That list is now stated in whole top-level packages, which is the point of the modularity moves: it used to have to trail "…or the Pipe-touching modules of `core.pipes`", because some of what it forbids lived under a runtime-named package. Those module-level imports exist only to type the getters, but they are what made a single hub drag the entire method interpreter into every consumer that just wanted `get_console()`.-The property that matters is measurable: **importing the Pipelex runtime loads zero interpreter modules.** That is both the assertion the closure test pins and the outward-facing claim — the inference engine does not know the MTHDS language exists, so you can embed it without loading a line of the interpreter. Verify it from the repo root on a synced venv:+Two interpreter-named packages are deliberately **not** on the list — `pipeline` and `pipe_run` — because leaf models of theirs already land in every runtime closure. That is a placement wart, not a broken arrow, and it is the one qualification the property below carries; see [The property — the import-closure test](#the-property-the-import-closure-test) for the remedy.++The property that matters is measurable: **importing the Pipelex runtime loads zero modules from any of the packages named above.** That is both the assertion the closure test pins and the outward-facing claim — the inference engine does not know the MTHDS language exists, so you can embed it without loading a line of the parser, the pipe machinery, or a single pipe kind. Verify it from the repo root on a synced venv:```bash.venv/bin/python - <<'PY'@@ -88,7 +90,7 @@ from pathlib import Pathimport pipelex.cogt.content_generation.content_generator # noqa: F401-INTERPRETER = {"libraries", "pipe_operators", "pipe_controllers", "codegen", "builder"}+INTERPRETER = {"libraries", "pipe_operators", "pipe_controllers", "codegen", "builder", "interpreter_plugins", "pipe_machinery", "pipe_signature", "mthds_parsing"}loaded = {name: mod for name, mod in sys.modules.items() if name.startswith("pipelex.")}interpreter = sorted(n for n in loaded if n.split(".")[1] in INTERPRETER)sloc = 0@@ -105,12 +107,18 @@ PY## Where core splits-`pipelex/core/` is not one layer, and trying to declare it one was the mistake this section records. It holds two different kinds of thing:+`pipelex/core/` used to be two layers under one name, and the runtime-layer declaration had to work around it. It does not any more — `pipelex.core` is a single declared entry — but the split is worth recording, because *how* it was resolved is the general lesson.++For a long time `core/` held two different kinds of thing:++- **The data model — runtime.** `core.concepts`, `core.domains`, `core.stuffs`, `core.memory`, the input/output *specs* under `core.pipes.inputs` and `core.pipes.stuff_spec`, and `core.pipes.pipe_output`. These describe what a method's values *are*. Nothing in them needs a loaded method, and each measures **zero** modules from the packages the predicate names. `pipe_output` reads as Pipe machinery but is not: it names no `Pipe` — it holds the working memory, graph spec and usage a run *produced* — and it sits inside `runtime_hub`'s own closure (the chain under [The class-registry exception](#the-class-registry-exception) passes straight through it).+- **The Pipe machinery — interpreter.** `pipe_abstract`, `pipe_blueprint`, `pipe_factory`, `validation`, `template_guard_lint` and the two renderers. Every one of them names a `Pipe`, and a pipe is the interpreter's own object — they import `pipe_operators` / `pipe_controllers` / `libraries` **directly**, not through a hub. No amount of dependency injection makes those runtime.-- **The data model — runtime.** `core.concepts`, `core.domains`, `core.stuffs`, `core.memory`, the input/output *specs* under `core.pipes.inputs` and `core.pipes.stuff_spec`, and `core.pipes.pipe_output`. These describe what a method's values *are*. Nothing in them needs a loaded method, and each measures **zero** interpreter modules. `pipe_output` reads as Pipe machinery but is not: it names no `Pipe` — it holds the working memory, graph spec and usage a run *produced* — and it sits inside `runtime_hub`'s own closure (the chain under [The class-registry exception](#the-class-registry-exception) passes straight through it). It is a runtime-layer module the [guard's declaration](#the-rule-make-check-hub-layering) does not cover, because that declaration is package-granular and `core.pipes` as a whole is not runtime; the closure test covers it instead, since an `interpreter_hub` import there would fail the `pipelex.runtime_hub` entry point.-- **The Pipe machinery — interpreter.** `core.pipes.pipe_abstract`, `pipe_blueprint`, `pipe_factory`, `core.pipes.rendering`, `core.bundles`, `core.interpreter`, and `core.registry_models`. Every one of them names a `Pipe`, and a pipe is the interpreter's own object — they import `pipe_operators` / `pipe_controllers` / `libraries` **directly**, not through a hub. `core.bundles.pipelex_bundle_blueprint` is a discriminated union over every pipe blueprint; `core.registry_models` is a registry of every pipe kind. No amount of dependency injection makes those runtime.+**The resolution was to move the second kind out, not to describe it more precisely.** All of it now lives in two top-level packages of its own: `pipelex.pipe_machinery` holds the Pipe machinery proper plus the pipe-kind registration manifest (`registry_models.PipeRegistryModels` — the fattest edge of the lot, a list of every pipe class and every pipe factory, so importing it loaded the whole interpreter), and `pipelex.mthds_parsing` holds the MTHDS parser and the bundle blueprint it produces, whose `pipelex_bundle_blueprint` is a discriminated union over every pipe blueprint. See [Registration surface](registration-surface.md) for what adding a pipe kind touches.-So the runtime-layer declaration lists core's data-model packages by name. `pipelex.core` itself is deliberately *not* a declared package: writing it would claim a property the measurement contradicts.+One model stayed behind on purpose, and it is the interesting case. `PipelexBundleBlueprintValidationErrorData` is raised by the parser but imported by `pipeline/` and `libraries/`, which carry it into every runtime-layer import closure. Filing it with the parser would have made the boundary unenforceable for `mthds_parsing` — the closure predicate would have needed a permanent exclusion for it. It lives in `core.exceptions` instead, beside the two sibling structured error-data models it shares `PipeValidationErrorType` with. **Moving the leaf is what buys the clean predicate**; excluding it would only have recorded the problem.++So the declaration names `pipelex.core` wholesale, which is a claim the measurement now supports: every `pipelex.core.*` module loads zero modules from the interpreter packages the predicate names, and none reaches `interpreter_hub`. (`core.pipes.pipe_output` still pulls in `pipeline.pipeline_models` for one leaf constant — the `pipeline` / `pipe_run` wart, unchanged by this and tracked below.) It once listed core's data-model packages one by one, and that enumeration was the shape of the problem — a package-granular declaration is only honest when the packages match the layers.The dividing line is worth stating as a rule of thumb: **if it names a `Pipe`, it belongs to the interpreter layer.**@@ -120,12 +128,30 @@ The data-model half used to reach for `get_concept_library()` / `get_native_concIt is **read-side only**. Managing a library — adding, removing, listing, setup/teardown — stays in the interpreter layer: `ConceptLibraryAbstract` *extends* it, keeping its management half in `libraries/`. Splitting read from write is what lets a core module state its dependency honestly ("I need something that can resolve concepts") without inheriting a library lifecycle it has no business touching.-**There is deliberately no pipe counterpart.** Nothing in core's runtime half resolves a pipe. The two places that follow a pipe reference found *inside* a pipe graph — a condition's mapped pipes, a sequence's last step — live in `core/pipes/rendering/`, which is interpreter-layer and calls `interpreter_hub.get_required_pipe` directly; a provider parameter there would buy no closure property. `get_required_pipe` therefore stays on `PipeLibraryAbstract`. Split a read half out when a runtime-layer caller actually needs one, not for symmetry with concepts.+**There is deliberately no pipe counterpart.** Nothing in core's runtime half resolves a pipe. The two places that follow a pipe reference found *inside* a pipe graph — a condition's mapped pipes, a sequence's last step — live in `pipe_machinery/rendering/`, which is interpreter-layer and calls `interpreter_hub.get_required_pipe` directly; a provider parameter there would buy no closure property. `get_required_pipe` therefore stays on `PipeLibraryAbstract`. Split a read half out when a runtime-layer caller actually needs one, not for symmetry with concepts.The injection point is the interpreter layer. `pipe_factory`, `input_renderer` and `output_renderer` — already interpreter-bound, so nothing is lost — resolve the concept library themselves and pass it down; `pipeline/execution_seams.py` does the same for `WorkingMemoryFactory`. That is the one-way arrow the whole design rests on, applied inside `core/`: **the half that knows about a loaded method resolves the collaborator and hands it downward.**When you add a core data-model function that needs a concept, add a `concept_provider` parameter. Do not add a hub import — the guard will reject it, and the closure test will tell you which entry point you broke.+## Where the built-in plugins split++Two different splits run through the built-in plugins, and they are easy to conflate. The first is **mechanism vs adapters**, and it does *not* cross a layer boundary: `pipelex/plugins/` is the plugin mechanism — the `PipelexPlugin` contract, the `PluginRegistrar`, and the capability registries the registrar accumulates into — while `pipelex/providers/` holds the built-in adapters that register through it, one directory per provider. Both packages are declared runtime-layer. What the split makes visible is the one-way dependency between them: adapters depend on the mechanism, and the mechanism knows nothing of its adapters. It also stops `pipelex/plugins/` from reading as "the vendors", which is what made the second split hard to see. Note the scope of that claim — it is about these two packages, not about the whole tree: `cogt` does name four providers directly, which [Known inversions](#known-inversions) records and justifies.++Most of those directories are vendor adapters, but not all of them, which is why the package is `providers/` and not `vendors/`: `providers/secrets/` registers the built-in `env` backend, which has no vendor at all, and `providers/storage/` registers local, in-memory, S3 and GCP behind one directory. In both cases only the registration shim lives here — the implementations are under `pipelex/tools/`.++The second split *is* the layer boundary, and the same rule of thumb divides it. Most built-ins adapt a runtime-layer port — an inference backend, a model lister, a storage or secrets provider — and those are the packages under `pipelex/providers/`. Two adapt interpreter-layer ports, because their job is to *construct* interpreter-layer objects: `DirectOrchestratorPlugin` registers a `DirectOrchestrator` and a `DirectBundleValidator`, and `PipeFuncPlugin` registers a concrete `DirectPipeFuncExecutor`. Those two live in **`pipelex/interpreter_plugins/`**.++External plugins are unaffected by the mechanism/adapter split: they import `pipelex.plugins.contract` and `pipelex.plugins.registrar`, both of which stayed put, and they are discovered through the `pipelex.plugins` entry-point group — a group identifier, not a module path, and unchanged.++The registrar's slots are *ports* and they stay runtime-layer — `OrchestratorProtocol`, `BundleValidatorProtocol` and `PipeFuncExecutorFactoryFn` all live under `plugins/*_registry.py`. Only the *adapters* are interpreter-layer. That is ordinary ports-and-adapters, and it is what the layer rule's own remedy text prescribes: have the interpreter layer install it downward at boot. Where each derived registry is *installed* still follows the hub partition rather than the port's home: `Pipelex.setup` puts the orchestrator, bundle-validator, backend, lister, storage and secrets registries on the `RuntimeHub`, and the `PipeFuncExecutorRegistry` on the `InterpreterHub` — the one placement flagged [above](#which-hub-does-a-new-symbol-belong-to).++Composition happens where welding is legal. `pipelex/providers/builtins.py` exports `RUNTIME_BUILTIN_PLUGINS`; `pipelex/interpreter_plugins/builtins.py` imports that half — downward, which the interpreter layer may do — and exports the composed `BUILTIN_PLUGINS` and `CORE_UNCONDITIONAL_PLUGIN_NAMES`. Both are **parameters** of `build_registrar`, never module globals it imports, so `plugins/discovery.py` stays runtime-layer: `pipelex.py` (boot) and the `pipelex plugins list` diagnostic pass the composed lists in. Exactly one place still answers "what are the built-in plugins" — it just lives in the layer permitted to say it.++This is the seam external plugins already use. Our Temporal plugin contributes an orchestrator and our Daytona plugin a PipeFunc executor; both are interpreter-touching, both live outside this repo, and both arrive through the `pipelex.plugins` entry point without welding anything. The in-tree built-ins used to be the only ones that welded — [Known inversions](#known-inversions) records what that cost.++One consequence is worth stating as a contract, and it is written into `PipelexPlugin`'s docstring: **a plugin belongs to exactly one layer.** A capability needing adapters in both is two plugins. Nothing enforces it mechanically; a straddling plugin would simply put the interpreter back into every runtime closure, and the guard's transitive rule would say so.+## Placement, not couplingSplitting the hub removes the *lookups* that crossed the boundary. It does not move a type that was simply filed in the wrong package — and a misfiled type drags its whole package into every closure that names it. Two were resolved this way; both are worth knowing as the pattern to apply to the next one.@@ -143,9 +169,9 @@ What stays in `cogt/templating/` — `TemplateBlueprint`, the sigil preprocessor**`resolved_fields` moved down into `core/concepts/`.** The neutral resolved-field layer — one structure field becoming a `ResolvedType` tree — lived under `pipelex/codegen/` while `core/concepts/structure_generation/generator.py` imported it, which put `pipelex.codegen` into the closure of every core module that reached structure generation. It names nothing outside `pipelex.core`, so this was misfiling again: it now lives at `pipelex/core/concepts/resolved_fields.py`, and the codegen emitters import it upward.-**The two renderers regrouped into `core/pipes/rendering/`.** `input_renderer` sat in `core/pipes/inputs/` beside genuinely runtime-layer modules while `output_renderer` sat alone in `core/pipes/output/`. Both render a `PipeAbstract` for a human or an agent, so both belong to the interpreter layer — and leaving `input_renderer` where it was would have forced the runtime-layer declaration to be a list of *modules* rather than packages. Regrouping them made the boundary fall on package lines, which is the difference between a rule you can state and a rule you have to enumerate.+**The two renderers regrouped, then left `core/` altogether — they are now `pipe_machinery/rendering/`.** `input_renderer` sat in `core/pipes/inputs/` beside genuinely runtime-layer modules while `output_renderer` sat alone in `core/pipes/output/`. Both render a `PipeAbstract` for a human or an agent, so both belong to the interpreter layer, and leaving `input_renderer` where it was would have forced the runtime-layer declaration to be a list of *modules* rather than packages. Regrouping them into one `rendering/` package was the first half of the fix and bought a real improvement — the boundary fell on package lines instead of module lines. It was only half, though: the declaration still had to name six `pipelex.core.*` sub-packages, because the boundary now fell on package lines *inside* `core/`. Moving the whole group out to `pipe_machinery/` is what collapsed those six entries to one. The general form: regrouping tells you where the boundary is, moving is what makes the boundary a package name.-The lesson generalizes: when a runtime-layer package imports an interpreter-layer one, check whether the *type* is misplaced before designing an indirection. None of these needed a resolver slot or a protocol — only a `git mv` and an import rewrite. And when a package straddles the boundary, moving the odd module out is usually cheaper than teaching the guard about exceptions.+The lesson generalizes: when a runtime-layer package imports an interpreter-layer one, check whether the *type* is misplaced before designing an indirection. None of these needed a resolver slot or a protocol — only a `git mv` and an import rewrite. And when a package straddles the boundary, moving the odd module out is usually cheaper than teaching the guard about exceptions — which is exactly how the built-in plugins were split, [below](#where-the-built-in-plugins-split).## The class-registry exception@@ -178,31 +204,44 @@ The boundary is enforced mechanically. Two things are checked, because the rulemake check-hub-layering # alias: make chl```-An AST guard (`pipelex-dev check-hub-layering`, core in `pipelex/cli/dev_cli/commands/hub_layering_guard.py`) that runs in `make agent-check`, in the `make check` aggregate, and in CI. It checks two rules over `pipelex/` and `tests/`:--1. **The layer rule.** A module in the declared runtime layer — `pipelex.cogt`, `pipelex.plugins`, `pipelex.reporting`, `pipelex.system`, `pipelex.tools`, the `pipelex.runtime_hub` module itself, plus core's data-model packages `pipelex.core.concepts`, `pipelex.core.domains`, `pipelex.core.memory`, `pipelex.core.pipes.inputs`, `pipelex.core.pipes.stuff_spec` and `pipelex.core.stuffs` — may not import `pipelex.interpreter_hub`. The declaration is compliant with an empty exception list, so the guard hard-blocks on **any** violation. Entries are matched exact-or-dotted-prefix, which is why a bare *module* is a legal entry beside the packages: without `pipelex.runtime_hub` spelled out, the module at the centre of the rule would be exempt from it.+An AST guard (`pipelex-dev check-hub-layering`, core in `pipelex/cli/dev_cli/commands/hub_layering_guard.py`) that runs in `make agent-check`, in the `make check` aggregate, and in CI. It checks three rules over `pipelex/` and `tests/`:- Read that compliance claim as exactly what it is. **The rule is about a *direct* import, and the guard does not follow the import graph.** A declared runtime-layer module can still reach `interpreter_hub` through an undeclared intermediary — `runtime_bridge`, `pipeline`, `pipe_run`, `config`, … — with both gates green. Four modules under `pipelex.plugins` do exactly that today; see [Known inversions](#known-inversions) for the measurement and the planned fix. Why `core/` is listed package by package rather than wholesale is [below](#where-core-splits).+1. **The layer rule.** A module in the declared runtime layer — `pipelex.cogt`, `pipelex.core`, `pipelex.plugins`, `pipelex.providers`, `pipelex.reporting`, `pipelex.system`, `pipelex.tools`, plus the `pipelex.runtime_hub` module itself — may not import `pipelex.interpreter_hub`. The declaration is compliant with an empty exception list, so the guard hard-blocks on **any** violation. Entries are matched exact-or-dotted-prefix, which is why a bare *module* is a legal entry beside the packages: without `pipelex.runtime_hub` spelled out, the module at the centre of the rule would be exempt from it. `pipelex.core` was six entries until its interpreter tenants moved out — see [Where core splits](#where-core-splits) for what that enumeration was working around.2. **The dead-module rule.** *No* scanned module may reference `pipelex.hub`. It was deleted rather than aliased so a stale import fails loudly; this closes the one hole in that guarantee.+3. **The transitive rule.** No runtime-layer module may *reach* `pipelex.interpreter_hub` either, through any chain of module-level imports. Rules 1 and 2 are per-file and see one hop; this one resolves the whole module-level import graph of `pipelex/` and does reachability over it, reporting the shortest chain and the line of its first hop. It exists because the one-hop rules missed a live breach for a whole release: four modules of the declared runtime-layer `pipelex.plugins` package reached the interpreter hub through `runtime_bridge`, `pipeline` and `pipe_operators`, and both gates stayed green (see [Known inversions](#known-inversions)). A *direct* import is left to rule 1, which names the more specific remedy, rather than reported twice.++ The rule scopes itself to what an import actually loads: module-level imports only, `TYPE_CHECKING` blocks, function bodies and `# hub-layering: ignore`d statements excluded — the same carve-outs rule 1 grants, applied to the graph. It also models what an import loads *on the way*: reaching `pkg.sub.mod` executes `pkg/__init__.py` and `pkg/sub/__init__.py` first, so those are edges too and a breach in a package init is reached by every importer of anything beneath it. And a module-level **string** naming the interpreter hub is an edge, since a dynamic import loads it just the same — rule 1 catches that string in a runtime-layer module, but an *intermediary* sits in no declared layer, so without this the graph would miss it. A finding cannot be silenced **where it is reported** — the marker suppresses one reviewed *import*, never a module's transitive reach, so a module the declaration claims is runtime-layer while the graph says otherwise gets moved or has its dependency inverted.-Both rules match **imports and bare string literals**, and the string half is the load-bearing one. A missed *import* of a deleted module is an immediate `ImportError`; a missed *string* is not, and it is invisible to every import-graph tool and to pyright's module graph. Both forms that actually occurred here were strings: three `importlib.import_module("pipelex.hub")` shims hiding a cycle from every lint, and one `mocker.patch("pipelex.hub.get_console", ...)` that broke a whole CLI test suite with an `AttributeError` raised nowhere near a hub. Matching is exact-or-boundary against the module path, so `pipelex.runtime_hub` never matches `pipelex.hub` and prose that merely *mentions* a module is not a reference.+ The rule also refuses to pass vacuously: if the scan finds no `pipelex.interpreter_hub` among the modules it parsed — a renamed hub, or a scan root the module names cannot be derived from — it raises instead of reporting zero. Reverse reachability from a module the graph does not contain is empty by construction, so without that check a rename would silently turn the whole rule off while the gate stayed green.++All three rules match **imports and bare string literals**, and the string half is the load-bearing one. A missed *import* of a deleted module is an immediate `ImportError`; a missed *string* is not, and it is invisible to every import-graph tool and to pyright's module graph. Both forms that actually occurred here were strings: three `importlib.import_module("pipelex.hub")` shims hiding a cycle from every lint, and one `mocker.patch("pipelex.hub.get_console", ...)` that broke a whole CLI test suite with an `AttributeError` raised nowhere near a hub. Matching is exact-or-boundary against the module path, so `pipelex.runtime_hub` never matches `pipelex.hub` and prose that merely *mentions* a module is not a reference.The guard resolves relative imports (`from ...interpreter_hub import …`) against the importing module's own package, so the forbidden arrow cannot be spelled around. A path assembled at runtime from f-strings or concatenation is beyond any AST scan; nothing in the tree does that.Two deliberate carve-outs:- **`if TYPE_CHECKING:` blocks are exempt from the layer rule** — the rule is about what *loads*, and a type-only import loads nothing. Only `TYPE_CHECKING` and `typing.TYPE_CHECKING` open such a block: an attribute of any other receiver (`settings.TYPE_CHECKING:`) is an ordinary runtime condition and earns no exemption. The `else` branch is not exempt either, nor is `if not TYPE_CHECKING:`, and the dead-module rule applies inside `TYPE_CHECKING` too (a deleted module exists in no phase).-- An inline `# hub-layering: ignore` comment anywhere on the offending statement suppresses it, mirroring `# kw-only: ignore`. There is exactly one in the tree, on the guard's own declaration of the forbidden path.+- An inline `# hub-layering: ignore` comment anywhere on the offending statement suppresses it, mirroring `# kw-only: ignore`. It applies to every rule that is about what *loads*, so a suppressed import is also not an edge in rule 3's graph. The only two in the tree are on the guard's own declarations of the two hub paths, which name them rather than importing them.-`tests/` is scanned for the dead-module rule only. `tests.*` sits in no declared layer, so a test may freely patch `pipelex.interpreter_hub` — while a stale `pipelex.hub` patch target, the landmine above, still fails the check.+`tests/` is scanned for the dead-module rule only. `tests.*` sits in no declared layer, so a test may freely patch `pipelex.interpreter_hub` — while a stale `pipelex.hub` patch target, the landmine above, still fails the check. The transitive rule likewise walks `pipelex/` only: a test module has no closure to protect.### The property — the import-closure test-`tests/unit/pipelex/test_runtime_layer_import_closure.py` imports each runtime-layer entry point in a **subprocess** and asserts that zero interpreter modules — and no `pipelex.interpreter_hub` — landed in `sys.modules`. This is the [measurement above](#why-the-boundary-exists), pinned. It exists separately from the lint because the two fail independently: a runtime-layer module reaching directly into `pipe_operators`, without touching a hub, breaks the property while the lint stays green.+`tests/unit/pipelex/test_runtime_layer_import_closure.py` imports each runtime-layer entry point in a **subprocess** and asserts that no module from its `INTERPRETER_PACKAGES` set — and no `pipelex.interpreter_hub` — landed in `sys.modules`. This is the [measurement above](#why-the-boundary-exists), pinned. It exists separately from the lint because the two fail independently: a runtime-layer module reaching directly into `pipe_operators`, without touching a hub, breaks the property while the lint stays green.++The entry points are the inference layer, `runtime_hub` itself, `providers.builtins`, and the heaviest module of each runtime-layer `core/` package. `providers.builtins` earns its place by history, under its former name `plugins.builtins`: it instantiates every built-in vendor adapter, and `pipelex.plugins` — then the largest declared runtime-layer package, vendors and mechanism together — had no entry point here when the transitive breach happened. The guard now follows the import graph, but that is *static* analysis and cannot see a dynamic import, so the package that bit us gets a runtime-truth check too. One entry point still covers both halves of what has since become two packages: importing the manifest pulls in every built-in adapter, and they reach the mechanism they register through.++Its predicate is now a single membership test over whole top-level packages — no per-module list and no exclusions. It used to need both: core's Pipe-machinery modules had to be named one by one (most were caught only *transitively*, through the `pipe_operators` / `libraries` they pull in, and `pipe_blueprint` pulled in none of it, so a runtime-layer import of it would have passed a package-only predicate), and `core.bundles.exceptions` had to be excluded by exact match because its validation-error data landed in every runtime closure. Both disappeared when the modules moved: the machinery to `pipe_machinery`, the parser to `mthds_parsing`, and the one leaf model to `core.exceptions`. **A package-granular predicate is honest only once the packages match the layers** — that is the whole argument for the moves, stated as a check.-Its predicate is stricter than the one-liner above: besides the five interpreter top-level packages it names core's Pipe-machinery modules one by one, because most of them only get caught *transitively* — through the `pipe_operators` / `libraries` they pull in — and `core.pipes.pipe_blueprint` pulls in none of it, so a runtime-layer import of it would otherwise pass. Naming them is what makes the predicate state the boundary rather than approximate it. What the predicate deliberately cannot name yet is `pipeline`, `pipe_run` and `core.bundles.exceptions`: interpreter-named homes whose leaf models already land in every runtime closure — `core.pipes.pipe_output` reaches `pipeline.pipeline_models` for a single leaf constant, for instance. Naming them today would fail every entry point on a placement wart rather than a broken arrow. Move the leaves to a runtime-layer home first, then widen the predicate.+What the predicate still cannot name is `pipeline` and `pipe_run`: interpreter-named homes whose leaf models already land in every runtime closure — `core.pipes.pipe_output` reaches `pipeline.pipeline_models` for a single leaf constant, for instance. Naming them today would fail every entry point on a placement wart rather than a broken arrow. The remedy is the one `mthds_parsing` used: move the leaves to a runtime-layer home first, then widen the predicate.-The detector lives inside a `textwrap.dedent` string, so no linter or type checker sees the names in it and a typo would make every entry point pass *vacuously*. A negative control closes that: `pipelex.interpreter_hub` is dirty by definition, and the test asserts it comes back reported as offending modules — so a detector that has stopped detecting fails rather than going quietly green. Each subprocess is time-bounded, because an unbounded one turns a deadlock into a hung suite instead of a failure.+The detector runs in a subprocess, so its logic lives in a `textwrap.dedent` string that no linter or type checker sees — and a predicate that has quietly stopped detecting would make every entry point pass *vacuously*. Three guards close that, each covering what the others cannot:++- **A negative control.** `pipelex.interpreter_hub` is dirty by definition, and the test asserts it comes back *reported as offending modules*, not merely non-zero — so a broken predicate fails rather than going quietly green. It proves the detector detects, but only that *some* name matches.+- **Every configured name is a real package directory** under `pipelex/`. A typo'd or retired name matches nothing, and because the predicate is a membership test that is invisible rather than loud. (The package set is a module-level constant handed to the subprocess as argv, so the names are at least lint-visible; nothing checks a string against disk.)+- **The set matches the `INTERPRETER` set** in this page's [verification snippet](#why-the-boundary-exists) — a reader who runs a stale copy measures zero and believes it. The two had silently disagreed before anyone compared them by machine.++Each subprocess is time-bounded, because an unbounded one turns a deadlock into a hung suite instead of a failure.Alongside them, `tests/unit/pipelex/test_hub_lifecycle.py` pins that a boot installs both singletons, and that the production `Pipelex.teardown` — not a stand-in calling `class_registry_scoping.reset()` directly — really releases the scoping an `InterpreterHub` installed, and that the next boot re-installs it.@@ -217,23 +256,15 @@ Two checks make that review mechanical rather than a re-read, and are the ones t## Known inversions-Named so this document stays honest. Not one of them imports `interpreter_hub` *directly*, so the guard does not flag them — but four reach it transitively, which is why "`plugins` is a runtime layer" is not yet unconditionally true. This is measured, not suspected:--```-pipelex.plugins.direct.direct_plugin interpreter_hub=True interpreter modules= 57-pipelex.plugins.discovery interpreter_hub=True interpreter modules= 67-pipelex.plugins.builtins interpreter_hub=True interpreter modules= 67-pipelex.plugins.pipe_func.pipe_func_plugin interpreter_hub=True interpreter modules= 58-```--**The headline property is unaffected**, and that is why the closure test stays green: nothing on the inference-layer or `runtime_hub` path reaches these four. They load only on the full boot path, where the interpreter is loaded anyway. A static sweep of every declared runtime-layer module puts the blast radius at exactly these four of 476 — the other ten declared packages are clean across 345 modules.+Named so this document stays honest.-- **`plugins/direct/direct_plugin.py` and `plugins/pipe_func/pipe_func_plugin.py` are the two leaves**, and they breach for the same reason: their job is to *construct interpreter-layer objects*. `direct_plugin` registers a `DirectOrchestrator` and a `DirectBundleValidator`, reaching `interpreter_hub` by two independent routes (`runtime_bridge/` and `pipeline/`), so cutting either one alone changes nothing. `pipe_func_plugin` imports the concrete `DirectPipeFuncExecutor` from `pipe_operators/` at module level — it needs the class at runtime, because it constructs it.-- **`plugins/builtins.py` and `plugins/discovery.py` breach purely as aggregators.** `builtins.py` imports every built-in plugin including those two; `discovery.py` imports `builtins`, and sits on the boot path. Neither carries an edge of its own, so fixing the two leaves clears all four.-- `plugins/pipe_func_executor_registry.py` is typed by a protocol from `pipe_operators/` and defers that import under `TYPE_CHECKING` precisely because `pipelex.config` imports it and the inference layer imports `pipelex.config` — a module-level import there would drag the interpreter back into every inference closure. Being type-only it loads nothing, so it is not one of the four above — the sanctioned deferral pattern. The placement inversion itself is unfixed.+**The one that was fixed, kept as the worked example.** Four modules of the declared runtime-layer `pipelex.plugins` package used to reach `interpreter_hub` — `direct/direct_plugin.py` and `pipe_func/pipe_func_plugin.py` as the leaves (their job is to *construct* interpreter-layer objects), `builtins.py` and `discovery.py` purely as aggregators over them. (That `builtins.py` is today `pipelex/providers/builtins.py`; it moved with the vendor adapters it aggregates when the mechanism and the adapters were split.) None imported the hub *directly*, so the guard did not flag them, and the closure test had no entry point for the package, so nothing else did either: from the moment the declaration landed it claimed a property the measurement contradicted, with both gates green. The remedy was placement, not indirection — the two leaves moved to `pipelex/interpreter_plugins/` and the composition moved to the layer allowed to weld (see [Where the built-in plugins split](#where-the-built-in-plugins-split)) — and the guard grew the [transitive rule](#the-rule-make-check-hub-layering) so the next one cannot hide the same way. Three lessons generalize: a package-granular declaration is a claim about the whole package, an aggregator inherits every breach it aggregates, and a rule that stops at one hop will eventually be walked around.-**The fix is decided and scheduled as its own change**, because it is a relocation rather than a declaration edit: split `builtins.py` by layer, move the two interpreter-touching plugins to an interpreter-side home, invert `discovery`'s dependency so the plugin list arrives as a parameter, and let the boot entrypoint — which sits in no declared layer and is free to weld — compose the two halves. That is the seam external plugins already use: an out-of-tree orchestrator or PipeFunc executor arrives through the entry-point mechanism without welding anything, and the in-tree built-ins are the only ones that weld. Alongside it, the guard learns to follow the import graph, so this class of breach cannot recur silently.-- `core/`'s Pipe-touching half — `pipe_abstract`, `pipe_blueprint`, `pipe_factory`, `pipes/rendering/`, `bundles/`, `interpreter/`, `registry_models` — imports the interpreter directly. That is not an inversion to fix but a fact about what a pipe is (see [Where core splits](#where-core-splits)); it is listed here only so nobody re-reads the runtime-layer declaration as an oversight. Three of those modules import `interpreter_hub` on purpose, to inject downward.+- **`cogt` names four specific vendors, deliberately.** `cogt/config_cogt.py` imports `AnthropicConfig`, `GoogleConfig`, `MistralConfig` and `OpenAIConfig` from their `pipelex/providers/` packages. Both sides are runtime-layer, so this breaches no hub rule — it is a placement inversion: the vendor-neutral engine names four vendors. It is accepted rather than fixed, because the alternative is worse. The main config model is statically typed end-to-end (`system/configuration/configs.py` and the `pipelex.toml` files are structurally synced, and boot fails loud when they disagree), so making vendor config sections plugin-contributed would trade compile-time typing for a dynamic registry — a real loss to buy a cosmetic win. The edge is one-way and shallow: a config class, not a worker.+- **The img-gen one that stopped being an inversion.** `cogt/img_gen/img_gen_args_factory.py` used to import two vendor img-gen factories at module level, for taxonomy and geometry helpers. It was never a registry problem: dispatch is keyed on `AspectRatioTaxonomy`, a `cogt`-owned enum that names model families and no providers, and no family is served by a single adapter — the `openai` and `azure_openai` decks both ship GPT Image models, and the gateway worker resolves Gemini geometry through the same mapping the native Google worker uses — so there was no provider key to dispatch on, and a registrar slot would have bought a plugin-API bump for two import sites. Fixed by placement instead: the helpers are now `cogt/img_gen/img_gen_gemini_mapping.py` and `cogt/img_gen/img_gen_gpt_mapping.py`, and the Google worker and the gateway factory import *inward* to them. One `cogt → specific vendor` edge of this kind remains — `model_backends/backend_factory.py` reaching for `VertexAIFactory` — already deferred inside a function, and it self-resolves when VertexAI support is removed.+- **What pins the two bullets above.** The complete `cogt → pipelex.providers` list — the four config imports plus that one deferred factory import — is a golden set in `tests/unit/pipelex/cogt/test_cogt_dependency_boundaries.py`, together with the stronger fact that `pipelex/cogt/**` imports no vendor SDK at all. A sixth edge fails it, and nothing else in the repo would notice: both packages are runtime-layer, so the guard and the closure test are blind to an edge between them by construction. Golden sets rather than a rule, because these are *accepted* inversions — there is no predicate separating the sanctioned edges from a new one, and the point is to make the next one a diff a reviewer reads. Note the tempting generalization — *no vendor SDK anywhere in `pipelex/` outside `providers/`* — is **false**, and a test asserting it would be red on day one: `tools/pdf/pypdfium2_renderer.py`, `tools/storage/`, `tracing/` and `reporting/` import pypdfium2 and the AWS/GCP SDKs on purpose, because `providers/storage/` is a registration shim whose implementations live under `pipelex/tools/`. The scope that holds is `cogt`.+- `plugins/pipe_func_executor_registry.py` is typed by a protocol from `pipe_operators/` and defers that import under `TYPE_CHECKING` precisely because `pipelex.config` imports it and the inference layer imports `pipelex.config` — a module-level import there would drag the interpreter back into every inference closure. Being type-only it loads nothing, so it breaches neither rule — the sanctioned deferral pattern. The placement inversion itself is unfixed.+- **The one that stopped being an inversion.** `core/`'s Pipe-touching half — `pipe_abstract`, `pipe_blueprint`, `pipe_factory`, the renderers — imported the interpreter directly while sitting under a package the runtime layer wanted to declare. That was never a wrong *import* (it is a fact about what a pipe is), it was a wrong *address*, and it forced the declaration to enumerate core's data-model packages instead of naming `pipelex.core`. Fixed by placement: the modules are now `pipelex.pipe_machinery` and `pipelex.mthds_parsing`, and the six `pipelex.core.*` entries collapsed to one. Several of them still import `interpreter_hub` on purpose, to inject downward — that is the sanctioned direction and always was.- Broader measured inversions, out of scope for the hub boundary: `cogt → core`, `system → cogt`, `plugins → runtime_bridge`, and `cogt/model_backends/model_lists.py` importing `pipelex.cli.exceptions.PipelexCLIError`. What remains of `tools → cogt` is `tools/pdf/pypdfium2_renderer.py` reaching for `cogt.extract` and `cogt.image` types; the templating half of that cluster is gone (see [Placement, not coupling](#placement-not-coupling)).## For consumers outside this repodiff --git a/docs/contribute/keyword-only-arguments.md b/docs/contribute/keyword-only-arguments.mdindex ebf50af50..7e05ca64f 100644--- a/docs/contribute/keyword-only-arguments.md+++ b/docs/contribute/keyword-only-arguments.md@@ -20,6 +20,8 @@ A signature is a violation when any of these holds:- **Banned literal-typed subject** — the subject is annotated `bool`, `int`, or `float`, including their `Optional[X]` / `X | None` / `Union[X, None]` forms. This is a violation no matter what: a grant can never cover it, because call sites read as bare literals (`f(True)`, `retry(3)`) — exactly the opacity this convention exists to kill. `str` subjects remain grantable; they are the house style (`pipe_code`, `name`, `uri`, …). An unannotated subject is not provably literal and remains grantable.- **Stale grant** — a registry entry whose def no longer exists, whose recorded `param` no longer matches the def's subject, or whose def no longer has a positional subject at all (demoted, renamed, moved, or newly carved out). Staleness is symmetric and hard-fails: a rename or file move forces a deliberate re-grant, not silent rot.+The registry carries one more rule that is not about any signature: its entries must stay in sorted key order (see [Staleness is symmetric](#staleness-is-symmetric)).+## Exception 1 — granted subject parameters> **History note — this exception was narrowed, deliberately.** Exception 1 used to be a *generic* permission: any first non-`self`/`cls` parameter could stay positional, guard-approved, no questions asked. That judgment-shaped permission was systematically abused by coding agents, which left first arguments positional when they were not the subject or not obviously so — the check passed, so the prose was ignored. The permission is now an **explicitly granted, recorded exception**: judgment still exists, but it happens at grant time and in review of the registry diff, while CI stays 100% deterministic. Agents follow checks, not prose — so the check now carries the whole rule.@@ -34,7 +36,7 @@ param = "node"rationale = "Verb–object: renders the node; single obvious operand."```-The registry is machine-written and sorted by key, so diffs stay stable and merge conflicts resolve trivially. It is written **only** by the grant command; never edit it by hand except to delete a stale entry:+The registry is machine-written and sorted by key, so diffs stay stable and merge conflicts resolve trivially — and that order is **checked**, not merely claimed here (`unsorted-grant`). An unsorted registry parses fine and grants exactly the same subjects, so a bulk rewrite that scrambles it — a package move, a sed over paths — would otherwise break the invariant silently. It is written **only** by the grant command; never edit it by hand except to delete a stale entry:```bashmake subject-grant FUNC="pipelex/graph/render.py::render_node" RATIONALE="Verb–object: renders the node; single obvious operand."@@ -58,6 +60,8 @@ The grant is a permission, not a requirement — making the subject keyword-onlyThe guard verifies the registry in both directions on every run: a positional subject without a grant fails, and a grant without a matching def fails (`dead-grant`), as does a grant whose recorded `param` no longer matches the def's subject (`grant-param-mismatch`). Renames, file moves, demotions to all-keyword, and newly added carve-outs (`@override`, framework decorators) all kill the grant — delete the entry or re-grant deliberately. A missing or malformed `subject_grants.toml` is an explicit check error, never treated as an empty registry (that would mass-flag every granted subject in the tree).+File order is checked alongside them (`unsorted-grant`). Order is read from the raw text, not from the parsed registry: TOML declares table order insignificant, so a `dict` is no evidence of what the file looks like. The text scan is cross-checked against the parsed keys, and a disagreement is an explicit check error rather than a quietly narrowed scan — an entry the scan cannot see would otherwise be exempt from the order rule without anyone knowing.+### Registry schemaA registry entry carries exactly two keys — `param` and `rationale`; anything else fails the check. When the registry was introduced, every pre-existing positional subject entered a transitional review grind (treated as new, not grandfathered); that transition is over — every grant now carries a genuine, def-specific review rationale. `pipelex-dev check-keyword-only --report` shows the full inventory and the per-package grant counts.@@ -217,10 +221,11 @@ The entire `pipelex/` source tree is compliant, so the guard hard-blocks on **an| `literal-subject` | `bool`/`int`/`float` subject (incl. Optional/union-with-None) | make it keyword-only — grants are impossible || `grant-param-mismatch` | the grant's recorded `param` no longer matches the def | re-grant, or fix the registry || `dead-grant` | the grant matches no def with a positional subject | delete the entry (or re-grant after a rename/move) |+| `unsorted-grant` | the entry sits out of key order in the registry file | re-record any grant (it rewrites the file sorted), or move the entry back by hand |The guard runs at several gates:-- A Claude Code `PostToolUse` hook (`.claude/hooks/check-keyword-only.sh`, wired in `.claude/settings.json`) — the tightest loop. After every `Edit`/`Write`/`MultiEdit` of a `pipelex/**/*.py` file it checks just that file and blocks with the offending signatures if it regressed, so an agent learns at edit time rather than at the end of the session. It runs the stdlib-only core by file path (no Typer/hub import), so it costs a few tens of milliseconds — including one `tomllib` read of the registry. The hook is check-only — it never rewrites a file mid-edit. It cannot see registry-level staleness (dead grants are a full-scan concern); the full check owns those.+- A Claude Code `PostToolUse` hook (`.claude/hooks/check-keyword-only.sh`, wired in `.claude/settings.json`) — the tightest loop. After every `Edit`/`Write`/`MultiEdit` of a `pipelex/**/*.py` file it checks just that file and blocks with the offending signatures if it regressed, so an agent learns at edit time rather than at the end of the session. It runs the stdlib-only core by file path (no Typer/hub import), so it costs a few tens of milliseconds — including one `tomllib` read of the registry. The hook is check-only — it never rewrites a file mid-edit. It cannot see registry-level violations (dead grants and file order are whole-file concerns, invisible from one edited source file); the full check owns those.- `make agent-check` — the fast everyday gate. It runs the **auto-fixing** variant (`fix-keyword-only`) early, right after `fix-unused-imports` and before `ruff format`, so a mechanically-fixable violation is corrected in place instead of failing the build. The fixer is **non-gating** — it reports the violations it can't mechanically fix but does not abort — so `format`, `lint`, `pyright`, and `mypy` all still run (you get keyword-only *and* type feedback in a single pass, and the tree is never left half-mutated and unformatted). The **read-only** `check-keyword-only` then runs **last** and is what actually blocks on any remaining violation. ⚠ Note the fixer's reach: an **ungranted subject def is a violation**, so `make agent-check` will silently keyword-only it — record the grant BEFORE running checks if you want the subject to stay positional.- `make check` — the heavy aggregate gate. It runs the **check-only** `check-keyword-only` (no rewriting), so CI-equivalent runs stay read-only.- CI — a dedicated lint job (`lint-keyword-only` in `.github/workflows/lint-check.yml`) gated by the required `Lint (all)` status check, so no non-compliant signature can merge. This is the hard guarantee; the hook and `make` gates are local conveniences layered on top. The registry diff in the PR is where grant judgment gets reviewed.@@ -229,7 +234,7 @@ When you add or change a signature, place the bare `*` after the subject and gra## Auto-fix-`pipelex-dev check-keyword-only --fix` (exposed as `make fix-keyword-only` / `fko`, and run automatically inside `make agent-check`) rewrites every *mechanically-fixable* violation by inserting a bare `*` as far left as possible — immediately after `self`/`cls` (and after any `/`) — so **every** non-`self`/`cls` parameter becomes keyword-only, not just the ones after the subject: `def f(a, b)` becomes `def f(*, a, b)`, `def m(self, a, b)` becomes `def m(self, *, a, b)`, and an ungranted `def render(node)` becomes `def render(*, node)`. (The all-keyword form is always compliant and needs no grant — the fixer takes it.) `missing-star`, `ungranted-subject`, and `literal-subject` violations are all fixable this way; a `grant-param-mismatch` is never rewritten — a stale grant is a registry decision, not a signature to silently change. The raw insert lands on the def's original line(s); the `make fix-keyword-only` / `fko` target runs `ruff format` right after the rewrite, so the standalone path leaves a `ruff format`-clean tree (inside `agent-check` the later `format` step would normalize it anyway). The rewrite is idempotent and is re-parsed before being written — a rewrite that would not parse is discarded and the violation reported instead.+`pipelex-dev check-keyword-only --fix` (exposed as `make fix-keyword-only` / `fko`, and run automatically inside `make agent-check`) rewrites every *mechanically-fixable* violation by inserting a bare `*` as far left as possible — immediately after `self`/`cls` (and after any `/`) — so **every** non-`self`/`cls` parameter becomes keyword-only, not just the ones after the subject: `def f(a, b)` becomes `def f(*, a, b)`, `def m(self, a, b)` becomes `def m(self, *, a, b)`, and an ungranted `def render(node)` becomes `def render(*, node)`. (The all-keyword form is always compliant and needs no grant — the fixer takes it.) `missing-star`, `ungranted-subject`, and `literal-subject` violations are all fixable this way; the registry-level kinds (`grant-param-mismatch`, `dead-grant`, `unsorted-grant`) are never rewritten — the fixer edits signatures, and the registry has exactly one writer, the grant command. The raw insert lands on the def's original line(s); the `make fix-keyword-only` / `fko` target runs `ruff format` right after the rewrite, so the standalone path leaves a `ruff format`-clean tree (inside `agent-check` the later `format` step would normalize it anyway). The rewrite is idempotent and is re-parsed before being written — a rewrite that would not parse is discarded and the violation reported instead.A few shapes the guard flags cannot be fixed by a single bare-`*` insert, and are reported for a manual fix rather than rewritten:diff --git a/docs/contribute/registration-surface.md b/docs/contribute/registration-surface.mdnew file mode 100644index 000000000..6985434d4--- /dev/null+++ b/docs/contribute/registration-surface.md@@ -0,0 +1,48 @@+---+description: Every place a new pipe kind has to be registered, and why the list is as long as it is.+---++# Registration surface++A pipe kind is not one class. Adding `PipeFoo` means touching a handful of separate places, none of which the others infer — there is no plugin registry for pipe kinds and no scan of the tree. This page is the checklist, and the explanation of which of those places are genuinely load-bearing versus which look like duplication and are not.++## What a pipe kind is made of++Each kind lives in its own package under `pipelex/pipe_operators/<kind>/` or `pipelex/pipe_controllers/<kind>/`, and holds three classes:++| file | class | role |+| --- | --- | --- |+| `pipe_foo_blueprint.py` | `PipeFooBlueprint` | the MTHDS language surface — what a `.mthds` file parses into |+| `pipe_foo.py` | `PipeFoo` | the runnable pipe |+| `pipe_foo_factory.py` | `PipeFooFactory` | blueprint → pipe |++`PipeSignature` follows the same shape from `pipelex/pipe_signature/`, with the caveat noted below.++## The checklist++1. **The kind's package** — the three classes above, plus an `exceptions.py` if the kind raises its own errors (see the error-class location convention in the Python standards).++2. **The type tag** — add the value to `PipeType` in `pipelex/pipe_machinery/pipe_blueprint.py`, and give it an arm in the `category` property that maps it to `PipeCategory.PIPE_OPERATOR` or `PipeCategory.PIPE_CONTROLLER`. The match is exhaustive with no `case _`, so the type checker walks you to every remaining site — that is the point of writing it that way.++3. **The blueprint union** — add `PipeFooBlueprint` to `PipeBlueprintUnion` in `pipelex/mthds_parsing/pipelex_bundle_blueprint.py`. It is a pydantic discriminated union keyed on the `type` field, so a kind absent from the union is a parse error on any `.mthds` file that names it, not a silent skip.++4. **The registration manifest** — add `PipeFoo` and `PipeFooFactory` to `PipeRegistryModels` in `pipelex/pipe_machinery/registry_models.py`, in `PIPE_OPERATORS` / `PIPE_OPERATORS_FACTORY` or `PIPE_CONTROLLERS` / `PIPE_CONTROLLERS_FACTORY`. This is the one whose omission is **silent**: boot succeeds either way, and the failure surfaces later as a kajson deserialization error on a pipe. `tests/unit/pipelex/test_registry_models_split.py` pins the manifests against the class registry for exactly that reason.++5. **The spec layer** — add `PipeFooSpec` under `pipelex/builder/pipe/`, then register it in **both** `pipe_spec_map.py` (`pipe_type_to_spec_class`, the authoring lookup) and `pipe_spec_union.py` (`PipeSpecUnion`, the discriminated union). The two are separate on purpose: the union carries `PipeSignatureSpec`, the map does not, because a signature is not a user-selectable type.++## Why `core/` no longer holds the manifest++`PipeRegistryModels` used to live in `pipelex/core/registry_models.py` alongside core's value model. Importing it loads every pipe operator, every pipe controller and their factories — so a module filed under `core/` pulled in the whole interpreter, and `core` read as a dependant of the pipe packages it is supposed to sit below. The manifest now lives in `pipelex/pipe_machinery/`; `core.registry_models` keeps `CoreRegistryModels` (the stuff-content classes) and imports nothing from `pipe_operators` / `pipe_controllers` / `pipe_signature`.++Both manifests are registered side by side at boot (`pipelex/pipelex.py`), and they must stay **disjoint** — a class in both is a sign one half was edited without the other.++See [Hub Layering](hub-layering.md) for the layer boundary this split serves.++## The spec/blueprint parallel is deliberate++Steps 3 and 5 look like the same list written twice. They are not, and collapsing them would be a mistake:++- **Blueprints are the MTHDS language.** `PipeFooBlueprint` defines what an author may write in a `.mthds` file. It is the reference for the standard.+- **Specs are an authoring convenience for AI agents.** `PipeFooSpec` is a simplified shape with convenience fields that `to_blueprint()` transforms into blueprint fields. Spec-level fields deliberately differ from blueprint-level ones — `PipeComposeSpec.target_format` is a spec convenience with no blueprint counterpart, for instance.++The two layers evolve for different reasons and answer to different consumers, so they carry their own unions. When adding validation or a field, decide which layer owns it first: language rules go on blueprints, authoring convenience goes on specs. `pipelex/builder/CLAUDE.md` is the canonical statement of that split.diff --git a/docs/errors/anthropic-factory-error.md b/docs/errors/anthropic-factory-error.mdindex 99adae78e..d9c0a9059 100644--- a/docs/errors/anthropic-factory-error.md+++ b/docs/errors/anthropic-factory-error.md@@ -13,7 +13,7 @@ description: "Reference for the `AnthropicFactoryError` Pipelex error class."| `title` | Anthropic factory || `type_uri` | `https://docs.pipelex.com/latest/errors/anthropic-factory-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.anthropic.anthropic_exceptions` |+| Defined in | `pipelex.providers.anthropic.anthropic_exceptions` || Parent class | [`CogtError`](cogt-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/anthropic-model-listing-error.md b/docs/errors/anthropic-model-listing-error.mdindex 82ab64540..cb0c7d54a 100644--- a/docs/errors/anthropic-model-listing-error.md+++ b/docs/errors/anthropic-model-listing-error.md@@ -13,7 +13,7 @@ description: "Reference for the `AnthropicModelListingError` Pipelex error class| `title` | Anthropic model listing || `type_uri` | `https://docs.pipelex.com/latest/errors/anthropic-model-listing-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.anthropic.anthropic_exceptions` |+| Defined in | `pipelex.providers.anthropic.anthropic_exceptions` || Parent class | [`CogtError`](cogt-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/anthropic-sdk-unsupported-error.md b/docs/errors/anthropic-sdk-unsupported-error.mdindex afa0f33b3..13702676b 100644--- a/docs/errors/anthropic-sdk-unsupported-error.md+++ b/docs/errors/anthropic-sdk-unsupported-error.md@@ -13,7 +13,7 @@ description: "Reference for the `AnthropicSDKUnsupportedError` Pipelex error cla| `title` | Anthropic SDK unsupported || `type_uri` | `https://docs.pipelex.com/latest/errors/anthropic-sdk-unsupported-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.anthropic.anthropic_exceptions` |+| Defined in | `pipelex.providers.anthropic.anthropic_exceptions` || Parent class | [`CogtError`](cogt-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/anthropic-worker-configuration-error.md b/docs/errors/anthropic-worker-configuration-error.mdindex 49917930d..7de54be01 100644--- a/docs/errors/anthropic-worker-configuration-error.md+++ b/docs/errors/anthropic-worker-configuration-error.md@@ -13,7 +13,7 @@ description: "Reference for the `AnthropicWorkerConfigurationError` Pipelex erro| `title` | Anthropic worker configuration || `type_uri` | `https://docs.pipelex.com/latest/errors/anthropic-worker-configuration-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.anthropic.anthropic_exceptions` |+| Defined in | `pipelex.providers.anthropic.anthropic_exceptions` || Parent class | [`CogtError`](cogt-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/authoring-and-language.md b/docs/errors/authoring-and-language.mdindex 95e9af68c..1e0287003 100644--- a/docs/errors/authoring-and-language.md+++ b/docs/errors/authoring-and-language.md@@ -10,9 +10,13 @@ description: "Pipelex error classes in the Authoring & language area, grouped byEach error class below has a stable RFC 7807 `type` URI that dereferences to itsown page. Classes are grouped by subsystem.-## Core language+## MTHDS parsing- [`BundleElaboratorError`](bundle-elaborator-error.md) — Bundle elaborator+- [`MthdsParserError`](mthds-parser-error.md) — MTHDS parser++## Core language+- [`ConceptCodeError`](concept-code-error.md) — Concept code- [`ConceptError`](concept-error.md) — Concept error- [`ConceptFactoryError`](concept-factory-error.md) — Concept factory@@ -39,7 +43,6 @@ own page. Classes are grouped by subsystem.- [`PipeInputsFactoryError`](pipe-inputs-factory-error.md) — Pipe inputs factory- [`PipeOperatorModelChoiceError`](pipe-operator-model-choice-error.md) — Pipe operator model choice- [`PipeRunInputsError`](pipe-run-inputs-error.md) — Pipe run inputs-- [`PipelexInterpreterError`](pipelex-interpreter-error.md) — Pipelex interpreter- [`StructureClassError`](structure-class-error.md) — Structure class- [`StructureValidationError`](structure-validation-error.md) — Structure validation- [`StuffArtefactError`](stuff-artefact-error.md) — Stuff artefactdiff --git a/docs/errors/azure-credentials-error.md b/docs/errors/azure-credentials-error.mdindex 1cea71ecf..c64a54a09 100644--- a/docs/errors/azure-credentials-error.md+++ b/docs/errors/azure-credentials-error.md@@ -13,7 +13,7 @@ description: "Reference for the `AzureCredentialsError` Pipelex error class."| `title` | Azure credentials || `type_uri` | `https://docs.pipelex.com/latest/errors/azure-credentials-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.azure_rest.azure_exceptions` |+| Defined in | `pipelex.providers.azure_rest.azure_exceptions` || Parent class | [`CredentialsError`](credentials-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/bedrock-factory-error.md b/docs/errors/bedrock-factory-error.mdindex e0802b2a5..a7f9661da 100644--- a/docs/errors/bedrock-factory-error.md+++ b/docs/errors/bedrock-factory-error.md@@ -13,7 +13,7 @@ description: "Reference for the `BedrockFactoryError` Pipelex error class."| `title` | Bedrock factory || `type_uri` | `https://docs.pipelex.com/latest/errors/bedrock-factory-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.bedrock.bedrock_exceptions` |+| Defined in | `pipelex.providers.bedrock.bedrock_exceptions` || Parent class | [`CogtError`](cogt-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/bedrock-worker-configuration-error.md b/docs/errors/bedrock-worker-configuration-error.mdindex 4e3992d1a..d4c598f60 100644--- a/docs/errors/bedrock-worker-configuration-error.md+++ b/docs/errors/bedrock-worker-configuration-error.md@@ -13,7 +13,7 @@ description: "Reference for the `BedrockWorkerConfigurationError` Pipelex error| `title` | Bedrock worker configuration || `type_uri` | `https://docs.pipelex.com/latest/errors/bedrock-worker-configuration-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.bedrock.bedrock_exceptions` |+| Defined in | `pipelex.providers.bedrock.bedrock_exceptions` || Parent class | [`CogtError`](cogt-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/bundle-elaborator-error.md b/docs/errors/bundle-elaborator-error.mdindex 60969f627..f7da26ce4 100644--- a/docs/errors/bundle-elaborator-error.md+++ b/docs/errors/bundle-elaborator-error.md@@ -15,7 +15,7 @@ Raised when bundle elaboration fails (e.g. synthetic-name collision, invalid out| `title` | Bundle elaborator || `type_uri` | `https://docs.pipelex.com/latest/errors/bundle-elaborator-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.core.interpreter.exceptions` |-| Parent class | [`PipelexInterpreterError`](pipelex-interpreter-error.md) |+| Defined in | `pipelex.mthds_parsing.exceptions` |+| Parent class | [`MthdsParserError`](mthds-parser-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/gateway-credentials-error.md b/docs/errors/gateway-credentials-error.mdindex e633826cf..2c8c23124 100644--- a/docs/errors/gateway-credentials-error.md+++ b/docs/errors/gateway-credentials-error.md@@ -13,7 +13,7 @@ description: "Reference for the `GatewayCredentialsError` Pipelex error class."| `title` | Gateway credentials || `type_uri` | `https://docs.pipelex.com/latest/errors/gateway-credentials-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.gateway.gateway_exceptions` |+| Defined in | `pipelex.providers.gateway.gateway_exceptions` || Parent class | [`GatewayError`](gateway-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/gateway-deck-error.md b/docs/errors/gateway-deck-error.mdindex b4c869742..c5079dc0c 100644--- a/docs/errors/gateway-deck-error.md+++ b/docs/errors/gateway-deck-error.md@@ -13,7 +13,7 @@ description: "Reference for the `GatewayDeckError` Pipelex error class."| `title` | Gateway deck || `type_uri` | `https://docs.pipelex.com/latest/errors/gateway-deck-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.gateway.gateway_exceptions` |+| Defined in | `pipelex.providers.gateway.gateway_exceptions` || Parent class | [`GatewayError`](gateway-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/gateway-error.md b/docs/errors/gateway-error.mdindex 33c92dfad..b6dc5d7bb 100644--- a/docs/errors/gateway-error.md+++ b/docs/errors/gateway-error.md@@ -13,7 +13,7 @@ description: "Reference for the `GatewayError` Pipelex error class."| `title` | Gateway || `type_uri` | `https://docs.pipelex.com/latest/errors/gateway-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.gateway.gateway_exceptions` |+| Defined in | `pipelex.providers.gateway.gateway_exceptions` || Parent class | [`CogtError`](cogt-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/gateway-extract-response-error.md b/docs/errors/gateway-extract-response-error.mdindex 884e682e9..e65634ec4 100644--- a/docs/errors/gateway-extract-response-error.md+++ b/docs/errors/gateway-extract-response-error.md@@ -13,7 +13,7 @@ description: "Reference for the `GatewayExtractResponseError` Pipelex error clas| `title` | Gateway extract response || `type_uri` | `https://docs.pipelex.com/latest/errors/gateway-extract-response-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.gateway.gateway_exceptions` |+| Defined in | `pipelex.providers.gateway.gateway_exceptions` || Parent class | [`GatewayError`](gateway-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/gateway-factory-error.md b/docs/errors/gateway-factory-error.mdindex 0cc450a29..221e6f6a6 100644--- a/docs/errors/gateway-factory-error.md+++ b/docs/errors/gateway-factory-error.md@@ -13,7 +13,7 @@ description: "Reference for the `GatewayFactoryError` Pipelex error class."| `title` | Gateway factory || `type_uri` | `https://docs.pipelex.com/latest/errors/gateway-factory-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.gateway.gateway_exceptions` |+| Defined in | `pipelex.providers.gateway.gateway_exceptions` || Parent class | [`GatewayError`](gateway-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/gateway-search-response-error.md b/docs/errors/gateway-search-response-error.mdindex a5a5fc2de..44f8ba580 100644--- a/docs/errors/gateway-search-response-error.md+++ b/docs/errors/gateway-search-response-error.md@@ -13,7 +13,7 @@ description: "Reference for the `GatewaySearchResponseError` Pipelex error class| `title` | Gateway search response || `type_uri` | `https://docs.pipelex.com/latest/errors/gateway-search-response-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.gateway.gateway_exceptions` |+| Defined in | `pipelex.providers.gateway.gateway_exceptions` || Parent class | [`GatewayError`](gateway-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/google-img-gen-worker-error.md b/docs/errors/google-img-gen-worker-error.mdindex 80822ac7a..ead0ef2ac 100644--- a/docs/errors/google-img-gen-worker-error.md+++ b/docs/errors/google-img-gen-worker-error.md@@ -15,7 +15,7 @@ Base exception for Google Image Generation Worker errors.| `title` | Google img gen worker || `type_uri` | `https://docs.pipelex.com/latest/errors/google-img-gen-worker-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.google.google_exceptions` |+| Defined in | `pipelex.providers.google.google_exceptions` || Parent class | [`CogtError`](cogt-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/google-llm-worker-error.md b/docs/errors/google-llm-worker-error.mdindex f235dd05f..bb70ba6ca 100644--- a/docs/errors/google-llm-worker-error.md+++ b/docs/errors/google-llm-worker-error.md@@ -15,7 +15,7 @@ Base exception for Google LLM Worker errors.| `title` | Google LLM worker || `type_uri` | `https://docs.pipelex.com/latest/errors/google-llm-worker-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.google.google_exceptions` |+| Defined in | `pipelex.providers.google.google_exceptions` || Parent class | [`CogtError`](cogt-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/index.md b/docs/errors/index.mdindex cce7a6f29..1485f6a81 100644--- a/docs/errors/index.md+++ b/docs/errors/index.md@@ -15,9 +15,9 @@ Every Pipelex error class has a stable RFC 7807 `type` URI on the formThe classes are grouped into a few macro areas — pick the one that matches wherethe error came from:-- [Authoring & language](authoring-and-language.md) — Core language, Pipe operators, Pipe controllers, Pipe signatures, Builder, Libraries.+- [Authoring & language](authoring-and-language.md) — MTHDS parsing, Core language, Pipe operators, Pipe controllers, Pipe signatures, Builder, Libraries.- [Execution & runtime](execution-and-runtime.md) — Pipe execution, Pipeline execution, Runtime bridge, Graph, Tracing.-- [Inference & providers](inference-and-providers.md) — Inference (Cogt), Provider plugins.+- [Inference & providers](inference-and-providers.md) — Inference (Cogt), Provider adapters, Plugin system.- [Platform & tooling](platform-and-tooling.md) — Base & root errors, Tools, Kit, System & configuration, CLI, Codegen.See [Error Model](../under-the-hood/error-model.md) for the underlying contractdiff --git a/docs/errors/inference-and-providers.md b/docs/errors/inference-and-providers.mdindex 795ffad6a..5b6750b87 100644--- a/docs/errors/inference-and-providers.md+++ b/docs/errors/inference-and-providers.md@@ -74,7 +74,7 @@ own page. Classes are grouped by subsystem.- [`TemplateSigilSyntaxError`](template-sigil-syntax-error.md) — Template sigil syntax- [`UnsafeSchemaError`](unsafe-schema-error.md) — Unsafe schema-## Provider plugins+## Provider adapters- [`AnthropicFactoryError`](anthropic-factory-error.md) — Anthropic factory- [`AnthropicModelListingError`](anthropic-model-listing-error.md) — Anthropic model listing@@ -83,16 +83,6 @@ own page. Classes are grouped by subsystem.- [`AzureCredentialsError`](azure-credentials-error.md) — Azure credentials- [`BedrockFactoryError`](bedrock-factory-error.md) — Bedrock factory- [`BedrockWorkerConfigurationError`](bedrock-worker-configuration-error.md) — Bedrock worker configuration-- [`BrokenPluginError`](broken-plugin-error.md) — Broken plugin-- [`CoreUnconditionalPluginDisabledError`](core-unconditional-plugin-disabled-error.md) — Core unconditional plugin disabled-- [`DuplicateBundleValidatorError`](duplicate-bundle-validator-error.md) — Duplicate bundle validator-- [`DuplicateHttpErrorMapperError`](duplicate-http-error-mapper-error.md) — Duplicate http error mapper-- [`DuplicateInferenceBackendError`](duplicate-inference-backend-error.md) — Duplicate inference backend-- [`DuplicateModelListerError`](duplicate-model-lister-error.md) — Duplicate model lister-- [`DuplicateOrchestratorError`](duplicate-orchestrator-error.md) — Duplicate orchestrator-- [`DuplicatePipeFuncExecutorError`](duplicate-pipe-func-executor-error.md) — Duplicate pipe func executor-- [`DuplicateSecretsProviderError`](duplicate-secrets-provider-error.md) — Duplicate secrets provider-- [`DuplicateStorageProviderError`](duplicate-storage-provider-error.md) — Duplicate storage provider- [`GatewayCredentialsError`](gateway-credentials-error.md) — Gateway credentials- [`GatewayDeckError`](gateway-deck-error.md) — Gateway deck- [`GatewayError`](gateway-error.md) — Gateway@@ -101,23 +91,36 @@ own page. Classes are grouped by subsystem.- [`GatewaySearchResponseError`](gateway-search-response-error.md) — Gateway search response- [`GoogleImgGenWorkerError`](google-img-gen-worker-error.md) — Google img gen worker- [`GoogleLLMWorkerError`](google-llm-worker-error.md) — Google LLM worker-- [`HubSlotAlreadyClaimedError`](hub-slot-already-claimed-error.md) — Hub slot already claimed-- [`InferenceBackendNotFoundError`](inference-backend-not-found-error.md) — Inference backend not found- [`MistralExtractResponseError`](mistral-extract-response-error.md) — Mistral extract response- [`MistralModelListingError`](mistral-model-listing-error.md) — Mistral model listing- [`MistralPluginError`](mistral-plugin-error.md) — Mistral plugin- [`MistralWorkerConfigurationError`](mistral-worker-configuration-error.md) — Mistral worker configuration- [`OpenAIClientFactoryError`](open-ai-client-factory-error.md) — OpenAI client factory error-- [`PluginApiVersionMismatchError`](plugin-api-version-mismatch-error.md) — Plugin api version mismatch-- [`PluginError`](plugin-error.md) — Plugin error- [`PortkeyCredentialsError`](portkey-credentials-error.md) — Portkey credentials- [`PortkeyError`](portkey-error.md) — Portkey- [`PortkeyFactoryError`](portkey-factory-error.md) — Portkey factory+- [`VertexAIConfigError`](vertex-ai-config-error.md) — VertexAI configuration error+- [`VertexAICredentialsError`](vertex-ai-credentials-error.md) — VertexAI credentials error++## Plugin system++- [`BrokenPluginError`](broken-plugin-error.md) — Broken plugin+- [`CoreUnconditionalPluginDisabledError`](core-unconditional-plugin-disabled-error.md) — Core unconditional plugin disabled+- [`DuplicateBundleValidatorError`](duplicate-bundle-validator-error.md) — Duplicate bundle validator+- [`DuplicateHttpErrorMapperError`](duplicate-http-error-mapper-error.md) — Duplicate http error mapper+- [`DuplicateInferenceBackendError`](duplicate-inference-backend-error.md) — Duplicate inference backend+- [`DuplicateModelListerError`](duplicate-model-lister-error.md) — Duplicate model lister+- [`DuplicateOrchestratorError`](duplicate-orchestrator-error.md) — Duplicate orchestrator+- [`DuplicatePipeFuncExecutorError`](duplicate-pipe-func-executor-error.md) — Duplicate pipe func executor+- [`DuplicateSecretsProviderError`](duplicate-secrets-provider-error.md) — Duplicate secrets provider+- [`DuplicateStorageProviderError`](duplicate-storage-provider-error.md) — Duplicate storage provider+- [`HubSlotAlreadyClaimedError`](hub-slot-already-claimed-error.md) — Hub slot already claimed+- [`InferenceBackendNotFoundError`](inference-backend-not-found-error.md) — Inference backend not found+- [`PluginApiVersionMismatchError`](plugin-api-version-mismatch-error.md) — Plugin api version mismatch+- [`PluginError`](plugin-error.md) — Plugin error- [`UnknownBootOrchestratorError`](unknown-boot-orchestrator-error.md) — Unknown boot orchestrator- [`UnknownPipeFuncExecutionModeError`](unknown-pipe-func-execution-mode-error.md) — Unknown pipe func execution mode- [`UnknownSecretsMethodError`](unknown-secrets-method-error.md) — Unknown secrets method- [`UnknownStorageMethodError`](unknown-storage-method-error.md) — Unknown storage method-- [`VertexAIConfigError`](vertex-ai-config-error.md) — VertexAI configuration error-- [`VertexAICredentialsError`](vertex-ai-credentials-error.md) — VertexAI credentials error[Back to Error Reference](index.md)diff --git a/docs/errors/mistral-extract-response-error.md b/docs/errors/mistral-extract-response-error.mdindex b439856f3..672ccaca6 100644--- a/docs/errors/mistral-extract-response-error.md+++ b/docs/errors/mistral-extract-response-error.md@@ -13,7 +13,7 @@ description: "Reference for the `MistralExtractResponseError` Pipelex error clas| `title` | Mistral extract response || `type_uri` | `https://docs.pipelex.com/latest/errors/mistral-extract-response-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.mistral.mistral_exceptions` |+| Defined in | `pipelex.providers.mistral.mistral_exceptions` || Parent class | [`MistralPluginError`](mistral-plugin-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/mistral-model-listing-error.md b/docs/errors/mistral-model-listing-error.mdindex f78f36837..8ca804e6a 100644--- a/docs/errors/mistral-model-listing-error.md+++ b/docs/errors/mistral-model-listing-error.md@@ -13,7 +13,7 @@ description: "Reference for the `MistralModelListingError` Pipelex error class."| `title` | Mistral model listing || `type_uri` | `https://docs.pipelex.com/latest/errors/mistral-model-listing-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.mistral.mistral_exceptions` |+| Defined in | `pipelex.providers.mistral.mistral_exceptions` || Parent class | [`MistralPluginError`](mistral-plugin-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/mistral-plugin-error.md b/docs/errors/mistral-plugin-error.mdindex 5b188b012..fd4b20ecd 100644--- a/docs/errors/mistral-plugin-error.md+++ b/docs/errors/mistral-plugin-error.md@@ -13,7 +13,7 @@ description: "Reference for the `MistralPluginError` Pipelex error class."| `title` | Mistral plugin || `type_uri` | `https://docs.pipelex.com/latest/errors/mistral-plugin-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.mistral.mistral_exceptions` |+| Defined in | `pipelex.providers.mistral.mistral_exceptions` || Parent class | [`CogtError`](cogt-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/mistral-worker-configuration-error.md b/docs/errors/mistral-worker-configuration-error.mdindex 66e87efc4..85cf2cf48 100644--- a/docs/errors/mistral-worker-configuration-error.md+++ b/docs/errors/mistral-worker-configuration-error.md@@ -13,7 +13,7 @@ description: "Reference for the `MistralWorkerConfigurationError` Pipelex error| `title` | Mistral worker configuration || `type_uri` | `https://docs.pipelex.com/latest/errors/mistral-worker-configuration-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.mistral.mistral_exceptions` |+| Defined in | `pipelex.providers.mistral.mistral_exceptions` || Parent class | [`MistralPluginError`](mistral-plugin-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/mthds-parser-error.md b/docs/errors/mthds-parser-error.mdnew file mode 100644index 000000000..b4abf307d--- /dev/null+++ b/docs/errors/mthds-parser-error.md@@ -0,0 +1,21 @@+---+title: "MTHDS parser"+description: "Reference for the `MthdsParserError` Pipelex error class."+---++<!-- pipelex:generated -->++# MTHDS parser++Raised when MthdsParser fails.++| Field | Value |+|---|---|+| `error_type` | `MthdsParserError` |+| `title` | MTHDS parser |+| `type_uri` | `https://docs.pipelex.com/latest/errors/mthds-parser-error/` |+| `error_domain` | `input` |+| Defined in | `pipelex.mthds_parsing.exceptions` |+| Parent class | [`PipelexError`](pipelex-error.md) |++[Back to Error Reference](index.md)diff --git a/docs/errors/open-ai-client-factory-error.md b/docs/errors/open-ai-client-factory-error.mdindex 71e53a948..5caba3543 100644--- a/docs/errors/open-ai-client-factory-error.md+++ b/docs/errors/open-ai-client-factory-error.md@@ -13,7 +13,7 @@ description: "Reference for the `OpenAIClientFactoryError` Pipelex error class."| `title` | OpenAI client factory error || `type_uri` | `https://docs.pipelex.com/latest/errors/open-ai-client-factory-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.openai.openai_exceptions` |+| Defined in | `pipelex.providers.openai.openai_exceptions` || Parent class | [`CogtError`](cogt-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/pipelex-interpreter-error.md b/docs/errors/pipelex-interpreter-error.mddeleted file mode 100644index ac66bb2b1..000000000--- a/docs/errors/pipelex-interpreter-error.md+++ /dev/null@@ -1,21 +0,0 @@-----title: "Pipelex interpreter"-description: "Reference for the `PipelexInterpreterError` Pipelex error class."------<!-- pipelex:generated -->--# Pipelex interpreter--Raised when PipelexInterpreter fails.--| Field | Value |-|---|---|-| `error_type` | `PipelexInterpreterError` |-| `title` | Pipelex interpreter |-| `type_uri` | `https://docs.pipelex.com/latest/errors/pipelex-interpreter-error/` |-| `error_domain` | `input` |-| Defined in | `pipelex.core.interpreter.exceptions` |-| Parent class | [`PipelexError`](pipelex-error.md) |--[Back to Error Reference](index.md)diff --git a/docs/errors/portkey-credentials-error.md b/docs/errors/portkey-credentials-error.mdindex 299b9737a..66d73607e 100644--- a/docs/errors/portkey-credentials-error.md+++ b/docs/errors/portkey-credentials-error.md@@ -13,7 +13,7 @@ description: "Reference for the `PortkeyCredentialsError` Pipelex error class."| `title` | Portkey credentials || `type_uri` | `https://docs.pipelex.com/latest/errors/portkey-credentials-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.portkey.portkey_exceptions` |+| Defined in | `pipelex.providers.portkey.portkey_exceptions` || Parent class | [`PortkeyError`](portkey-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/portkey-error.md b/docs/errors/portkey-error.mdindex 0eba53ee4..32b5e55db 100644--- a/docs/errors/portkey-error.md+++ b/docs/errors/portkey-error.md@@ -13,7 +13,7 @@ description: "Reference for the `PortkeyError` Pipelex error class."| `title` | Portkey || `type_uri` | `https://docs.pipelex.com/latest/errors/portkey-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.portkey.portkey_exceptions` |+| Defined in | `pipelex.providers.portkey.portkey_exceptions` || Parent class | [`CogtError`](cogt-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/portkey-factory-error.md b/docs/errors/portkey-factory-error.mdindex 28ed1465c..7866f181d 100644--- a/docs/errors/portkey-factory-error.md+++ b/docs/errors/portkey-factory-error.md@@ -13,7 +13,7 @@ description: "Reference for the `PortkeyFactoryError` Pipelex error class."| `title` | Portkey factory || `type_uri` | `https://docs.pipelex.com/latest/errors/portkey-factory-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.portkey.portkey_exceptions` |+| Defined in | `pipelex.providers.portkey.portkey_exceptions` || Parent class | [`PortkeyError`](portkey-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/vertex-ai-config-error.md b/docs/errors/vertex-ai-config-error.mdindex bad2ac630..78707314b 100644--- a/docs/errors/vertex-ai-config-error.md+++ b/docs/errors/vertex-ai-config-error.md@@ -13,7 +13,7 @@ description: "Reference for the `VertexAIConfigError` Pipelex error class."| `title` | VertexAI configuration error || `type_uri` | `https://docs.pipelex.com/latest/errors/vertex-ai-config-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.openai.openai_exceptions` |+| Defined in | `pipelex.providers.openai.openai_exceptions` || Parent class | [`CogtError`](cogt-error.md) |[Back to Error Reference](index.md)diff --git a/docs/errors/vertex-ai-credentials-error.md b/docs/errors/vertex-ai-credentials-error.mdindex 21a5bb093..d78e2678e 100644--- a/docs/errors/vertex-ai-credentials-error.md+++ b/docs/errors/vertex-ai-credentials-error.md@@ -13,7 +13,7 @@ description: "Reference for the `VertexAICredentialsError` Pipelex error class."| `title` | VertexAI credentials error || `type_uri` | `https://docs.pipelex.com/latest/errors/vertex-ai-credentials-error/` || `error_domain` | _(inherited from parent)_ |-| Defined in | `pipelex.plugins.openai.openai_exceptions` |+| Defined in | `pipelex.providers.openai.openai_exceptions` || Parent class | [`CredentialsError`](credentials-error.md) |[Back to Error Reference](index.md)diff --git a/docs/under-the-hood/architecture-overview.md b/docs/under-the-hood/architecture-overview.mdindex 5a50706e1..ee4b4f269 100644--- a/docs/under-the-hood/architecture-overview.md+++ b/docs/under-the-hood/architecture-overview.md@@ -77,18 +77,19 @@ The COGT layer abstracts AI provider details from business logic:### Plugin System-Located in [`pipelex/plugins/`](https://github.com/Pipelex/pipelex/tree/main/pipelex/plugins)+Two packages, one for the mechanism and one for the built-in adapters:-Provider-specific integrations handle API specifics:+- [`pipelex/plugins/`](https://github.com/Pipelex/pipelex/tree/main/pipelex/plugins) — the plugin **mechanism**: the `PipelexPlugin` contract, the registrar every plugin registers into, and the capability registries. This is what an out-of-tree plugin imports, and what the `pipelex.plugins` entry point resolves against.+- [`pipelex/providers/`](https://github.com/Pipelex/pipelex/tree/main/pipelex/providers) — the built-in **provider adapters**, one directory per vendor, each handling that vendor's API specifics:-- OpenAI-- Anthropic-- Google (Gemini)-- Mistral-- AWS Bedrock-- And more...+ - OpenAI+ - Anthropic+ - Google (Gemini)+ - Mistral+ - AWS Bedrock+ - And more...-Each plugin translates Pipelex's unified interface into provider-specific API calls.+The dependency runs one way: adapters depend on the mechanism, never the reverse. Each adapter translates Pipelex's unified interface into provider-specific API calls.---diff --git a/docs/under-the-hood/build-time-elaboration.md b/docs/under-the-hood/build-time-elaboration.mdindex 72456424a..8592b5410 100644--- a/docs/under-the-hood/build-time-elaboration.md+++ b/docs/under-the-hood/build-time-elaboration.md@@ -11,7 +11,7 @@ Today, exactly one directive is elaborated: `structuring_method = "preliminary_t## Where it runs-`BundleElaborator.elaborate(bundle)` runs inside `PipelexInterpreter.make_pipelex_bundle_blueprint()`, right after the bundle dict has been validated into a `PipelexBundleBlueprint`. Every code path that loads a bundle from a `.mthds` file goes through it.+`BundleElaborator.elaborate(bundle)` runs inside `MthdsParser.make_pipelex_bundle_blueprint()`, right after the bundle dict has been validated into a `PipelexBundleBlueprint`. Every code path that loads a bundle from a `.mthds` file goes through it.The elaborator has a fast-path short-circuit: if no pipe in the bundle carries `structuring_method = "preliminary_text"`, the input bundle is returned unchanged (identity-preserving). Loading a bundle without preliminary-text pipes pays no overhead.diff --git a/docs/under-the-hood/error-model.md b/docs/under-the-hood/error-model.mdindex 5aa2165d0..c32535966 100644--- a/docs/under-the-hood/error-model.md+++ b/docs/under-the-hood/error-model.md@@ -36,7 +36,7 @@ An error rises through a series of layers. Each layer has exactly one job.| **4 — CLI factories** | `cli_factory.py`, `agent_cli_factory.py` | Catch setup errors, route to handlers || **3 — Pipeline runner** | `PipelexMTHDSProtocol.execute()` | Catch + wrap as `PipelineExecutionError` || **2 — Pipe router / operators** | `PipeRouter`, pipe operators | Catch + wrap with pipe context (`pipe_code`, `pipe_stack`) |-| **1 — Workers / SDK calls** | `pipelex/plugins/*/` | **Catch the SDK exception → classify → raise `CogtError`** |+| **1 — Workers / SDK calls** | `pipelex/providers/*/` | **Catch the SDK exception → classify → raise `CogtError`** || **0 — Third-party SDKs** | OpenAI, Anthropic, Google, … | Raise raw, untyped provider exceptions |Classification happens once, at **Layer 1**. Layers 2–5 are wrappers: they attach context as they catch and re-raise, but the `error_category`, `error_domain`, `model`, and `provider` set at Layer 1 reach Layer 5 unchanged (see [Cause-Chain Enrichment](#cause-chain-enrichment)).@@ -64,6 +64,14 @@ Classification happens once, at **Layer 1**. Layers 2–5 are wrappers: they att`PipelexError.to_error_report()` is the entry point. `to_dict()` serializes, dropping `None` fields; `from_dict()` is its strict inverse.+### The identity triple, and why renaming an error class is a wire break++`error_type`, `title` and `type_uri` are the three identity fields on every report. `title` and `type_uri` are *presentation*, and each has a declaration hatch — set `_declared_title` or `_declared_type_uri` directly in a subclass body and that value is used verbatim instead of the auto-derived one (inheritance is deliberately bypassed via `cls.__dict__`, so a parent's curated title never captures its subclasses).++`error_type` has no such hatch: it is `type(self).__name__`, the Python class name with no indirection. That makes it the **machine contract** — consumers outside this repo `switch` on that string. Renaming an error class therefore breaks them *silently*: their build stays green and the branch simply stops matching, falling through to a generic error path.++The guard against that is a committed snapshot of the full `(error_type, title, type_uri)` set at `tests/data/errors/error_identity.txt`, regenerated with `make generate-error-identity` (alias `make gei`) and gated by `tests/unit/pipelex/errors/test_error_identity_snapshot.py`. A rename cannot land without producing a reviewable one-line-pair diff on that file at the moment it is made — which is also the moment to plan the matching consumer updates.+### `validation_errors` — structured bundle-validation diagnosticsA bundle-validation failure (`ValidateBundleError`) aggregates per-error data across stages and projects it onto `validation_errors` as a list of typed `ValidationErrorItem`s, so the structured error report an HTTP API surfaces carries machine-mappable diagnostics (not just a single `detail` string). Each item's `category` is one of the **closed** `ValidationErrorCategory` set:@@ -169,7 +177,7 @@ class PipelexConfigError(PipelexError):## Worker Classification-Layer 0 → Layer 1. Every inference worker under `pipelex/plugins/*/` catches its SDK's typed exceptions and re-raises a categorized `CogtError`.+Layer 0 → Layer 1. Every inference worker under `pipelex/providers/*/` catches its SDK's typed exceptions and re-raises a categorized `CogtError`.### The Uniform Shape — Extract / Classify / Render@@ -418,7 +426,7 @@ InferenceErrorCategory.TRANSIENT.is_retryable # True — only TRANSIENT| `pipelex/cogt/inference/error_classify.py` | Classify — `classify_inference_error()`, `ClassificationResult` || `pipelex/cogt/inference/error_render.py` | Render — `render_inference_error()`, `InferenceErrorFamily` || `pipelex/cogt/inference/provider_name.py` | `ProviderName` enum keying the extract-fn registry |-| `pipelex/plugins/*/` | Per-provider inference workers — Layer 0 → 1 classification |+| `pipelex/providers/*/` | Per-provider inference workers — Layer 0 → 1 classification || `pipelex/pipeline/exceptions.py` | `PipelineExecutionError`, `PipeExecutionError` || `pipelex/cli/error_handlers.py` | Human CLI Rich panels — `display_error_panel()` || `pipelex/cli/agent_cli/commands/agent_output.py` | Agent CLI JSON / markdown delivery |diff --git a/docs/under-the-hood/inference-backend-plugins.md b/docs/under-the-hood/inference-backend-plugins.mdindex 57c2b053d..f4c668e5a 100644--- a/docs/under-the-hood/inference-backend-plugins.md+++ b/docs/under-the-hood/inference-backend-plugins.md@@ -15,8 +15,8 @@ Core names no backend by import or by string. The built-in drivers (OpenAI, Gate```boot (Pipelex.setup)- └─ build_registrar(config) # pure, import-light- ├─ for each plugin in BUILTIN_PLUGINS+ └─ build_registrar(config, builtin_plugins=BUILTIN_PLUGINS, …) # pure, import-light+ ├─ for each built-in plugin (both layers' halves, composed)└─ for each installed "pipelex.plugins" entry point└─ plugin.register(registrar) # side-effect-free└─ registrar.add_inference_backend(family=…, sdk=…, make_worker=…)diff --git a/docs/under-the-hood/orchestrator-plugins.md b/docs/under-the-hood/orchestrator-plugins.mdindex 738f3b3b7..503e8e82e 100644--- a/docs/under-the-hood/orchestrator-plugins.md+++ b/docs/under-the-hood/orchestrator-plugins.md@@ -26,6 +26,8 @@ An **orchestrator** is what knows how to run a pipe under one token. Core namesThe registry is built once at boot from whatever the discovered plugins contributed (`build_registrar` → `OrchestratorRegistry` on the hub). There is no `match orchestration_mode:` anywhere in the bridge — the token set is open, so validation is the registry lookup itself; adding a mode's behavior means registering an orchestrator for its token, nothing in core changes.+The *port* — `OrchestratorProtocol` and its registry — is runtime-layer, and the registry is set on the `RuntimeHub`. An orchestrator *adapter* is not: constructing one names the method interpreter, so the built-in `direct` one lives in `pipelex/interpreter_plugins/` rather than beside the inference plugins. That split only concerns in-tree built-ins; an out-of-tree plugin sits in no declared layer and is unaffected. See [Hub layering](../contribute/hub-layering.md#where-the-built-in-plugins-split).+!!! note "Open seam, closed host-side entry"The host-side entry — the bridge entry point and `PipeJob` builder, plus the dispatch primitives that decode the boundary payload, scope the per-call library, and deliver results — lives in the **closed `pipelex-transport` library**. Embedding Pipelex into a host runtime (Temporal, Mistral, Airflow, your own) is a Pipelex [commercial capability](https://pipelex.com/products#durable-execution), not an open extension point. What stays **open** is the seam a third-party orchestrator extends: the orchestrator registry, `OrchestratorProtocol`, and the `pipelex.runtime_bridge` modules listed in [The Orchestrator SPI](#the-orchestrator-spi) below.@@ -203,7 +205,7 @@ What an out-of-tree orchestrator imports *is* a contract. The SPI is a documenteThe orchestrator itself (`pipelex_temporal/temporal_orchestrators.py`) keeps the `WorkflowExecutionError` catch and the `make_workflow_id` recompute in the blocking `execute` arm. It serializes its `PipeOutput` through `pipelex.runtime_bridge.serialization`, shared with the core DIRECT orchestrator so the boundary shape cannot drift.-The Temporal plugin is **external** — it ships as the `pipelex-temporal` distribution and is discovered through a `pipelex.plugins` entry point in that dist's `pyproject.toml`, not through `BUILTIN_PLUGINS`. Core's `BUILTIN_PLUGINS` (`pipelex/plugins/builtins.py`) holds only the always-shipped inference and `direct` plugins and explicitly excludes Temporal; installing `pipelex-temporal` is all it takes to make the `"temporal"` orchestrator available — zero config, no core import of `temporalio`. Its operational `worker` / `setup-namespace` commands ship as the standalone `pipelex-temporal` console script, so they travel with that dist.+The Temporal plugin is **external** — it ships as the `pipelex-temporal` distribution and is discovered through a `pipelex.plugins` entry point in that dist's `pyproject.toml`, not through `BUILTIN_PLUGINS`. Core's built-ins hold only the always-shipped inference and `direct` plugins and explicitly exclude Temporal — split by layer across `pipelex/providers/builtins.py` (the runtime adapters) and `pipelex/interpreter_plugins/builtins.py` (the interpreter-touching `direct` and `pipe_func` plugins, which is also where the two halves are composed); installing `pipelex-temporal` is all it takes to make the `"temporal"` orchestrator available — zero config, no core import of `temporalio`. Its operational `worker` / `setup-namespace` commands ship as the standalone `pipelex-temporal` console script, so they travel with that dist.---diff --git a/docs/under-the-hood/reasoning-controls.md b/docs/under-the-hood/reasoning-controls.mdindex 7d1023827..1a691e185 100644--- a/docs/under-the-hood/reasoning-controls.md+++ b/docs/under-the-hood/reasoning-controls.md@@ -334,7 +334,7 @@ Each provider has an `effort_to_level_map` in its subconfig within `pipelex.tomlThe special value `"disabled"` causes the accessor to return `None`, signaling that reasoning should be skipped. OpenAI uses `"none"` as a valid API value instead (not `"disabled"`).-The level is resolved at runtime via `<ProviderConfig>.get_reasoning_level()` in each plugin's config module (e.g., `pipelex/plugins/openai/openai_config.py`). Each config class returns the provider's native SDK type.+The level is resolved at runtime via `<ProviderConfig>.get_reasoning_level()` in each plugin's config module (e.g., `pipelex/providers/openai/openai_config.py`). Each config class returns the provider's native SDK type.## Effort-to-Budget Configuration@@ -438,17 +438,17 @@ All reasoning-related errors use `LLMCapabilityError` (`pipelex/cogt/exceptions.| `pipelex/cogt/llm/reasoning_config_base.py` | Shared helpers: `EffortToLevelMap`, `validate_effort_to_level_map()`, `get_reasoning_level_str()` || `pipelex/cogt/llm/llm_setting.py` | `LLMSetting` with reasoning fields and `make_llm_job_params()` || `pipelex/cogt/config_cogt.py` | `LLMConfig` with `get_reasoning_budget()` and effort-to-budget map validation |-| `pipelex/plugins/openai/openai_config.py` | `OpenAIConfig` with `get_reasoning_level()` returning `ChatCompletionReasoningEffort \| None` |-| `pipelex/plugins/anthropic/anthropic_config.py` | `AnthropicConfig` with `get_reasoning_level()` returning `AnthropicEffortLevel \| None` |-| `pipelex/plugins/google/google_config.py` | `GoogleConfig` with `get_reasoning_level()` returning `genai_types.ThinkingLevel \| None` |-| `pipelex/plugins/mistral/mistral_config.py` | `MistralConfig` with `get_reasoning_level()` returning `MistralPromptMode \| None` |+| `pipelex/providers/openai/openai_config.py` | `OpenAIConfig` with `get_reasoning_level()` returning `ChatCompletionReasoningEffort \| None` |+| `pipelex/providers/anthropic/anthropic_config.py` | `AnthropicConfig` with `get_reasoning_level()` returning `AnthropicEffortLevel \| None` |+| `pipelex/providers/google/google_config.py` | `GoogleConfig` with `get_reasoning_level()` returning `genai_types.ThinkingLevel \| None` |+| `pipelex/providers/mistral/mistral_config.py` | `MistralConfig` with `get_reasoning_level()` returning `MistralPromptMode \| None` || `pipelex/cogt/model_backends/model_spec.py` | `InferenceModelSpec.thinking_mode` field |-| `pipelex/plugins/openai/openai_completions_llm_worker.py` | OpenAI Completions reasoning resolution |-| `pipelex/plugins/openai/openai_responses_llm_worker.py` | OpenAI Responses reasoning resolution |-| `pipelex/plugins/anthropic/anthropic_llm_worker.py` | Anthropic thinking params builder |-| `pipelex/plugins/google/google_llm_worker.py` | Google thinking config builder |-| `pipelex/plugins/mistral/mistral_llm_worker.py` | Mistral prompt mode resolution |-| `pipelex/plugins/bedrock/bedrock_llm_worker.py` | Bedrock reasoning validation |+| `pipelex/providers/openai/openai_completions_llm_worker.py` | OpenAI Completions reasoning resolution |+| `pipelex/providers/openai/openai_responses_llm_worker.py` | OpenAI Responses reasoning resolution |+| `pipelex/providers/anthropic/anthropic_llm_worker.py` | Anthropic thinking params builder |+| `pipelex/providers/google/google_llm_worker.py` | Google thinking config builder |+| `pipelex/providers/mistral/mistral_llm_worker.py` | Mistral prompt mode resolution |+| `pipelex/providers/bedrock/bedrock_llm_worker.py` | Bedrock reasoning validation || `pipelex/pipelex.toml` | Default effort-to-budget maps and effort-to-level maps |---diff --git a/docs/under-the-hood/secrets-provider-plugins.md b/docs/under-the-hood/secrets-provider-plugins.mdindex 06e49ebfb..0280793d0 100644--- a/docs/under-the-hood/secrets-provider-plugins.md+++ b/docs/under-the-hood/secrets-provider-plugins.md@@ -27,8 +27,8 @@ This is deliberately **not** a hub slot (those are orchestrator-coupled, claimed```boot (Pipelex.setup)- └─ build_registrar(config) # pure, import-light- ├─ for each plugin in BUILTIN_PLUGINS (SecretsPlugin is one)+ └─ build_registrar(config, builtin_plugins=BUILTIN_PLUGINS, …) # pure, import-light+ ├─ for each built-in plugin (SecretsPlugin is one)└─ for each installed "pipelex.plugins" entry point└─ plugin.register(registrar) # side-effect-free└─ registrar.add_secrets_provider(method=…, factory=…)@@ -86,7 +86,7 @@ The factory is a plain callable stored at registration and **invoked only at the## The built-in `SecretsPlugin`-`pipelex/plugins/secrets/secrets_plugin.py` is the reference secrets plugin. It is **core-unconditional** — a secrets provider is required infra, so it joins `CORE_UNCONDITIONAL_PLUGIN_NAMES` and cannot be disabled into a boot with no secrets provider:+`pipelex/providers/secrets/secrets_plugin.py` is the reference secrets plugin. It is **core-unconditional** — a secrets provider is required infra, so it joins the runtime layer's `RUNTIME_CORE_UNCONDITIONAL_PLUGIN_NAMES` — composed into `CORE_UNCONDITIONAL_PLUGIN_NAMES` at the boot entrypoint — and cannot be disabled into a boot with no secrets provider:```pythonclass SecretsPlugin:diff --git a/docs/under-the-hood/storage-provider-plugins.md b/docs/under-the-hood/storage-provider-plugins.mdindex c5a1a5212..0d3cc7d1a 100644--- a/docs/under-the-hood/storage-provider-plugins.md+++ b/docs/under-the-hood/storage-provider-plugins.md@@ -25,8 +25,8 @@ This is deliberately **not** a hub slot (those are orchestrator-coupled, claimed```boot (Pipelex.setup)- └─ build_registrar(config) # pure, import-light- ├─ for each plugin in BUILTIN_PLUGINS (StoragePlugin is one)+ └─ build_registrar(config, builtin_plugins=BUILTIN_PLUGINS, …) # pure, import-light+ ├─ for each built-in plugin (StoragePlugin is one)└─ for each installed "pipelex.plugins" entry point└─ plugin.register(registrar) # side-effect-free└─ registrar.add_storage_provider(method=…, factory=…)@@ -79,7 +79,7 @@ The factory is a plain callable stored at registration and **invoked only at the## The built-in `StoragePlugin`-`pipelex/plugins/storage/storage_plugin.py` is the reference storage plugin. It is **core-unconditional** — storage is required infra, so it joins `CORE_UNCONDITIONAL_PLUGIN_NAMES` and cannot be disabled into a boot with no storage:+`pipelex/providers/storage/storage_plugin.py` is the reference storage plugin. It is **core-unconditional** — storage is required infra, so it joins the runtime layer's `RUNTIME_CORE_UNCONDITIONAL_PLUGIN_NAMES` — composed into `CORE_UNCONDITIONAL_PLUGIN_NAMES` at the boot entrypoint — and cannot be disabled into a boot with no storage:```pythonclass StoragePlugin:diff --git a/mkdocs.yml b/mkdocs.ymlindex 955faed52..40d964088 100644--- a/mkdocs.yml+++ b/mkdocs.yml@@ -58,6 +58,9 @@ plugins:separator: '[\s\-\.]+'- redirects:redirect_maps:+ # `PipelexInterpreterError` was renamed `MthdsParserError`; the error page filename and the+ # `type_uri` it publishes both derive from the class name, so the retired URI needs a redirect.+ 'errors/pipelex-interpreter-error.md': 'errors/mthds-parser-error.md''under-the-hood/temporal-deployment.md': 'distributed-execution/index.md''distributed-execution/temporal/index.md': 'distributed-execution/index.md''distributed-execution/cluster-setup.md': 'distributed-execution/index.md'@@ -330,6 +333,7 @@ plugins:- contribute/configuration-defaults-and-overrides.md: "Configuration Internals"- contribute/keyword-only-arguments.md: "Keyword-Only Arguments"- contribute/hub-layering.md: "Hub Layering"+ - contribute/registration-surface.md: "Registration Surface"- contribute/drift-contracts.md: "Drift Contracts"- changelog.md: "Changelog"@@ -569,6 +573,7 @@ nav:- Configuration Internals: contribute/configuration-defaults-and-overrides.md- Keyword-Only Arguments: contribute/keyword-only-arguments.md- Hub Layering: contribute/hub-layering.md+ - Registration Surface: contribute/registration-surface.md- Drift Contracts: contribute/drift-contracts.md- Code of Conduct: CODE_OF_CONDUCT.md- License: license.mddiff --git a/pipelex/base_exceptions.py b/pipelex/base_exceptions.pyindex fdffa7d7f..0db7efe96 100644--- a/pipelex/base_exceptions.py+++ b/pipelex/base_exceptions.py@@ -123,7 +123,7 @@ class DisclosureMode(StrEnum):- A report flagged :attr:`ErrorReport.caller_facing_message` keeps its``message`` and ``user_action``. The flag is set by error classes whosemessage is genuinely caller-facing copy — text describing the *caller's- own* input, e.g. ``PipelexInterpreterError`` (a ``.mthds`` syntax error)+ own* input, e.g. ``MthdsParserError`` (a ``.mthds`` syntax error)or ``ValidateBundleError`` (a failed bundle validation).- Every other report has its ``message`` replaced with a genericplaceholder and its ``user_action`` dropped, keeping only the stablediff --git a/pipelex/builder/CLAUDE.md b/pipelex/builder/CLAUDE.mdindex 81047f7d4..5807b6086 100644--- a/pipelex/builder/CLAUDE.md+++ b/pipelex/builder/CLAUDE.md@@ -60,7 +60,7 @@ PipeSpec and ConceptSpec subclasses in this directory are a **convenience authorThe ground truth is the **blueprint** layer:-- **Blueprints** (`pipelex/pipe_operators/`, `pipelex/pipe_controllers/`, `pipelex/core/`) define the actual MTHDS language. They are what `.mthds` files parse into via `PipelexInterpreter.make_pipelex_bundle_blueprint()`.+- **Blueprints** (`pipelex/pipe_operators/`, `pipelex/pipe_controllers/`, `pipelex/pipe_machinery/`, `pipelex/mthds_parsing/`, `pipelex/core/`) define the actual MTHDS language. They are what `.mthds` files parse into via `MthdsParser.make_pipelex_bundle_blueprint()`. The base `PipeBlueprint` is in `pipe_machinery/pipe_blueprint.py`, the `PipelexBundleBlueprint` the parser produces is in `mthds_parsing/pipelex_bundle_blueprint.py`, and the concept/domain blueprints are in `core/`.- **Specs** are transformed into blueprints via `to_blueprint()` and then discarded. Spec-level fields (e.g., `PipeComposeSpec.target_format`) may not exist on the corresponding blueprint (e.g., `PipeComposeBlueprint` uses `TemplateBlueprint` with `category` + `templating_style` instead).When reviewing or modifying code: do not assume that a validation rule on a PipeSpec subclass reflects a rule of the MTHDS language. Check the corresponding blueprint class.diff --git a/pipelex/builder/bundle_spec.py b/pipelex/builder/bundle_spec.pyindex 5ac7da340..fa7e0ea5f 100644--- a/pipelex/builder/bundle_spec.py+++ b/pipelex/builder/bundle_spec.py@@ -9,13 +9,13 @@ from typing_extensions import overridefrom pipelex.builder.concept.concept_spec import ConceptSpecfrom pipelex.builder.exceptions import PipelexBundleSpecBlueprintErrorfrom pipelex.builder.pipe.pipe_spec_union import PipeSpecUnion-from pipelex.core.bundles.pipe_sorter import sort_pipes_by_dependencies-from pipelex.core.bundles.pipelex_bundle_blueprint import PipeBlueprintUnion, PipelexBundleBlueprintfrom pipelex.core.domains.exceptions import DomainCodeErrorfrom pipelex.core.domains.validation import validate_domain_code-from pipelex.core.pipes.pipe_blueprint import SIGNATURE_ONLY_KEYS, normalize_typeless_signature_section-from pipelex.core.pipes.validation import is_pipe_code_validfrom pipelex.core.stuffs.structured_content import StructuredContent+from pipelex.mthds_parsing.pipe_sorter import sort_pipes_by_dependencies+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipeBlueprintUnion, PipelexBundleBlueprint+from pipelex.pipe_machinery.pipe_blueprint import SIGNATURE_ONLY_KEYS, normalize_typeless_signature_section+from pipelex.pipe_machinery.validation import is_pipe_code_validfrom pipelex.tools.misc.pretty import PrettyPrintablefrom pipelex.tools.typing.pydantic_utils import format_pydantic_validation_errordiff --git a/pipelex/builder/conventions.py b/pipelex/builder/conventions.pyindex e61b46194..2a6dd78d6 100644--- a/pipelex/builder/conventions.py+++ b/pipelex/builder/conventions.py@@ -4,7 +4,7 @@ These constants define the standard file names produced by the builderand expected by the runner when auto-detecting from a directory."""-from pipelex.core.interpreter.helpers import MTHDS_EXTENSION+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSIONDEFAULT_BUNDLE_FILE_NAME = f"bundle{MTHDS_EXTENSION}"DEFAULT_INPUTS_FILE_NAME = "inputs.json"diff --git a/pipelex/builder/operations/inputs_ops.py b/pipelex/builder/operations/inputs_ops.pyindex 91a56c778..398220869 100644--- a/pipelex/builder/operations/inputs_ops.py+++ b/pipelex/builder/operations/inputs_ops.py@@ -5,9 +5,9 @@ from __future__ import annotationsimport jsonfrom typing import TYPE_CHECKING, Any-from pipelex.core.pipes.pipe_factory import PipeFactory-from pipelex.core.pipes.rendering.input_renderer import build_concept_comments, render_inputsfrom pipelex.interpreter_hub import get_library_manager, get_required_pipe, resolve_library_dirs, set_current_library+from pipelex.pipe_machinery.pipe_factory import PipeFactory+from pipelex.pipe_machinery.rendering.input_renderer import build_concept_comments, render_inputsfrom pipelex.pipeline.blueprint_selection import select_primary_blueprintfrom pipelex.pipeline.validate_bundle import validate_bundlediff --git a/pipelex/builder/operations/output_ops.py b/pipelex/builder/operations/output_ops.pyindex cb16a7596..f63af7e19 100644--- a/pipelex/builder/operations/output_ops.py+++ b/pipelex/builder/operations/output_ops.py@@ -6,8 +6,8 @@ import jsonfrom typing import Anyfrom pipelex.core.concepts.concept_representation_generator import ConceptRepresentationFormat-from pipelex.core.pipes.rendering.output_renderer import render_outputfrom pipelex.interpreter_hub import get_required_pipe+from pipelex.pipe_machinery.rendering.output_renderer import render_outputfrom pipelex.pipeline.validate_bundle import validate_bundlediff --git a/pipelex/builder/operations/pipe_ops.py b/pipelex/builder/operations/pipe_ops.pyindex 003e67595..d324bd573 100644--- a/pipelex/builder/operations/pipe_ops.py+++ b/pipelex/builder/operations/pipe_ops.py@@ -27,7 +27,7 @@ from pipelex.builder.pipe.pipe_signature_spec import PipeSignatureSpecfrom pipelex.builder.pipe.pipe_spec import PipeSpecfrom pipelex.builder.pipe.pipe_spec_map import pipe_type_to_spec_classfrom pipelex.builder.pipe.pipe_structure_spec import PipeStructureSpec-from pipelex.core.pipes.pipe_blueprint import (+from pipelex.pipe_machinery.pipe_blueprint import (PIPE_SIGNATURE_TYPE_TAG,explicit_signature_tag_migration_message,normalize_typeless_signature_section,diff --git a/pipelex/builder/operations/runner_code_ops.py b/pipelex/builder/operations/runner_code_ops.pyindex 4196e39b8..d7275b16c 100644--- a/pipelex/builder/operations/runner_code_ops.py+++ b/pipelex/builder/operations/runner_code_ops.py@@ -3,8 +3,8 @@from __future__ import annotationsfrom pipelex.builder.runner_code import generate_runner_code-from pipelex.core.interpreter.interpreter import PipelexInterpreterfrom pipelex.interpreter_hub import clear_current_library, get_current_library_id_or_none, get_library_manager, get_required_pipe, set_current_library+from pipelex.mthds_parsing.parser import MthdsParserfrom pipelex.pipeline.bundle_validator import BundleValidator@@ -26,7 +26,7 @@ async def build_runner_code_for_pipe(Generated Python runner code as a string.Raises:- PipelexInterpreterError: If MTHDS content fails to parse or validate.+ MthdsParserError: If MTHDS content fails to parse or validate.PipeValidationError: If pipe validation fails.DryRunError: If dry-running the pipes fails."""@@ -40,7 +40,7 @@ async def build_runner_code_for_pipe(set_current_library(library_id=library_id)# Parse PLX contents into bundle blueprints- blueprints = [PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=content) for content in mthds_contents]+ blueprints = [MthdsParser.make_pipelex_bundle_blueprint(mthds_content=content) for content in mthds_contents]# Load pipes from the blueprintspipes = library_manager.load_from_blueprints(library_id=library_id, blueprints=blueprints)diff --git a/pipelex/builder/pipe/pipe_signature_spec.py b/pipelex/builder/pipe/pipe_signature_spec.pyindex e2a75c603..deb277ddd 100644--- a/pipelex/builder/pipe/pipe_signature_spec.py+++ b/pipelex/builder/pipe/pipe_signature_spec.py@@ -9,7 +9,7 @@ from rich.text import Textfrom typing_extensions import overridefrom pipelex.builder.pipe.pipe_spec import PipeSpec-from pipelex.core.pipes.pipe_blueprint import PipeType+from pipelex.pipe_machinery.pipe_blueprint import PipeTypefrom pipelex.pipe_signature.pipe_signature_blueprint import PipeSignatureBlueprintfrom pipelex.tools.misc.pretty import PrettyPrintablediff --git a/pipelex/builder/pipe/pipe_spec.py b/pipelex/builder/pipe/pipe_spec.pyindex b98eec919..e7e25df7c 100644--- a/pipelex/builder/pipe/pipe_spec.py+++ b/pipelex/builder/pipe/pipe_spec.py@@ -11,9 +11,9 @@ from pipelex import logfrom pipelex.cogt.content_generation.dry_run_factory import MockFormatfrom pipelex.core.concepts.exceptions import ConceptStringErrorfrom pipelex.core.concepts.validation import validate_concept_ref_or_code-from pipelex.core.pipes.pipe_blueprint import PipeBlueprint, PipeCategory, PipeType, valid_pipe_type_tagsfrom pipelex.core.pipes.variable_multiplicity import MULTIPLICITY_PATTERN, PresenceMarker, parse_concept_with_multiplicityfrom pipelex.core.stuffs.structured_content import StructuredContent+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprint, PipeCategory, PipeType, valid_pipe_type_tagsfrom pipelex.tools.misc.pretty import PrettyPrintablefrom pipelex.tools.misc.string_utils import is_snake_case, normalize_to_asciidiff --git a/pipelex/builder/runner_code.py b/pipelex/builder/runner_code.pyindex eaa8a0f3f..a907b0245 100644--- a/pipelex/builder/runner_code.py+++ b/pipelex/builder/runner_code.py@@ -20,8 +20,8 @@ from pipelex.core.concepts.concept_representation_generator import ()from pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.core.pipes.variable_multiplicity import VariableMultiplicity+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractfrom pipelex.runtime_hub import get_class_registrySTRUCTURES_MODULE = "structures.structures"diff --git a/pipelex/cli/agent_cli/commands/agent_output.py b/pipelex/cli/agent_cli/commands/agent_output.pyindex 8868104d8..4bc25ac1b 100644--- a/pipelex/cli/agent_cli/commands/agent_output.py+++ b/pipelex/cli/agent_cli/commands/agent_output.py@@ -117,7 +117,7 @@ AGENT_ERROR_HINTS: dict[str, str] = {"ArgumentError": "Check command usage with 'pipelex-agent <command> --help'","JSONDecodeError": "Verify the JSON input is valid (check for trailing commas, unquoted keys, etc.)",# Interpreter errors- "PipelexInterpreterError": "Check MTHDS file TOML syntax and ensure all referenced concepts and pipes are defined",+ "MthdsParserError": "Check MTHDS file TOML syntax and ensure all referenced concepts and pipes are defined",# Configuration/initialization errors"TelemetryConfigValidationError": "Run 'pipelex init telemetry' to create a valid telemetry configuration","GatewayTermsNotAcceptedError": "Run 'pipelex init config' to accept gateway terms, or disable pipelex_gateway in backends.toml",diff --git a/pipelex/cli/agent_cli/commands/inputs/_inputs_core.py b/pipelex/cli/agent_cli/commands/inputs/_inputs_core.pyindex 09f4771b3..d37826d96 100644--- a/pipelex/cli/agent_cli/commands/inputs/_inputs_core.py+++ b/pipelex/cli/agent_cli/commands/inputs/_inputs_core.py@@ -6,7 +6,7 @@ from typing import TYPE_CHECKING, Any, castfrom pipelex.builder.operations.inputs_ops import build_inputs_for_pipefrom pipelex.cli.agent_cli.commands.agent_output import agent_success-from pipelex.core.pipes.rendering.input_renderer import InputsTemplateFormat, serialize_inputs_template_to_toml+from pipelex.pipe_machinery.rendering.input_renderer import InputsTemplateFormat, serialize_inputs_template_to_tomlif TYPE_CHECKING:from pathlib import Pathdiff --git a/pipelex/cli/agent_cli/commands/inputs/bundle_cmd.py b/pipelex/cli/agent_cli/commands/inputs/bundle_cmd.pyindex 535680905..886beecd4 100644--- a/pipelex/cli/agent_cli/commands/inputs/bundle_cmd.py+++ b/pipelex/cli/agent_cli/commands/inputs/bundle_cmd.py@@ -12,10 +12,10 @@ from pipelex.builder.conventions import DEFAULT_BUNDLE_FILE_NAMEfrom pipelex.cli.agent_cli.commands.agent_cli_factory import make_pipelex_for_agent_clifrom pipelex.cli.agent_cli.commands.agent_output import agent_error, extract_validation_errorsfrom pipelex.cli.agent_cli.commands.inputs._inputs_core import emit_inputs_result, emit_no_inputs_result, inputs_core-from pipelex.core.interpreter.helpers import MTHDS_EXTENSION, is_pipelex_filefrom pipelex.core.pipes.exceptions import PipeOperatorModelChoiceErrorfrom pipelex.core.pipes.inputs.exceptions import NoInputsRequiredError-from pipelex.core.pipes.rendering.input_renderer import InputsTemplateFormat+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSION, is_pipelex_file+from pipelex.pipe_machinery.rendering.input_renderer import InputsTemplateFormatfrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipelex import Pipelexfrom pipelex.pipeline.exceptions import ValidateBundleErrordiff --git a/pipelex/cli/agent_cli/commands/inputs/method_cmd.py b/pipelex/cli/agent_cli/commands/inputs/method_cmd.pyindex f71014584..bc5658f75 100644--- a/pipelex/cli/agent_cli/commands/inputs/method_cmd.py+++ b/pipelex/cli/agent_cli/commands/inputs/method_cmd.py@@ -14,7 +14,7 @@ from pipelex.cli.agent_cli.commands.inputs._inputs_core import emit_inputs_resulfrom pipelex.cli.method_resolver import resolve_method_targetfrom pipelex.core.pipes.exceptions import PipeOperatorModelChoiceErrorfrom pipelex.core.pipes.inputs.exceptions import NoInputsRequiredError-from pipelex.core.pipes.rendering.input_renderer import InputsTemplateFormat+from pipelex.pipe_machinery.rendering.input_renderer import InputsTemplateFormatfrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipelex import Pipelexfrom pipelex.pipeline.exceptions import ValidateBundleErrordiff --git a/pipelex/cli/agent_cli/commands/inputs/pipe_cmd.py b/pipelex/cli/agent_cli/commands/inputs/pipe_cmd.pyindex 038c82cf9..eda6ea9a6 100644--- a/pipelex/cli/agent_cli/commands/inputs/pipe_cmd.py+++ b/pipelex/cli/agent_cli/commands/inputs/pipe_cmd.py@@ -12,10 +12,10 @@ from pipelex.cli.agent_cli.commands.agent_cli_factory import make_pipelex_for_agfrom pipelex.cli.agent_cli.commands.agent_output import agent_error, extract_validation_errorsfrom pipelex.cli.agent_cli.commands.inputs._inputs_core import emit_inputs_result, emit_no_inputs_result, inputs_corefrom pipelex.cli.method_resolver import resolve_pipe_from_exports-from pipelex.core.interpreter.helpers import MTHDS_EXTENSION, is_pipelex_filefrom pipelex.core.pipes.exceptions import PipeOperatorModelChoiceErrorfrom pipelex.core.pipes.inputs.exceptions import NoInputsRequiredError-from pipelex.core.pipes.rendering.input_renderer import InputsTemplateFormat+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSION, is_pipelex_file+from pipelex.pipe_machinery.rendering.input_renderer import InputsTemplateFormatfrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipelex import Pipelexfrom pipelex.pipeline.exceptions import ValidateBundleErrordiff --git a/pipelex/cli/agent_cli/commands/run/bundle_cmd.py b/pipelex/cli/agent_cli/commands/run/bundle_cmd.pyindex a8c2685cc..78edc9a2f 100644--- a/pipelex/cli/agent_cli/commands/run/bundle_cmd.py+++ b/pipelex/cli/agent_cli/commands/run/bundle_cmd.py@@ -17,10 +17,10 @@ from pipelex.cli.agent_cli.commands.run._output_helpers import format_run_markdofrom pipelex.cli.agent_cli.commands.run._run_core import run_pipeline_corefrom pipelex.cli.agent_cli.commands.run._run_core_api import run_pipeline_core_apifrom pipelex.cli.agent_cli.commands.run.stdin_resolver import parse_cli_inputs-from pipelex.core.interpreter.exceptions import PipelexInterpreterError-from pipelex.core.interpreter.helpers import MTHDS_EXTENSION, is_pipelex_file-from pipelex.core.interpreter.interpreter import PipelexInterpreterfrom pipelex.core.pipes.exceptions import PipeOperatorModelChoiceError+from pipelex.mthds_parsing.exceptions import MthdsParserError+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSION, is_pipelex_file+from pipelex.mthds_parsing.parser import MthdsParserfrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipelex import Pipelexfrom pipelex.pipeline.exceptions import PipelineExecutionError@@ -140,7 +140,7 @@ def run_bundle_cmd(try:mthds_content = Path(bundle_path).read_text(encoding="utf-8")if not pipe_code:- bundle_blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=mthds_content)+ bundle_blueprint = MthdsParser.make_pipelex_bundle_blueprint(mthds_content=mthds_content)main_pipe_code = bundle_blueprint.main_pipeif not main_pipe_code:agent_error(@@ -152,7 +152,7 @@ def run_bundle_cmd(agent_error(f"Bundle file not found: {bundle_path}", error_type="FileNotFoundError", cause=exc)except (OSError, UnicodeDecodeError) as exc:agent_error(f"Failed to read bundle file '{bundle_path}': {exc}", error_type=type(exc).__name__, cause=exc)- except PipelexInterpreterError as exc:+ except MthdsParserError as exc:agent_error(f"Failed to parse bundle '{bundle_path}': {exc}", error_type=type(exc).__name__, cause=exc)# Load inputs: --inputs flag takes priority, then stdin fallback, then auto-detecteddiff --git a/pipelex/cli/agent_cli/commands/run/method_cmd.py b/pipelex/cli/agent_cli/commands/run/method_cmd.pyindex 0cdc4b291..afc6ead79 100644--- a/pipelex/cli/agent_cli/commands/run/method_cmd.py+++ b/pipelex/cli/agent_cli/commands/run/method_cmd.py@@ -18,8 +18,8 @@ from pipelex.cli.agent_cli.commands.run._run_core_api import run_pipeline_core_afrom pipelex.cli.agent_cli.commands.run.stdin_resolver import parse_cli_inputsfrom pipelex.cli.commands.run._inputs_file_loader import resolve_inputs_arg_against_dirfrom pipelex.cli.method_resolver import resolve_method_target-from pipelex.core.interpreter.helpers import MTHDS_EXTENSIONfrom pipelex.core.pipes.exceptions import PipeOperatorModelChoiceError+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSIONfrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipelex import Pipelexfrom pipelex.pipeline.exceptions import PipelineExecutionErrordiff --git a/pipelex/cli/agent_cli/commands/run/pipe_cmd.py b/pipelex/cli/agent_cli/commands/run/pipe_cmd.pyindex 31ce470e6..5e6f70672 100644--- a/pipelex/cli/agent_cli/commands/run/pipe_cmd.py+++ b/pipelex/cli/agent_cli/commands/run/pipe_cmd.py@@ -17,8 +17,8 @@ from pipelex.cli.agent_cli.commands.run._run_core import run_pipeline_corefrom pipelex.cli.agent_cli.commands.run._run_core_api import run_pipeline_core_apifrom pipelex.cli.agent_cli.commands.run.stdin_resolver import parse_cli_inputsfrom pipelex.cli.method_resolver import resolve_pipe_from_exports-from pipelex.core.interpreter.helpers import MTHDS_EXTENSION, is_pipelex_filefrom pipelex.core.pipes.exceptions import PipeOperatorModelChoiceError+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSION, is_pipelex_filefrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipelex import Pipelexfrom pipelex.pipeline.exceptions import PipelineExecutionErrordiff --git a/pipelex/cli/agent_cli/commands/validate/bundle_cmd.py b/pipelex/cli/agent_cli/commands/validate/bundle_cmd.pyindex 31b5210e5..e6a85eb89 100644--- a/pipelex/cli/agent_cli/commands/validate/bundle_cmd.py+++ b/pipelex/cli/agent_cli/commands/validate/bundle_cmd.py@@ -19,10 +19,10 @@ from pipelex.cli.agent_cli.commands.validate._validate_core import (validate_bundle_core,validate_pipe_in_bundle_core,)-from pipelex.core.interpreter.exceptions import PipelexInterpreterErrorfrom pipelex.core.pipes.exceptions import PipeOperatorModelChoiceErrorfrom pipelex.graph.graph_rendering import GraphFormat, generate_graph_for_bundle, generate_view_for_bundlefrom pipelex.libraries.pipe.exceptions import PipeNotFoundError+from pipelex.mthds_parsing.exceptions import MthdsParserErrorfrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipelex import Pipelexfrom pipelex.pipeline.exceptions import PipelineExecutionError, ValidateBundleError@@ -133,7 +133,7 @@ def validate_bundle_cmd(graph_extra["cause_type"] = type(exc.__cause__).__name__graph_extra["cause_message"] = str(exc.__cause__)agent_error(f"Graph generation failed: {exc.message}", error_type="PipelineExecutionError", cause=exc, exit_code=2, **graph_extra)- except PipelexInterpreterError as exc:+ except MthdsParserError as exc:agent_error(f"Graph generation failed: {exc}", error_type=type(exc).__name__, cause=exc, exit_code=2)except typer.Exit:raise@@ -162,7 +162,7 @@ def validate_bundle_cmd(view_extra["cause_type"] = type(exc.__cause__).__name__view_extra["cause_message"] = str(exc.__cause__)agent_error(f"View generation failed: {exc.message}", error_type="PipelineExecutionError", cause=exc, exit_code=2, **view_extra)- except PipelexInterpreterError as exc:+ except MthdsParserError as exc:agent_error(f"View generation failed: {exc}", error_type=type(exc).__name__, cause=exc, exit_code=2)except typer.Exit:raisediff --git a/pipelex/cli/agent_cli/commands/validate/pipe_cmd.py b/pipelex/cli/agent_cli/commands/validate/pipe_cmd.pyindex ab9f230a5..8f9aa91cd 100644--- a/pipelex/cli/agent_cli/commands/validate/pipe_cmd.py+++ b/pipelex/cli/agent_cli/commands/validate/pipe_cmd.py@@ -19,9 +19,9 @@ from pipelex.cli.agent_cli.commands.validate._validate_core import (validate_pipe_core,)from pipelex.cli.method_resolver import resolve_pipe_from_exports-from pipelex.core.interpreter.helpers import MTHDS_EXTENSION, is_pipelex_filefrom pipelex.core.pipes.exceptions import PipeOperatorModelChoiceErrorfrom pipelex.libraries.pipe.exceptions import PipeNotFoundError+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSION, is_pipelex_filefrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipe_run.exceptions import DryRunErrorfrom pipelex.pipelex import Pipelexdiff --git a/pipelex/cli/bundle_target_resolution.py b/pipelex/cli/bundle_target_resolution.pyindex 32ee80e4b..8dccc50b7 100644--- a/pipelex/cli/bundle_target_resolution.py+++ b/pipelex/cli/bundle_target_resolution.py@@ -5,7 +5,7 @@ from pathlib import Pathfrom typing import NamedTuplefrom pipelex.builder.conventions import DEFAULT_BUNDLE_FILE_NAME-from pipelex.core.interpreter.helpers import MTHDS_EXTENSION, is_pipelex_file+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSION, is_pipelex_fileclass BundleTargetResolutionErrorKind(StrEnum):diff --git a/pipelex/cli/commands/build/inputs/_inputs_core.py b/pipelex/cli/commands/build/inputs/_inputs_core.pyindex 2e91d50b6..08b160de8 100644--- a/pipelex/cli/commands/build/inputs/_inputs_core.py+++ b/pipelex/cli/commands/build/inputs/_inputs_core.py@@ -15,8 +15,8 @@ from pipelex.cli.error_handlers import ()from pipelex.core.pipes.exceptions import PipeOperatorModelChoiceErrorfrom pipelex.core.pipes.inputs.exceptions import PipeInputError-from pipelex.core.pipes.rendering.input_renderer import InputsTemplateFormat, NoInputsRequiredError, render_inputs, render_inputs_tomlfrom pipelex.interpreter_hub import get_library_manager, get_required_pipe, resolve_library_dirs, set_current_library+from pipelex.pipe_machinery.rendering.input_renderer import InputsTemplateFormat, NoInputsRequiredError, render_inputs, render_inputs_tomlfrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipelex import PACKAGE_VERSIONfrom pipelex.pipeline.exceptions import ValidateBundleErrordiff --git a/pipelex/cli/commands/build/inputs/bundle_cmd.py b/pipelex/cli/commands/build/inputs/bundle_cmd.pyindex c096689e0..0cd99e9d3 100644--- a/pipelex/cli/commands/build/inputs/bundle_cmd.py+++ b/pipelex/cli/commands/build/inputs/bundle_cmd.py@@ -7,8 +7,8 @@ import typerfrom pipelex.builder.conventions import DEFAULT_BUNDLE_FILE_NAMEfrom pipelex.cli.commands.build.inputs._inputs_core import execute_generate_inputs-from pipelex.core.interpreter.helpers import MTHDS_EXTENSION, is_pipelex_file-from pipelex.core.pipes.rendering.input_renderer import InputsTemplateFormat+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSION, is_pipelex_file+from pipelex.pipe_machinery.rendering.input_renderer import InputsTemplateFormatdef build_inputs_bundle_cmd(diff --git a/pipelex/cli/commands/build/inputs/method_cmd.py b/pipelex/cli/commands/build/inputs/method_cmd.pyindex 1f88399bb..668e0b66e 100644--- a/pipelex/cli/commands/build/inputs/method_cmd.py+++ b/pipelex/cli/commands/build/inputs/method_cmd.py@@ -8,7 +8,7 @@ import typerfrom pipelex.builder.conventions import DEFAULT_INPUTS_FILE_NAME, DEFAULT_INPUTS_TOML_FILE_NAMEfrom pipelex.cli.commands.build.inputs._inputs_core import execute_generate_inputsfrom pipelex.cli.method_resolver import resolve_method_target-from pipelex.core.pipes.rendering.input_renderer import InputsTemplateFormat+from pipelex.pipe_machinery.rendering.input_renderer import InputsTemplateFormatdef build_inputs_method_cmd(diff --git a/pipelex/cli/commands/build/inputs/pipe_cmd.py b/pipelex/cli/commands/build/inputs/pipe_cmd.pyindex c8e0722c7..00625740f 100644--- a/pipelex/cli/commands/build/inputs/pipe_cmd.py+++ b/pipelex/cli/commands/build/inputs/pipe_cmd.py@@ -6,7 +6,7 @@ from typing import Annotatedimport typerfrom pipelex.cli.commands.build.inputs._inputs_core import execute_generate_inputs-from pipelex.core.pipes.rendering.input_renderer import InputsTemplateFormat+from pipelex.pipe_machinery.rendering.input_renderer import InputsTemplateFormatdef build_inputs_pipe_cmd(diff --git a/pipelex/cli/commands/build/output/_output_core.py b/pipelex/cli/commands/build/output/_output_core.pyindex 2df512eea..8fb531463 100644--- a/pipelex/cli/commands/build/output/_output_core.py+++ b/pipelex/cli/commands/build/output/_output_core.py@@ -15,8 +15,8 @@ from pipelex.cli.error_handlers import (from pipelex.core.concepts.concept_representation_generator import ConceptRepresentationFormatfrom pipelex.core.pipes.exceptions import PipeOperatorModelChoiceErrorfrom pipelex.core.pipes.inputs.exceptions import PipeInputError-from pipelex.core.pipes.rendering.output_renderer import render_outputfrom pipelex.interpreter_hub import get_library_manager, get_required_pipe, resolve_library_dirs, set_current_library+from pipelex.pipe_machinery.rendering.output_renderer import render_outputfrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipelex import PACKAGE_VERSIONfrom pipelex.pipeline.exceptions import ValidateBundleErrordiff --git a/pipelex/cli/commands/build/output/bundle_cmd.py b/pipelex/cli/commands/build/output/bundle_cmd.pyindex a4a04ce55..54c07aedb 100644--- a/pipelex/cli/commands/build/output/bundle_cmd.py+++ b/pipelex/cli/commands/build/output/bundle_cmd.py@@ -8,7 +8,7 @@ import typerfrom pipelex.builder.conventions import DEFAULT_BUNDLE_FILE_NAMEfrom pipelex.cli.commands.build.output._output_core import execute_generate_outputfrom pipelex.core.concepts.concept_representation_generator import ConceptRepresentationFormat-from pipelex.core.interpreter.helpers import MTHDS_EXTENSION, is_pipelex_file+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSION, is_pipelex_filedef build_output_bundle_cmd(diff --git a/pipelex/cli/commands/build/runner/_runner_core.py b/pipelex/cli/commands/build/runner/_runner_core.pyindex c33eec4a8..c8f2777f8 100644--- a/pipelex/cli/commands/build/runner/_runner_core.py+++ b/pipelex/cli/commands/build/runner/_runner_core.py@@ -39,7 +39,7 @@ from pipelex.tools.misc.file_utils import (if TYPE_CHECKING:from pathlib import Path- from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint+ from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintCOMMAND = "build"SUB_COMMAND_RUNNER = "runner"diff --git a/pipelex/cli/commands/build/runner/bundle_cmd.py b/pipelex/cli/commands/build/runner/bundle_cmd.pyindex d18b32232..5b5ca0628 100644--- a/pipelex/cli/commands/build/runner/bundle_cmd.py+++ b/pipelex/cli/commands/build/runner/bundle_cmd.py@@ -7,7 +7,7 @@ import typerfrom pipelex.builder.conventions import DEFAULT_BUNDLE_FILE_NAMEfrom pipelex.cli.commands.build.runner._runner_core import execute_prepare_runner-from pipelex.core.interpreter.helpers import MTHDS_EXTENSION, is_pipelex_file+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSION, is_pipelex_filedef build_runner_bundle_cmd(diff --git a/pipelex/cli/commands/codegen/inputs_cmd.py b/pipelex/cli/commands/codegen/inputs_cmd.pyindex 9ff33033b..18da266c7 100644--- a/pipelex/cli/commands/codegen/inputs_cmd.py+++ b/pipelex/cli/commands/codegen/inputs_cmd.py@@ -18,11 +18,11 @@ from pipelex.builder.conventions import DEFAULT_INPUTS_FILE_NAME, DEFAULT_INPUTSfrom pipelex.cli.cli_factory import make_pipelex_for_clifrom pipelex.cli.commands.crate_loading import load_normalized_crate_or_exitfrom pipelex.cli.error_handlers import ErrorContext-from pipelex.core.pipes.pipe_abstract import PipeAbstract-from pipelex.core.pipes.rendering.input_renderer import InputsTemplateFormat, NoInputsRequiredError, render_inputs, render_inputs_tomlfrom pipelex.interpreter_hub import get_required_pipefrom pipelex.libraries.library_crate import LibraryCratefrom pipelex.libraries.pipe.exceptions import PipeLibraryError+from pipelex.pipe_machinery.pipe_abstract import PipeAbstract+from pipelex.pipe_machinery.rendering.input_renderer import InputsTemplateFormat, NoInputsRequiredError, render_inputs, render_inputs_tomlfrom pipelex.pipelex import Pipelexfrom pipelex.runtime_hub import get_telemetry_managerfrom pipelex.system.runtime import IntegrationModediff --git a/pipelex/cli/commands/plugins_cmd.py b/pipelex/cli/commands/plugins_cmd.pyindex 4ad42bd78..6019e102c 100644--- a/pipelex/cli/commands/plugins_cmd.py+++ b/pipelex/cli/commands/plugins_cmd.py@@ -2,6 +2,7 @@ import typerfrom rich import boxfrom rich.table import Table+from pipelex.interpreter_plugins.builtins import BUILTIN_PLUGINS, CORE_UNCONDITIONAL_PLUGIN_NAMESfrom pipelex.plugins.discovery import build_registrarfrom pipelex.runtime_hub import get_consolefrom pipelex.system.configuration.config_loader import config_manager@@ -20,7 +21,11 @@ def plugins_list_command() -> None:"""console = get_console()config = PipelexConfig.model_validate(config_manager.load_config())- registrar = build_registrar(config=config)+ registrar = build_registrar(+ config=config,+ builtin_plugins=BUILTIN_PLUGINS,+ core_unconditional_plugin_names=CORE_UNCONDITIONAL_PLUGIN_NAMES,+ )table = Table(title="Pipelex plugins", show_header=True, header_style="bold cyan", box=box.SQUARE_DOUBLE_HEAD)table.add_column("Name", style="green")diff --git a/pipelex/cli/commands/run/_run_core.py b/pipelex/cli/commands/run/_run_core.pyindex b258aa234..5f13d990b 100644--- a/pipelex/cli/commands/run/_run_core.py+++ b/pipelex/cli/commands/run/_run_core.py@@ -21,14 +21,14 @@ from pipelex.cli.error_handlers import ()from pipelex.config import get_configfrom pipelex.core.concepts.exceptions import ConceptValueError-from pipelex.core.interpreter.exceptions import PipelexInterpreterError-from pipelex.core.interpreter.interpreter import PipelexInterpreterfrom pipelex.core.memory.absence import AbsenceRecordfrom pipelex.core.memory.absence_render import build_absence_json, build_absence_markdownfrom pipelex.core.pipes.exceptions import PipeOperatorModelChoiceErrorfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff_viewer import render_stuff_viewerfrom pipelex.graph.graph_factory import generate_graph_outputs, save_graph_outputs_to_dir+from pipelex.mthds_parsing.exceptions import MthdsParserError+from pipelex.mthds_parsing.parser import MthdsParserfrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipe_run.pipe_run_mode import PipeRunModefrom pipelex.pipelex import Pipelex@@ -118,7 +118,7 @@ async def _execute_run(# Use lightweight parsing to extract main_pipe without full validation# Full validation happens later during executeif not pipe_code:- bundle_blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=mthds_content)+ bundle_blueprint = MthdsParser.make_pipelex_bundle_blueprint(mthds_content=mthds_content)main_pipe_code = bundle_blueprint.main_pipeif not main_pipe_code:msg = (@@ -132,7 +132,7 @@ async def _execute_run(print_traceback_if_requested(console=get_console())typer.secho(f"Failed to load bundle '{bundle_path}': {exc}", fg=typer.colors.RED, err=True)raise typer.Exit(1) from exc- except PipelexInterpreterError as exc:+ except MthdsParserError as exc:print_traceback_if_requested(console=get_console())typer.secho(f"Failed to parse bundle '{bundle_path}': {exc}", fg=typer.colors.RED, err=True)raise typer.Exit(1) from excdiff --git a/pipelex/cli/commands/run/bundle_cmd.py b/pipelex/cli/commands/run/bundle_cmd.pyindex 2c0233ff8..cb420bf48 100644--- a/pipelex/cli/commands/run/bundle_cmd.py+++ b/pipelex/cli/commands/run/bundle_cmd.py@@ -9,7 +9,7 @@ from pipelex.builder.conventions import DEFAULT_BUNDLE_FILE_NAMEfrom pipelex.cli.commands.run._inputs_file_loader import find_default_inputs_filefrom pipelex.cli.commands.run._run_core import COMMAND, execute_run, validate_run_flag_combinationfrom pipelex.cli.commands.run.exceptions import AmbiguousInputsFilesError-from pipelex.core.interpreter.helpers import MTHDS_EXTENSION, is_pipelex_file+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSION, is_pipelex_filedef run_bundle_cmd(diff --git a/pipelex/cli/commands/run/pipe_cmd.py b/pipelex/cli/commands/run/pipe_cmd.pyindex 88878cb41..f92fcb94e 100644--- a/pipelex/cli/commands/run/pipe_cmd.py+++ b/pipelex/cli/commands/run/pipe_cmd.py@@ -7,7 +7,7 @@ import typerfrom pipelex.cli.commands.run._run_core import COMMAND, execute_run, validate_run_flag_combinationfrom pipelex.cli.method_resolver import resolve_pipe_from_exports-from pipelex.core.interpreter.helpers import MTHDS_EXTENSION, is_pipelex_file+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSION, is_pipelex_filedef run_pipe_cmd(diff --git a/pipelex/cli/commands/validate/_validate_core.py b/pipelex/cli/commands/validate/_validate_core.pyindex 4b07f6dab..14cfbee9f 100644--- a/pipelex/cli/commands/validate/_validate_core.py+++ b/pipelex/cli/commands/validate/_validate_core.py@@ -35,7 +35,7 @@ from pipelex.tools.misc.string_utils import count_with_nounif TYPE_CHECKING:from pathlib import Path- from pipelex.core.pipes.pipe_abstract import PipeAbstract+ from pipelex.pipe_machinery.pipe_abstract import PipeAbstractCOMMAND = "validate"diff --git a/pipelex/cli/commands/validate/pipe_cmd.py b/pipelex/cli/commands/validate/pipe_cmd.pyindex 5720f3a3f..d67267571 100644--- a/pipelex/cli/commands/validate/pipe_cmd.py+++ b/pipelex/cli/commands/validate/pipe_cmd.py@@ -13,7 +13,7 @@ from pipelex.cli.commands.validate._validate_core import ()from pipelex.cli.error_handlers import ErrorContextfrom pipelex.cli.method_resolver import resolve_pipe_from_exports-from pipelex.core.interpreter.helpers import MTHDS_EXTENSION, is_pipelex_file+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSION, is_pipelex_filefrom pipelex.pipelex import Pipelexdiff --git a/pipelex/cli/dev_cli/_dev_cli.py b/pipelex/cli/dev_cli/_dev_cli.pyindex 1bf37a2b2..b62c98d51 100644--- a/pipelex/cli/dev_cli/_dev_cli.py+++ b/pipelex/cli/dev_cli/_dev_cli.py@@ -18,6 +18,7 @@ from pipelex.cli.dev_cli.commands.check_mthds_schema_cmd import check_mthds_schefrom pipelex.cli.dev_cli.commands.check_rules_sync_cmd import check_rules_sync_cmdfrom pipelex.cli.dev_cli.commands.check_urls_cmd import DEFAULT_TIMEOUT, check_urls_cmdfrom pipelex.cli.dev_cli.commands.drift.drift_cmd import drift_app+from pipelex.cli.dev_cli.commands.generate_error_identity_cmd import generate_error_identity_cmdfrom pipelex.cli.dev_cli.commands.generate_error_pages_cmd import generate_error_pages_cmdfrom pipelex.cli.dev_cli.commands.generate_mthds_schema_cmd import generate_mthds_schema_cmdfrom pipelex.cli.dev_cli.commands.kit_cmd import kit_app@@ -46,6 +47,7 @@ class PipelexDevCLI(TyperGroup):"check-rules","check-urls","drift",+ "generate-error-identity","generate-error-pages","generate-mthds-schema","kit",@@ -169,6 +171,28 @@ def check_urls_command(sys.exit(1)[email protected](name="generate-error-identity", help="Regenerate the committed (error_type, title, type_uri) snapshot of every PipelexError subclass")+def generate_error_identity_command(+ output: Annotated[str | None, typer.Option("--output", "-o", help="Custom output path for the snapshot file")] = None,+ quiet: Annotated[bool, typer.Option("--quiet", "-q", help="Output only a single status line")] = False,+) -> None:+ """Regenerate the PipelexError wire-identity snapshot."""+ try:+ output_path = Path(output) if output else None+ generate_error_identity_cmd(output=output_path, quiet=quiet)+ except (typer.Exit, typer.Abort):+ # Typer control-flow exits carry an intended exit code — not a failure. Let them through.+ raise+ except Exception: # noqa: BLE001+ # Dev CLI command root: print a traceback for any unexpected failure and exit non-zero.+ console = get_console()+ console.print()+ console.print("[bold red]Unexpected error occurred[/bold red]")+ console.print()+ console.print(Traceback())+ sys.exit(1)++@app.command(name="generate-error-pages", help="Generate one docs page per PipelexError subclass under docs/errors/")def generate_error_pages_command(output: Annotated[str | None, typer.Option("--output", "-o", help="Custom output directory for the error pages")] = None,diff --git a/pipelex/cli/dev_cli/commands/check_hub_layering_cmd.py b/pipelex/cli/dev_cli/commands/check_hub_layering_cmd.pyindex 62375a70c..ca2bd5c69 100644--- a/pipelex/cli/dev_cli/commands/check_hub_layering_cmd.py+++ b/pipelex/cli/dev_cli/commands/check_hub_layering_cmd.py@@ -2,8 +2,9 @@`interpreter_hub` may import `runtime_hub`; **`runtime_hub` must never import `interpreter_hub`.** The guardchecks the forbidden direction — a declared runtime-layer module may not import or name-``pipelex.interpreter_hub`` — plus the dead-module rule: nothing anywhere may still reference the deleted-``pipelex.hub``. The canonical human-readable specification lives in ``docs/contribute/hub-layering.md``.+``pipelex.interpreter_hub``, nor *reach* it through a chain of module-level imports — plus the+dead-module rule: nothing anywhere may still reference the deleted ``pipelex.hub``. The canonical+human-readable specification lives in ``docs/contribute/hub-layering.md``.The pure-AST collection logic lives in the stdlib-only ``hub_layering_guard`` module; this module isthe ``rich``/``pipelex.runtime_hub`` presentation layer wired into the ``pipelex-dev`` Typer app@@ -26,8 +27,10 @@ from rich.panel import Panelfrom pipelex.cli.dev_cli.commands.hub_layering_guard import (RUNTIME_LAYER_PACKAGES,SCAN_ROOTS,+ SOURCE_ROOT,HubLayeringViolation,collect_all_violations,+ collect_transitive_violations,)from pipelex.runtime_hub import get_console@@ -52,7 +55,12 @@ def check_hub_layering_cmd(*, quiet: bool = False) -> None:console.print(f"[red]✗ Hub-layering check: FAILED[/red] - scan root(s) {roots} do not exist")sys.exit(1)- violations = collect_all_violations(roots=SCAN_ROOTS)+ # Two passes, because they see different things: the per-file rules over both roots, then the+ # transitive rule over `pipelex/` only (`tests.*` sits in no declared layer, so it has no closure+ # to protect). One merged list, because they are one gate: either pass alone fails the check.+ # Each pass returns its own findings location-sorted, and the report groups by kind below, so the+ # concatenation order is not what the reader sees.+ violations = collect_all_violations(roots=SCAN_ROOTS) + collect_transitive_violations(root=SOURCE_ROOT)if not violations:# Success is the only thing quiet trims: one line in quiet mode, a panel otherwise.@@ -79,7 +87,8 @@ def _print_success_panel() -> None:console.print()console.print(Panel(- f"[green]✓[/green] No hub-layering violations.\n\n[dim]Runtime layer: {escape(layers)}[/dim]",+ f"[green]✓[/green] No hub-layering violations — no runtime-layer module imports the interpreter hub, "+ f"directly or transitively.\n\n[dim]Runtime layer: {escape(layers)}[/dim]",title="[bold green]Hub-layering Check: PASSED[/bold green]",border_style="green",padding=(1, 2),diff --git a/pipelex/cli/dev_cli/commands/check_keyword_only_cmd.py b/pipelex/cli/dev_cli/commands/check_keyword_only_cmd.pyindex d5c2cd443..4eb69ed3f 100644--- a/pipelex/cli/dev_cli/commands/check_keyword_only_cmd.py+++ b/pipelex/cli/dev_cli/commands/check_keyword_only_cmd.py@@ -3,7 +3,9 @@Non-subject function parameters must be keyword-only so call sites are self-documenting:``do_thing(retries=3, timeout=30)`` is forced over the opaque ``do_thing(3, 30)``. A positionalsubject is legal only under an explicit grant recorded in ``subject_grants.toml`` (see the-``subject-grant`` command), and a ``bool``/``int``/``float`` subject is banned outright.+``subject-grant`` command), and a ``bool``/``int``/``float`` subject is banned outright. This is+also where the registry's own bookkeeping invariant — entries in sorted key order — is enforced;+the single-file hook path cannot see it, since it is a property of the whole file.The canonical human-readable specification lives in ``docs/contribute/keyword-only-arguments.md``.The pure-AST collection logic lives in the stdlib-only ``keyword_only_guard`` module; this module@@ -31,6 +33,7 @@ from pipelex.cli.dev_cli.commands.keyword_only_guard import (SubjectGrantRegistryError,Violation,collect_all_violations,+ find_unsorted_grants,fix_all_violations,load_subject_grants,)@@ -101,6 +104,16 @@ def _load_grants_or_exit() -> dict[str, SubjectGrant]:sys.exit(1)+def _unsorted_grants_or_exit(*, grants: dict[str, SubjectGrant]) -> list[Violation]:+ """Check the registry's file order, or exit 1 with the explicit error (never a silently narrowed scan)."""+ try:+ return find_unsorted_grants(grants=grants)+ except SubjectGrantRegistryError as exc:+ console = get_console()+ console.print(f"[red]✗ Keyword-only check: FAILED[/red] - {escape(str(exc))}")+ sys.exit(1)++def check_keyword_only_cmd(*, report: bool = False, fix: bool = False, quiet: bool = False) -> None:"""Enforce the keyword-only-arguments convention across ``pipelex/`` source.@@ -133,7 +146,12 @@ def check_keyword_only_cmd(*, report: bool = False, fix: bool = False, quiet: bo_run_fix(quiet=quiet, grants=grants)return- violations = collect_all_violations(SOURCE_ROOT, grants=grants)+ # Registry order is a full-scan concern (the single-file hook path cannot see it), so it joins the+ # def-level violations here rather than inside `collect_all_violations`, which stays filesystem-pure.+ violations = sorted(+ [*collect_all_violations(SOURCE_ROOT, grants=grants), *_unsorted_grants_or_exit(grants=grants)],+ key=lambda violation: violation.key,+ )if report:_print_report(violations, grants=grants)@@ -163,11 +181,17 @@ def _run_fix(*, quiet: bool, grants: dict[str, SubjectGrant]) -> None:violations. That lets it run early in ``make agent-check`` — fixing before ``ruff format`` withoutaborting the pipeline mid-mutation or masking the ``pyright``/``mypy`` phase. The read-only``check-keyword-only`` gate (run last in ``agent-check``, and in ``make check`` / CI) is what- enforces compliance and fails on the unfixable ones. A genuine error (e.g. a missing source root)- still exits non-zero — that is handled by the caller, not here.+ enforces compliance and fails on the unfixable ones. A genuine error still exits non-zero — a missing+ source root from the caller, a registry the order check cannot read from here."""console = get_console()- fixed, unfixable = fix_all_violations(SOURCE_ROOT, grants=grants)+ fixed, fixer_unfixable = fix_all_violations(SOURCE_ROOT, grants=grants)++ # The fixer rewrites signatures, never the registry, so it cannot see an out-of-order entry — but that+ # is a violation the read-only gate fails on, and reporting "nothing to fix" while `check-keyword-only`+ # is about to fail would be a false all-clear. It joins the other registry-level kinds it is reported+ # beside (`dead-grant`, `grant-param-mismatch`), which reach here through `fix_all_violations`.+ unfixable = sorted([*fixer_unfixable, *_unsorted_grants_or_exit(grants=grants)], key=lambda violation: violation.key)if fixed:# Files changed — always surface this, even in quiet mode.@@ -186,7 +210,8 @@ def _run_fix(*, quiet: bool, grants: dict[str, SubjectGrant]) -> None:# Reported, not gated here — the read-only `check-keyword-only` (last in agent-check / CI) fails on these.console.print(f"[red]✗ {len(unfixable)} violation(s) need a manual fix[/red] "- "(e.g. `*args` present, an existing keyword-only section, two+ positional-only params, or a stale grant):"+ "(e.g. `*args` present, an existing keyword-only section, two+ positional-only params, a stale grant, "+ "or an out-of-order registry entry):")_print_violation_lines(violations=unfixable)console.print(diff --git a/pipelex/cli/dev_cli/commands/generate_error_identity_cmd.py b/pipelex/cli/dev_cli/commands/generate_error_identity_cmd.pynew file mode 100644index 000000000..d9d76cf10--- /dev/null+++ b/pipelex/cli/dev_cli/commands/generate_error_identity_cmd.py@@ -0,0 +1,59 @@+"""Command to regenerate the committed ``PipelexError`` wire-identity snapshot."""++from __future__ import annotations++from pathlib import Path++from rich.panel import Panel++from pipelex.errors.error_identity_snapshot import iter_error_identity_rows, render_error_identity_snapshot+from pipelex.runtime_hub import get_console++# Repo-relative location of the committed snapshot. It lives under ``tests/data/``+# because the test suite is what gates it — there is no separate ``check-`` command+# and no Make gate to keep in sync.+ERROR_IDENTITY_PATH = Path("tests/data/errors/error_identity.txt")+++def generate_error_identity_cmd(*, output: Path | None = None, quiet: bool = False) -> None:+ """Regenerate the ``(error_type, title, type_uri)`` snapshot for every ``PipelexError`` subclass.++ Deliberately does NOT bootstrap Pipelex: ``title()`` / ``type_uri()`` read+ class attributes and a module-level URL constant, and the discovery helper+ imports error modules by filename, so the whole rendering is pure. That keeps+ this runnable in any environment, including one with no configured backend.++ Args:+ output: Custom output path. Defaults to :data:`ERROR_IDENTITY_PATH`.+ quiet: If ``True``, emit only a single status line.+ """+ console = get_console()+ output_path = output or ERROR_IDENTITY_PATH++ if not quiet:+ console.print()+ console.print("[bold]Generating the PipelexError wire-identity snapshot...[/bold]")+ console.print()++ content = render_error_identity_snapshot()+ row_count = len(iter_error_identity_rows())++ already_current = output_path.exists() and output_path.read_text(encoding="utf-8") == content+ if not already_current:+ output_path.parent.mkdir(parents=True, exist_ok=True)+ output_path.write_text(content, encoding="utf-8")++ status = "unchanged" if already_current else "written"++ if quiet:+ console.print(f"[green]✓ Error identity snapshot: PASSED[/green] ({status}, {row_count} error classes)")+ return++ success_panel = Panel(+ (f"[green]✓[/green] Error identity snapshot {status}.\n\n[dim]Output: {output_path}[/dim]\n[dim]Error classes: {row_count}[/dim]"),+ title="[bold green]Error Identity Snapshot: PASSED[/bold green]",+ border_style="green",+ padding=(1, 2),+ )+ console.print(success_panel)+ console.print()diff --git a/pipelex/cli/dev_cli/commands/hub_layering_guard.py b/pipelex/cli/dev_cli/commands/hub_layering_guard.pyindex 93d985daa..47fef9ff0 100644--- a/pipelex/cli/dev_cli/commands/hub_layering_guard.py+++ b/pipelex/cli/dev_cli/commands/hub_layering_guard.py@@ -7,7 +7,7 @@ whole architecture, and the property it buys is measurable: importing the Pipeleinterpreter modules. The canonical human-readable specification lives in``docs/contribute/hub-layering.md``.-This module holds the AST collection logic that mechanically enforces two rules:+This module holds the AST collection logic that mechanically enforces three rules:1. **The layer rule.** A module in the declared runtime layer (:data:`RUNTIME_LAYER_PACKAGES`) may notimport ``pipelex.interpreter_hub``. Since `runtime_hub`'s own closure is what the runtime layer is,@@ -15,10 +15,21 @@ This module holds the AST collection logic that mechanically enforces two rules:2. **The dead-module rule.** *No* scanned module may reference ``pipelex.hub``. That module wasdeleted rather than kept as an alias for either half, precisely so a stale import fails loudly —this rule closes the one hole in that guarantee (see below).--Both rules match **imports and bare string literals**. The string form is not a nicety: a missed+3. **The transitive rule.** No runtime-layer module may *reach* ``pipelex.interpreter_hub`` through+ any chain of module-level imports either. Rules 1 and 2 are per-file and see one hop; this one+ resolves the whole module-level import graph of ``pipelex/`` and does reachability over it. It+ exists because the one-hop rules missed a live breach: four modules under the declared+ runtime-layer ``pipelex.plugins`` package loaded ``interpreter_hub`` (and ~67 interpreter modules)+ through ``runtime_bridge``, ``pipeline`` and ``pipe_operators`` while both gates stayed green. The+ remedy relocated those plugins, and this rule is what stops the next one recurring. The graph+ models the ancestor ``__init__.py`` files an import executes on the way to its target, so a breach+ in a package init is reached by every importer of anything beneath it.++All three rules match **imports and bare string literals**. The string form is not a nicety: a missed*import* of a deleted module is an immediate ``ImportError``, but a missed *string* is not, and it is-invisible to every import-graph tool and to pyright's module graph. The two forms that actually+invisible to every import-graph tool and to pyright's module graph. Rule 3 matches the narrower set —+only a string naming the interpreter hub, which is a dynamic import in all but name — because an+arbitrary ``pipelex.*`` string is as likely a plugin name as an import target. The two forms that actuallyoccurred in this repo are ``importlib.import_module("pipelex.hub")`` (three of them, hiding a cyclefrom every lint) and ``mocker.patch("pipelex.hub.get_console", ...)`` (which broke a whole CLI testsuite with an ``AttributeError`` raised nowhere near a hub). Matching is exact-or-dotted-prefix@@ -29,9 +40,9 @@ concatenation is out of reach of any AST scan; nothing in the tree does that todNote that ``runtime_hub`` is unrelated to the ``pipelex.runtime_bridge`` package despite the sharedword: the hub is the runtime layer's service container, while ``runtime_bridge`` is a transport.-Two deliberate carve-outs:+Two deliberate carve-outs, applying to every rule that is about what *loads*:-- **``if TYPE_CHECKING:`` blocks are exempt from the layer rule** (but not from the dead-module rule).+- **``if TYPE_CHECKING:`` blocks are exempt from the layer rules** (but not from the dead-module rule).The rule is about what *loads*, and a type-only import loads nothing — deferring a type-only needunder ``TYPE_CHECKING`` is this repo's sanctioned pattern for it (see the ``pipe_func_executor_registry``note in ``docs/contribute/hub-layering.md``). Only ``TYPE_CHECKING`` and ``typing.TYPE_CHECKING``@@ -52,6 +63,7 @@ presentation layer wired into the ``pipelex-dev`` Typer app lives in ``check_hubfrom __future__ import annotationsimport ast+from collections import dequefrom enum import StrEnumfrom pathlib import Pathfrom typing import TYPE_CHECKING, NamedTuple@@ -82,34 +94,51 @@ SCAN_ROOTS: tuple[Path, ...] = (SOURCE_ROOT, TESTS_ROOT)#: since nothing in the tuple is a prefix of it. Its closure *is* what the runtime layer means, so an#: `interpreter_hub` import there is the one that would break the property outright.#:-#: `pipelex/core/**` is listed **package by package**, not wholesale, because `core/` is genuinely two-#: layers. Its data model — concepts, domains, stuffs, working memory, the input/output *specs* — is-#: runtime: it describes what a method's values are, and nothing in it needs a loaded method. The-#: remainder names a `Pipe`, and a pipe is the interpreter's own object: `pipe_abstract`,-#: `pipe_blueprint`, `pipe_factory`, `registry_models`, `bundles/` (a discriminated union over every-#: pipe blueprint), `interpreter/`, and `pipes/rendering/` all import the interpreter *directly*, so-#: declaring them runtime would be a claim the measurement contradicts. Those modules resolve their-#: collaborators from the hub and inject them downward into the runtime half — the one-way arrow the-#: whole design rests on. See the "Where core splits" section of ``docs/contribute/hub-layering.md``.+#: `pipelex.core` is a single entry, and getting it there was the point of the modularity work. `core/`+#: used to be genuinely two layers, so this tuple had to name its data-model packages one by one —+#: concepts, domains, memory, stuffs, and the input/output *specs* under `pipes/` — while excluding the+#: remainder, which named a `Pipe` and imported the interpreter *directly*. That remainder has left:+#: the pipe-kind registration manifest is `pipelex.pipe_machinery.registry_models`, the parser and its+#: bundle blueprint are `pipelex.mthds_parsing`, and the Pipe machinery proper (`pipe_abstract`,+#: `pipe_blueprint`, `pipe_factory`, `validation`, `template_guard_lint`, `rendering/`) is+#: `pipelex.pipe_machinery`. What is left in `core/` describes what a method's *values* are, and+#: nothing in it needs a loaded method — measured: no `pipelex.core.*` module reaches `interpreter_hub`+#: or loads a module from any of the packages above. (`core.pipes.pipe_output` does still pull in+#: `pipeline.pipeline_models` for one leaf constant — the known `pipeline` / `pipe_run` placement wart,+#: which is why the claim is scoped to those packages rather than to "zero interpreter modules".)+#: A package-granular declaration is only honest when the packages match the layers; naming+#: `pipelex.core` wholesale is now a claim the measurement supports rather than contradicts.+#:+#: `pipelex.plugins` and `pipelex.providers` are two entries for what used to be one package, and+#: both are runtime-layer: `plugins` is the plugin *mechanism* (the contract, the registrar, the+#: capability registries), `providers` the built-in vendor *adapters* that register through it.+#: Splitting them did not move the boundary — it made the one-way dependency legible — so leaving+#: `pipelex.providers` undeclared would silently un-declare the largest runtime-layer package. Note+#: that omitting an entry makes this guard **quieter**, not louder: the transitive rule below filters+#: its candidates through :func:`is_runtime_layer`, so an undeclared package is excluded from the+#: rule's domain rather than reported by it. That is why the declaration is asserted by a test.+#: See the "Where core splits" section of ``docs/contribute/hub-layering.md``.RUNTIME_LAYER_PACKAGES: tuple[str, ...] = ("pipelex.cogt",+ "pipelex.core","pipelex.plugins",+ "pipelex.providers","pipelex.reporting","pipelex.system","pipelex.tools",# the runtime layer's own hub — a module, not a package; see the note above"pipelex.runtime_hub",- # core's data model; the Pipe-touching remainder of `core/` stays in the interpreter layer- "pipelex.core.concepts",- "pipelex.core.domains",- "pipelex.core.memory",- "pipelex.core.pipes.inputs",- "pipelex.core.pipes.stuff_spec",- "pipelex.core.stuffs",)-#: The interpreter layer's hub, which no runtime-layer module may import.-INTERPRETER_HUB_MODULE = "pipelex.interpreter_hub"+#: The interpreter layer's hub, which no runtime-layer module may import — directly or transitively.+#: Marked like :data:`DELETED_HUB_MODULE` below, for the same reason and against a different rule:+#: this line *declares* the path rather than importing it, so without the marker rule 3 would read the+#: guard's own configuration as a dynamic import and give the module a phantom edge to the hub.+INTERPRETER_HUB_MODULE = "pipelex.interpreter_hub" # hub-layering: ignore++#: The root package the transitive rule builds its import graph over. Imports of anything else+#: (stdlib, third-party) cannot lead back to a `pipelex` module, so they are not edges.+ROOT_PACKAGE = "pipelex"#: The single hub that was split and deleted. Every reference to it is dead, in every layer.#: The marker below is the escape hatch dogfooding itself: this line *declares* the forbidden path,@@ -126,11 +155,21 @@ TYPE_CHECKING_NAME = "TYPE_CHECKING"TYPING_MODULE_NAME = "typing"+class HubLayeringGuardError(Exception):+ """The guard cannot run as configured — a self-check failure, never a violation of the boundary.++ Kept local to this stdlib-only module rather than derived from ``PipelexError``: importing the+ package's exception chain here would defeat the point of the module (see the note in+ ``keyword_only_guard``, which holds its registry error the same way).+ """++class HubLayeringViolationKind(StrEnum):"""The distinct hub-layering violation kinds — each names its own remedy."""INTERPRETER_HUB_IMPORT = "interpreter-hub-import"INTERPRETER_HUB_REFERENCE = "interpreter-hub-reference"+ INTERPRETER_HUB_TRANSITIVE = "interpreter-hub-transitive"DEAD_HUB_REFERENCE = "dead-hub-reference"@property@@ -142,6 +181,12 @@ class HubLayeringViolationKind(StrEnum):"a runtime-layer module may not import `pipelex.interpreter_hub` — take the value as an argument, ""or have the interpreter layer install it downward at boot (the `class_registry_scoping` pattern)")+ case HubLayeringViolationKind.INTERPRETER_HUB_TRANSITIVE:+ return (+ "a runtime-layer module may not *reach* `pipelex.interpreter_hub` through its module-level imports "+ "either — take the collaborator as an argument, or move the module to the layer it actually belongs "+ "to (the `interpreter_plugins` relocation)"+ )case HubLayeringViolationKind.INTERPRETER_HUB_REFERENCE:return ("a runtime-layer module may not name `pipelex.interpreter_hub` in a string either — a dynamic "@@ -195,6 +240,26 @@ def targets_for(*, module_qname: str) -> frozenset[str]:return frozenset({DELETED_HUB_MODULE})+def absolute_module_for(*, node: ast.ImportFrom, package_qname: str) -> str | None:+ """Resolve an ``ImportFrom``'s module to an absolute dotted path, walking up for relative levels.++ Args:+ node: The ``from … import …`` statement.+ package_qname: The dotted name of the *package* holding the importing module, which is what a+ relative level counts up from.+ """+ if node.level == 0:+ return node.module+ parts = package_qname.split(".") if package_qname else []+ climb = node.level - 1+ if climb > len(parts):+ return None+ base_parts = parts[: len(parts) - climb]+ if node.module:+ base_parts = [*base_parts, *node.module.split(".")]+ return ".".join(base_parts) or None++def _is_type_checking_test(*, test: ast.expr) -> bool:"""Whether an ``if`` test is the bare ``TYPE_CHECKING`` / ``typing.TYPE_CHECKING`` flag.@@ -257,19 +322,6 @@ class _Collector(ast.NodeVisitor):kind = HubLayeringViolationKind.DEAD_HUB_REFERENCE if target == DELETED_HUB_MODULE else import_kindself.violations.append(HubLayeringViolation(relative_path=self.relative_path, lineno=lineno, kind=kind, detail=detail))- def _absolute_module_for(self, *, node: ast.ImportFrom) -> str | None:- """Resolve an ``ImportFrom``'s module to an absolute dotted path, walking up for relative levels."""- if node.level == 0:- return node.module- parts = self.package_qname.split(".") if self.package_qname else []- climb = node.level - 1- if climb > len(parts):- return None- base_parts = parts[: len(parts) - climb]- if node.module:- base_parts = [*base_parts, *node.module.split(".")]- return ".".join(base_parts) or None-@overridedef visit_Import(self, node: ast.Import) -> None: # pylint: disable=invalid-name # ast.NodeVisitor dispatch name"""``import pipelex.interpreter_hub`` / ``import pipelex.interpreter_hub as hub``."""@@ -282,7 +334,7 @@ class _Collector(ast.NodeVisitor):@overridedef visit_ImportFrom(self, node: ast.ImportFrom) -> None: # pylint: disable=invalid-name # ast.NodeVisitor dispatch name"""``from pipelex.interpreter_hub import x``, ``from pipelex import interpreter_hub``, and the relative forms."""- base = self._absolute_module_for(node=node)+ base = absolute_module_for(node=node, package_qname=self.package_qname)if base is None:returnfor candidate in [base, *(f"{base}.{alias.name}" for alias in node.names)]:@@ -366,3 +418,283 @@ def collect_all_violations(*, roots: Sequence[Path]) -> list[HubLayeringViolatiofor path in iter_source_files(root=root):violations.extend(find_violations_in_source(source=path.read_text(encoding="utf-8"), relative_path=path.as_posix()))return sorted(violations, key=lambda violation: violation.key)+++# --------------------------------------------------------------------------------------+# The module-level import graph (the transitive rule)+# --------------------------------------------------------------------------------------+++class _ImportGraphCollector(ast.NodeVisitor):+ """Collects one module's **module-level** ``pipelex`` imports, each with the line it sits on.++ Scope is deliberately "what an ``import`` of this module actually loads", which is what the+ closure property is about:++ - **Function bodies are skipped.** A deferred import inside a function loads nothing at import+ time. (The one-hop layer rule *does* flag a deferred ``interpreter_hub`` import, and rightly so+ — that is a named dependency on the forbidden module, not an incidental edge.)+ - **``if TYPE_CHECKING:`` blocks are skipped**, for the same reason and per the carve-out the+ whole guard shares. Class bodies are *not* skipped: they execute at import time.+ - **A statement carrying ``# hub-layering: ignore`` is skipped**, per the guard's other shared+ carve-out. A suppressed import is a reviewed, sanctioned dependency, so it is not an edge here+ either — otherwise one marker on a direct import would leave the edge in the graph while the+ finding it explains disappears, silently exempting the module from this rule and flagging every+ innocent importer of it in its place.++ One thing beyond imports *is* collected: a module-level **string literal naming the interpreter+ hub**, because a dynamic import is the same edge with the AST filed off — and the two references+ that actually occurred in this repo were strings, not imports. Only that one target is matched,+ exactly as rules 1 and 2 match only their forbidden targets: an arbitrary ``pipelex.*`` string is+ as likely a plugin name or a config value, but a string that *is* the hub path is an+ ``import_module`` or patch target in all but name. Rule 1 already catches such a string in a+ runtime-layer module; what this closes is the same string in an *intermediary*, which sits in no+ declared layer and so is rule 1's business for the dead hub only.+ """++ def __init__(self, *, package_qname: str, source_lines: list[str]) -> None:+ self.package_qname = package_qname+ self.source_lines = source_lines+ self.imports: dict[str, int] = {}++ def _is_suppressed(self, *, lineno: int, end_lineno: int | None) -> bool:+ """Whether the escape-hatch marker sits anywhere on the offending node's lines."""+ for line_number in range(lineno, (end_lineno or lineno) + 1):+ index = line_number - 1+ if 0 <= index < len(self.source_lines) and ESCAPE_HATCH_MARKER in self.source_lines[index]:+ return True+ return False++ def _record(self, *, candidate: str, lineno: int) -> None:+ """Keep an in-package candidate, at the first line that names it."""+ if references_module(candidate=candidate, target=ROOT_PACKAGE) and candidate not in self.imports:+ self.imports[candidate] = lineno++ @override+ def visit_FunctionDef(self, node: ast.FunctionDef) -> None: # pylint: disable=invalid-name # ast.NodeVisitor dispatch name+ """A function body is not part of the import closure — do not descend into it."""++ @override+ def visit_AsyncFunctionDef(self, node: ast.AsyncFunctionDef) -> None: # pylint: disable=invalid-name # ast.NodeVisitor dispatch name+ """A coroutine body is not part of the import closure — do not descend into it."""++ @override+ def visit_If(self, node: ast.If) -> None: # pylint: disable=invalid-name # ast.NodeVisitor dispatch name+ """Skip the body of ``if TYPE_CHECKING:``; its ``else`` branch is ordinary runtime code."""+ if not _is_type_checking_test(test=node.test):+ self.generic_visit(node)+ return+ for statement in node.orelse:+ self.visit(statement)++ @override+ def visit_Import(self, node: ast.Import) -> None: # pylint: disable=invalid-name # ast.NodeVisitor dispatch name+ """``import pipelex.x`` / ``import pipelex.x as y``."""+ if self._is_suppressed(lineno=node.lineno, end_lineno=node.end_lineno):+ return+ for alias in node.names:+ self._record(candidate=alias.name, lineno=node.lineno)++ @override+ def visit_ImportFrom(self, node: ast.ImportFrom) -> None: # pylint: disable=invalid-name # ast.NodeVisitor dispatch name+ """``from pipelex.x import y`` and the relative forms — both the module and each name are candidates."""+ if self._is_suppressed(lineno=node.lineno, end_lineno=node.end_lineno):+ return+ base = absolute_module_for(node=node, package_qname=self.package_qname)+ if base is None:+ return+ self._record(candidate=base, lineno=node.lineno)+ for alias in node.names:+ self._record(candidate=f"{base}.{alias.name}", lineno=node.lineno)++ @override+ def visit_Constant(self, node: ast.Constant) -> None: # pylint: disable=invalid-name # ast.NodeVisitor dispatch name+ """A module-level string naming the interpreter hub — a dynamic import is the same edge.++ Matched against the hub alone, never against any ``pipelex.*`` string: see the class+ docstring for why the narrow target is the point rather than a shortcut.+ """+ value = node.value+ if not isinstance(value, str) or not references_module(candidate=value, target=INTERPRETER_HUB_MODULE):+ return+ if self._is_suppressed(lineno=node.lineno, end_lineno=node.end_lineno):+ return+ self._record(candidate=value, lineno=node.lineno)+++class ImportGraph(NamedTuple):+ """The module-level import graph of one source tree.++ Attributes:+ paths: Every scanned module's dotted name, mapped to its repo-root-relative path.+ edges: Each module's imports, mapped to the line the import sits on. Only edges to modules+ present in ``paths`` are kept — an unresolvable target cannot lead back to the hub.+ """++ paths: dict[str, Path]+ edges: dict[str, dict[str, int]]+++def _resolve_candidate(*, candidate: str, known_modules: dict[str, Path]) -> str | None:+ """The scanned module a dotted candidate names, walking up so ``pkg.mod.Symbol`` resolves to ``pkg.mod``."""+ current = candidate+ while current:+ if current in known_modules:+ return current+ if "." not in current:+ return None+ current = current.rsplit(".", 1)[0]+ return None+++def _target_with_ancestors(*, target: str, known_modules: dict[str, Path]) -> list[str]:+ """``target`` plus every ancestor package importing it also executes.++ ``import pkg.sub.mod`` runs ``pkg/__init__.py`` and ``pkg/sub/__init__.py`` **before** ``mod``, so+ a package init that reaches the hub is reached by every importer of anything beneath it. Modelling+ only the literal target would leave that whole class of breach invisible to the reachability walk.+ Ancestors without an ``__init__.py`` are not scanned modules and execute nothing, so they are+ skipped. The target comes first, so its own import line wins over an ancestor's.+ """+ modules = [target]+ parts = target.split(".")+ for depth in range(1, len(parts)):+ ancestor = ".".join(parts[:depth])+ if ancestor in known_modules:+ modules.append(ancestor)+ return modules+++def build_import_graph(*, root: Path) -> ImportGraph:+ """Parse every module under ``root`` and resolve its module-level imports into a graph.++ Args:+ root: The source root to scan, **relative to the repo root**. Module names are derived from+ the scanned path verbatim, so an absolute root yields qnames like ``Users.you.repo.pipelex.x``+ that match no ``pipelex`` candidate and produce a graph with no edges at all.+ :func:`collect_transitive_violations` turns that silent degradation into a hard failure.++ Raises:+ SyntaxError: If a module does not parse — never swallowed, for the reason+ :func:`find_violations_in_source` gives.+ """+ paths: dict[str, Path] = {}+ candidates: dict[str, dict[str, int]] = {}+ for path in iter_source_files(root=root):+ qname = module_qname_for(path=path)+ paths[qname] = path+ source = path.read_text(encoding="utf-8")+ collector = _ImportGraphCollector(package_qname=".".join(path.parent.parts), source_lines=source.splitlines())+ collector.visit(ast.parse(source))+ candidates[qname] = collector.imports++ edges: dict[str, dict[str, int]] = {}+ for qname, imported in candidates.items():+ resolved: dict[str, int] = {}+ for candidate, lineno in imported.items():+ target = _resolve_candidate(candidate=candidate, known_modules=paths)+ if target is None:+ continue+ for module in _target_with_ancestors(target=target, known_modules=paths):+ if module != qname:+ resolved.setdefault(module, lineno)+ edges[qname] = resolved+ return ImportGraph(paths=paths, edges=edges)+++def modules_reaching(*, graph: ImportGraph, target: str) -> set[str]:+ """Every module with a module-level import path to ``target``.++ One reverse breadth-first walk over the whole graph rather than a search per module, so the cost+ is linear in the tree rather than quadratic.+ """+ importers: dict[str, set[str]] = {}+ for source, imported in graph.edges.items():+ for module in imported:+ importers.setdefault(module, set()).add(source)++ reaching: set[str] = set()+ queue = deque([target])+ while queue:+ current = queue.popleft()+ for importer in importers.get(current, set()):+ if importer not in reaching:+ reaching.add(importer)+ queue.append(importer)+ return reaching+++def shortest_import_path(*, graph: ImportGraph, start: str, target: str) -> list[str]:+ """The shortest module-level import chain from ``start`` to ``target``, or ``[]`` if there is none.++ Shortest rather than any: the first hop is what gets reported as the offending line, so it must be+ the one that most directly explains the breach. Among chains of equal length the first hop is+ picked in module-name order — deterministic, but arbitrary: a module reaching the hub by two+ equally short routes reports one of them, and cutting it leaves the other, which the next run+ reports in turn.+ """+ if start == target:+ return [start]+ previous: dict[str, str] = {}+ seen = {start}+ queue = deque([start])+ while queue:+ current = queue.popleft()+ for module in sorted(graph.edges.get(current, {})):+ if module in seen:+ continue+ previous[module] = current+ if module == target:+ chain = [target]+ while chain[-1] != start:+ chain.append(previous[chain[-1]])+ return list(reversed(chain))+ seen.add(module)+ queue.append(module)+ return []+++def collect_transitive_violations(*, root: Path) -> list[HubLayeringViolation]:+ """Every runtime-layer module that *reaches* the interpreter hub through its module-level imports.++ A **direct** import is reported by the one-hop layer rule instead, with its own remedy, so a chain+ of one hop is skipped here rather than double-reported. A finding cannot be silenced where it is+ reported: the escape hatch marks a single *import* as reviewed (which removes that edge from the+ graph, exactly as a ``TYPE_CHECKING`` deferral does), never a module's transitive reach. This rule+ fires when the declaration claims a module is runtime-layer while the import graph says otherwise,+ and the fix is to move the module or invert the dependency.++ Args:+ root: The source root to scan, relative to the repo root — see :func:`build_import_graph`.++ Raises:+ HubLayeringGuardError: If the interpreter hub is not among the scanned modules. Reverse+ reachability from a module the graph does not contain is vacuously empty, so without this+ check a renamed hub — or a ``root`` the qnames cannot be derived from — would turn the+ whole rule into a silent no-op that still reports PASSED.+ """+ graph = build_import_graph(root=root)+ if INTERPRETER_HUB_MODULE not in graph.paths:+ msg = (+ f"the transitive rule scanned {len(graph.paths)} module(s) under `{root}` but found no "+ f"`{INTERPRETER_HUB_MODULE}` among them, so it would check nothing. Either the hub module moved "+ f"(update INTERPRETER_HUB_MODULE) or the scan root is not the repo-root-relative `{SOURCE_ROOT}`."+ )+ raise HubLayeringGuardError(msg)+ reaching = modules_reaching(graph=graph, target=INTERPRETER_HUB_MODULE)++ violations: list[HubLayeringViolation] = []+ for qname in sorted(module for module in reaching if is_runtime_layer(module_qname=module)):+ chain = shortest_import_path(graph=graph, start=qname, target=INTERPRETER_HUB_MODULE)+ if len(chain) < 3:+ continue+ first_hop = chain[1]+ violations.append(+ HubLayeringViolation(+ relative_path=graph.paths[qname].as_posix(),+ lineno=graph.edges[qname][first_hop],+ kind=HubLayeringViolationKind.INTERPRETER_HUB_TRANSITIVE,+ detail=f"reaches `{INTERPRETER_HUB_MODULE}` via {' → '.join(chain[1:])}",+ )+ )+ return sorted(violations, key=lambda violation: violation.key)diff --git a/pipelex/cli/dev_cli/commands/keyword_only_guard.py b/pipelex/cli/dev_cli/commands/keyword_only_guard.pyindex c1d6ae57b..e0be8c72d 100644--- a/pipelex/cli/dev_cli/commands/keyword_only_guard.py+++ b/pipelex/cli/dev_cli/commands/keyword_only_guard.py@@ -32,8 +32,10 @@ root (one entry per def, keyed ``<relative_path>::<qualified_name>``, recordingviolation; a grant whose def no longer exists (or whose recorded ``param`` no longer matches) is aviolation too — staleness is symmetric. A subject annotated ``bool``/``int``/``float`` (includingtheir ``Optional``/union-with-``None`` forms) is banned outright, grant or not: ``f(True)`` call-sites are never acceptable. The registry is READ here (``tomllib``, stdlib); it is only ever-WRITTEN by the full ``pipelex-dev subject-grant`` command (tomlkit, via ``toml_utils``).+sites are never acceptable. The registry's **file order** is an invariant too (it is rewritten sorted+by key on every write), and an entry sitting out of order is a violation. The registry is READ here+(``tomllib``, stdlib); it is only ever WRITTEN by the full ``pipelex-dev subject-grant`` command+(tomlkit, via ``toml_utils``)."""from __future__ import annotations@@ -43,6 +45,7 @@ import reimport sysimport tomllibfrom enum import StrEnum+from itertools import pairwisefrom pathlib import Pathfrom typing import TYPE_CHECKING, Any, NamedTuple, cast@@ -126,6 +129,7 @@ class ViolationKind(StrEnum):LITERAL_SUBJECT = "literal-subject"GRANT_PARAM_MISMATCH = "grant-param-mismatch"DEAD_GRANT = "dead-grant"+ UNSORTED_GRANT = "unsorted-grant"@propertydef remedy(self) -> str:@@ -149,6 +153,11 @@ class ViolationKind(StrEnum):return ("no def with a positional subject matches this grant — remove the entry from subject_grants.toml (re-grant after a rename/move)")+ case ViolationKind.UNSORTED_GRANT:+ return (+ "subject_grants.toml is machine-written and sorted by key — re-record any grant with `make subject-grant` "+ "(it rewrites the whole file sorted), or move the entry back into key order by hand"+ )@propertydef is_fixable_by_star_insert(self) -> bool:@@ -156,7 +165,7 @@ class ViolationKind(StrEnum):match self:case ViolationKind.MISSING_STAR | ViolationKind.UNGRANTED_SUBJECT | ViolationKind.LITERAL_SUBJECT:return True- case ViolationKind.GRANT_PARAM_MISMATCH | ViolationKind.DEAD_GRANT:+ case ViolationKind.GRANT_PARAM_MISMATCH | ViolationKind.DEAD_GRANT | ViolationKind.UNSORTED_GRANT:return False@@ -257,6 +266,13 @@ class DefInfo(NamedTuple):#: The complete set of keys a registry entry may carry — anything else fails the check._GRANT_ALLOWED_KEYS = frozenset({"param", "rationale"})+#: A registry table header as the writer emits it: one quoted key alone on its line. Grant keys always+#: contain ``/``, ``.`` and ``::``, none of which TOML permits in a bare key, so a valid entry is ALWAYS+#: quoted — an unquoted header cannot be a grant. Both quote styles match; a trailing comment is tolerated+#: (the writer never emits one, a hand-edit might). Anything else is caught by the cross-check in+#: :func:`find_unsorted_grants` rather than silently narrowing what the order rule covers.+_GRANT_TABLE_HEADER_RE = re.compile(r"^\[(?P<quote>[\"'])(?P<key>.*)(?P=quote)\]\s*(?:#.*)?$", re.MULTILINE)+def load_subject_grants(*, root: Path | None = None) -> dict[str, SubjectGrant]:"""Load and validate the subject-grants registry (``subject_grants.toml`` at the repo root).@@ -310,6 +326,59 @@ def load_subject_grants(*, root: Path | None = None) -> dict[str, SubjectGrant]:return grants+def find_unsorted_grants(*, grants: Mapping[str, SubjectGrant], root: Path | None = None) -> list[Violation]:+ """Report every registry entry that sits out of key order in the file.++ The registry is machine-written and rewritten sorted by key on every ``subject-grant`` run, so file+ order is a real invariant — and one a bulk rewrite (a package move, a sed over paths) breaks+ *silently*, since an unsorted registry still parses and still grants exactly the same subjects.++ Order is read from the raw text on purpose: TOML declares table order insignificant, so the ``dict``+ :func:`load_subject_grants` returns is not evidence of what the file looks like.++ Args:+ grants: The already-parsed registry content — the scanned headers must agree with it exactly.+ root: The repo root; defaults to the current working directory (checks run from there).++ Returns:+ One violation per entry that sorts before the entry preceding it in the file.++ Raises:+ SubjectGrantRegistryError: When the registry is missing, or when the scanned table headers do not+ match ``grants``. The scan is a text pass over a file the parser already accepted, so a+ disagreement means an entry shape the scan cannot see — which must fail loudly rather than+ quietly narrow the set of entries the order rule covers.+ """+ path = (root or Path.cwd()) / SUBJECT_GRANTS_FILE+ if not path.is_file():+ msg = f"Subject-grants registry not found at '{path}'. It is committed at the repo root; run the check from there."+ raise SubjectGrantRegistryError(msg)+ text = path.read_text(encoding="utf-8")+ scanned = [(match.group("key"), text.count("\n", 0, match.start()) + 1) for match in _GRANT_TABLE_HEADER_RE.finditer(text)]+ if sorted(key for key, _ in scanned) != sorted(grants):+ msg = (+ f"Subject-grants registry '{path}' holds entries the order check cannot read: scanned {len(scanned)} "+ f"table header(s), the parser found {len(grants)} entry(ies). Every entry must be a single quoted key "+ "alone on its line — the shape `make subject-grant` writes."+ )+ raise SubjectGrantRegistryError(msg)+ violations: list[Violation] = []+ for (previous_key, _), (key, lineno) in pairwise(scanned):+ if key >= previous_key:+ continue+ relative_path, _, qualified_name = key.partition("::")+ violations.append(+ Violation(+ relative_path=relative_path,+ qualified_name=qualified_name,+ lineno=0,+ kind=ViolationKind.UNSORTED_GRANT,+ detail=f"{SUBJECT_GRANTS_FILE}:{lineno} sorts before the preceding entry '{previous_key}'",+ )+ )+ return violations++# --------------------------------------------------------------------------------------# Carve-out detection (pure AST, no import resolution)# --------------------------------------------------------------------------------------diff --git a/pipelex/cogt/config_cogt.py b/pipelex/cogt/config_cogt.pyindex fca7b96f9..3c10f6a2b 100644--- a/pipelex/cogt/config_cogt.py+++ b/pipelex/cogt/config_cogt.py@@ -4,10 +4,10 @@ from pipelex.cogt.exceptions import LLMConfigErrorfrom pipelex.cogt.img_gen.img_gen_job_components import ImgGenJobConfig, ImgGenJobParams, ImgGenJobParamsDefaults, Qualityfrom pipelex.cogt.llm.llm_job_components import ReasoningEffortfrom pipelex.cogt.models.model_deck_config import ModelDeckConfig-from pipelex.plugins.anthropic.anthropic_config import AnthropicConfig-from pipelex.plugins.google.google_config import GoogleConfig-from pipelex.plugins.mistral.mistral_config import MistralConfig-from pipelex.plugins.openai.openai_config import OpenAIConfig+from pipelex.providers.anthropic.anthropic_config import AnthropicConfig+from pipelex.providers.google.google_config import GoogleConfig+from pipelex.providers.mistral.mistral_config import MistralConfig+from pipelex.providers.openai.openai_config import OpenAIConfigfrom pipelex.system.configuration.config_model import ConfigModelfrom pipelex.system.exceptions import ConfigValidationErrordiff --git a/pipelex/cogt/img_gen/img_gen_args_factory.py b/pipelex/cogt/img_gen/img_gen_args_factory.pyindex a88106a13..390746f7d 100644--- a/pipelex/cogt/img_gen/img_gen_args_factory.py+++ b/pipelex/cogt/img_gen/img_gen_args_factory.py@@ -15,6 +15,8 @@ from pipelex.cogt.exceptions import ImgGenParameterErrorfrom pipelex.cogt.image.image_size import ImageSizefrom pipelex.cogt.image.prompt_image import PromptImagefrom pipelex.cogt.image.prompt_image_utils import prep_prompt_images+from pipelex.cogt.img_gen.img_gen_gemini_mapping import ImgGenGeminiMapping+from pipelex.cogt.img_gen.img_gen_gpt_mapping import ImgGenGptMappingfrom pipelex.cogt.img_gen.img_gen_job import ImgGenJobfrom pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background, InputFidelity, Quality, SizeTierfrom pipelex.cogt.img_gen.img_gen_model_rules import (@@ -34,8 +36,6 @@ from pipelex.cogt.img_gen.img_gen_model_rules import (SpecificTaxonomy,)from pipelex.config import get_config-from pipelex.plugins.google.google_img_gen_factory import GoogleImgGenFactory-from pipelex.plugins.openai.openai_img_gen_factory import OpenAIImgGenFactoryfrom pipelex.tools.misc.image_utils import ImageFormatfrom pipelex.tools.uri.prepared_file import PreparedFileBase64, PreparedFileHttpUrl@@ -366,14 +366,14 @@ class ImgGenArgsFactory:raise ImgGenParameterError(msg)case AspectRatioTaxonomy.GPT_IMAGE_LEGACY:key = "size"- value = OpenAIImgGenFactory.size_for_legacy_openai_image(+ value = ImgGenGptMapping.size_for_legacy_gpt_image(model_name=model_name,aspect_ratio=aspect_ratio,size=size,)[0]case AspectRatioTaxonomy.GPT_IMAGE_2:key = "size"- value = OpenAIImgGenFactory.size_for_gpt_image_2(+ value = ImgGenGptMapping.size_for_gpt_image_2(model_name=model_name,aspect_ratio=aspect_ratio,size=size,@@ -387,7 +387,7 @@ class ImgGenArgsFactory:# The Google native worker and the gateway build their own `image_config`# from the job params; this path validates the (aspect_ratio, size) pair# against the taxonomy's published grids and exposes the ratio literal.- resolved = GoogleImgGenFactory.resolve_image_config(+ resolved = ImgGenGeminiMapping.resolve_image_config(aspect_ratio_taxonomy,aspect_ratio=aspect_ratio,size=size,@@ -503,8 +503,8 @@ class ImgGenArgsFactory:case SafetyCheckerTaxonomy.UNAVAILABLE:passcase SafetyCheckerTaxonomy.OPENAI_MODERATION:- moderation = OpenAIImgGenFactory.moderation_for_openai_image(is_moderated=is_moderated)- if not isinstance(moderation, str):+ moderation = ImgGenGptMapping.moderation_literal(is_moderated=is_moderated)+ if moderation is None:return args_dictargs_dict["moderation"] = moderationcase SafetyCheckerTaxonomy.AVAILABLE:@@ -661,7 +661,7 @@ class ImgGenArgsFactory:match input_fidelity_taxonomy:case InputFidelityTaxonomy.GPT_IMAGE_LEGACY:return {- "input_fidelity": OpenAIImgGenFactory.input_fidelity_for_openai_image(input_fidelity=input_fidelity),+ "input_fidelity": ImgGenGptMapping.input_fidelity_literal(input_fidelity=input_fidelity),}case InputFidelityTaxonomy.UNAVAILABLE:msg = f"Model '{model_name}' does not support input_fidelity"diff --git a/pipelex/plugins/google/google_img_gen_factory.py b/pipelex/cogt/img_gen/img_gen_gemini_mapping.pysimilarity index 89%rename from pipelex/plugins/google/google_img_gen_factory.pyrename to pipelex/cogt/img_gen/img_gen_gemini_mapping.pyindex 6daa324d5..28edf0c7f 100644--- a/pipelex/plugins/google/google_img_gen_factory.py+++ b/pipelex/cogt/img_gen/img_gen_gemini_mapping.py@@ -1,3 +1,14 @@+"""Wire-value mappings for the Gemini Image taxonomy family.++Keyed by the `AspectRatioTaxonomy` members `GEMINI_2_5` / `GEMINI_3_PRO` / `GEMINI_3_FLASH` /+`GEMINI_3_FLASH_LITE` — a `cogt`-owned enum — so this lives beside the args factory that+consumes it rather than in the Google adapter. The native Google worker and the Pipelex+gateway (one Portkey SDK spanning several vendors' taxonomies) both resolve geometry through+it, which is why the mapping cannot belong to either adapter.++Reference: https://ai.google.dev/gemini-api/docs/image-generation+"""+import mathimport operatorfrom collections.abc import Mapping@@ -9,34 +20,33 @@ from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, SizeTierfrom pipelex.cogt.img_gen.img_gen_model_rules import AspectRatioTaxonomy, ImgGenArgTopicfrom pipelex.cogt.model_backends.model_spec import InferenceModelSpec-GoogleAspectRatioType = Literal["1:1", "1:4", "1:8", "2:3", "3:2", "3:4", "4:1", "4:3", "4:5", "5:4", "8:1", "9:16", "16:9", "21:9"]+GeminiAspectRatioType = Literal["1:1", "1:4", "1:8", "2:3", "3:2", "3:4", "4:1", "4:3", "4:5", "5:4", "8:1", "9:16", "16:9", "21:9"]-GoogleImageSize = Literal["1K", "2K", "4K"]+GeminiImageSize = Literal["1K", "2K", "4K"]-AspectRatioToDimensions = dict[GoogleAspectRatioType, tuple[int, int]]+AspectRatioToDimensions = dict[GeminiAspectRatioType, tuple[int, int]]-class ResolvedGoogleImageConfig(NamedTuple):+class ResolvedGeminiImageConfig(NamedTuple):"""Wire-ready Google `image_config` values plus the grid dimensions they map to.An `image_size` of None means the parameter must be omitted on the wire so theprovider applies its own default (the 1K class) — never send a made-up value."""- aspect_ratio: GoogleAspectRatioType- image_size: GoogleImageSize | None+ aspect_ratio: GeminiAspectRatioType+ image_size: GeminiImageSize | Nonewidth: intheight: int-class GoogleImgGenFactory:- """Factory class for Google image generation parameter mappings.+class ImgGenGeminiMapping:+ """Aspect-ratio and size mappings for the Gemini Image models.Dimension tables mirror the resolution grids Google publishes per model generation.Which sizes and aspect ratios each model accepts is keyed by its deck-rules`AspectRatioTaxonomy` value (gemini_2_5 / gemini_3_pro / gemini_3_flash /gemini_3_flash_lite) — model handles are deck config, not code constants.- Reference: https://ai.google.dev/gemini-api/docs/image-generation"""# Gemini 2.5 generation grid — used by the gemini_2_5 taxonomy (nano-banana).@@ -105,14 +115,14 @@ class GoogleImgGenFactory:"16:9": (5504, 3072),"21:9": (6336, 2688),}- SIZE_TO_ASPECT_RATIO_TO_DIMENSIONS_GEMINI_3: ClassVar[dict[GoogleImageSize, AspectRatioToDimensions]] = {+ SIZE_TO_ASPECT_RATIO_TO_DIMENSIONS_GEMINI_3: ClassVar[dict[GeminiImageSize, AspectRatioToDimensions]] = {"1K": ASPECT_RATIO_TO_DIMENSIONS_GEMINI_3_1K,"2K": ASPECT_RATIO_TO_DIMENSIONS_GEMINI_3_2K,"4K": ASPECT_RATIO_TO_DIMENSIONS_GEMINI_3_4K,}# Gemini 3 Pro Image publishes only the standard ratios — no 1:4/4:1/1:8/8:1 banners.- GEMINI_3_PRO_ASPECT_RATIOS: ClassVar[frozenset[GoogleAspectRatioType]] = frozenset(+ GEMINI_3_PRO_ASPECT_RATIOS: ClassVar[frozenset[GeminiAspectRatioType]] = frozenset(["1:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "21:9"])@@ -163,7 +173,7 @@ class GoogleImgGenFactory:aspect_ratio: AspectRatio,size: SizeTier | ImageSize | None,model_name: str,- ) -> ResolvedGoogleImageConfig:+ ) -> ResolvedGeminiImageConfig:"""Resolve the wire-ready (aspect_ratio, image_size) pair and its grid dimensions.An exact size derives its grid cell from the taxonomy's grids and ignores the@@ -178,7 +188,7 @@ class GoogleImgGenFactory:"""if isinstance(size, ImageSize):ratio_literal, google_size = cls.derive_ratio_and_size_from_exact_size(taxonomy, exact_size=size, model_name=model_name)- return ResolvedGoogleImageConfig(aspect_ratio=ratio_literal, image_size=google_size, width=size.width, height=size.height)+ return ResolvedGeminiImageConfig(aspect_ratio=ratio_literal, image_size=google_size, width=size.width, height=size.height)image_size = cls.image_size_for_tier(size) if size is not None else Nonewidth, height = cls.dimensions_for_aspect_ratio_and_size(taxonomy,@@ -186,10 +196,10 @@ class GoogleImgGenFactory:size=image_size or "1K",model_name=model_name,)- return ResolvedGoogleImageConfig(aspect_ratio=cls.aspect_ratio_literal(aspect_ratio), image_size=image_size, width=width, height=height)+ return ResolvedGeminiImageConfig(aspect_ratio=cls.aspect_ratio_literal(aspect_ratio), image_size=image_size, width=width, height=height)@classmethod- def aspect_ratio_literal(cls, aspect_ratio: AspectRatio) -> GoogleAspectRatioType:+ def aspect_ratio_literal(cls, aspect_ratio: AspectRatio) -> GeminiAspectRatioType:"""Map AspectRatio enum to Google's string format."""match aspect_ratio:case AspectRatio.SQUARE:@@ -221,7 +231,7 @@ class GoogleImgGenFactory:raise ImgGenParameterError(msg)@classmethod- def image_size_for_tier(cls, tier: SizeTier) -> GoogleImageSize:+ def image_size_for_tier(cls, tier: SizeTier) -> GeminiImageSize:"""Map a portable size tier to Google's `image_size` wire token."""match tier:case SizeTier.ONE_K:@@ -235,7 +245,7 @@ class GoogleImgGenFactory:raise ImgGenParameterError(msg)@classmethod- def grids_for_taxonomy(cls, taxonomy: AspectRatioTaxonomy, *, model_name: str) -> Mapping[GoogleImageSize, AspectRatioToDimensions]:+ def grids_for_taxonomy(cls, taxonomy: AspectRatioTaxonomy, *, model_name: str) -> Mapping[GeminiImageSize, AspectRatioToDimensions]:"""The (size -> ratio -> dimensions) cells a Google taxonomy accepts, ratio-filtered.The returned mapping shares the class-level grid tables — read-only by contract.@@ -268,7 +278,7 @@ class GoogleImgGenFactory:taxonomy: AspectRatioTaxonomy,*,aspect_ratio: AspectRatio,- size: GoogleImageSize,+ size: GeminiImageSize,model_name: str,) -> tuple[int, int]:"""Get pixel dimensions (width, height) for the given aspect ratio and size, gated per taxonomy."""@@ -292,7 +302,7 @@ class GoogleImgGenFactory:*,exact_size: ImageSize,model_name: str,- ) -> tuple[GoogleAspectRatioType, GoogleImageSize]:+ ) -> tuple[GeminiAspectRatioType, GeminiImageSize]:"""Exact-grid match: derive the (ratio, size) pair whose grid cell equals the exact WxH.Raises:diff --git a/pipelex/plugins/openai/openai_img_gen_factory.py b/pipelex/cogt/img_gen/img_gen_gpt_mapping.pysimilarity index 79%rename from pipelex/plugins/openai/openai_img_gen_factory.pyrename to pipelex/cogt/img_gen/img_gen_gpt_mapping.pyindex c2d88822e..62769575f 100644--- a/pipelex/plugins/openai/openai_img_gen_factory.py+++ b/pipelex/cogt/img_gen/img_gen_gpt_mapping.py@@ -1,24 +1,42 @@-from typing import ClassVar, Literal+"""Wire-value mappings for the GPT Image taxonomy family.++Keyed by `AspectRatioTaxonomy.GPT_IMAGE_LEGACY` / `GPT_IMAGE_2` and the sibling moderation+and input-fidelity taxonomies — all `cogt`-owned enums — so this lives beside the args+factory that consumes it rather than in the OpenAI adapter. More than one adapter serves+these models: the `openai` and `azure_openai` decks both ship models carrying these+taxonomies, and the gateway worker routes any model whose rules name one through the same+args factory. No single adapter owns the mapping.-from openai import Omit, omit+Reference: https://platform.openai.com/docs/guides/image-generation+"""++from typing import ClassVar, Literalfrom pipelex import logfrom pipelex.cogt.exceptions import ImgGenParameterErrorfrom pipelex.cogt.image.image_size import ImageSizefrom pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, InputFidelity, SizeTier-OpenAIImageLegacySizeType = Literal["1024x1024", "1536x1024", "1024x1536"]-OpenAIImageModerationType = Literal["low", "auto"] | Omit-OpenAIImageInputFidelityType = Literal["low", "high"]+GptImageLegacySizeType = Literal["1024x1024", "1536x1024", "1024x1536"]+GptImageModerationType = Literal["low", "auto"]+GptImageInputFidelityType = Literal["low", "high"]-class OpenAIImgGenFactory:- LEGACY_ASPECT_RATIO_TO_SIZE: ClassVar[dict[AspectRatio, tuple[OpenAIImageLegacySizeType, int, int]]] = {+class ImgGenGptMapping:+ """Size, moderation and input-fidelity mappings for the GPT Image models.++ Two geometry regimes, keyed by the model's deck-rules `AspectRatioTaxonomy` value: the+ legacy fixed grid (gpt_image_legacy — three sizes, 1K class only) and the validated+ free-form range (gpt_image_2 — exact sizes checked against the published caps, with the+ portable tiers derived by scaling the 1K preset).+ """++ LEGACY_ASPECT_RATIO_TO_SIZE: ClassVar[dict[AspectRatio, tuple[GptImageLegacySizeType, int, int]]] = {AspectRatio.SQUARE: ("1024x1024", 1024, 1024),AspectRatio.LANDSCAPE_3_2: ("1536x1024", 1536, 1024),AspectRatio.PORTRAIT_2_3: ("1024x1536", 1024, 1536),}- LEGACY_SIZE_TO_DIMENSIONS: ClassVar[dict[str, tuple[OpenAIImageLegacySizeType, int, int]]] = {+ LEGACY_SIZE_TO_DIMENSIONS: ClassVar[dict[str, tuple[GptImageLegacySizeType, int, int]]] = {size: (size, width, height) for size, width, height in LEGACY_ASPECT_RATIO_TO_SIZE.values()}@@ -41,13 +59,13 @@ class OpenAIImgGenFactory:GPT_IMAGE_2_RELIABILITY_PIXELS: ClassVar[int] = 2560 * 1440@classmethod- def size_for_legacy_openai_image(+ def size_for_legacy_gpt_image(cls,*,model_name: str,aspect_ratio: AspectRatio,size: SizeTier | ImageSize | None,- ) -> tuple[OpenAIImageLegacySizeType, int, int]:+ ) -> tuple[GptImageLegacySizeType, int, int]:if isinstance(size, SizeTier):match size:case SizeTier.ONE_K:@@ -68,7 +86,7 @@ class OpenAIImgGenFactory:if legacy_size := cls.LEGACY_ASPECT_RATIO_TO_SIZE.get(aspect_ratio):return legacy_size- supported_aspect_ratios = ", ".join(aspect_ratio.value for aspect_ratio in cls.LEGACY_ASPECT_RATIO_TO_SIZE)+ supported_aspect_ratios = ", ".join(supported_ratio.value for supported_ratio in cls.LEGACY_ASPECT_RATIO_TO_SIZE)msg = (f"Aspect ratio '{aspect_ratio}' is not supported by OpenAI image model '{model_name}'. "f"Supported aspect ratios are: {supported_aspect_ratios}"@@ -174,16 +192,21 @@ class OpenAIImgGenFactory:log.warning(msg)@classmethod- def moderation_for_openai_image(cls, *, is_moderated: bool | None) -> OpenAIImageModerationType:- """Map the is_moderated flag to OpenAI's moderation parameter: "auto" is standard filtering, "low" is less restrictive."""+ def moderation_literal(cls, *, is_moderated: bool | None) -> GptImageModerationType | None:+ """Map the is_moderated flag to the GPT Image moderation value: "auto" is standard filtering, "low" is less restrictive.++ None means "send nothing" so the provider applies its own default — the caller omits+ the argument rather than forwarding a sentinel, which is what keeps this mapping free+ of any provider SDK.+ """if is_moderated is None:- return omit+ return Noneif is_moderated:return "auto"return "low"@classmethod- def input_fidelity_for_openai_image(cls, input_fidelity: InputFidelity) -> OpenAIImageInputFidelityType:+ def input_fidelity_literal(cls, input_fidelity: InputFidelity) -> GptImageInputFidelityType:match input_fidelity:case InputFidelity.LOW:return "low"diff --git a/pipelex/cogt/model_backends/backend_factory.py b/pipelex/cogt/model_backends/backend_factory.pyindex 129c2d297..a2252f37f 100644--- a/pipelex/cogt/model_backends/backend_factory.py+++ b/pipelex/cogt/model_backends/backend_factory.py@@ -50,7 +50,7 @@ class InferenceBackendFactory:match name:case "vertexai":# Deferred import: avoid pulling heavy SDK at module-load time- from pipelex.plugins.openai.vertexai_factory import VertexAIFactory # noqa: PLC0415+ from pipelex.providers.openai.vertexai_factory import VertexAIFactory # noqa: PLC0415endpoint, api_key = VertexAIFactory.make_endpoint_and_api_key(extra_config=extra_config)case _:diff --git a/pipelex/core/exceptions.py b/pipelex/core/exceptions.pyindex 222cbfaad..b2f57aeb3 100644--- a/pipelex/core/exceptions.py+++ b/pipelex/core/exceptions.py@@ -26,6 +26,33 @@ class PipeFactoryErrorData(BaseModel):message: str = Field(description="Human-readable error message")+class PipelexBundleBlueprintValidationErrorData(BaseModel):+ """Structured validation error data for bundle blueprint validation errors.++ This model captures information about validation errors that occur during+ blueprint validation (before pipe instantiation).++ Lives here rather than beside the parser that raises it: `pipeline/` and `libraries/`+ carry it into every runtime-layer import closure, so an interpreter-layer home would+ make the boundary the closure test guards unenforceable. It is the third of the three+ structured error-data models in this module, all keyed on `PipeValidationErrorType`.+ """++ error_type: PipeValidationErrorType | None = None+ domain_code: str | None = None+ source: str | None = None+ pipe_code: str | None = None+ concept_code: str | None = None+ message: str+ variable_names: list[str] | None = None++ # The namespace-stripped bare code for a strippable same-domain over-qualified pipe code+ # (``strip-namespace`` enrichment). Present only when the fix planner can act; ``pipe_code``+ # discriminates the two raise sites — set to the offending dotted code for a declaration-key+ # rename, ``None`` for a ``main_pipe`` value strip (which is a root ``set_key``, not a rename).+ stripped_pipe_code: str | None = None++class PipesAndConceptValidationErrorData(BaseModel):"""Structured validation error data for Pipe/Concept validation errors.diff --git a/pipelex/core/interpreter/exceptions.py b/pipelex/core/interpreter/exceptions.pydeleted file mode 100644index 96ac90ed9..000000000--- a/pipelex/core/interpreter/exceptions.py+++ /dev/null@@ -1,29 +0,0 @@-from pipelex.base_exceptions import ErrorDomain, PipelexError-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData---class PipelexInterpreterError(PipelexError):- """Raised when PipelexInterpreter fails.-- Covers every way the caller's ``.mthds`` source can be rejected — TOML that- does not parse, and TOML that parses but fails blueprint validation. The- message is always caller-facing copy describing a fault in the caller's own- input.- """-- error_domain = ErrorDomain.INPUT- # The interpreter's messages describe faults in the caller's own .mthds- # source — caller-facing copy, kept verbatim under STRICT disclosure.- _authors_caller_facing_message = True-- def __init__(- self,- message: str,- validation_errors: list[PipelexBundleBlueprintValidationErrorData] | None = None,- ):- self.validation_errors = validation_errors or []- super().__init__(message)---class BundleElaboratorError(PipelexInterpreterError):- """Raised when bundle elaboration fails (e.g. synthetic-name collision, invalid output for preliminary_text)."""diff --git a/pipelex/core/registry_models.py b/pipelex/core/registry_models.pyindex fbfcc9da6..c8f6d10c5 100644--- a/pipelex/core/registry_models.py+++ b/pipelex/core/registry_models.py@@ -1,7 +1,5 @@-from typing import Any, ClassVar+from typing import ClassVar-from pipelex.core.pipes.pipe_abstract import PipeAbstractType-from pipelex.core.pipes.pipe_factory import PipeFactoryProtocolfrom pipelex.core.stuffs.composite_content import CompositeContentfrom pipelex.core.stuffs.date_content import DateContentfrom pipelex.core.stuffs.document_content import DocumentContent@@ -20,77 +18,19 @@ from pipelex.core.stuffs.text_and_images_content import TextAndImagesContentfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.core.stuffs.time_content import TimeContentfrom pipelex.core.stuffs.yes_no_content import YesNoContent-from pipelex.pipe_controllers.batch.pipe_batch import PipeBatch-from pipelex.pipe_controllers.batch.pipe_batch_factory import PipeBatchFactory-from pipelex.pipe_controllers.condition.pipe_condition import PipeCondition-from pipelex.pipe_controllers.condition.pipe_condition_factory import PipeConditionFactory-from pipelex.pipe_controllers.parallel.pipe_parallel import PipeParallel-from pipelex.pipe_controllers.parallel.pipe_parallel_factory import PipeParallelFactory-from pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequence-from pipelex.pipe_controllers.sequence.pipe_sequence_factory import PipeSequenceFactory-from pipelex.pipe_operators.compose.pipe_compose import PipeCompose-from pipelex.pipe_operators.compose.pipe_compose_factory import PipeComposeFactory-from pipelex.pipe_operators.extract.pipe_extract import PipeExtract-from pipelex.pipe_operators.extract.pipe_extract_factory import PipeExtractFactory-from pipelex.pipe_operators.func.pipe_func import PipeFunc-from pipelex.pipe_operators.func.pipe_func_factory import PipeFuncFactory-from pipelex.pipe_operators.img_gen.pipe_img_gen import PipeImgGen-from pipelex.pipe_operators.img_gen.pipe_img_gen_factory import PipeImgGenFactory-from pipelex.pipe_operators.llm.pipe_llm import PipeLLM-from pipelex.pipe_operators.llm.pipe_llm_factory import PipeLLMFactory-from pipelex.pipe_operators.search.pipe_search import PipeSearch-from pipelex.pipe_operators.search.pipe_search_factory import PipeSearchFactory-from pipelex.pipe_operators.structure.pipe_structure import PipeStructure-from pipelex.pipe_operators.structure.pipe_structure_factory import PipeStructureFactory-from pipelex.pipe_signature.pipe_signature import PipeSignature-from pipelex.pipe_signature.pipe_signature_factory import PipeSignatureFactoryfrom pipelex.system.registries.registry_base import ModelType, RegistryModelsclass CoreRegistryModels(RegistryModels):- FIELD_EXTRACTION: ClassVar[list[ModelType]] = []-- PIPE_OPERATORS: ClassVar[list[PipeAbstractType]] = [- PipeFunc,- PipeImgGen,- PipeCompose,- PipeLLM,- PipeExtract,- PipeSearch,- PipeStructure,- ]-- PIPE_OPERATORS_FACTORY: ClassVar[list[PipeFactoryProtocol[Any, Any]]] = [- PipeFuncFactory,- PipeImgGenFactory,- PipeComposeFactory,- PipeLLMFactory,- PipeExtractFactory,- PipeSearchFactory,- PipeStructureFactory,- ]-- PIPE_CONTROLLERS: ClassVar[list[PipeAbstractType]] = [- PipeBatch,- PipeCondition,- PipeParallel,- PipeSequence,- ]-- PIPE_CONTROLLERS_FACTORY: ClassVar[list[PipeFactoryProtocol[Any, Any]]] = [- PipeBatchFactory,- PipeConditionFactory,- PipeParallelFactory,- PipeSequenceFactory,- ]+ """Core's value model, as one boot-time registration manifest.- PIPE_SIGNATURES: ClassVar[list[PipeAbstractType]] = [- PipeSignature,- ]+ The pipe kinds and their factories used to live here too; they now live in+ ``pipelex.pipe_machinery.registry_models.PipeRegistryModels``, which is what keeps ``core/``+ free of ``pipe_operators`` / ``pipe_controllers`` / ``pipe_signature`` imports. Both manifests+ are registered side by side at boot; they must stay disjoint.+ """- PIPE_SIGNATURES_FACTORY: ClassVar[list[PipeFactoryProtocol[Any, Any]]] = [- PipeSignatureFactory,- ]+ FIELD_EXTRACTION: ClassVar[list[ModelType]] = []STUFF: ClassVar[list[ModelType]] = [TextContent,diff --git a/pipelex/errors/error_identity_snapshot.py b/pipelex/errors/error_identity_snapshot.pynew file mode 100644index 000000000..b353d830e--- /dev/null+++ b/pipelex/errors/error_identity_snapshot.py@@ -0,0 +1,83 @@+"""Snapshot of the wire-visible identity of every ``PipelexError`` subclass.++Every ``ErrorReport`` carries three identity fields — ``error_type``, ``title``+and ``type_uri`` (see :meth:`pipelex.base_exceptions.PipelexError.to_error_report`).+``error_type`` is the Python class name verbatim, with no indirection, and+external consumers branch on that string. Renaming an error class therefore+breaks them *silently*: their build stays green and the branch simply stops+matching, falling through to a generic error path.++``title`` and ``type_uri`` each have a declaration hatch (``_declared_title`` /+``_declared_type_uri``) precisely because they are presentation. ``error_type``,+the one field that is a machine contract, has none — so nothing in this repo+flagged a rename. This module closes that gap the cheap way: it renders the full+``(error_type, title, type_uri)`` set as a flat sorted table whose rendering is+committed to the repo, so a rename lands as a reviewable one-line-pair diff on a+single file at the moment it is made, instead of surfacing much later as a+fallthrough in a different repo.++Pure: :meth:`PipelexError.title` and :meth:`PipelexError.type_uri` read class+attributes and a module-level URL constant, so rendering needs no Pipelex+bootstrap.+"""++from __future__ import annotations++from typing import NamedTuple++from pipelex.errors.error_pages_generator import iter_pipelex_error_subclasses++# Column separator. Space-padded so the fields stay legible in a raw diff, and+# absent from every class name / type URI so a naive split round-trips.+SNAPSHOT_SEPARATOR = " | "++# Preamble written above the table. Explains what a diff here means to whoever+# is reviewing one, and names the command that regenerates the file.+_HEADER_LINES: tuple[str, ...] = (+ "# Wire identity of every PipelexError subclass: error_type | title | type_uri",+ "#",+ "# `error_type` is the Python class name, verbatim — base_exceptions.py builds it as",+ "# `type(self).__name__`. Consumers outside this repo switch on that string, so renaming",+ "# an error class is a wire break that no build anywhere catches: they stay green and",+ "# silently fall through to a generic branch. A diff in this file IS that wire break.",+ "#",+ "# Generated — do not hand-edit. Regenerate with `make generate-error-identity` (alias `make gei`).",+ "# Verified by tests/unit/pipelex/errors/test_error_identity_snapshot.py.",+)+++class ErrorIdentityRow(NamedTuple):+ """One error class's wire-visible identity triple."""++ error_type: str+ title: str+ type_uri: str+++def iter_error_identity_rows() -> list[ErrorIdentityRow]:+ """Return the identity triple of every discoverable ``PipelexError`` subclass, sorted.++ Population comes from :func:`iter_pipelex_error_subclasses`, which+ force-loads the deferred-import error modules and filters synthetic /+ fixture subclasses — the same set the generated docs pages and the+ ``type_uri`` uniqueness check agree on. Do not hand-roll a+ ``__subclasses__()`` walk here; see+ ``tests/unit/pipelex/errors/test_error_class_location_convention.py`` for why+ a naked walk is green for the wrong reason.++ Sorted by the triple itself so the rendering is stable across runs and+ independent of import order. Duplicate triples are not collapsed — two+ classes sharing a name would show as two identical lines rather than being+ silently merged (``test_pipelex_error_type_uri_uniqueness`` is what actually+ forbids that case).+ """+ rows = [ErrorIdentityRow(error_type=cls.__name__, title=cls.title(), type_uri=cls.type_uri()) for cls in iter_pipelex_error_subclasses()]+ return sorted(rows)+++def render_error_identity_snapshot() -> str:+ """Render the committed snapshot text: the preamble, a blank line, then one row per class."""+ lines: list[str] = [*_HEADER_LINES, ""]+ for row in iter_error_identity_rows():+ lines.append(SNAPSHOT_SEPARATOR.join(row))+ return "\n".join(lines) + "\n"diff --git a/pipelex/errors/error_pages_generator.py b/pipelex/errors/error_pages_generator.pyindex ead89333f..8ccd2af12 100644--- a/pipelex/errors/error_pages_generator.py+++ b/pipelex/errors/error_pages_generator.py@@ -397,6 +397,7 @@ _FALLBACK_MACRO_SLUG = "platform-and-tooling"# label wording, macro placement, and ordering, never completeness._SUBSYSTEM_SECTIONS: tuple[tuple[str, str, str], ...] = (# Authoring & language+ ("mthds_parsing", "authoring-and-language", "MTHDS parsing"),("core", "authoring-and-language", "Core language"),("pipe_operators", "authoring-and-language", "Pipe operators"),("pipe_controllers", "authoring-and-language", "Pipe controllers"),@@ -411,7 +412,11 @@ _SUBSYSTEM_SECTIONS: tuple[tuple[str, str, str], ...] = (("tracing", "execution-and-runtime", "Tracing"),# Inference & providers("cogt", "inference-and-providers", "Inference (Cogt)"),- ("plugins", "inference-and-providers", "Provider plugins"),+ # Two rows, because the vendor adapters and the plugin mechanism they register through are+ # two packages. `providers` is the one a method author hits (a vendor SDK rejected the call);+ # `plugins` is the one an integrator hits (a plugin failed to load or claimed a taken slot).+ ("providers", "inference-and-providers", "Provider adapters"),+ ("plugins", "inference-and-providers", "Plugin system"),# Platform & tooling("base_exceptions", "platform-and-tooling", "Base & root errors"),("tools", "platform-and-tooling", "Tools"),diff --git a/pipelex/graph/graph_rendering.py b/pipelex/graph/graph_rendering.pyindex ce560a676..c31c0c9e2 100644--- a/pipelex/graph/graph_rendering.py+++ b/pipelex/graph/graph_rendering.py@@ -166,7 +166,7 @@ async def generate_graph_for_bundle(Dictionary with graph_files, graph_output_dir, and direction.Raises:- PipelexInterpreterError: If bundle parsing fails or main_pipe is missing.+ MthdsParserError: If bundle parsing fails or main_pipe is missing.PipelexError: If pipeline execution does not produce a graph spec.PipelineExecutionError: If dry-run execution fails."""@@ -239,7 +239,7 @@ async def generate_view_for_bundle(Dictionary with graphspec (JSON-serializable dict), pipe_code, and direction.Raises:- PipelexInterpreterError: If bundle parsing fails or main_pipe is missing.+ MthdsParserError: If bundle parsing fails or main_pipe is missing.PipelexError: If pipeline execution does not produce a graph spec.PipelineExecutionError: If dry-run execution fails."""diff --git a/pipelex/interpreter_hub.py b/pipelex/interpreter_hub.pyindex 4081f2795..b7ac885d3 100644--- a/pipelex/interpreter_hub.py+++ b/pipelex/interpreter_hub.py@@ -22,12 +22,12 @@ from kajson.class_registry_abstract import ClassRegistryAbstractfrom pipelex.core.concepts.concept import Conceptfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.domains.domain import Domain-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.libraries.concept.concept_library_abstract import ConceptLibraryAbstractfrom pipelex.libraries.domain.domain_library_abstract import DomainLibraryAbstractfrom pipelex.libraries.library import Libraryfrom pipelex.libraries.library_manager_abstract import LibraryManagerAbstractfrom pipelex.libraries.pipe.pipe_library_abstract import PipeLibraryAbstract+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractfrom pipelex.pipe_operators.func.pipe_func_executor_protocol import PipeFuncExecutorProtocolfrom pipelex.pipeline.pipeline import Pipelinefrom pipelex.pipeline.pipeline_manager_abstract import PipelineManagerAbstractdiff --git a/pipelex/core/bundles/__init__.py b/pipelex/interpreter_plugins/__init__.pysimilarity index 100%rename from pipelex/core/bundles/__init__.pyrename to pipelex/interpreter_plugins/__init__.pydiff --git a/pipelex/interpreter_plugins/builtins.py b/pipelex/interpreter_plugins/builtins.pynew file mode 100644index 000000000..a8ce500c6--- /dev/null+++ b/pipelex/interpreter_plugins/builtins.py@@ -0,0 +1,38 @@+"""The composition root's view of the built-in plugins: both layers' halves, welded into one list.++``pipelex.providers`` — the built-in vendor adapters — is a declared runtime-layer package, so it may+not name anything that reaches ``interpreter_hub``, which the two plugins next door do by+construction: their job is to construct interpreter-layer objects (a ``DirectOrchestrator``, a+``DirectBundleValidator``, a ``DirectPipeFuncExecutor``). This package is the interpreter-side home+for them, and it is *allowed* to import downward, so composing the two halves here is legal where+doing it in the runtime adapters' own manifest was the weld that made "the adapters are a runtime+layer" false.++There is still exactly one place that answers "what are the built-in plugins" — it just lives in the+layer permitted to do the welding. Both callers of ``build_registrar`` (boot in ``pipelex.py``, and the+``pipelex plugins list`` diagnostic) consume the lists below. See ``docs/contribute/hub-layering.md``.+"""++from pipelex.interpreter_plugins.direct.direct_plugin import DirectOrchestratorPlugin+from pipelex.interpreter_plugins.pipe_func.pipe_func_plugin import PipeFuncPlugin+from pipelex.plugins.contract import PipelexPlugin+from pipelex.providers.builtins import RUNTIME_BUILTIN_PLUGINS, RUNTIME_CORE_UNCONDITIONAL_PLUGIN_NAMES++# The interpreter-layer half: plugins whose adapters name the method interpreter. Both are+# core-unconditional — in-process execution is required infra.+INTERPRETER_BUILTIN_PLUGINS: list[PipelexPlugin] = [+ DirectOrchestratorPlugin(),+ PipeFuncPlugin(),+]++# Interpreter-layer built-ins core requires unconditionally: ``direct`` owns the DIRECT orchestrator+# (you cannot boot without an in-process execution mode) and ``pipe_func`` owns the built-in PipeFunc+# execution modes (``pipe_func_config.execution_mode`` must resolve to a registered factory or boot+# fails loud — ``direct`` must always be present).+INTERPRETER_CORE_UNCONDITIONAL_PLUGIN_NAMES: frozenset[str] = frozenset({"direct", "pipe_func"})++# The plugins Pipelex ships with — discovered at boot ahead of any external entry-point plugin.+BUILTIN_PLUGINS: list[PipelexPlugin] = [*INTERPRETER_BUILTIN_PLUGINS, *RUNTIME_BUILTIN_PLUGINS]++# Every built-in plugin core requires unconditionally, both layers.+CORE_UNCONDITIONAL_PLUGIN_NAMES: frozenset[str] = INTERPRETER_CORE_UNCONDITIONAL_PLUGIN_NAMES | RUNTIME_CORE_UNCONDITIONAL_PLUGIN_NAMESdiff --git a/pipelex/core/interpreter/__init__.py b/pipelex/interpreter_plugins/direct/__init__.pysimilarity index 100%rename from pipelex/core/interpreter/__init__.pyrename to pipelex/interpreter_plugins/direct/__init__.pydiff --git a/pipelex/plugins/direct/direct_plugin.py b/pipelex/interpreter_plugins/direct/direct_plugin.pysimilarity index 100%rename from pipelex/plugins/direct/direct_plugin.pyrename to pipelex/interpreter_plugins/direct/direct_plugin.pydiff --git a/pipelex/core/pipes/rendering/__init__.py b/pipelex/interpreter_plugins/pipe_func/__init__.pysimilarity index 100%rename from pipelex/core/pipes/rendering/__init__.pyrename to pipelex/interpreter_plugins/pipe_func/__init__.pydiff --git a/pipelex/plugins/pipe_func/pipe_func_plugin.py b/pipelex/interpreter_plugins/pipe_func/pipe_func_plugin.pysimilarity index 94%rename from pipelex/plugins/pipe_func/pipe_func_plugin.pyrename to pipelex/interpreter_plugins/pipe_func/pipe_func_plugin.pyindex 966543646..be2f4855f 100644--- a/pipelex/plugins/pipe_func/pipe_func_plugin.py+++ b/pipelex/interpreter_plugins/pipe_func/pipe_func_plugin.py@@ -14,7 +14,7 @@ class PipeFuncPlugin:"""Always-on built-in provider of the ``direct`` (in-process) PipeFunc execution mode.Core-unconditional: PipeFunc execution is required infra, so this plugin cannot be disabled into a- boot with no executor (see ``CORE_UNCONDITIONAL_PLUGIN_NAMES``). It registers the one mode core+ boot with no executor (see ``INTERPRETER_CORE_UNCONDITIONAL_PLUGIN_NAMES``). It registers the one mode coreowns — ``direct``, which imports and runs the customer function in this process. Running a PipeFuncin a sandbox instead is a commercial capability contributed out of tree by our Daytonaplugin (mode ``daytona``); core never imports it.diff --git a/pipelex/kit/agent_rules/codex_commands.md b/pipelex/kit/agent_rules/codex_commands.mdindex 470bf9673..f3bf73bac 100644--- a/pipelex/kit/agent_rules/codex_commands.md+++ b/pipelex/kit/agent_rules/codex_commands.md@@ -84,6 +84,12 @@.venv/bin/pipelex-dev generate-error-pages```+ - **`generate-error-identity`**: Regenerate the committed `(error_type, title, type_uri)` snapshot of every `PipelexError` subclass at `tests/data/errors/error_identity.txt`. `error_type` is the bare class name and consumers outside this repo branch on it, so a rename is a silent wire break — the snapshot turns it into a reviewable diff, gated by `tests/unit/pipelex/errors/test_error_identity_snapshot.py`. Run after adding, renaming or removing an error class. Also available as `make generate-error-identity` (alias `make gei`).++ ```bash+ .venv/bin/pipelex-dev generate-error-identity+ ```+## Pipelex CLI CommandsTo run the Pipelex CLI commands without the logo, you can use the `--no-logo` flag, this will avoid useless tokens in the console output.diff --git a/pipelex/kit/agent_rules/commands.md b/pipelex/kit/agent_rules/commands.mdindex 61de0f10e..39d9f763b 100644--- a/pipelex/kit/agent_rules/commands.md+++ b/pipelex/kit/agent_rules/commands.md@@ -127,6 +127,12 @@.venv/bin/pipelex-dev generate-error-pages```+ - **`generate-error-identity`**: Regenerate the committed `(error_type, title, type_uri)` snapshot of every `PipelexError` subclass at `tests/data/errors/error_identity.txt`. `error_type` is the bare class name and consumers outside this repo branch on it, so a rename is a silent wire break — the snapshot turns it into a reviewable diff, gated by `tests/unit/pipelex/errors/test_error_identity_snapshot.py`. Run after adding, renaming or removing an error class. Also available as `make generate-error-identity` (alias `make gei`).++ ```bash+ .venv/bin/pipelex-dev generate-error-identity+ ```+- **`refresh-graph-ui-sri`**: Refetch the pinned graph viewer assets from jsDelivr (`@pipelex/mthds-ui` standalone JS+CSS, `elkjs`) and rewrite `pipelex/graph/reactflow/standalone_assets.py` with new `sha384` Subresource Integrity hashes. Use when bumping the pinned mthds-ui or elkjs version.```bashdiff --git a/pipelex/kit/agent_rules/pipelex_standards.md b/pipelex/kit/agent_rules/pipelex_standards.mdindex 30e779a0c..79fbe2768 100644--- a/pipelex/kit/agent_rules/pipelex_standards.md+++ b/pipelex/kit/agent_rules/pipelex_standards.md@@ -2,7 +2,7 @@## Spec vs Blueprint Architecture-- **Blueprints** (`pipelex/pipe_operators/`, `pipelex/pipe_controllers/`, `pipelex/core/`) are the MTHDS language reference — what `.mthds` files parse into.+- **Blueprints** (`pipelex/pipe_operators/`, `pipelex/pipe_controllers/`, `pipelex/pipe_machinery/`, `pipelex/mthds_parsing/`, `pipelex/core/`) are the MTHDS language reference — what `.mthds` files parse into. The base `PipeBlueprint` lives in `pipe_machinery/`, the bundle blueprint the parser produces in `mthds_parsing/`, and the concept/domain blueprints in `core/`.- **Specs** (`pipelex/builder/pipe/`) are a convenience authoring format for AI agents. Each spec has `to_blueprint()` that transforms it into the corresponding blueprint. Spec-level fields may differ from blueprint-level fields.When adding validation or fields, decide which layer they belong to. Language rules go on blueprints; authoring convenience goes on specs. See `pipelex/builder/CLAUDE.md` for details.diff --git a/pipelex/language/mthds_factory.py b/pipelex/language/mthds_factory.pyindex a935e0d91..b30dcb274 100644--- a/pipelex/language/mthds_factory.py+++ b/pipelex/language/mthds_factory.py@@ -12,7 +12,7 @@ from pipelex.language.toml_string_utils import format_toml_stringfrom pipelex.tools.misc.json_utils import remove_none_values_from_dictif TYPE_CHECKING:- from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint+ from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.system.configuration.configs import MthdsConfigdiff --git a/pipelex/language/mthds_schema_generator.py b/pipelex/language/mthds_schema_generator.pyindex 286d700ab..7d536bf22 100644--- a/pipelex/language/mthds_schema_generator.py+++ b/pipelex/language/mthds_schema_generator.py@@ -10,7 +10,7 @@ from __future__ import annotationsimport copyfrom typing import TYPE_CHECKING, Any, cast, get_args-from pipelex.core.bundles.pipelex_bundle_blueprint import PipeBlueprintUnion, PipelexBundleBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipeBlueprintUnion, PipelexBundleBlueprintfrom pipelex.pipe_signature.pipe_signature_blueprint import PipeSignatureBlueprintfrom pipelex.tools.misc.package_utils import get_package_versiondiff --git a/pipelex/libraries/concept_reference_validation.py b/pipelex/libraries/concept_reference_validation.pyindex 5b847d686..f7c63a10c 100644--- a/pipelex/libraries/concept_reference_validation.py+++ b/pipelex/libraries/concept_reference_validation.py@@ -1,11 +1,10 @@-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.concepts.native.concept_native import NativeConceptCode-from pipelex.core.exceptions import PipesAndConceptValidationErrorData+from pipelex.core.exceptions import PipelexBundleBlueprintValidationErrorData, PipesAndConceptValidationErrorDatafrom pipelex.core.pipes.exceptions import PipeValidationErrorTypefrom pipelex.core.qualified_ref import QualifiedReffrom pipelex.libraries.concept.exceptions import ConceptLibraryError+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintdef _split_concept_ref_context(context: str) -> tuple[str | None, str | None, str]:diff --git a/pipelex/libraries/contract_match.py b/pipelex/libraries/contract_match.pyindex 2b1df312e..bbaa0c94b 100644--- a/pipelex/libraries/contract_match.py+++ b/pipelex/libraries/contract_match.py@@ -16,9 +16,9 @@ import refrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.concepts.native.concept_native import NativeConceptCode-from pipelex.core.pipes.pipe_blueprint import PipeBlueprintfrom pipelex.core.pipes.variable_multiplicity import MULTIPLICITY_PATTERNfrom pipelex.core.qualified_ref import QualifiedRef+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintdef _canonical_concept_spec(spec: str, *, domain_code: str) -> str:diff --git a/pipelex/libraries/crate_normalization.py b/pipelex/libraries/crate_normalization.pyindex f00207434..e929aebc1 100644--- a/pipelex/libraries/crate_normalization.py+++ b/pipelex/libraries/crate_normalization.py@@ -34,7 +34,6 @@ are not yet applied here, mirroring the spec's own "Specification Status" calloufrom typing import NamedTuplefrom pipelex.codegen.native_expansion import collect_native_refs_from_structure, materialize_native_concept-from pipelex.core.bundles.pipelex_bundle_blueprint import PipeBlueprintUnionfrom pipelex.core.concepts.concept_blueprint import ConceptBlueprintfrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.concepts.concept_structure_blueprint import ConceptStructureBlueprint@@ -44,6 +43,7 @@ from pipelex.core.pipes.variable_multiplicity import MultiplicityParseResult, pafrom pipelex.core.qualified_ref import QualifiedReffrom pipelex.libraries.exceptions import CrateNormalizationErrorfrom pipelex.libraries.library_crate import LibraryCrate+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipeBlueprintUnionfrom pipelex.pipe_controllers.batch.pipe_batch_blueprint import PipeBatchBlueprintfrom pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeConditionBlueprintfrom pipelex.pipe_controllers.condition.special_outcome import SpecialOutcomediff --git a/pipelex/libraries/exceptions.py b/pipelex/libraries/exceptions.pyindex db94066b1..82a579bc8 100644--- a/pipelex/libraries/exceptions.py+++ b/pipelex/libraries/exceptions.py@@ -1,6 +1,5 @@from pipelex.base_exceptions import PipelexError-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData-from pipelex.core.exceptions import PipesAndConceptValidationErrorData+from pipelex.core.exceptions import PipelexBundleBlueprintValidationErrorData, PipesAndConceptValidationErrorDataclass LibraryError(PipelexError):diff --git a/pipelex/libraries/library_crate.py b/pipelex/libraries/library_crate.pyindex cdc41ffec..5f50c186a 100644--- a/pipelex/libraries/library_crate.py+++ b/pipelex/libraries/library_crate.py@@ -3,9 +3,9 @@ import jsonfrom pydantic import BaseModel, ConfigDict, Field-from pipelex.core.bundles.pipelex_bundle_blueprint import PipeBlueprintUnionfrom pipelex.core.concepts.concept_blueprint import ConceptBlueprintfrom pipelex.core.domains.domain_blueprint import DomainBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipeBlueprintUnionclass LibraryCrate(BaseModel):diff --git a/pipelex/libraries/library_crate_factory.py b/pipelex/libraries/library_crate_factory.pyindex f48921689..3d388f8e6 100644--- a/pipelex/libraries/library_crate_factory.py+++ b/pipelex/libraries/library_crate_factory.py@@ -1,15 +1,15 @@from typing import TYPE_CHECKING, NamedTuple-from pipelex.core.bundles.pipelex_bundle_blueprint import PipeBlueprintUnion, PipelexBundleBlueprintfrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.domains.domain_blueprint import DomainBlueprint-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.libraries.collision_messages import duplicate_ref_msgfrom pipelex.libraries.concept.exceptions import ConceptLibraryErrorfrom pipelex.libraries.contract_match import contracts_matchfrom pipelex.libraries.domain.domain_metadata_merge import merge_domain_metadata_fieldfrom pipelex.libraries.library_crate import LibraryCratefrom pipelex.libraries.pipe.exceptions import PipeLibraryError+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipeBlueprintUnion, PipelexBundleBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryif TYPE_CHECKING:from pipelex.core.concepts.concept_blueprint import ConceptBlueprintdiff --git a/pipelex/libraries/library_manager.py b/pipelex/libraries/library_manager.pyindex 722549256..09ea92dd2 100644--- a/pipelex/libraries/library_manager.py+++ b/pipelex/libraries/library_manager.py@@ -16,16 +16,11 @@ import pipelex.builder as builder_pkg # package import — used for __file__ pafrom pipelex import logfrom pipelex.cli.installed_methods import find_method_by_full_addressfrom pipelex.config import is_pipe_func_sandbox_hosted-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.core.concepts.concept_blueprint import ConceptBlueprintfrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.domains.domain_blueprint import DomainBlueprintfrom pipelex.core.domains.domain_factory import DomainFactory-from pipelex.core.interpreter.exceptions import PipelexInterpreterError-from pipelex.core.interpreter.interpreter import PipelexInterpreter-from pipelex.core.pipes.pipe_abstract import PipeAbstract-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.qualified_ref import QualifiedReffrom pipelex.core.stuffs.structured_content import StructuredContentfrom pipelex.core.validation import report_validation_error@@ -47,6 +42,11 @@ from pipelex.libraries.library_utils import ()from pipelex.libraries.pipe.exceptions import PipeLibraryErrorfrom pipelex.libraries.visibility_utils import check_visibility_for_blueprints, make_visibility_checker+from pipelex.mthds_parsing.exceptions import MthdsParserError+from pipelex.mthds_parsing.parser import MthdsParser+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.pipe_machinery.pipe_abstract import PipeAbstract+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.runtime_hub import get_class_registryfrom pipelex.system.registries.class_registry_utils import ClassRegistryUtilsfrom pipelex.system.registries.func_registry_utils import FuncRegistryUtils@@ -716,18 +716,18 @@ class LibraryManager(LibraryManagerAbstract):blueprints: list[PipelexBundleBlueprint] = []for mthds_file_path in valid_mthds_paths:try:- blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(bundle_path=mthds_file_path)+ blueprint = MthdsParser.make_pipelex_bundle_blueprint(bundle_path=mthds_file_path)blueprint.source = str(mthds_file_path)except FileNotFoundError as file_not_found_error:msg = f"Could not find MTHDS bundle at '{mthds_file_path}'"raise LibraryLoadingError(msg) from file_not_found_error- except PipelexInterpreterError as interpreter_error:+ except MthdsParserError as parser_error:# Forward BLUEPRINT validation errors from interpreter- msg = f"Could not load MTHDS bundle from '{mthds_file_path}' because of: {interpreter_error.message}"+ msg = f"Could not load MTHDS bundle from '{mthds_file_path}' because of: {parser_error.message}"raise LibraryLoadingError(message=msg,- blueprint_validation_errors=interpreter_error.validation_errors,- ) from interpreter_error+ blueprint_validation_errors=parser_error.validation_errors,+ ) from parser_errorblueprints.append(blueprint)# Find manifest and run package visibility validation@@ -940,9 +940,9 @@ class LibraryManager(LibraryManagerAbstract):dep_blueprints: list[PipelexBundleBlueprint] = []for mthds_path in resolved_dep.mthds_files:try:- blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(bundle_path=mthds_path)+ blueprint = MthdsParser.make_pipelex_bundle_blueprint(bundle_path=mthds_path)blueprint.source = str(mthds_path)- except (FileNotFoundError, PipelexInterpreterError) as exc:+ except (FileNotFoundError, MthdsParserError) as exc:log.warning(f"Could not parse dependency '{alias}' bundle '{mthds_path}': {exc}")continuedep_blueprints.append(blueprint)diff --git a/pipelex/libraries/library_manager_abstract.py b/pipelex/libraries/library_manager_abstract.pyindex 2e45e793b..0fc027baf 100644--- a/pipelex/libraries/library_manager_abstract.py+++ b/pipelex/libraries/library_manager_abstract.py@@ -4,9 +4,9 @@ from typing import TYPE_CHECKINGfrom kajson.class_registry import ClassRegistry-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.libraries.library_crate import LibraryCrate+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractif TYPE_CHECKING:from pipelex.libraries.library import Librarydiff --git a/pipelex/libraries/library_utils.py b/pipelex/libraries/library_utils.pyindex 965cf6325..9775f76cc 100644--- a/pipelex/libraries/library_utils.py+++ b/pipelex/libraries/library_utils.py@@ -5,7 +5,7 @@ from pathlib import Pathimport pipelex.builder as builder_pkg # package import — used for __file__ pathfrom pipelex import logfrom pipelex.config import get_config-from pipelex.core.interpreter.helpers import MTHDS_EXTENSION, is_pipelex_file+from pipelex.mthds_parsing.helpers import MTHDS_EXTENSION, is_pipelex_filefrom pipelex.tools.misc.file_utils import find_files_in_dirdiff --git a/pipelex/libraries/pipe/pipe_library.py b/pipelex/libraries/pipe/pipe_library.pyindex cbfc22ceb..9a7e31ba6 100644--- a/pipelex/libraries/pipe/pipe_library.py+++ b/pipelex/libraries/pipe/pipe_library.py@@ -7,10 +7,10 @@ from rich.table import Tablefrom typing_extensions import overridefrom pipelex import pretty_print-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.core.qualified_ref import QualifiedReffrom pipelex.libraries.pipe.exceptions import PipeLibraryError, PipeNotFoundErrorfrom pipelex.libraries.pipe.pipe_library_abstract import PipeLibraryAbstract+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractPipeLibraryRoot = dict[str, PipeAbstract]diff --git a/pipelex/libraries/pipe/pipe_library_abstract.py b/pipelex/libraries/pipe/pipe_library_abstract.pyindex a96b835d3..3c7cd1a22 100644--- a/pipelex/libraries/pipe/pipe_library_abstract.py+++ b/pipelex/libraries/pipe/pipe_library_abstract.py@@ -1,6 +1,6 @@from abc import ABC, abstractmethod-from pipelex.core.pipes.pipe_abstract import PipeAbstract+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractclass PipeLibraryAbstract(ABC):@@ -10,7 +10,7 @@ class PipeLibraryAbstract(ABC)::class:`~pipelex.core.concepts.concept_provider_abstract.ConceptProviderAbstract`: no core moduletakes pipe resolution as a parameter. The two places that follow a pipe reference found *inside* apipe graph — a condition's mapped pipes and a sequence's last step, both in- `core/pipes/rendering/` — are interpreter-layer and call `interpreter_hub.get_required_pipe`+ `pipe_machinery/rendering/` — are interpreter-layer and call `interpreter_hub.get_required_pipe`directly. Split the read half out if and when a runtime-layer caller needs it."""diff --git a/pipelex/libraries/visibility_utils.py b/pipelex/libraries/visibility_utils.pyindex 261ae526e..fbe1cc3d0 100644--- a/pipelex/libraries/visibility_utils.py+++ b/pipelex/libraries/visibility_utils.py@@ -8,7 +8,7 @@ from mthds.package.bundle_metadata import BundleMetadatafrom mthds.package.manifest.schema import MethodsManifestfrom mthds.package.visibility import PackageVisibilityChecker, VisibilityError-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintdef _blueprint_to_metadata(blueprint: PipelexBundleBlueprint) -> BundleMetadata:diff --git a/pipelex/plugins/direct/__init__.py b/pipelex/mthds_parsing/__init__.pysimilarity index 100%rename from pipelex/plugins/direct/__init__.pyrename to pipelex/mthds_parsing/__init__.pydiff --git a/pipelex/core/interpreter/bundle_elaborator.py b/pipelex/mthds_parsing/bundle_elaborator.pysimilarity index 97%rename from pipelex/core/interpreter/bundle_elaborator.pyrename to pipelex/mthds_parsing/bundle_elaborator.pyindex 7ace6555d..e0681af2b 100644--- a/pipelex/core/interpreter/bundle_elaborator.py+++ b/pipelex/mthds_parsing/bundle_elaborator.py@@ -3,19 +3,19 @@ from typing import TypeGuardfrom pydantic import ValidationErrorfrom pipelex.base_exceptions import PipelexUnexpectedError-from pipelex.core.bundles.pipelex_bundle_blueprint import (+from pipelex.core.concepts.native.concept_native import NativeConceptCode+from pipelex.core.pipes.variable_multiplicity import parse_concept_with_multiplicity+from pipelex.core.qualified_ref import QualifiedRef+from pipelex.mthds_parsing.exceptions import BundleElaboratorError+from pipelex.mthds_parsing.pipelex_bundle_blueprint import (ElaborationMetadata,PipeBlueprintUnion,PipelexBundleBlueprint,StepRole,)-from pipelex.core.concepts.native.concept_native import NativeConceptCode-from pipelex.core.interpreter.exceptions import BundleElaboratorError-from pipelex.core.pipes.validation import is_pipe_code_valid-from pipelex.core.pipes.variable_multiplicity import parse_concept_with_multiplicity-from pipelex.core.qualified_ref import QualifiedReffrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.validation import is_pipe_code_validfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.pipe_operators.structure.pipe_structure_blueprint import PipeStructureBlueprintdiff --git a/pipelex/core/bundles/exceptions.py b/pipelex/mthds_parsing/exceptions.pysimilarity index 56%rename from pipelex/core/bundles/exceptions.pyrename to pipelex/mthds_parsing/exceptions.pyindex 563c1fbbb..ba4e3adb1 100644--- a/pipelex/core/bundles/exceptions.py+++ b/pipelex/mthds_parsing/exceptions.py@@ -1,6 +1,5 @@-from pydantic import BaseModel--from pipelex.core.pipes.exceptions import PipeValidationErrorType+from pipelex.base_exceptions import ErrorDomain, PipelexError+from pipelex.core.exceptions import PipelexBundleBlueprintValidationErrorDataclass NativeConceptRedeclarationError(ValueError):@@ -37,23 +36,33 @@ class InvalidPipeCodeSyntaxError(ValueError):super().__init__(message)-class PipelexBundleBlueprintValidationErrorData(BaseModel):- """Structured validation error data for bundle blueprint validation errors.+class MthdsParserError(PipelexError):+ """Raised when MthdsParser fails.- This model captures information about validation errors that occur during- blueprint validation (before pipe instantiation).+ Covers every way the caller's ``.mthds`` source can be rejected — TOML that+ does not parse, and TOML that parses but fails blueprint validation. The+ message is always caller-facing copy describing a fault in the caller's own+ input."""- error_type: PipeValidationErrorType | None = None- domain_code: str | None = None- source: str | None = None- pipe_code: str | None = None- concept_code: str | None = None- message: str- variable_names: list[str] | None = None-- # The namespace-stripped bare code for a strippable same-domain over-qualified pipe code- # (``strip-namespace`` enrichment). Present only when the fix planner can act; ``pipe_code``- # discriminates the two raise sites — set to the offending dotted code for a declaration-key- # rename, ``None`` for a ``main_pipe`` value strip (which is a root ``set_key``, not a rename).- stripped_pipe_code: str | None = None+ error_domain = ErrorDomain.INPUT+ # Declared rather than auto-derived: `_humanize_class_name` would render the+ # class name as "Mthds parser", and MTHDS is the open standard's brand, always+ # uppercase. This string is the RFC 7807 `title` on every ErrorReport, so the+ # mis-casing would be wire-visible, not merely a docs-heading concern.+ _declared_title = "MTHDS parser"+ # The parser's messages describe faults in the caller's own .mthds+ # source — caller-facing copy, kept verbatim under STRICT disclosure.+ _authors_caller_facing_message = True++ def __init__(+ self,+ message: str,+ validation_errors: list[PipelexBundleBlueprintValidationErrorData] | None = None,+ ):+ self.validation_errors = validation_errors or []+ super().__init__(message)+++class BundleElaboratorError(MthdsParserError):+ """Raised when bundle elaboration fails (e.g. synthetic-name collision, invalid output for preliminary_text)."""diff --git a/pipelex/core/pipes/handle_pipe_errors.py b/pipelex/mthds_parsing/handle_pipe_errors.pysimilarity index 99%rename from pipelex/core/pipes/handle_pipe_errors.pyrename to pipelex/mthds_parsing/handle_pipe_errors.pyindex d9eb70483..3af269077 100644--- a/pipelex/core/pipes/handle_pipe_errors.py+++ b/pipelex/mthds_parsing/handle_pipe_errors.py@@ -23,7 +23,7 @@ def extract_wrapped_pipe_validation_error(error: ErrorDetails) -> PipeValidationShared by both validation-error categorizers — the pipe categorizer below(Pipe/Concept model validation) and the blueprint categorizer- (``core.interpreter.validation_error_categorizer``, which unwraps a+ (``validation_error_categorizer``, its sibling in this package, which unwraps ablueprint-stage ``PipeValidationError`` raised by a pydantic validator on theblueprint models, e.g. the PipeBatch / SubPipe batch-name collisions). Onedefinition so the two categorizers cannot drift on how pydantic wraps the error.diff --git a/pipelex/core/interpreter/helpers.py b/pipelex/mthds_parsing/helpers.pysimilarity index 100%rename from pipelex/core/interpreter/helpers.pyrename to pipelex/mthds_parsing/helpers.pydiff --git a/pipelex/core/interpreter/interpreter.py b/pipelex/mthds_parsing/parser.pysimilarity index 82%rename from pipelex/core/interpreter/interpreter.pyrename to pipelex/mthds_parsing/parser.pyindex 213aba817..bc2c05357 100644--- a/pipelex/core/interpreter/interpreter.py+++ b/pipelex/mthds_parsing/parser.py@@ -3,17 +3,17 @@ from typing import Anyfrom pydantic import BaseModel, ValidationError-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint-from pipelex.core.interpreter.bundle_elaborator import BundleElaborator-from pipelex.core.interpreter.exceptions import BundleElaboratorError, PipelexInterpreterError-from pipelex.core.interpreter.validation_error_categorizer import PIPELEX_BUNDLE_BLUEPRINT_SOURCE_FIELD, categorize_blueprint_validation_error+from pipelex.core.exceptions import PipelexBundleBlueprintValidationErrorData+from pipelex.mthds_parsing.bundle_elaborator import BundleElaborator+from pipelex.mthds_parsing.exceptions import BundleElaboratorError, MthdsParserError+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.mthds_parsing.validation_error_categorizer import PIPELEX_BUNDLE_BLUEPRINT_SOURCE_FIELD, categorize_blueprint_validation_errorfrom pipelex.tools.misc.exceptions import TomlErrorfrom pipelex.tools.misc.toml_utils import load_toml_from_content, load_toml_from_pathfrom pipelex.tools.typing.pydantic_utils import format_pydantic_validation_error-class PipelexInterpreter(BaseModel):+class MthdsParser(BaseModel):"""MTHDS -> PipelexBundleBlueprint"""@classmethod@@ -50,12 +50,12 @@ class PipelexInterpreter(BaseModel):# which reads ``source`` off this dict) in agreement on one value.blueprint_dict[PIPELEX_BUNDLE_BLUEPRINT_SOURCE_FIELD] = mthds_sourceelse:- msg = "Either 'bundle_path' or 'mthds_content' must be provided for the PipelexInterpreter to make a PipelexBundleBlueprint"- raise PipelexInterpreterError(msg)+ msg = "Either 'bundle_path' or 'mthds_content' must be provided for the MthdsParser to make a PipelexBundleBlueprint"+ raise MthdsParserError(msg)except TomlError as exc:msg = f"TOML syntax error at line {exc.lineno}, column {exc.colno}: {exc.message}"source = str(bundle_path) if bundle_path is not None else mthds_source- raise PipelexInterpreterError(+ raise MthdsParserError(msg,validation_errors=[PipelexBundleBlueprintValidationErrorData(@@ -67,7 +67,7 @@ class PipelexInterpreter(BaseModel):if not blueprint_dict:msg = "Could not make 'PipelexBundleBlueprint': no blueprint found in the MTHDS file"- raise PipelexInterpreterError(msg)+ raise MthdsParserError(msg)try:# ``source`` is already populated from the seeded ``blueprint_dict`` above@@ -83,7 +83,7 @@ class PipelexInterpreter(BaseModel):if categorized_error:blueprint_validation_errors.append(categorized_error)- raise PipelexInterpreterError(+ raise MthdsParserError(message=format_pydantic_validation_error(exc),validation_errors=blueprint_validation_errors,) from exc@@ -91,4 +91,4 @@ class PipelexInterpreter(BaseModel):try:return BundleElaborator.elaborate(bundle=pipelex_bundle_blueprint)except BundleElaboratorError as exc:- raise PipelexInterpreterError(message=str(exc)) from exc+ raise MthdsParserError(message=str(exc)) from excdiff --git a/pipelex/core/bundles/pipe_sorter.py b/pipelex/mthds_parsing/pipe_sorter.pysimilarity index 97%rename from pipelex/core/bundles/pipe_sorter.pyrename to pipelex/mthds_parsing/pipe_sorter.pyindex f010e1775..2f9b1a9f8 100644--- a/pipelex/core/bundles/pipe_sorter.py+++ b/pipelex/mthds_parsing/pipe_sorter.py@@ -1,7 +1,7 @@"""Topological sorting utilities for pipe dependencies."""-from pipelex.core.bundles.pipelex_bundle_blueprint import PipeBlueprintUnionfrom pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrorType+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipeBlueprintUniondef sort_pipes_by_dependencies(diff --git a/pipelex/core/bundles/pipelex_bundle_blueprint.py b/pipelex/mthds_parsing/pipelex_bundle_blueprint.pysimilarity index 98%rename from pipelex/core/bundles/pipelex_bundle_blueprint.pyrename to pipelex/mthds_parsing/pipelex_bundle_blueprint.pyindex cba6a2a7c..1a688deaf 100644--- a/pipelex/core/bundles/pipelex_bundle_blueprint.py+++ b/pipelex/mthds_parsing/pipelex_bundle_blueprint.py@@ -4,20 +4,20 @@ from typing import Annotated, Any, castfrom pydantic import BaseModel, ConfigDict, Field, ValidationInfo, field_validator, model_validatorfrom pydantic.json_schema import SkipJsonSchema-from pipelex.core.bundles.exceptions import InvalidPipeCodeSyntaxError, NativeConceptRedeclarationErrorfrom pipelex.core.concepts.concept_blueprint import ConceptBlueprintfrom pipelex.core.concepts.concept_structure_blueprint import ConceptStructureBlueprintfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.concepts.validation import is_concept_code_validfrom pipelex.core.domains.exceptions import DomainCodeErrorfrom pipelex.core.domains.validation import validate_domain_code-from pipelex.core.pipes.pipe_blueprint import normalize_typeless_signature_section-from pipelex.core.pipes.validation import is_pipe_code_validfrom pipelex.core.pipes.variable_multiplicity import parse_concept_with_multiplicity+from pipelex.mthds_parsing.exceptions import InvalidPipeCodeSyntaxError, NativeConceptRedeclarationErrorfrom pipelex.pipe_controllers.batch.pipe_batch_blueprint import PipeBatchBlueprintfrom pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeConditionBlueprintfrom pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallelBlueprintfrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprint+from pipelex.pipe_machinery.pipe_blueprint import normalize_typeless_signature_section+from pipelex.pipe_machinery.validation import is_pipe_code_validfrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintfrom pipelex.pipe_operators.extract.pipe_extract_blueprint import PipeExtractBlueprintfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintdiff --git a/pipelex/core/interpreter/validation_error_categorizer.py b/pipelex/mthds_parsing/validation_error_categorizer.pysimilarity index 98%rename from pipelex/core/interpreter/validation_error_categorizer.pyrename to pipelex/mthds_parsing/validation_error_categorizer.pyindex f574726cf..826a836ec 100644--- a/pipelex/core/interpreter/validation_error_categorizer.py+++ b/pipelex/mthds_parsing/validation_error_categorizer.py@@ -4,14 +4,14 @@ from typing import Any, castfrom pydantic_core import ErrorDetailsfrom pipelex import log-from pipelex.core.bundles.exceptions import (+from pipelex.core.exceptions import PipelexBundleBlueprintValidationErrorData+from pipelex.core.pipes.exceptions import PipeValidationErrorType+from pipelex.mthds_parsing.exceptions import (InvalidPipeCodeSyntaxError,NativeConceptRedeclarationError,- PipelexBundleBlueprintValidationErrorData,)-from pipelex.core.interpreter.helpers import ValidationErrorScope, get_error_scope-from pipelex.core.pipes.exceptions import PipeValidationErrorType-from pipelex.core.pipes.handle_pipe_errors import extract_wrapped_pipe_validation_error+from pipelex.mthds_parsing.handle_pipe_errors import extract_wrapped_pipe_validation_error+from pipelex.mthds_parsing.helpers import ValidationErrorScope, get_error_scopePIPELEX_BUNDLE_BLUEPRINT_DOMAIN_FIELD = "domain"PIPELEX_BUNDLE_BLUEPRINT_SOURCE_FIELD = "source"diff --git a/pipelex/pipe_controllers/absence_taint.py b/pipelex/pipe_controllers/absence_taint.pyindex 1ee8552cd..008cd221f 100644--- a/pipelex/pipe_controllers/absence_taint.py+++ b/pipelex/pipe_controllers/absence_taint.py@@ -22,8 +22,8 @@ from typing import NamedTuplefrom pydantic.dataclasses import dataclassfrom pipelex.core.pipes.inputs.input_stuff_specs import NamedStuffSpec-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.core.pipes.variable_multiplicity import PresenceMarker, VariableMultiplicity+from pipelex.pipe_machinery.pipe_abstract import PipeAbstract@dataclass(frozen=True)diff --git a/pipelex/pipe_controllers/batch/pipe_batch_blueprint.py b/pipelex/pipe_controllers/batch/pipe_batch_blueprint.pyindex 551e53e58..c63162f6d 100644--- a/pipelex/pipe_controllers/batch/pipe_batch_blueprint.py+++ b/pipelex/pipe_controllers/batch/pipe_batch_blueprint.py@@ -3,7 +3,7 @@ from typing import Literalfrom typing_extensions import overridefrom pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrorType-from pipelex.core.pipes.pipe_blueprint import PipeBlueprint+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintclass PipeBatchBlueprint(PipeBlueprint):diff --git a/pipelex/pipe_controllers/batch/pipe_batch_factory.py b/pipelex/pipe_controllers/batch/pipe_batch_factory.pyindex ef987b5c6..4b9e91801 100644--- a/pipelex/pipe_controllers/batch/pipe_batch_factory.py+++ b/pipelex/pipe_controllers/batch/pipe_batch_factory.py@@ -3,10 +3,10 @@ from typing import Anyfrom typing_extensions import overridefrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_factory import PipeFactoryProtocolfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpecfrom pipelex.pipe_controllers.batch.pipe_batch import PipeBatchfrom pipelex.pipe_controllers.batch.pipe_batch_blueprint import PipeBatchBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryProtocolfrom pipelex.pipe_run.pipe_run_params import BatchParamsdiff --git a/pipelex/pipe_controllers/condition/pipe_condition.py b/pipelex/pipe_controllers/condition/pipe_condition.pyindex 8f41b18b0..f42f4379a 100644--- a/pipelex/pipe_controllers/condition/pipe_condition.py+++ b/pipelex/pipe_controllers/condition/pipe_condition.py@@ -11,10 +11,10 @@ from pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrfrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecsfrom pipelex.core.pipes.inputs.input_stuff_specs_factory import InputStuffSpecsFactoryfrom pipelex.core.pipes.pipe_output import PipeOutput-from pipelex.core.pipes.template_guard_lint import lint_optional_input_guardsfrom pipelex.interpreter_hub import get_optional_pipe, get_pipe_router, get_required_pipefrom pipelex.pipe_controllers.condition.special_outcome import SpecialOutcomefrom pipelex.pipe_controllers.pipe_controller import PipeController+from pipelex.pipe_machinery.template_guard_lint import lint_optional_input_guardsfrom pipelex.pipe_run.exceptions import PipeRunErrorfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactoryfrom pipelex.pipe_run.pipe_run_params import PipeRunParamsdiff --git a/pipelex/pipe_controllers/condition/pipe_condition_blueprint.py b/pipelex/pipe_controllers/condition/pipe_condition_blueprint.pyindex 2640540eb..fea27ba72 100644--- a/pipelex/pipe_controllers/condition/pipe_condition_blueprint.py+++ b/pipelex/pipe_controllers/condition/pipe_condition_blueprint.py@@ -3,8 +3,8 @@ from typing import Annotated, Literal, Selffrom pydantic import Field, WithJsonSchema, field_validator, model_validatorfrom typing_extensions import override-from pipelex.core.pipes.pipe_blueprint import PipeBlueprintfrom pipelex.pipe_controllers.condition.special_outcome import SpecialOutcome+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintfrom pipelex.tools.typing.validation_utils import has_exactly_one_among_attributes_from_listOutcomeMap = dict[str, str]diff --git a/pipelex/pipe_controllers/condition/pipe_condition_factory.py b/pipelex/pipe_controllers/condition/pipe_condition_factory.pyindex 13ca7420a..9124963ef 100644--- a/pipelex/pipe_controllers/condition/pipe_condition_factory.py+++ b/pipelex/pipe_controllers/condition/pipe_condition_factory.py@@ -3,11 +3,11 @@ from typing import Anyfrom typing_extensions import overridefrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_factory import PipeFactoryProtocolfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpecfrom pipelex.pipe_controllers.condition.exceptions import PipeConditionFactoryErrorfrom pipelex.pipe_controllers.condition.pipe_condition import PipeConditionfrom pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeConditionBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryProtocolclass PipeConditionFactory(PipeFactoryProtocol[PipeConditionBlueprint, PipeCondition]):diff --git a/pipelex/pipe_controllers/parallel/pipe_parallel.py b/pipelex/pipe_controllers/parallel/pipe_parallel.pyindex b2df75421..8b14e2f2b 100644--- a/pipelex/pipe_controllers/parallel/pipe_parallel.py+++ b/pipelex/pipe_controllers/parallel/pipe_parallel.py@@ -15,7 +15,6 @@ from pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrfrom pipelex.core.pipes.inputs.exceptions import InputStuffSpecNotFoundErrorfrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecsfrom pipelex.core.pipes.inputs.input_stuff_specs_factory import InputStuffSpecsFactory-from pipelex.core.pipes.pipe_abstract import CompanionSlotfrom pipelex.core.pipes.pipe_output import PipeOutputfrom pipelex.core.stuffs.composite_content import CompositeContentfrom pipelex.core.stuffs.stuff_content import StuffContent@@ -34,6 +33,7 @@ from pipelex.pipe_controllers.absence_taint import ()from pipelex.pipe_controllers.pipe_controller import PipeControllerfrom pipelex.pipe_controllers.sub_pipe import SubPipe+from pipelex.pipe_machinery.pipe_abstract import CompanionSlotfrom pipelex.pipe_run.exceptions import PipeRunErrorfrom pipelex.pipe_run.pipe_run_params import PipeRunParamsfrom pipelex.system.job_metadata import JobMetadatadiff --git a/pipelex/pipe_controllers/parallel/pipe_parallel_blueprint.py b/pipelex/pipe_controllers/parallel/pipe_parallel_blueprint.pyindex 98c18a7e7..095e51a93 100644--- a/pipelex/pipe_controllers/parallel/pipe_parallel_blueprint.py+++ b/pipelex/pipe_controllers/parallel/pipe_parallel_blueprint.py@@ -3,9 +3,9 @@ from typing import Literalfrom typing_extensions import overridefrom pipelex.core.concepts.native.concept_native import NativeConceptCode-from pipelex.core.pipes.pipe_blueprint import PipeBlueprintfrom pipelex.core.pipes.variable_multiplicity import parse_concept_with_multiplicityfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintclass PipeParallelBlueprint(PipeBlueprint):diff --git a/pipelex/pipe_controllers/parallel/pipe_parallel_factory.py b/pipelex/pipe_controllers/parallel/pipe_parallel_factory.pyindex 84def2e47..97582084d 100644--- a/pipelex/pipe_controllers/parallel/pipe_parallel_factory.py+++ b/pipelex/pipe_controllers/parallel/pipe_parallel_factory.py@@ -3,12 +3,12 @@ from typing import TYPE_CHECKING, Anyfrom typing_extensions import overridefrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_factory import PipeFactoryProtocolfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpecfrom pipelex.pipe_controllers.parallel.exceptions import PipeParallelFactoryErrorfrom pipelex.pipe_controllers.parallel.pipe_parallel import PipeParallelfrom pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallelBlueprintfrom pipelex.pipe_controllers.sub_pipe_factory import SubPipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryProtocolif TYPE_CHECKING:from pipelex.pipe_controllers.sub_pipe import SubPipediff --git a/pipelex/pipe_controllers/pipe_controller.py b/pipelex/pipe_controllers/pipe_controller.pyindex afe179792..44e2fae21 100644--- a/pipelex/pipe_controllers/pipe_controller.py+++ b/pipelex/pipe_controllers/pipe_controller.py@@ -4,8 +4,8 @@ from typing import TYPE_CHECKING, Literal, finalfrom typing_extensions import overridefrom pipelex.core.memory.working_memory import WorkingMemory-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.core.pipes.pipe_output import PipeOutput+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractfrom pipelex.pipe_run.pipe_run_params import PipeRunParamsfrom pipelex.system.job_metadata import JobMetadatadiff --git a/pipelex/pipe_controllers/sequence/pipe_sequence_blueprint.py b/pipelex/pipe_controllers/sequence/pipe_sequence_blueprint.pyindex e51dde706..b058e4a70 100644--- a/pipelex/pipe_controllers/sequence/pipe_sequence_blueprint.py+++ b/pipelex/pipe_controllers/sequence/pipe_sequence_blueprint.py@@ -3,8 +3,8 @@ from typing import Literalfrom pydantic import field_validatorfrom typing_extensions import override-from pipelex.core.pipes.pipe_blueprint import PipeBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintclass PipeSequenceBlueprint(PipeBlueprint):diff --git a/pipelex/pipe_controllers/sequence/pipe_sequence_factory.py b/pipelex/pipe_controllers/sequence/pipe_sequence_factory.pyindex 3f452770d..458e078b8 100644--- a/pipelex/pipe_controllers/sequence/pipe_sequence_factory.py+++ b/pipelex/pipe_controllers/sequence/pipe_sequence_factory.py@@ -3,11 +3,11 @@ from typing import TYPE_CHECKING, Anyfrom typing_extensions import overridefrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_factory import PipeFactoryProtocolfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpecfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_factory import SubPipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryProtocolif TYPE_CHECKING:from pipelex.pipe_controllers.sub_pipe import SubPipediff --git a/pipelex/pipe_controllers/sub_pipe.py b/pipelex/pipe_controllers/sub_pipe.pyindex 34a0cec0f..c79feecfd 100644--- a/pipelex/pipe_controllers/sub_pipe.py+++ b/pipelex/pipe_controllers/sub_pipe.py@@ -6,7 +6,6 @@ from pipelex import logfrom pipelex.core.memory.exceptions import WorkingMemoryStuffNotFoundErrorfrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.pipes.inputs.exceptions import InputStuffSpecNotFoundError, PipeRunInputsError-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.pipes.pipe_output import PipeOutputfrom pipelex.core.pipes.variable_multiplicity import VariableMultiplicityfrom pipelex.core.stuffs.list_content import ListContent@@ -16,6 +15,7 @@ from pipelex.interpreter_hub import get_pipe_router, get_required_pipefrom pipelex.pipe_controllers.batch.pipe_batch import PipeBatchfrom pipelex.pipe_controllers.batch.pipe_batch_blueprint import PipeBatchBlueprintfrom pipelex.pipe_controllers.condition.pipe_condition import PipeCondition+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactoryfrom pipelex.pipe_run.pipe_run_params import BatchParams, PipeRunParamsfrom pipelex.system.job_metadata import JobMetadatadiff --git a/pipelex/plugins/anthropic/__init__.py b/pipelex/pipe_machinery/__init__.pysimilarity index 100%rename from pipelex/plugins/anthropic/__init__.pyrename to pipelex/pipe_machinery/__init__.pydiff --git a/pipelex/core/pipes/pipe_abstract.py b/pipelex/pipe_machinery/pipe_abstract.pysimilarity index 99%rename from pipelex/core/pipes/pipe_abstract.pyrename to pipelex/pipe_machinery/pipe_abstract.pyindex 94341e13d..59479851f 100644--- a/pipelex/core/pipes/pipe_abstract.py+++ b/pipelex/pipe_machinery/pipe_abstract.py@@ -16,16 +16,16 @@ from pipelex.core.memory.working_memory import MAIN_STUFF_NAME, WorkingMemoryfrom pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrorTypefrom pipelex.core.pipes.inputs.exceptions import OptionalValueAbsentError, PipeRunInputsErrorfrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs, NamedStuffSpec-from pipelex.core.pipes.pipe_blueprint import PipeCategory, PipeType, valid_pipe_type_tagsfrom pipelex.core.pipes.pipe_output import PipeOutputfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpec-from pipelex.core.pipes.validation import is_variable_satisfied_by_inputsfrom pipelex.core.pipes.variable_multiplicity import PresenceMarkerfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff import Stufffrom pipelex.core.stuffs.stuff_content import StuffContentfrom pipelex.graph.graph_tracer_manager import GraphTracerManager, IOSpec, NodeKindfrom pipelex.libraries.library_crate import LibraryCrate+from pipelex.pipe_machinery.pipe_blueprint import PipeCategory, PipeType, valid_pipe_type_tags+from pipelex.pipe_machinery.validation import is_variable_satisfied_by_inputsfrom pipelex.pipe_run.pipe_run_mode import PipeRunModefrom pipelex.pipe_run.pipe_run_params import PipeRunParams, output_multiplicity_to_applyfrom pipelex.pipe_signature.exceptions import PipeSignatureNotExecutableErrordiff --git a/pipelex/core/pipes/pipe_blueprint.py b/pipelex/pipe_machinery/pipe_blueprint.pysimilarity index 99%rename from pipelex/core/pipes/pipe_blueprint.pyrename to pipelex/pipe_machinery/pipe_blueprint.pyindex b71c9a670..0c402587a 100644--- a/pipelex/core/pipes/pipe_blueprint.py+++ b/pipelex/pipe_machinery/pipe_blueprint.py@@ -8,13 +8,13 @@ from pydantic import BaseModel, ConfigDict, Field, field_validator, model_validafrom pipelex.core.concepts.exceptions import ConceptStringErrorfrom pipelex.core.concepts.validation import validate_concept_ref_or_codefrom pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrorType-from pipelex.core.pipes.validation import validate_input_namefrom pipelex.core.pipes.variable_multiplicity import (MULTIPLICITY_PATTERN,PipeVariableMultiplicityError,PresenceMarker,parse_concept_with_multiplicity,)+from pipelex.pipe_machinery.validation import validate_input_name# A signature is NOT an executable pipe kind: it is deliberately absent from `PipeType` and# `PipeCategory`. This is the one extra `type` tag the parse-time allowlists admit beyond thediff --git a/pipelex/core/pipes/pipe_factory.py b/pipelex/pipe_machinery/pipe_factory.pysimilarity index 97%rename from pipelex/core/pipes/pipe_factory.pyrename to pipelex/pipe_machinery/pipe_factory.pyindex 8e9224573..031e3b707 100644--- a/pipelex/core/pipes/pipe_factory.py+++ b/pipelex/pipe_machinery/pipe_factory.py@@ -8,15 +8,15 @@ from pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.pipes.exceptions import PipeFactoryError, PipeFactoryErrorTypefrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecsfrom pipelex.core.pipes.inputs.input_stuff_specs_factory import InputStuffSpecsFactory-from pipelex.core.pipes.pipe_blueprint import PipeBlueprint, PipeCategory, PipeTypefrom pipelex.core.pipes.stuff_spec.exceptions import StuffSpecFactoryErrorfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpecfrom pipelex.core.pipes.stuff_spec.stuff_spec_factory import StuffSpecFactoryfrom pipelex.interpreter_hub import get_concept_library+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprint, PipeCategory, PipeTypefrom pipelex.runtime_hub import get_class_registryif TYPE_CHECKING:- from pipelex.core.pipes.pipe_abstract import PipeAbstract+ from pipelex.pipe_machinery.pipe_abstract import PipeAbstractPipeBlueprintType = TypeVar("PipeBlueprintType", bound="PipeBlueprint", contravariant=True)PipeAbstractType = TypeVar("PipeAbstractType", bound="PipeAbstract", covariant=True)diff --git a/pipelex/pipe_machinery/registry_models.py b/pipelex/pipe_machinery/registry_models.pynew file mode 100644index 000000000..67eaf6f9c--- /dev/null+++ b/pipelex/pipe_machinery/registry_models.py@@ -0,0 +1,82 @@+from typing import Any, ClassVar++from pipelex.pipe_controllers.batch.pipe_batch import PipeBatch+from pipelex.pipe_controllers.batch.pipe_batch_factory import PipeBatchFactory+from pipelex.pipe_controllers.condition.pipe_condition import PipeCondition+from pipelex.pipe_controllers.condition.pipe_condition_factory import PipeConditionFactory+from pipelex.pipe_controllers.parallel.pipe_parallel import PipeParallel+from pipelex.pipe_controllers.parallel.pipe_parallel_factory import PipeParallelFactory+from pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequence+from pipelex.pipe_controllers.sequence.pipe_sequence_factory import PipeSequenceFactory+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractType+from pipelex.pipe_machinery.pipe_factory import PipeFactoryProtocol+from pipelex.pipe_operators.compose.pipe_compose import PipeCompose+from pipelex.pipe_operators.compose.pipe_compose_factory import PipeComposeFactory+from pipelex.pipe_operators.extract.pipe_extract import PipeExtract+from pipelex.pipe_operators.extract.pipe_extract_factory import PipeExtractFactory+from pipelex.pipe_operators.func.pipe_func import PipeFunc+from pipelex.pipe_operators.func.pipe_func_factory import PipeFuncFactory+from pipelex.pipe_operators.img_gen.pipe_img_gen import PipeImgGen+from pipelex.pipe_operators.img_gen.pipe_img_gen_factory import PipeImgGenFactory+from pipelex.pipe_operators.llm.pipe_llm import PipeLLM+from pipelex.pipe_operators.llm.pipe_llm_factory import PipeLLMFactory+from pipelex.pipe_operators.search.pipe_search import PipeSearch+from pipelex.pipe_operators.search.pipe_search_factory import PipeSearchFactory+from pipelex.pipe_operators.structure.pipe_structure import PipeStructure+from pipelex.pipe_operators.structure.pipe_structure_factory import PipeStructureFactory+from pipelex.pipe_signature.pipe_signature import PipeSignature+from pipelex.pipe_signature.pipe_signature_factory import PipeSignatureFactory+from pipelex.system.registries.registry_base import RegistryModels+++class PipeRegistryModels(RegistryModels):+ """Every pipe kind and its factory, as one boot-time registration manifest.++ Filed here rather than in ``core/`` because a pipe is the interpreter's own object: this manifest+ imports every ``pipe_operators`` / ``pipe_controllers`` / ``pipe_signature`` module by construction,+ so keeping it under ``core/`` made ``core`` read as a dependant of the pipe packages. Adding a pipe+ kind means adding it here — see ``docs/contribute/registration-surface.md`` for the full list of+ places one pipe kind touches.+ """++ PIPE_OPERATORS: ClassVar[list[PipeAbstractType]] = [+ PipeFunc,+ PipeImgGen,+ PipeCompose,+ PipeLLM,+ PipeExtract,+ PipeSearch,+ PipeStructure,+ ]++ PIPE_OPERATORS_FACTORY: ClassVar[list[PipeFactoryProtocol[Any, Any]]] = [+ PipeFuncFactory,+ PipeImgGenFactory,+ PipeComposeFactory,+ PipeLLMFactory,+ PipeExtractFactory,+ PipeSearchFactory,+ PipeStructureFactory,+ ]++ PIPE_CONTROLLERS: ClassVar[list[PipeAbstractType]] = [+ PipeBatch,+ PipeCondition,+ PipeParallel,+ PipeSequence,+ ]++ PIPE_CONTROLLERS_FACTORY: ClassVar[list[PipeFactoryProtocol[Any, Any]]] = [+ PipeBatchFactory,+ PipeConditionFactory,+ PipeParallelFactory,+ PipeSequenceFactory,+ ]++ PIPE_SIGNATURES: ClassVar[list[PipeAbstractType]] = [+ PipeSignature,+ ]++ PIPE_SIGNATURES_FACTORY: ClassVar[list[PipeFactoryProtocol[Any, Any]]] = [+ PipeSignatureFactory,+ ]diff --git a/pipelex/plugins/gateway/__init__.py b/pipelex/pipe_machinery/rendering/__init__.pysimilarity index 100%rename from pipelex/plugins/gateway/__init__.pyrename to pipelex/pipe_machinery/rendering/__init__.pydiff --git a/pipelex/core/pipes/rendering/input_renderer.py b/pipelex/pipe_machinery/rendering/input_renderer.pysimilarity index 99%rename from pipelex/core/pipes/rendering/input_renderer.pyrename to pipelex/pipe_machinery/rendering/input_renderer.pyindex 0f3f055db..0c13f1edb 100644--- a/pipelex/core/pipes/rendering/input_renderer.py+++ b/pipelex/pipe_machinery/rendering/input_renderer.py@@ -7,8 +7,8 @@ import tomlkitfrom pipelex.core.memory.input_shaper import InputKind, InputShaperfrom pipelex.core.pipes.inputs.exceptions import NoInputsRequiredErrorfrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.interpreter_hub import get_concept_library+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractclass InputsTemplateFormat(StrEnum):diff --git a/pipelex/core/pipes/rendering/output_renderer.py b/pipelex/pipe_machinery/rendering/output_renderer.pysimilarity index 98%rename from pipelex/core/pipes/rendering/output_renderer.pyrename to pipelex/pipe_machinery/rendering/output_renderer.pyindex 710e9cbcf..02429eea6 100644--- a/pipelex/core/pipes/rendering/output_renderer.py+++ b/pipelex/pipe_machinery/rendering/output_renderer.py@@ -4,9 +4,9 @@ from typing import TYPE_CHECKING, Any, castfrom pipelex.base_exceptions import PipelexErrorfrom pipelex.core.concepts.concept_representation_generator import ConceptRepresentationFormatfrom pipelex.core.concepts.native.concept_native import NativeConceptCode-from pipelex.core.pipes.pipe_abstract import PipeAbstract-from pipelex.core.pipes.pipe_blueprint import PipeTypefrom pipelex.interpreter_hub import get_required_pipe+from pipelex.pipe_machinery.pipe_abstract import PipeAbstract+from pipelex.pipe_machinery.pipe_blueprint import PipeTypeif TYPE_CHECKING:from pipelex.pipe_controllers.condition.pipe_condition import PipeConditiondiff --git a/pipelex/core/pipes/template_guard_lint.py b/pipelex/pipe_machinery/template_guard_lint.pysimilarity index 100%rename from pipelex/core/pipes/template_guard_lint.pyrename to pipelex/pipe_machinery/template_guard_lint.pydiff --git a/pipelex/core/pipes/validation.py b/pipelex/pipe_machinery/validation.pysimilarity index 100%rename from pipelex/core/pipes/validation.pyrename to pipelex/pipe_machinery/validation.pydiff --git a/pipelex/pipe_operators/compose/pipe_compose.py b/pipelex/pipe_operators/compose/pipe_compose.pyindex 00d652df0..cdd90d02f 100644--- a/pipelex/pipe_operators/compose/pipe_compose.py+++ b/pipelex/pipe_operators/compose/pipe_compose.py@@ -14,11 +14,11 @@ from pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrfrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecsfrom pipelex.core.pipes.inputs.input_stuff_specs_factory import InputStuffSpecsFactoryfrom pipelex.core.pipes.pipe_output import PipeOutput-from pipelex.core.pipes.template_guard_lint import lint_optional_input_guardsfrom pipelex.core.stuffs.html_content import HtmlContentfrom pipelex.core.stuffs.stuff_content import StuffContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_concept_library, get_native_concept+from pipelex.pipe_machinery.template_guard_lint import lint_optional_input_guardsfrom pipelex.pipe_operators.compose.construct_blueprint import ConstructBlueprintfrom pipelex.pipe_operators.compose.exceptions import PipeComposeError, StructuredContentComposerValueErrorfrom pipelex.pipe_operators.compose.structured_content_composer import StructuredContentComposerdiff --git a/pipelex/pipe_operators/compose/pipe_compose_blueprint.py b/pipelex/pipe_operators/compose/pipe_compose_blueprint.pyindex da82a7b96..db56ea820 100644--- a/pipelex/pipe_operators/compose/pipe_compose_blueprint.py+++ b/pipelex/pipe_operators/compose/pipe_compose_blueprint.py@@ -6,8 +6,8 @@ from typing_extensions import overridefrom pipelex.cogt.templating.exceptions import TemplateSigilSyntaxErrorfrom pipelex.cogt.templating.template_blueprint import TemplateBlueprintfrom pipelex.cogt.templating.template_preprocessor import preprocess_template-from pipelex.core.pipes.pipe_blueprint import PipeBlueprintfrom pipelex.core.pipes.variable_multiplicity import parse_concept_with_multiplicity+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintfrom pipelex.pipe_operators.compose.construct_blueprint import ConstructBlueprintfrom pipelex.tools.jinja2.exceptions import Jinja2TemplateSyntaxErrorfrom pipelex.tools.jinja2.jinja2_parsing import check_jinja2_parsingdiff --git a/pipelex/pipe_operators/compose/pipe_compose_factory.py b/pipelex/pipe_operators/compose/pipe_compose_factory.pyindex c16b8837a..7eba77cb3 100644--- a/pipelex/pipe_operators/compose/pipe_compose_factory.py+++ b/pipelex/pipe_operators/compose/pipe_compose_factory.py@@ -5,8 +5,8 @@ from typing_extensions import overridefrom pipelex.cogt.templating.exceptions import TemplateSigilSyntaxErrorfrom pipelex.cogt.templating.template_preprocessor import preprocess_templatefrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_factory import PipeFactoryProtocolfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpec+from pipelex.pipe_machinery.pipe_factory import PipeFactoryProtocolfrom pipelex.pipe_operators.compose.exceptions import PipeComposeFactoryErrorfrom pipelex.pipe_operators.compose.pipe_compose import PipeComposefrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintdiff --git a/pipelex/pipe_operators/extract/pipe_extract_blueprint.py b/pipelex/pipe_operators/extract/pipe_extract_blueprint.pyindex a639e3c51..1010c1d6c 100644--- a/pipelex/pipe_operators/extract/pipe_extract_blueprint.py+++ b/pipelex/pipe_operators/extract/pipe_extract_blueprint.py@@ -5,9 +5,9 @@ from typing_extensions import overridefrom pipelex.cogt.extract.extract_setting import ExtractModelChoicefrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.domains.domain import SpecialDomain-from pipelex.core.pipes.pipe_blueprint import PipeBlueprintfrom pipelex.core.pipes.variable_multiplicity import parse_concept_with_multiplicityfrom pipelex.core.qualified_ref import QualifiedRef+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintclass PipeExtractBlueprint(PipeBlueprint):diff --git a/pipelex/pipe_operators/extract/pipe_extract_factory.py b/pipelex/pipe_operators/extract/pipe_extract_factory.pyindex 16aeddc77..0a38c2632 100644--- a/pipelex/pipe_operators/extract/pipe_extract_factory.py+++ b/pipelex/pipe_operators/extract/pipe_extract_factory.py@@ -4,9 +4,9 @@ from typing_extensions import overridefrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_factory import PipeFactoryProtocolfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpecfrom pipelex.interpreter_hub import get_concept_library, get_native_concept+from pipelex.pipe_machinery.pipe_factory import PipeFactoryProtocolfrom pipelex.pipe_operators.extract.exceptions import PipeExtractFactoryErrorfrom pipelex.pipe_operators.extract.pipe_extract import PipeExtractfrom pipelex.pipe_operators.extract.pipe_extract_blueprint import PipeExtractBlueprintdiff --git a/pipelex/pipe_operators/func/pipe_func_blueprint.py b/pipelex/pipe_operators/func/pipe_func_blueprint.pyindex 4df43116e..b5201cb15 100644--- a/pipelex/pipe_operators/func/pipe_func_blueprint.py+++ b/pipelex/pipe_operators/func/pipe_func_blueprint.py@@ -3,7 +3,7 @@ from typing import Literalfrom pydantic import Fieldfrom typing_extensions import override-from pipelex.core.pipes.pipe_blueprint import PipeBlueprint+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintclass PipeFuncBlueprint(PipeBlueprint):diff --git a/pipelex/pipe_operators/func/pipe_func_factory.py b/pipelex/pipe_operators/func/pipe_func_factory.pyindex 506ced7d2..5ab027a54 100644--- a/pipelex/pipe_operators/func/pipe_func_factory.py+++ b/pipelex/pipe_operators/func/pipe_func_factory.py@@ -3,8 +3,8 @@ from typing import Anyfrom typing_extensions import overridefrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_factory import PipeFactoryProtocolfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpec+from pipelex.pipe_machinery.pipe_factory import PipeFactoryProtocolfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintdiff --git a/pipelex/pipe_operators/img_gen/pipe_img_gen.py b/pipelex/pipe_operators/img_gen/pipe_img_gen.pyindex 65d0d941e..d1abe8e58 100644--- a/pipelex/pipe_operators/img_gen/pipe_img_gen.py+++ b/pipelex/pipe_operators/img_gen/pipe_img_gen.py@@ -17,13 +17,13 @@ from pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrorTypefrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecsfrom pipelex.core.pipes.pipe_output import PipeOutput-from pipelex.core.pipes.template_guard_lint import lint_optional_input_guardsfrom pipelex.core.pipes.variable_multiplicity import VariableMultiplicityfrom pipelex.core.stuffs.exceptions import StuffContentTypeErrorfrom pipelex.core.stuffs.image_content import ImageContentfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_concept_library, get_native_concept+from pipelex.pipe_machinery.template_guard_lint import lint_optional_input_guardsfrom pipelex.pipe_operators.img_gen.exceptions import PipeImgGenFactoryError, PipeImgGenRunErrorfrom pipelex.pipe_operators.img_gen.img_gen_prompt_blueprint import ImgGenPromptBlueprint, ImgGenPromptBlueprintValueErrorfrom pipelex.pipe_operators.pipe_operator import PipeOperatordiff --git a/pipelex/pipe_operators/img_gen/pipe_img_gen_blueprint.py b/pipelex/pipe_operators/img_gen/pipe_img_gen_blueprint.pyindex bb7f02191..30e6cbb11 100644--- a/pipelex/pipe_operators/img_gen/pipe_img_gen_blueprint.py+++ b/pipelex/pipe_operators/img_gen/pipe_img_gen_blueprint.py@@ -8,7 +8,7 @@ from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background,from pipelex.cogt.img_gen.img_gen_setting import ImgGenModelChoicefrom pipelex.cogt.templating.exceptions import TemplateSigilSyntaxErrorfrom pipelex.cogt.templating.template_preprocessor import preprocess_template-from pipelex.core.pipes.pipe_blueprint import PipeBlueprint+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintfrom pipelex.tools.jinja2.exceptions import Jinja2TemplateSyntaxErrorfrom pipelex.tools.jinja2.jinja2_parsing import check_jinja2_parsingfrom pipelex.tools.jinja2.jinja2_required_variables import detect_jinja2_required_variablesdiff --git a/pipelex/pipe_operators/img_gen/pipe_img_gen_factory.py b/pipelex/pipe_operators/img_gen/pipe_img_gen_factory.pyindex e9ba42b7d..12057bfac 100644--- a/pipelex/pipe_operators/img_gen/pipe_img_gen_factory.py+++ b/pipelex/pipe_operators/img_gen/pipe_img_gen_factory.py@@ -4,9 +4,9 @@ from typing_extensions import overridefrom pipelex.cogt.templating.template_blueprint import TemplateBlueprintfrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_factory import PipeFactoryProtocolfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpecfrom pipelex.core.pipes.variable_multiplicity import parse_concept_with_multiplicity+from pipelex.pipe_machinery.pipe_factory import PipeFactoryProtocolfrom pipelex.pipe_operators.img_gen.img_gen_prompt_blueprint import ImgGenPromptBlueprintfrom pipelex.pipe_operators.img_gen.pipe_img_gen import PipeImgGenfrom pipelex.pipe_operators.img_gen.pipe_img_gen_blueprint import PipeImgGenBlueprintdiff --git a/pipelex/pipe_operators/llm/pipe_llm.py b/pipelex/pipe_operators/llm/pipe_llm.pyindex ae87f51a3..f85d459e5 100644--- a/pipelex/pipe_operators/llm/pipe_llm.py+++ b/pipelex/pipe_operators/llm/pipe_llm.py@@ -22,13 +22,13 @@ from pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecsfrom pipelex.core.pipes.inputs.input_stuff_specs_factory import InputStuffSpecsFactoryfrom pipelex.core.pipes.pipe_output import PipeOutputfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpec-from pipelex.core.pipes.template_guard_lint import lint_optional_input_guards-from pipelex.core.pipes.validation import is_input_used_by_variables, is_variable_satisfied_by_inputsfrom pipelex.core.pipes.variable_multiplicity import VariableMultiplicityfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff_content import StuffContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_concept_library, get_native_concept, get_required_concept+from pipelex.pipe_machinery.template_guard_lint import lint_optional_input_guards+from pipelex.pipe_machinery.validation import is_input_used_by_variables, is_variable_satisfied_by_inputsfrom pipelex.pipe_operators.llm.helpers import get_output_structure_promptfrom pipelex.pipe_operators.llm.llm_prompt_blueprint import LLMPromptBlueprintfrom pipelex.pipe_operators.pipe_operator import PipeOperatordiff --git a/pipelex/pipe_operators/llm/pipe_llm_blueprint.py b/pipelex/pipe_operators/llm/pipe_llm_blueprint.pyindex c0604fa0a..d97acdb31 100644--- a/pipelex/pipe_operators/llm/pipe_llm_blueprint.py+++ b/pipelex/pipe_operators/llm/pipe_llm_blueprint.py@@ -8,10 +8,10 @@ from pipelex.cogt.llm.llm_setting import LLMModelChoicefrom pipelex.cogt.templating.exceptions import TemplateSigilSyntaxErrorfrom pipelex.cogt.templating.template_preprocessor import preprocess_templatefrom pipelex.core.concepts.native.concept_native import NativeConceptCode-from pipelex.core.pipes.pipe_blueprint import PipeBlueprint-from pipelex.core.pipes.validation import is_input_used_by_variables, is_variable_satisfied_by_inputsfrom pipelex.core.pipes.variable_multiplicity import parse_concept_with_multiplicityfrom pipelex.core.qualified_ref import QualifiedRef+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprint+from pipelex.pipe_machinery.validation import is_input_used_by_variables, is_variable_satisfied_by_inputsfrom pipelex.tools.jinja2.exceptions import Jinja2DetectVariablesErrorfrom pipelex.tools.jinja2.jinja2_required_variables import detect_jinja2_required_variablesfrom pipelex.tools.jinja2.template_category import TemplateCategorydiff --git a/pipelex/pipe_operators/llm/pipe_llm_factory.py b/pipelex/pipe_operators/llm/pipe_llm_factory.pyindex ecd1001d6..cde624dcc 100644--- a/pipelex/pipe_operators/llm/pipe_llm_factory.py+++ b/pipelex/pipe_operators/llm/pipe_llm_factory.py@@ -6,10 +6,10 @@ from typing_extensions import overridefrom pipelex.cogt.llm.llm_setting import LLMSettingChoicesfrom pipelex.cogt.templating.template_blueprint import TemplateBlueprintfrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_factory import PipeFactoryProtocolfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpecfrom pipelex.core.pipes.variable_multiplicity import make_variable_multiplicity, parse_concept_with_multiplicityfrom pipelex.interpreter_hub import get_optional_domain+from pipelex.pipe_machinery.pipe_factory import PipeFactoryProtocolfrom pipelex.pipe_operators.llm.exceptions import PipeLLMFactoryErrorfrom pipelex.pipe_operators.llm.llm_prompt_blueprint import LLMPromptBlueprintfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMdiff --git a/pipelex/pipe_operators/pipe_operator.py b/pipelex/pipe_operators/pipe_operator.pyindex d45416e8d..e91c956e8 100644--- a/pipelex/pipe_operators/pipe_operator.py+++ b/pipelex/pipe_operators/pipe_operator.py@@ -5,8 +5,8 @@ from typing_extensions import overridefrom pipelex.cogt.exceptions import ModelNotFoundError, ModelWaterfallErrorfrom pipelex.core.memory.working_memory import WorkingMemory-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.core.pipes.pipe_output import PipeOutput+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractfrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipe_run.pipe_run_params import PipeRunParamsfrom pipelex.system.job_metadata import JobMetadatadiff --git a/pipelex/pipe_operators/search/pipe_search.py b/pipelex/pipe_operators/search/pipe_search.pyindex d0a8c83c9..34cbaf086 100644--- a/pipelex/pipe_operators/search/pipe_search.py+++ b/pipelex/pipe_operators/search/pipe_search.py@@ -13,8 +13,8 @@ from pipelex.cogt.templating.template_rendering import render_templatefrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecsfrom pipelex.core.pipes.pipe_output import PipeOutput-from pipelex.core.pipes.template_guard_lint import lint_optional_input_guardsfrom pipelex.core.stuffs.stuff_factory import StuffFactory+from pipelex.pipe_machinery.template_guard_lint import lint_optional_input_guardsfrom pipelex.pipe_operators.pipe_operator import PipeOperatorfrom pipelex.pipe_run.pipe_run_params import PipeRunParamsfrom pipelex.runtime_hub import get_content_generator, get_model_deckdiff --git a/pipelex/pipe_operators/search/pipe_search_blueprint.py b/pipelex/pipe_operators/search/pipe_search_blueprint.pyindex bfae143a3..52667432a 100644--- a/pipelex/pipe_operators/search/pipe_search_blueprint.py+++ b/pipelex/pipe_operators/search/pipe_search_blueprint.py@@ -7,7 +7,7 @@ from typing_extensions import overridefrom pipelex.cogt.search.search_setting import SearchModelChoicefrom pipelex.cogt.templating.exceptions import TemplateSigilSyntaxErrorfrom pipelex.cogt.templating.template_preprocessor import preprocess_template-from pipelex.core.pipes.pipe_blueprint import PipeBlueprint+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintfrom pipelex.tools.jinja2.exceptions import Jinja2TemplateSyntaxErrorfrom pipelex.tools.jinja2.jinja2_parsing import check_jinja2_parsingfrom pipelex.tools.jinja2.jinja2_required_variables import detect_jinja2_required_variablesdiff --git a/pipelex/pipe_operators/search/pipe_search_factory.py b/pipelex/pipe_operators/search/pipe_search_factory.pyindex 26ddf16c3..84c4def44 100644--- a/pipelex/pipe_operators/search/pipe_search_factory.py+++ b/pipelex/pipe_operators/search/pipe_search_factory.py@@ -5,9 +5,9 @@ from typing_extensions import overridefrom pipelex.cogt.templating.template_blueprint import TemplateBlueprintfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_factory import PipeFactoryProtocolfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpecfrom pipelex.interpreter_hub import get_concept_library, get_native_concept+from pipelex.pipe_machinery.pipe_factory import PipeFactoryProtocolfrom pipelex.pipe_operators.search.pipe_search import PipeSearchfrom pipelex.pipe_operators.search.pipe_search_blueprint import PipeSearchBlueprintfrom pipelex.tools.jinja2.template_category import TemplateCategorydiff --git a/pipelex/pipe_operators/structure/pipe_structure_blueprint.py b/pipelex/pipe_operators/structure/pipe_structure_blueprint.pyindex 2a29e368e..8a5d697c7 100644--- a/pipelex/pipe_operators/structure/pipe_structure_blueprint.py+++ b/pipelex/pipe_operators/structure/pipe_structure_blueprint.py@@ -4,9 +4,9 @@ from typing_extensions import overridefrom pipelex.cogt.llm.llm_setting import LLMModelChoicefrom pipelex.core.concepts.native.concept_native import NativeConceptCode-from pipelex.core.pipes.pipe_blueprint import PipeBlueprintfrom pipelex.core.pipes.variable_multiplicity import parse_concept_with_multiplicityfrom pipelex.core.qualified_ref import QualifiedRef+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintclass PipeStructureBlueprint(PipeBlueprint):diff --git a/pipelex/pipe_operators/structure/pipe_structure_factory.py b/pipelex/pipe_operators/structure/pipe_structure_factory.pyindex a33890d5e..32f882241 100644--- a/pipelex/pipe_operators/structure/pipe_structure_factory.py+++ b/pipelex/pipe_operators/structure/pipe_structure_factory.py@@ -3,9 +3,9 @@ from typing import Anyfrom typing_extensions import overridefrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_factory import PipeFactoryProtocolfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpecfrom pipelex.core.pipes.variable_multiplicity import make_variable_multiplicity, parse_concept_with_multiplicity+from pipelex.pipe_machinery.pipe_factory import PipeFactoryProtocolfrom pipelex.pipe_operators.structure.pipe_structure import PipeStructurefrom pipelex.pipe_operators.structure.pipe_structure_blueprint import PipeStructureBlueprintdiff --git a/pipelex/pipe_run/dry_run_in_process.py b/pipelex/pipe_run/dry_run_in_process.pyindex 1f89f4d18..912566e2e 100644--- a/pipelex/pipe_run/dry_run_in_process.py+++ b/pipelex/pipe_run/dry_run_in_process.py@@ -15,11 +15,11 @@ from pipelex import logfrom pipelex.base_exceptions import PipelexErrorfrom pipelex.cogt.content_generation.content_generator import ContentGeneratorfrom pipelex.config import get_config-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.graph.graph_tracer_manager import GraphTracerManagerfrom pipelex.graph.graphspec import GraphSpec, GraphSpecModefrom pipelex.interpreter_hub import get_library_manager, scoped_pipe_routerfrom pipelex.observer.observer_protocol import ObserverNoOp+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractfrom pipelex.pipe_run.exceptions import DryRunGraphNotProducedErrorfrom pipelex.pipe_run.pipe_router import PipeRouterfrom pipelex.pipe_run.pipe_run import PipeRundiff --git a/pipelex/pipe_run/pipe_job.py b/pipelex/pipe_run/pipe_job.pyindex 0883dcd08..9dd656662 100644--- a/pipelex/pipe_run/pipe_job.py+++ b/pipelex/pipe_run/pipe_job.py@@ -3,8 +3,8 @@ from typing import Anyfrom pydantic import BaseModelfrom pipelex.core.memory.working_memory import WorkingMemory-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.libraries.library_crate import LibraryCrate+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractfrom pipelex.pipe_run.exceptions import PipeJobErrorfrom pipelex.pipe_run.pipe_run_params import PipeRunParamsfrom pipelex.system.job_metadata import JobMetadatadiff --git a/pipelex/pipe_run/pipe_job_factory.py b/pipelex/pipe_run/pipe_job_factory.pyindex e08f37d3a..e7a0d4056 100644--- a/pipelex/pipe_run/pipe_job_factory.py+++ b/pipelex/pipe_run/pipe_job_factory.py@@ -1,7 +1,7 @@from pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.libraries.library_crate import LibraryCrate+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractfrom pipelex.pipe_run.pipe_job import PipeJobfrom pipelex.pipe_run.pipe_run_params import PipeRunParamsfrom pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactorydiff --git a/pipelex/pipe_signature/pipe_signature.py b/pipelex/pipe_signature/pipe_signature.pyindex ab00d8bb0..509c6b213 100644--- a/pipelex/pipe_signature/pipe_signature.py+++ b/pipelex/pipe_signature/pipe_signature.py@@ -5,9 +5,9 @@ from typing_extensions import overridefrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactoryfrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_abstract import PipeAbstract-from pipelex.core.pipes.pipe_blueprint import PipeTypefrom pipelex.core.pipes.pipe_output import PipeOutput+from pipelex.pipe_machinery.pipe_abstract import PipeAbstract+from pipelex.pipe_machinery.pipe_blueprint import PipeTypefrom pipelex.pipe_run.pipe_run_params import PipeRunParamsfrom pipelex.pipe_signature.exceptions import PipeSignatureNotExecutableErrorfrom pipelex.system.job_metadata import JobMetadatadiff --git a/pipelex/pipe_signature/pipe_signature_blueprint.py b/pipelex/pipe_signature/pipe_signature_blueprint.pyindex 05aed6698..10dcb5f4e 100644--- a/pipelex/pipe_signature/pipe_signature_blueprint.py+++ b/pipelex/pipe_signature/pipe_signature_blueprint.py@@ -3,7 +3,7 @@ from typing import Literalfrom pydantic import Fieldfrom typing_extensions import override-from pipelex.core.pipes.pipe_blueprint import PipeBlueprint, PipeType+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprint, PipeTypeclass PipeSignatureBlueprint(PipeBlueprint):diff --git a/pipelex/pipe_signature/pipe_signature_factory.py b/pipelex/pipe_signature/pipe_signature_factory.pyindex d992e28af..e29b1a7fb 100644--- a/pipelex/pipe_signature/pipe_signature_factory.py+++ b/pipelex/pipe_signature/pipe_signature_factory.py@@ -3,8 +3,8 @@ from typing import Anyfrom typing_extensions import overridefrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_factory import PipeFactoryProtocolfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpec+from pipelex.pipe_machinery.pipe_factory import PipeFactoryProtocolfrom pipelex.pipe_signature.pipe_signature import PipeSignaturefrom pipelex.pipe_signature.pipe_signature_blueprint import PipeSignatureBlueprintdiff --git a/pipelex/pipe_signature/signature_walk.py b/pipelex/pipe_signature/signature_walk.pyindex 724871251..de9910765 100644--- a/pipelex/pipe_signature/signature_walk.py+++ b/pipelex/pipe_signature/signature_walk.py@@ -7,8 +7,8 @@ form an import cycle (`pipe_abstract → hub → library → pipe_library → piKeeping the walk here — downstream of `hub` — keeps `pipe_abstract` cycle-free."""-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.interpreter_hub import get_optional_pipe+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractdef collect_signature_refs(pipe: PipeAbstract, *, visited: set[str] | None = None) -> set[str]:diff --git a/pipelex/pipelex.py b/pipelex/pipelex.pyindex 3f53ba718..db7369de7 100644--- a/pipelex/pipelex.py+++ b/pipelex/pipelex.py@@ -39,10 +39,12 @@ from pipelex.core.validation import report_validation_errorfrom pipelex.graph.mermaidflow.template_set import MERMAID_TEMPLATE_SETfrom pipelex.graph.reactflow.template_set import REACTFLOW_TEMPLATE_SETfrom pipelex.interpreter_hub import InterpreterHub, set_interpreter_hub+from pipelex.interpreter_plugins.builtins import BUILTIN_PLUGINS, CORE_UNCONDITIONAL_PLUGIN_NAMESfrom pipelex.libraries.library_manager import LibraryManagerfrom pipelex.libraries.library_manager_abstract import LibraryManagerAbstractfrom pipelex.observer.multi_observer import MultiObserverfrom pipelex.observer.observer_protocol import ObserverNoOp, ObserverProtocol+from pipelex.pipe_machinery.registry_models import PipeRegistryModelsfrom pipelex.pipe_operators.func.pipe_func_executor_protocol import PipeFuncExecutorProtocolfrom pipelex.pipe_run.pipe_router import PipeRouterfrom pipelex.pipe_run.pipe_router_protocol import PipeRouterProtocol@@ -296,7 +298,11 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.# (inference, storage, …) are still built later at their own hub-set points, all referencing this# same already-built registrar; the slot-claim thunks / teardown callbacks it also accumulates are# applied at their ordered apply-points in later phases.- plugin_registrar = build_registrar(config=get_config())+ plugin_registrar = build_registrar(+ config=get_config(),+ builtin_plugins=BUILTIN_PLUGINS,+ core_unconditional_plugin_names=CORE_UNCONDITIONAL_PLUGIN_NAMES,+ )self._plugin_registrar = plugin_registrar# Reject an unknown boot orchestrator before falling through to the core defaults. The requested# name (CLI --orchestrator / setup(boot_orchestrator=...) / config) is matched against registered@@ -492,7 +498,10 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.self.interpreter_hub.set_pipeline_manager(pipeline_manager=self.pipeline_manager)self.pipeline_manager.setup()+ # Two manifests, one registry: core's value model and the pipe kinds. They are disjoint by+ # construction and pinned as such by tests/unit/pipelex/test_registry_models_split.py.self.class_registry.register_classes(CoreRegistryModels.get_all_models())+ self.class_registry.register_classes(PipeRegistryModels.get_all_models())if runtime_manager.is_unit_testing:log.verbose("Registering test models for unit testing")self.class_registry.register_classes(TestRegistryModels.get_all_models())diff --git a/pipelex/pipeline/blueprint_selection.py b/pipelex/pipeline/blueprint_selection.pyindex 1908e6a92..cbec48817 100644--- a/pipelex/pipeline/blueprint_selection.py+++ b/pipelex/pipeline/blueprint_selection.py@@ -11,8 +11,8 @@ without an import cycle through ``bundle_validator``.from typing import NamedTuple, Sequence-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipeline.exceptions import ValidateBundleErrordiff --git a/pipelex/pipeline/bundle_validator.py b/pipelex/pipeline/bundle_validator.pyindex d553e917c..5f60ff0be 100644--- a/pipelex/pipeline/bundle_validator.py+++ b/pipelex/pipeline/bundle_validator.py@@ -37,7 +37,6 @@ from pipelex import logfrom pipelex.base_exceptions import PipelexErrorfrom pipelex.cogt.content_generation.content_generator import ContentGeneratorfrom pipelex.config import get_config-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.interpreter_hub import (clear_current_library,get_current_library,@@ -49,6 +48,7 @@ from pipelex.interpreter_hub import ()from pipelex.libraries.pipe.exceptions import PipeNotFoundErrorfrom pipelex.observer.observer_protocol import ObserverNoOp+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractfrom pipelex.pipe_run.exceptions import DryRunErrorfrom pipelex.pipe_run.pipe_router import PipeRouterfrom pipelex.pipe_run.pipe_run import PipeRundiff --git a/pipelex/pipeline/controller_taint.py b/pipelex/pipeline/controller_taint.pyindex 68413577b..0e59ec75b 100644--- a/pipelex/pipeline/controller_taint.py+++ b/pipelex/pipeline/controller_taint.py@@ -13,10 +13,10 @@ the hub.from collections.abc import Sequencefrom typing import TypeAlias-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.pipe_controllers.absence_taint import ParallelTaintAnalysis, SequenceTaintAnalysisfrom pipelex.pipe_controllers.parallel.pipe_parallel import PipeParallelfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequence+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractControllerTaintAnalysis: TypeAlias = SequenceTaintAnalysis | ParallelTaintAnalysisdiff --git a/pipelex/pipeline/dry_run_pipeline.py b/pipelex/pipeline/dry_run_pipeline.pyindex 5787d23ff..e4af05029 100644--- a/pipelex/pipeline/dry_run_pipeline.py+++ b/pipelex/pipeline/dry_run_pipeline.py@@ -12,9 +12,9 @@ cycle, which is why the two entrypoints are separate modules at separate altitud"""from pipelex.config import get_config-from pipelex.core.interpreter.exceptions import PipelexInterpreterError-from pipelex.core.interpreter.interpreter import PipelexInterpreterfrom pipelex.graph.graphspec import GraphSpec+from pipelex.mthds_parsing.exceptions import MthdsParserError+from pipelex.mthds_parsing.parser import MthdsParserfrom pipelex.pipe_run.exceptions import DryRunGraphNotProducedErrorfrom pipelex.pipe_run.pipe_run_mode import PipeRunModefrom pipelex.pipeline.blueprint_selection import select_primary_blueprint@@ -50,7 +50,7 @@ async def dry_run_pipeline(Tuple of (GraphSpec, domain-qualified main-pipe ref).Raises:- PipelexInterpreterError: If content parsing fails or main_pipe is missing.+ MthdsParserError: If content parsing fails or main_pipe is missing.DryRunGraphNotProducedError: If pipeline execution does not produce a graph spec.PipelineExecutionError: If dry-run execution fails."""@@ -62,15 +62,15 @@ async def dry_run_pipeline(# shared selection rule. Note: pipeline_run_setup will re-parse these contents. The# double-parse is accepted because the runner interface requires the pipe ref upfront# and does not expose the internally-resolved pipe ref in its response.- blueprints = [PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=content) for content in mthds_contents]+ blueprints = [MthdsParser.make_pipelex_bundle_blueprint(mthds_content=content) for content in mthds_contents]if pipe_code is not None and not pipe_code.strip():msg = "pipe_code must not be blank when provided"- raise PipelexInterpreterError(msg)+ raise MthdsParserError(msg)pipe_ref = pipe_code if pipe_code is not None else select_primary_blueprint(blueprints).main_pipe_refif not pipe_ref:msg = "Bundle does not declare a main_pipe, cannot generate graph"- raise PipelexInterpreterError(msg)+ raise MthdsParserError(msg)execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(generate_graph=True,diff --git a/pipelex/pipeline/exceptions.py b/pipelex/pipeline/exceptions.pyindex e6bb81bf5..0f6315a08 100644--- a/pipelex/pipeline/exceptions.py+++ b/pipelex/pipeline/exceptions.py@@ -2,8 +2,7 @@ from typing_extensions import overridefrom pipelex.base_exceptions import ErrorDomain, ErrorReport, PipelexError, PipelexUnexpectedErrorfrom pipelex.cogt.inference.error_classification import UserAction, UserActionKind-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData-from pipelex.core.exceptions import PipeFactoryErrorData, PipesAndConceptValidationErrorData+from pipelex.core.exceptions import PipeFactoryErrorData, PipelexBundleBlueprintValidationErrorData, PipesAndConceptValidationErrorDatafrom pipelex.pipe_run.pipe_run_mode import PipeRunModefrom pipelex.pipeline.validation_errors import build_validation_error_itemsdiff --git a/pipelex/pipeline/execution_seams.py b/pipelex/pipeline/execution_seams.pyindex 6de827db5..b9062023b 100644--- a/pipelex/pipeline/execution_seams.py+++ b/pipelex/pipeline/execution_seams.py@@ -25,11 +25,9 @@ from typing import TYPE_CHECKINGfrom mthds.protocol.pipeline_inputs import PipelineInputsfrom pipelex import log-from pipelex.core.interpreter.interpreter import PipelexInterpreterfrom pipelex.core.memory.absence import AbsenceKind, AbsenceRecordfrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.interpreter_hub import (clear_current_library,get_concept_library,@@ -38,6 +36,8 @@ from pipelex.interpreter_hub import (resolve_library_dirs,set_current_library,)+from pipelex.mthds_parsing.parser import MthdsParser+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractfrom pipelex.pipe_run.pipe_job import PipeJobfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactoryfrom pipelex.pipe_run.pipe_run_mode import PipeRunMode@@ -50,7 +50,7 @@ from pipelex.system.job_metadata import JobMetadata, OtelContextfrom pipelex.tools.misc.file_utils import reject_bare_str_or_pathif TYPE_CHECKING:- from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint+ from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.system.trace_context import TraceContext@@ -94,7 +94,7 @@ def acquire_library(qualified_main_pipe: str | None = Noneif mthds_contents:- all_blueprints = [PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=content) for content in mthds_contents]+ all_blueprints = [MthdsParser.make_pipelex_bundle_blueprint(mthds_content=content) for content in mthds_contents]# Filter out blueprints whose URIs are already loaded (e.g. via PIPELEXPATH).blueprints_to_load: list[PipelexBundleBlueprint] = list(all_blueprints)diff --git a/pipelex/pipeline/fixes/fix_loop.py b/pipelex/pipeline/fixes/fix_loop.pyindex c848f3add..77c9283d3 100644--- a/pipelex/pipeline/fixes/fix_loop.py+++ b/pipelex/pipeline/fixes/fix_loop.py@@ -35,9 +35,9 @@ from pydantic import BaseModel, ConfigDict, Fieldfrom pipelex.base_exceptions import ValidationErrorItemfrom pipelex.config import get_config-from pipelex.core.pipes.pipe_blueprint import SIGNATURE_ONLY_KEYSfrom pipelex.interpreter_hub import resolve_library_dirsfrom pipelex.libraries.library_utils import get_pipelex_mthds_files_from_dirs+from pipelex.pipe_machinery.pipe_blueprint import SIGNATURE_ONLY_KEYSfrom pipelex.pipeline.exceptions import FixTransactionError, FixWriteConflictError, ValidateBundleErrorfrom pipelex.pipeline.fixes.applicability import is_safe_fix_for_load_scope, is_target_in_write_scopefrom pipelex.pipeline.fixes.applier import apply_fix_ops, serialize_and_formatdiff --git a/pipelex/pipeline/fixes/planner.py b/pipelex/pipeline/fixes/planner.pyindex 45b6e1194..607c5635a 100644--- a/pipelex/pipeline/fixes/planner.py+++ b/pipelex/pipeline/fixes/planner.py@@ -5,8 +5,7 @@ The planner runs inside report assembly (``build_validation_error_items``), so eof the validation report — CLI, API, MCP — sees fixes with zero extra plumbing."""-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData-from pipelex.core.exceptions import PipesAndConceptValidationErrorData+from pipelex.core.exceptions import PipelexBundleBlueprintValidationErrorData, PipesAndConceptValidationErrorDatafrom pipelex.suggested_fix import FixOp, FixOpKind, FixSafety, SuggestedFixMATCH_SEQUENCE_OUTPUT_FIX_CODE = "match-sequence-output"diff --git a/pipelex/pipeline/pipe_io_contracts.py b/pipelex/pipeline/pipe_io_contracts.pyindex 4e9137dfe..e860c7f3b 100644--- a/pipelex/pipeline/pipe_io_contracts.py+++ b/pipelex/pipeline/pipe_io_contracts.py@@ -24,7 +24,7 @@ from pydantic import BaseModel, Field, PydanticUndefinedAnnotation, PydanticUserfrom pipelex.core.concepts.concept_representation_generator import ConceptRepresentationFormatfrom pipelex.core.concepts.exceptions import ConceptValueError-from pipelex.core.pipes.pipe_abstract import PipeAbstract+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractfrom pipelex.pipeline.exceptions import PipeIOContractErrordiff --git a/pipelex/pipeline/pipeline_run_setup.py b/pipelex/pipeline/pipeline_run_setup.pyindex 014c17a47..c11d2c524 100644--- a/pipelex/pipeline/pipeline_run_setup.py+++ b/pipelex/pipeline/pipeline_run_setup.py@@ -33,7 +33,7 @@ from pipelex.system.telemetry.otel_factory import OtelFactoryfrom pipelex.tracing.event_log_factory import make_event_logif TYPE_CHECKING:- from pipelex.core.pipes.pipe_abstract import PipeAbstract+ from pipelex.pipe_machinery.pipe_abstract import PipeAbstractfrom pipelex.system.trace_context import TraceContextfrom pipelex.tracing.event_log_protocol import EventLogProtocoldiff --git a/pipelex/pipeline/resolve_bundle.py b/pipelex/pipeline/resolve_bundle.pyindex b635f7aa1..bccaa2d36 100644--- a/pipelex/pipeline/resolve_bundle.py+++ b/pipelex/pipeline/resolve_bundle.py@@ -17,13 +17,13 @@ from typing import Sequencefrom mthds.package.manifest.schema import MTHDS_STANDARD_VERSIONfrom pipelex.base_exceptions import PipelexUnexpectedError-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint-from pipelex.core.interpreter.interpreter import PipelexInterpreterfrom pipelex.core.qualified_ref import QualifiedReffrom pipelex.interpreter_hub import clear_current_library, get_current_library_id_or_none, get_library_manager, set_current_libraryfrom pipelex.libraries.crate_normalization import normalize_cratefrom pipelex.libraries.library_crate import LibraryCratefrom pipelex.libraries.pipe.exceptions import PipeLibraryError+from pipelex.mthds_parsing.parser import MthdsParser+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipeline.validate_bundle import translate_to_validate_bundle_error@@ -69,7 +69,7 @@ def resolve_crate_from_contents(*, mthds_contents: list[str], mthds_sources: Seqcontent_sources: list[str | None] = list(mthds_sources) if mthds_sources is not None else [None] * len(mthds_contents)with translate_to_validate_bundle_error():blueprints = [- PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=content, mthds_source=source)+ MthdsParser.make_pipelex_bundle_blueprint(mthds_content=content, mthds_source=source)for content, source in zip(mthds_contents, content_sources, strict=True)]_reject_address_based_dependencies(blueprints=blueprints)diff --git a/pipelex/pipeline/validate_bundle.py b/pipelex/pipeline/validate_bundle.pyindex c936ab641..811928ddf 100644--- a/pipelex/pipeline/validate_bundle.py+++ b/pipelex/pipeline/validate_bundle.py@@ -12,16 +12,7 @@ from typing_extensions import TypedDictfrom pipelex import logfrom pipelex.base_exceptions import PipelexUnexpectedError-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint-from pipelex.core.interpreter.exceptions import PipelexInterpreterError-from pipelex.core.interpreter.interpreter import PipelexInterpreterfrom pipelex.core.pipes.exceptions import PipeFactoryError, PipeValidationError-from pipelex.core.pipes.handle_pipe_errors import (- categorize_pipe_factory_error,- categorize_pipe_validation_error,- categorize_pipe_validation_with_libraries_error,-)-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.core.qualified_ref import QualifiedReffrom pipelex.core.validation import report_validation_errorfrom pipelex.interpreter_hub import (@@ -34,6 +25,15 @@ from pipelex.interpreter_hub import (from pipelex.libraries.exceptions import LibraryError, LibraryLoadingErrorfrom pipelex.libraries.library_utils import get_pipelex_mthds_files_from_dirsfrom pipelex.libraries.pipe.exceptions import PipeNotFoundError+from pipelex.mthds_parsing.exceptions import MthdsParserError+from pipelex.mthds_parsing.handle_pipe_errors import (+ categorize_pipe_factory_error,+ categorize_pipe_validation_error,+ categorize_pipe_validation_with_libraries_error,+)+from pipelex.mthds_parsing.parser import MthdsParser+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractfrom pipelex.pipe_run.exceptions import DryRunError, PipeRunErrorfrom pipelex.pipeline.bundle_validator import BundleValidator, DryRunOutput, DryRunStatusfrom pipelex.pipeline.exceptions import ValidateBundleError@@ -121,18 +121,18 @@ def translate_to_validate_bundle_error() -> Generator[None, None, None]:Single source of truth for the bundle-loading error cascade, shared by thebundle-loading entry points: ``validate_bundle``, ``validate_bundles_from_directory``,and ``pipelex.pipeline.resolve_bundle.resolve_crate_from_contents``.- A ``PipelexInterpreterError`` becomes a ``ValidateBundleError`` carrying the+ A ``MthdsParserError`` becomes a ``ValidateBundleError`` carrying theblueprint validation errors, a ``PipeFactoryError`` carries the categorizedfactory error, etc. Sharing one source of truth means a new handler onlyneeds to be added once."""try:yield- except PipelexInterpreterError as interpreter_error:+ except MthdsParserError as parser_error:raise ValidateBundleError(- message=interpreter_error.message,- pipelex_bundle_blueprint_validation_errors=interpreter_error.validation_errors,- ) from interpreter_error+ message=parser_error.message,+ pipelex_bundle_blueprint_validation_errors=parser_error.validation_errors,+ ) from parser_errorexcept PipeFactoryError as factory_error:factory_error_data = categorize_pipe_factory_error(factory_error=factory_error)raise ValidateBundleError(@@ -289,7 +289,7 @@ async def validate_bundle(if mthds_contents is not None:content_sources: list[str | None] = list(mthds_sources) if mthds_sources is not None else [None] * len(mthds_contents)loaded_blueprints = [- PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=content, mthds_source=source)+ MthdsParser.make_pipelex_bundle_blueprint(mthds_content=content, mthds_source=source)for content, source in zip(mthds_contents, content_sources, strict=True)]loaded_pipes = library_manager.load_from_blueprints(library_id=library_id, blueprints=loaded_blueprints)@@ -307,7 +307,7 @@ async def validate_bundle(else:assert mthds_file_path is not None- blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(bundle_path=mthds_file_path)+ blueprint = MthdsParser.make_pipelex_bundle_blueprint(bundle_path=mthds_file_path)loaded_blueprints = [blueprint]if mthds_file_path.resolve() not in library.loaded_mthds_paths:@@ -358,7 +358,7 @@ async def validate_bundles_from_directory(directory: Path, *, allow_signatures:set_current_library(library_id=library_id)with translate_to_validate_bundle_error():for mthds_file in mthds_files:- blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(bundle_path=mthds_file)+ blueprint = MthdsParser.make_pipelex_bundle_blueprint(bundle_path=mthds_file)all_blueprints.append(blueprint)loaded_pipes = library_manager.load_libraries(library_id=library_id, library_dirs=[Path(directory)])diff --git a/pipelex/pipeline/validation_errors.py b/pipelex/pipeline/validation_errors.pyindex a8c6b790d..87c1ef513 100644--- a/pipelex/pipeline/validation_errors.py+++ b/pipelex/pipeline/validation_errors.py@@ -16,8 +16,7 @@ is no import cycle."""from pipelex.base_exceptions import ValidationErrorCategory, ValidationErrorItem-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData-from pipelex.core.exceptions import PipeFactoryErrorData, PipesAndConceptValidationErrorData+from pipelex.core.exceptions import PipeFactoryErrorData, PipelexBundleBlueprintValidationErrorData, PipesAndConceptValidationErrorDatafrom pipelex.pipeline.fixes.planner import plan_fix_for_blueprint_validation_error, plan_fix_for_pipe_validation_errordiff --git a/pipelex/pipeline/validation_report.py b/pipelex/pipeline/validation_report.pyindex ca7f5218a..ec01d8ccc 100644--- a/pipelex/pipeline/validation_report.py+++ b/pipelex/pipeline/validation_report.py@@ -18,8 +18,8 @@ from mthds.protocol.models import ValidationReportfrom pydantic import Fieldfrom pipelex.base_exceptions import ValidationErrorItem-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.graph.graphspec import GraphSpec+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipeline.blueprint_selection import select_primary_blueprintfrom pipelex.pipeline.bundle_validator import DryRunOutputfrom pipelex.pipeline.liftable_pipes import LiftablePipeEntrydiff --git a/pipelex/plugins/builtins.py b/pipelex/plugins/builtins.pydeleted file mode 100644index a2542d43f..000000000--- a/pipelex/plugins/builtins.py+++ /dev/null@@ -1,57 +0,0 @@-from pipelex.plugins.anthropic.anthropic_plugin import AnthropicPlugin-from pipelex.plugins.azure_rest.azure_rest_plugin import AzureRestPlugin-from pipelex.plugins.bedrock.bedrock_plugin import BedrockPlugin-from pipelex.plugins.blackboxai.blackboxai_plugin import BlackboxaiPlugin-from pipelex.plugins.contract import PipelexPlugin-from pipelex.plugins.direct.direct_plugin import DirectOrchestratorPlugin-from pipelex.plugins.docling.docling_plugin import DoclingPlugin-from pipelex.plugins.fal.fal_plugin import FalPlugin-from pipelex.plugins.gateway.gateway_plugin import GatewayPlugin-from pipelex.plugins.google.google_plugin import GooglePlugin-from pipelex.plugins.huggingface.huggingface_plugin import HuggingFacePlugin-from pipelex.plugins.linkup.linkup_plugin import LinkupPlugin-from pipelex.plugins.mistral.mistral_plugin import MistralPlugin-from pipelex.plugins.openai.openai_plugin import OpenAIPlugin-from pipelex.plugins.openrouter.openrouter_plugin import OpenRouterPlugin-from pipelex.plugins.pipe_func.pipe_func_plugin import PipeFuncPlugin-from pipelex.plugins.portkey.portkey_plugin import PortkeyPlugin-from pipelex.plugins.pypdfium2.pypdfium2_plugin import Pypdfium2Plugin-from pipelex.plugins.secrets.secrets_plugin import SecretsPlugin-from pipelex.plugins.storage.storage_plugin import StoragePlugin--# The plugins Pipelex ships with — discovered at boot ahead of any external-# entry-point plugin. Each is import-light: importing this module imports no-# backend SDK (the SDKs load lazily inside the make_worker closures).-BUILTIN_PLUGINS: list[PipelexPlugin] = [- DirectOrchestratorPlugin(),- PipeFuncPlugin(),- StoragePlugin(),- SecretsPlugin(),- OpenAIPlugin(),- GatewayPlugin(),- PortkeyPlugin(),- AnthropicPlugin(),- MistralPlugin(),- BedrockPlugin(),- GooglePlugin(),- FalPlugin(),- HuggingFacePlugin(),- BlackboxaiPlugin(),- OpenRouterPlugin(),- AzureRestPlugin(),- DoclingPlugin(),- Pypdfium2Plugin(),- LinkupPlugin(),-]--# Built-in plugins that core requires unconditionally — naming one in-# ``plugins.disabled`` is a configuration error, not a no-op. ``direct`` owns the-# DIRECT orchestrator (you cannot boot without an in-process execution mode);-# ``pipe_func`` owns the built-in PipeFunc execution modes (``pipe_func_config.execution_mode`` must-# resolve to a registered factory or boot fails loud — ``direct`` must always be present);-# ``storage`` supplies every built-in storage backend (``storage_config.method`` must-# resolve to a registered factory or boot fails loud); ``secrets`` supplies the built-in-# ``env`` secrets backend (``secrets_config.method`` must likewise resolve or boot fails loud);-# ``openai`` is the always-on default inference driver (no optional SDK to avoid), so disabling it-# would only break the out-of-the-box experience.-CORE_UNCONDITIONAL_PLUGIN_NAMES: frozenset[str] = frozenset({"direct", "pipe_func", "storage", "secrets", "openai"})diff --git a/pipelex/plugins/contract.py b/pipelex/plugins/contract.pyindex 5acf8c7d7..0b31f3855 100644--- a/pipelex/plugins/contract.py+++ b/pipelex/plugins/contract.py@@ -27,6 +27,21 @@ class PipelexPlugin(Protocol):hub-slot claims, HTTP-error mappers and teardown callbacks by calling the menumethods on the ``PluginRegistrar`` it is handed.+ **Invariant — a plugin belongs to exactly one layer.** Its adapters are either all runtime-layer+ (an inference backend, a storage or secrets provider) or all interpreter-layer (anything that+ constructs a `Pipe`-aware object: an orchestrator, a bundle validator, a PipeFunc executor). A+ capability that needs both is two plugins, because the built-in ones are filed by layer —+ ``pipelex.providers`` for the runtime half, ``pipelex.interpreter_plugins`` for the interpreter+ half — and a plugin straddling the two would put the method interpreter back into every runtime+ import closure. External plugins are discovered through an entry point and so live in no declared+ layer, but the same rule keeps them honest about what they pull in.++ Note that ``pipelex.providers`` is where the built-in *adapters* live, while this module and the+ rest of ``pipelex.plugins`` are the *mechanism* they register through. Both packages are+ runtime-layer; the split is about direction, not about layers — adapters depend on the mechanism+ and never the reverse. An external plugin imports ``pipelex.plugins.contract`` and+ ``pipelex.plugins.registrar``, so it is unaffected by where the built-in adapters are filed.+**Invariant — ``register`` is side-effect-free.** It may *only* callregistrar menu methods: no hub access, no I/O, no SDK/client construction.This is what makes ``build_registrar`` safe to run more than once (it runs atdiff --git a/pipelex/plugins/discovery.py b/pipelex/plugins/discovery.pyindex 6aa2d27e2..8461fafa6 100644--- a/pipelex/plugins/discovery.py+++ b/pipelex/plugins/discovery.py@@ -2,7 +2,6 @@ import importlib.metadatafrom typing import TYPE_CHECKING, castfrom pipelex import log-from pipelex.plugins.builtins import BUILTIN_PLUGINS, CORE_UNCONDITIONAL_PLUGIN_NAMESfrom pipelex.plugins.contract import PLUGIN_API_VERSION, PipelexPluginfrom pipelex.plugins.exceptions import (BrokenPluginError,@@ -13,6 +12,8 @@ from pipelex.plugins.exceptions import (from pipelex.plugins.registrar import PluginDiscovery, PluginOrigin, PluginRegistrar, PluginStatusif TYPE_CHECKING:+ from collections.abc import Sequence+from pipelex.system.configuration.configs import PipelexConfig# External plugins advertise themselves under this entry-point group:@@ -21,24 +22,48 @@ if TYPE_CHECKING:ENTRY_POINT_GROUP = "pipelex.plugins"-def build_registrar(*, config: "PipelexConfig") -> PluginRegistrar:+def build_registrar(+ *,+ config: "PipelexConfig",+ builtin_plugins: "Sequence[PipelexPlugin]",+ core_unconditional_plugin_names: frozenset[str],+) -> PluginRegistrar:"""Discover every plugin and let each register itself into a fresh registrar.A **pure function**: it touches no global state and constructs no client/SDK,so it is safe to call more than once (it runs at boot and again in the- ``pipelex plugins list`` diagnostic command). Iterates ``BUILTIN_PLUGINS`` first, then external+ ``pipelex plugins list`` diagnostic command). Iterates ``builtin_plugins`` first, then external``pipelex.plugins`` entry points; version-checks each; skips (and logs) anyplugin named in ``config.plugins.disabled`` — externals are denylisted by theirentry-point name *before* ``load()`` so a broken installed plugin can still bedisabled; and is fail-loud on every conflict (duplicate backend/mode/slot,version mismatch, broken plugin).++ Args:+ config: The fully-resolved config; supplies the ``plugins.disabled`` denylist and is handed+ to the registrar for the plugins that read it.+ builtin_plugins: The built-ins to discover, in order. Injected rather than imported: some+ built-ins adapt interpreter-layer ports, and this module is runtime-layer, so importing+ the list here would put the method interpreter back into every runtime closure. The+ composed list lives in ``pipelex.interpreter_plugins.builtins`` — the layer allowed to+ weld the two halves.+ core_unconditional_plugin_names: The built-in names that may not be denylisted. Injected for+ the same reason and from the same module, so the constant never splits away from the+ plugins it describes."""registrar = PluginRegistrar(config=config)disabled = set(config.plugins.disabled)# Built-ins are already instantiated, so their name is known up front.- for plugin in BUILTIN_PLUGINS:- if _skip_if_disabled(registrar=registrar, name=plugin.name, origin=PluginOrigin.BUILTIN, targets_api=plugin.targets_api, disabled=disabled):+ for plugin in builtin_plugins:+ if _skip_if_disabled(+ registrar=registrar,+ name=plugin.name,+ origin=PluginOrigin.BUILTIN,+ targets_api=plugin.targets_api,+ disabled=disabled,+ core_unconditional_plugin_names=core_unconditional_plugin_names,+ ):continue_register_plugin(registrar=registrar, plugin=plugin, origin=PluginOrigin.BUILTIN)@@ -48,17 +73,39 @@ def build_registrar(*, config: "PipelexConfig") -> PluginRegistrar:# entry-point name; the post-load check honors the denylist on that too, so# either name disables it.for entry_point in _external_entry_points():- if _skip_if_disabled(registrar=registrar, name=entry_point.name, origin=PluginOrigin.EXTERNAL, targets_api=None, disabled=disabled):+ if _skip_if_disabled(+ registrar=registrar,+ name=entry_point.name,+ origin=PluginOrigin.EXTERNAL,+ targets_api=None,+ disabled=disabled,+ core_unconditional_plugin_names=core_unconditional_plugin_names,+ ):continueplugin = _load_external_plugin(entry_point)- if _skip_if_disabled(registrar=registrar, name=plugin.name, origin=PluginOrigin.EXTERNAL, targets_api=plugin.targets_api, disabled=disabled):+ if _skip_if_disabled(+ registrar=registrar,+ name=plugin.name,+ origin=PluginOrigin.EXTERNAL,+ targets_api=plugin.targets_api,+ disabled=disabled,+ core_unconditional_plugin_names=core_unconditional_plugin_names,+ ):continue_register_plugin(registrar=registrar, plugin=plugin, origin=PluginOrigin.EXTERNAL)return registrar-def _skip_if_disabled(*, registrar: PluginRegistrar, name: str, origin: PluginOrigin, targets_api: int | None, disabled: set[str]) -> bool:+def _skip_if_disabled(+ *,+ registrar: PluginRegistrar,+ name: str,+ origin: PluginOrigin,+ targets_api: int | None,+ disabled: set[str],+ core_unconditional_plugin_names: frozenset[str],+) -> bool:"""Record and skip a denylisted plugin; return ``True`` if it was skipped.Fail-loud when a core-unconditional plugin is denylisted — that is a@@ -66,7 +113,7 @@ def _skip_if_disabled(*, registrar: PluginRegistrar, name: str, origin: PluginOr"""if name not in disabled:return False- if name in CORE_UNCONDITIONAL_PLUGIN_NAMES:+ if name in core_unconditional_plugin_names:raise CoreUnconditionalPluginDisabledError(plugin_name=name)log.info(f"Plugin '{name}' is disabled via plugins.disabled; skipping.")registrar.discoveries.append(diff --git a/pipelex/plugins/google/__init__.py b/pipelex/providers/__init__.pysimilarity index 100%rename from pipelex/plugins/google/__init__.pyrename to pipelex/providers/__init__.pydiff --git a/pipelex/plugins/azure_rest/__init__.py b/pipelex/providers/anthropic/__init__.pysimilarity index 100%rename from pipelex/plugins/azure_rest/__init__.pyrename to pipelex/providers/anthropic/__init__.pydiff --git a/pipelex/plugins/anthropic/anthropic_config.py b/pipelex/providers/anthropic/anthropic_config.pysimilarity index 100%rename from pipelex/plugins/anthropic/anthropic_config.pyrename to pipelex/providers/anthropic/anthropic_config.pydiff --git a/pipelex/plugins/anthropic/anthropic_exceptions.py b/pipelex/providers/anthropic/anthropic_exceptions.pysimilarity index 100%rename from pipelex/plugins/anthropic/anthropic_exceptions.pyrename to pipelex/providers/anthropic/anthropic_exceptions.pydiff --git a/pipelex/plugins/anthropic/anthropic_factory.py b/pipelex/providers/anthropic/anthropic_factory.pysimilarity index 99%rename from pipelex/plugins/anthropic/anthropic_factory.pyrename to pipelex/providers/anthropic/anthropic_factory.pyindex 10baf7270..0b2c9f01f 100644--- a/pipelex/plugins/anthropic/anthropic_factory.py+++ b/pipelex/providers/anthropic/anthropic_factory.py@@ -15,8 +15,8 @@ from pipelex.cogt.llm.llm_job import LLMJobfrom pipelex.cogt.model_backends.backend import InferenceBackendfrom pipelex.cogt.usage.token_category import NbTokensByCategoryDict, TokenCategoryfrom pipelex.config import get_config-from pipelex.plugins.anthropic.anthropic_exceptions import AnthropicFactoryErrorfrom pipelex.plugins.model_handle import ModelHandle+from pipelex.providers.anthropic.anthropic_exceptions import AnthropicFactoryErrorfrom pipelex.tools.aws.aws_config import BedrockAccessVariantfrom pipelex.tools.uri.prepared_file import PreparedFile, PreparedFileBase64, PreparedFileHttpUrl, PreparedFileLocalPathdiff --git a/pipelex/plugins/anthropic/anthropic_list.py b/pipelex/providers/anthropic/anthropic_list.pysimilarity index 97%rename from pipelex/plugins/anthropic/anthropic_list.pyrename to pipelex/providers/anthropic/anthropic_list.pyindex 58708cdff..ee7f95be0 100644--- a/pipelex/plugins/anthropic/anthropic_list.py+++ b/pipelex/providers/anthropic/anthropic_list.py@@ -42,7 +42,7 @@ async def list_anthropic_models(from anthropic import AuthenticationError # noqa: PLC0415- from pipelex.plugins.anthropic.anthropic_llms import anthropic_list_available_models # noqa: PLC0415+ from pipelex.providers.anthropic.anthropic_llms import anthropic_list_available_models # noqa: PLC0415model_handle = ModelHandle(sdk=sdk, backend=backend_name)try:diff --git a/pipelex/plugins/anthropic/anthropic_llm_worker.py b/pipelex/providers/anthropic/anthropic_llm_worker.pysimilarity index 99%rename from pipelex/plugins/anthropic/anthropic_llm_worker.pyrename to pipelex/providers/anthropic/anthropic_llm_worker.pyindex 5c73d05ab..c340ab4c0 100644--- a/pipelex/plugins/anthropic/anthropic_llm_worker.py+++ b/pipelex/providers/anthropic/anthropic_llm_worker.py@@ -34,10 +34,10 @@ from pipelex.cogt.llm.thinking_mode import ThinkingModefrom pipelex.cogt.model_backends.constraints import ListedConstraintfrom pipelex.cogt.model_backends.model_spec import InferenceModelSpecfrom pipelex.config import get_config-from pipelex.plugins.anthropic.anthropic_exceptions import (+from pipelex.providers.anthropic.anthropic_exceptions import (AnthropicWorkerConfigurationError,)-from pipelex.plugins.anthropic.anthropic_factory import (+from pipelex.providers.anthropic.anthropic_factory import (AnthropicFactory,AnthropicSdkVariant,)diff --git a/pipelex/plugins/anthropic/anthropic_llms.py b/pipelex/providers/anthropic/anthropic_llms.pysimilarity index 87%rename from pipelex/plugins/anthropic/anthropic_llms.pyrename to pipelex/providers/anthropic/anthropic_llms.pyindex 4f1a31c93..2b25ee41a 100644--- a/pipelex/plugins/anthropic/anthropic_llms.py+++ b/pipelex/providers/anthropic/anthropic_llms.py@@ -2,9 +2,9 @@ from anthropic import AsyncAnthropicfrom anthropic.types import ModelInfofrom pipelex.cogt.model_backends.backend import InferenceBackend-from pipelex.plugins.anthropic.anthropic_exceptions import AnthropicModelListingError, AnthropicSDKUnsupportedError-from pipelex.plugins.anthropic.anthropic_factory import AnthropicFactoryfrom pipelex.plugins.model_handle import ModelHandle+from pipelex.providers.anthropic.anthropic_exceptions import AnthropicModelListingError, AnthropicSDKUnsupportedError+from pipelex.providers.anthropic.anthropic_factory import AnthropicFactoryasync def anthropic_list_available_models(model_handle: ModelHandle, *, backend: InferenceBackend) -> list[ModelInfo]:diff --git a/pipelex/plugins/anthropic/anthropic_plugin.py b/pipelex/providers/anthropic/anthropic_plugin.pysimilarity index 87%rename from pipelex/plugins/anthropic/anthropic_plugin.pyrename to pipelex/providers/anthropic/anthropic_plugin.pyindex 9b39e215c..db9058e66 100644--- a/pipelex/plugins/anthropic/anthropic_plugin.py+++ b/pipelex/providers/anthropic/anthropic_plugin.py@@ -24,8 +24,8 @@ def _make_anthropic_worker() -> InferenceWorkerAbstract:require_sdk(spec="anthropic", extra="anthropic", msg=_ANTHROPIC_MISSING_MSG)- from pipelex.plugins.anthropic.anthropic_factory import AnthropicFactory # noqa: PLC0415- from pipelex.plugins.anthropic.anthropic_llm_worker import AnthropicLLMWorker # noqa: PLC0415+ from pipelex.providers.anthropic.anthropic_factory import AnthropicFactory # noqa: PLC0415+ from pipelex.providers.anthropic.anthropic_llm_worker import AnthropicLLMWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -49,8 +49,8 @@ async def _list_anthropic_models(any_listed: bool,) -> None:from pipelex.cogt.exceptions import ModelListingUnsupportedError # noqa: PLC0415- from pipelex.plugins.anthropic.anthropic_exceptions import AnthropicSDKUnsupportedError # noqa: PLC0415- from pipelex.plugins.anthropic.anthropic_list import list_anthropic_models # noqa: PLC0415+ from pipelex.providers.anthropic.anthropic_exceptions import AnthropicSDKUnsupportedError # noqa: PLC0415+ from pipelex.providers.anthropic.anthropic_list import list_anthropic_models # noqa: PLC0415try:await list_anthropic_models(sdk=sdk, backend_name=backend_name, backend=backend, flat=flat, any_listed=any_listed)diff --git a/pipelex/plugins/bedrock/__init__.py b/pipelex/providers/azure_rest/__init__.pysimilarity index 100%rename from pipelex/plugins/bedrock/__init__.pyrename to pipelex/providers/azure_rest/__init__.pydiff --git a/pipelex/plugins/azure_rest/azure_exceptions.py b/pipelex/providers/azure_rest/azure_exceptions.pysimilarity index 100%rename from pipelex/plugins/azure_rest/azure_exceptions.pyrename to pipelex/providers/azure_rest/azure_exceptions.pydiff --git a/pipelex/plugins/azure_rest/azure_img_gen_worker.py b/pipelex/providers/azure_rest/azure_img_gen_worker.pysimilarity index 99%rename from pipelex/plugins/azure_rest/azure_img_gen_worker.pyrename to pipelex/providers/azure_rest/azure_img_gen_worker.pyindex 7744c3aae..4bc8841ba 100644--- a/pipelex/plugins/azure_rest/azure_img_gen_worker.py+++ b/pipelex/providers/azure_rest/azure_img_gen_worker.py@@ -21,8 +21,8 @@ from pipelex.cogt.inference.transport_retry import request_with_transport_retryfrom pipelex.cogt.model_backends.model_spec import InferenceModelSpecfrom pipelex.cogt.usage.token_category import NbTokensByCategoryDict, TokenCategoryfrom pipelex.config import get_config-from pipelex.plugins.azure_rest.azure_exceptions import AzureCredentialsErrorfrom pipelex.plugins.model_handle import ModelHandle+from pipelex.providers.azure_rest.azure_exceptions import AzureCredentialsErrorfrom pipelex.reporting.reporting_protocol import ReportingProtocolfrom pipelex.runtime_hub import get_models_managerfrom pipelex.tools.log.log import logdiff --git a/pipelex/plugins/azure_rest/azure_rest_plugin.py b/pipelex/providers/azure_rest/azure_rest_plugin.pysimilarity index 94%rename from pipelex/plugins/azure_rest/azure_rest_plugin.pyrename to pipelex/providers/azure_rest/azure_rest_plugin.pyindex 962fae1b4..31aa78c50 100644--- a/pipelex/plugins/azure_rest/azure_rest_plugin.py+++ b/pipelex/providers/azure_rest/azure_rest_plugin.py@@ -16,7 +16,7 @@ def _make_azure_rest_img_gen_worker(sdk_clients: SdkClientRegistry, # noqa: ARG001 - direct construction, no SDK-client cachingreporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.azure_rest.azure_img_gen_worker import AzureImgGenWorker # noqa: PLC0415+ from pipelex.providers.azure_rest.azure_img_gen_worker import AzureImgGenWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)return AzureImgGenWorker(diff --git a/pipelex/plugins/blackboxai/__init__.py b/pipelex/providers/bedrock/__init__.pysimilarity index 100%rename from pipelex/plugins/blackboxai/__init__.pyrename to pipelex/providers/bedrock/__init__.pydiff --git a/pipelex/plugins/bedrock/bedrock_client_aioboto3.py b/pipelex/providers/bedrock/bedrock_client_aioboto3.pysimilarity index 92%rename from pipelex/plugins/bedrock/bedrock_client_aioboto3.pyrename to pipelex/providers/bedrock/bedrock_client_aioboto3.pyindex e5b906ac3..9deb52552 100644--- a/pipelex/plugins/bedrock/bedrock_client_aioboto3.py+++ b/pipelex/providers/bedrock/bedrock_client_aioboto3.py@@ -6,8 +6,8 @@ from typing_extensions import overridefrom pipelex import logfrom pipelex.cogt.usage.token_category import NbTokensByCategoryDict, TokenCategory-from pipelex.plugins.bedrock.bedrock_client_protocol import BedrockClientProtocol-from pipelex.plugins.bedrock.bedrock_message import BedrockMessageDictList+from pipelex.providers.bedrock.bedrock_client_protocol import BedrockClientProtocol+from pipelex.providers.bedrock.bedrock_message import BedrockMessageDictListif TYPE_CHECKING:from types_aiobotocore_bedrock_runtime.type_defs import ConverseResponseTypeDefdiff --git a/pipelex/plugins/bedrock/bedrock_client_boto3.py b/pipelex/providers/bedrock/bedrock_client_boto3.pysimilarity index 91%rename from pipelex/plugins/bedrock/bedrock_client_boto3.pyrename to pipelex/providers/bedrock/bedrock_client_boto3.pyindex 6b7458457..6bc5ed687 100644--- a/pipelex/plugins/bedrock/bedrock_client_boto3.py+++ b/pipelex/providers/bedrock/bedrock_client_boto3.py@@ -6,8 +6,8 @@ from typing_extensions import overridefrom pipelex import logfrom pipelex.cogt.usage.token_category import NbTokensByCategoryDict, TokenCategory-from pipelex.plugins.bedrock.bedrock_client_protocol import BedrockClientProtocol-from pipelex.plugins.bedrock.bedrock_message import BedrockMessageDictList+from pipelex.providers.bedrock.bedrock_client_protocol import BedrockClientProtocol+from pipelex.providers.bedrock.bedrock_message import BedrockMessageDictListclass BedrockClientBoto3(BedrockClientProtocol):diff --git a/pipelex/plugins/bedrock/bedrock_client_protocol.py b/pipelex/providers/bedrock/bedrock_client_protocol.pysimilarity index 84%rename from pipelex/plugins/bedrock/bedrock_client_protocol.pyrename to pipelex/providers/bedrock/bedrock_client_protocol.pyindex 64f90656f..c45dee503 100644--- a/pipelex/plugins/bedrock/bedrock_client_protocol.py+++ b/pipelex/providers/bedrock/bedrock_client_protocol.py@@ -1,7 +1,7 @@from typing import Protocol, runtime_checkablefrom pipelex.cogt.usage.token_category import NbTokensByCategoryDict-from pipelex.plugins.bedrock.bedrock_message import BedrockMessageDictList+from pipelex.providers.bedrock.bedrock_message import BedrockMessageDictList@runtime_checkablediff --git a/pipelex/plugins/bedrock/bedrock_exceptions.py b/pipelex/providers/bedrock/bedrock_exceptions.pysimilarity index 100%rename from pipelex/plugins/bedrock/bedrock_exceptions.pyrename to pipelex/providers/bedrock/bedrock_exceptions.pydiff --git a/pipelex/plugins/bedrock/bedrock_factory.py b/pipelex/providers/bedrock/bedrock_factory.pysimilarity index 82%rename from pipelex/plugins/bedrock/bedrock_factory.pyrename to pipelex/providers/bedrock/bedrock_factory.pyindex 71515f33a..3f2e4caab 100644--- a/pipelex/plugins/bedrock/bedrock_factory.py+++ b/pipelex/providers/bedrock/bedrock_factory.py@@ -4,10 +4,10 @@ from pipelex import logfrom pipelex.cogt.exceptions import LLMCapabilityErrorfrom pipelex.cogt.llm.llm_job import LLMJobfrom pipelex.cogt.model_backends.backend import InferenceBackend-from pipelex.plugins.bedrock.bedrock_client_protocol import BedrockClientProtocol-from pipelex.plugins.bedrock.bedrock_exceptions import BedrockFactoryError-from pipelex.plugins.bedrock.bedrock_message import BedrockContentItem, BedrockMessagefrom pipelex.plugins.model_handle import ModelHandle+from pipelex.providers.bedrock.bedrock_client_protocol import BedrockClientProtocol+from pipelex.providers.bedrock.bedrock_exceptions import BedrockFactoryError+from pipelex.providers.bedrock.bedrock_message import BedrockContentItem, BedrockMessageclass BedrockSdkVariant(StrEnum):@@ -41,13 +41,13 @@ class BedrockFactory:log.verbose(f"Using '{sdk_variant}' for BedrockClient")match sdk_variant:case BedrockSdkVariant.AIBOTO3:- from pipelex.plugins.bedrock.bedrock_client_aioboto3 import BedrockClientAioboto3 # noqa: PLC0415+ from pipelex.providers.bedrock.bedrock_client_aioboto3 import BedrockClientAioboto3 # noqa: PLC0415bedrock_async_client = BedrockClientAioboto3(aws_region=backend.extra_config[BedrockExtraField.AWS_REGION],)case BedrockSdkVariant.BOTO3:- from pipelex.plugins.bedrock.bedrock_client_boto3 import BedrockClientBoto3 # noqa: PLC0415+ from pipelex.providers.bedrock.bedrock_client_boto3 import BedrockClientBoto3 # noqa: PLC0415bedrock_async_client = BedrockClientBoto3(aws_region=backend.extra_config[BedrockExtraField.AWS_REGION],diff --git a/pipelex/plugins/bedrock/bedrock_list.py b/pipelex/providers/bedrock/bedrock_list.pysimilarity index 97%rename from pipelex/plugins/bedrock/bedrock_list.pyrename to pipelex/providers/bedrock/bedrock_list.pyindex bea0dd594..5c66da028 100644--- a/pipelex/plugins/bedrock/bedrock_list.py+++ b/pipelex/providers/bedrock/bedrock_list.py@@ -38,7 +38,7 @@ def list_bedrock_models(from botocore.exceptions import BotoCoreError, ClientError # noqa: PLC0415 - optional dependency, lazy import- from pipelex.plugins.bedrock.bedrock_llms import bedrock_list_available_models # noqa: PLC0415+ from pipelex.providers.bedrock.bedrock_llms import bedrock_list_available_models # noqa: PLC0415model_handle = ModelHandle(sdk=sdk, backend=backend_name)diff --git a/pipelex/plugins/bedrock/bedrock_llm_worker.py b/pipelex/providers/bedrock/bedrock_llm_worker.pysimilarity index 94%rename from pipelex/plugins/bedrock/bedrock_llm_worker.pyrename to pipelex/providers/bedrock/bedrock_llm_worker.pyindex 68c3cc5fb..df02adb12 100644--- a/pipelex/plugins/bedrock/bedrock_llm_worker.py+++ b/pipelex/providers/bedrock/bedrock_llm_worker.py@@ -12,9 +12,9 @@ from pipelex.cogt.llm.llm_job import LLMJobfrom pipelex.cogt.llm.llm_job_components import LLMJobParamsfrom pipelex.cogt.llm.llm_worker_abstract import LLMWorkerAbstractfrom pipelex.cogt.model_backends.model_spec import InferenceModelSpec-from pipelex.plugins.bedrock.bedrock_client_protocol import BedrockClientProtocol-from pipelex.plugins.bedrock.bedrock_exceptions import BedrockWorkerConfigurationError-from pipelex.plugins.bedrock.bedrock_factory import BedrockFactory+from pipelex.providers.bedrock.bedrock_client_protocol import BedrockClientProtocol+from pipelex.providers.bedrock.bedrock_exceptions import BedrockWorkerConfigurationError+from pipelex.providers.bedrock.bedrock_factory import BedrockFactoryfrom pipelex.reporting.reporting_protocol import ReportingProtocolfrom pipelex.tools.typing.pydantic_utils import BaseModelTypeVardiff --git a/pipelex/plugins/bedrock/bedrock_llms.py b/pipelex/providers/bedrock/bedrock_llms.pysimilarity index 100%rename from pipelex/plugins/bedrock/bedrock_llms.pyrename to pipelex/providers/bedrock/bedrock_llms.pydiff --git a/pipelex/plugins/bedrock/bedrock_message.py b/pipelex/providers/bedrock/bedrock_message.pysimilarity index 100%rename from pipelex/plugins/bedrock/bedrock_message.pyrename to pipelex/providers/bedrock/bedrock_message.pydiff --git a/pipelex/plugins/bedrock/bedrock_plugin.py b/pipelex/providers/bedrock/bedrock_plugin.pysimilarity index 89%rename from pipelex/plugins/bedrock/bedrock_plugin.pyrename to pipelex/providers/bedrock/bedrock_plugin.pyindex 594587943..fddf0fd85 100644--- a/pipelex/plugins/bedrock/bedrock_plugin.py+++ b/pipelex/providers/bedrock/bedrock_plugin.py@@ -20,8 +20,8 @@ def _make_bedrock_worker() -> InferenceWorkerAbstract:require_sdk(spec=["boto3", "aioboto3"], extra="bedrock", msg=_BEDROCK_MISSING_MSG)- from pipelex.plugins.bedrock.bedrock_factory import BedrockFactory # noqa: PLC0415- from pipelex.plugins.bedrock.bedrock_llm_worker import BedrockLLMWorker # noqa: PLC0415+ from pipelex.providers.bedrock.bedrock_factory import BedrockFactory # noqa: PLC0415+ from pipelex.providers.bedrock.bedrock_llm_worker import BedrockLLMWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -44,7 +44,7 @@ async def _list_bedrock_models( # noqa: RUF029flat: bool,any_listed: bool,) -> None:- from pipelex.plugins.bedrock.bedrock_list import list_bedrock_models # noqa: PLC0415+ from pipelex.providers.bedrock.bedrock_list import list_bedrock_models # noqa: PLC0415list_bedrock_models(sdk=sdk, backend_name=backend_name, backend=backend, flat=flat, any_listed=any_listed)diff --git a/pipelex/plugins/docling/__init__.py b/pipelex/providers/blackboxai/__init__.pysimilarity index 100%rename from pipelex/plugins/docling/__init__.pyrename to pipelex/providers/blackboxai/__init__.pydiff --git a/pipelex/plugins/blackboxai/blackboxai_completions_factory.py b/pipelex/providers/blackboxai/blackboxai_completions_factory.pysimilarity index 91%rename from pipelex/plugins/blackboxai/blackboxai_completions_factory.pyrename to pipelex/providers/blackboxai/blackboxai_completions_factory.pyindex 8373f8622..ea716def5 100644--- a/pipelex/plugins/blackboxai/blackboxai_completions_factory.py+++ b/pipelex/providers/blackboxai/blackboxai_completions_factory.py@@ -6,7 +6,7 @@ from typing import TYPE_CHECKING, Anyfrom typing_extensions import overridefrom pipelex.cogt.img_gen.img_gen_job import ImgGenJob-from pipelex.plugins.openai.openai_completions_factory import OpenAICompletionsFactory+from pipelex.providers.openai.openai_completions_factory import OpenAICompletionsFactoryif TYPE_CHECKING:from pipelex.cogt.inference.inference_job_abstract import InferenceJobAbstractdiff --git a/pipelex/plugins/blackboxai/blackboxai_plugin.py b/pipelex/providers/blackboxai/blackboxai_plugin.pysimilarity index 83%rename from pipelex/plugins/blackboxai/blackboxai_plugin.pyrename to pipelex/providers/blackboxai/blackboxai_plugin.pyindex fdd183609..7a54d63de 100644--- a/pipelex/plugins/blackboxai/blackboxai_plugin.py+++ b/pipelex/providers/blackboxai/blackboxai_plugin.py@@ -16,9 +16,9 @@ def _make_blackboxai_img_gen_worker(sdk_clients: SdkClientRegistry,reporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.blackboxai.blackboxai_completions_factory import BlackboxaiCompletionsFactory # noqa: PLC0415- from pipelex.plugins.openai.openai_client_factory import OpenAIClientFactory # noqa: PLC0415- from pipelex.plugins.openai.openai_completions_img_gen_worker import OpenAICompletionsImgGenWorker # noqa: PLC0415+ from pipelex.providers.blackboxai.blackboxai_completions_factory import BlackboxaiCompletionsFactory # noqa: PLC0415+ from pipelex.providers.openai.openai_client_factory import OpenAIClientFactory # noqa: PLC0415+ from pipelex.providers.openai.openai_completions_img_gen_worker import OpenAICompletionsImgGenWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(diff --git a/pipelex/providers/builtins.py b/pipelex/providers/builtins.pynew file mode 100644index 000000000..126e0abb7--- /dev/null+++ b/pipelex/providers/builtins.py@@ -0,0 +1,61 @@+from pipelex.plugins.contract import PipelexPlugin+from pipelex.providers.anthropic.anthropic_plugin import AnthropicPlugin+from pipelex.providers.azure_rest.azure_rest_plugin import AzureRestPlugin+from pipelex.providers.bedrock.bedrock_plugin import BedrockPlugin+from pipelex.providers.blackboxai.blackboxai_plugin import BlackboxaiPlugin+from pipelex.providers.docling.docling_plugin import DoclingPlugin+from pipelex.providers.fal.fal_plugin import FalPlugin+from pipelex.providers.gateway.gateway_plugin import GatewayPlugin+from pipelex.providers.google.google_plugin import GooglePlugin+from pipelex.providers.huggingface.huggingface_plugin import HuggingFacePlugin+from pipelex.providers.linkup.linkup_plugin import LinkupPlugin+from pipelex.providers.mistral.mistral_plugin import MistralPlugin+from pipelex.providers.openai.openai_plugin import OpenAIPlugin+from pipelex.providers.openrouter.openrouter_plugin import OpenRouterPlugin+from pipelex.providers.portkey.portkey_plugin import PortkeyPlugin+from pipelex.providers.pypdfium2.pypdfium2_plugin import Pypdfium2Plugin+from pipelex.providers.secrets.secrets_plugin import SecretsPlugin+from pipelex.providers.storage.storage_plugin import StoragePlugin++# The **runtime-layer** half of the plugins Pipelex ships with: inference backends, extraction and+# search drivers, storage and secrets. Every one of them adapts a runtime-layer port, so this module+# — like the rest of ``pipelex.providers`` — stays importable without loading the method interpreter.+# The interpreter-touching built-ins live in ``pipelex.interpreter_plugins.builtins``, which composes+# both halves into the single ``BUILTIN_PLUGINS`` list the boot entrypoint hands to discovery. See+# ``docs/contribute/hub-layering.md``.+#+# This module is the vendor adapters' aggregate, and it sits with them in ``pipelex.providers`` rather+# than with the plugin mechanism in ``pipelex.plugins``: it names every vendor package, which is+# exactly the dependency direction the two-package split makes visible. The mechanism must not know+# its adapters; the adapters' manifest may.+#+# Each is import-light: importing this module imports no backend SDK (the SDKs load lazily inside the+# make_worker closures).+RUNTIME_BUILTIN_PLUGINS: list[PipelexPlugin] = [+ StoragePlugin(),+ SecretsPlugin(),+ OpenAIPlugin(),+ GatewayPlugin(),+ PortkeyPlugin(),+ AnthropicPlugin(),+ MistralPlugin(),+ BedrockPlugin(),+ GooglePlugin(),+ FalPlugin(),+ HuggingFacePlugin(),+ BlackboxaiPlugin(),+ OpenRouterPlugin(),+ AzureRestPlugin(),+ DoclingPlugin(),+ Pypdfium2Plugin(),+ LinkupPlugin(),+]++# Runtime-layer built-ins that core requires unconditionally — naming one in ``plugins.disabled`` is a+# configuration error, not a no-op. ``storage`` supplies every built-in storage backend+# (``storage_config.method`` must resolve to a registered factory or boot fails loud); ``secrets``+# supplies the built-in ``env`` secrets backend (``secrets_config.method`` must likewise resolve or boot+# fails loud); ``openai`` is the always-on default inference driver (no optional SDK to avoid), so+# disabling it would only break the out-of-the-box experience. The interpreter-layer half of this set+# lives beside its plugins, in ``pipelex.interpreter_plugins.builtins``.+RUNTIME_CORE_UNCONDITIONAL_PLUGIN_NAMES: frozenset[str] = frozenset({"storage", "secrets", "openai"})diff --git a/pipelex/plugins/fal/__init__.py b/pipelex/providers/docling/__init__.pysimilarity index 100%rename from pipelex/plugins/fal/__init__.pyrename to pipelex/providers/docling/__init__.pydiff --git a/pipelex/plugins/docling/docling_extract_worker.py b/pipelex/providers/docling/docling_extract_worker.pysimilarity index 97%rename from pipelex/plugins/docling/docling_extract_worker.pyrename to pipelex/providers/docling/docling_extract_worker.pyindex c152aa8f3..0fae387ef 100644--- a/pipelex/plugins/docling/docling_extract_worker.py+++ b/pipelex/providers/docling/docling_extract_worker.py@@ -18,8 +18,8 @@ from pipelex.cogt.inference.error_classify import classify_inference_errorfrom pipelex.cogt.inference.error_render import InferenceErrorFamily, render_inference_errorfrom pipelex.cogt.inference.provider_name import ProviderNamefrom pipelex.cogt.model_backends.model_spec import InferenceModelSpec-from pipelex.plugins.docling.docling_factory import DoclingFactory-from pipelex.plugins.docling.docling_sdk import DoclingSdk+from pipelex.providers.docling.docling_factory import DoclingFactory+from pipelex.providers.docling.docling_sdk import DoclingSdkfrom pipelex.reporting.reporting_protocol import ReportingProtocolfrom pipelex.tools.uri.prepared_file import PreparedFileBase64, PreparedFileHttpUrl, PreparedFileLocalPathdiff --git a/pipelex/plugins/docling/docling_factory.py b/pipelex/providers/docling/docling_factory.pysimilarity index 96%rename from pipelex/plugins/docling/docling_factory.pyrename to pipelex/providers/docling/docling_factory.pyindex fdfe643bb..de902cd7b 100644--- a/pipelex/plugins/docling/docling_factory.py+++ b/pipelex/providers/docling/docling_factory.py@@ -1,7 +1,7 @@from typing import TYPE_CHECKINGfrom pipelex.cogt.extract.extract_output import ExtractOutput, Page-from pipelex.plugins.docling.docling_sdk import DoclingSdk+from pipelex.providers.docling.docling_sdk import DoclingSdkif TYPE_CHECKING:# Deferred import: avoid pulling heavy SDK at module-load timediff --git a/pipelex/plugins/docling/docling_plugin.py b/pipelex/providers/docling/docling_plugin.pysimilarity index 90%rename from pipelex/plugins/docling/docling_plugin.pyrename to pipelex/providers/docling/docling_plugin.pyindex 81a7dad0b..891e5ee04 100644--- a/pipelex/plugins/docling/docling_plugin.py+++ b/pipelex/providers/docling/docling_plugin.py@@ -20,8 +20,8 @@ def _make_docling_extract_worker() -> InferenceWorkerAbstract:require_sdk(spec="docling", extra="docling", msg=_DOCLING_MISSING_MSG)- from pipelex.plugins.docling.docling_extract_worker import DoclingExtractWorker # noqa: PLC0415- from pipelex.plugins.docling.docling_factory import DoclingFactory # noqa: PLC0415+ from pipelex.providers.docling.docling_extract_worker import DoclingExtractWorker # noqa: PLC0415+ from pipelex.providers.docling.docling_factory import DoclingFactory # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(diff --git a/pipelex/plugins/docling/docling_sdk.py b/pipelex/providers/docling/docling_sdk.pysimilarity index 100%rename from pipelex/plugins/docling/docling_sdk.pyrename to pipelex/providers/docling/docling_sdk.pydiff --git a/pipelex/plugins/mistral/__init__.py b/pipelex/providers/fal/__init__.pysimilarity index 100%rename from pipelex/plugins/mistral/__init__.pyrename to pipelex/providers/fal/__init__.pydiff --git a/pipelex/plugins/fal/fal_factory.py b/pipelex/providers/fal/fal_factory.pysimilarity index 100%rename from pipelex/plugins/fal/fal_factory.pyrename to pipelex/providers/fal/fal_factory.pydiff --git a/pipelex/plugins/fal/fal_img_gen_worker.py b/pipelex/providers/fal/fal_img_gen_worker.pysimilarity index 98%rename from pipelex/plugins/fal/fal_img_gen_worker.pyrename to pipelex/providers/fal/fal_img_gen_worker.pyindex 9f0e687c8..5103a0e87 100644--- a/pipelex/plugins/fal/fal_img_gen_worker.py+++ b/pipelex/providers/fal/fal_img_gen_worker.py@@ -15,7 +15,7 @@ from pipelex.cogt.inference.error_classification import extract_fal_metadatafrom pipelex.cogt.inference.error_classify import classify_inference_errorfrom pipelex.cogt.inference.error_render import InferenceErrorFamily, render_inference_errorfrom pipelex.cogt.model_backends.model_spec import InferenceModelSpec-from pipelex.plugins.fal.fal_factory import FalFactory+from pipelex.providers.fal.fal_factory import FalFactoryfrom pipelex.reporting.reporting_protocol import ReportingProtocoldiff --git a/pipelex/plugins/fal/fal_plugin.py b/pipelex/providers/fal/fal_plugin.pysimilarity index 95%rename from pipelex/plugins/fal/fal_plugin.pyrename to pipelex/providers/fal/fal_plugin.pyindex dcfcc0f9c..b20522505 100644--- a/pipelex/plugins/fal/fal_plugin.py+++ b/pipelex/providers/fal/fal_plugin.py@@ -22,7 +22,7 @@ def _make_fal_img_gen_worker(from fal_client import AsyncClient as FalAsyncClient # noqa: PLC0415- from pipelex.plugins.fal.fal_img_gen_worker import FalImgGenWorker # noqa: PLC0415+ from pipelex.providers.fal.fal_img_gen_worker import FalImgGenWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(diff --git a/pipelex/plugins/fal/fal_poller.py b/pipelex/providers/fal/fal_poller.pysimilarity index 100%rename from pipelex/plugins/fal/fal_poller.pyrename to pipelex/providers/fal/fal_poller.pydiff --git a/pipelex/plugins/huggingface/__init__.py b/pipelex/providers/gateway/__init__.pysimilarity index 100%rename from pipelex/plugins/huggingface/__init__.pyrename to pipelex/providers/gateway/__init__.pydiff --git a/pipelex/plugins/gateway/gateway_completions_factory.py b/pipelex/providers/gateway/gateway_completions_factory.pysimilarity index 96%rename from pipelex/plugins/gateway/gateway_completions_factory.pyrename to pipelex/providers/gateway/gateway_completions_factory.pyindex 4c1653582..430a1a9ad 100644--- a/pipelex/plugins/gateway/gateway_completions_factory.py+++ b/pipelex/providers/gateway/gateway_completions_factory.py@@ -16,13 +16,13 @@ from pipelex.cogt.extract.extract_output import ExtractedImageFromPage, ExtractOfrom pipelex.cogt.image.prompt_image import PromptImageDetailfrom pipelex.cogt.image.prompt_image_utils import prep_prompt_imagesfrom pipelex.config import get_config-from pipelex.plugins.gateway.gateway_constants import GatewayOpenAISdkVariant-from pipelex.plugins.gateway.gateway_exceptions import GatewayExtractResponseError, GatewayFactoryError-from pipelex.plugins.gateway.gateway_factory import GatewayFactory-from pipelex.plugins.gateway.gateway_protocols import GatewayExtractProtocol-from pipelex.plugins.gateway.gateway_schemas import GatewayExtractPageAzure, GatewayExtractPageDeepseek, GatewayExtractPageMistral-from pipelex.plugins.gateway.gateway_search_schemas import GatewayFetchResultResponse-from pipelex.plugins.openai.openai_completions_factory import OpenAICompletionsFactory+from pipelex.providers.gateway.gateway_constants import GatewayOpenAISdkVariant+from pipelex.providers.gateway.gateway_exceptions import GatewayExtractResponseError, GatewayFactoryError+from pipelex.providers.gateway.gateway_factory import GatewayFactory+from pipelex.providers.gateway.gateway_protocols import GatewayExtractProtocol+from pipelex.providers.gateway.gateway_schemas import GatewayExtractPageAzure, GatewayExtractPageDeepseek, GatewayExtractPageMistral+from pipelex.providers.gateway.gateway_search_schemas import GatewayFetchResultResponse+from pipelex.providers.openai.openai_completions_factory import OpenAICompletionsFactoryfrom pipelex.tools.uri.prepared_file import PreparedFileBase64, PreparedFileHttpUrl, PreparedFileLocalPathif TYPE_CHECKING:diff --git a/pipelex/plugins/gateway/gateway_constants.py b/pipelex/providers/gateway/gateway_constants.pysimilarity index 100%rename from pipelex/plugins/gateway/gateway_constants.pyrename to pipelex/providers/gateway/gateway_constants.pydiff --git a/pipelex/plugins/gateway/gateway_deck.py b/pipelex/providers/gateway/gateway_deck.pysimilarity index 83%rename from pipelex/plugins/gateway/gateway_deck.pyrename to pipelex/providers/gateway/gateway_deck.pyindex d2e7545da..8a3200a4a 100644--- a/pipelex/plugins/gateway/gateway_deck.py+++ b/pipelex/providers/gateway/gateway_deck.py@@ -1,7 +1,7 @@from pipelex import logfrom pipelex.config import get_config-from pipelex.plugins.gateway.gateway_exceptions import GatewayDeckError-from pipelex.plugins.portkey.portkey_constants import PortkeyHeaderKey+from pipelex.providers.gateway.gateway_exceptions import GatewayDeckError+from pipelex.providers.portkey.portkey_constants import PortkeyHeaderKeyclass GatewayDeck:diff --git a/pipelex/plugins/gateway/gateway_exceptions.py b/pipelex/providers/gateway/gateway_exceptions.pysimilarity index 100%rename from pipelex/plugins/gateway/gateway_exceptions.pyrename to pipelex/providers/gateway/gateway_exceptions.pydiff --git a/pipelex/plugins/gateway/gateway_extract_worker.py b/pipelex/providers/gateway/gateway_extract_worker.pysimilarity index 96%rename from pipelex/plugins/gateway/gateway_extract_worker.pyrename to pipelex/providers/gateway/gateway_extract_worker.pyindex f9ac9bec8..32594ee61 100644--- a/pipelex/plugins/gateway/gateway_extract_worker.py+++ b/pipelex/providers/gateway/gateway_extract_worker.py@@ -18,11 +18,11 @@ from pipelex.cogt.inference.error_render import InferenceErrorFamily, render_inffrom pipelex.cogt.inference.inference_constants import InferenceOutputTypefrom pipelex.cogt.model_backends.model_spec import InferenceModelSpecfrom pipelex.cogt.usage.token_category import TokenCategory-from pipelex.plugins.gateway.gateway_completions_factory import GatewayCompletionsFactory-from pipelex.plugins.gateway.gateway_deck import GatewayDeck-from pipelex.plugins.gateway.gateway_factory import GatewayFactory-from pipelex.plugins.gateway.gateway_protocols import GatewayExtractProtocol-from pipelex.plugins.gateway.gateway_search_schemas import GatewayFetchRequestParams+from pipelex.providers.gateway.gateway_completions_factory import GatewayCompletionsFactory+from pipelex.providers.gateway.gateway_deck import GatewayDeck+from pipelex.providers.gateway.gateway_factory import GatewayFactory+from pipelex.providers.gateway.gateway_protocols import GatewayExtractProtocol+from pipelex.providers.gateway.gateway_search_schemas import GatewayFetchRequestParamsfrom pipelex.reporting.reporting_protocol import ReportingProtocolfrom pipelex.runtime_hub import get_storage_providerfrom pipelex.tools.uri.uri_resolver import make_base64_url_from_any_uridiff --git a/pipelex/plugins/gateway/gateway_factory.py b/pipelex/providers/gateway/gateway_factory.pysimilarity index 91%rename from pipelex/plugins/gateway/gateway_factory.pyrename to pipelex/providers/gateway/gateway_factory.pyindex 383959eda..92c9be398 100644--- a/pipelex/plugins/gateway/gateway_factory.py+++ b/pipelex/providers/gateway/gateway_factory.py@@ -10,14 +10,14 @@ from portkey_ai import (from pipelex import logfrom pipelex.cogt.extract.extract_job import ExtractJob+from pipelex.cogt.img_gen.img_gen_gemini_mapping import ImgGenGeminiMappingfrom pipelex.cogt.img_gen.img_gen_job import ImgGenJobfrom pipelex.cogt.inference.inference_constants import InferenceOutputTypefrom pipelex.cogt.llm.llm_job import LLMJob-from pipelex.plugins.gateway.gateway_exceptions import GatewayCredentialsError-from pipelex.plugins.gateway.gateway_protocols import GatewayExtractProtocol-from pipelex.plugins.gateway.gateway_schemas import GatewayExtractRequestParams-from pipelex.plugins.google.google_img_gen_factory import GoogleImgGenFactory-from pipelex.plugins.portkey.portkey_constants import PortkeyHeaderKey+from pipelex.providers.gateway.gateway_exceptions import GatewayCredentialsError+from pipelex.providers.gateway.gateway_protocols import GatewayExtractProtocol+from pipelex.providers.gateway.gateway_schemas import GatewayExtractRequestParams+from pipelex.providers.portkey.portkey_constants import PortkeyHeaderKeyfrom pipelex.runtime_hub import get_telemetry_managerfrom pipelex.system.telemetry.otel_constants import OTelConstants@@ -74,12 +74,12 @@ class GatewayFactory:ratio-only mapping."""if job_params.size is None:- taxonomy = GoogleImgGenFactory.optional_img_gen_taxonomy(inference_model)+ taxonomy = ImgGenGeminiMapping.optional_img_gen_taxonomy(inference_model)if taxonomy is None:- return {"aspect_ratio": GoogleImgGenFactory.aspect_ratio_literal(job_params.aspect_ratio)}+ return {"aspect_ratio": ImgGenGeminiMapping.aspect_ratio_literal(job_params.aspect_ratio)}else:- taxonomy = GoogleImgGenFactory.img_gen_taxonomy(inference_model)- resolved = GoogleImgGenFactory.resolve_image_config(+ taxonomy = ImgGenGeminiMapping.img_gen_taxonomy(inference_model)+ resolved = ImgGenGeminiMapping.resolve_image_config(taxonomy,aspect_ratio=job_params.aspect_ratio,size=job_params.size,diff --git a/pipelex/plugins/gateway/gateway_img_gen_worker.py b/pipelex/providers/gateway/gateway_img_gen_worker.pysimilarity index 98%rename from pipelex/plugins/gateway/gateway_img_gen_worker.pyrename to pipelex/providers/gateway/gateway_img_gen_worker.pyindex d5889ed87..c9cfcd80e 100644--- a/pipelex/plugins/gateway/gateway_img_gen_worker.py+++ b/pipelex/providers/gateway/gateway_img_gen_worker.py@@ -27,10 +27,10 @@ from pipelex.cogt.inference.error_classification import UserAction, UserActionKifrom pipelex.cogt.inference.error_classify import classify_inference_errorfrom pipelex.cogt.inference.error_render import InferenceErrorFamily, render_inference_errorfrom pipelex.cogt.usage.token_category import NbTokensByCategoryDict, TokenCategory-from pipelex.plugins.fal.fal_poller import FalPoller-from pipelex.plugins.gateway.gateway_deck import GatewayDeck-from pipelex.plugins.gateway.gateway_schemas import GatewayImgGenAzureFlux2Pro, GatewayImgGenAzureGptImage-from pipelex.plugins.portkey.portkey_constants import PortkeyHeaderKey+from pipelex.providers.fal.fal_poller import FalPoller+from pipelex.providers.gateway.gateway_deck import GatewayDeck+from pipelex.providers.gateway.gateway_schemas import GatewayImgGenAzureFlux2Pro, GatewayImgGenAzureGptImage+from pipelex.providers.portkey.portkey_constants import PortkeyHeaderKeyfrom pipelex.tools.misc.exceptions import FileTypeErrorfrom pipelex.tools.misc.filetype_utils import detect_file_type_from_bytesfrom pipelex.tools.misc.image_utils import ImageFormatdiff --git a/pipelex/plugins/gateway/gateway_plugin.py b/pipelex/providers/gateway/gateway_plugin.pysimilarity index 82%rename from pipelex/plugins/gateway/gateway_plugin.pyrename to pipelex/providers/gateway/gateway_plugin.pyindex d5e9c724f..4c87514ff 100644--- a/pipelex/plugins/gateway/gateway_plugin.py+++ b/pipelex/providers/gateway/gateway_plugin.py@@ -16,8 +16,8 @@ def _make_gateway_completions_worker(sdk_clients: SdkClientRegistry,reporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.gateway.gateway_completions_factory import GatewayCompletionsFactory # noqa: PLC0415- from pipelex.plugins.openai.openai_completions_llm_worker import OpenAICompletionsLLMWorker # noqa: PLC0415+ from pipelex.providers.gateway.gateway_completions_factory import GatewayCompletionsFactory # noqa: PLC0415+ from pipelex.providers.openai.openai_completions_llm_worker import OpenAICompletionsLLMWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -39,8 +39,8 @@ def _make_gateway_responses_worker(sdk_clients: SdkClientRegistry,reporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.gateway.gateway_responses_factory import GatewayResponsesFactory # noqa: PLC0415- from pipelex.plugins.openai.openai_responses_llm_worker import OpenAIResponsesLLMWorker # noqa: PLC0415+ from pipelex.providers.gateway.gateway_responses_factory import GatewayResponsesFactory # noqa: PLC0415+ from pipelex.providers.openai.openai_responses_llm_worker import OpenAIResponsesLLMWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -62,8 +62,8 @@ def _make_gateway_img_gen_worker(sdk_clients: SdkClientRegistry,reporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.gateway.gateway_factory import GatewayFactory # noqa: PLC0415- from pipelex.plugins.gateway.gateway_img_gen_worker import GatewayImgGenWorker # noqa: PLC0415+ from pipelex.providers.gateway.gateway_factory import GatewayFactory # noqa: PLC0415+ from pipelex.providers.gateway.gateway_img_gen_worker import GatewayImgGenWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -84,8 +84,8 @@ def _make_gateway_completions_img_gen_worker(sdk_clients: SdkClientRegistry,reporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.gateway.gateway_completions_factory import GatewayCompletionsFactory # noqa: PLC0415- from pipelex.plugins.openai.openai_completions_img_gen_worker import OpenAICompletionsImgGenWorker # noqa: PLC0415+ from pipelex.providers.gateway.gateway_completions_factory import GatewayCompletionsFactory # noqa: PLC0415+ from pipelex.providers.openai.openai_completions_img_gen_worker import OpenAICompletionsImgGenWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -107,8 +107,8 @@ def _make_gateway_extract_worker(sdk_clients: SdkClientRegistry,reporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.gateway.gateway_extract_worker import GatewayExtractWorker # noqa: PLC0415- from pipelex.plugins.gateway.gateway_factory import GatewayFactory # noqa: PLC0415+ from pipelex.providers.gateway.gateway_extract_worker import GatewayExtractWorker # noqa: PLC0415+ from pipelex.providers.gateway.gateway_factory import GatewayFactory # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -130,8 +130,8 @@ def _make_gateway_search_worker(sdk_clients: SdkClientRegistry,reporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.gateway.gateway_factory import GatewayFactory # noqa: PLC0415- from pipelex.plugins.gateway.gateway_search_worker import GatewaySearchWorker # noqa: PLC0415+ from pipelex.providers.gateway.gateway_factory import GatewayFactory # noqa: PLC0415+ from pipelex.providers.gateway.gateway_search_worker import GatewaySearchWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(diff --git a/pipelex/plugins/gateway/gateway_protocols.py b/pipelex/providers/gateway/gateway_protocols.pysimilarity index 100%rename from pipelex/plugins/gateway/gateway_protocols.pyrename to pipelex/providers/gateway/gateway_protocols.pydiff --git a/pipelex/plugins/gateway/gateway_responses_factory.py b/pipelex/providers/gateway/gateway_responses_factory.pysimilarity index 88%rename from pipelex/plugins/gateway/gateway_responses_factory.pyrename to pipelex/providers/gateway/gateway_responses_factory.pyindex 1fa9f04ee..95366132d 100644--- a/pipelex/plugins/gateway/gateway_responses_factory.py+++ b/pipelex/providers/gateway/gateway_responses_factory.py@@ -9,10 +9,10 @@ from portkey_ai import (from typing_extensions import overridefrom pipelex.config import get_config-from pipelex.plugins.gateway.gateway_constants import GatewayOpenAISdkVariant-from pipelex.plugins.gateway.gateway_exceptions import GatewayFactoryError-from pipelex.plugins.gateway.gateway_factory import GatewayFactory-from pipelex.plugins.openai.openai_responses_factory import OpenAIResponsesFactory+from pipelex.providers.gateway.gateway_constants import GatewayOpenAISdkVariant+from pipelex.providers.gateway.gateway_exceptions import GatewayFactoryError+from pipelex.providers.gateway.gateway_factory import GatewayFactory+from pipelex.providers.openai.openai_responses_factory import OpenAIResponsesFactoryif TYPE_CHECKING:from pipelex.cogt.inference.inference_job_abstract import InferenceJobAbstractdiff --git a/pipelex/plugins/gateway/gateway_schemas.py b/pipelex/providers/gateway/gateway_schemas.pysimilarity index 100%rename from pipelex/plugins/gateway/gateway_schemas.pyrename to pipelex/providers/gateway/gateway_schemas.pydiff --git a/pipelex/plugins/gateway/gateway_search_schemas.py b/pipelex/providers/gateway/gateway_search_schemas.pysimilarity index 100%rename from pipelex/plugins/gateway/gateway_search_schemas.pyrename to pipelex/providers/gateway/gateway_search_schemas.pydiff --git a/pipelex/plugins/gateway/gateway_search_worker.py b/pipelex/providers/gateway/gateway_search_worker.pysimilarity index 97%rename from pipelex/plugins/gateway/gateway_search_worker.pyrename to pipelex/providers/gateway/gateway_search_worker.pyindex ab720f36b..2d9fb0ebd 100644--- a/pipelex/plugins/gateway/gateway_search_worker.py+++ b/pipelex/providers/gateway/gateway_search_worker.py@@ -18,9 +18,9 @@ from pipelex.cogt.search.search_worker_abstract import SearchWorkerAbstractfrom pipelex.cogt.usage.token_category import NbTokensByCategoryDict, TokenCategoryfrom pipelex.core.stuffs.document_content import DocumentContentfrom pipelex.core.stuffs.search_result_content import SearchResultContent-from pipelex.plugins.gateway.gateway_deck import GatewayDeck-from pipelex.plugins.gateway.gateway_exceptions import GatewaySearchResponseError-from pipelex.plugins.gateway.gateway_search_schemas import GatewaySearchRequestParams+from pipelex.providers.gateway.gateway_deck import GatewayDeck+from pipelex.providers.gateway.gateway_exceptions import GatewaySearchResponseError+from pipelex.providers.gateway.gateway_search_schemas import GatewaySearchRequestParamsfrom pipelex.reporting.reporting_protocol import ReportingProtocolfrom pipelex.tools.typing.pydantic_utils import BaseModelTypeVardiff --git a/pipelex/plugins/linkup/__init__.py b/pipelex/providers/google/__init__.pysimilarity index 100%rename from pipelex/plugins/linkup/__init__.pyrename to pipelex/providers/google/__init__.pydiff --git a/pipelex/plugins/google/google_config.py b/pipelex/providers/google/google_config.pysimilarity index 100%rename from pipelex/plugins/google/google_config.pyrename to pipelex/providers/google/google_config.pydiff --git a/pipelex/plugins/google/google_exceptions.py b/pipelex/providers/google/google_exceptions.pysimilarity index 100%rename from pipelex/plugins/google/google_exceptions.pyrename to pipelex/providers/google/google_exceptions.pydiff --git a/pipelex/plugins/google/google_factory.py b/pipelex/providers/google/google_factory.pysimilarity index 100%rename from pipelex/plugins/google/google_factory.pyrename to pipelex/providers/google/google_factory.pydiff --git a/pipelex/plugins/google/google_img_gen_worker.py b/pipelex/providers/google/google_img_gen_worker.pysimilarity index 97%rename from pipelex/plugins/google/google_img_gen_worker.pyrename to pipelex/providers/google/google_img_gen_worker.pyindex 37cb02e98..ea1582c81 100644--- a/pipelex/plugins/google/google_img_gen_worker.py+++ b/pipelex/providers/google/google_img_gen_worker.py@@ -11,14 +11,14 @@ from pipelex import logfrom pipelex.cogt.exceptions import ImgGenGenerationError, InferenceErrorCategory, SdkTypeErrorfrom pipelex.cogt.image.generated_image import GeneratedImageRawDetailsfrom pipelex.cogt.image.image_size import ImageSize+from pipelex.cogt.img_gen.img_gen_gemini_mapping import ImgGenGeminiMappingfrom pipelex.cogt.img_gen.img_gen_job import ImgGenJobfrom pipelex.cogt.img_gen.img_gen_worker_abstract import ImgGenWorkerAbstractfrom pipelex.cogt.inference.error_classification import UserAction, UserActionKind, extract_google_metadatafrom pipelex.cogt.inference.error_classify import classify_inference_errorfrom pipelex.cogt.inference.error_render import InferenceErrorFamily, render_inference_errorfrom pipelex.cogt.model_backends.model_spec import InferenceModelSpec-from pipelex.plugins.google.google_factory import GoogleFactory-from pipelex.plugins.google.google_img_gen_factory import GoogleImgGenFactory+from pipelex.providers.google.google_factory import GoogleFactoryfrom pipelex.reporting.reporting_protocol import ReportingProtocol@@ -88,8 +88,8 @@ class GoogleImgGenWorker(ImgGenWorkerAbstract):) -> GeneratedImageRawDetails:"""Generate a single image using Google Gemini Image API."""prompt_text = img_gen_job.img_gen_prompt.positive_text- resolved = GoogleImgGenFactory.resolve_image_config(- GoogleImgGenFactory.img_gen_taxonomy(self.inference_model),+ resolved = ImgGenGeminiMapping.resolve_image_config(+ ImgGenGeminiMapping.img_gen_taxonomy(self.inference_model),aspect_ratio=img_gen_job.job_params.aspect_ratio,size=img_gen_job.job_params.size,model_name=self.inference_model.name,diff --git a/pipelex/plugins/google/google_list.py b/pipelex/providers/google/google_list.pysimilarity index 97%rename from pipelex/plugins/google/google_list.pyrename to pipelex/providers/google/google_list.pyindex 8843e8ef6..d11e8f24f 100644--- a/pipelex/plugins/google/google_list.py+++ b/pipelex/providers/google/google_list.py@@ -32,7 +32,7 @@ async def list_google_models(msg,)- from pipelex.plugins.google.google_factory import GoogleFactory # noqa: PLC0415+ from pipelex.providers.google.google_factory import GoogleFactory # noqa: PLC0415client = GoogleFactory.make_google_client(backend)google_models: list[Any] = []diff --git a/pipelex/plugins/google/google_llm_worker.py b/pipelex/providers/google/google_llm_worker.pysimilarity index 99%rename from pipelex/plugins/google/google_llm_worker.pyrename to pipelex/providers/google/google_llm_worker.pyindex 6032f6501..59445c550 100644--- a/pipelex/plugins/google/google_llm_worker.py+++ b/pipelex/providers/google/google_llm_worker.py@@ -26,8 +26,8 @@ from pipelex.cogt.llm.thinking_mode import ThinkingModefrom pipelex.cogt.model_backends.model_spec import InferenceModelSpecfrom pipelex.cogt.usage.token_category import NbTokensByCategoryDict, TokenCategoryfrom pipelex.config import get_config-from pipelex.plugins.google.google_exceptions import GoogleLLMWorkerError-from pipelex.plugins.google.google_factory import GoogleFactory+from pipelex.providers.google.google_exceptions import GoogleLLMWorkerError+from pipelex.providers.google.google_factory import GoogleFactoryfrom pipelex.reporting.reporting_protocol import ReportingProtocolfrom pipelex.tools.typing.pydantic_utils import BaseModelTypeVardiff --git a/pipelex/plugins/google/google_plugin.py b/pipelex/providers/google/google_plugin.pysimilarity index 87%rename from pipelex/plugins/google/google_plugin.pyrename to pipelex/providers/google/google_plugin.pyindex c30e834f1..78d020e67 100644--- a/pipelex/plugins/google/google_plugin.py+++ b/pipelex/providers/google/google_plugin.py@@ -21,8 +21,8 @@ def _make_google_worker() -> InferenceWorkerAbstract:require_sdk(spec="google.genai", dependency_name="google-genai", extra="google", msg=_GOOGLE_MISSING_MSG)- from pipelex.plugins.google.google_factory import GoogleFactory # noqa: PLC0415- from pipelex.plugins.google.google_llm_worker import GoogleLLMWorker # noqa: PLC0415+ from pipelex.providers.google.google_factory import GoogleFactory # noqa: PLC0415+ from pipelex.providers.google.google_llm_worker import GoogleLLMWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -45,8 +45,8 @@ def _make_google_img_gen_worker() -> InferenceWorkerAbstract:require_sdk(spec="google.genai", dependency_name="google-genai", extra="google", msg=_GOOGLE_IMG_GEN_MISSING_MSG)- from pipelex.plugins.google.google_factory import GoogleFactory # noqa: PLC0415- from pipelex.plugins.google.google_img_gen_worker import GoogleImgGenWorker # noqa: PLC0415+ from pipelex.providers.google.google_factory import GoogleFactory # noqa: PLC0415+ from pipelex.providers.google.google_img_gen_worker import GoogleImgGenWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -68,7 +68,7 @@ async def _list_google_models(flat: bool,any_listed: bool,) -> None:- from pipelex.plugins.google.google_list import list_google_models # noqa: PLC0415+ from pipelex.providers.google.google_list import list_google_models # noqa: PLC0415await list_google_models(sdk=sdk, backend_name=backend_name, backend=backend, flat=flat, any_listed=any_listed)diff --git a/pipelex/plugins/pipe_func/__init__.py b/pipelex/providers/huggingface/__init__.pysimilarity index 100%rename from pipelex/plugins/pipe_func/__init__.pyrename to pipelex/providers/huggingface/__init__.pydiff --git a/pipelex/plugins/huggingface/huggingface_factory.py b/pipelex/providers/huggingface/huggingface_factory.pysimilarity index 100%rename from pipelex/plugins/huggingface/huggingface_factory.pyrename to pipelex/providers/huggingface/huggingface_factory.pydiff --git a/pipelex/plugins/huggingface/huggingface_img_gen_worker.py b/pipelex/providers/huggingface/huggingface_img_gen_worker.pysimilarity index 100%rename from pipelex/plugins/huggingface/huggingface_img_gen_worker.pyrename to pipelex/providers/huggingface/huggingface_img_gen_worker.pydiff --git a/pipelex/plugins/huggingface/huggingface_plugin.py b/pipelex/providers/huggingface/huggingface_plugin.pysimilarity index 91%rename from pipelex/plugins/huggingface/huggingface_plugin.pyrename to pipelex/providers/huggingface/huggingface_plugin.pyindex acb136133..6b5029867 100644--- a/pipelex/plugins/huggingface/huggingface_plugin.py+++ b/pipelex/providers/huggingface/huggingface_plugin.py@@ -27,8 +27,8 @@ def _make_huggingface_img_gen_worker(from huggingface_hub import AsyncInferenceClient # noqa: PLC0415- from pipelex.plugins.huggingface.huggingface_factory import HuggingFaceFactory # noqa: PLC0415- from pipelex.plugins.huggingface.huggingface_img_gen_worker import HuggingFaceImgGenWorker # noqa: PLC0415+ from pipelex.providers.huggingface.huggingface_factory import HuggingFaceFactory # noqa: PLC0415+ from pipelex.providers.huggingface.huggingface_img_gen_worker import HuggingFaceImgGenWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)provider_literal: PROVIDER_OR_POLICY_Tdiff --git a/pipelex/plugins/portkey/__init__.py b/pipelex/providers/linkup/__init__.pysimilarity index 100%rename from pipelex/plugins/portkey/__init__.pyrename to pipelex/providers/linkup/__init__.pydiff --git a/pipelex/plugins/linkup/linkup_extract_worker.py b/pipelex/providers/linkup/linkup_extract_worker.pysimilarity index 100%rename from pipelex/plugins/linkup/linkup_extract_worker.pyrename to pipelex/providers/linkup/linkup_extract_worker.pydiff --git a/pipelex/plugins/linkup/linkup_plugin.py b/pipelex/providers/linkup/linkup_plugin.pysimilarity index 92%rename from pipelex/plugins/linkup/linkup_plugin.pyrename to pipelex/providers/linkup/linkup_plugin.pyindex 5af3427ca..01e49623d 100644--- a/pipelex/plugins/linkup/linkup_plugin.py+++ b/pipelex/providers/linkup/linkup_plugin.py@@ -20,7 +20,7 @@ def _make_linkup_extract_worker() -> InferenceWorkerAbstract:require_sdk(spec="linkup", extra="linkup", msg=_LINKUP_MISSING_MSG)- from pipelex.plugins.linkup.linkup_extract_worker import LinkupExtractWorker # noqa: PLC0415+ from pipelex.providers.linkup.linkup_extract_worker import LinkupExtractWorker # noqa: PLC0415return LinkupExtractWorker(extra_config=backend.extra_config,@@ -38,7 +38,7 @@ def _make_linkup_search_worker() -> InferenceWorkerAbstract:require_sdk(spec="linkup", extra="linkup", msg=_LINKUP_SEARCH_MISSING_MSG)- from pipelex.plugins.linkup.linkup_search_worker import LinkupSearchWorker # noqa: PLC0415+ from pipelex.providers.linkup.linkup_search_worker import LinkupSearchWorker # noqa: PLC0415return LinkupSearchWorker(inference_model=inference_model,diff --git a/pipelex/plugins/linkup/linkup_search_worker.py b/pipelex/providers/linkup/linkup_search_worker.pysimilarity index 100%rename from pipelex/plugins/linkup/linkup_search_worker.pyrename to pipelex/providers/linkup/linkup_search_worker.pydiff --git a/pipelex/plugins/openai/__init__.py b/pipelex/providers/mistral/__init__.pysimilarity index 100%rename from pipelex/plugins/openai/__init__.pyrename to pipelex/providers/mistral/__init__.pydiff --git a/pipelex/plugins/mistral/mistral_config.py b/pipelex/providers/mistral/mistral_config.pysimilarity index 100%rename from pipelex/plugins/mistral/mistral_config.pyrename to pipelex/providers/mistral/mistral_config.pydiff --git a/pipelex/plugins/mistral/mistral_exceptions.py b/pipelex/providers/mistral/mistral_exceptions.pysimilarity index 100%rename from pipelex/plugins/mistral/mistral_exceptions.pyrename to pipelex/providers/mistral/mistral_exceptions.pydiff --git a/pipelex/plugins/mistral/mistral_extract_worker.py b/pipelex/providers/mistral/mistral_extract_worker.pysimilarity index 98%rename from pipelex/plugins/mistral/mistral_extract_worker.pyrename to pipelex/providers/mistral/mistral_extract_worker.pyindex 6effa0e14..aa6f5cc24 100644--- a/pipelex/plugins/mistral/mistral_extract_worker.py+++ b/pipelex/providers/mistral/mistral_extract_worker.py@@ -14,7 +14,7 @@ from pipelex.cogt.inference.error_classification import extract_mistral_metadatafrom pipelex.cogt.inference.error_classify import classify_inference_errorfrom pipelex.cogt.inference.error_render import InferenceErrorFamily, render_inference_errorfrom pipelex.cogt.model_backends.model_spec import InferenceModelSpec-from pipelex.plugins.mistral.mistral_factory import MistralFactory+from pipelex.providers.mistral.mistral_factory import MistralFactoryfrom pipelex.reporting.reporting_protocol import ReportingProtocoldiff --git a/pipelex/plugins/mistral/mistral_factory.py b/pipelex/providers/mistral/mistral_factory.pysimilarity index 99%rename from pipelex/plugins/mistral/mistral_factory.pyrename to pipelex/providers/mistral/mistral_factory.pyindex 0d40b7e24..f5b15893e 100644--- a/pipelex/plugins/mistral/mistral_factory.py+++ b/pipelex/providers/mistral/mistral_factory.py@@ -37,7 +37,7 @@ from pipelex.cogt.llm.llm_job import LLMJobfrom pipelex.cogt.model_backends.backend import InferenceBackendfrom pipelex.cogt.usage.token_category import NbTokensByCategoryDict, TokenCategoryfrom pipelex.config import get_config-from pipelex.plugins.mistral.mistral_exceptions import MistralExtractResponseError+from pipelex.providers.mistral.mistral_exceptions import MistralExtractResponseErrorfrom pipelex.tools.uri.prepared_file import PreparedFileBase64, PreparedFileHttpUrl, PreparedFileLocalPathdiff --git a/pipelex/plugins/mistral/mistral_list.py b/pipelex/providers/mistral/mistral_list.pysimilarity index 96%rename from pipelex/plugins/mistral/mistral_list.pyrename to pipelex/providers/mistral/mistral_list.pyindex 921bedc0b..3b1014605 100644--- a/pipelex/plugins/mistral/mistral_list.py+++ b/pipelex/providers/mistral/mistral_list.py@@ -32,7 +32,7 @@ def list_mistral_models(msg,)- from pipelex.plugins.mistral.mistral_llms import mistral_list_available_models # noqa: PLC0415+ from pipelex.providers.mistral.mistral_llms import mistral_list_available_models # noqa: PLC0415mistral_models = mistral_list_available_models()diff --git a/pipelex/plugins/mistral/mistral_llm_worker.py b/pipelex/providers/mistral/mistral_llm_worker.pysimilarity index 98%rename from pipelex/plugins/mistral/mistral_llm_worker.pyrename to pipelex/providers/mistral/mistral_llm_worker.pyindex 3105037e6..335bd20ec 100644--- a/pipelex/plugins/mistral/mistral_llm_worker.py+++ b/pipelex/providers/mistral/mistral_llm_worker.py@@ -23,8 +23,8 @@ from pipelex.cogt.llm.llm_worker_abstract import LLMWorkerAbstractfrom pipelex.cogt.llm.thinking_mode import ThinkingModefrom pipelex.cogt.model_backends.model_spec import InferenceModelSpecfrom pipelex.config import get_config-from pipelex.plugins.mistral.mistral_exceptions import MistralWorkerConfigurationError-from pipelex.plugins.mistral.mistral_factory import MistralFactory+from pipelex.providers.mistral.mistral_exceptions import MistralWorkerConfigurationError+from pipelex.providers.mistral.mistral_factory import MistralFactoryfrom pipelex.reporting.reporting_protocol import ReportingProtocolfrom pipelex.tools.typing.pydantic_utils import BaseModelTypeVardiff --git a/pipelex/plugins/mistral/mistral_llms.py b/pipelex/providers/mistral/mistral_llms.pysimilarity index 81%rename from pipelex/plugins/mistral/mistral_llms.pyrename to pipelex/providers/mistral/mistral_llms.pyindex f606f6778..d0e582354 100644--- a/pipelex/plugins/mistral/mistral_llms.py+++ b/pipelex/providers/mistral/mistral_llms.py@@ -1,7 +1,7 @@from mistralai.models import Data-from pipelex.plugins.mistral.mistral_exceptions import MistralModelListingError-from pipelex.plugins.mistral.mistral_factory import MistralFactory+from pipelex.providers.mistral.mistral_exceptions import MistralModelListingError+from pipelex.providers.mistral.mistral_factory import MistralFactoryfrom pipelex.runtime_hub import get_models_managerdiff --git a/pipelex/plugins/mistral/mistral_plugin.py b/pipelex/providers/mistral/mistral_plugin.pysimilarity index 88%rename from pipelex/plugins/mistral/mistral_plugin.pyrename to pipelex/providers/mistral/mistral_plugin.pyindex 79ad433c0..1ae9ef7b8 100644--- a/pipelex/plugins/mistral/mistral_plugin.py+++ b/pipelex/providers/mistral/mistral_plugin.py@@ -25,8 +25,8 @@ def _make_mistral_worker() -> InferenceWorkerAbstract:require_sdk(spec="mistralai", extra="mistral", msg=_MISTRAL_MISSING_MSG)- from pipelex.plugins.mistral.mistral_factory import MistralFactory # noqa: PLC0415- from pipelex.plugins.mistral.mistral_llm_worker import MistralLLMWorker # noqa: PLC0415+ from pipelex.providers.mistral.mistral_factory import MistralFactory # noqa: PLC0415+ from pipelex.providers.mistral.mistral_llm_worker import MistralLLMWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -50,8 +50,8 @@ def _make_mistral_extract_worker() -> InferenceWorkerAbstract:require_sdk(spec="mistralai", extra="mistral", msg=_MISTRAL_EXTRACT_MISSING_MSG)- from pipelex.plugins.mistral.mistral_extract_worker import MistralExtractWorker # noqa: PLC0415- from pipelex.plugins.mistral.mistral_factory import MistralFactory # noqa: PLC0415+ from pipelex.providers.mistral.mistral_extract_worker import MistralExtractWorker # noqa: PLC0415+ from pipelex.providers.mistral.mistral_factory import MistralFactory # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -75,7 +75,7 @@ async def _list_mistral_models( # noqa: RUF029flat: bool,any_listed: bool,) -> None:- from pipelex.plugins.mistral.mistral_list import list_mistral_models # noqa: PLC0415+ from pipelex.providers.mistral.mistral_list import list_mistral_models # noqa: PLC0415list_mistral_models(sdk=sdk, backend_name=backend_name, flat=flat, any_listed=any_listed)diff --git a/pipelex/plugins/openrouter/__init__.py b/pipelex/providers/openai/__init__.pysimilarity index 100%rename from pipelex/plugins/openrouter/__init__.pyrename to pipelex/providers/openai/__init__.pydiff --git a/pipelex/plugins/openai/openai_client_factory.py b/pipelex/providers/openai/openai_client_factory.pysimilarity index 97%rename from pipelex/plugins/openai/openai_client_factory.pyrename to pipelex/providers/openai/openai_client_factory.pyindex 5a6e15f09..6c19c39f5 100644--- a/pipelex/plugins/openai/openai_client_factory.py+++ b/pipelex/providers/openai/openai_client_factory.py@@ -6,7 +6,7 @@ from pipelex import logfrom pipelex.cogt.model_backends.backend import InferenceBackendfrom pipelex.config import get_configfrom pipelex.plugins.model_handle import ModelHandle-from pipelex.plugins.openai.openai_exceptions import OpenAIClientFactoryError+from pipelex.providers.openai.openai_exceptions import OpenAIClientFactoryErrorclass OpenAISdkVariant(StrEnum):diff --git a/pipelex/plugins/openai/openai_completions_factory.py b/pipelex/providers/openai/openai_completions_factory.pysimilarity index 100%rename from pipelex/plugins/openai/openai_completions_factory.pyrename to pipelex/providers/openai/openai_completions_factory.pydiff --git a/pipelex/plugins/openai/openai_completions_img_gen_worker.py b/pipelex/providers/openai/openai_completions_img_gen_worker.pysimilarity index 99%rename from pipelex/plugins/openai/openai_completions_img_gen_worker.pyrename to pipelex/providers/openai/openai_completions_img_gen_worker.pyindex 3b9f0e819..014874d9c 100644--- a/pipelex/plugins/openai/openai_completions_img_gen_worker.py+++ b/pipelex/providers/openai/openai_completions_img_gen_worker.py@@ -18,7 +18,7 @@ from pipelex.cogt.inference.error_classify import classify_inference_errorfrom pipelex.cogt.inference.error_render import InferenceErrorFamily, render_inference_errorfrom pipelex.cogt.inference.inference_constants import InferenceOutputTypefrom pipelex.cogt.model_backends.model_spec import InferenceModelSpec-from pipelex.plugins.openai.openai_completions_factory import OpenAICompletionsFactory+from pipelex.providers.openai.openai_completions_factory import OpenAICompletionsFactoryfrom pipelex.reporting.reporting_protocol import ReportingProtocolfrom pipelex.tools.misc.base64_utils import extract_base64_str_from_base64_url_if_possiblefrom pipelex.tools.misc.image_utils import ImageFormatdiff --git a/pipelex/plugins/openai/openai_completions_llm_worker.py b/pipelex/providers/openai/openai_completions_llm_worker.pysimilarity index 99%rename from pipelex/plugins/openai/openai_completions_llm_worker.pyrename to pipelex/providers/openai/openai_completions_llm_worker.pyindex 6fbdbd9fb..7a7115b4b 100644--- a/pipelex/plugins/openai/openai_completions_llm_worker.py+++ b/pipelex/providers/openai/openai_completions_llm_worker.py@@ -27,7 +27,7 @@ from pipelex.cogt.llm.thinking_mode import ThinkingModefrom pipelex.cogt.model_backends.constraints import ListedConstraintfrom pipelex.cogt.model_backends.model_spec import InferenceModelSpecfrom pipelex.config import get_config-from pipelex.plugins.openai.openai_completions_factory import OpenAICompletionsFactory+from pipelex.providers.openai.openai_completions_factory import OpenAICompletionsFactoryfrom pipelex.reporting.reporting_protocol import ReportingProtocolfrom pipelex.system.telemetry.otel_constants import InferenceOutputTypefrom pipelex.tools.typing.pydantic_utils import BaseModelTypeVardiff --git a/pipelex/plugins/openai/openai_config.py b/pipelex/providers/openai/openai_config.pysimilarity index 100%rename from pipelex/plugins/openai/openai_config.pyrename to pipelex/providers/openai/openai_config.pydiff --git a/pipelex/plugins/openai/openai_constants.py b/pipelex/providers/openai/openai_constants.pysimilarity index 100%rename from pipelex/plugins/openai/openai_constants.pyrename to pipelex/providers/openai/openai_constants.pydiff --git a/pipelex/plugins/openai/openai_exceptions.py b/pipelex/providers/openai/openai_exceptions.pysimilarity index 100%rename from pipelex/plugins/openai/openai_exceptions.pyrename to pipelex/providers/openai/openai_exceptions.pydiff --git a/pipelex/plugins/openai/openai_func.py b/pipelex/providers/openai/openai_func.pysimilarity index 100%rename from pipelex/plugins/openai/openai_func.pyrename to pipelex/providers/openai/openai_func.pydiff --git a/pipelex/plugins/openai/openai_img_gen_worker.py b/pipelex/providers/openai/openai_img_gen_worker.pysimilarity index 100%rename from pipelex/plugins/openai/openai_img_gen_worker.pyrename to pipelex/providers/openai/openai_img_gen_worker.pydiff --git a/pipelex/plugins/openai/openai_list.py b/pipelex/providers/openai/openai_list.pysimilarity index 97%rename from pipelex/plugins/openai/openai_list.pyrename to pipelex/providers/openai/openai_list.pyindex 67b56c5f3..9dee45d84 100644--- a/pipelex/plugins/openai/openai_list.py+++ b/pipelex/providers/openai/openai_list.py@@ -7,7 +7,7 @@ from rich import boxfrom rich.table import Tablefrom pipelex.plugins.model_handle import ModelHandle-from pipelex.plugins.openai.openai_llms import openai_list_available_models+from pipelex.providers.openai.openai_llms import openai_list_available_modelsfrom pipelex.runtime_hub import get_consoleif TYPE_CHECKING:diff --git a/pipelex/plugins/openai/openai_llms.py b/pipelex/providers/openai/openai_llms.pysimilarity index 87%rename from pipelex/plugins/openai/openai_llms.pyrename to pipelex/providers/openai/openai_llms.pyindex 700f9f85b..3ba81f685 100644--- a/pipelex/plugins/openai/openai_llms.py+++ b/pipelex/providers/openai/openai_llms.py@@ -2,7 +2,7 @@ from openai.types import Modelfrom pipelex.cogt.model_backends.backend import InferenceBackendfrom pipelex.plugins.model_handle import ModelHandle-from pipelex.plugins.openai.openai_client_factory import OpenAIClientFactory+from pipelex.providers.openai.openai_client_factory import OpenAIClientFactoryasync def openai_list_available_models(diff --git a/pipelex/plugins/openai/openai_plugin.py b/pipelex/providers/openai/openai_plugin.pysimilarity index 82%rename from pipelex/plugins/openai/openai_plugin.pyrename to pipelex/providers/openai/openai_plugin.pyindex b45b949bc..50eba8afd 100644--- a/pipelex/plugins/openai/openai_plugin.py+++ b/pipelex/providers/openai/openai_plugin.py@@ -16,9 +16,9 @@ def _make_openai_completions_worker(sdk_clients: SdkClientRegistry,reporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.openai.openai_client_factory import OpenAIClientFactory # noqa: PLC0415- from pipelex.plugins.openai.openai_completions_factory import OpenAICompletionsFactory # noqa: PLC0415- from pipelex.plugins.openai.openai_completions_llm_worker import OpenAICompletionsLLMWorker # noqa: PLC0415+ from pipelex.providers.openai.openai_client_factory import OpenAIClientFactory # noqa: PLC0415+ from pipelex.providers.openai.openai_completions_factory import OpenAICompletionsFactory # noqa: PLC0415+ from pipelex.providers.openai.openai_completions_llm_worker import OpenAICompletionsLLMWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -40,9 +40,9 @@ def _make_openai_responses_worker(sdk_clients: SdkClientRegistry,reporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.openai.openai_client_factory import OpenAIClientFactory # noqa: PLC0415- from pipelex.plugins.openai.openai_responses_factory import OpenAIResponsesFactory # noqa: PLC0415- from pipelex.plugins.openai.openai_responses_llm_worker import OpenAIResponsesLLMWorker # noqa: PLC0415+ from pipelex.providers.openai.openai_client_factory import OpenAIClientFactory # noqa: PLC0415+ from pipelex.providers.openai.openai_responses_factory import OpenAIResponsesFactory # noqa: PLC0415+ from pipelex.providers.openai.openai_responses_llm_worker import OpenAIResponsesLLMWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -64,8 +64,8 @@ def _make_openai_img_gen_worker(sdk_clients: SdkClientRegistry,reporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.openai.openai_client_factory import OpenAIClientFactory # noqa: PLC0415- from pipelex.plugins.openai.openai_img_gen_worker import OpenAIImgGenWorker # noqa: PLC0415+ from pipelex.providers.openai.openai_client_factory import OpenAIClientFactory # noqa: PLC0415+ from pipelex.providers.openai.openai_img_gen_worker import OpenAIImgGenWorker # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -87,7 +87,7 @@ async def _list_openai_models(flat: bool,any_listed: bool,) -> None:- from pipelex.plugins.openai.openai_list import list_openai_models # noqa: PLC0415+ from pipelex.providers.openai.openai_list import list_openai_models # noqa: PLC0415await list_openai_models(sdk=sdk, backend_name=backend_name, backend=backend, flat=flat, any_listed=any_listed)diff --git a/pipelex/plugins/openai/openai_responses_factory.py b/pipelex/providers/openai/openai_responses_factory.pysimilarity index 100%rename from pipelex/plugins/openai/openai_responses_factory.pyrename to pipelex/providers/openai/openai_responses_factory.pydiff --git a/pipelex/plugins/openai/openai_responses_llm_worker.py b/pipelex/providers/openai/openai_responses_llm_worker.pysimilarity index 99%rename from pipelex/plugins/openai/openai_responses_llm_worker.pyrename to pipelex/providers/openai/openai_responses_llm_worker.pyindex cc8d660b8..e2b752f48 100644--- a/pipelex/plugins/openai/openai_responses_llm_worker.py+++ b/pipelex/providers/openai/openai_responses_llm_worker.py@@ -38,7 +38,7 @@ if TYPE_CHECKING:from pipelex.cogt.llm.llm_job import LLMJobfrom pipelex.cogt.llm.llm_job_components import LLMJobParamsfrom pipelex.cogt.model_backends.model_spec import InferenceModelSpec- from pipelex.plugins.openai.openai_responses_factory import OpenAIResponsesFactory+ from pipelex.providers.openai.openai_responses_factory import OpenAIResponsesFactoryfrom pipelex.reporting.reporting_protocol import ReportingProtocolfrom pipelex.tools.typing.pydantic_utils import BaseModelTypeVardiff --git a/pipelex/plugins/openai/vertexai_factory.py b/pipelex/providers/openai/vertexai_factory.pysimilarity index 97%rename from pipelex/plugins/openai/vertexai_factory.pyrename to pipelex/providers/openai/vertexai_factory.pyindex 102c4d5f6..ec7af47ac 100644--- a/pipelex/plugins/openai/vertexai_factory.py+++ b/pipelex/providers/openai/vertexai_factory.py@@ -2,7 +2,7 @@ from enum import StrEnumfrom pathlib import Pathfrom typing import Any-from pipelex.plugins.openai.openai_exceptions import VertexAIConfigError, VertexAICredentialsError+from pipelex.providers.openai.openai_exceptions import VertexAIConfigError, VertexAICredentialsErrorfrom pipelex.system.configuration.config_model import ConfigModelfrom pipelex.system.exceptions import MissingDependencyErrorfrom pipelex.tools.misc.json_utils import load_json_dict_from_pathdiff --git a/pipelex/providers/openrouter/__init__.py b/pipelex/providers/openrouter/__init__.pynew file mode 100644index 000000000..8b1378917--- /dev/null+++ b/pipelex/providers/openrouter/__init__.py@@ -0,0 +1 @@+diff --git a/pipelex/plugins/openrouter/openrouter_completions_factory.py b/pipelex/providers/openrouter/openrouter_completions_factory.pysimilarity index 90%rename from pipelex/plugins/openrouter/openrouter_completions_factory.pyrename to pipelex/providers/openrouter/openrouter_completions_factory.pyindex 41db063a4..50b61b3a8 100644--- a/pipelex/plugins/openrouter/openrouter_completions_factory.py+++ b/pipelex/providers/openrouter/openrouter_completions_factory.py@@ -5,7 +5,7 @@ from typing import TYPE_CHECKING, Anyfrom typing_extensions import overridefrom pipelex.cogt.img_gen.img_gen_job import ImgGenJob-from pipelex.plugins.openai.openai_completions_factory import OpenAICompletionsFactory+from pipelex.providers.openai.openai_completions_factory import OpenAICompletionsFactoryif TYPE_CHECKING:from pipelex.cogt.inference.inference_job_abstract import InferenceJobAbstractdiff --git a/pipelex/plugins/openrouter/openrouter_plugin.py b/pipelex/providers/openrouter/openrouter_plugin.pysimilarity index 83%rename from pipelex/plugins/openrouter/openrouter_plugin.pyrename to pipelex/providers/openrouter/openrouter_plugin.pyindex d71a64f91..7b07a29f5 100644--- a/pipelex/plugins/openrouter/openrouter_plugin.py+++ b/pipelex/providers/openrouter/openrouter_plugin.py@@ -16,9 +16,9 @@ def _make_openrouter_img_gen_worker(sdk_clients: SdkClientRegistry,reporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.openai.openai_client_factory import OpenAIClientFactory # noqa: PLC0415- from pipelex.plugins.openai.openai_completions_img_gen_worker import OpenAICompletionsImgGenWorker # noqa: PLC0415- from pipelex.plugins.openrouter.openrouter_completions_factory import OpenRouterCompletionsFactory # noqa: PLC0415+ from pipelex.providers.openai.openai_client_factory import OpenAIClientFactory # noqa: PLC0415+ from pipelex.providers.openai.openai_completions_img_gen_worker import OpenAICompletionsImgGenWorker # noqa: PLC0415+ from pipelex.providers.openrouter.openrouter_completions_factory import OpenRouterCompletionsFactory # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(diff --git a/pipelex/plugins/pypdfium2/__init__.py b/pipelex/providers/portkey/__init__.pysimilarity index 100%rename from pipelex/plugins/pypdfium2/__init__.pyrename to pipelex/providers/portkey/__init__.pydiff --git a/pipelex/plugins/portkey/portkey_completions_factory.py b/pipelex/providers/portkey/portkey_completions_factory.pysimilarity index 95%rename from pipelex/plugins/portkey/portkey_completions_factory.pyrename to pipelex/providers/portkey/portkey_completions_factory.pyindex 402e27f3f..162351965 100644--- a/pipelex/plugins/portkey/portkey_completions_factory.py+++ b/pipelex/providers/portkey/portkey_completions_factory.py@@ -11,10 +11,10 @@ from pipelex.cogt.document.prompt_document_utils import prep_prompt_documentsfrom pipelex.cogt.image.prompt_image import PromptImageDetailfrom pipelex.cogt.image.prompt_image_utils import prep_prompt_imagesfrom pipelex.config import get_config-from pipelex.plugins.openai.openai_completions_factory import OpenAICompletionsFactory-from pipelex.plugins.portkey.portkey_constants import PortkeyOpenAISdkVariant-from pipelex.plugins.portkey.portkey_exceptions import PortkeyFactoryError-from pipelex.plugins.portkey.portkey_factory import PortkeyFactory+from pipelex.providers.openai.openai_completions_factory import OpenAICompletionsFactory+from pipelex.providers.portkey.portkey_constants import PortkeyOpenAISdkVariant+from pipelex.providers.portkey.portkey_exceptions import PortkeyFactoryError+from pipelex.providers.portkey.portkey_factory import PortkeyFactoryfrom pipelex.tools.uri.prepared_file import PreparedFileBase64, PreparedFileHttpUrl, PreparedFileLocalPathif TYPE_CHECKING:diff --git a/pipelex/plugins/portkey/portkey_constants.py b/pipelex/providers/portkey/portkey_constants.pysimilarity index 100%rename from pipelex/plugins/portkey/portkey_constants.pyrename to pipelex/providers/portkey/portkey_constants.pydiff --git a/pipelex/plugins/portkey/portkey_exceptions.py b/pipelex/providers/portkey/portkey_exceptions.pysimilarity index 100%rename from pipelex/plugins/portkey/portkey_exceptions.pyrename to pipelex/providers/portkey/portkey_exceptions.pydiff --git a/pipelex/plugins/portkey/portkey_factory.py b/pipelex/providers/portkey/portkey_factory.pysimilarity index 93%rename from pipelex/plugins/portkey/portkey_factory.pyrename to pipelex/providers/portkey/portkey_factory.pyindex 2f6fac3f2..fa69d8d0f 100644--- a/pipelex/plugins/portkey/portkey_factory.py+++ b/pipelex/providers/portkey/portkey_factory.py@@ -6,9 +6,9 @@ from portkey_ai import PORTKEY_GATEWAY_URLfrom pipelex.cogt.inference.inference_constants import InferenceOutputTypefrom pipelex.cogt.llm.llm_job import LLMJob-from pipelex.plugins.openai.openai_constants import OpenAIBodyKey-from pipelex.plugins.portkey.portkey_constants import PortkeyHeaderKey-from pipelex.plugins.portkey.portkey_exceptions import PortkeyCredentialsError+from pipelex.providers.openai.openai_constants import OpenAIBodyKey+from pipelex.providers.portkey.portkey_constants import PortkeyHeaderKey+from pipelex.providers.portkey.portkey_exceptions import PortkeyCredentialsErrorfrom pipelex.runtime_hub import get_telemetry_managerfrom pipelex.system.telemetry.otel_constants import OTelConstantsfrom pipelex.system.telemetry.telemetry_manager_abstract import TelemetryManagerAbstractdiff --git a/pipelex/plugins/portkey/portkey_plugin.py b/pipelex/providers/portkey/portkey_plugin.pysimilarity index 85%rename from pipelex/plugins/portkey/portkey_plugin.pyrename to pipelex/providers/portkey/portkey_plugin.pyindex a47a476fd..f13311a22 100644--- a/pipelex/plugins/portkey/portkey_plugin.py+++ b/pipelex/providers/portkey/portkey_plugin.py@@ -16,8 +16,8 @@ def _make_portkey_completions_worker(sdk_clients: SdkClientRegistry,reporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.openai.openai_completions_llm_worker import OpenAICompletionsLLMWorker # noqa: PLC0415- from pipelex.plugins.portkey.portkey_completions_factory import PortkeyCompletionsFactory # noqa: PLC0415+ from pipelex.providers.openai.openai_completions_llm_worker import OpenAICompletionsLLMWorker # noqa: PLC0415+ from pipelex.providers.portkey.portkey_completions_factory import PortkeyCompletionsFactory # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(@@ -39,8 +39,8 @@ def _make_portkey_responses_worker(sdk_clients: SdkClientRegistry,reporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.openai.openai_responses_llm_worker import OpenAIResponsesLLMWorker # noqa: PLC0415- from pipelex.plugins.portkey.portkey_responses_factory import PortkeyResponsesFactory # noqa: PLC0415+ from pipelex.providers.openai.openai_responses_llm_worker import OpenAIResponsesLLMWorker # noqa: PLC0415+ from pipelex.providers.portkey.portkey_responses_factory import PortkeyResponsesFactory # noqa: PLC0415model_handle = ModelHandle.make_for_inference_model(inference_model=inference_model)sdk_instance = sdk_clients.get_or_create(diff --git a/pipelex/plugins/portkey/portkey_responses_factory.py b/pipelex/providers/portkey/portkey_responses_factory.pysimilarity index 87%rename from pipelex/plugins/portkey/portkey_responses_factory.pyrename to pipelex/providers/portkey/portkey_responses_factory.pyindex 51a255779..db703183d 100644--- a/pipelex/plugins/portkey/portkey_responses_factory.py+++ b/pipelex/providers/portkey/portkey_responses_factory.py@@ -9,10 +9,10 @@ from portkey_ai import (from typing_extensions import overridefrom pipelex.config import get_config-from pipelex.plugins.openai.openai_responses_factory import OpenAIResponsesFactory-from pipelex.plugins.portkey.portkey_constants import PortkeyOpenAISdkVariant-from pipelex.plugins.portkey.portkey_exceptions import PortkeyFactoryError-from pipelex.plugins.portkey.portkey_factory import PortkeyFactory+from pipelex.providers.openai.openai_responses_factory import OpenAIResponsesFactory+from pipelex.providers.portkey.portkey_constants import PortkeyOpenAISdkVariant+from pipelex.providers.portkey.portkey_exceptions import PortkeyFactoryError+from pipelex.providers.portkey.portkey_factory import PortkeyFactoryif TYPE_CHECKING:from pipelex.cogt.inference.inference_job_abstract import InferenceJobAbstractdiff --git a/pipelex/plugins/secrets/__init__.py b/pipelex/providers/pypdfium2/__init__.pysimilarity index 100%rename from pipelex/plugins/secrets/__init__.pyrename to pipelex/providers/pypdfium2/__init__.pydiff --git a/pipelex/plugins/pypdfium2/pypdfium2_plugin.py b/pipelex/providers/pypdfium2/pypdfium2_plugin.pysimilarity index 93%rename from pipelex/plugins/pypdfium2/pypdfium2_plugin.pyrename to pipelex/providers/pypdfium2/pypdfium2_plugin.pyindex 4cb690346..cabad4eec 100644--- a/pipelex/plugins/pypdfium2/pypdfium2_plugin.py+++ b/pipelex/providers/pypdfium2/pypdfium2_plugin.py@@ -15,7 +15,7 @@ def _make_pypdfium2_extract_worker(sdk_clients: SdkClientRegistry, # noqa: ARG001 - stateless worker, no SDK-client cachingreporting_delegate: ReportingProtocol | None,) -> InferenceWorkerAbstract:- from pipelex.plugins.pypdfium2.pypdfium2_worker import Pypdfium2Worker # noqa: PLC0415+ from pipelex.providers.pypdfium2.pypdfium2_worker import Pypdfium2Worker # noqa: PLC0415return Pypdfium2Worker(extra_config=backend.extra_config,diff --git a/pipelex/plugins/pypdfium2/pypdfium2_worker.py b/pipelex/providers/pypdfium2/pypdfium2_worker.pysimilarity index 100%rename from pipelex/plugins/pypdfium2/pypdfium2_worker.pyrename to pipelex/providers/pypdfium2/pypdfium2_worker.pydiff --git a/pipelex/plugins/storage/__init__.py b/pipelex/providers/secrets/__init__.pysimilarity index 100%rename from pipelex/plugins/storage/__init__.pyrename to pipelex/providers/secrets/__init__.pydiff --git a/pipelex/plugins/secrets/secrets_plugin.py b/pipelex/providers/secrets/secrets_plugin.pysimilarity index 92%rename from pipelex/plugins/secrets/secrets_plugin.pyrename to pipelex/providers/secrets/secrets_plugin.pyindex 82d4b5b31..d6d8f4177 100644--- a/pipelex/plugins/secrets/secrets_plugin.py+++ b/pipelex/providers/secrets/secrets_plugin.py@@ -13,7 +13,7 @@ class SecretsPlugin:"""Always-on built-in provider of the ``env`` secrets backend (reads secrets from env vars).Core-unconditional: secrets is required infra, so this plugin cannot be disabled into a boot- with no secrets provider (see ``CORE_UNCONDITIONAL_PLUGIN_NAMES``). It registers the one built-in+ with no secrets provider (see ``RUNTIME_CORE_UNCONDITIONAL_PLUGIN_NAMES``). It registers the one built-in``env`` method; ``secrets_config.method`` selects which factory boot invokes. Importing this moduleis import-light — no SDK loads at register (the env provider needs none, and an external``pipelex-secrets-<backend>`` plugin defers its SDK import to its own factory).diff --git a/pipelex/providers/storage/__init__.py b/pipelex/providers/storage/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/pipelex/plugins/storage/storage_plugin.py b/pipelex/providers/storage/storage_plugin.pysimilarity index 97%rename from pipelex/plugins/storage/storage_plugin.pyrename to pipelex/providers/storage/storage_plugin.pyindex 114059f76..8745ccf67 100644--- a/pipelex/plugins/storage/storage_plugin.py+++ b/pipelex/providers/storage/storage_plugin.py@@ -64,7 +64,7 @@ class StoragePlugin:"""Always-on built-in provider of the local / in_memory / s3 / gcp storage backends.Core-unconditional: storage is required infra, so this plugin cannot be disabled into a- boot with no storage (see ``CORE_UNCONDITIONAL_PLUGIN_NAMES``). It registers one factory per+ boot with no storage (see ``RUNTIME_CORE_UNCONDITIONAL_PLUGIN_NAMES``). It registers one factory perbuilt-in method; ``storage_config.method`` selects which one boot invokes. Importing thismodule is import-light — the s3/gcp SDKs load lazily inside their providers, not at register."""diff --git a/pipelex/runtime_hub.py b/pipelex/runtime_hub.pyindex 02f910112..33fc3099c 100644--- a/pipelex/runtime_hub.py+++ b/pipelex/runtime_hub.py@@ -7,11 +7,18 @@ execution time whatever is loaded — hence *runtime*, in the language-implement**The one rule:** ``interpreter_hub`` imports ``runtime_hub``; ``runtime_hub`` must never import``interpreter_hub``. Nothing here may name ``libraries``, ``pipe_operators``, ``pipe_controllers``,-``codegen``, ``builder``, ``core.bundles``, ``core.interpreter``, or the Pipe-touching modules of-``core.pipes`` at module level — that is what makes importing the Pipelex runtime load zero-interpreter modules. Core's data model is *not* on that list: ``core.concepts`` and its siblings are-declared runtime-layer packages, and this module's own closure runs straight through them. See-``docs/contribute/hub-layering.md``.+``codegen``, ``builder``, ``interpreter_plugins``, ``pipe_machinery``, ``pipe_signature`` or+``mthds_parsing`` at module level — that is what makes importing the Pipelex runtime load zero+modules from any of them. That list is the interpreter's top-level packages; it used to have to+trail "…or the Pipe-touching modules of ``core.pipes``", because some of what it forbids lived under+a runtime-named package. ``pipelex.core`` is *not* on it at all any more — the whole package is+declared runtime-layer, and this module's own closure runs straight through it.++Two interpreter-named packages are deliberately absent, and their absence is a known wart: leaf+models from ``pipeline`` and ``pipe_run`` (``SpecialPipelineId``, ``PipeRunMode``) already land in+this module's closure. So the property is "zero modules from the packages named above", not "zero+interpreter modules" outright — the remedy is to move those leaves to a runtime-layer home, then+widen the list. See ``docs/contribute/hub-layering.md``."""import sysdiff --git a/subject_grants.toml b/subject_grants.tomlindex d7ee477fb..39d832375 100644--- a/subject_grants.toml+++ b/subject_grants.toml@@ -1612,6 +1612,46 @@ rationale = "Factory from source: builds the result from the safety_checker_taxoparam = "specific_taxonomy"rationale = "Factory from source: builds the result from the specific_taxonomy; single operand."+["pipelex/cogt/img_gen/img_gen_gemini_mapping.py::ImgGenGeminiMapping.aspect_ratio_literal"]+param = "aspect_ratio"+rationale = "Converts the aspect ratio to its provider literal; single operand."++["pipelex/cogt/img_gen/img_gen_gemini_mapping.py::ImgGenGeminiMapping.derive_ratio_and_size_from_exact_size"]+param = "taxonomy"+rationale = "Operates on the aspect-ratio taxonomy; the lookup keys stay keyword-only."++["pipelex/cogt/img_gen/img_gen_gemini_mapping.py::ImgGenGeminiMapping.dimensions_for_aspect_ratio_and_size"]+param = "taxonomy"+rationale = "Operates on the aspect-ratio taxonomy; the lookup keys stay keyword-only."++["pipelex/cogt/img_gen/img_gen_gemini_mapping.py::ImgGenGeminiMapping.grids_for_taxonomy"]+param = "taxonomy"+rationale = "Operates on the aspect-ratio taxonomy; the lookup keys stay keyword-only."++["pipelex/cogt/img_gen/img_gen_gemini_mapping.py::ImgGenGeminiMapping.image_size_for_tier"]+param = "tier"+rationale = "Derives the image size for the size tier; single operand."++["pipelex/cogt/img_gen/img_gen_gemini_mapping.py::ImgGenGeminiMapping.img_gen_taxonomy"]+param = "inference_model"+rationale = "Reads the aspect-ratio taxonomy off the inference model; single operand."++["pipelex/cogt/img_gen/img_gen_gemini_mapping.py::ImgGenGeminiMapping.optional_img_gen_taxonomy"]+param = "inference_model"+rationale = "Reads the aspect-ratio taxonomy off the inference model, None when it declares none; single operand."++["pipelex/cogt/img_gen/img_gen_gemini_mapping.py::ImgGenGeminiMapping.resolve_image_config"]+param = "taxonomy"+rationale = "Operates on the aspect-ratio taxonomy; the lookup keys stay keyword-only."++["pipelex/cogt/img_gen/img_gen_gpt_mapping.py::ImgGenGptMapping._size_to_string"]+param = "size"+rationale = "Converts the image size to its provider string; single operand."++["pipelex/cogt/img_gen/img_gen_gpt_mapping.py::ImgGenGptMapping.input_fidelity_literal"]+param = "input_fidelity"+rationale = "Derives the GPT Image fidelity literal from the input fidelity; single operand."+["pipelex/cogt/img_gen/img_gen_job.py::ImgGenJob.img_gen_job_before_start"]param = "inference_model"rationale = "Prepares the job against the inference_model; single operand."@@ -2300,30 +2340,6 @@ rationale = "Cost report op on the records; single operand."param = "tokens_usage"rationale = "Verb-object: compute the cost of one usage record; the single obvious operand is the usage."-["pipelex/core/bundles/pipe_sorter.py::sort_pipes_by_dependencies"]-param = "pipes"-rationale = "Verb-object: sorts the pipes; single operand."--["pipelex/core/bundles/pipe_sorter.py::sort_pipes_by_dependencies.visit"]-param = "pipe_code"-rationale = "Nested DFS visitor on the pipe code; single operand."--["pipelex/core/bundles/pipelex_bundle_blueprint.py::PipelexBundleBlueprint._collect_local_refs_from_concept"]-param = "concept_code"-rationale = "Verb-object: collects refs from the concept named; context stays keyword."--["pipelex/core/bundles/pipelex_bundle_blueprint.py::PipelexBundleBlueprint._collect_local_refs_from_pipe"]-param = "pipe_code"-rationale = "Verb-object: collects refs from the pipe named; context stays keyword."--["pipelex/core/bundles/pipelex_bundle_blueprint.py::PipelexBundleBlueprint.get_elaboration_for"]-param = "pipe_code"-rationale = "Query accessor keyed by the pipe code; single operand."--["pipelex/core/bundles/pipelex_bundle_blueprint.py::_strippable_same_domain_pipe_code"]-param = "code"-rationale = "Single-operand transformation of the code; the rest is context."-["pipelex/core/concepts/concept.py::Concept.is_native_concept"]param = "concept"rationale = "Predicate on the concept; single operand."@@ -2592,66 +2608,6 @@ rationale = "Predicate on the domain code; single operand."param = "code"rationale = "Verb-object: validates the domain code; single operand."-["pipelex/core/interpreter/bundle_elaborator.py::BundleElaborator.elaborate"]-param = "bundle"-rationale = "Verb-object: elaborates the bundle; single operand."--["pipelex/core/interpreter/bundle_elaborator.py::_is_preliminary_text_pipe"]-param = "pipe_blueprint"-rationale = "Predicate on the pipe blueprint; single operand."--["pipelex/core/interpreter/helpers.py::ValidationErrorScope.is_pipe_scope"]-param = "scope"-rationale = "Predicate on the scope; single operand."--["pipelex/core/interpreter/helpers.py::get_error_scope"]-param = "loc"-rationale = "Derivation from the error loc; single operand."--["pipelex/core/interpreter/helpers.py::is_pipelex_file"]-param = "file_path"-rationale = "Predicate on the file path; single operand."--["pipelex/core/interpreter/interpreter.py::PipelexInterpreter.make_pipelex_bundle_blueprint"]-param = "bundle_path"-rationale = "Factory from source: parses the bundle at the path; options stay keyword."--["pipelex/core/interpreter/validation_error_categorizer.py::_categorize_concept_validation_error"]-param = "loc"-rationale = "Verb-object: categorizes the error at the loc; context stays keyword."--["pipelex/core/interpreter/validation_error_categorizer.py::_categorize_input_validation_error"]-param = "message"-rationale = "Verb-object: categorizes the error message; context stays keyword."--["pipelex/core/interpreter/validation_error_categorizer.py::_categorize_syntax_validation_error"]-param = "message"-rationale = "Verb-object: categorizes the error message; context stays keyword."--["pipelex/core/interpreter/validation_error_categorizer.py::_categorize_typeless_pipe_error"]-param = "message"-rationale = "Verb-object: categorizes the message; the rest is context."--["pipelex/core/interpreter/validation_error_categorizer.py::_extract_variable_names_from_message"]-param = "message"-rationale = "Verb-object: extracts from the message; single operand."--["pipelex/core/interpreter/validation_error_categorizer.py::_extract_wrapped_invalid_pipe_code_syntax_error"]-param = "error"-rationale = "Extraction from the single error operand."--["pipelex/core/interpreter/validation_error_categorizer.py::_extract_wrapped_native_concept_redeclaration_error"]-param = "error"-rationale = "Extraction from the single error operand."--["pipelex/core/interpreter/validation_error_categorizer.py::_is_pydantic_internal_loc_element"]-param = "element"-rationale = "Predicate on the loc element; single operand."--["pipelex/core/interpreter/validation_error_categorizer.py::categorize_blueprint_validation_error"]-param = "error"-rationale = "Verb-object: categorizes the error; context stays keyword."-["pipelex/core/memory/absence_render.py::build_absence_html"]param = "absence_record"rationale = "Verb-object: renders the absence record; single operand."@@ -2912,26 +2868,6 @@ rationale = "Factory from source: builds from the needed inputs; single operand.param = "typed_named_stuff_spec"rationale = "Factory from source: builds from the typed-named spec; single operand."-["pipelex/core/pipes/handle_pipe_errors.py::_handle_pipe_errors"]-param = "error"-rationale = "Verb-object: handles the error; context stays keyword."--["pipelex/core/pipes/handle_pipe_errors.py::categorize_pipe_factory_error"]-param = "factory_error"-rationale = "Verb-object: categorizes the factory error; context stays keyword."--["pipelex/core/pipes/handle_pipe_errors.py::categorize_pipe_validation_error"]-param = "validation_error"-rationale = "Verb-object: categorizes the validation error; context stays keyword."--["pipelex/core/pipes/handle_pipe_errors.py::categorize_pipe_validation_with_libraries_error"]-param = "pipe_error"-rationale = "Verb-object: categorizes the pipe error; context stays keyword."--["pipelex/core/pipes/handle_pipe_errors.py::extract_wrapped_pipe_validation_error"]-param = "error"-rationale = "Verb-object: unwraps the error; single operand."-["pipelex/core/pipes/inputs/input_stuff_specs.py::InputStuffSpecs.get_required_stuff_spec"]param = "variable_name"rationale = "Specs getter keyed by the variable name; single operand."@@ -2948,34 +2884,6 @@ rationale = "Setter: installs the default domain code; single operand."param = "named"rationale = "Factory from source: builds from the named spec; context stays keyword."-["pipelex/core/pipes/pipe_abstract.py::PipeAbstract._end_pipe_span_error"]-param = "span"-rationale = "Verb-object: ends the span; error fields stay keyword."--["pipelex/core/pipes/pipe_abstract.py::PipeAbstract._end_pipe_span_success"]-param = "span"-rationale = "Verb-object: ends the span; result fields stay keyword."--["pipelex/core/pipes/pipe_abstract.py::PipeAbstract._expected_inputs_for_fix"]-param = "needed_inputs"-rationale = "Noun-named derivation from the needed inputs; single operand."--["pipelex/core/pipes/pipe_abstract.py::PipeAbstract._format_pipe_run_info"]-param = "pipe_run_params"-rationale = "Derivation from the run params; single operand."--["pipelex/core/pipes/pipe_abstract.py::PipeAbstract._make_single_concept_data_for_registry"]-param = "concept"-rationale = "Derivation from the concept; single operand."--["pipelex/core/pipes/pipe_blueprint.py::PipeCategory.is_controller_by_str"]-param = "category_str"-rationale = "Predicate on the category string; single operand."--["pipelex/core/pipes/pipe_blueprint.py::explicit_signature_tag_migration_message"]-param = "pipe_code"-rationale = "Noun-named derivation: the migration message for the given pipe code; single operand."-["pipelex/core/pipes/pipe_output.py::PipeOutput.main_stuff_as"]param = "content_type"rationale = "Type-directed accessor: the target content type; single operand."@@ -2988,86 +2896,6 @@ rationale = "Type-directed accessor: the target item type; single operand."param = "item_type"rationale = "Type-directed accessor: the target item type; single operand."-["pipelex/core/pipes/rendering/input_renderer.py::_delighten_entry"]-param = "entry"-rationale = "Single-operand transformation of the entry; kind is a mode and stays keyword."--["pipelex/core/pipes/rendering/input_renderer.py::_delighten_template"]-param = "envelope_template"-rationale = "Single-operand transformation of the template; specs stay keyword."--["pipelex/core/pipes/rendering/input_renderer.py::_substitute_none_values"]-param = "value"-rationale = "Single-operand transformation of the value."--["pipelex/core/pipes/rendering/input_renderer.py::_to_toml_value"]-param = "value"-rationale = "Single-operand conversion of the value."--["pipelex/core/pipes/rendering/input_renderer.py::_unwrap_scalar_content"]-param = "content"-rationale = "Single-operand unwrap of the content; envelope is context."--["pipelex/core/pipes/rendering/input_renderer.py::build_concept_comments"]-param = "input_specs"-rationale = "Noun-named derivation: the comments mapping for the input specs; single operand."--["pipelex/core/pipes/rendering/input_renderer.py::build_inputs_template"]-param = "the_pipe"-rationale = "Noun-named derivation: the inputs template for the pipe; explicit is a mode."--["pipelex/core/pipes/rendering/input_renderer.py::render_inputs"]-param = "the_pipe"-rationale = "Verb-object: renders the pipe's inputs; format stays keyword."--["pipelex/core/pipes/rendering/input_renderer.py::render_inputs_toml"]-param = "the_pipe"-rationale = "Verb-object: renders the pipe's inputs; explicit is a mode."--["pipelex/core/pipes/rendering/input_renderer.py::serialize_inputs_template_to_toml"]-param = "template"-rationale = "Single-operand serialization of the template; options stay keyword."--["pipelex/core/pipes/rendering/output_renderer.py::_collect_possible_outputs"]-param = "the_pipe"-rationale = "Verb-object: collects from the pipe; single operand."--["pipelex/core/pipes/rendering/output_renderer.py::_render_json_output"]-param = "the_pipe"-rationale = "Verb-object: renders the pipe's output; single operand."--["pipelex/core/pipes/rendering/output_renderer.py::_render_python_output"]-param = "the_pipe"-rationale = "Verb-object: renders the pipe's output; single operand."--["pipelex/core/pipes/rendering/output_renderer.py::_render_schema_output"]-param = "the_pipe"-rationale = "Verb-object: renders the pipe's output; single operand."--["pipelex/core/pipes/rendering/output_renderer.py::render_output"]-param = "the_pipe"-rationale = "Verb-object: renders the pipe's output; format stays keyword."--["pipelex/core/pipes/validation.py::is_input_used_by_variables"]-param = "input_name"-rationale = "Predicate on the input named; the variables stay keyword."--["pipelex/core/pipes/validation.py::is_pipe_code_valid"]-param = "pipe_code"-rationale = "Predicate on the pipe code; single operand."--["pipelex/core/pipes/validation.py::is_valid_input_name"]-param = "input_name"-rationale = "Predicate on the input name; single operand."--["pipelex/core/pipes/validation.py::is_variable_satisfied_by_inputs"]-param = "variable_path"-rationale = "Predicate on the variable path; the inputs stay keyword."--["pipelex/core/pipes/validation.py::validate_input_name"]-param = "input_name"-rationale = "Verb-object: validates the input name; single operand."-["pipelex/core/pipes/variable_multiplicity.py::PresenceMarker.from_symbol"]param = "symbol"rationale = "Factory from source: parses the symbol; single operand."@@ -3592,6 +3420,18 @@ rationale = "Module-level setter: installs the InterpreterHub singleton; singleparam = "pipe_router"rationale = "Module-level setter: installs the pipe router; single self-labelling operand."+["pipelex/interpreter_plugins/direct/direct_plugin.py::DirectOrchestratorPlugin.register"]+param = "registrar"+rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."++["pipelex/interpreter_plugins/pipe_func/pipe_func_plugin.py::PipeFuncPlugin.register"]+param = "registrar"+rationale = "Plugin entrypoint: registers into the registrar; single self-labelling operand, consistent with sibling plugins."++["pipelex/interpreter_plugins/pipe_func/pipe_func_plugin.py::_make_direct_pipe_func_executor"]+param = "config"+rationale = "PipeFuncExecutorFactoryFn implementation: the registry invokes factories positionally via the Callable type."+["pipelex/kit/cursor_rules.py::_is_pipelex_managed"]param = "mdc_path"rationale = "Predicate on the .mdc file path; single operand."@@ -3988,6 +3828,110 @@ rationale = "Verb-object: the refs naming the removed pipes; single operand."param = "blueprint"rationale = "Conversion: derives metadata from the blueprint; single operand."+["pipelex/mthds_parsing/bundle_elaborator.py::BundleElaborator.elaborate"]+param = "bundle"+rationale = "Verb-object: elaborates the bundle; single operand."++["pipelex/mthds_parsing/bundle_elaborator.py::_is_preliminary_text_pipe"]+param = "pipe_blueprint"+rationale = "Predicate on the pipe blueprint; single operand."++["pipelex/mthds_parsing/handle_pipe_errors.py::_handle_pipe_errors"]+param = "error"+rationale = "Verb-object: handles the error; context stays keyword."++["pipelex/mthds_parsing/handle_pipe_errors.py::categorize_pipe_factory_error"]+param = "factory_error"+rationale = "Verb-object: categorizes the factory error; context stays keyword."++["pipelex/mthds_parsing/handle_pipe_errors.py::categorize_pipe_validation_error"]+param = "validation_error"+rationale = "Verb-object: categorizes the validation error; context stays keyword."++["pipelex/mthds_parsing/handle_pipe_errors.py::categorize_pipe_validation_with_libraries_error"]+param = "pipe_error"+rationale = "Verb-object: categorizes the pipe error; context stays keyword."++["pipelex/mthds_parsing/handle_pipe_errors.py::extract_wrapped_pipe_validation_error"]+param = "error"+rationale = "Verb-object: unwraps the error; single operand."++["pipelex/mthds_parsing/helpers.py::ValidationErrorScope.is_pipe_scope"]+param = "scope"+rationale = "Predicate on the scope; single operand."++["pipelex/mthds_parsing/helpers.py::get_error_scope"]+param = "loc"+rationale = "Derivation from the error loc; single operand."++["pipelex/mthds_parsing/helpers.py::is_pipelex_file"]+param = "file_path"+rationale = "Predicate on the file path; single operand."++["pipelex/mthds_parsing/parser.py::MthdsParser.make_pipelex_bundle_blueprint"]+param = "bundle_path"+rationale = "Factory from source: parses the bundle at the path; options stay keyword."++["pipelex/mthds_parsing/pipe_sorter.py::sort_pipes_by_dependencies"]+param = "pipes"+rationale = "Verb-object: sorts the pipes; single operand."++["pipelex/mthds_parsing/pipe_sorter.py::sort_pipes_by_dependencies.visit"]+param = "pipe_code"+rationale = "Nested DFS visitor on the pipe code; single operand."++["pipelex/mthds_parsing/pipelex_bundle_blueprint.py::PipelexBundleBlueprint._collect_local_refs_from_concept"]+param = "concept_code"+rationale = "Verb-object: collects refs from the concept named; context stays keyword."++["pipelex/mthds_parsing/pipelex_bundle_blueprint.py::PipelexBundleBlueprint._collect_local_refs_from_pipe"]+param = "pipe_code"+rationale = "Verb-object: collects refs from the pipe named; context stays keyword."++["pipelex/mthds_parsing/pipelex_bundle_blueprint.py::PipelexBundleBlueprint.get_elaboration_for"]+param = "pipe_code"+rationale = "Query accessor keyed by the pipe code; single operand."++["pipelex/mthds_parsing/pipelex_bundle_blueprint.py::_strippable_same_domain_pipe_code"]+param = "code"+rationale = "Single-operand transformation of the code; the rest is context."++["pipelex/mthds_parsing/validation_error_categorizer.py::_categorize_concept_validation_error"]+param = "loc"+rationale = "Verb-object: categorizes the error at the loc; context stays keyword."++["pipelex/mthds_parsing/validation_error_categorizer.py::_categorize_input_validation_error"]+param = "message"+rationale = "Verb-object: categorizes the error message; context stays keyword."++["pipelex/mthds_parsing/validation_error_categorizer.py::_categorize_syntax_validation_error"]+param = "message"+rationale = "Verb-object: categorizes the error message; context stays keyword."++["pipelex/mthds_parsing/validation_error_categorizer.py::_categorize_typeless_pipe_error"]+param = "message"+rationale = "Verb-object: categorizes the message; the rest is context."++["pipelex/mthds_parsing/validation_error_categorizer.py::_extract_variable_names_from_message"]+param = "message"+rationale = "Verb-object: extracts from the message; single operand."++["pipelex/mthds_parsing/validation_error_categorizer.py::_extract_wrapped_invalid_pipe_code_syntax_error"]+param = "error"+rationale = "Extraction from the single error operand."++["pipelex/mthds_parsing/validation_error_categorizer.py::_extract_wrapped_native_concept_redeclaration_error"]+param = "error"+rationale = "Extraction from the single error operand."++["pipelex/mthds_parsing/validation_error_categorizer.py::_is_pydantic_internal_loc_element"]+param = "element"+rationale = "Predicate on the loc element; single operand."++["pipelex/mthds_parsing/validation_error_categorizer.py::categorize_blueprint_validation_error"]+param = "error"+rationale = "Verb-object: categorizes the error; context stays keyword."+["pipelex/observer/observer_protocol.py::ObserverProtocol.observe_after_failing_run"]param = "payload"rationale = "Protocol method: observes the run payload; single operand across implementations."@@ -4028,6 +3972,114 @@ rationale = "Predicate on the outcome string; single operand."param = "blueprint"rationale = "Factory from source: the name names the operand; single obvious operand."+["pipelex/pipe_machinery/pipe_abstract.py::PipeAbstract._end_pipe_span_error"]+param = "span"+rationale = "Verb-object: ends the span; error fields stay keyword."++["pipelex/pipe_machinery/pipe_abstract.py::PipeAbstract._end_pipe_span_success"]+param = "span"+rationale = "Verb-object: ends the span; result fields stay keyword."++["pipelex/pipe_machinery/pipe_abstract.py::PipeAbstract._expected_inputs_for_fix"]+param = "needed_inputs"+rationale = "Noun-named derivation from the needed inputs; single operand."++["pipelex/pipe_machinery/pipe_abstract.py::PipeAbstract._format_pipe_run_info"]+param = "pipe_run_params"+rationale = "Derivation from the run params; single operand."++["pipelex/pipe_machinery/pipe_abstract.py::PipeAbstract._make_single_concept_data_for_registry"]+param = "concept"+rationale = "Derivation from the concept; single operand."++["pipelex/pipe_machinery/pipe_blueprint.py::PipeCategory.is_controller_by_str"]+param = "category_str"+rationale = "Predicate on the category string; single operand."++["pipelex/pipe_machinery/pipe_blueprint.py::explicit_signature_tag_migration_message"]+param = "pipe_code"+rationale = "Noun-named derivation: the migration message for the given pipe code; single operand."++["pipelex/pipe_machinery/rendering/input_renderer.py::_delighten_entry"]+param = "entry"+rationale = "Single-operand transformation of the entry; kind is a mode and stays keyword."++["pipelex/pipe_machinery/rendering/input_renderer.py::_delighten_template"]+param = "envelope_template"+rationale = "Single-operand transformation of the template; specs stay keyword."++["pipelex/pipe_machinery/rendering/input_renderer.py::_substitute_none_values"]+param = "value"+rationale = "Single-operand transformation of the value."++["pipelex/pipe_machinery/rendering/input_renderer.py::_to_toml_value"]+param = "value"+rationale = "Single-operand conversion of the value."++["pipelex/pipe_machinery/rendering/input_renderer.py::_unwrap_scalar_content"]+param = "content"+rationale = "Single-operand unwrap of the content; envelope is context."++["pipelex/pipe_machinery/rendering/input_renderer.py::build_concept_comments"]+param = "input_specs"+rationale = "Noun-named derivation: the comments mapping for the input specs; single operand."++["pipelex/pipe_machinery/rendering/input_renderer.py::build_inputs_template"]+param = "the_pipe"+rationale = "Noun-named derivation: the inputs template for the pipe; explicit is a mode."++["pipelex/pipe_machinery/rendering/input_renderer.py::render_inputs"]+param = "the_pipe"+rationale = "Verb-object: renders the pipe's inputs; format stays keyword."++["pipelex/pipe_machinery/rendering/input_renderer.py::render_inputs_toml"]+param = "the_pipe"+rationale = "Verb-object: renders the pipe's inputs; explicit is a mode."++["pipelex/pipe_machinery/rendering/input_renderer.py::serialize_inputs_template_to_toml"]+param = "template"+rationale = "Single-operand serialization of the template; options stay keyword."++["pipelex/pipe_machinery/rendering/output_renderer.py::_collect_possible_outputs"]+param = "the_pipe"+rationale = "Verb-object: collects from the pipe; single operand."++["pipelex/pipe_machinery/rendering/output_renderer.py::_render_json_output"]+param = "the_pipe"+rationale = "Verb-object: renders the pipe's output; single operand."++["pipelex/pipe_machinery/rendering/output_renderer.py::_render_python_output"]+param = "the_pipe"+rationale = "Verb-object: renders the pipe's output; single operand."++["pipelex/pipe_machinery/rendering/output_renderer.py::_render_schema_output"]+param = "the_pipe"+rationale = "Verb-object: renders the pipe's output; single operand."++["pipelex/pipe_machinery/rendering/output_renderer.py::render_output"]+param = "the_pipe"+rationale = "Verb-object: renders the pipe's output; format stays keyword."++["pipelex/pipe_machinery/validation.py::is_input_used_by_variables"]+param = "input_name"+rationale = "Predicate on the input named; the variables stay keyword."++["pipelex/pipe_machinery/validation.py::is_pipe_code_valid"]+param = "pipe_code"+rationale = "Predicate on the pipe code; single operand."++["pipelex/pipe_machinery/validation.py::is_valid_input_name"]+param = "input_name"+rationale = "Predicate on the input name; single operand."++["pipelex/pipe_machinery/validation.py::is_variable_satisfied_by_inputs"]+param = "variable_path"+rationale = "Predicate on the variable path; the inputs stay keyword."++["pipelex/pipe_machinery/validation.py::validate_input_name"]+param = "input_name"+rationale = "Verb-object: validates the input name; single operand."+["pipelex/pipe_operators/compose/construct_blueprint.py::ConstructBlueprint.make_from_raw"]param = "raw"rationale = "Factory from source: builds the blueprint from the raw value; single operand."@@ -4556,643 +4608,591 @@ rationale = "Verb-object: formats the error items; single operand."param = "report"rationale = "Verb-object: renders the validation report; single operand."-["pipelex/plugins/anthropic/anthropic_config.py::AnthropicConfig.get_reasoning_level"]+["pipelex/plugins/backend_extras_factory.py::BackendExtrasFactory.make_extras"]+param = "inference_model"+rationale = "Factory from source: builds the result from the inference_model; single operand."++["pipelex/plugins/contract.py::PipelexPlugin.register"]+param = "registrar"+rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."++["pipelex/plugins/discovery.py::_load_external_plugin"]+param = "entry_point"+rationale = "Loads the plugin from the entry point; single operand."++["pipelex/plugins/model_handle.py::ModelHandle.make_for_inference_model"]+param = "inference_model"+rationale = "Factory from source: builds the result from the inference_model; single operand."++["pipelex/plugins/registrar.py::PluginRegistrar.add_teardown"]+param = "callback"+rationale = "Registers the callback callable as the sole operand."++["pipelex/plugins/registrar.py::PluginRegistrar.claim_content_generator"]+param = "factory"+rationale = "Registers the factory callable as the sole operand."++["pipelex/plugins/registrar.py::PluginRegistrar.claim_isolated_execution_probe"]+param = "factory"+rationale = "Registers the factory callable as the sole operand."++["pipelex/plugins/registrar.py::PluginRegistrar.claim_pipe_func_executor"]+param = "factory"+rationale = "Registrar claim: claims the pipe-func executor hub slot with a factory; single self-labelling operand, consistent with sibling claims."++["pipelex/plugins/registrar.py::PluginRegistrar.claim_pipe_router"]+param = "factory"+rationale = "Registers the factory callable as the sole operand."++["pipelex/plugins/registrar.py::PluginRegistrar.claim_pipe_run"]+param = "factory"+rationale = "Registers the factory callable as the sole operand."++["pipelex/plugins/registrar.py::PluginRegistrar.claim_task_manager"]+param = "factory"+rationale = "Registers the factory callable as the sole operand."++["pipelex/plugins/sdk_client_registry.py::SdkClientRegistry.get"]+param = "model_handle"+rationale = "Registry getter keyed by the model handle."++["pipelex/providers/anthropic/anthropic_config.py::AnthropicConfig.get_reasoning_level"]param = "effort"rationale = "Maps the reasoning effort to a provider reasoning level; single operand."-["pipelex/plugins/anthropic/anthropic_factory.py::AnthropicFactory._make_document_block_param"]+["pipelex/providers/anthropic/anthropic_factory.py::AnthropicFactory._make_document_block_param"]param = "prepped_document"rationale = "Factory from source: builds the result from the prepped_document; single operand."-["pipelex/plugins/anthropic/anthropic_factory.py::AnthropicFactory._make_image_block_param"]+["pipelex/providers/anthropic/anthropic_factory.py::AnthropicFactory._make_image_block_param"]param = "prepped_image"rationale = "Factory from source: builds the result from the prepped_image; single operand."-["pipelex/plugins/anthropic/anthropic_factory.py::AnthropicFactory.make_anthropic_client"]+["pipelex/providers/anthropic/anthropic_factory.py::AnthropicFactory.make_anthropic_client"]param = "model_handle"rationale = "Factory from source: builds the result from the model_handle; single operand."-["pipelex/plugins/anthropic/anthropic_factory.py::AnthropicFactory.make_nb_tokens_by_category"]+["pipelex/providers/anthropic/anthropic_factory.py::AnthropicFactory.make_nb_tokens_by_category"]param = "usage"rationale = "Factory from source: builds the result from the usage; single operand."-["pipelex/plugins/anthropic/anthropic_factory.py::AnthropicFactory.make_simple_messages"]+["pipelex/providers/anthropic/anthropic_factory.py::AnthropicFactory.make_simple_messages"]param = "llm_job"rationale = "Factory from source: builds the result from the llm_job; single operand."-["pipelex/plugins/anthropic/anthropic_factory.py::AnthropicFactory.make_user_message"]+["pipelex/providers/anthropic/anthropic_factory.py::AnthropicFactory.make_user_message"]param = "llm_job"rationale = "Factory from source: builds the result from the llm_job; single operand."-["pipelex/plugins/anthropic/anthropic_factory.py::AnthropicFactory.openai_typed_user_message"]+["pipelex/providers/anthropic/anthropic_factory.py::AnthropicFactory.openai_typed_user_message"]param = "user_content_txt"rationale = "Factory from source: builds the result from the user_content_txt; single operand."-["pipelex/plugins/anthropic/anthropic_list.py::_display_anthropic_models_flat"]+["pipelex/providers/anthropic/anthropic_list.py::_display_anthropic_models_flat"]param = "models"rationale = "Verb–object: renders the model list; single operand."-["pipelex/plugins/anthropic/anthropic_list.py::_display_anthropic_models_table"]+["pipelex/providers/anthropic/anthropic_list.py::_display_anthropic_models_table"]param = "models"rationale = "Verb–object: renders the model list; single operand."-["pipelex/plugins/anthropic/anthropic_llm_worker.py::AnthropicLLMWorker._build_thinking_params"]+["pipelex/providers/anthropic/anthropic_llm_worker.py::AnthropicLLMWorker._build_thinking_params"]param = "job_params"rationale = "Builds provider thinking params from the job_params; single operand."-["pipelex/plugins/anthropic/anthropic_llm_worker.py::AnthropicLLMWorker._build_thinking_params_for_budget"]+["pipelex/providers/anthropic/anthropic_llm_worker.py::AnthropicLLMWorker._build_thinking_params_for_budget"]param = "thinking_mode"rationale = "Builds provider thinking params from the thinking_mode; single operand."-["pipelex/plugins/anthropic/anthropic_llm_worker.py::AnthropicLLMWorker._build_thinking_params_for_effort"]+["pipelex/providers/anthropic/anthropic_llm_worker.py::AnthropicLLMWorker._build_thinking_params_for_effort"]param = "thinking_mode"rationale = "Builds provider thinking params from the thinking_mode; single operand."-["pipelex/plugins/anthropic/anthropic_llms.py::anthropic_list_available_models"]+["pipelex/providers/anthropic/anthropic_llms.py::anthropic_list_available_models"]param = "model_handle"rationale = "Lists the available models for the model handle; single operand."-["pipelex/plugins/anthropic/anthropic_plugin.py::AnthropicPlugin.register"]+["pipelex/providers/anthropic/anthropic_plugin.py::AnthropicPlugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/azure_rest/azure_img_gen_worker.py::AzureImgGenWorker._raise_categorized_azure_status_error"]+["pipelex/providers/azure_rest/azure_img_gen_worker.py::AzureImgGenWorker._raise_categorized_azure_status_error"]param = "exc"rationale = "Categorizes and re-raises the Azure HTTP status error; single operand."-["pipelex/plugins/azure_rest/azure_rest_plugin.py::AzureRestPlugin.register"]+["pipelex/providers/azure_rest/azure_rest_plugin.py::AzureRestPlugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/backend_extras_factory.py::BackendExtrasFactory.make_extras"]-param = "inference_model"-rationale = "Factory from source: builds the result from the inference_model; single operand."--["pipelex/plugins/bedrock/bedrock_client_protocol.py::BedrockClientProtocol.chat"]+["pipelex/providers/bedrock/bedrock_client_protocol.py::BedrockClientProtocol.chat"]param = "messages"rationale = "Protocol chat: the messages list is the payload operand; provider params keyword-only."-["pipelex/plugins/bedrock/bedrock_factory.py::BedrockFactory.make_bedrock_client"]+["pipelex/providers/bedrock/bedrock_factory.py::BedrockFactory.make_bedrock_client"]param = "model_handle"rationale = "Factory from source: builds the result from the model_handle; single operand."-["pipelex/plugins/bedrock/bedrock_factory.py::BedrockFactory.make_simple_message"]+["pipelex/providers/bedrock/bedrock_factory.py::BedrockFactory.make_simple_message"]param = "llm_job"rationale = "Factory from source: builds the result from the llm_job; single operand."-["pipelex/plugins/bedrock/bedrock_list.py::_display_bedrock_models_flat"]+["pipelex/providers/bedrock/bedrock_list.py::_display_bedrock_models_flat"]param = "models"rationale = "Verb–object: renders the model list; single operand."-["pipelex/plugins/bedrock/bedrock_list.py::_display_bedrock_models_table"]+["pipelex/providers/bedrock/bedrock_list.py::_display_bedrock_models_table"]param = "models"rationale = "Verb–object: renders the model list; single operand."-["pipelex/plugins/bedrock/bedrock_llm_worker.py::BedrockLLMWorker._validate_no_reasoning_params"]+["pipelex/providers/bedrock/bedrock_llm_worker.py::BedrockLLMWorker._validate_no_reasoning_params"]param = "job_params"rationale = "Validates the job params carry no unsupported reasoning settings; single operand."-["pipelex/plugins/bedrock/bedrock_llms.py::bedrock_list_available_models"]+["pipelex/providers/bedrock/bedrock_llms.py::bedrock_list_available_models"]param = "model_handle"rationale = "Lists the available models for the model handle; single operand."-["pipelex/plugins/bedrock/bedrock_plugin.py::BedrockPlugin.register"]-param = "registrar"-rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."--["pipelex/plugins/blackboxai/blackboxai_plugin.py::BlackboxaiPlugin.register"]-param = "registrar"-rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."--["pipelex/plugins/contract.py::PipelexPlugin.register"]+["pipelex/providers/bedrock/bedrock_plugin.py::BedrockPlugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/direct/direct_plugin.py::DirectOrchestratorPlugin.register"]+["pipelex/providers/blackboxai/blackboxai_plugin.py::BlackboxaiPlugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/discovery.py::_load_external_plugin"]-param = "entry_point"-rationale = "Loads the plugin from the entry point; single operand."--["pipelex/plugins/docling/docling_extract_worker.py::DoclingExtractWorker._extract_from_source"]+["pipelex/providers/docling/docling_extract_worker.py::DoclingExtractWorker._extract_from_source"]param = "source_uri"rationale = "Extracts from the source_uri; single operand (qualifiers keyword-only)."-["pipelex/plugins/docling/docling_factory.py::DoclingFactory.make_extract_output_from_docling_document"]+["pipelex/providers/docling/docling_factory.py::DoclingFactory.make_extract_output_from_docling_document"]param = "doc"rationale = "Factory from source: builds the result from the doc; single operand."-["pipelex/plugins/docling/docling_plugin.py::DoclingPlugin.register"]+["pipelex/providers/docling/docling_plugin.py::DoclingPlugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/fal/fal_factory.py::FalFactory.make_generated_image"]+["pipelex/providers/fal/fal_factory.py::FalFactory.make_generated_image"]param = "fal_result"rationale = "Factory from source: builds the result from the fal_result; single operand."-["pipelex/plugins/fal/fal_factory.py::FalFactory.make_generated_image_list"]+["pipelex/providers/fal/fal_factory.py::FalFactory.make_generated_image_list"]param = "fal_result"rationale = "Factory from source: builds the result from the fal_result; single operand."-["pipelex/plugins/fal/fal_img_gen_worker.py::FalImgGenWorker._submit_and_get_result"]+["pipelex/providers/fal/fal_img_gen_worker.py::FalImgGenWorker._submit_and_get_result"]param = "img_gen_job"rationale = "Submits the img-gen job and returns its result; single operand."-["pipelex/plugins/fal/fal_plugin.py::FalPlugin.register"]+["pipelex/providers/fal/fal_plugin.py::FalPlugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/fal/fal_poller.py::FalPoller._is_transient_http"]+["pipelex/providers/fal/fal_poller.py::FalPoller._is_transient_http"]param = "exc"rationale = "Predicate on the exc; single operand."-["pipelex/plugins/fal/fal_poller.py::FalPoller.poll_queue_until_complete"]+["pipelex/providers/fal/fal_poller.py::FalPoller.poll_queue_until_complete"]param = "response_dict"rationale = "Parses/consumes the response_dict; single operand."-["pipelex/plugins/gateway/gateway_completions_factory.py::GatewayCompletionsFactory._extract_content_string_from_response"]+["pipelex/providers/gateway/gateway_completions_factory.py::GatewayCompletionsFactory._extract_content_string_from_response"]param = "response"rationale = "Extracts from the response; single operand (qualifiers keyword-only)."-["pipelex/plugins/gateway/gateway_completions_factory.py::GatewayCompletionsFactory._extract_pages_from_choices_content"]+["pipelex/providers/gateway/gateway_completions_factory.py::GatewayCompletionsFactory._extract_pages_from_choices_content"]param = "response"rationale = "Extracts from the response; single operand (qualifiers keyword-only)."-["pipelex/plugins/gateway/gateway_completions_factory.py::GatewayCompletionsFactory._make_extract_output_from_response_azure"]+["pipelex/providers/gateway/gateway_completions_factory.py::GatewayCompletionsFactory._make_extract_output_from_response_azure"]param = "response"rationale = "Factory from source: builds the result from the response; single operand."-["pipelex/plugins/gateway/gateway_completions_factory.py::GatewayCompletionsFactory._make_extract_output_from_response_deepseek"]+["pipelex/providers/gateway/gateway_completions_factory.py::GatewayCompletionsFactory._make_extract_output_from_response_deepseek"]param = "response"rationale = "Factory from source: builds the result from the response; single operand."-["pipelex/plugins/gateway/gateway_completions_factory.py::GatewayCompletionsFactory._make_extract_output_from_response_linkup_fetch"]+["pipelex/providers/gateway/gateway_completions_factory.py::GatewayCompletionsFactory._make_extract_output_from_response_linkup_fetch"]param = "response"rationale = "Factory from source: builds the result from the response; single operand."-["pipelex/plugins/gateway/gateway_completions_factory.py::GatewayCompletionsFactory._make_extract_output_from_response_mistral"]+["pipelex/providers/gateway/gateway_completions_factory.py::GatewayCompletionsFactory._make_extract_output_from_response_mistral"]param = "response"rationale = "Factory from source: builds the result from the response; single operand."-["pipelex/plugins/gateway/gateway_completions_factory.py::GatewayCompletionsFactory.make_portkey_openai_client_for_completions"]+["pipelex/providers/gateway/gateway_completions_factory.py::GatewayCompletionsFactory.make_portkey_openai_client_for_completions"]param = "model_handle"rationale = "Factory from source: builds the result from the model_handle; single operand."-["pipelex/plugins/gateway/gateway_constants.py::GatewayOpenAISdkVariant.is_completions"]+["pipelex/providers/gateway/gateway_constants.py::GatewayOpenAISdkVariant.is_completions"]param = "sdk"rationale = "Predicate on the sdk; single operand."-["pipelex/plugins/gateway/gateway_constants.py::GatewayOpenAISdkVariant.is_responses"]+["pipelex/providers/gateway/gateway_constants.py::GatewayOpenAISdkVariant.is_responses"]param = "sdk"rationale = "Predicate on the sdk; single operand."-["pipelex/plugins/gateway/gateway_deck.py::GatewayDeck.get_config_id"]+["pipelex/providers/gateway/gateway_deck.py::GatewayDeck.get_config_id"]param = "headers"rationale = "Derives the gateway config id from the request headers; single operand."-["pipelex/plugins/gateway/gateway_extract_worker.py::GatewayExtractWorker._extract_base64_url"]+["pipelex/providers/gateway/gateway_extract_worker.py::GatewayExtractWorker._extract_base64_url"]param = "extract_job"rationale = "Extracts from the extract_job; single operand (qualifiers keyword-only)."-["pipelex/plugins/gateway/gateway_extract_worker.py::GatewayExtractWorker._extract_document"]+["pipelex/providers/gateway/gateway_extract_worker.py::GatewayExtractWorker._extract_document"]param = "extract_job"rationale = "Extracts from the extract_job; single operand (qualifiers keyword-only)."-["pipelex/plugins/gateway/gateway_extract_worker.py::GatewayExtractWorker._extract_web_fetch"]+["pipelex/providers/gateway/gateway_extract_worker.py::GatewayExtractWorker._extract_web_fetch"]param = "extract_job"rationale = "Extracts from the extract_job; single operand (qualifiers keyword-only)."-["pipelex/plugins/gateway/gateway_factory.py::GatewayFactory._make_gemini_image_config"]+["pipelex/providers/gateway/gateway_factory.py::GatewayFactory._make_gemini_image_config"]param = "inference_model"rationale = "Factory from source: builds the result from the inference_model; single operand."-["pipelex/plugins/gateway/gateway_factory.py::GatewayFactory.get_api_key"]+["pipelex/providers/gateway/gateway_factory.py::GatewayFactory.get_api_key"]param = "backend"rationale = "Derives the value from the backend config; single operand."-["pipelex/plugins/gateway/gateway_factory.py::GatewayFactory.get_endpoint"]+["pipelex/providers/gateway/gateway_factory.py::GatewayFactory.get_endpoint"]param = "backend"rationale = "Derives the value from the backend config; single operand."-["pipelex/plugins/gateway/gateway_factory.py::GatewayFactory.is_debug_enabled"]+["pipelex/providers/gateway/gateway_factory.py::GatewayFactory.is_debug_enabled"]param = "backend"rationale = "Predicate: reports whether debug logging is enabled for the backend; single operand."-["pipelex/plugins/gateway/gateway_factory.py::GatewayFactory.make_extras"]+["pipelex/providers/gateway/gateway_factory.py::GatewayFactory.make_extras"]param = "inference_model"rationale = "Factory from source: builds the result from the inference_model; single operand."-["pipelex/plugins/gateway/gateway_factory.py::GatewayFactory.make_portkey_client"]+["pipelex/providers/gateway/gateway_factory.py::GatewayFactory.make_portkey_client"]param = "backend"rationale = "Factory from source: builds the result from the backend; single operand."-["pipelex/plugins/gateway/gateway_plugin.py::GatewayPlugin.register"]+["pipelex/providers/gateway/gateway_plugin.py::GatewayPlugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/gateway/gateway_protocols.py::GatewayExtractProtocol.make_from_model_handle"]+["pipelex/providers/gateway/gateway_protocols.py::GatewayExtractProtocol.make_from_model_handle"]param = "model_handle"rationale = "Factory from source: builds the result from the model_handle; single operand."-["pipelex/plugins/gateway/gateway_responses_factory.py::GatewayResponsesFactory.make_portkey_openai_client_for_responses"]+["pipelex/providers/gateway/gateway_responses_factory.py::GatewayResponsesFactory.make_portkey_openai_client_for_responses"]param = "model_handle"rationale = "Factory from source: builds the result from the model_handle; single operand."-["pipelex/plugins/gateway/gateway_search_worker.py::GatewaySearchWorker._extract_content"]+["pipelex/providers/gateway/gateway_search_worker.py::GatewaySearchWorker._extract_content"]param = "response"rationale = "Extracts from the response; single operand (qualifiers keyword-only)."-["pipelex/plugins/gateway/gateway_search_worker.py::GatewaySearchWorker._extract_usage"]+["pipelex/providers/gateway/gateway_search_worker.py::GatewaySearchWorker._extract_usage"]param = "response"rationale = "Extracts from the response; single operand (qualifiers keyword-only)."-["pipelex/plugins/google/google_config.py::GoogleConfig.get_reasoning_level"]+["pipelex/providers/google/google_config.py::GoogleConfig.get_reasoning_level"]param = "effort"rationale = "Maps the reasoning effort to a provider reasoning level; single operand."-["pipelex/plugins/google/google_factory.py::GoogleFactory.extract_text_from_response"]+["pipelex/providers/google/google_factory.py::GoogleFactory.extract_text_from_response"]param = "response"rationale = "Extracts from the response; single operand (qualifiers keyword-only)."-["pipelex/plugins/google/google_factory.py::GoogleFactory.extract_token_usage"]+["pipelex/providers/google/google_factory.py::GoogleFactory.extract_token_usage"]param = "usage_metadata"rationale = "Extracts from the usage_metadata; single operand (qualifiers keyword-only)."-["pipelex/plugins/google/google_factory.py::GoogleFactory.make_google_client"]+["pipelex/providers/google/google_factory.py::GoogleFactory.make_google_client"]param = "backend"rationale = "Factory from source: builds the result from the backend; single operand."-["pipelex/plugins/google/google_factory.py::GoogleFactory.prepare_document_part"]+["pipelex/providers/google/google_factory.py::GoogleFactory.prepare_document_part"]param = "prompt_document"rationale = "Transforms the prompt_document into provider parts; single operand."-["pipelex/plugins/google/google_factory.py::GoogleFactory.prepare_image_part"]+["pipelex/providers/google/google_factory.py::GoogleFactory.prepare_image_part"]param = "prompt_image"rationale = "Transforms the prompt_image into provider parts; single operand."-["pipelex/plugins/google/google_factory.py::GoogleFactory.prepare_user_contents"]+["pipelex/providers/google/google_factory.py::GoogleFactory.prepare_user_contents"]param = "llm_prompt"rationale = "Transforms the llm_prompt into provider parts; single operand."-["pipelex/plugins/google/google_img_gen_factory.py::GoogleImgGenFactory.aspect_ratio_literal"]-param = "aspect_ratio"-rationale = "Converts the aspect ratio to its provider literal; single operand."--["pipelex/plugins/google/google_img_gen_factory.py::GoogleImgGenFactory.derive_ratio_and_size_from_exact_size"]-param = "taxonomy"-rationale = "Operates on the aspect-ratio taxonomy; the lookup keys stay keyword-only."--["pipelex/plugins/google/google_img_gen_factory.py::GoogleImgGenFactory.dimensions_for_aspect_ratio_and_size"]-param = "taxonomy"-rationale = "Operates on the aspect-ratio taxonomy; the lookup keys stay keyword-only."--["pipelex/plugins/google/google_img_gen_factory.py::GoogleImgGenFactory.grids_for_taxonomy"]-param = "taxonomy"-rationale = "Operates on the aspect-ratio taxonomy; the lookup keys stay keyword-only."--["pipelex/plugins/google/google_img_gen_factory.py::GoogleImgGenFactory.image_size_for_tier"]-param = "tier"-rationale = "Derives the image size for the size tier; single operand."--["pipelex/plugins/google/google_img_gen_factory.py::GoogleImgGenFactory.img_gen_taxonomy"]-param = "inference_model"-rationale = "Operates on the aspect-ratio taxonomy; the lookup keys stay keyword-only."--["pipelex/plugins/google/google_img_gen_factory.py::GoogleImgGenFactory.optional_img_gen_taxonomy"]-param = "inference_model"-rationale = "Operates on the aspect-ratio taxonomy; the lookup keys stay keyword-only."--["pipelex/plugins/google/google_img_gen_factory.py::GoogleImgGenFactory.resolve_image_config"]-param = "taxonomy"-rationale = "Operates on the aspect-ratio taxonomy; the lookup keys stay keyword-only."--["pipelex/plugins/google/google_list.py::_display_google_models_flat"]+["pipelex/providers/google/google_list.py::_display_google_models_flat"]param = "models"rationale = "Verb–object: renders the model list; single operand."-["pipelex/plugins/google/google_list.py::_display_google_models_table"]+["pipelex/providers/google/google_list.py::_display_google_models_table"]param = "models"rationale = "Verb–object: renders the model list; single operand."-["pipelex/plugins/google/google_llm_worker.py::GoogleLLMWorker._build_thinking_config"]+["pipelex/providers/google/google_llm_worker.py::GoogleLLMWorker._build_thinking_config"]param = "job_params"rationale = "Builds provider thinking params from the job_params; single operand."-["pipelex/plugins/google/google_llm_worker.py::GoogleLLMWorker._build_thinking_config_for_budget"]+["pipelex/providers/google/google_llm_worker.py::GoogleLLMWorker._build_thinking_config_for_budget"]param = "thinking_mode"rationale = "Builds provider thinking params from the thinking_mode; single operand."-["pipelex/plugins/google/google_llm_worker.py::GoogleLLMWorker._build_thinking_config_for_effort"]+["pipelex/providers/google/google_llm_worker.py::GoogleLLMWorker._build_thinking_config_for_effort"]param = "thinking_mode"rationale = "Builds provider thinking params from the thinking_mode; single operand."-["pipelex/plugins/google/google_plugin.py::GooglePlugin.register"]+["pipelex/providers/google/google_plugin.py::GooglePlugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/huggingface/huggingface_factory.py::HuggingFaceFactory.make_huggingface_inference_provider"]+["pipelex/providers/huggingface/huggingface_factory.py::HuggingFaceFactory.make_huggingface_inference_provider"]param = "provider_str"rationale = "Factory from source: builds the result from the provider_str; single operand."-["pipelex/plugins/huggingface/huggingface_img_gen_worker.py::HuggingFaceImgGenWorker._generate_single_image"]+["pipelex/providers/huggingface/huggingface_img_gen_worker.py::HuggingFaceImgGenWorker._generate_single_image"]param = "img_gen_job"rationale = "Generates one image from the img-gen job; single operand."-["pipelex/plugins/huggingface/huggingface_plugin.py::HuggingFacePlugin.register"]+["pipelex/providers/huggingface/huggingface_plugin.py::HuggingFacePlugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/linkup/linkup_plugin.py::LinkupPlugin.register"]+["pipelex/providers/linkup/linkup_plugin.py::LinkupPlugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/linkup/linkup_search_worker.py::LinkupSearchWorker._parse_date"]+["pipelex/providers/linkup/linkup_search_worker.py::LinkupSearchWorker._parse_date"]param = "date_str"rationale = "Parses/consumes the date_str; single operand."-["pipelex/plugins/mistral/mistral_config.py::MistralConfig.get_reasoning_level"]+["pipelex/providers/mistral/mistral_config.py::MistralConfig.get_reasoning_level"]param = "effort"rationale = "Maps the reasoning effort to a provider reasoning level; single operand."-["pipelex/plugins/mistral/mistral_extract_worker.py::MistralExtractWorker._extract_page_from_image"]+["pipelex/providers/mistral/mistral_extract_worker.py::MistralExtractWorker._extract_page_from_image"]param = "image_uri"rationale = "Extracts from the image_uri; single operand (qualifiers keyword-only)."-["pipelex/plugins/mistral/mistral_extract_worker.py::MistralExtractWorker._extract_pages_from_document"]+["pipelex/providers/mistral/mistral_extract_worker.py::MistralExtractWorker._extract_pages_from_document"]param = "document_uri"rationale = "Extracts from the document_uri; single operand (qualifiers keyword-only)."-["pipelex/plugins/mistral/mistral_factory.py::MistralFactory._clean_mistral_image_base64"]+["pipelex/providers/mistral/mistral_factory.py::MistralFactory._clean_mistral_image_base64"]param = "base64_str"rationale = "Normalizes the base64 image string; single operand."-["pipelex/plugins/mistral/mistral_factory.py::MistralFactory.make_extract_output_from_mistral_response"]+["pipelex/providers/mistral/mistral_factory.py::MistralFactory.make_extract_output_from_mistral_response"]param = "mistral_extract_response"rationale = "Factory from source: builds the result from the mistral_extract_response; single operand."-["pipelex/plugins/mistral/mistral_factory.py::MistralFactory.make_extracted_image_from_page_from_mistral_ocr_image_obj"]+["pipelex/providers/mistral/mistral_factory.py::MistralFactory.make_extracted_image_from_page_from_mistral_ocr_image_obj"]param = "mistral_ocr_image_obj"rationale = "Factory from source: builds the result from the mistral_ocr_image_obj; single operand."-["pipelex/plugins/mistral/mistral_factory.py::MistralFactory.make_mistral_client"]+["pipelex/providers/mistral/mistral_factory.py::MistralFactory.make_mistral_client"]param = "backend"rationale = "Factory from source: builds the result from the backend; single operand."-["pipelex/plugins/mistral/mistral_factory.py::MistralFactory.make_mistral_document_url"]+["pipelex/providers/mistral/mistral_factory.py::MistralFactory.make_mistral_document_url"]param = "prompt_document"rationale = "Factory from source: builds the result from the prompt_document; single operand."-["pipelex/plugins/mistral/mistral_factory.py::MistralFactory.make_mistral_image_url"]+["pipelex/providers/mistral/mistral_factory.py::MistralFactory.make_mistral_image_url"]param = "prompt_image"rationale = "Factory from source: builds the result from the prompt_image; single operand."-["pipelex/plugins/mistral/mistral_factory.py::MistralFactory.make_mistral_image_url_chunk_from_uri"]+["pipelex/providers/mistral/mistral_factory.py::MistralFactory.make_mistral_image_url_chunk_from_uri"]param = "uri"rationale = "Factory from source: builds the result from the uri; single operand."-["pipelex/plugins/mistral/mistral_factory.py::MistralFactory.make_nb_tokens_by_category"]+["pipelex/providers/mistral/mistral_factory.py::MistralFactory.make_nb_tokens_by_category"]param = "usage"rationale = "Factory from source: builds the result from the usage; single operand."-["pipelex/plugins/mistral/mistral_factory.py::MistralFactory.make_simple_messages"]+["pipelex/providers/mistral/mistral_factory.py::MistralFactory.make_simple_messages"]param = "llm_job"rationale = "Factory from source: builds the result from the llm_job; single operand."-["pipelex/plugins/mistral/mistral_factory.py::MistralFactory.make_simple_messages_openai_typed"]+["pipelex/providers/mistral/mistral_factory.py::MistralFactory.make_simple_messages_openai_typed"]param = "llm_job"rationale = "Factory from source: builds the result from the llm_job; single operand."-["pipelex/plugins/mistral/mistral_list.py::_display_mistral_models_flat"]+["pipelex/providers/mistral/mistral_list.py::_display_mistral_models_flat"]param = "models"rationale = "Verb–object: renders the model list; single operand."-["pipelex/plugins/mistral/mistral_list.py::_display_mistral_models_table"]+["pipelex/providers/mistral/mistral_list.py::_display_mistral_models_table"]param = "models"rationale = "Verb–object: renders the model list; single operand."-["pipelex/plugins/mistral/mistral_llm_worker.py::MistralLLMWorker._resolve_prompt_mode"]+["pipelex/providers/mistral/mistral_llm_worker.py::MistralLLMWorker._resolve_prompt_mode"]param = "job_params"rationale = "Resolves the prompt mode from the job params; single operand."-["pipelex/plugins/mistral/mistral_plugin.py::MistralPlugin.register"]+["pipelex/providers/mistral/mistral_plugin.py::MistralPlugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/model_handle.py::ModelHandle.make_for_inference_model"]-param = "inference_model"-rationale = "Factory from source: builds the result from the inference_model; single operand."--["pipelex/plugins/openai/openai_client_factory.py::OpenAIClientFactory.make_openai_client"]+["pipelex/providers/openai/openai_client_factory.py::OpenAIClientFactory.make_openai_client"]param = "model_handle"rationale = "Factory from source: builds the result from the model_handle; single operand."-["pipelex/plugins/openai/openai_completions_factory.py::OpenAICompletionsFactory._get_document_filename"]+["pipelex/providers/openai/openai_completions_factory.py::OpenAICompletionsFactory._get_document_filename"]param = "prompt_document"rationale = "Derives the upload filename from the prompt document; single operand."-["pipelex/plugins/openai/openai_completions_factory.py::OpenAICompletionsFactory.make_nb_tokens_by_category"]+["pipelex/providers/openai/openai_completions_factory.py::OpenAICompletionsFactory.make_nb_tokens_by_category"]param = "usage"rationale = "Factory from source: builds the result from the usage; single operand."-["pipelex/plugins/openai/openai_completions_factory.py::OpenAICompletionsFactory.make_simple_messages"]+["pipelex/providers/openai/openai_completions_factory.py::OpenAICompletionsFactory.make_simple_messages"]param = "llm_job"rationale = "Factory from source: builds the result from the llm_job; single operand."-["pipelex/plugins/openai/openai_completions_img_gen_worker.py::OpenAICompletionsImgGenWorker._build_messages_with_images"]+["pipelex/providers/openai/openai_completions_img_gen_worker.py::OpenAICompletionsImgGenWorker._build_messages_with_images"]param = "img_gen_job"rationale = "Builds the messages payload from the img-gen job; single operand."-["pipelex/plugins/openai/openai_completions_llm_worker.py::OpenAICompletionsLLMWorker._resolve_reasoning_effort"]+["pipelex/providers/openai/openai_completions_llm_worker.py::OpenAICompletionsLLMWorker._resolve_reasoning_effort"]param = "job_params"rationale = "Resolves the reasoning effort from the job params; single operand."-["pipelex/plugins/openai/openai_config.py::OpenAIConfig.get_reasoning_level"]+["pipelex/providers/openai/openai_config.py::OpenAIConfig.get_reasoning_level"]param = "effort"rationale = "Maps the reasoning effort to a provider reasoning level; single operand."-["pipelex/plugins/openai/openai_func.py::create_openai_schema_from_function"]+["pipelex/providers/openai/openai_func.py::create_openai_schema_from_function"]param = "func"rationale = "Factory from source: builds the OpenAI tool schema from the function; single operand."-["pipelex/plugins/openai/openai_func.py::create_pydantic_model_from_function"]+["pipelex/providers/openai/openai_func.py::create_pydantic_model_from_function"]param = "func"rationale = "Factory from source: builds the pydantic model from the function; single operand."-["pipelex/plugins/openai/openai_func.py::list_openai_tools"]+["pipelex/providers/openai/openai_func.py::list_openai_tools"]param = "openai_message"rationale = "Derives the tool-call list from the OpenAI message; single operand."-["pipelex/plugins/openai/openai_img_gen_factory.py::OpenAIImgGenFactory._size_to_string"]-param = "size"-rationale = "Converts the image size to its provider string; single operand."--["pipelex/plugins/openai/openai_img_gen_factory.py::OpenAIImgGenFactory.input_fidelity_for_openai_image"]-param = "input_fidelity"-rationale = "Derives the OpenAI fidelity literal from the input fidelity; single operand."--["pipelex/plugins/openai/openai_img_gen_worker.py::OpenAIImgGenWorker._get_requested_size"]+["pipelex/providers/openai/openai_img_gen_worker.py::OpenAIImgGenWorker._get_requested_size"]param = "args_dict"rationale = "Extracts the requested size from the args dict; single operand."-["pipelex/plugins/openai/openai_list.py::_display_openai_models_flat"]+["pipelex/providers/openai/openai_list.py::_display_openai_models_flat"]param = "models"rationale = "Verb–object: renders the model list; single operand."-["pipelex/plugins/openai/openai_list.py::_display_openai_models_table"]+["pipelex/providers/openai/openai_list.py::_display_openai_models_table"]param = "models"rationale = "Verb–object: renders the model list; single operand."-["pipelex/plugins/openai/openai_llms.py::openai_list_available_models"]+["pipelex/providers/openai/openai_llms.py::openai_list_available_models"]param = "model_handle"rationale = "Lists the available models for the model handle; single operand."-["pipelex/plugins/openai/openai_plugin.py::OpenAIPlugin.register"]+["pipelex/providers/openai/openai_plugin.py::OpenAIPlugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/openai/openai_responses_factory.py::OpenAIResponsesFactory._get_document_filename"]+["pipelex/providers/openai/openai_responses_factory.py::OpenAIResponsesFactory._get_document_filename"]param = "prompt_document"rationale = "Derives the upload filename from the prompt document; single operand."-["pipelex/plugins/openai/openai_responses_factory.py::OpenAIResponsesFactory.make_input_items"]+["pipelex/providers/openai/openai_responses_factory.py::OpenAIResponsesFactory.make_input_items"]param = "llm_job"rationale = "Factory from source: builds the result from the llm_job; single operand."-["pipelex/plugins/openai/openai_responses_factory.py::OpenAIResponsesFactory.make_nb_tokens_by_category"]+["pipelex/providers/openai/openai_responses_factory.py::OpenAIResponsesFactory.make_nb_tokens_by_category"]param = "usage"rationale = "Factory from source: builds the result from the usage; single operand."-["pipelex/plugins/openai/openai_responses_llm_worker.py::OpenAIResponsesLLMWorker._resolve_reasoning"]+["pipelex/providers/openai/openai_responses_llm_worker.py::OpenAIResponsesLLMWorker._resolve_reasoning"]param = "job_params"rationale = "Resolves the reasoning config from the job params; single operand."-["pipelex/plugins/openai/vertexai_factory.py::VertexAIFactory._make_api_key"]+["pipelex/providers/openai/vertexai_factory.py::VertexAIFactory._make_api_key"]param = "gcp_credentials_file_path"rationale = "Factory from source: builds the result from the gcp_credentials_file_path; single operand."-["pipelex/plugins/openai/vertexai_factory.py::VertexAIFactory._make_endpoint"]+["pipelex/providers/openai/vertexai_factory.py::VertexAIFactory._make_endpoint"]param = "gcp_project_id"rationale = "Factory from source: builds the result from the gcp_project_id; single operand."-["pipelex/plugins/openai/vertexai_factory.py::VertexAIFactory.make_endpoint_and_api_key"]+["pipelex/providers/openai/vertexai_factory.py::VertexAIFactory.make_endpoint_and_api_key"]param = "extra_config"rationale = "Factory from source: builds the result from the extra_config; single operand."-["pipelex/plugins/openrouter/openrouter_plugin.py::OpenRouterPlugin.register"]+["pipelex/providers/openrouter/openrouter_plugin.py::OpenRouterPlugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/pipe_func/pipe_func_plugin.py::PipeFuncPlugin.register"]-param = "registrar"-rationale = "Plugin entrypoint: registers into the registrar; single self-labelling operand, consistent with sibling plugins."--["pipelex/plugins/pipe_func/pipe_func_plugin.py::_make_direct_pipe_func_executor"]-param = "config"-rationale = "PipeFuncExecutorFactoryFn implementation: the registry invokes factories positionally via the Callable type."--["pipelex/plugins/portkey/portkey_completions_factory.py::PortkeyCompletionsFactory.make_portkey_openai_client_for_completions"]+["pipelex/providers/portkey/portkey_completions_factory.py::PortkeyCompletionsFactory.make_portkey_openai_client_for_completions"]param = "model_handle"rationale = "Factory from source: builds the result from the model_handle; single operand."-["pipelex/plugins/portkey/portkey_constants.py::PortkeyOpenAISdkVariant.is_completions"]+["pipelex/providers/portkey/portkey_constants.py::PortkeyOpenAISdkVariant.is_completions"]param = "sdk"rationale = "Predicate on the sdk; single operand."-["pipelex/plugins/portkey/portkey_constants.py::PortkeyOpenAISdkVariant.is_responses"]+["pipelex/providers/portkey/portkey_constants.py::PortkeyOpenAISdkVariant.is_responses"]param = "sdk"rationale = "Predicate on the sdk; single operand."-["pipelex/plugins/portkey/portkey_factory.py::PortkeyFactory.get_api_key"]+["pipelex/providers/portkey/portkey_factory.py::PortkeyFactory.get_api_key"]param = "backend"rationale = "Derives the value from the backend config; single operand."-["pipelex/plugins/portkey/portkey_factory.py::PortkeyFactory.get_endpoint"]+["pipelex/providers/portkey/portkey_factory.py::PortkeyFactory.get_endpoint"]param = "backend"rationale = "Derives the value from the backend config; single operand."-["pipelex/plugins/portkey/portkey_factory.py::PortkeyFactory.is_debug_enabled"]+["pipelex/providers/portkey/portkey_factory.py::PortkeyFactory.is_debug_enabled"]param = "backend"rationale = "Predicate: reports whether debug logging is enabled for the backend; single operand."-["pipelex/plugins/portkey/portkey_factory.py::PortkeyFactory.make_extras"]+["pipelex/providers/portkey/portkey_factory.py::PortkeyFactory.make_extras"]param = "inference_model"rationale = "Factory from source: builds the result from the inference_model; single operand."-["pipelex/plugins/portkey/portkey_plugin.py::PortkeyPlugin.register"]+["pipelex/providers/portkey/portkey_plugin.py::PortkeyPlugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/portkey/portkey_responses_factory.py::PortkeyResponsesFactory.make_portkey_openai_client_for_responses"]+["pipelex/providers/portkey/portkey_responses_factory.py::PortkeyResponsesFactory.make_portkey_openai_client_for_responses"]param = "model_handle"rationale = "Factory from source: builds the result from the model_handle; single operand."-["pipelex/plugins/pypdfium2/pypdfium2_plugin.py::Pypdfium2Plugin.register"]+["pipelex/providers/pypdfium2/pypdfium2_plugin.py::Pypdfium2Plugin.register"]param = "registrar"rationale = "Plugin protocol register: the registrar is the sole sink the plugin populates."-["pipelex/plugins/pypdfium2/pypdfium2_worker.py::Pypdfium2Worker._resolve_pdf_uri"]+["pipelex/providers/pypdfium2/pypdfium2_worker.py::Pypdfium2Worker._resolve_pdf_uri"]param = "pdf_uri"rationale = "Resolves the PDF URI to a readable local source; single operand."-["pipelex/plugins/registrar.py::PluginRegistrar.add_teardown"]-param = "callback"-rationale = "Registers the callback callable as the sole operand."--["pipelex/plugins/registrar.py::PluginRegistrar.claim_content_generator"]-param = "factory"-rationale = "Registers the factory callable as the sole operand."--["pipelex/plugins/registrar.py::PluginRegistrar.claim_isolated_execution_probe"]-param = "factory"-rationale = "Registers the factory callable as the sole operand."--["pipelex/plugins/registrar.py::PluginRegistrar.claim_pipe_func_executor"]-param = "factory"-rationale = "Registrar claim: claims the pipe-func executor hub slot with a factory; single self-labelling operand, consistent with sibling claims."--["pipelex/plugins/registrar.py::PluginRegistrar.claim_pipe_router"]-param = "factory"-rationale = "Registers the factory callable as the sole operand."--["pipelex/plugins/registrar.py::PluginRegistrar.claim_pipe_run"]-param = "factory"-rationale = "Registers the factory callable as the sole operand."--["pipelex/plugins/registrar.py::PluginRegistrar.claim_task_manager"]-param = "factory"-rationale = "Registers the factory callable as the sole operand."--["pipelex/plugins/sdk_client_registry.py::SdkClientRegistry.get"]-param = "model_handle"-rationale = "Registry getter keyed by the model handle."--["pipelex/plugins/secrets/secrets_plugin.py::SecretsPlugin.register"]+["pipelex/providers/secrets/secrets_plugin.py::SecretsPlugin.register"]param = "registrar"rationale = "Duck-typed plugin protocol: discovery invokes plugin.register(registrar) positionally."-["pipelex/plugins/secrets/secrets_plugin.py::_make_env_secrets_provider"]+["pipelex/providers/secrets/secrets_plugin.py::_make_env_secrets_provider"]param = "config"rationale = "Positional-Callable protocol: registered as a SecretsProviderFactoryFn."-["pipelex/plugins/storage/storage_plugin.py::StoragePlugin.register"]+["pipelex/providers/storage/storage_plugin.py::StoragePlugin.register"]param = "registrar"rationale = "Duck-typed plugin protocol: discovery invokes plugin.register(registrar) positionally."-["pipelex/plugins/storage/storage_plugin.py::_make_gcp_storage_provider"]+["pipelex/providers/storage/storage_plugin.py::_make_gcp_storage_provider"]param = "config"rationale = "Positional-Callable protocol: registered as a StorageProviderFactoryFn."-["pipelex/plugins/storage/storage_plugin.py::_make_in_memory_storage_provider"]+["pipelex/providers/storage/storage_plugin.py::_make_in_memory_storage_provider"]param = "config"rationale = "Positional-Callable protocol: registered as a StorageProviderFactoryFn."-["pipelex/plugins/storage/storage_plugin.py::_make_local_storage_provider"]+["pipelex/providers/storage/storage_plugin.py::_make_local_storage_provider"]param = "config"rationale = "Positional-Callable protocol: registered as a StorageProviderFactoryFn."-["pipelex/plugins/storage/storage_plugin.py::_make_s3_storage_provider"]+["pipelex/providers/storage/storage_plugin.py::_make_s3_storage_provider"]param = "config"rationale = "Positional-Callable protocol: registered as a StorageProviderFactoryFn."diff --git a/tests/CLAUDE.md b/tests/CLAUDE.mdindex f63ac1aaf..dbe469fa5 100644--- a/tests/CLAUDE.md+++ b/tests/CLAUDE.md@@ -19,17 +19,22 @@ Replace `<paths>` with the test directories from the mapping below. Concatenate|---|---|| `pipelex/builder/` | `tests/unit/pipelex/builder/ tests/integration/pipelex/builder/` || `pipelex/cli/` | `tests/unit/pipelex/cli/ tests/integration/pipelex/cli/ tests/e2e/pipelex/cli/` |+| `pipelex/codegen/` | `tests/unit/pipelex/codegen/ tests/integration/pipelex/codegen/` || `pipelex/cogt/` | `tests/unit/pipelex/cogt/ tests/integration/pipelex/cogt/` || `pipelex/core/` | `tests/unit/pipelex/core/ tests/integration/pipelex/core/ tests/integration/pipelex/pipes/` || `pipelex/graph/` | `tests/unit/pipelex/graph/ tests/e2e/pipelex/graph/` || `pipelex/kit/` | `tests/unit/pipelex/kit/ tests/integration/pipelex/kit/` || `pipelex/language/` | `tests/unit/pipelex/language/ tests/integration/pipelex/language/` || `pipelex/libraries/` | `tests/unit/pipelex/libraries/ tests/integration/pipelex/libraries/` |+| `pipelex/mthds_parsing/` | `tests/unit/pipelex/mthds_parsing/ tests/integration/pipelex/language/` || `pipelex/pipe_controllers/` | `tests/unit/pipelex/pipe_controllers/ tests/integration/pipelex/pipes/` |+| `pipelex/pipe_machinery/` | `tests/unit/pipelex/pipe_machinery/ tests/integration/pipelex/pipe_machinery/` || `pipelex/pipe_operators/` | `tests/unit/pipelex/pipe_operators/ tests/integration/pipelex/pipes/` || `pipelex/pipe_run/` | `tests/unit/pipelex/pipe_run/ tests/integration/pipelex/pipes/` |+| `pipelex/pipe_signature/` | `tests/unit/pipelex/pipe_signature/ tests/integration/pipelex/pipe_signature/` || `pipelex/pipeline/` | `tests/integration/pipelex/pipeline/` || `pipelex/plugins/` | `tests/unit/pipelex/plugins/ tests/integration/pipelex/plugins/` |+| `pipelex/providers/` | `tests/unit/pipelex/providers/ tests/integration/pipelex/providers/` || `pipelex/system/` | `tests/unit/pipelex/system/ tests/integration/pipelex/system/` || `pipelex/tools/` | `tests/unit/pipelex/tools/ tests/integration/pipelex/tools/` |diff --git a/tests/data/errors/error_identity.txt b/tests/data/errors/error_identity.txtnew file mode 100644index 000000000..788a312cd--- /dev/null+++ b/tests/data/errors/error_identity.txt@@ -0,0 +1,304 @@+# Wire identity of every PipelexError subclass: error_type | title | type_uri+#+# `error_type` is the Python class name, verbatim — base_exceptions.py builds it as+# `type(self).__name__`. Consumers outside this repo switch on that string, so renaming+# an error class is a wire break that no build anywhere catches: they stay green and+# silently fall through to a generic branch. A diff in this file IS that wire break.+#+# Generated — do not hand-edit. Regenerate with `make generate-error-identity` (alias `make gei`).+# Verified by tests/unit/pipelex/errors/test_error_identity_snapshot.py.++AmbiguousInputsFilesError | Ambiguous inputs files | https://docs.pipelex.com/latest/errors/ambiguous-inputs-files-error/+AnthropicFactoryError | Anthropic factory | https://docs.pipelex.com/latest/errors/anthropic-factory-error/+AnthropicModelListingError | Anthropic model listing | https://docs.pipelex.com/latest/errors/anthropic-model-listing-error/+AnthropicSDKUnsupportedError | Anthropic SDK unsupported | https://docs.pipelex.com/latest/errors/anthropic-sdk-unsupported-error/+AnthropicWorkerConfigurationError | Anthropic worker configuration | https://docs.pipelex.com/latest/errors/anthropic-worker-configuration-error/+ArgumentTypeError | Argument type | https://docs.pipelex.com/latest/errors/argument-type-error/+AsyncExecutionNotEnabledError | Async execution not enabled | https://docs.pipelex.com/latest/errors/async-execution-not-enabled-error/+AwsCredentialsError | Aws credentials | https://docs.pipelex.com/latest/errors/aws-credentials-error/+AzureCredentialsError | Azure credentials | https://docs.pipelex.com/latest/errors/azure-credentials-error/+BatchParamsError | Batch params | https://docs.pipelex.com/latest/errors/batch-params-error/+BedrockFactoryError | Bedrock factory | https://docs.pipelex.com/latest/errors/bedrock-factory-error/+BedrockWorkerConfigurationError | Bedrock worker configuration | https://docs.pipelex.com/latest/errors/bedrock-worker-configuration-error/+BrokenPluginError | Broken plugin | https://docs.pipelex.com/latest/errors/broken-plugin-error/+BundleElaboratorError | Bundle elaborator | https://docs.pipelex.com/latest/errors/bundle-elaborator-error/+CodegenError | Codegen error | https://docs.pipelex.com/latest/errors/codegen-error/+CodegenLockError | Codegen lock error | https://docs.pipelex.com/latest/errors/codegen-lock-error/+CodegenStampError | Codegen stamp error | https://docs.pipelex.com/latest/errors/codegen-stamp-error/+CogtError | AI inference failed | https://docs.pipelex.com/latest/errors/cogt-error/+ConceptCodeError | Concept code | https://docs.pipelex.com/latest/errors/concept-code-error/+ConceptError | Concept error | https://docs.pipelex.com/latest/errors/concept-error/+ConceptFactoryError | Concept factory | https://docs.pipelex.com/latest/errors/concept-factory-error/+ConceptLibraryConceptNotFoundError | Concept library concept not found | https://docs.pipelex.com/latest/errors/concept-library-concept-not-found-error/+ConceptLibraryError | Concept library | https://docs.pipelex.com/latest/errors/concept-library-error/+ConceptLoadingError | Concept loading | https://docs.pipelex.com/latest/errors/concept-loading-error/+ConceptRefineError | Concept refine | https://docs.pipelex.com/latest/errors/concept-refine-error/+ConceptSpecError | Concept spec | https://docs.pipelex.com/latest/errors/concept-spec-error/+ConceptStringError | Concept string | https://docs.pipelex.com/latest/errors/concept-string-error/+ConceptStructureGeneratorError | Concept structure generator | https://docs.pipelex.com/latest/errors/concept-structure-generator-error/+ConceptStructureValidationError | Concept structure validation | https://docs.pipelex.com/latest/errors/concept-structure-validation-error/+ConfigModelError | Config model | https://docs.pipelex.com/latest/errors/config-model-error/+ConfigValidationError | Config validation | https://docs.pipelex.com/latest/errors/config-validation-error/+ConstructFieldBlueprintTypeError | Construct field blueprint type | https://docs.pipelex.com/latest/errors/construct-field-blueprint-type-error/+ConstructFieldBlueprintValueError | Construct field blueprint value | https://docs.pipelex.com/latest/errors/construct-field-blueprint-value-error/+ContextProviderError | Context provider | https://docs.pipelex.com/latest/errors/context-provider-error/+CoreUnconditionalPluginDisabledError | Core unconditional plugin disabled | https://docs.pipelex.com/latest/errors/core-unconditional-plugin-disabled-error/+CostRegistryError | Cost registry | https://docs.pipelex.com/latest/errors/cost-registry-error/+CrateNormalizationError | Crate normalization error | https://docs.pipelex.com/latest/errors/crate-normalization-error/+CredentialsError | Missing or invalid credentials | https://docs.pipelex.com/latest/errors/credentials-error/+CsvCoercionError | CSV coercion error | https://docs.pipelex.com/latest/errors/csv-coercion-error/+CsvColumnError | CSV column error | https://docs.pipelex.com/latest/errors/csv-column-error/+CsvError | CSV error | https://docs.pipelex.com/latest/errors/csv-error/+CsvFlatnessError | CSV flatness error | https://docs.pipelex.com/latest/errors/csv-flatness-error/+CsvReadError | CSV read error | https://docs.pipelex.com/latest/errors/csv-read-error/+DateContentError | Date content | https://docs.pipelex.com/latest/errors/date-content-error/+DeliveryError | Delivery | https://docs.pipelex.com/latest/errors/delivery-error/+DomainCodeError | Domain code | https://docs.pipelex.com/latest/errors/domain-code-error/+DomainFactoryError | Domain factory | https://docs.pipelex.com/latest/errors/domain-factory-error/+DomainLibraryError | Domain library | https://docs.pipelex.com/latest/errors/domain-library-error/+DomainLoadingError | Domain loading | https://docs.pipelex.com/latest/errors/domain-loading-error/+DriftAckError | Drift ack | https://docs.pipelex.com/latest/errors/drift-ack-error/+DriftError | Drift | https://docs.pipelex.com/latest/errors/drift-error/+DriftGitError | Drift git | https://docs.pipelex.com/latest/errors/drift-git-error/+DriftManifestError | Drift manifest | https://docs.pipelex.com/latest/errors/drift-manifest-error/+DryRunError | Dry run | https://docs.pipelex.com/latest/errors/dry-run-error/+DryRunGraphNotProducedError | Dry run graph not produced | https://docs.pipelex.com/latest/errors/dry-run-graph-not-produced-error/+DryRunMockBuildError | Dry run mock build | https://docs.pipelex.com/latest/errors/dry-run-mock-build-error/+DryRunObjectFidelityError | Dry run object fidelity | https://docs.pipelex.com/latest/errors/dry-run-object-fidelity-error/+DuplicateBundleValidatorError | Duplicate bundle validator | https://docs.pipelex.com/latest/errors/duplicate-bundle-validator-error/+DuplicateHttpErrorMapperError | Duplicate http error mapper | https://docs.pipelex.com/latest/errors/duplicate-http-error-mapper-error/+DuplicateInferenceBackendError | Duplicate inference backend | https://docs.pipelex.com/latest/errors/duplicate-inference-backend-error/+DuplicateModelListerError | Duplicate model lister | https://docs.pipelex.com/latest/errors/duplicate-model-lister-error/+DuplicateOrchestratorError | Duplicate orchestrator | https://docs.pipelex.com/latest/errors/duplicate-orchestrator-error/+DuplicatePipeFuncExecutorError | Duplicate pipe func executor | https://docs.pipelex.com/latest/errors/duplicate-pipe-func-executor-error/+DuplicateSecretsProviderError | Duplicate secrets provider | https://docs.pipelex.com/latest/errors/duplicate-secrets-provider-error/+DuplicateStorageProviderError | Duplicate storage provider | https://docs.pipelex.com/latest/errors/duplicate-storage-provider-error/+EnvVarNotFoundError | Environment variable not set | https://docs.pipelex.com/latest/errors/env-var-not-found-error/+EventLogError | Event log | https://docs.pipelex.com/latest/errors/event-log-error/+EventLogReadError | Event log read | https://docs.pipelex.com/latest/errors/event-log-read-error/+EventLogSetupError | Event log setup | https://docs.pipelex.com/latest/errors/event-log-setup-error/+ExplicitConceptIncompatibleError | Explicit concept incompatible | https://docs.pipelex.com/latest/errors/explicit-concept-incompatible-error/+ExtractCapabilityError | Extract capability | https://docs.pipelex.com/latest/errors/extract-capability-error/+ExtractHandleNotFoundError | Extract handle not found | https://docs.pipelex.com/latest/errors/extract-handle-not-found-error/+ExtractInputError | Extract input | https://docs.pipelex.com/latest/errors/extract-input-error/+ExtractJobFailureError | Extract job failure | https://docs.pipelex.com/latest/errors/extract-job-failure-error/+ExtractModelNotFoundError | Extract model not found | https://docs.pipelex.com/latest/errors/extract-model-not-found-error/+ExtractOutputError | Extract output | https://docs.pipelex.com/latest/errors/extract-output-error/+FalCredentialsError | Fal credentials | https://docs.pipelex.com/latest/errors/fal-credentials-error/+FatalError | Fatal error | https://docs.pipelex.com/latest/errors/fatal-error/+FileTypeError | File type | https://docs.pipelex.com/latest/errors/file-type-error/+FixTransactionError | Fix transaction | https://docs.pipelex.com/latest/errors/fix-transaction-error/+FixWriteConflictError | Fix write conflict | https://docs.pipelex.com/latest/errors/fix-write-conflict-error/+FuncRegistryError | Func registry | https://docs.pipelex.com/latest/errors/func-registry-error/+GatewayApiKeyMissingError | Gateway api key missing | https://docs.pipelex.com/latest/errors/gateway-api-key-missing-error/+GatewayConfigMergeError | Gateway config merge | https://docs.pipelex.com/latest/errors/gateway-config-merge-error/+GatewayCredentialsError | Gateway credentials | https://docs.pipelex.com/latest/errors/gateway-credentials-error/+GatewayDeckError | Gateway deck | https://docs.pipelex.com/latest/errors/gateway-deck-error/+GatewayDoNotTrackConflictError | Gateway do not track conflict | https://docs.pipelex.com/latest/errors/gateway-do-not-track-conflict-error/+GatewayError | Gateway | https://docs.pipelex.com/latest/errors/gateway-error/+GatewayExtractResponseError | Gateway extract response | https://docs.pipelex.com/latest/errors/gateway-extract-response-error/+GatewayFactoryError | Gateway factory | https://docs.pipelex.com/latest/errors/gateway-factory-error/+GatewaySearchResponseError | Gateway search response | https://docs.pipelex.com/latest/errors/gateway-search-response-error/+GatewayTelemetryManagerInjectedError | Gateway telemetry manager injected | https://docs.pipelex.com/latest/errors/gateway-telemetry-manager-injected-error/+GatewayTermsNotAcceptedError | Gateway terms not accepted | https://docs.pipelex.com/latest/errors/gateway-terms-not-accepted-error/+GatewayUnknownModelError | Gateway unknown model | https://docs.pipelex.com/latest/errors/gateway-unknown-model-error/+GeneratedImageError | Generated image | https://docs.pipelex.com/latest/errors/generated-image-error/+GoogleImgGenWorkerError | Google img gen worker | https://docs.pipelex.com/latest/errors/google-img-gen-worker-error/+GoogleLLMWorkerError | Google LLM worker | https://docs.pipelex.com/latest/errors/google-llm-worker-error/+GraphSpecError | Graph spec | https://docs.pipelex.com/latest/errors/graph-spec-error/+GraphSpecValidationError | Graph spec validation | https://docs.pipelex.com/latest/errors/graph-spec-validation-error/+HubSlotAlreadyClaimedError | Hub slot already claimed | https://docs.pipelex.com/latest/errors/hub-slot-already-claimed-error/+ImageContentError | Image content | https://docs.pipelex.com/latest/errors/image-content-error/+ImgGenGeneratedTypeError | Img gen generated type | https://docs.pipelex.com/latest/errors/img-gen-generated-type-error/+ImgGenGenerationError | Img gen generation | https://docs.pipelex.com/latest/errors/img-gen-generation-error/+ImgGenHandleNotFoundError | Img gen handle not found | https://docs.pipelex.com/latest/errors/img-gen-handle-not-found-error/+ImgGenModelNotFoundError | Img gen model not found | https://docs.pipelex.com/latest/errors/img-gen-model-not-found-error/+ImgGenParameterError | Img gen parameter | https://docs.pipelex.com/latest/errors/img-gen-parameter-error/+ImgGenPromptError | Img gen prompt | https://docs.pipelex.com/latest/errors/img-gen-prompt-error/+ImgGenSettingsValidationError | Img gen settings validation | https://docs.pipelex.com/latest/errors/img-gen-settings-validation-error/+InferenceBackendCredentialsError | Inference backend credentials | https://docs.pipelex.com/latest/errors/inference-backend-credentials-error/+InferenceBackendLibraryError | Inference backend library | https://docs.pipelex.com/latest/errors/inference-backend-library-error/+InferenceBackendLibraryNotFoundError | Inference backend library not found | https://docs.pipelex.com/latest/errors/inference-backend-library-not-found-error/+InferenceBackendLibraryValidationError | Inference backend library validation | https://docs.pipelex.com/latest/errors/inference-backend-library-validation-error/+InferenceBackendNotFoundError | Inference backend not found | https://docs.pipelex.com/latest/errors/inference-backend-not-found-error/+InferenceModelSpecError | Inference model spec | https://docs.pipelex.com/latest/errors/inference-model-spec-error/+InferenceSetupRequiredError | Inference setup required | https://docs.pipelex.com/latest/errors/inference-setup-required-error/+InputShapingError | Input shaping | https://docs.pipelex.com/latest/errors/input-shaping-error/+InputStuffSpecNotFoundError | Input stuff spec not found | https://docs.pipelex.com/latest/errors/input-stuff-spec-not-found-error/+InputStuffSpecsError | Input stuff specs | https://docs.pipelex.com/latest/errors/input-stuff-specs-error/+InputStuffSpecsFactoryError | Input stuff specs factory | https://docs.pipelex.com/latest/errors/input-stuff-specs-factory-error/+Jinja2ContextError | Jinja 2 context | https://docs.pipelex.com/latest/errors/jinja2-context-error/+Jinja2DetectVariablesError | Jinja 2 detect variables | https://docs.pipelex.com/latest/errors/jinja2-detect-variables-error/+Jinja2StuffError | Jinja 2 stuff | https://docs.pipelex.com/latest/errors/jinja2-stuff-error/+Jinja2TemplateRenderError | Jinja 2 template render | https://docs.pipelex.com/latest/errors/jinja2-template-render-error/+Jinja2TemplateSyntaxError | Jinja 2 template syntax | https://docs.pipelex.com/latest/errors/jinja2-template-syntax-error/+JobMetadataError | Job metadata | https://docs.pipelex.com/latest/errors/job-metadata-error/+JsonTypeError | Json type | https://docs.pipelex.com/latest/errors/json-type-error/+KitError | Kit | https://docs.pipelex.com/latest/errors/kit-error/+KitIndexLoadingError | Kit index loading | https://docs.pipelex.com/latest/errors/kit-index-loading-error/+LLMAssignmentError | LLM assignment | https://docs.pipelex.com/latest/errors/llm-assignment-error/+LLMCapabilityError | LLM capability | https://docs.pipelex.com/latest/errors/llm-capability-error/+LLMCompletionError | LLM completion | https://docs.pipelex.com/latest/errors/llm-completion-error/+LLMConfigError | LLM config | https://docs.pipelex.com/latest/errors/llm-config-error/+LLMHandleNotFoundError | LLM handle not found | https://docs.pipelex.com/latest/errors/llm-handle-not-found-error/+LLMModelNotFoundError | LLM model not found | https://docs.pipelex.com/latest/errors/llm-model-not-found-error/+LLMPromptParameterError | LLM prompt parameter | https://docs.pipelex.com/latest/errors/llm-prompt-parameter-error/+LLMPromptSpecError | LLM prompt spec | https://docs.pipelex.com/latest/errors/llm-prompt-spec-error/+LLMPromptTemplateInputsError | LLM prompt template inputs | https://docs.pipelex.com/latest/errors/llm-prompt-template-inputs-error/+LLMSettingsValidationError | LLM settings validation | https://docs.pipelex.com/latest/errors/llm-settings-validation-error/+LangfuseCredentialsError | Langfuse credentials | https://docs.pipelex.com/latest/errors/langfuse-credentials-error/+LibraryError | Library error | https://docs.pipelex.com/latest/errors/library-error/+LibraryLoadingError | Library loading | https://docs.pipelex.com/latest/errors/library-loading-error/+ListWhereSingularError | List where singular | https://docs.pipelex.com/latest/errors/list-where-singular-error/+MissingBundleValidatorError | Missing bundle validator | https://docs.pipelex.com/latest/errors/missing-bundle-validator-error/+MissingDependencyError | Missing dependency | https://docs.pipelex.com/latest/errors/missing-dependency-error/+MissingOrchestratorError | Missing orchestrator | https://docs.pipelex.com/latest/errors/missing-orchestrator-error/+MistralExtractResponseError | Mistral extract response | https://docs.pipelex.com/latest/errors/mistral-extract-response-error/+MistralModelListingError | Mistral model listing | https://docs.pipelex.com/latest/errors/mistral-model-listing-error/+MistralPluginError | Mistral plugin | https://docs.pipelex.com/latest/errors/mistral-plugin-error/+MistralWorkerConfigurationError | Mistral worker configuration | https://docs.pipelex.com/latest/errors/mistral-worker-configuration-error/+ModelChoiceNotFoundError | Model choice not found | https://docs.pipelex.com/latest/errors/model-choice-not-found-error/+ModelDeckNotFoundError | Model deck not found | https://docs.pipelex.com/latest/errors/model-deck-not-found-error/+ModelDeckPresetValidatonError | Model deck preset validaton | https://docs.pipelex.com/latest/errors/model-deck-preset-validaton-error/+ModelDeckValidationError | Model deck validation | https://docs.pipelex.com/latest/errors/model-deck-validation-error/+ModelDeckValidatonError | Model deck validaton | https://docs.pipelex.com/latest/errors/model-deck-validaton-error/+ModelListingUnsupportedError | Model listing unsupported | https://docs.pipelex.com/latest/errors/model-listing-unsupported-error/+ModelManagerError | Model manager | https://docs.pipelex.com/latest/errors/model-manager-error/+ModelNotFoundError | Model not found | https://docs.pipelex.com/latest/errors/model-not-found-error/+ModelReferenceParseError | Model reference parse | https://docs.pipelex.com/latest/errors/model-reference-parse-error/+ModelWaterfallError | Model waterfall | https://docs.pipelex.com/latest/errors/model-waterfall-error/+ModuleFileError | Module file | https://docs.pipelex.com/latest/errors/module-file-error/+MthdsParserError | MTHDS parser | https://docs.pipelex.com/latest/errors/mthds-parser-error/+MultiplicityCountMismatchError | Multiplicity count mismatch | https://docs.pipelex.com/latest/errors/multiplicity-count-mismatch-error/+NativeConceptDefinitionError | Native concept definition | https://docs.pipelex.com/latest/errors/native-concept-definition-error/+NeitherUrlNorDataError | Neither url nor data | https://docs.pipelex.com/latest/errors/neither-url-nor-data-error/+NestedKeyConflictError | Nested key conflict | https://docs.pipelex.com/latest/errors/nested-key-conflict-error/+NullInputError | Null input | https://docs.pipelex.com/latest/errors/null-input-error/+OpenAIClientFactoryError | OpenAI client factory error | https://docs.pipelex.com/latest/errors/open-ai-client-factory-error/+OptionalValueAbsentError | Optional value absent | https://docs.pipelex.com/latest/errors/optional-value-absent-error/+PipeBatchFactoryError | Pipe batch factory | https://docs.pipelex.com/latest/errors/pipe-batch-factory-error/+PipeComposeError | Pipe compose | https://docs.pipelex.com/latest/errors/pipe-compose-error/+PipeComposeFactoryError | Pipe compose factory | https://docs.pipelex.com/latest/errors/pipe-compose-factory-error/+PipeConditionFactoryError | Pipe condition factory | https://docs.pipelex.com/latest/errors/pipe-condition-factory-error/+PipeControllerError | Pipe controller | https://docs.pipelex.com/latest/errors/pipe-controller-error/+PipeControllerOutputConceptMismatchError | Pipe controller output concept mismatch | https://docs.pipelex.com/latest/errors/pipe-controller-output-concept-mismatch-error/+PipeExecutionError | Pipe execution | https://docs.pipelex.com/latest/errors/pipe-execution-error/+PipeExtractFactoryError | Pipe extract factory | https://docs.pipelex.com/latest/errors/pipe-extract-factory-error/+PipeFactoryError | Pipe factory | https://docs.pipelex.com/latest/errors/pipe-factory-error/+PipeFuncExecutionError | Pipe func execution | https://docs.pipelex.com/latest/errors/pipe-func-execution-error/+PipeFuncTransportError | Pipe func transport | https://docs.pipelex.com/latest/errors/pipe-func-transport-error/+PipeIOContractError | Pipe IO contract | https://docs.pipelex.com/latest/errors/pipe-io-contract-error/+PipeImgGenFactoryError | Pipe img gen factory | https://docs.pipelex.com/latest/errors/pipe-img-gen-factory-error/+PipeImgGenRunError | Pipe img gen run | https://docs.pipelex.com/latest/errors/pipe-img-gen-run-error/+PipeInputError | Pipe input | https://docs.pipelex.com/latest/errors/pipe-input-error/+PipeInputsFactoryError | Pipe inputs factory | https://docs.pipelex.com/latest/errors/pipe-inputs-factory-error/+PipeJobError | Pipe job | https://docs.pipelex.com/latest/errors/pipe-job-error/+PipeLLMFactoryError | Pipe LLM factory | https://docs.pipelex.com/latest/errors/pipe-llm-factory-error/+PipeLibraryError | Pipe library | https://docs.pipelex.com/latest/errors/pipe-library-error/+PipeLoadingError | Pipe loading | https://docs.pipelex.com/latest/errors/pipe-loading-error/+PipeNotFoundError | Pipe not found | https://docs.pipelex.com/latest/errors/pipe-not-found-error/+PipeOperatorModelAvailabilityError | Pipe operator model availability | https://docs.pipelex.com/latest/errors/pipe-operator-model-availability-error/+PipeOperatorModelChoiceError | Pipe operator model choice | https://docs.pipelex.com/latest/errors/pipe-operator-model-choice-error/+PipeParallelFactoryError | Pipe parallel factory | https://docs.pipelex.com/latest/errors/pipe-parallel-factory-error/+PipeRouterError | Pipe router | https://docs.pipelex.com/latest/errors/pipe-router-error/+PipeRunError | Pipe run | https://docs.pipelex.com/latest/errors/pipe-run-error/+PipeRunInputsError | Pipe run inputs | https://docs.pipelex.com/latest/errors/pipe-run-inputs-error/+PipeRunParamsError | Pipe run params | https://docs.pipelex.com/latest/errors/pipe-run-params-error/+PipeSearchError | Pipe search | https://docs.pipelex.com/latest/errors/pipe-search-error/+PipeSearchFactoryError | Pipe search factory | https://docs.pipelex.com/latest/errors/pipe-search-factory-error/+PipeSequenceFactoryError | Pipe sequence factory | https://docs.pipelex.com/latest/errors/pipe-sequence-factory-error/+PipeSignatureNotExecutableError | Pipe signature not executable | https://docs.pipelex.com/latest/errors/pipe-signature-not-executable-error/+PipeSpecError | Pipe spec | https://docs.pipelex.com/latest/errors/pipe-spec-error/+PipeStackOverflowError | Pipe stack overflow | https://docs.pipelex.com/latest/errors/pipe-stack-overflow-error/+PipelexBridgeDispatchError | Pipelex bridge dispatch | https://docs.pipelex.com/latest/errors/pipelex-bridge-dispatch-error/+PipelexBundleSpecBlueprintError | Pipelex bundle spec blueprint | https://docs.pipelex.com/latest/errors/pipelex-bundle-spec-blueprint-error/+PipelexCLIError | Pipelex CLI | https://docs.pipelex.com/latest/errors/pipelex-cli-error/+PipelexConfigError | Pipelex config | https://docs.pipelex.com/latest/errors/pipelex-config-error/+PipelexError | Pipelex error | https://docs.pipelex.com/latest/errors/pipelex-error/+PipelexRuntimeBridgeError | Pipelex runtime bridge | https://docs.pipelex.com/latest/errors/pipelex-runtime-bridge-error/+PipelexServiceConfigValidationError | Pipelex service config validation | https://docs.pipelex.com/latest/errors/pipelex-service-config-validation-error/+PipelexServiceError | Pipelex service | https://docs.pipelex.com/latest/errors/pipelex-service-error/+PipelexSetupError | Pipelex setup | https://docs.pipelex.com/latest/errors/pipelex-setup-error/+PipelexUnexpectedError | Unexpected internal error | https://docs.pipelex.com/latest/errors/pipelex-unexpected-error/+PipelineExecutionError | Pipeline execution | https://docs.pipelex.com/latest/errors/pipeline-execution-error/+PipelineInputContentError | Pipeline input content | https://docs.pipelex.com/latest/errors/pipeline-input-content-error/+PipelineManagerAlreadyExistsError | Pipeline manager already exists | https://docs.pipelex.com/latest/errors/pipeline-manager-already-exists-error/+PipelineManagerNotFoundError | Pipeline manager not found | https://docs.pipelex.com/latest/errors/pipeline-manager-not-found-error/+PluginApiVersionMismatchError | Plugin api version mismatch | https://docs.pipelex.com/latest/errors/plugin-api-version-mismatch-error/+PluginError | Plugin error | https://docs.pipelex.com/latest/errors/plugin-error/+PortkeyCredentialsError | Portkey credentials | https://docs.pipelex.com/latest/errors/portkey-credentials-error/+PortkeyError | Portkey | https://docs.pipelex.com/latest/errors/portkey-error/+PortkeyFactoryError | Portkey factory | https://docs.pipelex.com/latest/errors/portkey-factory-error/+PromptDocumentFactoryError | Prompt document factory | https://docs.pipelex.com/latest/errors/prompt-document-factory-error/+PromptImageFactoryError | Prompt image factory | https://docs.pipelex.com/latest/errors/prompt-image-factory-error/+PromptImageFormatError | Prompt image format | https://docs.pipelex.com/latest/errors/prompt-image-format-error/+PyPdfium2RendererError | Py pdfium 2 renderer | https://docs.pipelex.com/latest/errors/py-pdfium2-renderer-error/+ReadinessCheckError | Readiness check | https://docs.pipelex.com/latest/errors/readiness-check-error/+RemoteConfigFetchError | Remote config fetch | https://docs.pipelex.com/latest/errors/remote-config-fetch-error/+RemoteConfigUnavailableError | Remote config unavailable | https://docs.pipelex.com/latest/errors/remote-config-unavailable-error/+RemoteConfigValidationError | Remote config validation | https://docs.pipelex.com/latest/errors/remote-config-validation-error/+ReportingManagerError | Reporting manager | https://docs.pipelex.com/latest/errors/reporting-manager-error/+RoutingProfileBlueprintValueError | Routing profile blueprint value | https://docs.pipelex.com/latest/errors/routing-profile-blueprint-value-error/+RoutingProfileDisabledBackendError | Routing profile disabled backend | https://docs.pipelex.com/latest/errors/routing-profile-disabled-backend-error/+RoutingProfileLibraryError | Routing profile library | https://docs.pipelex.com/latest/errors/routing-profile-library-error/+RoutingProfileLibraryNotFoundError | Routing profile library not found | https://docs.pipelex.com/latest/errors/routing-profile-library-not-found-error/+SdkTypeError | Sdk type | https://docs.pipelex.com/latest/errors/sdk-type-error/+SearchHandleNotFoundError | Search handle not found | https://docs.pipelex.com/latest/errors/search-handle-not-found-error/+SearchJobFailureError | Search job failure | https://docs.pipelex.com/latest/errors/search-job-failure-error/+SearchModelNotFoundError | Search model not found | https://docs.pipelex.com/latest/errors/search-model-not-found-error/+SecretNotFoundError | Secret not found | https://docs.pipelex.com/latest/errors/secret-not-found-error/+SecurityError | Security policy violation | https://docs.pipelex.com/latest/errors/security-error/+SsrfBlockedError | Outbound request blocked (SSRF guard) | https://docs.pipelex.com/latest/errors/ssrf-blocked-error/+StorageConfigError | Storage config | https://docs.pipelex.com/latest/errors/storage-config-error/+StorageDeliveryError | Storage delivery | https://docs.pipelex.com/latest/errors/storage-delivery-error/+StorageError | Storage error | https://docs.pipelex.com/latest/errors/storage-error/+StorageFileNotFoundError | Storage file not found | https://docs.pipelex.com/latest/errors/storage-file-not-found-error/+StorageGcpCredentialsError | Storage gcp credentials | https://docs.pipelex.com/latest/errors/storage-gcp-credentials-error/+StorageGcpError | Storage gcp | https://docs.pipelex.com/latest/errors/storage-gcp-error/+StorageInvalidKeyError | Storage invalid key | https://docs.pipelex.com/latest/errors/storage-invalid-key-error/+StorageInvalidUriError | Storage invalid uri | https://docs.pipelex.com/latest/errors/storage-invalid-uri-error/+StorageLocalError | Local storage error | https://docs.pipelex.com/latest/errors/storage-local-error/+StorageS3Error | S3 storage error | https://docs.pipelex.com/latest/errors/storage-s3-error/+StructureClassError | Structure class | https://docs.pipelex.com/latest/errors/structure-class-error/+StructureValidationError | Structure validation | https://docs.pipelex.com/latest/errors/structure-validation-error/+StructuredContentComposerTypeError | Structured content composer type | https://docs.pipelex.com/latest/errors/structured-content-composer-type-error/+StructuredContentComposerValidationError | Structured content composer validation | https://docs.pipelex.com/latest/errors/structured-content-composer-validation-error/+StructuredContentComposerValueError | Structured content composer value | https://docs.pipelex.com/latest/errors/structured-content-composer-value-error/+StuffArtefactError | Stuff artefact | https://docs.pipelex.com/latest/errors/stuff-artefact-error/+StuffArtefactReservedFieldError | Stuff artefact reserved field | https://docs.pipelex.com/latest/errors/stuff-artefact-reserved-field-error/+StuffContentFactoryError | Stuff content factory | https://docs.pipelex.com/latest/errors/stuff-content-factory-error/+StuffContentTypeError | Stuff content type | https://docs.pipelex.com/latest/errors/stuff-content-type-error/+StuffContentValidationError | Stuff content validation | https://docs.pipelex.com/latest/errors/stuff-content-validation-error/+StuffError | Stuff error | https://docs.pipelex.com/latest/errors/stuff-error/+StuffFactoryError | Stuff factory | https://docs.pipelex.com/latest/errors/stuff-factory-error/+StuffSpecError | Stuff spec | https://docs.pipelex.com/latest/errors/stuff-spec-error/+StuffSpecFactoryError | Stuff spec factory | https://docs.pipelex.com/latest/errors/stuff-spec-factory-error/+TelemetryConfigError | Telemetry config | https://docs.pipelex.com/latest/errors/telemetry-config-error/+TelemetryConfigValidationError | Telemetry config validation | https://docs.pipelex.com/latest/errors/telemetry-config-validation-error/+TemplateSigilSyntaxError | Template sigil syntax | https://docs.pipelex.com/latest/errors/template-sigil-syntax-error/+TomlError | TOML parse error | https://docs.pipelex.com/latest/errors/toml-error/+ToolError | Tool error | https://docs.pipelex.com/latest/errors/tool-error/+TracebackMessageError | Traceback message | https://docs.pipelex.com/latest/errors/traceback-message-error/+UnknownBootOrchestratorError | Unknown boot orchestrator | https://docs.pipelex.com/latest/errors/unknown-boot-orchestrator-error/+UnknownInputNameError | Unknown input name | https://docs.pipelex.com/latest/errors/unknown-input-name-error/+UnknownPipeFuncExecutionModeError | Unknown pipe func execution mode | https://docs.pipelex.com/latest/errors/unknown-pipe-func-execution-mode-error/+UnknownSecretsMethodError | Unknown secrets method | https://docs.pipelex.com/latest/errors/unknown-secrets-method-error/+UnknownStorageMethodError | Unknown storage method | https://docs.pipelex.com/latest/errors/unknown-storage-method-error/+UnknownVarPrefixError | Unknown var prefix | https://docs.pipelex.com/latest/errors/unknown-var-prefix-error/+UnsafeSchemaError | Unsafe schema | https://docs.pipelex.com/latest/errors/unsafe-schema-error/+UnusedInputError | Unused input | https://docs.pipelex.com/latest/errors/unused-input-error/+ValidateBundleError | Validate bundle | https://docs.pipelex.com/latest/errors/validate-bundle-error/+VarFallbackPatternError | Var fallback pattern | https://docs.pipelex.com/latest/errors/var-fallback-pattern-error/+VarNotFoundError | Var not found | https://docs.pipelex.com/latest/errors/var-not-found-error/+VertexAIConfigError | VertexAI configuration error | https://docs.pipelex.com/latest/errors/vertex-ai-config-error/+VertexAICredentialsError | VertexAI credentials error | https://docs.pipelex.com/latest/errors/vertex-ai-credentials-error/+WebhookDeliveryError | Webhook delivery | https://docs.pipelex.com/latest/errors/webhook-delivery-error/+WithImagesFilterError | With images filter | https://docs.pipelex.com/latest/errors/with-images-filter-error/+WorkingMemoryConsistencyError | Working memory consistency | https://docs.pipelex.com/latest/errors/working-memory-consistency-error/+WorkingMemoryError | Working memory | https://docs.pipelex.com/latest/errors/working-memory-error/+WorkingMemoryFactoryError | Working memory factory | https://docs.pipelex.com/latest/errors/working-memory-factory-error/+WorkingMemoryStuffAttributeNotFoundError | Working memory stuff attribute not found | https://docs.pipelex.com/latest/errors/working-memory-stuff-attribute-not-found-error/+WorkingMemoryStuffNotFoundError | Working memory stuff not found | https://docs.pipelex.com/latest/errors/working-memory-stuff-not-found-error/+WorkingMemoryTypeError | Working memory type | https://docs.pipelex.com/latest/errors/working-memory-type-error/+WorkingMemoryVariableError | Working memory variable | https://docs.pipelex.com/latest/errors/working-memory-variable-error/+WrongScalarKindError | Wrong scalar kind | https://docs.pipelex.com/latest/errors/wrong-scalar-kind-error/diff --git a/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_simple.py b/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_simple.pyindex e06b716fb..3b2c8c0ba 100644--- a/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_simple.py+++ b/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_simple.py@@ -10,9 +10,9 @@ from pipelex.core.domains.domain import SpecialDomainfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactoryfrom pipelex.core.pipes.inputs.exceptions import PipeRunInputsErrorfrom pipelex.core.pipes.inputs.input_stuff_specs import TypedNamedStuffSpec-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.pipe_controllers.condition.pipe_condition import PipeConditionfrom pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeConditionBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_run.exceptions import PipeRunErrorfrom pipelex.pipe_run.pipe_run_mode import PipeRunModefrom pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactorydiff --git a/tests/e2e/pipelex/pipes/smart_inputs/test_smart_inputs_light_roundtrip.py b/tests/e2e/pipelex/pipes/smart_inputs/test_smart_inputs_light_roundtrip.pyindex 8f6d57f67..b8f16b8a4 100644--- a/tests/e2e/pipelex/pipes/smart_inputs/test_smart_inputs_light_roundtrip.py+++ b/tests/e2e/pipelex/pipes/smart_inputs/test_smart_inputs_light_roundtrip.py@@ -18,8 +18,8 @@ from typing import TYPE_CHECKING, Anyimport pytest-from pipelex.core.pipes.rendering.input_renderer import render_inputsfrom pipelex.interpreter_hub import clear_current_library, get_current_library_id_or_none, get_library_manager, get_required_pipe, set_current_library+from pipelex.pipe_machinery.rendering.input_renderer import render_inputsfrom pipelex.pipe_run.pipe_run_mode import PipeRunModefrom pipelex.pipeline.pipeline_response import RunStatefrom pipelex.pipeline.runner import PipelexMTHDSProtocoldiff --git a/tests/integration/pipelex/fixtures/pipe_job_helpers.py b/tests/integration/pipelex/fixtures/pipe_job_helpers.pyindex 8864426ee..35970e40e 100644--- a/tests/integration/pipelex/fixtures/pipe_job_helpers.py+++ b/tests/integration/pipelex/fixtures/pipe_job_helpers.py@@ -2,12 +2,12 @@ import uuidfrom collections.abc import Callable, Generatorfrom pathlib import Path-from pipelex.core.interpreter.interpreter import PipelexInterpreterfrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_abstract import PipeAbstractfrom pipelex.interpreter_hub import clear_current_library, get_library_manager, get_required_pipe, set_current_libraryfrom pipelex.libraries.library_crate import LibraryCrate+from pipelex.mthds_parsing.parser import MthdsParser+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractfrom pipelex.pipe_run.pipe_job import PipeJobfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactoryfrom pipelex.pipe_run.pipe_run_mode import PipeRunMode@@ -103,7 +103,7 @@ def pipe_job_from_bundle(def _load(library_id: str) -> None:mthds_content = Path(bundle_file).read_text(encoding="utf-8")- blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=mthds_content)+ blueprint = MthdsParser.make_pipelex_bundle_blueprint(mthds_content=mthds_content)get_library_manager().load_from_blueprints(library_id=library_id, blueprints=[blueprint])yield from pipe_job_from_library(_load, pipe_code=pipe_code, pipe_run_mode=pipe_run_mode, isolated_registry=isolated_registry)diff --git a/tests/integration/pipelex/language/test_mthds_factory.py b/tests/integration/pipelex/language/test_mthds_factory.pyindex 4f072be68..ccbeeabf1 100644--- a/tests/integration/pipelex/language/test_mthds_factory.py+++ b/tests/integration/pipelex/language/test_mthds_factory.py@@ -1,8 +1,8 @@import pytestfrom pipelex import pretty_print-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.language.mthds_factory import MthdsFactory+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom tests.unit.pipelex.core.test_data import InterpreterTestCasesdiff --git a/tests/integration/pipelex/libraries/test_crate_normalization_round_trip.py b/tests/integration/pipelex/libraries/test_crate_normalization_round_trip.pyindex b449a4099..c929bee5f 100644--- a/tests/integration/pipelex/libraries/test_crate_normalization_round_trip.py+++ b/tests/integration/pipelex/libraries/test_crate_normalization_round_trip.py@@ -2,10 +2,10 @@ import tempfilefrom collections.abc import Callablefrom pathlib import Path-from pipelex.core.interpreter.interpreter import PipelexInterpreterfrom pipelex.interpreter_hub import get_library_managerfrom pipelex.libraries.crate_normalization import normalize_cratefrom pipelex.libraries.library_crate_factory import LibraryCrateFactory+from pipelex.mthds_parsing.parser import MthdsParserMTHDS_TEST_VERSION = "0.0.0-test"@@ -54,7 +54,7 @@ class TestCrateNormalizationRoundTrip:with tempfile.TemporaryDirectory() as tmp_dir:report_path = Path(tmp_dir) / "report.mthds"report_path.write_text(REPORT_MTHDS, encoding="utf-8")- blueprints = [PipelexInterpreter.make_pipelex_bundle_blueprint(bundle_path=report_path)]+ blueprints = [MthdsParser.make_pipelex_bundle_blueprint(bundle_path=report_path)]crate = LibraryCrateFactory.make_from_blueprints(blueprints=blueprints)normalized = normalize_crate(crate, mthds_version=MTHDS_TEST_VERSION)@@ -89,7 +89,7 @@ class TestCrateNormalizationRoundTrip:with tempfile.TemporaryDirectory() as tmp_dir:intake_path = Path(tmp_dir) / "intake.mthds"intake_path.write_text(INTAKE_MTHDS, encoding="utf-8")- blueprints = [PipelexInterpreter.make_pipelex_bundle_blueprint(bundle_path=intake_path)]+ blueprints = [MthdsParser.make_pipelex_bundle_blueprint(bundle_path=intake_path)]crate = LibraryCrateFactory.make_from_blueprints(blueprints=blueprints)normalized = normalize_crate(crate, mthds_version=MTHDS_TEST_VERSION)diff --git a/tests/integration/pipelex/libraries/test_cross_file_concept_references.py b/tests/integration/pipelex/libraries/test_cross_file_concept_references.pyindex 3c44223d4..07d7ceccb 100644--- a/tests/integration/pipelex/libraries/test_cross_file_concept_references.py+++ b/tests/integration/pipelex/libraries/test_cross_file_concept_references.py@@ -11,9 +11,9 @@ from collections.abc import Callableimport pytest-from pipelex.core.interpreter.interpreter import PipelexInterpreterfrom pipelex.interpreter_hub import get_library_managerfrom pipelex.libraries.concept.exceptions import ConceptLibraryError+from pipelex.mthds_parsing.parser import MthdsParserCONCEPT_MTHDS = """domain = "crossref"@@ -55,8 +55,8 @@ class TestCrossFileConceptReferences:"""A concept declared in batch 1 resolves when referenced by bare code from a separate batch 2."""library_id = load_empty_library()manager = get_library_manager()- concept_blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=CONCEPT_MTHDS)- pipe_blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=PIPE_BARE_REF_MTHDS)+ concept_blueprint = MthdsParser.make_pipelex_bundle_blueprint(mthds_content=CONCEPT_MTHDS)+ pipe_blueprint = MthdsParser.make_pipelex_bundle_blueprint(mthds_content=PIPE_BARE_REF_MTHDS)# Batch 1: declare the concept only.manager.load_from_blueprints(library_id=library_id, blueprints=[concept_blueprint])@@ -71,8 +71,8 @@ class TestCrossFileConceptReferences:"""The same concept + bare reference also resolve when loaded together in one batch."""library_id = load_empty_library()manager = get_library_manager()- concept_blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=CONCEPT_MTHDS)- pipe_blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=PIPE_BARE_REF_MTHDS)+ concept_blueprint = MthdsParser.make_pipelex_bundle_blueprint(mthds_content=CONCEPT_MTHDS)+ pipe_blueprint = MthdsParser.make_pipelex_bundle_blueprint(mthds_content=PIPE_BARE_REF_MTHDS)loaded_pipes = manager.load_from_blueprints(library_id=library_id, blueprints=[concept_blueprint, pipe_blueprint])@@ -82,7 +82,7 @@ class TestCrossFileConceptReferences:"""A bare reference to a concept declared in no batch raises ConceptLibraryError through the loader."""library_id = load_empty_library()manager = get_library_manager()- pipe_blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=PIPE_UNDECLARED_REF_MTHDS)+ pipe_blueprint = MthdsParser.make_pipelex_bundle_blueprint(mthds_content=PIPE_UNDECLARED_REF_MTHDS)with pytest.raises(ConceptLibraryError) as exc_info:manager.load_from_blueprints(library_id=library_id, blueprints=[pipe_blueprint])diff --git a/tests/integration/pipelex/libraries/test_load_from_crate.py b/tests/integration/pipelex/libraries/test_load_from_crate.pyindex cfe50f751..802512b33 100644--- a/tests/integration/pipelex/libraries/test_load_from_crate.py+++ b/tests/integration/pipelex/libraries/test_load_from_crate.py@@ -2,9 +2,9 @@ import tempfilefrom collections.abc import Callablefrom pathlib import Path-from pipelex.core.interpreter.interpreter import PipelexInterpreterfrom pipelex.interpreter_hub import clear_current_library, get_current_library, get_library_manager, set_current_libraryfrom pipelex.libraries.library_crate_factory import LibraryCrateFactory+from pipelex.mthds_parsing.parser import MthdsParserSCORING_MTHDS = """\domain = "scoring"@@ -58,8 +58,8 @@ class TestLoadFromCrate:# Parse blueprintsblueprints = [- PipelexInterpreter.make_pipelex_bundle_blueprint(bundle_path=scoring_path),- PipelexInterpreter.make_pipelex_bundle_blueprint(bundle_path=analytics_path),+ MthdsParser.make_pipelex_bundle_blueprint(bundle_path=scoring_path),+ MthdsParser.make_pipelex_bundle_blueprint(bundle_path=analytics_path),]# Path A: load_from_blueprints (existing path)@@ -99,7 +99,7 @@ class TestLoadFromCrate:scoring_path.write_text(SCORING_MTHDS, encoding="utf-8")blueprints = [- PipelexInterpreter.make_pipelex_bundle_blueprint(bundle_path=scoring_path),+ MthdsParser.make_pipelex_bundle_blueprint(bundle_path=scoring_path),]crate = LibraryCrateFactory.make_from_blueprints(blueprints=blueprints)@@ -112,8 +112,8 @@ class TestLoadFromCrate:second_path = tmp_path / "second.mthds"first_path.write_text(SCORING_MTHDS, encoding="utf-8")second_path.write_text(SCORING_MTHDS, encoding="utf-8")- first_blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(bundle_path=first_path)- second_blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(bundle_path=second_path)+ first_blueprint = MthdsParser.make_pipelex_bundle_blueprint(bundle_path=first_path)+ second_blueprint = MthdsParser.make_pipelex_bundle_blueprint(bundle_path=second_path)library_manager = get_library_manager()first_library_id, _ = library_manager.open_library()second_library_id, _ = library_manager.open_library()@@ -140,7 +140,7 @@ class TestLoadFromCrate:"""bundle_path = tmp_path / "scoring.mthds"bundle_path.write_text(SCORING_MTHDS, encoding="utf-8")- blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(bundle_path=bundle_path)+ blueprint = MthdsParser.make_pipelex_bundle_blueprint(bundle_path=bundle_path)library_manager = get_library_manager()current_library_id, _ = library_manager.open_library()target_library_id, _ = library_manager.open_library()diff --git a/tests/integration/pipelex/phase1_hierarchical_domains/test_hierarchical_domains.py b/tests/integration/pipelex/phase1_hierarchical_domains/test_hierarchical_domains.pyindex 4679f200b..ff59eaf48 100644--- a/tests/integration/pipelex/phase1_hierarchical_domains/test_hierarchical_domains.py+++ b/tests/integration/pipelex/phase1_hierarchical_domains/test_hierarchical_domains.py@@ -8,7 +8,7 @@ from pathlib import Pathimport pytest-from pipelex.core.interpreter.exceptions import PipelexInterpreterError+from pipelex.mthds_parsing.exceptions import MthdsParserErrorfrom pipelex.pipeline.exceptions import ValidateBundleErrorfrom pipelex.pipeline.validate_bundle import validate_bundle, validate_bundles_from_directory@@ -97,21 +97,21 @@ class TestHierarchicalDomainsAndPipeNamespacing:async def test_invalid_double_dot_domain(self):"""Domain 'legal..contracts' should raise a validation error."""- with pytest.raises((ValidateBundleError, PipelexInterpreterError)):+ with pytest.raises((ValidateBundleError, MthdsParserError)):await validate_bundle(mthds_file_path=INVALID_DIR / "invalid_double_dot.mthds_invalid",)async def test_invalid_leading_dot_domain(self):"""Domain '.legal' should raise a validation error."""- with pytest.raises((ValidateBundleError, PipelexInterpreterError)):+ with pytest.raises((ValidateBundleError, MthdsParserError)):await validate_bundle(mthds_file_path=INVALID_DIR / "invalid_leading_dot.mthds_invalid",)async def test_invalid_same_domain_pipe_ref_to_nonexistent(self):"""Same-domain pipe ref to non-existent pipe should raise error."""- with pytest.raises((ValidateBundleError, PipelexInterpreterError)):+ with pytest.raises((ValidateBundleError, MthdsParserError)):await validate_bundle(mthds_file_path=INVALID_DIR / "invalid_same_domain_pipe_ref.mthds_invalid",)diff --git a/tests/integration/pipelex/core/pipes/test_input_renderer_light_golden.py b/tests/integration/pipelex/pipe_machinery/test_input_renderer_light_golden.pysimilarity index 89%rename from tests/integration/pipelex/core/pipes/test_input_renderer_light_golden.pyrename to tests/integration/pipelex/pipe_machinery/test_input_renderer_light_golden.pyindex c9894c4b8..2bb2f7657 100644--- a/tests/integration/pipelex/core/pipes/test_input_renderer_light_golden.py+++ b/tests/integration/pipelex/pipe_machinery/test_input_renderer_light_golden.py@@ -21,15 +21,20 @@ from typing import TYPE_CHECKING, Any, castimport pytestimport tomli-from pipelex.core.pipes.rendering.input_renderer import render_inputs, render_inputs_tomlfrom pipelex.interpreter_hub import clear_current_library, get_current_library_id_or_none, get_library_manager, get_required_pipe, set_current_library+from pipelex.pipe_machinery.rendering.input_renderer import render_inputs, render_inputs_tomlfrom pipelex.pipeline.validate_bundle import validate_bundleif TYPE_CHECKING:from collections.abc import Callable-_TRIAGE = Path(__file__).parents[4] / "e2e" / "pipelex" / "pipes" / "smart_inputs" / "smart_inputs_triage" / "smart_inputs_triage.mthds"-_FILES = Path(__file__).parents[4] / "e2e" / "pipelex" / "pipes" / "smart_inputs" / "smart_inputs_files" / "smart_inputs_files.mthds"+#: Anchored on the `tests/` root by name rather than by a parent count: a depth index silently+#: resolves to the wrong directory when the module moves, which is exactly what happened when this+#: test followed `input_renderer` out of `core/pipes/` into the `pipe_machinery/` mirror.+_TESTS_ROOT = next(parent for parent in Path(__file__).parents if parent.name == "tests")+_SMART_INPUTS = _TESTS_ROOT / "e2e" / "pipelex" / "pipes" / "smart_inputs"+_TRIAGE = _SMART_INPUTS / "smart_inputs_triage" / "smart_inputs_triage.mthds"+_FILES = _SMART_INPUTS / "smart_inputs_files" / "smart_inputs_files.mthds"def _teardown_validation_library(outer_library_id: str) -> None:diff --git a/tests/integration/pipelex/pipe_signature/test_collect_signature_refs.py b/tests/integration/pipelex/pipe_signature/test_collect_signature_refs.pyindex 8ff3ee80a..e3fa8f3f4 100644--- a/tests/integration/pipelex/pipe_signature/test_collect_signature_refs.py+++ b/tests/integration/pipelex/pipe_signature/test_collect_signature_refs.py@@ -1,6 +1,5 @@from typing import Callable-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_pipe_libraryfrom pipelex.pipe_controllers.batch.pipe_batch import PipeBatchfrom pipelex.pipe_controllers.batch.pipe_batch_blueprint import PipeBatchBlueprint@@ -11,6 +10,7 @@ from pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.pipe_signature.pipe_signature import PipeSignaturediff --git a/tests/integration/pipelex/pipe_signature/test_dry_run_strict_mode.py b/tests/integration/pipelex/pipe_signature/test_dry_run_strict_mode.pyindex 4f3bb5753..d2285cb58 100644--- a/tests/integration/pipelex/pipe_signature/test_dry_run_strict_mode.py+++ b/tests/integration/pipelex/pipe_signature/test_dry_run_strict_mode.py@@ -2,14 +2,14 @@ from typing import Callableimport pytest-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.core.concepts.concept_blueprint import ConceptBlueprint-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_current_library, get_pipe_libraryfrom pipelex.language.mthds_factory import MthdsFactory+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.pipe_signature.pipe_signature import PipeSignaturediff --git a/tests/integration/pipelex/pipe_signature/test_pipe_signature.py b/tests/integration/pipelex/pipe_signature/test_pipe_signature.pyindex 47233d0ed..6bb2898a2 100644--- a/tests/integration/pipelex/pipe_signature/test_pipe_signature.py+++ b/tests/integration/pipelex/pipe_signature/test_pipe_signature.py@@ -3,9 +3,9 @@ from typing import TYPE_CHECKING, Callableimport pytestfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.interpreter_hub import get_current_library+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_run.pipe_run_mode import PipeRunModefrom pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactoryfrom pipelex.pipe_signature.exceptions import PipeSignatureNotExecutableErrordiff --git a/tests/integration/pipelex/pipe_signature/test_pipe_signature_in_blueprint_union.py b/tests/integration/pipelex/pipe_signature/test_pipe_signature_in_blueprint_union.pyindex 6f5238f8b..80f61d551 100644--- a/tests/integration/pipelex/pipe_signature/test_pipe_signature_in_blueprint_union.py+++ b/tests/integration/pipelex/pipe_signature/test_pipe_signature_in_blueprint_union.py@@ -1,8 +1,8 @@import pytestfrom pydantic import ValidationError-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.core.concepts.concept_blueprint import ConceptBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_signature.pipe_signature_blueprint import PipeSignatureBlueprintdiff --git a/tests/integration/pipelex/pipeline/test_dry_run_pipeline_graph.py b/tests/integration/pipelex/pipeline/test_dry_run_pipeline_graph.pyindex 19ccb8375..e293d7f7c 100644--- a/tests/integration/pipelex/pipeline/test_dry_run_pipeline_graph.py+++ b/tests/integration/pipelex/pipeline/test_dry_run_pipeline_graph.py@@ -15,8 +15,8 @@ import pytestfrom pytest_mock import MockerFixturefrom pipelex.config import get_config-from pipelex.core.interpreter.exceptions import PipelexInterpreterErrorfrom pipelex.graph.graphspec import GraphSpecMode+from pipelex.mthds_parsing.exceptions import MthdsParserErrorfrom pipelex.pipeline.dry_run_pipeline import dry_run_pipelinefrom pipelex.system.configuration.configs import NdjsonTracingConfig, TracingBackend@@ -97,7 +97,7 @@ class TestDryRunPipelineGraphTransport:async def test_blank_explicit_pipe_code_is_rejected(self) -> None:"""A blank explicit target must not silently fall back to main_pipe."""- with pytest.raises(PipelexInterpreterError) as exc_info:+ with pytest.raises(MthdsParserError) as exc_info:await dry_run_pipeline(mthds_contents=[_DRY_RUN_GRAPH_MTHDS],pipe_code=" ",diff --git a/tests/integration/pipelex/pipeline/test_native_concept_redecl_enrichment.py b/tests/integration/pipelex/pipeline/test_native_concept_redecl_enrichment.pyindex 93cc304e0..d3ac38358 100644--- a/tests/integration/pipelex/pipeline/test_native_concept_redecl_enrichment.py+++ b/tests/integration/pipelex/pipeline/test_native_concept_redecl_enrichment.py@@ -13,7 +13,7 @@ from collections.abc import Callableimport pytest-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData+from pipelex.core.exceptions import PipelexBundleBlueprintValidationErrorDatafrom pipelex.core.pipes.exceptions import PipeValidationErrorTypefrom pipelex.pipeline.exceptions import ValidateBundleErrorfrom pipelex.pipeline.validate_bundle import validate_bundlediff --git a/tests/integration/pipelex/pipeline/test_optional_method_inputs.py b/tests/integration/pipelex/pipeline/test_optional_method_inputs.pyindex e606695a2..87f99070f 100644--- a/tests/integration/pipelex/pipeline/test_optional_method_inputs.py+++ b/tests/integration/pipelex/pipeline/test_optional_method_inputs.py@@ -13,9 +13,9 @@ from pipelex.core.memory.absence import AbsenceKind, AbsenceRecordfrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactoryfrom pipelex.core.pipes.inputs.exceptions import PipeRunInputsError-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContent+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom pipelex.pipe_run.pipe_run_mode import PipeRunModediff --git a/tests/integration/pipelex/pipeline/test_strip_namespace_enrichment.py b/tests/integration/pipelex/pipeline/test_strip_namespace_enrichment.pyindex cc4b2c12d..91b45263e 100644--- a/tests/integration/pipelex/pipeline/test_strip_namespace_enrichment.py+++ b/tests/integration/pipelex/pipeline/test_strip_namespace_enrichment.py@@ -14,7 +14,7 @@ from collections.abc import Callableimport pytest-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData+from pipelex.core.exceptions import PipelexBundleBlueprintValidationErrorDatafrom pipelex.core.pipes.exceptions import PipeValidationErrorTypefrom pipelex.pipeline.exceptions import ValidateBundleErrorfrom pipelex.pipeline.validate_bundle import validate_bundlediff --git a/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_compaction.py b/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_compaction.pyindex ad95a02b0..034c63f33 100644--- a/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_compaction.py+++ b/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_compaction.py@@ -13,7 +13,6 @@ import pytestfrom pipelex.config import get_configfrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContent@@ -23,6 +22,7 @@ from pipelex.pipe_controllers.batch.pipe_batch_blueprint import PipeBatchBlueprifrom pipelex.pipe_controllers.condition.pipe_condition import PipeConditionfrom pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeConditionBlueprintfrom pipelex.pipe_controllers.condition.special_outcome import SpecialOutcome+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom pipelex.pipe_run.pipe_run_mode import PipeRunModediff --git a/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_simple.py b/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_simple.pyindex b65342ca2..fd6eee14a 100644--- a/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_simple.py+++ b/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_simple.py@@ -8,7 +8,6 @@ from pipelex.core.concepts.concept_blueprint import ConceptBlueprintfrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff_content import StuffContentfrom pipelex.core.stuffs.stuff_factory import StuffFactory@@ -16,6 +15,7 @@ from pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_concept_libraryfrom pipelex.pipe_controllers.batch.pipe_batch import PipeBatchfrom pipelex.pipe_controllers.batch.pipe_batch_blueprint import PipeBatchBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_run.pipe_run_mode import PipeRunModefrom pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactoryfrom pipelex.system.job_metadata import JobMetadatadiff --git a/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_continue_delivery.py b/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_continue_delivery.pyindex bc3b13368..d08d0040e 100644--- a/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_continue_delivery.py+++ b/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_continue_delivery.py@@ -17,12 +17,12 @@ from pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.domains.domain import SpecialDomainfrom pipelex.core.memory.absence import AbsenceKind, AbsenceRecordfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.pipe_controllers.condition.pipe_condition import PipeConditionfrom pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeConditionBlueprintfrom pipelex.pipe_controllers.condition.special_outcome import SpecialOutcome+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_run.exceptions import PipeRunErrorfrom pipelex.pipe_run.pipe_run_mode import PipeRunModefrom pipelex.pipe_run.pipe_run_params import PipeRunParamsdiff --git a/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_simple.py b/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_simple.pyindex f6dd8705f..9270a77f4 100644--- a/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_simple.py+++ b/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_simple.py@@ -9,13 +9,13 @@ from pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.domains.domain import SpecialDomainfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactoryfrom pipelex.core.pipes.inputs.exceptions import PipeRunInputsError-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_pipe_router, get_required_pipefrom pipelex.pipe_controllers.condition.pipe_condition import PipeConditionfrom pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeConditionBlueprintfrom pipelex.pipe_controllers.condition.special_outcome import SpecialOutcome+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_run.exceptions import PipeRouterErrorfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactoryfrom pipelex.pipe_run.pipe_run_mode import PipeRunModediff --git a/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_validation.py b/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_validation.pyindex 9b5acecd2..defb9c396 100644--- a/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_validation.py+++ b/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_validation.py@@ -2,11 +2,11 @@ from pathlib import Pathfrom typing import Callablefrom pipelex.core.concepts.concept_factory import ConceptBlueprint, ConceptFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_concept_libraryfrom pipelex.pipe_controllers.condition.pipe_condition import PipeConditionfrom pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeConditionBlueprintfrom pipelex.pipe_controllers.condition.special_outcome import SpecialOutcome+from pipelex.pipe_machinery.pipe_factory import PipeFactoryclass TestPipeConditionValidation:diff --git a/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_absence.py b/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_absence.pyindex 994180f0c..f14ce1fa0 100644--- a/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_absence.py+++ b/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_absence.py@@ -21,7 +21,6 @@ from pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.memory.absence import AbsenceKind, AbsenceRecordfrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.composite_content import CompositeContentfrom pipelex.core.stuffs.structured_content import StructuredContentfrom pipelex.core.stuffs.stuff import Stuff@@ -31,6 +30,7 @@ from pipelex.interpreter_hub import get_concept_library, get_pipe_libraryfrom pipelex.pipe_controllers.parallel.pipe_parallel import PipeParallelfrom pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallelBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom pipelex.pipe_run.exceptions import PipeRunErrordiff --git a/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_branch_type_validation.py b/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_branch_type_validation.pyindex e3fda5830..763353d62 100644--- a/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_branch_type_validation.py+++ b/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_branch_type_validation.py@@ -6,7 +6,6 @@ from pydantic import Fieldfrom pipelex.core.concepts.concept_blueprint import ConceptBlueprintfrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.pipes.exceptions import PipeValidationError-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.number_content import NumberContentfrom pipelex.core.stuffs.structured_content import StructuredContentfrom pipelex.core.stuffs.text_content import TextContent@@ -14,6 +13,7 @@ from pipelex.interpreter_hub import get_concept_library, get_pipe_libraryfrom pipelex.pipe_controllers.parallel.pipe_parallel import PipeParallelfrom pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallelBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.runtime_hub import get_class_registrydiff --git a/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_final_stuff_code.py b/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_final_stuff_code.pyindex f910527be..1a10b770c 100644--- a/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_final_stuff_code.py+++ b/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_final_stuff_code.py@@ -15,12 +15,12 @@ from pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.domains.domain import SpecialDomainfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.pipe_controllers.parallel.pipe_parallel import PipeParallelfrom pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallelBlueprintfrom pipelex.pipe_controllers.sub_pipe_factory import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_run.pipe_run_mode import PipeRunModefrom pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactoryfrom pipelex.system.job_metadata import JobMetadatadiff --git a/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_simple.py b/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_simple.pyindex f9821ddcd..5f1ee737b 100644--- a/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_simple.py+++ b/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_simple.py@@ -7,13 +7,13 @@ from pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.domains.domain import SpecialDomainfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.composite_content import CompositeContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.pipe_controllers.parallel.pipe_parallel import PipeParallelfrom pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallelBlueprintfrom pipelex.pipe_controllers.sub_pipe_factory import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_run.pipe_run_mode import PipeRunModefrom pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactoryfrom pipelex.system.job_metadata import JobMetadatadiff --git a/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_unresolvable_structure_class.py b/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_unresolvable_structure_class.pyindex 68eafc3b8..84a01c9b2 100644--- a/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_unresolvable_structure_class.py+++ b/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_unresolvable_structure_class.py@@ -5,13 +5,13 @@ from pydantic import Fieldfrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.pipes.exceptions import PipeValidationError-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.structured_content import StructuredContentfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_concept_library, get_pipe_libraryfrom pipelex.pipe_controllers.parallel.pipe_parallel import PipeParallelfrom pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallelBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.runtime_hub import get_class_registrydiff --git a/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_validation.py b/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_validation.pyindex 12c4aee5b..01b89b91e 100644--- a/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_validation.py+++ b/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_validation.py@@ -3,11 +3,11 @@ from typing import Callablefrom pipelex.core.concepts.concept_blueprint import ConceptBlueprintfrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_concept_library, get_pipe_libraryfrom pipelex.pipe_controllers.parallel.pipe_parallel import PipeParallelfrom pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallelBlueprintfrom pipelex.pipe_controllers.sub_pipe_factory import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintdiff --git a/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_creation.py b/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_creation.pyindex 11300d4ee..591bd3c53 100644--- a/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_creation.py+++ b/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_creation.py@@ -2,11 +2,11 @@ from pathlib import Pathfrom typing import Callablefrom pipelex.core.concepts.concept_factory import ConceptBlueprint, ConceptFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_concept_libraryfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_factory import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryclass TestPipeSequenceCreation:diff --git a/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_multiple_steps.py b/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_multiple_steps.pyindex 2bbb471f5..47359c8c4 100644--- a/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_multiple_steps.py+++ b/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_multiple_steps.py@@ -2,11 +2,11 @@ from pathlib import Pathfrom typing import Callablefrom pipelex.core.concepts.concept_factory import ConceptBlueprint, ConceptFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_concept_libraryfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_factory import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryclass TestPipeSequenceMultipleSteps:diff --git a/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_output_multiplicity.py b/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_output_multiplicity.pyindex 62706210d..c56e15663 100644--- a/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_output_multiplicity.py+++ b/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_output_multiplicity.py@@ -5,11 +5,11 @@ from typing import Callableimport pytestfrom pipelex.core.pipes.exceptions import PipeValidationError-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_pipe_libraryfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintdiff --git a/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_simple.py b/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_simple.pyindex f609953c3..473230f34 100644--- a/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_simple.py+++ b/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_simple.py@@ -8,13 +8,13 @@ from pipelex.core.concepts.concept_blueprint import ConceptBlueprintfrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_concept_library, get_native_conceptfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_run.pipe_run_mode import PipeRunModefrom pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactoryfrom pipelex.system.job_metadata import JobMetadatadiff --git a/tests/integration/pipelex/pipes/img_gen_prompt_inputs/test_img_gen_prompt_image_extraction.py b/tests/integration/pipelex/pipes/img_gen_prompt_inputs/test_img_gen_prompt_image_extraction.pyindex bd8a556c3..ea0ec2673 100644--- a/tests/integration/pipelex/pipes/img_gen_prompt_inputs/test_img_gen_prompt_image_extraction.py+++ b/tests/integration/pipelex/pipes/img_gen_prompt_inputs/test_img_gen_prompt_image_extraction.py@@ -9,12 +9,12 @@ from pipelex import pretty_printfrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.image_content import ImageContentfrom pipelex.core.stuffs.page_content import PageContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_and_images_content import TextAndImagesContentfrom pipelex.core.stuffs.text_content import TextContent+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.img_gen.pipe_img_gen import PipeImgGenfrom pipelex.pipe_operators.img_gen.pipe_img_gen_blueprint import PipeImgGenBlueprintfrom tests.cases import ImageTestCasesdiff --git a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_document_references_factory_level.py b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_document_references_factory_level.pyindex e35c12fc3..d982d0042 100644--- a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_document_references_factory_level.py+++ b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_document_references_factory_level.py@@ -3,7 +3,7 @@from pathlib import Pathfrom typing import Callable-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.document_reference import DocumentReferenceKindfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintdiff --git a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_image_references_factory_level.py b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_image_references_factory_level.pyindex 1c133c5c3..5eefbe172 100644--- a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_image_references_factory_level.py+++ b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_image_references_factory_level.py@@ -3,7 +3,7 @@from pathlib import Pathfrom typing import Callable-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.image_reference import ImageReferenceKindfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintdiff --git a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_document_extraction.py b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_document_extraction.pyindex e8b28af29..0f983bea1 100644--- a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_document_extraction.py+++ b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_document_extraction.py@@ -7,12 +7,12 @@ import pytestfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.document_content import DocumentContentfrom pipelex.core.stuffs.image_content import ImageContentfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_native_concept+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.urls import URLsdiff --git a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_document_token_substitution.py b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_document_token_substitution.pyindex 9a73fdded..5ffea2c3f 100644--- a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_document_token_substitution.py+++ b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_document_token_substitution.py@@ -7,11 +7,11 @@ import pytestfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.document_content import DocumentContentfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_native_concept+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.urls import URLsdiff --git a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_image_extraction.py b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_image_extraction.pyindex dbafad84d..fad918a89 100644--- a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_image_extraction.py+++ b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_image_extraction.py@@ -9,7 +9,6 @@ from pipelex import pretty_printfrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.image_content import ImageContentfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.page_content import PageContent@@ -17,6 +16,7 @@ from pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_and_images_content import TextAndImagesContentfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_native_concept+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.pipe_operators.shared.exceptions import WithImagesFilterErrordiff --git a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_text_token_substitution.py b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_text_token_substitution.pyindex dceb09055..ca6f88e22 100644--- a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_text_token_substitution.py+++ b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_text_token_substitution.py@@ -7,11 +7,11 @@ import pytestfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.image_content import ImageContentfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_native_concept+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom tests.cases import ImageTestCasesdiff --git a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_refined_concept_references.py b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_refined_concept_references.pyindex 0697dfc31..32ea0ce8e 100644--- a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_refined_concept_references.py+++ b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_refined_concept_references.py@@ -10,11 +10,11 @@ from typing import Callableimport pytestfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.document_content import DocumentContentfrom pipelex.core.stuffs.image_content import ImageContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_required_concept+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.document_reference import DocumentReferenceKindfrom pipelex.pipe_operators.llm.image_reference import ImageReferenceKindfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMdiff --git a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_system_prompt_references.py b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_system_prompt_references.pyindex 3ee9bc8be..cd6246895 100644--- a/tests/integration/pipelex/pipes/llm_prompt_inputs/test_system_prompt_references.py+++ b/tests/integration/pipelex/pipes/llm_prompt_inputs/test_system_prompt_references.py@@ -7,12 +7,12 @@ import pytestfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.document_content import DocumentContentfrom pipelex.core.stuffs.image_content import ImageContentfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_native_concept+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.document_reference import DocumentReferenceKindfrom pipelex.pipe_operators.llm.image_reference import ImageReferenceKindfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMdiff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_class_compatibility.py b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_class_compatibility.pyindex fa22fc98d..d3d8af0c4 100644--- a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_class_compatibility.py+++ b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_class_compatibility.py@@ -14,11 +14,11 @@ import pytestfrom pipelex import pretty_printfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory import WorkingMemory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_native_concept, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.compose.pipe_compose import PipeComposefrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_content_conversions.py b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_content_conversions.pyindex 5214e135a..9d1909860 100644--- a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_content_conversions.py+++ b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_content_conversions.py@@ -16,11 +16,11 @@ import pytestfrom pipelex import pretty_printfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory import WorkingMemory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_native_concept, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.compose.pipe_compose import PipeComposefrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_native_scalar_conversions.py b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_native_scalar_conversions.pyindex 5d108cd6e..59b7dc62a 100644--- a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_native_scalar_conversions.py+++ b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_native_scalar_conversions.py@@ -18,7 +18,6 @@ import pytestfrom pipelex import pretty_printfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory import WorkingMemory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.date_content import DateContentfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.number_content import NumberContent@@ -27,6 +26,7 @@ from pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.core.stuffs.yes_no_content import YesNoContentfrom pipelex.interpreter_hub import get_native_concept, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.compose.exceptions import PipeComposeErrorfrom pipelex.pipe_operators.compose.pipe_compose import PipeComposefrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintdiff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_structured.py b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_structured.pyindex 8882a8137..39cff6cc1 100644--- a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_structured.py+++ b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_structured.py@@ -13,10 +13,10 @@ from pipelex import pretty_printfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_native_concept, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.compose.pipe_compose import PipeComposefrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_structured_compatibility.py b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_structured_compatibility.pyindex cef9ac445..f5acefbcb 100644--- a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_structured_compatibility.py+++ b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_structured_compatibility.py@@ -16,9 +16,9 @@ import pytestfrom pipelex import pretty_printfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory import WorkingMemory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_native_concept, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.compose.exceptions import PipeComposeErrorfrom pipelex.pipe_operators.compose.pipe_compose import PipeComposefrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintdiff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_stuff_content_subclasses.py b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_stuff_content_subclasses.pyindex df5f8ab39..840ba0fb5 100644--- a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_stuff_content_subclasses.py+++ b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_stuff_content_subclasses.py@@ -19,7 +19,6 @@ import pytestfrom pipelex import pretty_printfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory import WorkingMemory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.document_content import DocumentContentfrom pipelex.core.stuffs.html_content import HtmlContentfrom pipelex.core.stuffs.image_content import ImageContent@@ -29,6 +28,7 @@ from pipelex.core.stuffs.mermaid_content import MermaidContentfrom pipelex.core.stuffs.number_content import NumberContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_native_concept, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.compose.pipe_compose import PipeComposefrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/integration/pipelex/pipes/operator/pipe_extract/test_pipe_extract.py b/tests/integration/pipelex/pipes/operator/pipe_extract/test_pipe_extract.pyindex 4976c3232..7ff9f7f6c 100644--- a/tests/integration/pipelex/pipes/operator/pipe_extract/test_pipe_extract.py+++ b/tests/integration/pipelex/pipes/operator/pipe_extract/test_pipe_extract.py@@ -7,12 +7,12 @@ from pipelex.core.concepts.concept_blueprint import ConceptBlueprintfrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.document_content import DocumentContentfrom pipelex.core.stuffs.image_content import ImageContentfrom pipelex.core.stuffs.page_content import PageContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_concept_library, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.extract.pipe_extract import PipeExtractfrom pipelex.pipe_operators.extract.pipe_extract_blueprint import PipeExtractBlueprintfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/integration/pipelex/pipes/operator/pipe_extract/test_pipe_extract_model_not_found_reroute.py b/tests/integration/pipelex/pipes/operator/pipe_extract/test_pipe_extract_model_not_found_reroute.pyindex 4fe7def52..61ea1b31c 100644--- a/tests/integration/pipelex/pipes/operator/pipe_extract/test_pipe_extract_model_not_found_reroute.py+++ b/tests/integration/pipelex/pipes/operator/pipe_extract/test_pipe_extract_model_not_found_reroute.py@@ -8,10 +8,10 @@ from pipelex.cogt.inference.error_classification import UserAction, UserActionKifrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.document_content import DocumentContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_pipe_library, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipe_operators.extract.pipe_extract import PipeExtractfrom pipelex.pipe_operators.extract.pipe_extract_blueprint import PipeExtractBlueprintdiff --git a/tests/integration/pipelex/pipes/operator/pipe_func/test_pipe_func.py b/tests/integration/pipelex/pipes/operator/pipe_func/test_pipe_func.pyindex d7b665f93..c123ce96b 100644--- a/tests/integration/pipelex/pipes/operator/pipe_func/test_pipe_func.py+++ b/tests/integration/pipelex/pipes/operator/pipe_func/test_pipe_func.py@@ -6,10 +6,10 @@ from pipelex import log, pretty_printfrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_blueprint_validation.py b/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_blueprint_validation.pyindex 04c66e640..dd691296b 100644--- a/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_blueprint_validation.py+++ b/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_blueprint_validation.py@@ -25,7 +25,7 @@ from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Backgroundfrom pipelex.cogt.model_backends.model_type import ModelTypefrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.pipes.exceptions import PipeValidationError-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.img_gen.pipe_img_gen import PipeImgGenfrom pipelex.pipe_operators.img_gen.pipe_img_gen_blueprint import PipeImgGenBlueprintfrom pipelex.pipelex import Pipelexdiff --git a/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_google_blueprint_validation.py b/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_google_blueprint_validation.pyindex 5bd42842c..8e83b0b05 100644--- a/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_google_blueprint_validation.py+++ b/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_google_blueprint_validation.py@@ -26,7 +26,7 @@ from pipelex.cogt.img_gen.img_gen_job_components import AspectRatiofrom pipelex.cogt.model_backends.model_type import ModelTypefrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.pipes.exceptions import PipeValidationError-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.img_gen.pipe_img_gen import PipeImgGenfrom pipelex.pipe_operators.img_gen.pipe_img_gen_blueprint import PipeImgGenBlueprintfrom pipelex.pipelex import Pipelexdiff --git a/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_model_not_found_reroute.py b/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_model_not_found_reroute.pyindex 219da9d45..4e59820a2 100644--- a/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_model_not_found_reroute.py+++ b/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_model_not_found_reroute.py@@ -6,8 +6,8 @@ from pytest_mock import MockerFixturefrom pipelex.cogt.exceptions import ImgGenGenerationError, ImgGenModelNotFoundError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserAction, UserActionKindfrom pipelex.core.concepts.native.concept_native import NativeConceptCode-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_pipe_library, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipe_operators.img_gen.pipe_img_gen import PipeImgGenfrom pipelex.pipe_operators.img_gen.pipe_img_gen_blueprint import PipeImgGenBlueprintdiff --git a/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_run.py b/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_run.pyindex ea9d3e928..25cc11259 100644--- a/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_run.py+++ b/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_run.py@@ -4,9 +4,9 @@ import pytestfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.img_gen.pipe_img_gen import PipeImgGenfrom pipelex.pipe_operators.img_gen.pipe_img_gen_blueprint import PipeImgGenBlueprintfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm.py b/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm.pyindex ba9a0e578..25db787a5 100644--- a/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm.py+++ b/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm.py@@ -6,11 +6,11 @@ import pytestfrom pipelex import log, pretty_printfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff import Stufffrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_native_concept, get_pipe_library, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprint, StructuringMethodfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_date_output_path.py b/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_date_output_path.pyindex 8a1e60791..c3e5dc5db 100644--- a/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_date_output_path.py+++ b/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_date_output_path.py@@ -14,9 +14,9 @@ import pytestfrom pytest_mock import MockerFixturefrom pipelex.core.concepts.native.concept_native import NativeConceptCode-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.date_content import DateContentfrom pipelex.interpreter_hub import get_pipe_library, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_model_not_found_reroute.py b/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_model_not_found_reroute.pyindex c3bd0589c..29f4ef7d4 100644--- a/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_model_not_found_reroute.py+++ b/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_model_not_found_reroute.py@@ -7,8 +7,8 @@ from pytest_mock import MockerFixturefrom pipelex.cogt.exceptions import InferenceErrorCategory, LLMCompletionError, LLMModelNotFoundErrorfrom pipelex.cogt.inference.error_classification import UserAction, UserActionKindfrom pipelex.core.concepts.native.concept_native import NativeConceptCode-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_pipe_library, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintdiff --git a/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_yes_no_output_path.py b/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_yes_no_output_path.pyindex 9c25cd6dd..4e3e41570 100644--- a/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_yes_no_output_path.py+++ b/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_yes_no_output_path.py@@ -14,9 +14,9 @@ import pytestfrom pytest_mock import MockerFixturefrom pipelex.core.concepts.native.concept_native import NativeConceptCode-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.yes_no_content import YesNoContentfrom pipelex.interpreter_hub import get_pipe_library, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/integration/pipelex/pipes/operator/pipe_search/test_pipe_search_model_not_found_reroute.py b/tests/integration/pipelex/pipes/operator/pipe_search/test_pipe_search_model_not_found_reroute.pyindex 4f36fe724..e35871e4c 100644--- a/tests/integration/pipelex/pipes/operator/pipe_search/test_pipe_search_model_not_found_reroute.py+++ b/tests/integration/pipelex/pipes/operator/pipe_search/test_pipe_search_model_not_found_reroute.py@@ -6,8 +6,8 @@ from pytest_mock import MockerFixturefrom pipelex.cogt.exceptions import InferenceErrorCategory, SearchJobFailureError, SearchModelNotFoundErrorfrom pipelex.cogt.inference.error_classification import UserAction, UserActionKindfrom pipelex.core.concepts.native.concept_native import NativeConceptCode-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_pipe_library, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.exceptions import PipeOperatorModelAvailabilityErrorfrom pipelex.pipe_operators.search.pipe_search import PipeSearchfrom pipelex.pipe_operators.search.pipe_search_blueprint import PipeSearchBlueprintdiff --git a/tests/integration/pipelex/pipes/operator/pipe_structure/test_pipe_structure.py b/tests/integration/pipelex/pipes/operator/pipe_structure/test_pipe_structure.pyindex 5e27ecee6..3ad12a617 100644--- a/tests/integration/pipelex/pipes/operator/pipe_structure/test_pipe_structure.py+++ b/tests/integration/pipelex/pipes/operator/pipe_structure/test_pipe_structure.py@@ -6,10 +6,10 @@ import pytestfrom pipelex import log, pretty_printfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_native_concept, get_pipe_library, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.structure.pipe_structure import PipeStructurefrom pipelex.pipe_operators.structure.pipe_structure_blueprint import PipeStructureBlueprintfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/integration/pipelex/pipes/operator/pipe_structure/test_pipe_structure_in_batch.py b/tests/integration/pipelex/pipes/operator/pipe_structure/test_pipe_structure_in_batch.pyindex ad4c2f1bc..ec3fdb92f 100644--- a/tests/integration/pipelex/pipes/operator/pipe_structure/test_pipe_structure_in_batch.py+++ b/tests/integration/pipelex/pipes/operator/pipe_structure/test_pipe_structure_in_batch.py@@ -6,7 +6,6 @@ import pytestfrom pipelex import pretty_printfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff_content import StuffContentfrom pipelex.core.stuffs.stuff_factory import StuffFactory@@ -14,6 +13,7 @@ from pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_native_concept, get_pipe_library, get_pipe_routerfrom pipelex.pipe_controllers.batch.pipe_batch import PipeBatchfrom pipelex.pipe_controllers.batch.pipe_batch_blueprint import PipeBatchBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.structure.pipe_structure import PipeStructurefrom pipelex.pipe_operators.structure.pipe_structure_blueprint import PipeStructureBlueprintfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/integration/pipelex/pipes/operator/pipe_structure/test_pipe_structure_in_sequence.py b/tests/integration/pipelex/pipes/operator/pipe_structure/test_pipe_structure_in_sequence.pyindex c5496d103..6910b72cf 100644--- a/tests/integration/pipelex/pipes/operator/pipe_structure/test_pipe_structure_in_sequence.py+++ b/tests/integration/pipelex/pipes/operator/pipe_structure/test_pipe_structure_in_sequence.py@@ -6,13 +6,13 @@ import pytestfrom pipelex import pretty_printfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_native_concept, get_pipe_library, get_pipe_routerfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.structure.pipe_structure import PipeStructurefrom pipelex.pipe_operators.structure.pipe_structure_blueprint import PipeStructureBlueprintfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/integration/pipelex/pipes/optionals/test_condition_optional_output_validation.py b/tests/integration/pipelex/pipes/optionals/test_condition_optional_output_validation.pyindex f555c0044..de22b1bd5 100644--- a/tests/integration/pipelex/pipes/optionals/test_condition_optional_output_validation.py+++ b/tests/integration/pipelex/pipes/optionals/test_condition_optional_output_validation.py@@ -14,12 +14,12 @@ from pydantic import ValidationErrorfrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrorType-from pipelex.core.pipes.handle_pipe_errors import extract_wrapped_pipe_validation_error-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_pipe_library+from pipelex.mthds_parsing.handle_pipe_errors import extract_wrapped_pipe_validation_errorfrom pipelex.pipe_controllers.condition.pipe_condition import PipeConditionfrom pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeConditionBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom pipelex.system.registries.func_registry import func_registrydiff --git a/tests/integration/pipelex/pipes/optionals/test_lift_sequence.py b/tests/integration/pipelex/pipes/optionals/test_lift_sequence.pyindex 31af9793e..ea9951233 100644--- a/tests/integration/pipelex/pipes/optionals/test_lift_sequence.py+++ b/tests/integration/pipelex/pipes/optionals/test_lift_sequence.py@@ -12,7 +12,6 @@ from pipelex.config import get_configfrom pipelex.core.memory.absence import AbsenceKind, AbsenceRecordfrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContent@@ -20,6 +19,7 @@ from pipelex.interpreter_hub import get_pipe_libraryfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom pipelex.pipe_run.pipe_run_mode import PipeRunModediff --git a/tests/integration/pipelex/pipes/optionals/test_lift_skip_trichotomy.py b/tests/integration/pipelex/pipes/optionals/test_lift_skip_trichotomy.pyindex 19fb6ae4f..9215a7eeb 100644--- a/tests/integration/pipelex/pipes/optionals/test_lift_skip_trichotomy.py+++ b/tests/integration/pipelex/pipes/optionals/test_lift_skip_trichotomy.py@@ -17,11 +17,11 @@ from pipelex.core.memory.absence import AbsenceKind, AbsenceRecordfrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactoryfrom pipelex.core.pipes.inputs.exceptions import OptionalValueAbsentError, PipeRunInputsError-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff import Stufffrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContent+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom pipelex.pipe_run.pipe_run_mode import PipeRunMode@@ -293,7 +293,7 @@ class TestLiftSkipTrichotomy:mock_manager = mocker.MagicMock()mock_manager.on_pipe_start = mocker.MagicMock(return_value=("node-1", None))mocker.patch(- "pipelex.core.pipes.pipe_abstract.GraphTracerManager.get_instance",+ "pipelex.pipe_machinery.pipe_abstract.GraphTracerManager.get_instance",return_value=mock_manager,)traced_metadata = JobMetadata(diff --git a/tests/integration/pipelex/pipes/optionals/test_liftable_pipes_inventory.py b/tests/integration/pipelex/pipes/optionals/test_liftable_pipes_inventory.pyindex 01de69620..0f5020452 100644--- a/tests/integration/pipelex/pipes/optionals/test_liftable_pipes_inventory.py+++ b/tests/integration/pipelex/pipes/optionals/test_liftable_pipes_inventory.py@@ -6,7 +6,6 @@ visibility that makes implicit lifting acceptable.from typing import Callablefrom pipelex.core.memory.working_memory import WorkingMemory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_pipe_libraryfrom pipelex.pipe_controllers.parallel.pipe_parallel import PipeParallel@@ -14,6 +13,7 @@ from pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom pipelex.pipeline.controller_taint import collect_controller_taint_analysesdiff --git a/tests/integration/pipelex/pipes/optionals/test_lifted_parallel_companion_slots.py b/tests/integration/pipelex/pipes/optionals/test_lifted_parallel_companion_slots.pyindex 271401569..09ca69d98 100644--- a/tests/integration/pipelex/pipes/optionals/test_lifted_parallel_companion_slots.py+++ b/tests/integration/pipelex/pipes/optionals/test_lifted_parallel_companion_slots.py@@ -12,7 +12,6 @@ from pipelex.config import get_configfrom pipelex.core.memory.absence import AbsenceKind, AbsenceRecordfrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContent@@ -22,6 +21,7 @@ from pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom pipelex.pipe_run.pipe_run_mode import PipeRunModediff --git a/tests/integration/pipelex/pipes/optionals/test_optional_gate_tolerates_missing.py b/tests/integration/pipelex/pipes/optionals/test_optional_gate_tolerates_missing.pyindex 70d35475b..15a0c0315 100644--- a/tests/integration/pipelex/pipes/optionals/test_optional_gate_tolerates_missing.py+++ b/tests/integration/pipelex/pipes/optionals/test_optional_gate_tolerates_missing.py@@ -11,7 +11,6 @@ import pytestfrom pipelex.config import get_configfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_pipe_libraryfrom pipelex.pipe_controllers.condition.pipe_condition import PipeCondition@@ -19,6 +18,7 @@ from pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeCondfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.compose.pipe_compose import PipeComposefrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintfrom pipelex.pipe_run.pipe_run_mode import PipeRunModediff --git a/tests/integration/pipelex/pipes/optionals/test_optional_guard_lint.py b/tests/integration/pipelex/pipes/optionals/test_optional_guard_lint.pyindex 06757f8fc..334e8bc8d 100644--- a/tests/integration/pipelex/pipes/optionals/test_optional_guard_lint.py+++ b/tests/integration/pipelex/pipes/optionals/test_optional_guard_lint.py@@ -10,10 +10,10 @@ import pytestfrom pydantic import ValidationErrorfrom pipelex.core.pipes.exceptions import PipeValidationErrorType-from pipelex.core.pipes.handle_pipe_errors import extract_wrapped_pipe_validation_error-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.mthds_parsing.handle_pipe_errors import extract_wrapped_pipe_validation_errorfrom pipelex.pipe_controllers.condition.pipe_condition import PipeConditionfrom pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeConditionBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.compose.pipe_compose import PipeComposefrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintfrom pipelex.pipe_operators.img_gen.pipe_img_gen import PipeImgGendiff --git a/tests/integration/pipelex/pipes/optionals/test_parallel_optional_combine_validation.py b/tests/integration/pipelex/pipes/optionals/test_parallel_optional_combine_validation.pyindex 71b8cd362..8a603bc4c 100644--- a/tests/integration/pipelex/pipes/optionals/test_parallel_optional_combine_validation.py+++ b/tests/integration/pipelex/pipes/optionals/test_parallel_optional_combine_validation.py@@ -12,13 +12,13 @@ from pydantic import Fieldfrom pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrorType-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.structured_content import StructuredContentfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_concept_library, get_pipe_libraryfrom pipelex.pipe_controllers.parallel.pipe_parallel import PipeParallelfrom pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallelBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom pipelex.runtime_hub import get_class_registrydiff --git a/tests/integration/pipelex/pipes/optionals/test_redundant_force_warning.py b/tests/integration/pipelex/pipes/optionals/test_redundant_force_warning.pyindex 95a63f3f0..859390597 100644--- a/tests/integration/pipelex/pipes/optionals/test_redundant_force_warning.py+++ b/tests/integration/pipelex/pipes/optionals/test_redundant_force_warning.py@@ -9,12 +9,12 @@ from typing import Callablefrom pipelex.base_exceptions import ValidationErrorCategoryfrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.pipes.exceptions import PipeValidationErrorType-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_pipe_libraryfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom pipelex.pipeline.controller_taint import collect_controller_taint_analysesdiff --git a/tests/integration/pipelex/pipes/optionals/test_taint_sequence_validation.py b/tests/integration/pipelex/pipes/optionals/test_taint_sequence_validation.pyindex 12fb252d3..bdab85bf4 100644--- a/tests/integration/pipelex/pipes/optionals/test_taint_sequence_validation.py+++ b/tests/integration/pipelex/pipes/optionals/test_taint_sequence_validation.py@@ -10,7 +10,6 @@ import pytestfrom pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrorType-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_pipe_libraryfrom pipelex.pipe_controllers.condition.pipe_condition import PipeCondition@@ -20,6 +19,7 @@ from pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom pipelex.system.registries.func_registry import func_registrydiff --git a/tests/integration/pipelex/pipes/test_bracket_notation_controllers.py b/tests/integration/pipelex/pipes/test_bracket_notation_controllers.pyindex 8f3866834..027f6a99a 100644--- a/tests/integration/pipelex/pipes/test_bracket_notation_controllers.py+++ b/tests/integration/pipelex/pipes/test_bracket_notation_controllers.py@@ -2,7 +2,6 @@ from typing import Callablefrom pipelex.core.concepts.concept_blueprint import ConceptBlueprintfrom pipelex.core.concepts.concept_factory import ConceptFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_concept_libraryfrom pipelex.pipe_controllers.batch.pipe_batch import PipeBatchfrom pipelex.pipe_controllers.batch.pipe_batch_blueprint import PipeBatchBlueprint@@ -11,6 +10,7 @@ from pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeCondfrom pipelex.pipe_controllers.condition.special_outcome import SpecialOutcomefrom pipelex.pipe_controllers.parallel.pipe_parallel import PipeParallelfrom pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallelBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryclass TestBracketNotationInControllers:diff --git a/tests/integration/pipelex/pipes/test_bracket_notation_operators/test_bracket_notation_operators.py b/tests/integration/pipelex/pipes/test_bracket_notation_operators/test_bracket_notation_operators.pyindex 5b53acf0f..56fe78430 100644--- a/tests/integration/pipelex/pipes/test_bracket_notation_operators/test_bracket_notation_operators.py+++ b/tests/integration/pipelex/pipes/test_bracket_notation_operators/test_bracket_notation_operators.py@@ -3,9 +3,9 @@ from typing import Callablefrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory import WorkingMemory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.list_content import ListContentfrom pipelex.core.stuffs.text_content import TextContent+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.compose.pipe_compose import PipeComposefrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintfrom pipelex.pipe_operators.extract.pipe_extract import PipeExtractdiff --git a/tests/integration/pipelex/pipes/test_pipe_compose.py b/tests/integration/pipelex/pipes/test_pipe_compose.pyindex 2f18ea91e..1b9f99d17 100644--- a/tests/integration/pipelex/pipes/test_pipe_compose.py+++ b/tests/integration/pipelex/pipes/test_pipe_compose.py@@ -6,10 +6,10 @@ from pipelex import pretty_printfrom pipelex.cogt.templating.template_blueprint import TemplateBlueprintfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.core.stuffs.text_content import TextContentfrom pipelex.interpreter_hub import get_native_concept, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.compose.pipe_compose import PipeCompose, PipeComposeOutputfrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/integration/pipelex/plugins/conftest.py b/tests/integration/pipelex/providers/conftest.pysimilarity index 100%rename from tests/integration/pipelex/plugins/conftest.pyrename to tests/integration/pipelex/providers/conftest.pydiff --git a/tests/integration/pipelex/plugins/test_anthropic.py b/tests/integration/pipelex/providers/test_anthropic.pysimilarity index 92%rename from tests/integration/pipelex/plugins/test_anthropic.pyrename to tests/integration/pipelex/providers/test_anthropic.pyindex 2001ec531..05649fd41 100644--- a/tests/integration/pipelex/plugins/test_anthropic.py+++ b/tests/integration/pipelex/providers/test_anthropic.py@@ -3,12 +3,12 @@ from anthropic import AuthenticationErrorfrom rich import boxfrom rich.table import Table-from pipelex.plugins.anthropic.anthropic_exceptions import AnthropicSDKUnsupportedError-from pipelex.plugins.anthropic.anthropic_llms import anthropic_list_available_modelsfrom pipelex.plugins.model_handle import ModelHandle+from pipelex.providers.anthropic.anthropic_exceptions import AnthropicSDKUnsupportedError+from pipelex.providers.anthropic.anthropic_llms import anthropic_list_available_modelsfrom pipelex.runtime_hub import get_console, get_models_managerfrom pipelex.system.environment import all_env_vars_are_set, any_env_var_is_placeholder-from tests.integration.pipelex.plugins.conftest import is_backend_available+from tests.integration.pipelex.providers.conftest import is_backend_availableREQUIRED_ENV_VARS = ["ANTHROPIC_API_KEY"]diff --git a/tests/integration/pipelex/plugins/test_bedrock.py b/tests/integration/pipelex/providers/test_bedrock.pysimilarity index 100%rename from tests/integration/pipelex/plugins/test_bedrock.pyrename to tests/integration/pipelex/providers/test_bedrock.pydiff --git a/tests/integration/pipelex/plugins/test_mistral.py b/tests/integration/pipelex/providers/test_mistral.pysimilarity index 94%rename from tests/integration/pipelex/plugins/test_mistral.pyrename to tests/integration/pipelex/providers/test_mistral.pyindex 426899cde..5a30eeb7c 100644--- a/tests/integration/pipelex/plugins/test_mistral.py+++ b/tests/integration/pipelex/providers/test_mistral.py@@ -3,10 +3,10 @@ from rich import boxfrom rich.table import Tablefrom pipelex import pretty_print-from pipelex.plugins.mistral.mistral_llms import mistral_list_available_models+from pipelex.providers.mistral.mistral_llms import mistral_list_available_modelsfrom pipelex.runtime_hub import get_consolefrom pipelex.system.environment import all_env_vars_are_set, any_env_var_is_placeholder-from tests.integration.pipelex.plugins.conftest import is_backend_available+from tests.integration.pipelex.providers.conftest import is_backend_availableREQUIRED_ENV_VARS = ["MISTRAL_API_KEY"]diff --git a/tests/integration/pipelex/plugins/test_openai.py b/tests/integration/pipelex/providers/test_openai.pysimilarity index 92%rename from tests/integration/pipelex/plugins/test_openai.pyrename to tests/integration/pipelex/providers/test_openai.pyindex 92b8b9520..19c219383 100644--- a/tests/integration/pipelex/plugins/test_openai.py+++ b/tests/integration/pipelex/providers/test_openai.py@@ -2,10 +2,10 @@ import pytestfrom pipelex import pretty_printfrom pipelex.plugins.model_handle import ModelHandle-from pipelex.plugins.openai.openai_llms import openai_list_available_models+from pipelex.providers.openai.openai_llms import openai_list_available_modelsfrom pipelex.runtime_hub import get_models_managerfrom pipelex.system.environment import all_env_vars_are_set, any_env_var_is_placeholder-from tests.integration.pipelex.plugins.conftest import is_backend_available+from tests.integration.pipelex.providers.conftest import is_backend_available# make t VERBOSE=2 TEST=TestOpenAIdiff --git a/tests/integration/pipelex/system/test_hub_slot_injection_precedence.py b/tests/integration/pipelex/system/test_hub_slot_injection_precedence.pyindex 1a3aae907..543a2ea99 100644--- a/tests/integration/pipelex/system/test_hub_slot_injection_precedence.py+++ b/tests/integration/pipelex/system/test_hub_slot_injection_precedence.py@@ -15,9 +15,9 @@ import pytestfrom pytest_mock import MockerFixturefrom pipelex.interpreter_hub import get_pipe_router+from pipelex.interpreter_plugins.pipe_func.pipe_func_plugin import PipeFuncPluginfrom pipelex.pipelex import Pipelexfrom pipelex.plugins.contract import PLUGIN_API_VERSION-from pipelex.plugins.pipe_func.pipe_func_plugin import PipeFuncPluginfrom pipelex.plugins.registrar import HubSlot, PluginOrigin, PluginRegistrarfrom pipelex.runtime_hub import get_content_generatorfrom pipelex.system.runtime import IntegrationMode, runtime_managerdiff --git a/tests/integration/pipelex/system/test_keyless_boot_forced_dry.py b/tests/integration/pipelex/system/test_keyless_boot_forced_dry.pyindex 85506455a..a59a8c629 100644--- a/tests/integration/pipelex/system/test_keyless_boot_forced_dry.py+++ b/tests/integration/pipelex/system/test_keyless_boot_forced_dry.py@@ -15,7 +15,7 @@ import pytestfrom pipelex.cogt.content_generation.content_generator import ContentGeneratorfrom pipelex.config import get_configfrom pipelex.core.concepts.native.concept_native import NativeConceptCode-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.search.pipe_search import PipeSearchfrom pipelex.pipe_operators.search.pipe_search_blueprint import PipeSearchBlueprintfrom pipelex.pipe_run.pipe_run_mode import PipeRunModediff --git a/tests/unit/pipelex/builder/operations/test_parse_pipe_spec.py b/tests/unit/pipelex/builder/operations/test_parse_pipe_spec.pyindex 07ca67abc..305193198 100644--- a/tests/unit/pipelex/builder/operations/test_parse_pipe_spec.py+++ b/tests/unit/pipelex/builder/operations/test_parse_pipe_spec.py@@ -20,7 +20,7 @@ from pipelex.builder.pipe.pipe_parallel_spec import PipeParallelSpecfrom pipelex.builder.pipe.pipe_search_spec import PipeSearchSpecfrom pipelex.builder.pipe.pipe_sequence_spec import PipeSequenceSpecfrom pipelex.builder.pipe.pipe_signature_spec import PipeSignatureSpec-from pipelex.core.pipes.pipe_blueprint import PipeType+from pipelex.pipe_machinery.pipe_blueprint import PipeTypefrom tests.unit.pipelex.builder.operations.test_data import PipeOpsTestData_BASE_LLM = PipeOpsTestData.BASE_LLM_SPECdiff --git a/tests/unit/pipelex/builder/pipe/pipe_operator/pipe_llm/test_pipe_llm.py b/tests/unit/pipelex/builder/pipe/pipe_operator/pipe_llm/test_pipe_llm.pyindex 9e6e842fe..b52ca4202 100644--- a/tests/unit/pipelex/builder/pipe/pipe_operator/pipe_llm/test_pipe_llm.py+++ b/tests/unit/pipelex/builder/pipe/pipe_operator/pipe_llm/test_pipe_llm.py@@ -5,8 +5,8 @@ import pytestfrom pipelex import pretty_printfrom pipelex.builder.pipe.pipe_llm_spec import PipeLLMSpecfrom pipelex.core.concepts.concept_factory import ConceptFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_concept_library+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom tests.unit.pipelex.builder.pipe.pipe_operator.pipe_llm.test_data import PipeLLMTestCasesdiff --git a/tests/unit/pipelex/builder/pipe/test_data_pipe.py b/tests/unit/pipelex/builder/pipe/test_data_pipe.pyindex cbbfed2c4..ff46e19f7 100644--- a/tests/unit/pipelex/builder/pipe/test_data_pipe.py+++ b/tests/unit/pipelex/builder/pipe/test_data_pipe.py@@ -1,7 +1,7 @@from typing import ClassVarfrom pipelex.builder.pipe.pipe_spec import PipeSpec-from pipelex.core.pipes.pipe_blueprint import PipeBlueprint+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintclass PipeBlueprintTestCases:diff --git a/tests/unit/pipelex/builder/pipe/test_pipe_blueprint.py b/tests/unit/pipelex/builder/pipe/test_pipe_blueprint.pyindex d1f1ccf6c..755510930 100644--- a/tests/unit/pipelex/builder/pipe/test_pipe_blueprint.py+++ b/tests/unit/pipelex/builder/pipe/test_pipe_blueprint.py@@ -1,7 +1,7 @@import pytestfrom pipelex.builder.pipe.pipe_spec import PipeSpec-from pipelex.core.pipes.pipe_blueprint import PipeBlueprint+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintfrom tests.unit.pipelex.builder.pipe.test_data_pipe import PipeBlueprintTestCasesdiff --git a/tests/unit/pipelex/builder/pipe/test_pipe_signature_spec.py b/tests/unit/pipelex/builder/pipe/test_pipe_signature_spec.pyindex b8dd1a593..1aa2175dc 100644--- a/tests/unit/pipelex/builder/pipe/test_pipe_signature_spec.py+++ b/tests/unit/pipelex/builder/pipe/test_pipe_signature_spec.py@@ -3,7 +3,7 @@ from pydantic import ValidationErrorfrom rich.console import Consolefrom pipelex.builder.pipe.pipe_signature_spec import PipeSignatureSpec-from pipelex.core.pipes.pipe_blueprint import PipeType+from pipelex.pipe_machinery.pipe_blueprint import PipeTypefrom pipelex.pipe_signature.pipe_signature_blueprint import PipeSignatureBlueprintdiff --git a/tests/unit/pipelex/builder/test_bundle_spec_typeless_signature.py b/tests/unit/pipelex/builder/test_bundle_spec_typeless_signature.pyindex 8683fb3d8..2dff85571 100644--- a/tests/unit/pipelex/builder/test_bundle_spec_typeless_signature.py+++ b/tests/unit/pipelex/builder/test_bundle_spec_typeless_signature.py@@ -14,7 +14,7 @@ from pydantic import ValidationErrorfrom pipelex.builder.bundle_spec import PipelexBundleSpecfrom pipelex.builder.pipe.pipe_llm_spec import PipeLLMSpecfrom pipelex.builder.pipe.pipe_signature_spec import PipeSignatureSpec-from pipelex.core.pipes.pipe_blueprint import PipeType+from pipelex.pipe_machinery.pipe_blueprint import PipeTypefrom pipelex.pipe_signature.pipe_signature_blueprint import PipeSignatureBlueprintdiff --git a/tests/unit/pipelex/cli/agent_cli/test_inputs_format_unaffected.py b/tests/unit/pipelex/cli/agent_cli/test_inputs_format_unaffected.pyindex f61885446..2e68790d4 100644--- a/tests/unit/pipelex/cli/agent_cli/test_inputs_format_unaffected.py+++ b/tests/unit/pipelex/cli/agent_cli/test_inputs_format_unaffected.py@@ -7,7 +7,7 @@ import inspectfrom pipelex.cli.agent_cli.commands.inputs.bundle_cmd import inputs_bundle_cmdfrom pipelex.cli.agent_cli.commands.inputs.method_cmd import inputs_method_cmdfrom pipelex.cli.agent_cli.commands.inputs.pipe_cmd import inputs_pipe_cmd-from pipelex.core.pipes.rendering.input_renderer import InputsTemplateFormat+from pipelex.pipe_machinery.rendering.input_renderer import InputsTemplateFormatclass TestInputsFormatUnaffected:diff --git a/tests/unit/pipelex/cli/agent_cli/test_inputs_template_format_toml.py b/tests/unit/pipelex/cli/agent_cli/test_inputs_template_format_toml.pyindex 65ab5d2f6..b953480c8 100644--- a/tests/unit/pipelex/cli/agent_cli/test_inputs_template_format_toml.py+++ b/tests/unit/pipelex/cli/agent_cli/test_inputs_template_format_toml.py@@ -10,7 +10,7 @@ import tomlifrom pipelex.cli.agent_cli.commands.inputs._inputs_core import emit_inputs_result # noqa: PLC2701from pipelex.cli.agent_cli.commands.inputs.pipe_cmd import inputs_pipe_cmdfrom pipelex.core.pipes.inputs.exceptions import NoInputsRequiredError-from pipelex.core.pipes.rendering.input_renderer import InputsTemplateFormat+from pipelex.pipe_machinery.rendering.input_renderer import InputsTemplateFormatif TYPE_CHECKING:import pytestdiff --git a/tests/unit/pipelex/cli/commands/build/test_inputs_core_toml.py b/tests/unit/pipelex/cli/commands/build/test_inputs_core_toml.pyindex 1b61f2611..703ca9feb 100644--- a/tests/unit/pipelex/cli/commands/build/test_inputs_core_toml.py+++ b/tests/unit/pipelex/cli/commands/build/test_inputs_core_toml.py@@ -9,7 +9,7 @@ from typing import TYPE_CHECKING, Anyimport pytestfrom pipelex.cli.commands.build.inputs._inputs_core import _generate_inputs_core # noqa: PLC2701 # pyright: ignore[reportPrivateUsage]-from pipelex.core.pipes.rendering.input_renderer import InputsTemplateFormat+from pipelex.pipe_machinery.rendering.input_renderer import InputsTemplateFormatif TYPE_CHECKING:from pathlib import Pathdiff --git a/tests/unit/pipelex/cli/commands/run/test_inputs_template_roundtrip.py b/tests/unit/pipelex/cli/commands/run/test_inputs_template_roundtrip.pyindex 6475f6281..c54dc34cd 100644--- a/tests/unit/pipelex/cli/commands/run/test_inputs_template_roundtrip.py+++ b/tests/unit/pipelex/cli/commands/run/test_inputs_template_roundtrip.py@@ -13,7 +13,7 @@ import jsonfrom typing import TYPE_CHECKINGfrom pipelex.cli.commands.run._inputs_file_loader import load_inputs_dict_from_path # noqa: PLC2701 # pyright: ignore[reportPrivateUsage]-from pipelex.core.pipes.rendering.input_renderer import serialize_inputs_template_to_toml+from pipelex.pipe_machinery.rendering.input_renderer import serialize_inputs_template_to_tomlif TYPE_CHECKING:from pathlib import Pathdiff --git a/tests/unit/pipelex/cli/dev/test_check_hub_layering_cmd.py b/tests/unit/pipelex/cli/dev/test_check_hub_layering_cmd.pyindex aaa995e37..5758a6de9 100644--- a/tests/unit/pipelex/cli/dev/test_check_hub_layering_cmd.py+++ b/tests/unit/pipelex/cli/dev/test_check_hub_layering_cmd.py@@ -1,12 +1,13 @@"""Unit tests for the command-layer control flow of `check_hub_layering_cmd`.-The AST core is exercised from inline snippets in `test_hub_layering_guard.py`; these pin the layer-that turns its findings into a gate. Four things matter and none of them are covered by a snippet-test: the command *exits 1* on any violation (that exit code is what `make check` and CI read),-`quiet` trims only the happy path so a CI failure stays actionable without a re-run, each violation-kind is headed by its own remedy, and a missing scan root fails loudly instead of scanning nothing-and reporting a pass. The filesystem scan is mocked so each branch is driven deterministically-without touching the real `pipelex/` tree.+The AST core is exercised from inline snippets in `test_hub_layering_guard.py` and from tmp trees in+`test_hub_layering_transitive.py`; these pin the layer that turns their findings into a gate. Five+things matter and none of them are covered by those: the command *exits 1* on any violation (that exit+code is what `make check` and CI read), `quiet` trims only the happy path so a CI failure stays+actionable without a re-run, each violation kind is headed by its own remedy, both scans are merged+into one report, and a missing scan root fails loudly instead of scanning nothing and reporting a+pass. Both scans are mocked so each branch is driven deterministically without touching the real+`pipelex/` tree."""from __future__ import annotations@@ -43,6 +44,17 @@ def _violation(*, kind: HubLayeringViolationKind, lineno: int = 7) -> HubLayerin)+def _patch_scans(+ mocker: MockerFixture,+ *,+ per_file: list[HubLayeringViolation] | None = None,+ transitive: list[HubLayeringViolation] | None = None,+) -> None:+ """Drive both of the command's scans. Mocking only one would leave the other walking the real tree."""+ mocker.patch.object(cmd_mod, "collect_all_violations", return_value=per_file or [])+ mocker.patch.object(cmd_mod, "collect_transitive_violations", return_value=transitive or [])++class TestCheckHubLayeringCmd:@pytest.fixturedef console_buffer(self, mocker: MockerFixture) -> io.StringIO:@@ -53,7 +65,7 @@ class TestCheckHubLayeringCmd:def test_quiet_success_is_one_line(self, mocker: MockerFixture, console_buffer: io.StringIO) -> None:"""The Make targets and CI invoke the guard quietly: a clean tree must cost one line."""- mocker.patch.object(cmd_mod, "collect_all_violations", return_value=[])+ _patch_scans(mocker)check_hub_layering_cmd(quiet=True) # returns normally (exit 0)output = console_buffer.getvalue()assert "Hub-layering check: PASSED" in output@@ -61,7 +73,7 @@ class TestCheckHubLayeringCmd:def test_verbose_success_names_every_declared_runtime_package(self, mocker: MockerFixture, console_buffer: io.StringIO) -> None:"""The success panel is where a reader learns what the declaration covers, so it must be complete."""- mocker.patch.object(cmd_mod, "collect_all_violations", return_value=[])+ _patch_scans(mocker)check_hub_layering_cmd(quiet=False)output = console_buffer.getvalue()assert "Hub-layering Check: PASSED" in output@@ -74,7 +86,7 @@ class TestCheckHubLayeringCmd:_violation(kind=HubLayeringViolationKind.INTERPRETER_HUB_IMPORT, lineno=7),_violation(kind=HubLayeringViolationKind.DEAD_HUB_REFERENCE, lineno=42),]- mocker.patch.object(cmd_mod, "collect_all_violations", return_value=violations)+ _patch_scans(mocker, per_file=violations)with pytest.raises(SystemExit) as exit_info:check_hub_layering_cmd(quiet=False)@@ -87,7 +99,7 @@ class TestCheckHubLayeringCmd:def test_quiet_failure_stays_actionable(self, mocker: MockerFixture, console_buffer: io.StringIO) -> None:"""Quiet trims success only — a CI failure must carry its sites and remedy, or it needs a re-run."""- mocker.patch.object(cmd_mod, "collect_all_violations", return_value=[_violation(kind=HubLayeringViolationKind.INTERPRETER_HUB_IMPORT)])+ _patch_scans(mocker, per_file=[_violation(kind=HubLayeringViolationKind.INTERPRETER_HUB_IMPORT)])with pytest.raises(SystemExit) as exit_info:check_hub_layering_cmd(quiet=True)@@ -106,7 +118,7 @@ class TestCheckHubLayeringCmd:_violation(kind=HubLayeringViolationKind.INTERPRETER_HUB_IMPORT, lineno=9),_violation(kind=HubLayeringViolationKind.DEAD_HUB_REFERENCE, lineno=42),]- mocker.patch.object(cmd_mod, "collect_all_violations", return_value=violations)+ _patch_scans(mocker, per_file=violations)with pytest.raises(SystemExit):check_hub_layering_cmd(quiet=True)@@ -116,14 +128,56 @@ class TestCheckHubLayeringCmd:assert f"{HubLayeringViolationKind.DEAD_HUB_REFERENCE} (1)" in outputassert HubLayeringViolationKind.DEAD_HUB_REFERENCE.remedy in output+ def test_both_scans_are_reported_together_under_one_gate(self, mocker: MockerFixture, console_buffer: io.StringIO) -> None:+ """The per-file rules and the transitive rule are two passes but one gate.++ Both passes' findings land in the same report, counted together and each under its own kind's+ remedy — a run must never present one pass and drop the other.+ """+ transitive = HubLayeringViolation(+ relative_path="pipelex/cogt/aggregator.py",+ lineno=3,+ kind=HubLayeringViolationKind.INTERPRETER_HUB_TRANSITIVE,+ detail="reaches `pipelex.interpreter_hub` via pipelex.runtime_bridge.orchestrator → pipelex.interpreter_hub",+ )+ _patch_scans(mocker, per_file=[_violation(kind=HubLayeringViolationKind.DEAD_HUB_REFERENCE, lineno=42)], transitive=[transitive])++ with pytest.raises(SystemExit) as exit_info:+ check_hub_layering_cmd(quiet=True)++ assert exit_info.value.code == 1+ output = console_buffer.getvalue()+ assert "2 violation(s)" in output+ assert "pipelex/cogt/aggregator.py:3" in output+ assert "pipelex/cogt/sample/worker.py:42" in output+ assert HubLayeringViolationKind.INTERPRETER_HUB_TRANSITIVE.remedy in output++ def test_a_transitive_finding_alone_is_a_failure(self, mocker: MockerFixture, console_buffer: io.StringIO) -> None:+ """The pass that found the real breach must be able to fail the gate on its own."""+ transitive = HubLayeringViolation(+ relative_path="pipelex/providers/builtins.py",+ lineno=6,+ kind=HubLayeringViolationKind.INTERPRETER_HUB_TRANSITIVE,+ detail="reaches `pipelex.interpreter_hub` via pipelex.runtime_bridge.direct_orchestrator → pipelex.interpreter_hub",+ )+ _patch_scans(mocker, transitive=[transitive])++ with pytest.raises(SystemExit) as exit_info:+ check_hub_layering_cmd(quiet=True)++ assert exit_info.value.code == 1+ assert "pipelex/providers/builtins.py:6" in console_buffer.getvalue()+def test_missing_scan_root_fails_without_scanning(self, mocker: MockerFixture, console_buffer: io.StringIO, tmp_path: Path) -> None:"""A vanished scan root must never read as a pass: scanning nothing finds nothing."""mocker.patch.object(cmd_mod, "SCAN_ROOTS", (tmp_path / "ghost_root",))- scanner = mocker.patch.object(cmd_mod, "collect_all_violations", return_value=[])+ per_file_scan = mocker.patch.object(cmd_mod, "collect_all_violations", return_value=[])+ transitive_scan = mocker.patch.object(cmd_mod, "collect_transitive_violations", return_value=[])with pytest.raises(SystemExit) as exit_info:check_hub_layering_cmd(quiet=True)assert exit_info.value.code == 1assert "ghost_root" in console_buffer.getvalue()- scanner.assert_not_called()+ per_file_scan.assert_not_called()+ transitive_scan.assert_not_called()diff --git a/tests/unit/pipelex/cli/dev/test_check_keyword_only_cmd_fix.py b/tests/unit/pipelex/cli/dev/test_check_keyword_only_cmd_fix.pyindex c816a0271..6dec7ac1f 100644--- a/tests/unit/pipelex/cli/dev/test_check_keyword_only_cmd_fix.py+++ b/tests/unit/pipelex/cli/dev/test_check_keyword_only_cmd_fix.py@@ -40,6 +40,9 @@ class TestCheckKeywordOnlyCmdFix:mocker.patch.object(cmd_mod, "SOURCE_ROOT", tmp_path)# The registry is loaded before any scan; these tests drive the scanners directly, so keep it empty.mocker.patch.object(cmd_mod, "load_subject_grants", return_value={})+ # Order is the one violation kind read from the registry file rather than from a def — mocked here+ # too, so no test in this module depends on the real `subject_grants.toml` or on the cwd it lives in.+ mocker.patch.object(cmd_mod, "find_unsorted_grants", return_value=[])return bufferdef test_fix_only_exits_zero_and_reports_fixed(self, mocker: MockerFixture, console_buffer: io.StringIO) -> None:@@ -74,6 +77,27 @@ class TestCheckKeywordOnlyCmdFix:assert "fixed_func" in outputassert "unfixable_func" in output+ def test_unsorted_registry_is_reported_instead_of_nothing_to_fix(self, mocker: MockerFixture, console_buffer: io.StringIO) -> None:+ """An out-of-order registry is a violation the read-only gate fails on, so `--fix` must not call it clean.++ The fixer rewrites signatures and never the registry, so it sees nothing to do — but reporting+ "nothing to fix" while `make check-keyword-only` is about to fail is a false all-clear.+ """+ mocker.patch.object(cmd_mod, "fix_all_violations", return_value=([], []))+ unsorted = Violation(+ relative_path="pipelex/sample/module.py",+ qualified_name="render",+ lineno=0,+ kind=ViolationKind.UNSORTED_GRANT,+ detail="subject_grants.toml:7 sorts before the preceding entry 'pipelex/sample/other.py::build'",+ )+ mocker.patch.object(cmd_mod, "find_unsorted_grants", return_value=[unsorted])+ check_keyword_only_cmd(fix=True, quiet=True) # still non-gating: reports, exits 0+ output = console_buffer.getvalue()+ assert "1 violation(s) need a manual fix" in output+ assert "subject_grants.toml:7" in output+ assert "nothing to fix" not in output+def test_nothing_to_fix_quiet_is_one_line_and_exits_zero(self, mocker: MockerFixture, console_buffer: io.StringIO) -> None:"""No violations + quiet: the happy path trims to the single 'nothing to fix' line."""mocker.patch.object(cmd_mod, "fix_all_violations", return_value=([], []))diff --git a/tests/unit/pipelex/cli/dev/test_hub_layering_guard.py b/tests/unit/pipelex/cli/dev/test_hub_layering_guard.pyindex d7a4ec7ff..1d014048e 100644--- a/tests/unit/pipelex/cli/dev/test_hub_layering_guard.py+++ b/tests/unit/pipelex/cli/dev/test_hub_layering_guard.py@@ -3,13 +3,22 @@from __future__ import annotationsimport textwrap+from pathlib import Pathfrom pipelex.cli.dev_cli.commands.hub_layering_guard import (+ RUNTIME_LAYER_PACKAGES,HubLayeringViolation,HubLayeringViolationKind,find_violations_in_source,is_runtime_layer,)+from tests.unit.pipelex.test_runtime_layer_import_closure import INTERPRETER_PACKAGES++#: Anchored on `tests/` by name rather than by a parent count. A depth index is not merely fragile+#: here, it is *silent*: `parents[6]` is the workspace root, which holds a sibling `pipelex/` checkout,+#: so a module moved one level shallower would validate the declaration against a different repo and+#: pass. That is the failure this track already hit once, in the golden-renderer test.+_REPO_ROOT = next(parent for parent in Path(__file__).resolve().parents if parent.name == "tests").parent#: A runtime-layer module path, and a interpreter-layer one, for the same snippet.RUNTIME_PATH = "pipelex/cogt/sample/worker.py"@@ -39,21 +48,80 @@ class TestHubLayeringGuard:# A package whose name merely starts with a runtime-layer name is not in the runtime layer.assert not is_runtime_layer(module_qname="pipelex.toolsmith.thing")- def test_core_is_split_between_the_layers(self) -> None:- """`core/` is declared package by package: its data model is runtime, its Pipe machinery is not."""- assert is_runtime_layer(module_qname="pipelex.core.stuffs.stuff_factory")- assert is_runtime_layer(module_qname="pipelex.core.concepts.concept_provider_abstract")- assert is_runtime_layer(module_qname="pipelex.core.memory.input_shaper")- assert is_runtime_layer(module_qname="pipelex.core.pipes.inputs.input_stuff_specs_factory")- assert is_runtime_layer(module_qname="pipelex.core.pipes.stuff_spec.stuff_spec_factory")- # Everything that names a `Pipe` imports the interpreter directly and stays in the interpreter layer.- assert not is_runtime_layer(module_qname="pipelex.core.pipes.pipe_factory")- assert not is_runtime_layer(module_qname="pipelex.core.pipes.rendering.output_renderer")- assert not is_runtime_layer(module_qname="pipelex.core.registry_models")- assert not is_runtime_layer(module_qname="pipelex.core.bundles.pipelex_bundle_blueprint")- assert not is_runtime_layer(module_qname="pipelex.core.interpreter.bundle_elaborator")- # `pipelex.core` itself is not a declared package — the split is deliberate, not an omission.- assert not is_runtime_layer(module_qname="pipelex.core.qualified_ref")+ def test_core_is_declared_as_one_whole_package(self) -> None:+ """`core/` is declared wholesale — one entry, no sub-entries — because nothing interpreter-layer+ is left inside it.++ Stated as a property of the declaration rather than as a list of member modules. Once+ `pipelex.core` is a single prefix entry, `is_runtime_layer` answers True for *any* string+ under it, so asserting ten real module names would carry the same one bit as asserting ten+ invented ones — an inventory, not an invariant. What is worth pinning is the shape that took+ the whole M1 track to reach: re-introducing a `pipelex.core.<sub>` entry would mean core has+ split again, and that is what fails here.+ """+ assert "pipelex.core" in RUNTIME_LAYER_PACKAGES+ resplit = [package for package in RUNTIME_LAYER_PACKAGES if package.startswith("pipelex.core.")]+ assert not resplit, (+ f"`pipelex.core` is declared wholesale, but these sub-package entries are declared too: {resplit}. "+ "A sub-entry means some of `core/` is being carved out again — either move the interpreter-layer "+ "module to `pipe_machinery`/`mthds_parsing` as M1 did, or record why the split is back."+ )++ def test_no_interpreter_package_is_declared_runtime_layer(self) -> None:+ """The two layer declarations are disjoint — derived from both, so neither can drift alone.++ `RUNTIME_LAYER_PACKAGES` (this guard) and `INTERPRETER_PACKAGES` (the import-closure test) are+ the two halves of one partition, maintained in separate modules and never previously compared.+ Declaring a package in both would make the guard vouch for a package the closure test flags —+ each check would keep passing while contradicting the other.+ """+ for package in INTERPRETER_PACKAGES:+ qname = f"pipelex.{package}"+ assert not is_runtime_layer(module_qname=qname), (+ f"{qname} is named by the import-closure test's INTERPRETER_PACKAGES *and* matched by "+ "this guard's RUNTIME_LAYER_PACKAGES. The two declarations describe opposite layers."+ )+ assert not is_runtime_layer(module_qname=f"{qname}.some_module")++ def test_declared_runtime_layer_names_only_real_packages(self) -> None:+ """Every declared entry resolves on disk — `is_runtime_layer` is a string predicate that cannot tell.++ A renamed or deleted package leaves its entry matching nothing, which makes the declaration+ quietly *narrower* than it reads: the transitive rule filters its domain through this predicate,+ so an entry that matches nothing removes modules from the check rather than adding them.+ """+ source_root = _REPO_ROOT / "pipelex"+ for package in RUNTIME_LAYER_PACKAGES:+ relative = package.removeprefix("pipelex.").replace(".", "/")+ target = source_root / relative+ assert target.is_dir() or target.with_suffix(".py").is_file(), (+ f"RUNTIME_LAYER_PACKAGES names {package!r}, which resolves to neither a package directory "+ f"nor a module file under {source_root}. A declared entry that matches nothing silently "+ f"shrinks the layer rule's domain instead of failing."+ )++ def test_the_plugin_split_left_both_halves_declared(self) -> None:+ """Splitting one declared package into two must leave two declarations, not one.++ `plugins/` was carved in half: the mechanism stayed, the built-in adapters became `providers/`.+ Both halves are runtime-layer, so the split moved no boundary — but it introduced one silent+ failure mode, and it runs the opposite way to intuition. Omitting an entry does not make the+ guard complain; it makes the guard go *quiet*. The transitive rule iterates only modules+ `is_runtime_layer` already accepts, so an undeclared package leaves the rule's domain rather+ than being reported by it, and the largest runtime-layer package would stop being checked+ while every gate stayed green. Nothing else in the suite catches that.++ Membership is the whole assertion, deliberately. `is_runtime_layer` matches by dotted prefix,+ so once an entry is present it answers True for *any* string beneath it — enumerating the+ adapters on disk would carry the same one bit as enumerating invented names, and would add a+ second failure mode (an adapter without an `__init__.py` is importable as a namespace package+ but would be silently skipped). See `test_core_is_declared_as_one_whole_package` above.+ """+ for package in ("pipelex.plugins", "pipelex.providers"):+ assert package in RUNTIME_LAYER_PACKAGES, (+ f"{package} is one half of the plugin mechanism/adapter split and is not declared "+ "runtime-layer. Undeclared means unchecked, not flagged — add the covering entry."+ )def test_runtime_layer_may_import_runtime_hub(self) -> None:"""The permitted direction is never flagged — the runtime layer lives on `runtime_hub`."""diff --git a/tests/unit/pipelex/cli/dev/test_hub_layering_transitive.py b/tests/unit/pipelex/cli/dev/test_hub_layering_transitive.pynew file mode 100644index 000000000..69431faed--- /dev/null+++ b/tests/unit/pipelex/cli/dev/test_hub_layering_transitive.py@@ -0,0 +1,307 @@+"""Unit tests for the hub-layering guard's transitive rule — the one that follows the import graph.++The other two rules are per-file and see one hop, which is exactly how the breach that motivated this+rule stayed invisible: four modules of the declared runtime-layer `pipelex.plugins` package reached+`interpreter_hub` through `runtime_bridge`, `pipeline` and `pipe_operators`, and both gates stayed+green. So the tests here are about the *graph*: which edges exist, which do not, and which of the+modules that reach the hub are the guard's business.++Each case is a miniature repo on disk rather than a snippet, because the rule is inherently+cross-file — a snippet has no second module to reach through.+"""++from __future__ import annotations++import re+from pathlib import Path++import pytest++from pipelex.cli.dev_cli.commands.hub_layering_guard import (+ HubLayeringGuardError,+ HubLayeringViolationKind,+ build_import_graph,+ collect_transitive_violations,+ shortest_import_path,+)++INTERPRETER_HUB = "pipelex.interpreter_hub"++#: One hop short of the hub: a legal module, in no declared layer, that does import it.+INTERMEDIARY_SOURCE = "from pipelex.interpreter_hub import get_pipe_router\n\n\nclass DirectOrchestrator:\n pass\n"+++def _write(*, path: Path, source: str) -> None:+ """Write one module, creating its directories."""+ path.parent.mkdir(parents=True, exist_ok=True)+ path.write_text(source, encoding="utf-8")+++def _make_tree(root: Path) -> None:+ """A miniature repo holding one instance of every case the rule must get right.++ `cogt/` is a declared runtime-layer package; `runtime_bridge/` and `pipeline/` are in no declared+ layer, so they may reach the hub freely — which is precisely what makes them usable as+ intermediaries.+ """+ _write(path=root / "pipelex" / "interpreter_hub.py", source="def get_pipe_router():\n return None\n")+ _write(path=root / "pipelex" / "runtime_hub.py", source="def get_console():\n return None\n")+ _write(path=root / "pipelex" / "runtime_bridge" / "orchestrator.py", source=INTERMEDIARY_SOURCE)++ # The canonical breach: runtime-layer module -> legal intermediary -> the hub.+ _write(+ path=root / "pipelex" / "cogt" / "breach.py",+ source="from pipelex.runtime_bridge.orchestrator import DirectOrchestrator\n",+ )+ # An aggregator: carries no edge to the hub of its own, breaches only by importing the breacher.+ _write(path=root / "pipelex" / "cogt" / "aggregator.py", source="from pipelex.cogt.breach import DirectOrchestrator\n")+ # Clean: the runtime hub is the whole point, and it leads nowhere near the interpreter.+ _write(path=root / "pipelex" / "cogt" / "clean.py", source="from pipelex.runtime_hub import get_console\n")+ # Legal: `pipeline` is in no declared layer, so reaching the hub is not this rule's business.+ _write(path=root / "pipelex" / "pipeline" / "runner.py", source="from pipelex.runtime_bridge.orchestrator import DirectOrchestrator\n")+++class TestHubLayeringTransitiveRule:+ def test_reports_exactly_the_runtime_layer_modules_that_reach_the_hub(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ """The breacher and its aggregator, with the chain that explains each — and nothing else.++ `pipeline/runner.py` reaches the hub by the same edge and is correctly silent: it sits in no+ declared layer. `cogt/clean.py` is the negative control for the walk itself.+ """+ _make_tree(tmp_path)+ monkeypatch.chdir(tmp_path)++ violations = collect_transitive_violations(root=Path("pipelex"))++ assert [(violation.relative_path, violation.kind, violation.detail) for violation in violations] == [+ (+ "pipelex/cogt/aggregator.py",+ HubLayeringViolationKind.INTERPRETER_HUB_TRANSITIVE,+ f"reaches `{INTERPRETER_HUB}` via pipelex.cogt.breach → pipelex.runtime_bridge.orchestrator → {INTERPRETER_HUB}",+ ),+ (+ "pipelex/cogt/breach.py",+ HubLayeringViolationKind.INTERPRETER_HUB_TRANSITIVE,+ f"reaches `{INTERPRETER_HUB}` via pipelex.runtime_bridge.orchestrator → {INTERPRETER_HUB}",+ ),+ ]++ def test_the_reported_line_is_the_first_hop(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ """A violation must point at the import the author can act on, not at the file's first line."""+ _make_tree(tmp_path)+ _write(+ path=tmp_path / "pipelex" / "cogt" / "breach.py",+ source="from pipelex.runtime_hub import get_console\n\nfrom pipelex.runtime_bridge.orchestrator import DirectOrchestrator\n",+ )+ monkeypatch.chdir(tmp_path)++ violations = collect_transitive_violations(root=Path("pipelex"))+ breach = next(violation for violation in violations if violation.relative_path == "pipelex/cogt/breach.py")++ assert breach.lineno == 3++ def test_a_direct_import_is_left_to_the_one_hop_rule(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ """Double-reporting the same import under two remedies would be noise, not coverage."""+ _make_tree(tmp_path)+ _write(path=tmp_path / "pipelex" / "cogt" / "direct.py", source="from pipelex.interpreter_hub import get_pipe_router\n")+ monkeypatch.chdir(tmp_path)++ violations = collect_transitive_violations(root=Path("pipelex"))++ assert "pipelex/cogt/direct.py" not in [violation.relative_path for violation in violations]++ @pytest.mark.parametrize(+ ("case", "source"),+ [+ (+ "type_checking",+ "from typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from pipelex.runtime_bridge.orchestrator import DirectOrchestrator\n",+ ),+ (+ "function_body",+ "def make():\n from pipelex.runtime_bridge.orchestrator import DirectOrchestrator\n\n return DirectOrchestrator\n",+ ),+ (+ "async_function_body",+ "async def make():\n from pipelex.runtime_bridge.orchestrator import DirectOrchestrator\n\n return DirectOrchestrator\n",+ ),+ ],+ )+ def test_an_edge_that_does_not_load_is_not_an_edge(self, case: str, source: str, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ """The rule measures the import *closure*, so a type-only or deferred import creates no path.++ This is the same carve-out the one-hop layer rule grants a `TYPE_CHECKING` block, applied to+ the graph — and it is what keeps the sanctioned deferral pattern (`pipe_func_executor_registry`)+ from reading as a breach.+ """+ _make_tree(tmp_path)+ _write(path=tmp_path / "pipelex" / "cogt" / f"{case}.py", source=source)+ monkeypatch.chdir(tmp_path)++ violations = collect_transitive_violations(root=Path("pipelex"))++ assert f"pipelex/cogt/{case}.py" not in [violation.relative_path for violation in violations]++ def test_a_relative_import_is_the_same_edge(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ """Relative spellings resolve against the importing package, so the chain cannot be spelled around."""+ _make_tree(tmp_path)+ _write(path=tmp_path / "pipelex" / "cogt" / "relative.py", source="from ..runtime_bridge.orchestrator import DirectOrchestrator\n")+ monkeypatch.chdir(tmp_path)++ violations = collect_transitive_violations(root=Path("pipelex"))++ assert "pipelex/cogt/relative.py" in [violation.relative_path for violation in violations]++ def test_an_imported_symbol_resolves_to_the_module_that_holds_it(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ """`from pkg.mod import Symbol` is an edge to `pkg.mod`: the candidate walks up until it names a real module."""+ _make_tree(tmp_path)+ monkeypatch.chdir(tmp_path)++ graph = build_import_graph(root=Path("pipelex"))++ assert set(graph.edges["pipelex.cogt.breach"]) == {"pipelex.runtime_bridge.orchestrator"}++ def test_the_reported_chain_is_the_shortest_one(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ """With two routes to the hub, the short one explains the breach; the scenic one buries it."""+ _make_tree(tmp_path)+ _write(path=tmp_path / "pipelex" / "cogt" / "detour.py", source="from pipelex.cogt.breach import DirectOrchestrator\n")+ _write(+ path=tmp_path / "pipelex" / "cogt" / "aggregator.py",+ source="from pipelex.cogt.breach import DirectOrchestrator\nfrom pipelex.cogt.detour import DirectOrchestrator as Detoured\n",+ )+ monkeypatch.chdir(tmp_path)++ graph = build_import_graph(root=Path("pipelex"))++ assert shortest_import_path(graph=graph, start="pipelex.cogt.aggregator", target=INTERPRETER_HUB) == [+ "pipelex.cogt.aggregator",+ "pipelex.cogt.breach",+ "pipelex.runtime_bridge.orchestrator",+ INTERPRETER_HUB,+ ]++ def test_a_clean_tree_reports_nothing(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ """The shape production is in — worth pinning, since a rule that never fires must still be able to."""+ _make_tree(tmp_path)+ _write(path=tmp_path / "pipelex" / "cogt" / "breach.py", source="from pipelex.runtime_hub import get_console\n")+ _write(path=tmp_path / "pipelex" / "cogt" / "aggregator.py", source="from pipelex.cogt.breach import get_console\n")+ monkeypatch.chdir(tmp_path)++ assert collect_transitive_violations(root=Path("pipelex")) == []++ def test_a_package_init_on_the_way_is_an_edge(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ """Importing `pkg.mod` runs `pkg/__init__.py` first, so a breach in the init is reached through it.++ Modelling only the literal import target would make this whole class of breach invisible: the+ importer names a clean leaf module and never mentions the package that actually loads the hub.+ """+ _make_tree(tmp_path)+ _write(path=tmp_path / "pipelex" / "pipeline" / "__init__.py", source=INTERMEDIARY_SOURCE)+ _write(path=tmp_path / "pipelex" / "pipeline" / "runner.py", source="def run():\n return None\n")+ _write(path=tmp_path / "pipelex" / "cogt" / "sneaky.py", source="from pipelex.pipeline.runner import run\n")+ monkeypatch.chdir(tmp_path)++ violations = collect_transitive_violations(root=Path("pipelex"))++ sneaky = next(violation for violation in violations if violation.relative_path == "pipelex/cogt/sneaky.py")+ assert sneaky.detail == f"reaches `{INTERPRETER_HUB}` via pipelex.pipeline → {INTERPRETER_HUB}"++ def test_a_suppressed_import_is_not_an_edge(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ """The escape hatch marks one reviewed import, and rule 3 must read it the same way rule 1 does.++ Ignoring it here would keep the edge while the finding it explains disappears — silently+ exempting the suppressing module from this rule, and flagging its importers in its place.+ """+ _make_tree(tmp_path)+ _write(+ path=tmp_path / "pipelex" / "cogt" / "suppressed.py",+ source="from pipelex.interpreter_hub import get_pipe_router # hub-layering: ignore\n",+ )+ _write(path=tmp_path / "pipelex" / "cogt" / "importer.py", source="from pipelex.cogt.suppressed import get_pipe_router\n")+ monkeypatch.chdir(tmp_path)++ violations = collect_transitive_violations(root=Path("pipelex"))++ assert "pipelex/cogt/importer.py" not in [violation.relative_path for violation in violations]++ def test_a_suppressed_direct_import_does_not_hide_a_longer_chain(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ """Suppressing one import must not exempt the module from the rest of the graph.++ The module below carries a sanctioned direct import *and* a real transitive route. Leaving the+ suppressed edge in the graph would make the shortest chain one hop, which this rule skips as+ rule 1's business — so the genuine longer route would go unreported.+ """+ _make_tree(tmp_path)+ _write(+ path=tmp_path / "pipelex" / "cogt" / "both.py",+ source=(+ "from pipelex.interpreter_hub import get_pipe_router # hub-layering: ignore\n"+ "from pipelex.runtime_bridge.orchestrator import DirectOrchestrator\n"+ ),+ )+ monkeypatch.chdir(tmp_path)++ violations = collect_transitive_violations(root=Path("pipelex"))++ both = next(violation for violation in violations if violation.relative_path == "pipelex/cogt/both.py")+ assert both.lineno == 2+ assert both.detail == f"reaches `{INTERPRETER_HUB}` via pipelex.runtime_bridge.orchestrator → {INTERPRETER_HUB}"++ def test_a_dynamic_import_in_an_intermediary_is_an_edge(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ """A module-level `import_module("pipelex.interpreter_hub")` loads the hub, so it is an edge.++ Rule 1 catches that string in a runtime-layer module; the gap this closes is the same string+ in an intermediary, which sits in no declared layer. Both hub references that actually+ occurred in this repo were strings, not imports.+ """+ _make_tree(tmp_path)+ _write(+ path=tmp_path / "pipelex" / "runtime_bridge" / "dynamic.py",+ source='import importlib\n\nhub = importlib.import_module("pipelex.interpreter_hub")\n',+ )+ _write(path=tmp_path / "pipelex" / "cogt" / "via_dynamic.py", source="from pipelex.runtime_bridge.dynamic import hub\n")+ monkeypatch.chdir(tmp_path)++ violations = collect_transitive_violations(root=Path("pipelex"))++ breach = next(violation for violation in violations if violation.relative_path == "pipelex/cogt/via_dynamic.py")+ assert breach.detail == f"reaches `{INTERPRETER_HUB}` via pipelex.runtime_bridge.dynamic → {INTERPRETER_HUB}"++ def test_a_deferred_dynamic_import_is_not_an_edge(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ """Inside a function it loads nothing at import time — the same carve-out a deferred `import` gets."""+ _make_tree(tmp_path)+ _write(+ path=tmp_path / "pipelex" / "runtime_bridge" / "deferred.py",+ source='import importlib\n\n\ndef get_hub():\n return importlib.import_module("pipelex.interpreter_hub")\n',+ )+ _write(path=tmp_path / "pipelex" / "cogt" / "via_deferred.py", source="from pipelex.runtime_bridge.deferred import get_hub\n")+ monkeypatch.chdir(tmp_path)++ violations = collect_transitive_violations(root=Path("pipelex"))++ assert "pipelex/cogt/via_deferred.py" not in [violation.relative_path for violation in violations]++ def test_a_scan_that_cannot_see_the_hub_fails_instead_of_passing(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ """A detector that has stopped detecting must fail, not report zero.++ Reverse reachability from a module the graph does not contain is empty by construction, so a+ renamed hub — or a scan root the module names cannot be derived from — would otherwise turn+ the whole rule into a no-op while the gate stayed green.+ """+ _make_tree(tmp_path)+ (tmp_path / "pipelex" / "interpreter_hub.py").rename(tmp_path / "pipelex" / "interpreter_hub_renamed.py")+ monkeypatch.chdir(tmp_path)++ with pytest.raises(HubLayeringGuardError, match=re.escape("found no `pipelex.interpreter_hub`")):+ collect_transitive_violations(root=Path("pipelex"))++ def test_an_absolute_scan_root_fails_instead_of_checking_nothing(self, tmp_path: Path) -> None:+ """Module names are derived from the scanned path verbatim, so only a repo-relative root works.++ An absolute root yields qnames like `tmp.…\u200b.pipelex.cogt.breach`, which match no `pipelex`+ candidate: the graph comes back with no edges and the rule would pass having checked nothing.+ """+ _make_tree(tmp_path)++ with pytest.raises(HubLayeringGuardError, match="scan root"):+ collect_transitive_violations(root=tmp_path / "pipelex")diff --git a/tests/unit/pipelex/cli/dev/test_subject_grant_registry.py b/tests/unit/pipelex/cli/dev/test_subject_grant_registry.pyindex ae7e5cb7d..c82d5fe1e 100644--- a/tests/unit/pipelex/cli/dev/test_subject_grant_registry.py+++ b/tests/unit/pipelex/cli/dev/test_subject_grant_registry.py@@ -1,4 +1,4 @@-"""Unit tests for the subject-grants registry: loading/validation and symmetric staleness (dead grants)."""+"""Unit tests for the subject-grants registry: loading/validation, symmetric staleness (dead grants), file order."""from __future__ import annotations@@ -11,6 +11,7 @@ from pipelex.cli.dev_cli.commands.keyword_only_guard import (SubjectGrantRegistryError,ViolationKind,collect_all_violations,+ find_unsorted_grants,load_subject_grants,)@@ -26,6 +27,31 @@ param = "spec"rationale = "Factory from source: builds from the spec.""""+#: The same two entries in the order the writer emits them.+_SORTED_REGISTRY = """\+version = 1++["pipelex/sample/module.py::Builder.build"]+param = "spec"+rationale = "Factory from source: builds from the spec."++["pipelex/sample/module.py::render"]+param = "node"+rationale = "Verb-object; single operand."+"""++#: A multi-line rationale whose body carries a line that LOOKS like a table header — valid TOML the+#: text scan would read as one entry more than the parser found.+_PHANTOM_HEADER_REGISTRY = '''\+version = 1++["pipelex/sample/module.py::render"]+param = "node"+rationale = """Verb-object.+["pipelex/sample/module.py::ghost"]+"""+'''+def _write_registry(root: Path, *, content: str) -> None:(root / "subject_grants.toml").write_text(content, encoding="utf-8")@@ -135,3 +161,33 @@ class TestSubjectGrantRegistry:grants = {"pipelex/sample/module.py::render": SubjectGrant(param="node", rationale="ok")}violations = collect_all_violations(Path("pipelex"), grants=grants)assert [violation.kind for violation in violations] == [ViolationKind.MISSING_STAR]++ # File order, below. The registry is rewritten sorted by key on every write, so order is an invariant —+ # one a bulk path rewrite breaks silently, since an unsorted registry parses and grants exactly the+ # same subjects.++ def test_sorted_registry_has_no_order_violation(self, tmp_path: Path) -> None:+ _write_registry(tmp_path, content=_SORTED_REGISTRY)+ assert find_unsorted_grants(grants=load_subject_grants(root=tmp_path), root=tmp_path) == []++ def test_out_of_order_entry_flagged(self, tmp_path: Path) -> None:+ """The two entries of `_VALID_REGISTRY` are written in the reverse of their sorted order."""+ _write_registry(tmp_path, content=_VALID_REGISTRY)+ violations = find_unsorted_grants(grants=load_subject_grants(root=tmp_path), root=tmp_path)+ assert [violation.kind for violation in violations] == [ViolationKind.UNSORTED_GRANT]+ assert violations[0].key == "pipelex/sample/module.py::Builder.build"+ assert violations[0].lineno == 0, "the line belongs to the registry, not to a def — it travels in `detail`"+ assert "subject_grants.toml:7" in violations[0].detail+ assert "pipelex/sample/module.py::render" in violations[0].detail++ def test_order_check_missing_registry_is_an_explicit_error(self, tmp_path: Path) -> None:+ with pytest.raises(SubjectGrantRegistryError, match="not found"):+ find_unsorted_grants(grants={}, root=tmp_path)++ def test_entry_the_scan_cannot_read_is_an_explicit_error(self, tmp_path: Path) -> None:+ """A multi-line rationale can carry a line that looks like a table header — the scan must not+ silently disagree with the parser about which entries exist, or the order rule quietly narrows.+ """+ _write_registry(tmp_path, content=_PHANTOM_HEADER_REGISTRY)+ with pytest.raises(SubjectGrantRegistryError, match="the order check cannot read"):+ find_unsorted_grants(grants=load_subject_grants(root=tmp_path), root=tmp_path)diff --git a/tests/unit/pipelex/cli/test_agent_output_drift.py b/tests/unit/pipelex/cli/test_agent_output_drift.pyindex 9af237b78..058200a5f 100644--- a/tests/unit/pipelex/cli/test_agent_output_drift.py+++ b/tests/unit/pipelex/cli/test_agent_output_drift.py@@ -17,7 +17,7 @@ from pipelex.cli.agent_cli.commands.agent_output import AGENT_ERROR_DOMAINS, AGE_EXCEPTION_MODULES: tuple[str, ...] = ("pipelex.codegen.exceptions","pipelex.cogt.exceptions",- "pipelex.core.interpreter.exceptions",+ "pipelex.mthds_parsing.exceptions","pipelex.core.pipes.exceptions","pipelex.pipe_operators.exceptions","pipelex.pipeline.exceptions",diff --git a/tests/unit/pipelex/cli/test_codegen_cli.py b/tests/unit/pipelex/cli/test_codegen_cli.pyindex abda90310..d1d4e1d02 100644--- a/tests/unit/pipelex/cli/test_codegen_cli.py+++ b/tests/unit/pipelex/cli/test_codegen_cli.py@@ -20,9 +20,9 @@ from pipelex.cli.commands.codegen.types_cmd import codegen_types_cmdfrom pipelex.codegen.emitters.target import CodegenTarget, EmittedFilefrom pipelex.codegen.lock import CODEGEN_LOCK_FILENAMEfrom pipelex.core.domains.domain_blueprint import DomainBlueprint-from pipelex.core.pipes.rendering.input_renderer import InputsTemplateFormatfrom pipelex.libraries.library_crate import LibraryCratefrom pipelex.libraries.pipe.exceptions import PipeLibraryError+from pipelex.pipe_machinery.rendering.input_renderer import InputsTemplateFormatif TYPE_CHECKING:from pytest_mock import MockerFixture, MockTypediff --git a/tests/unit/pipelex/cli/test_error_handlers_more.py b/tests/unit/pipelex/cli/test_error_handlers_more.pyindex a2cd07189..1224f4bc9 100644--- a/tests/unit/pipelex/cli/test_error_handlers_more.py+++ b/tests/unit/pipelex/cli/test_error_handlers_more.py@@ -30,8 +30,7 @@ from pipelex.cli.error_handlers import (from pipelex.cogt.exceptions import GatewayUnknownModelError, ModelDeckPresetValidatonErrorfrom pipelex.cogt.inference.error_classification import UserAction, UserActionKindfrom pipelex.cogt.model_backends.model_type import ModelType-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData-from pipelex.core.exceptions import PipesAndConceptValidationErrorData+from pipelex.core.exceptions import PipelexBundleBlueprintValidationErrorData, PipesAndConceptValidationErrorDatafrom pipelex.core.pipes.exceptions import PipeValidationErrorTypefrom pipelex.pipeline.exceptions import ValidateBundleErrorfrom pipelex.system.pipelex_service.exceptions import (diff --git a/tests/unit/pipelex/cli/test_run_core_execution.py b/tests/unit/pipelex/cli/test_run_core_execution.pyindex 0e60c5fa0..ba5c6be36 100644--- a/tests/unit/pipelex/cli/test_run_core_execution.py+++ b/tests/unit/pipelex/cli/test_run_core_execution.py@@ -166,7 +166,7 @@ class TestRunCoreExecution:bundle_file = tmp_path / "demo.mthds"bundle_file.write_text("# bundle content\n", encoding="utf-8")mocker.patch(- "pipelex.cli.commands.run._run_core.PipelexInterpreter.make_pipelex_bundle_blueprint",+ "pipelex.cli.commands.run._run_core.MthdsParser.make_pipelex_bundle_blueprint",return_value=SimpleNamespace(main_pipe="bundle_main"),)pipe_output = self._make_pipe_output(mocker)@@ -184,7 +184,7 @@ class TestRunCoreExecution:bundle_file = tmp_path / "demo.mthds"bundle_file.write_text("# bundle content\n", encoding="utf-8")mocker.patch(- "pipelex.cli.commands.run._run_core.PipelexInterpreter.make_pipelex_bundle_blueprint",+ "pipelex.cli.commands.run._run_core.MthdsParser.make_pipelex_bundle_blueprint",return_value=SimpleNamespace(main_pipe=None),)diff --git a/tests/unit/pipelex/cogt/img_gen/test_img_gen_args_factory.py b/tests/unit/pipelex/cogt/img_gen/test_img_gen_args_factory.pyindex 8089ebe7e..cb3926644 100644--- a/tests/unit/pipelex/cogt/img_gen/test_img_gen_args_factory.py+++ b/tests/unit/pipelex/cogt/img_gen/test_img_gen_args_factory.py@@ -45,7 +45,7 @@ from pipelex.cogt.llm.thinking_mode import ThinkingModefrom pipelex.cogt.model_backends.model_spec import InferenceModelSpecfrom pipelex.cogt.model_backends.model_type import ModelTypefrom pipelex.cogt.usage.cost_category import CostCategory-from pipelex.plugins.openai.openai_img_gen_worker import OpenAIImgGenWorker+from pipelex.providers.openai.openai_img_gen_worker import OpenAIImgGenWorkerfrom pipelex.system.job_metadata import JobMetadatafrom pipelex.tools.misc.filetype_utils import FileTypefrom pipelex.tools.misc.image_utils import ImageFormatdiff --git a/tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py b/tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.pysimilarity index 94%rename from tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.pyrename to tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.pyindex 5ee74bed5..a59ed4cc9 100644--- a/tests/unit/pipelex/cogt/img_gen/test_img_gen_args_openai_sizes.py+++ b/tests/unit/pipelex/cogt/img_gen/test_img_gen_args_gpt_sizes.py@@ -22,7 +22,7 @@ from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, SizeTierfrom pipelex.cogt.img_gen.img_gen_model_rules import AspectRatioTaxonomy-class TestImgGenArgsOpenAISizes:+class TestImgGenArgsGptSizes:@pytest.mark.parametrize(("aspect_ratio", "size", "expected_size_string"),[@@ -83,7 +83,7 @@ class TestImgGenArgsOpenAISizes:def test_tier_derived_reliability_note_is_verbose(self, mocker: MockerFixture) -> None:"""A tier-derived size above the reliability boundary logs verbose, not a loud warning."""- mock_log = mocker.patch("pipelex.plugins.openai.openai_img_gen_factory.log")+ mock_log = mocker.patch("pipelex.cogt.img_gen.img_gen_gpt_mapping.log")ImgGenArgsFactory.make_args_from_aspect_ratio(aspect_ratio_taxonomy=AspectRatioTaxonomy.GPT_IMAGE_2,@@ -97,7 +97,7 @@ class TestImgGenArgsOpenAISizes:def test_user_exact_size_reliability_warning_stays_loud(self, mocker: MockerFixture) -> None:"""A user-supplied exact size above the reliability boundary keeps the loud warning."""- mock_log = mocker.patch("pipelex.plugins.openai.openai_img_gen_factory.log")+ mock_log = mocker.patch("pipelex.cogt.img_gen.img_gen_gpt_mapping.log")ImgGenArgsFactory.make_args_from_aspect_ratio(aspect_ratio_taxonomy=AspectRatioTaxonomy.GPT_IMAGE_2,@@ -110,7 +110,7 @@ class TestImgGenArgsOpenAISizes:mock_log.verbose.assert_not_called()def test_exact_size_below_reliability_boundary_logs_nothing(self, mocker: MockerFixture) -> None:- mock_log = mocker.patch("pipelex.plugins.openai.openai_img_gen_factory.log")+ mock_log = mocker.patch("pipelex.cogt.img_gen.img_gen_gpt_mapping.log")ImgGenArgsFactory.make_args_from_aspect_ratio(aspect_ratio_taxonomy=AspectRatioTaxonomy.GPT_IMAGE_2,diff --git a/tests/unit/pipelex/cogt/img_gen/test_img_gen_args_inference_safety.py b/tests/unit/pipelex/cogt/img_gen/test_img_gen_args_inference_safety.pyindex 48c854318..71bf7ded5 100644--- a/tests/unit/pipelex/cogt/img_gen/test_img_gen_args_inference_safety.py+++ b/tests/unit/pipelex/cogt/img_gen/test_img_gen_args_inference_safety.py@@ -229,7 +229,7 @@ class TestImgGenArgsInferenceSafety:)def test_safety_openai_moderation_mapping(self, is_moderated: bool | None, expected_args: dict[str, Any]) -> None:"""OPENAI_MODERATION maps moderation enabled to standard filtering ("auto") and disabled to less restrictive ("low"),- skipping the omit sentinel when unset.+ and emits no key at all when unset so the provider applies its own default."""result = ImgGenArgsFactory.make_args_from_safety_checker(safety_checker_taxonomy=SafetyCheckerTaxonomy.OPENAI_MODERATION,diff --git a/tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py b/tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.pysimilarity index 85%rename from tests/unit/pipelex/plugins/google/test_google_img_gen_factory.pyrename to tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.pyindex 5ef244f3e..2e7a7c56b 100644--- a/tests/unit/pipelex/plugins/google/test_google_img_gen_factory.py+++ b/tests/unit/pipelex/cogt/img_gen/test_img_gen_gemini_mapping.py@@ -2,13 +2,13 @@ import pytestfrom pipelex.cogt.exceptions import ImgGenParameterErrorfrom pipelex.cogt.image.image_size import ImageSize+from pipelex.cogt.img_gen.img_gen_gemini_mapping import (+ GeminiAspectRatioType,+ GeminiImageSize,+ ImgGenGeminiMapping,+)from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, SizeTierfrom pipelex.cogt.img_gen.img_gen_model_rules import AspectRatioTaxonomy-from pipelex.plugins.google.google_img_gen_factory import (- GoogleAspectRatioType,- GoogleImageSize,- GoogleImgGenFactory,-)BANNER_ASPECT_RATIOS = [AspectRatio.LANDSCAPE_4_1,@@ -17,7 +17,7 @@ BANNER_ASPECT_RATIOS = [AspectRatio.PORTRAIT_1_8,]-GOOGLE_TAXONOMIES = [+GEMINI_TAXONOMIES = [AspectRatioTaxonomy.GEMINI_2_5,AspectRatioTaxonomy.GEMINI_3_PRO,AspectRatioTaxonomy.GEMINI_3_FLASH,@@ -25,7 +25,7 @@ GOOGLE_TAXONOMIES = []-class TestGoogleImgGenFactory:+class TestImgGenGeminiMapping:@pytest.mark.parametrize(("aspect_ratio", "expected_literal"),[@@ -37,21 +37,21 @@ class TestGoogleImgGenFactory:(AspectRatio.PORTRAIT_1_8, "1:8"),],)- def test_aspect_ratio_literal_mapping(self, aspect_ratio: AspectRatio, expected_literal: GoogleAspectRatioType) -> None:+ def test_aspect_ratio_literal_mapping(self, aspect_ratio: AspectRatio, expected_literal: GeminiAspectRatioType) -> None:"""The enum maps to Google's ratio string format, including the banner ratios."""- assert GoogleImgGenFactory.aspect_ratio_literal(aspect_ratio) == expected_literal+ assert ImgGenGeminiMapping.aspect_ratio_literal(aspect_ratio) == expected_literaldef test_aspect_ratio_literal_rejects_portrait_9_21(self) -> None:"""9:21 is not offered by any Google Gemini Image model."""with pytest.raises(ImgGenParameterError, match="not supported by Google Gemini Image models"):- GoogleImgGenFactory.aspect_ratio_literal(AspectRatio.PORTRAIT_9_21)+ ImgGenGeminiMapping.aspect_ratio_literal(AspectRatio.PORTRAIT_9_21)def test_gemini_3_grids_are_consistent(self) -> None:"""All Gemini 3 size grids cover the same ratio set, and the Pro subset is contained in it."""- ratio_sets = [set(grid) for grid in GoogleImgGenFactory.SIZE_TO_ASPECT_RATIO_TO_DIMENSIONS_GEMINI_3.values()]+ ratio_sets = [set(grid) for grid in ImgGenGeminiMapping.SIZE_TO_ASPECT_RATIO_TO_DIMENSIONS_GEMINI_3.values()]assert all(ratio_set == ratio_sets[0] for ratio_set in ratio_sets)- assert ratio_sets[0] >= GoogleImgGenFactory.GEMINI_3_PRO_ASPECT_RATIOS- assert set(GoogleImgGenFactory.ASPECT_RATIO_TO_DIMENSIONS_GEMINI_2_5_1K) == GoogleImgGenFactory.GEMINI_3_PRO_ASPECT_RATIOS+ assert ratio_sets[0] >= ImgGenGeminiMapping.GEMINI_3_PRO_ASPECT_RATIOS+ assert set(ImgGenGeminiMapping.ASPECT_RATIO_TO_DIMENSIONS_GEMINI_2_5_1K) == ImgGenGeminiMapping.GEMINI_3_PRO_ASPECT_RATIOS@pytest.mark.parametrize(("tier", "expected_image_size"),@@ -61,14 +61,14 @@ class TestGoogleImgGenFactory:(SizeTier.FOUR_K, "4K"),],)- def test_image_size_for_tier(self, tier: SizeTier, expected_image_size: GoogleImageSize) -> None:+ def test_image_size_for_tier(self, tier: SizeTier, expected_image_size: GeminiImageSize) -> None:"""Portable size tiers map to Google's wire tokens."""- assert GoogleImgGenFactory.image_size_for_tier(tier) == expected_image_size+ assert ImgGenGeminiMapping.image_size_for_tier(tier) == expected_image_sizedef test_image_size_for_tier_rejects_half_k(self) -> None:"""The 0.5k wire token is unverified — rejected until Google opens it."""with pytest.raises(ImgGenParameterError, match=r"0\.5k"):- GoogleImgGenFactory.image_size_for_tier(SizeTier.HALF_K)+ ImgGenGeminiMapping.image_size_for_tier(SizeTier.HALF_K)@pytest.mark.parametrize(("aspect_ratio", "size", "expected_dimensions"),@@ -92,11 +92,11 @@ class TestGoogleImgGenFactory:def test_gemini_3_flash_dimensions(self,aspect_ratio: AspectRatio,- size: GoogleImageSize,+ size: GeminiImageSize,expected_dimensions: tuple[int, int],) -> None:"""gemini_3_flash supports the full Gemini 3 grid, banners included, at every size."""- dimensions = GoogleImgGenFactory.dimensions_for_aspect_ratio_and_size(+ dimensions = ImgGenGeminiMapping.dimensions_for_aspect_ratio_and_size(AspectRatioTaxonomy.GEMINI_3_FLASH,aspect_ratio=aspect_ratio,size=size,@@ -108,7 +108,7 @@ class TestGoogleImgGenFactory:def test_gemini_3_pro_rejects_banner_ratios(self, aspect_ratio: AspectRatio) -> None:"""Gemini 3 Pro publishes no banner ratios, so its taxonomy rejects them cleanly."""with pytest.raises(ImgGenParameterError, match="not supported by model"):- GoogleImgGenFactory.dimensions_for_aspect_ratio_and_size(+ ImgGenGeminiMapping.dimensions_for_aspect_ratio_and_size(AspectRatioTaxonomy.GEMINI_3_PRO,aspect_ratio=aspect_ratio,size="1K",@@ -126,10 +126,10 @@ class TestGoogleImgGenFactory:def test_gemini_3_pro_standard_ratios_work_at_every_size(self,aspect_ratio: AspectRatio,- size: GoogleImageSize,+ size: GeminiImageSize,expected_dimensions: tuple[int, int],) -> None:- dimensions = GoogleImgGenFactory.dimensions_for_aspect_ratio_and_size(+ dimensions = ImgGenGeminiMapping.dimensions_for_aspect_ratio_and_size(AspectRatioTaxonomy.GEMINI_3_PRO,aspect_ratio=aspect_ratio,size=size,@@ -141,7 +141,7 @@ class TestGoogleImgGenFactory:def test_gemini_2_5_rejects_banner_ratios(self, aspect_ratio: AspectRatio) -> None:"""The Gemini 2.5 grid has no banner ratios."""with pytest.raises(ImgGenParameterError, match="not supported by model"):- GoogleImgGenFactory.dimensions_for_aspect_ratio_and_size(+ ImgGenGeminiMapping.dimensions_for_aspect_ratio_and_size(AspectRatioTaxonomy.GEMINI_2_5,aspect_ratio=aspect_ratio,size="1K",@@ -149,10 +149,10 @@ class TestGoogleImgGenFactory:)@pytest.mark.parametrize("size", ["2K", "4K"])- def test_gemini_2_5_rejects_non_1k_sizes(self, size: GoogleImageSize) -> None:+ def test_gemini_2_5_rejects_non_1k_sizes(self, size: GeminiImageSize) -> None:"""gemini_2_5 only offers the 1K size."""with pytest.raises(ImgGenParameterError, match="does not support image size"):- GoogleImgGenFactory.dimensions_for_aspect_ratio_and_size(+ ImgGenGeminiMapping.dimensions_for_aspect_ratio_and_size(AspectRatioTaxonomy.GEMINI_2_5,aspect_ratio=AspectRatio.SQUARE,size=size,@@ -160,10 +160,10 @@ class TestGoogleImgGenFactory:)@pytest.mark.parametrize("size", ["2K", "4K"])- def test_gemini_3_flash_lite_rejects_non_1k_sizes(self, size: GoogleImageSize) -> None:+ def test_gemini_3_flash_lite_rejects_non_1k_sizes(self, size: GeminiImageSize) -> None:"""gemini_3_flash_lite only offers the 1K size."""with pytest.raises(ImgGenParameterError, match="does not support image size"):- GoogleImgGenFactory.dimensions_for_aspect_ratio_and_size(+ ImgGenGeminiMapping.dimensions_for_aspect_ratio_and_size(AspectRatioTaxonomy.GEMINI_3_FLASH_LITE,aspect_ratio=AspectRatio.SQUARE,size=size,@@ -180,7 +180,7 @@ class TestGoogleImgGenFactory:)def test_gemini_3_flash_lite_full_ratio_set_at_1k(self, aspect_ratio: AspectRatio, expected_dimensions: tuple[int, int]) -> None:"""gemini_3_flash_lite supports the full Gemini 3 ratio set, banners included, at 1K."""- dimensions = GoogleImgGenFactory.dimensions_for_aspect_ratio_and_size(+ dimensions = ImgGenGeminiMapping.dimensions_for_aspect_ratio_and_size(AspectRatioTaxonomy.GEMINI_3_FLASH_LITE,aspect_ratio=aspect_ratio,size="1K",@@ -188,11 +188,11 @@ class TestGoogleImgGenFactory:)assert dimensions == expected_dimensions- @pytest.mark.parametrize("taxonomy", GOOGLE_TAXONOMIES)+ @pytest.mark.parametrize("taxonomy", GEMINI_TAXONOMIES)def test_portrait_9_21_rejected_for_every_taxonomy(self, taxonomy: AspectRatioTaxonomy) -> None:"""9:21 is rejected before any per-taxonomy gating."""with pytest.raises(ImgGenParameterError, match="not supported by Google Gemini Image models"):- GoogleImgGenFactory.dimensions_for_aspect_ratio_and_size(+ ImgGenGeminiMapping.dimensions_for_aspect_ratio_and_size(taxonomy,aspect_ratio=AspectRatio.PORTRAIT_9_21,size="1K",@@ -202,7 +202,7 @@ class TestGoogleImgGenFactory:def test_non_google_taxonomy_rejected(self) -> None:"""A non-Gemini taxonomy value has no Google resolution grids."""with pytest.raises(ImgGenParameterError, match="not a Google Gemini image generation taxonomy"):- GoogleImgGenFactory.dimensions_for_aspect_ratio_and_size(+ ImgGenGeminiMapping.dimensions_for_aspect_ratio_and_size(AspectRatioTaxonomy.FLUX,aspect_ratio=AspectRatio.SQUARE,size="1K",@@ -225,11 +225,11 @@ class TestGoogleImgGenFactory:self,taxonomy: AspectRatioTaxonomy,exact_size: ImageSize,- expected_ratio: GoogleAspectRatioType,- expected_image_size: GoogleImageSize,+ expected_ratio: GeminiAspectRatioType,+ expected_image_size: GeminiImageSize,) -> None:"""An exact WxH equal to a grid cell derives the (ratio, size) pair."""- derived = GoogleImgGenFactory.derive_ratio_and_size_from_exact_size(+ derived = ImgGenGeminiMapping.derive_ratio_and_size_from_exact_size(taxonomy,exact_size=exact_size,model_name="some-gemini-model",@@ -239,7 +239,7 @@ class TestGoogleImgGenFactory:def test_exact_grid_miss_suggests_nearest_cells(self) -> None:"""A near-miss errors out naming the nearest valid cells — never silently snaps."""with pytest.raises(ImgGenParameterError) as exc_info:- GoogleImgGenFactory.derive_ratio_and_size_from_exact_size(+ ImgGenGeminiMapping.derive_ratio_and_size_from_exact_size(AspectRatioTaxonomy.GEMINI_3_FLASH,exact_size=ImageSize(width=2000, height=2000),model_name="nano-banana-2",@@ -252,7 +252,7 @@ class TestGoogleImgGenFactory:def test_exact_grid_respects_taxonomy_size_gating(self) -> None:"""A 2K cell of the Gemini 3 grid is not a hit on a 1K-only taxonomy."""with pytest.raises(ImgGenParameterError) as exc_info:- GoogleImgGenFactory.derive_ratio_and_size_from_exact_size(+ ImgGenGeminiMapping.derive_ratio_and_size_from_exact_size(AspectRatioTaxonomy.GEMINI_3_FLASH_LITE,exact_size=ImageSize(width=2048, height=2048),model_name="nano-banana-2-lite",@@ -263,7 +263,7 @@ class TestGoogleImgGenFactory:def test_exact_grid_respects_taxonomy_ratio_gating(self) -> None:"""A banner cell of the Gemini 3 grid is not a hit on the Pro taxonomy (no banners)."""with pytest.raises(ImgGenParameterError):- GoogleImgGenFactory.derive_ratio_and_size_from_exact_size(+ ImgGenGeminiMapping.derive_ratio_and_size_from_exact_size(AspectRatioTaxonomy.GEMINI_3_PRO,exact_size=ImageSize(width=2048, height=512),model_name="nano-banana-pro",@@ -282,10 +282,10 @@ class TestGoogleImgGenFactory:taxonomy: AspectRatioTaxonomy,aspect_ratio: AspectRatio,tier: SizeTier,- expected: tuple[GoogleAspectRatioType, GoogleImageSize, int, int],+ expected: tuple[GeminiAspectRatioType, GeminiImageSize, int, int],) -> None:"""A tier resolves to Google's `image_size` token plus the matching grid dimensions."""- resolved = GoogleImgGenFactory.resolve_image_config(+ resolved = ImgGenGeminiMapping.resolve_image_config(taxonomy,aspect_ratio=aspect_ratio,size=tier,@@ -295,7 +295,7 @@ class TestGoogleImgGenFactory:def test_resolve_image_config_unset_size_omits_wire_param(self) -> None:"""No size set -> `image_size` stays None (param omitted on the wire), dims come from the 1K grid."""- resolved = GoogleImgGenFactory.resolve_image_config(+ resolved = ImgGenGeminiMapping.resolve_image_config(AspectRatioTaxonomy.GEMINI_3_FLASH,aspect_ratio=AspectRatio.SQUARE,size=None,@@ -307,7 +307,7 @@ class TestGoogleImgGenFactory:def test_resolve_image_config_from_exact_size(self) -> None:"""An exact size resolves through the grid derivation, ignoring the aspect_ratio argument."""- resolved = GoogleImgGenFactory.resolve_image_config(+ resolved = ImgGenGeminiMapping.resolve_image_config(AspectRatioTaxonomy.GEMINI_3_FLASH,aspect_ratio=AspectRatio.SQUARE,size=ImageSize(width=2752, height=1536),@@ -318,7 +318,7 @@ class TestGoogleImgGenFactory:def test_resolve_image_config_rejects_tier_beyond_taxonomy(self) -> None:"""A tier outside the taxonomy's grids is a validation error, not a silent downgrade."""with pytest.raises(ImgGenParameterError, match="does not support image size"):- GoogleImgGenFactory.resolve_image_config(+ ImgGenGeminiMapping.resolve_image_config(AspectRatioTaxonomy.GEMINI_2_5,aspect_ratio=AspectRatio.SQUARE,size=SizeTier.TWO_K,@@ -327,7 +327,7 @@ class TestGoogleImgGenFactory:def test_resolve_image_config_rejects_half_k(self) -> None:with pytest.raises(ImgGenParameterError, match=r"0\.5k"):- GoogleImgGenFactory.resolve_image_config(+ ImgGenGeminiMapping.resolve_image_config(AspectRatioTaxonomy.GEMINI_3_FLASH,aspect_ratio=AspectRatio.SQUARE,size=SizeTier.HALF_K,diff --git a/tests/unit/pipelex/cogt/img_gen/test_img_gen_mapping_neutrality.py b/tests/unit/pipelex/cogt/img_gen/test_img_gen_mapping_neutrality.pynew file mode 100644index 000000000..1b47e31d2--- /dev/null+++ b/tests/unit/pipelex/cogt/img_gen/test_img_gen_mapping_neutrality.py@@ -0,0 +1,119 @@+# The img-gen taxonomy mapping modules are the neutral home the vendor img-gen factories moved into,+# and neutrality is the whole reason the move happened: their dispatch key is `AspectRatioTaxonomy`, a+# `cogt`-owned enum that names model families and no providers, and no family is served by a single+# adapter (the `openai` and `azure_openai` decks both ship GPT Image models; the gateway worker+# resolves Gemini geometry through the same mapping the native Google worker uses).+# Nothing else in the repo can catch a regression here: `pipelex.cogt` and+# `pipelex.providers` are BOTH runtime-layer, so the hub-layering guard and the import-closure test are+# blind to an edge between them by construction — see docs/contribute/hub-layering.md, "Known inversions".+#+# Two complementary checks, because the coupling can come back by two routes. The direct one is a fresh+# `from openai import omit` in the module's own source (which is what the GPT mapping carried before the+# move); the transitive one is an innocuous-looking `pipelex.cogt.*` import that drags an adapter in+# behind it. The first check reads the source, the second measures the import closure.+#+# Both are scoped to `pipelex.providers`: a vendor SDK reached through some *other* `cogt` module would pass+# them. That hole is unreachable rather than guarded here — `pipelex/cogt/**` imports no vendor SDK at all,+# which is pinned directly by tests/unit/pipelex/cogt/test_cogt_dependency_boundaries.py.++from __future__ import annotations++import ast+import subprocess # noqa: S404+import sys+import textwrap+from pathlib import Path++import pytest++#: Anchored on `tests/` by name rather than by a parent count — a depth index resolves silently to the+#: wrong directory when a module moves, and this repo has been bitten by exactly that.+_TESTS_ROOT = next(parent for parent in Path(__file__).resolve().parents if parent.name == "tests")+_MAPPING_DIR = _TESTS_ROOT.parent / "pipelex" / "cogt" / "img_gen"++#: Derived from disk rather than listed, so a third taxonomy family is covered the day it lands — within the+#: convention, and no further. The glob is non-recursive and suffix-keyed: it covers a new family only if+#: that family lands in this directory under the `img_gen_*_mapping.py` name. A mapping placed in a+#: subdirectory or named otherwise is simply not checked here. The convention is deliberately left unbound+#: by any test — this track's argument throughout was placement over indirection, and a naming rule enforced+#: by machinery is the shape it spent four review rounds deleting.+#:+#: A glob that stops matching is the failure mode that buys, and it is guarded in exactly one place —+#: the non-parametrized test below. It cannot be guarded in the parametrized one: pytest never calls a+#: test body for an empty parameter set, it reports `SKIPPED [1] got empty parameter set` and exits 0,+#: so an assertion at the top of that body is unreachable by construction. Both lists derive from this+#: one glob, so the single reachable check covers the module.+MAPPING_MODULE_PATHS: list[Path] = sorted(_MAPPING_DIR.glob("img_gen_*_mapping.py"))++MAPPING_MODULE_QNAMES: list[str] = [f"pipelex.cogt.img_gen.{path.stem}" for path in MAPPING_MODULE_PATHS]++#: Wall-clock bound on the closure subprocess, so a deadlock presents as a failure rather than a hung suite.+SUBPROCESS_TIMEOUT_SECONDS = 300++_CLOSURE_SCRIPT = textwrap.dedent(+ """+ import importlib+ import sys++ for target in sys.argv[1:]:+ importlib.import_module(target)++ offenders = sorted(name for name in sys.modules if name.startswith("pipelex.providers"))+ if offenders:+ print(f"the img-gen mapping modules loaded {len(offenders)} provider adapter module(s): {offenders}")+ raise SystemExit(1)++ print("closure OK")+ """+)+++def _import_roots(*, module_path: Path) -> set[str]:+ """The top-level package of every import statement in a module, module-level and deferred alike."""+ tree = ast.parse(module_path.read_text(encoding="utf-8"), filename=str(module_path))+ roots: set[str] = set()+ for node in ast.walk(tree):+ if isinstance(node, ast.Import):+ roots.update(alias.name.split(".")[0] for alias in node.names)+ elif isinstance(node, ast.ImportFrom) and node.level == 0 and node.module:+ roots.add(node.module.split(".")[0])+ return roots+++class TestImgGenMappingNeutrality:+ @pytest.mark.parametrize("module_path", MAPPING_MODULE_PATHS, ids=lambda path: path.stem)+ def test_mapping_module_imports_only_pipelex_and_stdlib(self, module_path: Path) -> None:+ """A mapping table has no business importing a vendor SDK: every import root is stdlib or `pipelex`."""+ offenders = sorted(root for root in _import_roots(module_path=module_path) if root != "pipelex" and root not in sys.stdlib_module_names)++ assert not offenders, (+ f"{module_path.name} imports third-party package(s) {offenders}. These modules map a `cogt`-owned "+ "taxonomy enum onto provider wire values and are consumed by several adapters at once, so they must "+ "stay free of any provider SDK — that is what the F1 move bought. If a mapping genuinely needs a "+ "third-party type, the value belongs on the adapter side of the boundary, not here."+ )++ def test_mapping_modules_load_no_provider_adapter(self) -> None:+ """Importing every mapping module in a fresh interpreter pulls in zero `pipelex.providers` modules."""+ # The module's one reachable anti-vacuity guard — see the note on MAPPING_MODULE_PATHS. Both this+ # check and its parametrized sibling would otherwise measure nothing if the glob stopped matching.+ assert MAPPING_MODULE_QNAMES, f"no img_gen_*_mapping.py found under {_MAPPING_DIR} — this check measures nothing"++ try:+ result = subprocess.run( # noqa: S603+ [sys.executable, "-c", _CLOSURE_SCRIPT, *MAPPING_MODULE_QNAMES],+ capture_output=True,+ text=True,+ check=False,+ timeout=SUBPROCESS_TIMEOUT_SECONDS,+ )+ except subprocess.TimeoutExpired as exc:+ message = f"the closure subprocess did not finish within {SUBPROCESS_TIMEOUT_SECONDS}s"+ raise AssertionError(message) from exc++ assert result.returncode == 0, (+ "an img-gen mapping module reached a provider adapter. The dependency runs the other way: adapters "+ "import inward to these mappings, never the reverse. Neither the hub-layering guard nor the "+ "import-closure test can see this edge — both packages are runtime-layer.\n"+ f"stdout={result.stdout}\nstderr={result.stderr}"+ )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 c7752da7e..6ee3fac1a 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@@ -17,16 +17,16 @@ from pipelex.cogt.model_backends.model_spec import InferenceModelSpecfrom pipelex.cogt.model_backends.model_type import ModelTypefrom pipelex.cogt.usage.cost_category import CostCategoryfrom pipelex.exceptions import MissingDependencyError-from pipelex.plugins.blackboxai.blackboxai_completions_factory import BlackboxaiCompletionsFactory-from pipelex.plugins.builtins import BUILTIN_PLUGINS+from pipelex.interpreter_plugins.builtins import BUILTIN_PLUGINSfrom pipelex.plugins.exceptions import InferenceBackendNotFoundError-from pipelex.plugins.gateway.gateway_completions_factory import GatewayCompletionsFactoryfrom pipelex.plugins.inference_backend_registry import InferenceBackendRegistryfrom pipelex.plugins.model_handle import ModelHandle-from pipelex.plugins.openai.openai_completions_factory import OpenAICompletionsFactory-from pipelex.plugins.openrouter.openrouter_completions_factory import OpenRouterCompletionsFactoryfrom pipelex.plugins.registrar import PluginRegistrarfrom pipelex.plugins.sdk_client_registry import SdkClientRegistry+from pipelex.providers.blackboxai.blackboxai_completions_factory import BlackboxaiCompletionsFactory+from pipelex.providers.gateway.gateway_completions_factory import GatewayCompletionsFactory+from pipelex.providers.openai.openai_completions_factory import OpenAICompletionsFactory+from pipelex.providers.openrouter.openrouter_completions_factory import OpenRouterCompletionsFactoryif TYPE_CHECKING:from pytest_mock import MockerFixture@@ -52,21 +52,21 @@ def build_builtin_inference_backend_registry() -> InferenceBackendRegistry:FACTORY_MODULE = "pipelex.cogt.img_gen.img_gen_worker_factory"-GATEWAY_CLIENT = "pipelex.plugins.gateway.gateway_factory.GatewayFactory.make_portkey_client"+GATEWAY_CLIENT = "pipelex.providers.gateway.gateway_factory.GatewayFactory.make_portkey_client"GATEWAY_COMPLETIONS_CLIENT = (- "pipelex.plugins.gateway.gateway_completions_factory.GatewayCompletionsFactory.make_portkey_openai_client_for_completions"+ "pipelex.providers.gateway.gateway_completions_factory.GatewayCompletionsFactory.make_portkey_openai_client_for_completions")-OPENAI_CLIENT = "pipelex.plugins.openai.openai_client_factory.OpenAIClientFactory.make_openai_client"-GOOGLE_CLIENT = "pipelex.plugins.google.google_factory.GoogleFactory.make_google_client"-HUGGINGFACE_PROVIDER = "pipelex.plugins.huggingface.huggingface_factory.HuggingFaceFactory.make_huggingface_inference_provider"--GATEWAY_WORKER = "pipelex.plugins.gateway.gateway_img_gen_worker.GatewayImgGenWorker"-FAL_WORKER = "pipelex.plugins.fal.fal_img_gen_worker.FalImgGenWorker"-HUGGINGFACE_WORKER = "pipelex.plugins.huggingface.huggingface_img_gen_worker.HuggingFaceImgGenWorker"-OPENAI_WORKER = "pipelex.plugins.openai.openai_img_gen_worker.OpenAIImgGenWorker"-COMPLETIONS_WORKER = "pipelex.plugins.openai.openai_completions_img_gen_worker.OpenAICompletionsImgGenWorker"-AZURE_WORKER = "pipelex.plugins.azure_rest.azure_img_gen_worker.AzureImgGenWorker"-GOOGLE_WORKER = "pipelex.plugins.google.google_img_gen_worker.GoogleImgGenWorker"+OPENAI_CLIENT = "pipelex.providers.openai.openai_client_factory.OpenAIClientFactory.make_openai_client"+GOOGLE_CLIENT = "pipelex.providers.google.google_factory.GoogleFactory.make_google_client"+HUGGINGFACE_PROVIDER = "pipelex.providers.huggingface.huggingface_factory.HuggingFaceFactory.make_huggingface_inference_provider"++GATEWAY_WORKER = "pipelex.providers.gateway.gateway_img_gen_worker.GatewayImgGenWorker"+FAL_WORKER = "pipelex.providers.fal.fal_img_gen_worker.FalImgGenWorker"+HUGGINGFACE_WORKER = "pipelex.providers.huggingface.huggingface_img_gen_worker.HuggingFaceImgGenWorker"+OPENAI_WORKER = "pipelex.providers.openai.openai_img_gen_worker.OpenAIImgGenWorker"+COMPLETIONS_WORKER = "pipelex.providers.openai.openai_completions_img_gen_worker.OpenAICompletionsImgGenWorker"+AZURE_WORKER = "pipelex.providers.azure_rest.azure_img_gen_worker.AzureImgGenWorker"+GOOGLE_WORKER = "pipelex.providers.google.google_img_gen_worker.GoogleImgGenWorker"def make_img_gen_model_spec(sdk: str, backend_name: str = "test_backend", variant: str | None = None) -> InferenceModelSpec:diff --git a/tests/unit/pipelex/cogt/llm/test_llm_worker_factory.py b/tests/unit/pipelex/cogt/llm/test_llm_worker_factory.pyindex 0eb75add0..8572970bd 100644--- a/tests/unit/pipelex/cogt/llm/test_llm_worker_factory.py+++ b/tests/unit/pipelex/cogt/llm/test_llm_worker_factory.py@@ -17,19 +17,19 @@ from pipelex.cogt.model_backends.model_spec import InferenceModelSpecfrom pipelex.cogt.model_backends.model_type import ModelTypefrom pipelex.cogt.usage.cost_category import CostCategoryfrom pipelex.exceptions import MissingDependencyError-from pipelex.plugins.builtins import BUILTIN_PLUGINS+from pipelex.interpreter_plugins.builtins import BUILTIN_PLUGINSfrom pipelex.plugins.exceptions import InferenceBackendNotFoundError-from pipelex.plugins.gateway.gateway_completions_factory import GatewayCompletionsFactory-from pipelex.plugins.gateway.gateway_responses_factory import GatewayResponsesFactoryfrom pipelex.plugins.inference_backend_registry import InferenceBackendRegistry-from pipelex.plugins.mistral.mistral_factory import MistralFactoryfrom pipelex.plugins.model_handle import ModelHandle-from pipelex.plugins.openai.openai_completions_factory import OpenAICompletionsFactory-from pipelex.plugins.openai.openai_responses_factory import OpenAIResponsesFactory-from pipelex.plugins.portkey.portkey_completions_factory import PortkeyCompletionsFactory-from pipelex.plugins.portkey.portkey_responses_factory import PortkeyResponsesFactoryfrom pipelex.plugins.registrar import PluginRegistrarfrom pipelex.plugins.sdk_client_registry import SdkClientRegistry+from pipelex.providers.gateway.gateway_completions_factory import GatewayCompletionsFactory+from pipelex.providers.gateway.gateway_responses_factory import GatewayResponsesFactory+from pipelex.providers.mistral.mistral_factory import MistralFactory+from pipelex.providers.openai.openai_completions_factory import OpenAICompletionsFactory+from pipelex.providers.openai.openai_responses_factory import OpenAIResponsesFactory+from pipelex.providers.portkey.portkey_completions_factory import PortkeyCompletionsFactory+from pipelex.providers.portkey.portkey_responses_factory import PortkeyResponsesFactoryif TYPE_CHECKING:from pytest_mock import MockerFixture@@ -56,25 +56,25 @@ def build_builtin_inference_backend_registry() -> InferenceBackendRegistry:FACTORY_MODULE = "pipelex.cogt.llm.llm_worker_factory"GATEWAY_COMPLETIONS_CLIENT = (- "pipelex.plugins.gateway.gateway_completions_factory.GatewayCompletionsFactory.make_portkey_openai_client_for_completions"+ "pipelex.providers.gateway.gateway_completions_factory.GatewayCompletionsFactory.make_portkey_openai_client_for_completions")-GATEWAY_RESPONSES_CLIENT = "pipelex.plugins.gateway.gateway_responses_factory.GatewayResponsesFactory.make_portkey_openai_client_for_responses"+GATEWAY_RESPONSES_CLIENT = "pipelex.providers.gateway.gateway_responses_factory.GatewayResponsesFactory.make_portkey_openai_client_for_responses"PORTKEY_COMPLETIONS_CLIENT = (- "pipelex.plugins.portkey.portkey_completions_factory.PortkeyCompletionsFactory.make_portkey_openai_client_for_completions"+ "pipelex.providers.portkey.portkey_completions_factory.PortkeyCompletionsFactory.make_portkey_openai_client_for_completions")-PORTKEY_RESPONSES_CLIENT = "pipelex.plugins.portkey.portkey_responses_factory.PortkeyResponsesFactory.make_portkey_openai_client_for_responses"-OPENAI_CLIENT = "pipelex.plugins.openai.openai_client_factory.OpenAIClientFactory.make_openai_client"-ANTHROPIC_CLIENT = "pipelex.plugins.anthropic.anthropic_factory.AnthropicFactory.make_anthropic_client"-MISTRAL_CLIENT = "pipelex.plugins.mistral.mistral_factory.MistralFactory.make_mistral_client"-BEDROCK_CLIENT = "pipelex.plugins.bedrock.bedrock_factory.BedrockFactory.make_bedrock_client"-GOOGLE_CLIENT = "pipelex.plugins.google.google_factory.GoogleFactory.make_google_client"--COMPLETIONS_WORKER = "pipelex.plugins.openai.openai_completions_llm_worker.OpenAICompletionsLLMWorker"-RESPONSES_WORKER = "pipelex.plugins.openai.openai_responses_llm_worker.OpenAIResponsesLLMWorker"-ANTHROPIC_WORKER = "pipelex.plugins.anthropic.anthropic_llm_worker.AnthropicLLMWorker"-MISTRAL_WORKER = "pipelex.plugins.mistral.mistral_llm_worker.MistralLLMWorker"-BEDROCK_WORKER = "pipelex.plugins.bedrock.bedrock_llm_worker.BedrockLLMWorker"-GOOGLE_WORKER = "pipelex.plugins.google.google_llm_worker.GoogleLLMWorker"+PORTKEY_RESPONSES_CLIENT = "pipelex.providers.portkey.portkey_responses_factory.PortkeyResponsesFactory.make_portkey_openai_client_for_responses"+OPENAI_CLIENT = "pipelex.providers.openai.openai_client_factory.OpenAIClientFactory.make_openai_client"+ANTHROPIC_CLIENT = "pipelex.providers.anthropic.anthropic_factory.AnthropicFactory.make_anthropic_client"+MISTRAL_CLIENT = "pipelex.providers.mistral.mistral_factory.MistralFactory.make_mistral_client"+BEDROCK_CLIENT = "pipelex.providers.bedrock.bedrock_factory.BedrockFactory.make_bedrock_client"+GOOGLE_CLIENT = "pipelex.providers.google.google_factory.GoogleFactory.make_google_client"++COMPLETIONS_WORKER = "pipelex.providers.openai.openai_completions_llm_worker.OpenAICompletionsLLMWorker"+RESPONSES_WORKER = "pipelex.providers.openai.openai_responses_llm_worker.OpenAIResponsesLLMWorker"+ANTHROPIC_WORKER = "pipelex.providers.anthropic.anthropic_llm_worker.AnthropicLLMWorker"+MISTRAL_WORKER = "pipelex.providers.mistral.mistral_llm_worker.MistralLLMWorker"+BEDROCK_WORKER = "pipelex.providers.bedrock.bedrock_llm_worker.BedrockLLMWorker"+GOOGLE_WORKER = "pipelex.providers.google.google_llm_worker.GoogleLLMWorker"def make_llm_model_spec(sdk: str, backend_name: str = "test_backend") -> InferenceModelSpec:diff --git a/tests/unit/pipelex/cogt/test_cogt_dependency_boundaries.py b/tests/unit/pipelex/cogt/test_cogt_dependency_boundaries.pynew file mode 100644index 000000000..0326dadf9--- /dev/null+++ b/tests/unit/pipelex/cogt/test_cogt_dependency_boundaries.py@@ -0,0 +1,235 @@+# `pipelex.cogt` is the vendor-neutral inference engine: it owns the taxonomies, the worker protocols and+# the model registry, and it is the half of the runtime you can embed without the MTHDS interpreter. Two+# facts make that neutrality real rather than aspirational, and neither is visible to any other gate:+#+# 1. `cogt` imports no vendor SDK. Its third-party surface is framework and infrastructure only.+# 2. `cogt → pipelex.providers` is a short, deliberate, documented list — the four config classes the main+# config model needs statically typed, plus one deferred VertexAI factory import.+#+# Both are pinned below as golden sets rather than as rules, because both are *accepted inversions*: the+# engine naming four vendors is a placement wart the M2 review weighed and kept (a plugin-contributed config+# section would trade compile-time typing for a dynamic registry), so there is no predicate that separates+# the sanctioned edges from a new one. A golden set needs none — it turns the sixth edge into a diff a+# reviewer sees, which is exactly what happened by hand three times during the modularity track.+#+# Why nothing else can see this: `pipelex.cogt` and `pipelex.providers` are BOTH runtime-layer, so the+# hub-layering guard and the import-closure test are blind to an edge between them by construction. See+# docs/contribute/hub-layering.md, "Known inversions", which documents the same list in prose.+#+# A repo-wide "no vendor SDK outside `pipelex/providers/`" check is the tempting generalization and it is+# WRONG — it would be red on day one. `tools/pdf/pypdfium2_renderer.py`, `tools/storage/`, `tracing/` and+# `reporting/` all import infrastructure SDKs (pypdfium2, boto3/botocore, google.cloud) on purpose:+# `providers/storage/` is a registration shim whose implementations live under `pipelex/tools/`. The scope+# that is true is this one.++from __future__ import annotations++import ast+import sys+from pathlib import Path+from typing import NamedTuple++import pytest++#: Anchored on `tests/` by name rather than by a parent count — a depth index resolves silently to the+#: wrong directory when a module moves, and this repo has been bitten by exactly that.+_TESTS_ROOT = next(parent for parent in Path(__file__).resolve().parents if parent.name == "tests")+_REPO_ROOT = _TESTS_ROOT.parent+_COGT_DIR = _REPO_ROOT / "pipelex" / "cogt"++_PROVIDERS_PREFIX = "pipelex.providers"++#: How an import reaches the interpreter. Recorded in the pinned rows because promoting a deferred import to+#: module level is a real change — it is what puts the target in every closure that touches the module.+MODULE_LEVEL = "module-level"+DEFERRED = "deferred"+TYPE_CHECKING_ONLY = "type-checking"+++class ImportSite(NamedTuple):+ """One import statement, addressed by source file and fully-resolved target rather than by line number."""++ source: str+ target: str+ form: str++ def render(self) -> str:+ return f"{self.source} -> {self.target} [{self.form}]"+++#: Every third-party import root reachable from `pipelex/cogt/**`, in any form. Framework and infrastructure+#: only — no inference-provider SDK appears here, and that is the point: adding one is how the img-gen+#: coupling F1 removed would grow back. Adding a genuinely new framework dependency is a one-line update to+#: this set; adding a vendor SDK is a defect, and the two must not be told apart by whoever runs the test.+EXPECTED_THIRD_PARTY_ROOTS: frozenset[str] = frozenset(+ {+ "PIL",+ "datamodel_code_generator",+ "httpx",+ "instructor",+ "opentelemetry",+ "polyfactory",+ "pydantic",+ "rich",+ "tenacity",+ "typing_extensions",+ }+)++#: Every `cogt → pipelex.providers` import statement. Documented in prose in docs/contribute/hub-layering.md+#: under "Known inversions" — the four config classes are accepted (D-M2-2), the VertexAI factory import is+#: deferred inside a function and self-resolves when VertexAI support is removed.+EXPECTED_PROVIDER_EDGES: frozenset[str] = frozenset(+ {+ f"pipelex/cogt/config_cogt.py -> {_PROVIDERS_PREFIX}.anthropic.anthropic_config [{MODULE_LEVEL}]",+ f"pipelex/cogt/config_cogt.py -> {_PROVIDERS_PREFIX}.google.google_config [{MODULE_LEVEL}]",+ f"pipelex/cogt/config_cogt.py -> {_PROVIDERS_PREFIX}.mistral.mistral_config [{MODULE_LEVEL}]",+ f"pipelex/cogt/config_cogt.py -> {_PROVIDERS_PREFIX}.openai.openai_config [{MODULE_LEVEL}]",+ f"pipelex/cogt/model_backends/backend_factory.py -> {_PROVIDERS_PREFIX}.openai.vertexai_factory [{DEFERRED}]",+ }+)+++def _tests_type_checking(*, test: ast.expr) -> bool:+ """Whether an `if` guards its body on `TYPE_CHECKING`, under either import spelling."""+ match test:+ case ast.Name(id=name):+ return name == "TYPE_CHECKING"+ case ast.Attribute(attr=attr):+ return attr == "TYPE_CHECKING"+ case _:+ return False+++def _collect_imports(*, node: ast.AST, form: str, collected: list[tuple[ast.Import | ast.ImportFrom, str]]) -> None:+ """Recurse the tree, carrying how the current statement would execute at import time."""+ if isinstance(node, (ast.Import, ast.ImportFrom)):+ collected.append((node, form))+ return++ if isinstance(node, ast.If) and _tests_type_checking(test=node.test):+ # Only the guarded branch is type-only; the `else` is the runtime fallback optional deps use.+ for guarded_stmt in node.body:+ _collect_imports(node=guarded_stmt, form=TYPE_CHECKING_ONLY, collected=collected)+ for fallback_stmt in node.orelse:+ _collect_imports(node=fallback_stmt, form=form, collected=collected)+ return++ # A class body executes at import time, so only a function body defers.+ child_form = DEFERRED if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef)) else form+ for child in ast.iter_child_nodes(node):+ _collect_imports(node=child, form=child_form, collected=collected)+++def _resolve_imported_name(*, base_module: str, name: str) -> str:+ """`base_module.name` when that names a module of this repo, else `base_module` — the name was a symbol.++ `from pipelex import providers` and `from pipelex.providers.anthropic.anthropic_config import AnthropicConfig`+ are the same syntax carrying two different dependencies: the first is an edge on `pipelex.providers`, the+ second an edge on the module that defines the symbol. Resolving both to `base_module` lets a submodule+ import slip past the edge assertion; resolving both to `base_module.name` would grow every pinned row a+ symbol suffix and make a second import from an already-sanctioned module read as a brand-new edge.+ """+ candidate = _REPO_ROOT.joinpath(*base_module.split("."), name)+ return f"{base_module}.{name}" if candidate.is_dir() or candidate.with_suffix(".py").is_file() else base_module+++def _import_targets(*, node: ast.Import | ast.ImportFrom, package_parts: tuple[str, ...]) -> list[str]:+ """The absolute dotted target(s) of an import, resolving relative forms against the importing package."""+ if isinstance(node, ast.Import):+ return [alias.name for alias in node.names]++ if node.level == 0:+ base_module = node.module or ""+ else:+ # `from .x import y` in pipelex/cogt/llm/foo.py resolves against pipelex.cogt.llm; each extra dot climbs one.+ base = package_parts[: len(package_parts) - (node.level - 1)]+ parts = (*base, node.module) if node.module else base+ base_module = ".".join(parts)++ if not base_module:+ return []+ return sorted({_resolve_imported_name(base_module=base_module, name=alias.name) for alias in node.names})+++def _import_sites(*, module_path: Path) -> list[ImportSite]:+ tree = ast.parse(module_path.read_text(encoding="utf-8"), filename=str(module_path))+ relative_path = module_path.relative_to(_REPO_ROOT)+ package_parts = relative_path.parts[:-1]++ collected: list[tuple[ast.Import | ast.ImportFrom, str]] = []+ _collect_imports(node=tree, form=MODULE_LEVEL, collected=collected)++ sites: list[ImportSite] = []+ for node, form in collected:+ for target in _import_targets(node=node, package_parts=package_parts):+ sites.append(ImportSite(source=relative_path.as_posix(), target=target, form=form))+ return sites+++COGT_MODULE_PATHS: list[Path] = sorted(_COGT_DIR.rglob("*.py"))++IMPORT_SITES: list[ImportSite] = sorted(site for module_path in COGT_MODULE_PATHS for site in _import_sites(module_path=module_path))+++class TestCogtDependencyBoundaries:+ @pytest.mark.parametrize(+ ("source", "expected"),+ [+ # The form the edge assertion used to miss entirely: the dependency is on the submodule,+ # but `from X import Y` records only `X`, so a `cogt -> providers` edge could land unseen.+ ("from pipelex import providers", ["pipelex.providers"]),+ ("from pipelex import providers as vendors", ["pipelex.providers"]),+ ("from .. import providers", ["pipelex.providers"]),+ # A symbol keeps its module as the target — resolving it would grow every pinned row a suffix,+ # and make a second import from an already-sanctioned module read as a brand-new edge.+ ("from pipelex.providers.anthropic.anthropic_config import AnthropicConfig", ["pipelex.providers.anthropic.anthropic_config"]),+ ("from pipelex import log", ["pipelex"]),+ ("from pydantic import BaseModel", ["pydantic"]),+ ("import pipelex.providers.openai.openai_config", ["pipelex.providers.openai.openai_config"]),+ ],+ )+ def test_import_target_resolves_a_submodule_but_not_a_symbol(self, source: str, expected: list[str]) -> None:+ """`from X import Y` names a submodule as often as a symbol, and only the first is a real edge."""+ node = ast.parse(source).body[0]+ assert isinstance(node, (ast.Import, ast.ImportFrom))+ assert _import_targets(node=node, package_parts=("pipelex", "cogt")) == expected++ def test_cogt_imports_no_vendor_sdk(self) -> None:+ """`pipelex/cogt/**` reaches exactly the pinned framework/infrastructure packages, and no vendor SDK."""+ # Anti-vacuity: both checks read one walk, and an empty walk would make both pass for free. This test+ # and its sibling are non-parametrized precisely so this line runs — pytest never calls the body of a+ # parametrized test with an empty parameter set, it reports `SKIPPED [1]` and exits 0.+ assert COGT_MODULE_PATHS, f"no Python module found under {_COGT_DIR} — this check measures nothing"++ actual_roots = {site.target.split(".")[0] for site in IMPORT_SITES}+ third_party_roots = {root for root in actual_roots if root != "pipelex" and root not in sys.stdlib_module_names}++ assert third_party_roots == EXPECTED_THIRD_PARTY_ROOTS, (+ "the third-party surface of `pipelex.cogt` changed.\n"+ f" added: {sorted(third_party_roots - EXPECTED_THIRD_PARTY_ROOTS)}\n"+ f" removed: {sorted(EXPECTED_THIRD_PARTY_ROOTS - third_party_roots)}\n"+ "If the added root is an inference-provider SDK (openai, anthropic, google, mistralai, fal_client, "+ "portkey_ai, huggingface_hub, transformers, azure, vertexai, …), this is a DEFECT, not a golden-set "+ "update: `cogt` is the vendor-neutral engine, and the vendor-facing code belongs under "+ "`pipelex/providers/`, importing inward to `cogt`. That direction is what the F1 img-gen move bought. "+ "If it is a genuinely new framework or infrastructure dependency, update EXPECTED_THIRD_PARTY_ROOTS."+ )++ def test_cogt_to_providers_edges_are_the_documented_set(self) -> None:+ """The `cogt → pipelex.providers` edges are exactly the ones "Known inversions" documents."""+ assert COGT_MODULE_PATHS, f"no Python module found under {_COGT_DIR} — this check measures nothing"++ actual_edges = {site.render() for site in IMPORT_SITES if site.target == _PROVIDERS_PREFIX or site.target.startswith(f"{_PROVIDERS_PREFIX}.")}++ assert actual_edges == EXPECTED_PROVIDER_EDGES, (+ "the set of `cogt -> pipelex.providers` import statements changed.\n"+ f" added: {sorted(actual_edges - EXPECTED_PROVIDER_EDGES)}\n"+ f" removed: {sorted(EXPECTED_PROVIDER_EDGES - actual_edges)}\n"+ "No other gate in this repo can see this: both packages are runtime-layer, so the hub-layering guard "+ "and the import-closure test are blind to an edge between them by construction. A NEW edge means the "+ "vendor-neutral engine grew a sixth reason to name a specific vendor — route it through "+ "`inference_backend_registry`, or move the code to the provider side and import inward, before "+ 'pinning it here. A REMOVED edge is good news: drop the row, and update the "Known inversions" '+ "section of docs/contribute/hub-layering.md in the same change."+ )diff --git a/tests/unit/pipelex/core/concepts/test_special_args_concept.py b/tests/unit/pipelex/core/concepts/test_special_args_concept.pyindex 3e941e235..bf173c3ea 100644--- a/tests/unit/pipelex/core/concepts/test_special_args_concept.py+++ b/tests/unit/pipelex/core/concepts/test_special_args_concept.py@@ -10,9 +10,9 @@ from pipelex.core.concepts.concept_structure_blueprint import (ConceptStructureBlueprintFieldType,)from pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff_factory import StuffContentFactory, StuffFactoryfrom pipelex.interpreter_hub import get_concept_library, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.pipe_run.pipe_job_factory import PipeJobFactorydiff --git a/tests/unit/pipelex/core/test_data/complex/multi_feature.py b/tests/unit/pipelex/core/test_data/complex/multi_feature.pyindex c51a1ef8b..5be88f5c3 100644--- a/tests/unit/pipelex/core/test_data/complex/multi_feature.py+++ b/tests/unit/pipelex/core/test_data/complex/multi_feature.py@@ -1,4 +1,4 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprintfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintdiff --git a/tests/unit/pipelex/core/test_data/concepts/__init__.py b/tests/unit/pipelex/core/test_data/concepts/__init__.pyindex 7d431fc5a..afe8596c1 100644--- a/tests/unit/pipelex/core/test_data/concepts/__init__.py+++ b/tests/unit/pipelex/core/test_data/concepts/__init__.py@@ -1 +1 @@-"""Concept-related test data for PipelexInterpreter tests."""+"""Concept-related test data for MthdsParser tests."""diff --git a/tests/unit/pipelex/core/test_data/concepts/refining_concepts.py b/tests/unit/pipelex/core/test_data/concepts/refining_concepts.pyindex 2c9629373..56a208141 100644--- a/tests/unit/pipelex/core/test_data/concepts/refining_concepts.py+++ b/tests/unit/pipelex/core/test_data/concepts/refining_concepts.py@@ -1,5 +1,5 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.core.concepts.concept_blueprint import ConceptBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintCONCEPTS_WITH_REFINES = ("concepts_with_refines",diff --git a/tests/unit/pipelex/core/test_data/concepts/simple_concepts.py b/tests/unit/pipelex/core/test_data/concepts/simple_concepts.pyindex bd9624c19..f3d7323b6 100644--- a/tests/unit/pipelex/core/test_data/concepts/simple_concepts.py+++ b/tests/unit/pipelex/core/test_data/concepts/simple_concepts.py@@ -1,4 +1,4 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintSIMPLE_CONCEPTS = ("simple_concept",diff --git a/tests/unit/pipelex/core/test_data/concepts/structured_concepts.py b/tests/unit/pipelex/core/test_data/concepts/structured_concepts.pyindex caa44bc81..696fe0cef 100644--- a/tests/unit/pipelex/core/test_data/concepts/structured_concepts.py+++ b/tests/unit/pipelex/core/test_data/concepts/structured_concepts.py@@ -1,6 +1,6 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.core.concepts.concept_blueprint import ConceptBlueprintfrom pipelex.core.concepts.concept_structure_blueprint import ConceptStructureBlueprint, ConceptStructureBlueprintFieldType+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintCONCEPTS_WITH_STRUCTURES = ("concepts_with_structures",diff --git a/tests/unit/pipelex/core/test_data/domain/simple_domains.py b/tests/unit/pipelex/core/test_data/domain/simple_domains.pyindex 7d28758e4..5cdf8dbde 100644--- a/tests/unit/pipelex/core/test_data/domain/simple_domains.py+++ b/tests/unit/pipelex/core/test_data/domain/simple_domains.py@@ -1,4 +1,4 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintSIMPLE_DOMAIN = ("simple_domain",diff --git a/tests/unit/pipelex/core/test_data/errors/__init__.py b/tests/unit/pipelex/core/test_data/errors/__init__.pyindex 011b80c50..4dcff1e3a 100644--- a/tests/unit/pipelex/core/test_data/errors/__init__.py+++ b/tests/unit/pipelex/core/test_data/errors/__init__.py@@ -1 +1 @@-"""Error test cases for PipelexInterpreter tests."""+"""Error test cases for MthdsParser tests."""diff --git a/tests/unit/pipelex/core/test_data/errors/invalid_mthds.py b/tests/unit/pipelex/core/test_data/errors/invalid_mthds.pyindex ebbca0bca..4ff7660b5 100644--- a/tests/unit/pipelex/core/test_data/errors/invalid_mthds.py+++ b/tests/unit/pipelex/core/test_data/errors/invalid_mthds.py@@ -1,4 +1,4 @@-from pipelex.core.interpreter.exceptions import PipelexInterpreterError+from pipelex.mthds_parsing.exceptions import MthdsParserErrorINVALID_MTHDS_SYNTAX = ("invalid_mthds_syntax",@@ -7,7 +7,7 @@ description = "Domain with invalid MTHDS syntax"[concept]InvalidConcept = "This is missing a closing quote""",- PipelexInterpreterError,+ MthdsParserError,)MALFORMED_SECTION = (@@ -18,7 +18,7 @@ description = "Domain with malformed section"[conceptTestConcept = "Missing closing bracket"""",- PipelexInterpreterError,+ MthdsParserError,)UNCLOSED_STRING = (@@ -26,7 +26,7 @@ UNCLOSED_STRING = ("""domain = "test_domain"description = "Domain with unclosed string""",- PipelexInterpreterError,+ MthdsParserError,)DUPLICATE_KEYS = (@@ -38,7 +38,7 @@ description = "Duplicate definition key"[concept]TestConcept = "A test concept"""",- PipelexInterpreterError,+ MthdsParserError,)INVALID_ESCAPE_SEQUENCE = (@@ -49,7 +49,7 @@ description = "Domain with invalid escape sequence \\z"[concept]TestConcept = "A test concept"""",- PipelexInterpreterError,+ MthdsParserError,)# PipelexBundleBlueprint Structure Errors@@ -61,7 +61,7 @@ description = "Domain without domain field"[concept]TestConcept = "A test concept"""",- PipelexInterpreterError,+ MthdsParserError,)INVALID_DOMAIN_NAME = (@@ -72,7 +72,7 @@ description = "Domain with invalid characters"[concept]TestConcept = "A test concept"""",- PipelexInterpreterError,+ MthdsParserError,)EMPTY_DOMAIN = (@@ -83,7 +83,7 @@ description = "Domain with empty string"[concept]TestConcept = "A test concept"""",- PipelexInterpreterError,+ MthdsParserError,)INVALID_ROOT_KEY = (@@ -95,7 +95,7 @@ invalid_root_key = "This key should not be allowed at root level"[concept]TestConcept = "A test concept"""",- PipelexInterpreterError,+ MthdsParserError,)MULTIPLE_INVALID_ROOT_KEYS = (@@ -109,7 +109,7 @@ unknown_field = "Another unknown field"[concept]TestConcept = "A test concept"""",- PipelexInterpreterError,+ MthdsParserError,)WRONG_TYPE_FOR_DOMAIN = (@@ -120,7 +120,7 @@ description = "Domain should be string, not number"[concept]TestConcept = "A test concept"""",- PipelexInterpreterError,+ MthdsParserError,)WRONG_TYPE_FOR_DEFINITION = (@@ -131,7 +131,7 @@ description = 456[concept]TestConcept = "A test concept"""",- PipelexInterpreterError,+ MthdsParserError,)WRONG_TYPE_FOR_CONCEPT_SECTION = (@@ -140,7 +140,7 @@ WRONG_TYPE_FOR_CONCEPT_SECTION = (description = "Domain with wrong type for concept"concept = "should_be_dict_not_string"""",- PipelexInterpreterError,+ MthdsParserError,)WRONG_TYPE_FOR_PIPE_SECTION = (@@ -149,7 +149,7 @@ WRONG_TYPE_FOR_PIPE_SECTION = (description = "Domain with wrong type for pipe"pipe = "should_be_dict_not_string"""",- PipelexInterpreterError,+ MthdsParserError,)INVALID_NESTED_SECTION = (@@ -163,7 +163,7 @@ some_key = "This section is not allowed"[concept]TestConcept = "A test concept"""",- PipelexInterpreterError,+ MthdsParserError,)INVALID_TABLE_SYNTAX = (@@ -174,7 +174,7 @@ description = "Domain with invalid table syntax"[concept.]InvalidName = "Empty table name"""",- PipelexInterpreterError,+ MthdsParserError,)INVALID_ARRAY_SYNTAX = (@@ -185,7 +185,7 @@ description = "Domain with invalid array syntax"[concept]TestConcept = ["Unclosed array"""",- PipelexInterpreterError,+ MthdsParserError,)INVALID_ARRAY_SYNTAX2 = ("invalid_array_syntax",@@ -195,7 +195,7 @@ description = "Domain with invalid array syntax"[concept][concept]""",- PipelexInterpreterError,+ MthdsParserError,)DOUBLE_DOT_DOMAIN = (@@ -206,7 +206,7 @@ description = "Domain with double dots"[concept]TestConcept = "A test concept"""",- PipelexInterpreterError,+ MthdsParserError,)LEADING_DOT_DOMAIN = (@@ -217,7 +217,7 @@ description = "Domain with leading dot"[concept]TestConcept = "A test concept"""",- PipelexInterpreterError,+ MthdsParserError,)# Export all error test casesdiff --git a/tests/unit/pipelex/core/test_data/interpreter_test_cases.py b/tests/unit/pipelex/core/test_data/interpreter_test_cases.pyindex f69f5c37c..31ce3b399 100644--- a/tests/unit/pipelex/core/test_data/interpreter_test_cases.py+++ b/tests/unit/pipelex/core/test_data/interpreter_test_cases.py@@ -1,6 +1,6 @@from typing import ClassVar-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom tests.unit.pipelex.core.test_data.complex.multi_feature import COMPLEX_TEST_CASESfrom tests.unit.pipelex.core.test_data.concepts.refining_concepts import REFINING_CONCEPT_TEST_CASESfrom tests.unit.pipelex.core.test_data.concepts.simple_concepts import SIMPLE_CONCEPT_TEST_CASES@@ -19,7 +19,7 @@ from tests.unit.pipelex.core.test_data.pipes.operators.llm.pipe_llm import PIPE_class InterpreterTestCases:- """Test cases for PipelexInterpreter with MTHDS content and expected blueprints."""+ """Test cases for MthdsParser with MTHDS content and expected blueprints."""# Aggregate all valid test cases from organized modulesVALID_TEST_CASES: ClassVar[list[tuple[str, str, PipelexBundleBlueprint]]] = [ # test_name,mthds_content,blueprintdiff --git a/tests/unit/pipelex/core/test_data/pipes/__init__.py b/tests/unit/pipelex/core/test_data/pipes/__init__.pyindex 44aeec3e0..b169ce17d 100644--- a/tests/unit/pipelex/core/test_data/pipes/__init__.py+++ b/tests/unit/pipelex/core/test_data/pipes/__init__.py@@ -1 +1 @@-"""Pipe-related test data for PipelexInterpreter tests."""+"""Pipe-related test data for MthdsParser tests."""diff --git a/tests/unit/pipelex/core/test_data/pipes/controllers/__init__.py b/tests/unit/pipelex/core/test_data/pipes/controllers/__init__.pyindex b9b684798..692321996 100644--- a/tests/unit/pipelex/core/test_data/pipes/controllers/__init__.py+++ b/tests/unit/pipelex/core/test_data/pipes/controllers/__init__.py@@ -1 +1 @@-"""Pipe controller test data for PipelexInterpreter tests."""+"""Pipe controller test data for MthdsParser tests."""diff --git a/tests/unit/pipelex/core/test_data/pipes/controllers/batch/__init__.py b/tests/unit/pipelex/core/test_data/pipes/controllers/batch/__init__.pyindex 22a23e3cb..1047bec15 100644--- a/tests/unit/pipelex/core/test_data/pipes/controllers/batch/__init__.py+++ b/tests/unit/pipelex/core/test_data/pipes/controllers/batch/__init__.py@@ -1 +1 @@-"""PipeBatch test data for PipelexInterpreter tests."""+"""PipeBatch test data for MthdsParser tests."""diff --git a/tests/unit/pipelex/core/test_data/pipes/controllers/batch/pipe_batch.py b/tests/unit/pipelex/core/test_data/pipes/controllers/batch/pipe_batch.pyindex 54b306952..6161656af 100644--- a/tests/unit/pipelex/core/test_data/pipes/controllers/batch/pipe_batch.py+++ b/tests/unit/pipelex/core/test_data/pipes/controllers/batch/pipe_batch.py@@ -1,4 +1,4 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_controllers.batch.pipe_batch_blueprint import PipeBatchBlueprintPIPE_BATCH = (diff --git a/tests/unit/pipelex/core/test_data/pipes/controllers/condition/__init__.py b/tests/unit/pipelex/core/test_data/pipes/controllers/condition/__init__.pyindex 55ed0effd..2b7a85e53 100644--- a/tests/unit/pipelex/core/test_data/pipes/controllers/condition/__init__.py+++ b/tests/unit/pipelex/core/test_data/pipes/controllers/condition/__init__.py@@ -1 +1 @@-"""PipeCondition test data for PipelexInterpreter tests."""+"""PipeCondition test data for MthdsParser tests."""diff --git a/tests/unit/pipelex/core/test_data/pipes/controllers/condition/pipe_condition.py b/tests/unit/pipelex/core/test_data/pipes/controllers/condition/pipe_condition.pyindex 35b3d71aa..75f8936ee 100644--- a/tests/unit/pipelex/core/test_data/pipes/controllers/condition/pipe_condition.py+++ b/tests/unit/pipelex/core/test_data/pipes/controllers/condition/pipe_condition.py@@ -1,4 +1,4 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeConditionBlueprintfrom pipelex.pipe_controllers.condition.special_outcome import SpecialOutcomediff --git a/tests/unit/pipelex/core/test_data/pipes/controllers/parallel/__init__.py b/tests/unit/pipelex/core/test_data/pipes/controllers/parallel/__init__.pyindex e15534b6c..5e23a05dc 100644--- a/tests/unit/pipelex/core/test_data/pipes/controllers/parallel/__init__.py+++ b/tests/unit/pipelex/core/test_data/pipes/controllers/parallel/__init__.py@@ -1 +1 @@-"""PipeParallel test data for PipelexInterpreter tests."""+"""PipeParallel test data for MthdsParser tests."""diff --git a/tests/unit/pipelex/core/test_data/pipes/controllers/parallel/pipe_parallel.py b/tests/unit/pipelex/core/test_data/pipes/controllers/parallel/pipe_parallel.pyindex 3c880382b..5a842410b 100644--- a/tests/unit/pipelex/core/test_data/pipes/controllers/parallel/pipe_parallel.py+++ b/tests/unit/pipelex/core/test_data/pipes/controllers/parallel/pipe_parallel.py@@ -1,4 +1,4 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallelBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprintdiff --git a/tests/unit/pipelex/core/test_data/pipes/controllers/sequence/__init__.py b/tests/unit/pipelex/core/test_data/pipes/controllers/sequence/__init__.pyindex c0ec60837..7b71923c4 100644--- a/tests/unit/pipelex/core/test_data/pipes/controllers/sequence/__init__.py+++ b/tests/unit/pipelex/core/test_data/pipes/controllers/sequence/__init__.py@@ -1 +1 @@-"""PipeSequence test data for PipelexInterpreter tests."""+"""PipeSequence test data for MthdsParser tests."""diff --git a/tests/unit/pipelex/core/test_data/pipes/controllers/sequence/pipe_sequence.py b/tests/unit/pipelex/core/test_data/pipes/controllers/sequence/pipe_sequence.pyindex 5f763b1a6..faaecd747 100644--- a/tests/unit/pipelex/core/test_data/pipes/controllers/sequence/pipe_sequence.py+++ b/tests/unit/pipelex/core/test_data/pipes/controllers/sequence/pipe_sequence.py@@ -1,4 +1,4 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_controllers.sub_pipe_blueprint import SubPipeBlueprintdiff --git a/tests/unit/pipelex/core/test_data/pipes/operators/__init__.py b/tests/unit/pipelex/core/test_data/pipes/operators/__init__.pyindex d9191620f..1787ebf7d 100644--- a/tests/unit/pipelex/core/test_data/pipes/operators/__init__.py+++ b/tests/unit/pipelex/core/test_data/pipes/operators/__init__.py@@ -1 +1 @@-"""Pipe operator test data for PipelexInterpreter tests."""+"""Pipe operator test data for MthdsParser tests."""diff --git a/tests/unit/pipelex/core/test_data/pipes/operators/compose/pipe_compose.py b/tests/unit/pipelex/core/test_data/pipes/operators/compose/pipe_compose.pyindex e64d2eb29..997adcf06 100644--- a/tests/unit/pipelex/core/test_data/pipes/operators/compose/pipe_compose.py+++ b/tests/unit/pipelex/core/test_data/pipes/operators/compose/pipe_compose.py@@ -1,6 +1,6 @@from pipelex.cogt.templating.template_blueprint import TemplateBlueprint-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.core.concepts.native.concept_native import NativeConceptCode+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintfrom pipelex.tools.jinja2.template_category import TemplateCategorydiff --git a/tests/unit/pipelex/core/test_data/pipes/operators/extract/__init__.py b/tests/unit/pipelex/core/test_data/pipes/operators/extract/__init__.pyindex 3119a2416..193f524d0 100644--- a/tests/unit/pipelex/core/test_data/pipes/operators/extract/__init__.py+++ b/tests/unit/pipelex/core/test_data/pipes/operators/extract/__init__.py@@ -1 +1 @@-"""PipeExtract test data for PipelexInterpreter tests."""+"""PipeExtract test data for MthdsParser tests."""diff --git a/tests/unit/pipelex/core/test_data/pipes/operators/extract/pipe_extract.py b/tests/unit/pipelex/core/test_data/pipes/operators/extract/pipe_extract.pyindex f62191629..646b9b96f 100644--- a/tests/unit/pipelex/core/test_data/pipes/operators/extract/pipe_extract.py+++ b/tests/unit/pipelex/core/test_data/pipes/operators/extract/pipe_extract.py@@ -1,5 +1,5 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.core.concepts.native.concept_native import NativeConceptCode+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_operators.extract.pipe_extract_blueprint import PipeExtractBlueprintPIPE_EXTRACT = (diff --git a/tests/unit/pipelex/core/test_data/pipes/operators/func/__init__.py b/tests/unit/pipelex/core/test_data/pipes/operators/func/__init__.pyindex dac31fc83..55ae3b0d5 100644--- a/tests/unit/pipelex/core/test_data/pipes/operators/func/__init__.py+++ b/tests/unit/pipelex/core/test_data/pipes/operators/func/__init__.py@@ -1 +1 @@-"""PipeFunc test data for PipelexInterpreter tests."""+"""PipeFunc test data for MthdsParser tests."""diff --git a/tests/unit/pipelex/core/test_data/pipes/operators/func/pipe_func.py b/tests/unit/pipelex/core/test_data/pipes/operators/func/pipe_func.pyindex 87e1002bb..85f1ed4b8 100644--- a/tests/unit/pipelex/core/test_data/pipes/operators/func/pipe_func.py+++ b/tests/unit/pipelex/core/test_data/pipes/operators/func/pipe_func.py@@ -1,4 +1,4 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintPIPE_FUNC = (diff --git a/tests/unit/pipelex/core/test_data/pipes/operators/img_gen/pipe_img_gen.py b/tests/unit/pipelex/core/test_data/pipes/operators/img_gen/pipe_img_gen.pyindex d8e0d30e7..83d1ea6ea 100644--- a/tests/unit/pipelex/core/test_data/pipes/operators/img_gen/pipe_img_gen.py+++ b/tests/unit/pipelex/core/test_data/pipes/operators/img_gen/pipe_img_gen.py@@ -1,5 +1,5 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.core.concepts.native.concept_native import NativeConceptCode+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_operators.img_gen.pipe_img_gen_blueprint import PipeImgGenBlueprintPIPE_IMG_GEN = (diff --git a/tests/unit/pipelex/core/test_data/pipes/operators/llm/__init__.py b/tests/unit/pipelex/core/test_data/pipes/operators/llm/__init__.pyindex a91704a7e..0c6c42b07 100644--- a/tests/unit/pipelex/core/test_data/pipes/operators/llm/__init__.py+++ b/tests/unit/pipelex/core/test_data/pipes/operators/llm/__init__.py@@ -1 +1 @@-"""PipeLLM test data for PipelexInterpreter tests."""+"""PipeLLM test data for MthdsParser tests."""diff --git a/tests/unit/pipelex/core/test_data/pipes/operators/llm/pipe_llm.py b/tests/unit/pipelex/core/test_data/pipes/operators/llm/pipe_llm.pyindex 010026b48..210a92aa4 100644--- a/tests/unit/pipelex/core/test_data/pipes/operators/llm/pipe_llm.py+++ b/tests/unit/pipelex/core/test_data/pipes/operators/llm/pipe_llm.py@@ -1,6 +1,6 @@# ruff: noqa: E501-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.core.concepts.native.concept_native import NativeConceptCode+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprint# Basic PipeLLM with prompt_templatediff --git a/tests/unit/pipelex/errors/test_error_identity_snapshot.py b/tests/unit/pipelex/errors/test_error_identity_snapshot.pynew file mode 100644index 000000000..d697746f0--- /dev/null+++ b/tests/unit/pipelex/errors/test_error_identity_snapshot.py@@ -0,0 +1,84 @@+"""Gate on the committed ``(error_type, title, type_uri)`` snapshot.++``error_type`` is the Python class name with no indirection, and consumers+outside this repo branch on that string, so renaming an error class breaks them+*silently* — their build stays green and the branch stops matching. Nothing in+this repo flagged that. This test does: it re-renders the identity set and+compares it to the committed file, so a rename cannot land without a reviewable+diff on ``tests/data/errors/error_identity.txt``.++The set comes from ``iter_pipelex_error_subclasses()`` rather than a naked+``__subclasses__()`` walk — see ``test_error_class_location_convention.py`` for+why the naked walk is green for the wrong reason.+"""++from __future__ import annotations++from difflib import unified_diff+from pathlib import Path++import pipelex+from pipelex.cli.dev_cli.commands.generate_error_identity_cmd import ERROR_IDENTITY_PATH+from pipelex.errors.error_identity_snapshot import SNAPSHOT_SEPARATOR, iter_error_identity_rows, render_error_identity_snapshot++_REPO_ROOT: Path = Path(pipelex.__file__).resolve().parent.parent+_SNAPSHOT_FILE: Path = _REPO_ROOT / ERROR_IDENTITY_PATH+++class TestErrorIdentitySnapshot:+ def test_enumerated_identity_set_is_not_empty(self) -> None:+ """Anti-vacuity: the discovery helper actually found error classes.++ Deliberately NOT parametrized over the class list. A parametrized body+ cannot carry this assertion — pytest reports ``got empty parameter set``+ and exits 0 when the list is empty, so the guard would be unreachable+ exactly when it matters.+ """+ rows = iter_error_identity_rows()+ assert rows, "No PipelexError subclasses discovered — the snapshot would compare two empty sets and pass vacuously."++ error_types = {row.error_type for row in rows}+ assert "PipelexError" in error_types, "The root error class must always appear in the identity set."++ def test_no_identity_field_contains_the_column_separator(self) -> None:+ """The rendering is only unambiguous while no field contains the separator."""+ offenders = [row for row in iter_error_identity_rows() if any(SNAPSHOT_SEPARATOR in field for field in row)]+ if offenders:+ lines = [+ f"Identity fields contain the column separator {SNAPSHOT_SEPARATOR!r}, which makes the snapshot ambiguous:",+ "",+ *(f" - {row.error_type}: {row!r}" for row in offenders),+ "",+ "Rename the class or curate a _declared_title without the separator.",+ ]+ raise AssertionError("\n".join(lines))++ def test_committed_snapshot_matches_the_live_error_classes(self) -> None:+ """The committed snapshot is the current identity set — regenerate on any diff."""+ expected = render_error_identity_snapshot()++ assert _SNAPSHOT_FILE.exists(), f"Missing snapshot file {_SNAPSHOT_FILE} — run `make gei` to generate it."++ existing = _SNAPSHOT_FILE.read_text(encoding="utf-8")+ if existing == expected:+ return++ diff = list(+ unified_diff(+ existing.splitlines(keepends=True),+ expected.splitlines(keepends=True),+ fromfile="committed (on disk)",+ tofile="live (rendered from the error classes)",+ lineterm="",+ )+ )+ lines = [+ "The committed error-identity snapshot is out of date.",+ "",+ "A diff on `error_type` is a WIRE BREAK: consumers outside this repo switch on that",+ "string and fall through silently when it changes. Confirm the rename is intended and",+ "that the consumers are updated in the cross-repo sweep, then run `make gei`.",+ "",+ *(line.rstrip("\n") for line in diff),+ ]+ raise AssertionError("\n".join(lines))diff --git a/tests/unit/pipelex/exceptions/test_class_level_metadata.py b/tests/unit/pipelex/exceptions/test_class_level_metadata.pyindex 88b6850ec..6956abf81 100644--- a/tests/unit/pipelex/exceptions/test_class_level_metadata.py+++ b/tests/unit/pipelex/exceptions/test_class_level_metadata.py@@ -16,8 +16,8 @@ from pipelex.cogt.exceptions import (PromptImageFormatError,SdkTypeError,)-from pipelex.core.interpreter.exceptions import PipelexInterpreterErrorfrom pipelex.core.stuffs.exceptions import DateContentError+from pipelex.mthds_parsing.exceptions import MthdsParserErrorfrom pipelex.pipe_run.pipe_run_mode import PipeRunModefrom pipelex.pipeline.exceptions import PipeExecutionError, PipelineExecutionError, ValidateBundleErrorfrom pipelex.plugins.exceptions import UnknownSecretsMethodError, UnknownStorageMethodError@@ -48,7 +48,7 @@ class TestClassLevelMetadata:("pipeline_execution", _PIPELINE_EXEC_ERROR, ErrorDomain.RUNTIME),("pipe_execution", PipeExecutionError("boom"), ErrorDomain.RUNTIME),("validate_bundle", ValidateBundleError("boom"), ErrorDomain.INPUT),- ("interpreter", PipelexInterpreterError("boom"), ErrorDomain.INPUT),+ ("interpreter", MthdsParserError("boom"), ErrorDomain.INPUT),("setup", PipelexSetupError("boom"), ErrorDomain.CONFIG),("config", PipelexConfigError("boom"), ErrorDomain.CONFIG),("service_base", PipelexServiceError("boom"), ErrorDomain.CONFIG),@@ -101,7 +101,7 @@ class TestClassLevelMetadata:@pytest.mark.parametrize(("_topic", "exc", "expected_caller_facing"),[- ("interpreter", PipelexInterpreterError("boom"), True),+ ("interpreter", MthdsParserError("boom"), True),("validate_bundle", ValidateBundleError("boom"), True),("csv", CsvError("boom"), True),("unknown_storage_method", UnknownStorageMethodError(method="bogus", registered_methods=["local", "s3"]), True),@@ -115,7 +115,7 @@ class TestClassLevelMetadata:def test_caller_facing_message(self, _topic: str, exc: PipelexError, expected_caller_facing: bool) -> None:"""Only classes whose message describes the caller's own input carry caller_facing_message in to_error_report().- ``PipelexInterpreterError`` / ``ValidateBundleError`` author caller-facing+ ``MthdsParserError`` / ``ValidateBundleError`` author caller-facingcopy (.mthds syntax, bundle validation); every other class defaults toFalse so STRICT disclosure redacts its message."""@@ -123,7 +123,7 @@ class TestClassLevelMetadata:assert report.caller_facing_message is expected_caller_facingdef test_caller_facing_message_inherits_for_interpreter_subclass(self) -> None:- """A subclass of ``PipelexInterpreterError`` stays caller-facing.+ """A subclass of ``MthdsParserError`` stays caller-facing.Pins the deliberate inheritance contract on ``_authors_caller_facing_message``(plain attribute access — see ``base_exceptions.py``): a future refactor@@ -133,7 +133,7 @@ class TestClassLevelMetadata:STRICT — or, more likely, silently redact authored caller-facing copy."""- class _SubInterpreterError(PipelexInterpreterError):+ class _SubInterpreterError(MthdsParserError):passreport = _SubInterpreterError("boom").to_error_report()diff --git a/tests/unit/pipelex/language/test_mthds_factory.py b/tests/unit/pipelex/language/test_mthds_factory.pyindex 8fb1550b6..e1837d3c2 100644--- a/tests/unit/pipelex/language/test_mthds_factory.py+++ b/tests/unit/pipelex/language/test_mthds_factory.py@@ -4,9 +4,9 @@ import pytestimport tomlkitfrom pytest_mock import MockerFixture-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.language.mthds_config import MthdsConfig, MthdsConfigForConcepts, MthdsConfigForPipes, MthdsConfigInlineTables, MthdsConfigStringsfrom pipelex.language.mthds_factory import PIPE_CATEGORY_FIELD_KEY, MthdsFactory+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintdiff --git a/tests/unit/pipelex/language/test_mthds_schema.py b/tests/unit/pipelex/language/test_mthds_schema.pyindex 0c7ae2023..f47e93685 100644--- a/tests/unit/pipelex/language/test_mthds_schema.py+++ b/tests/unit/pipelex/language/test_mthds_schema.py@@ -7,8 +7,8 @@ from typing import TYPE_CHECKING, Any, Protocol, castimport jsonschemaimport pytest-from pipelex.core.pipes.pipe_blueprint import PipeTypefrom pipelex.language.mthds_schema_generator import generate_mthds_schema+from pipelex.pipe_machinery.pipe_blueprint import PipeTypefrom pipelex.pipe_signature.pipe_signature_blueprint import PipeSignatureBlueprintif TYPE_CHECKING:diff --git a/tests/unit/pipelex/libraries/test_concept_reference_validation.py b/tests/unit/pipelex/libraries/test_concept_reference_validation.pyindex 85d65296b..d7e7f19cf 100644--- a/tests/unit/pipelex/libraries/test_concept_reference_validation.py+++ b/tests/unit/pipelex/libraries/test_concept_reference_validation.py@@ -1,10 +1,10 @@import pytest-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.core.concepts.concept_blueprint import ConceptBlueprintfrom pipelex.core.concepts.concept_structure_blueprint import ConceptStructureBlueprint, ConceptStructureBlueprintFieldTypefrom pipelex.libraries.concept.exceptions import ConceptLibraryErrorfrom pipelex.libraries.concept_reference_validation import validate_concept_references_in_blueprints+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom tests.unit.pipelex.libraries.test_library_crate_data import BlueprintSamplesdiff --git a/tests/unit/pipelex/libraries/test_contract_match.py b/tests/unit/pipelex/libraries/test_contract_match.pyindex 6f2c379c5..b8874195e 100644--- a/tests/unit/pipelex/libraries/test_contract_match.py+++ b/tests/unit/pipelex/libraries/test_contract_match.py@@ -1,7 +1,7 @@import pytest-from pipelex.core.pipes.pipe_blueprint import PipeBlueprintfrom pipelex.libraries.contract_match import contracts_match+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintclass ConcretePipeBlueprint(PipeBlueprint):diff --git a/tests/unit/pipelex/libraries/test_library_crate.py b/tests/unit/pipelex/libraries/test_library_crate.pyindex 50325d424..5fd7a42d6 100644--- a/tests/unit/pipelex/libraries/test_library_crate.py+++ b/tests/unit/pipelex/libraries/test_library_crate.py@@ -2,11 +2,11 @@ import loggingimport pytest-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.libraries.concept.exceptions import ConceptLibraryErrorfrom pipelex.libraries.library_crate import LibraryCratefrom pipelex.libraries.library_crate_factory import LibraryCrateFactoryfrom pipelex.libraries.pipe.exceptions import PipeLibraryError+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom tests.unit.pipelex.libraries.test_library_crate_data import BlueprintSamplesdiff --git a/tests/unit/pipelex/libraries/test_library_crate_data.py b/tests/unit/pipelex/libraries/test_library_crate_data.pyindex bcb129296..900799186 100644--- a/tests/unit/pipelex/libraries/test_library_crate_data.py+++ b/tests/unit/pipelex/libraries/test_library_crate_data.py@@ -1,7 +1,7 @@from typing import ClassVar-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.core.concepts.concept_blueprint import ConceptBlueprint+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.pipe_signature.pipe_signature_blueprint import PipeSignatureBlueprintdiff --git a/tests/unit/pipelex/libraries/test_standalone_reserved_domains.py b/tests/unit/pipelex/libraries/test_standalone_reserved_domains.pyindex d6521c9be..4613dd476 100644--- a/tests/unit/pipelex/libraries/test_standalone_reserved_domains.py+++ b/tests/unit/pipelex/libraries/test_standalone_reserved_domains.py@@ -4,9 +4,9 @@ import pytestfrom mthds.package.exceptions import ManifestErrorfrom pytest_mock import MockerFixture-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.libraries.exceptions import LibraryLoadingErrorfrom pipelex.libraries.library_manager import LibraryManager+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintclass TestStandaloneReservedDomains:diff --git a/tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py b/tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.pysimilarity index 98%rename from tests/unit/pipelex/core/interpreter/test_bundle_elaborator.pyrename to tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.pyindex 36e9c50d5..89019f2c2 100644--- a/tests/unit/pipelex/core/interpreter/test_bundle_elaborator.py+++ b/tests/unit/pipelex/mthds_parsing/test_bundle_elaborator.py@@ -1,8 +1,8 @@import pytest-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint, StepRole-from pipelex.core.interpreter.bundle_elaborator import BundleElaborator-from pipelex.core.interpreter.exceptions import BundleElaboratorError+from pipelex.mthds_parsing.bundle_elaborator import BundleElaborator+from pipelex.mthds_parsing.exceptions import BundleElaboratorError+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprint, StepRolefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprint, StructuringMethoddiff --git a/tests/unit/pipelex/core/bundles/test_data_pipe_sorter.py b/tests/unit/pipelex/mthds_parsing/test_data_pipe_sorter.pysimilarity index 99%rename from tests/unit/pipelex/core/bundles/test_data_pipe_sorter.pyrename to tests/unit/pipelex/mthds_parsing/test_data_pipe_sorter.pyindex d46d4da0c..7732ed89c 100644--- a/tests/unit/pipelex/core/bundles/test_data_pipe_sorter.py+++ b/tests/unit/pipelex/mthds_parsing/test_data_pipe_sorter.py@@ -2,8 +2,8 @@from typing import ClassVar-from pipelex.core.bundles.pipelex_bundle_blueprint import PipeBlueprintUnionfrom pipelex.core.pipes.exceptions import PipeValidationError+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipeBlueprintUnionfrom pipelex.pipe_controllers.batch.pipe_batch_blueprint import PipeBatchBlueprintfrom pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeConditionBlueprintfrom pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallelBlueprintdiff --git a/tests/unit/pipelex/core/bundles/test_elaboration_metadata.py b/tests/unit/pipelex/mthds_parsing/test_elaboration_metadata.pysimilarity index 97%rename from tests/unit/pipelex/core/bundles/test_elaboration_metadata.pyrename to tests/unit/pipelex/mthds_parsing/test_elaboration_metadata.pyindex 7dc511843..a1240cdfe 100644--- a/tests/unit/pipelex/core/bundles/test_elaboration_metadata.py+++ b/tests/unit/pipelex/mthds_parsing/test_elaboration_metadata.py@@ -1,4 +1,4 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import ElaborationMetadata, PipelexBundleBlueprint, StepRole+from pipelex.mthds_parsing.pipelex_bundle_blueprint import ElaborationMetadata, PipelexBundleBlueprint, StepRolefrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintdiff --git a/tests/unit/pipelex/core/pipes/test_handle_pipe_errors_suffix.py b/tests/unit/pipelex/mthds_parsing/test_handle_pipe_errors_suffix.pysimilarity index 96%rename from tests/unit/pipelex/core/pipes/test_handle_pipe_errors_suffix.pyrename to tests/unit/pipelex/mthds_parsing/test_handle_pipe_errors_suffix.pyindex f19e1bfd5..5d294453c 100644--- a/tests/unit/pipelex/core/pipes/test_handle_pipe_errors_suffix.py+++ b/tests/unit/pipelex/mthds_parsing/test_handle_pipe_errors_suffix.py@@ -1,5 +1,5 @@from pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrorType-from pipelex.core.pipes.handle_pipe_errors import categorize_pipe_validation_with_libraries_error+from pipelex.mthds_parsing.handle_pipe_errors import categorize_pipe_validation_with_libraries_errorclass TestRequiredProvidedSuffix:diff --git a/tests/unit/pipelex/core/interpreter/test_interpreter.py b/tests/unit/pipelex/mthds_parsing/test_parser.pysimilarity index 73%rename from tests/unit/pipelex/core/interpreter/test_interpreter.pyrename to tests/unit/pipelex/mthds_parsing/test_parser.pyindex c8b27b5c1..da3885a7d 100644--- a/tests/unit/pipelex/core/interpreter/test_interpreter.py+++ b/tests/unit/pipelex/mthds_parsing/test_parser.py@@ -1,17 +1,17 @@import pytestfrom pipelex import log, pretty_print-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint-from pipelex.core.interpreter.exceptions import PipelexInterpreterError-from pipelex.core.interpreter.interpreter import PipelexInterpreter+from pipelex.mthds_parsing.exceptions import MthdsParserError+from pipelex.mthds_parsing.parser import MthdsParser+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom tests.unit.pipelex.core.test_data import InterpreterTestCases-class TestPipelexInterpreter:+class TestMthdsParser:@pytest.mark.parametrize(("test_name", "mthds_content", "expected_blueprint"), InterpreterTestCases.VALID_TEST_CASES)def test_make_pipelex_bundle_blueprint(self, test_name: str, mthds_content: str, expected_blueprint: PipelexBundleBlueprint):"""Test making blueprint from various valid MTHDS content."""- blueprint = PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=mthds_content)+ blueprint = MthdsParser.make_pipelex_bundle_blueprint(mthds_content=mthds_content)pretty_print(blueprint, title=f"Blueprint {test_name}")pretty_print(expected_blueprint, title=f"Expected blueprint {test_name}")@@ -22,12 +22,12 @@ class TestPipelexInterpreter:"""Test that invalid MTHDS content raises appropriate exceptions."""log.verbose(f"Testing invalid MTHDS content: {test_name}")with pytest.raises(expected_exception):- PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=invalid_mthds_content)+ MthdsParser.make_pipelex_bundle_blueprint(mthds_content=invalid_mthds_content)def test_toml_syntax_error_carries_mthds_source(self):"""Parse-level errors must still expose the caller-supplied logical source."""- with pytest.raises(PipelexInterpreterError) as exc_info:- PipelexInterpreter.make_pipelex_bundle_blueprint(+ with pytest.raises(MthdsParserError) as exc_info:+ MthdsParser.make_pipelex_bundle_blueprint(mthds_content='domain = "broken" trailing',mthds_source="broken.mthds",)diff --git a/tests/unit/pipelex/core/interpreter/test_interpreter_preliminary_text.py b/tests/unit/pipelex/mthds_parsing/test_parser_preliminary_text.pysimilarity index 88%rename from tests/unit/pipelex/core/interpreter/test_interpreter_preliminary_text.pyrename to tests/unit/pipelex/mthds_parsing/test_parser_preliminary_text.pyindex 4d7b07c93..5a01f1476 100644--- a/tests/unit/pipelex/core/interpreter/test_interpreter_preliminary_text.py+++ b/tests/unit/pipelex/mthds_parsing/test_parser_preliminary_text.py@@ -1,5 +1,5 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import StepRole-from pipelex.core.interpreter.interpreter import PipelexInterpreter+from pipelex.mthds_parsing.parser import MthdsParser+from pipelex.mthds_parsing.pipelex_bundle_blueprint import StepRolefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.pipe_operators.structure.pipe_structure_blueprint import PipeStructureBlueprint@@ -21,7 +21,7 @@ output = "Foo"prompt = "Talk about $topic"structuring_method = "preliminary_text""""- bundle = PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=mthds_content)+ bundle = MthdsParser.make_pipelex_bundle_blueprint(mthds_content=mthds_content)assert bundle.pipe is not Noneassert set(bundle.pipe.keys()) == {"make_foo", "make_foo__draft_text", "make_foo__structure"}@@ -62,7 +62,7 @@ inputs = { topic = "Text" }output = "Foo"prompt = "Talk about $topic""""- bundle = PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=mthds_content)+ bundle = MthdsParser.make_pipelex_bundle_blueprint(mthds_content=mthds_content)assert bundle.pipe is not Noneassert set(bundle.pipe.keys()) == {"make_foo"}assert isinstance(bundle.pipe["make_foo"], PipeLLMBlueprint)diff --git a/tests/unit/pipelex/core/bundles/test_pipe_sorter.py b/tests/unit/pipelex/mthds_parsing/test_pipe_sorter.pysimilarity index 93%rename from tests/unit/pipelex/core/bundles/test_pipe_sorter.pyrename to tests/unit/pipelex/mthds_parsing/test_pipe_sorter.pyindex b2b32123e..fd126115b 100644--- a/tests/unit/pipelex/core/bundles/test_pipe_sorter.py+++ b/tests/unit/pipelex/mthds_parsing/test_pipe_sorter.py@@ -2,10 +2,10 @@import pytest-from pipelex.core.bundles.pipe_sorter import sort_pipes_by_dependencies-from pipelex.core.bundles.pipelex_bundle_blueprint import PipeBlueprintUnionfrom pipelex.core.pipes.exceptions import PipeValidationError-from tests.unit.pipelex.core.bundles.test_data_pipe_sorter import PipeSorterTestCases+from pipelex.mthds_parsing.pipe_sorter import sort_pipes_by_dependencies+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipeBlueprintUnion+from tests.unit.pipelex.mthds_parsing.test_data_pipe_sorter import PipeSorterTestCasesclass TestSortPipesByDependencies:diff --git a/tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py b/tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.pysimilarity index 99%rename from tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.pyrename to tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.pyindex 6f5d2b5b1..585758018 100644--- a/tests/unit/pipelex/core/bundles/test_pipelex_bundle_blueprint_concept_construction.py+++ b/tests/unit/pipelex/mthds_parsing/test_pipelex_bundle_blueprint_concept_construction.py@@ -1,6 +1,6 @@-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.core.concepts.concept_blueprint import ConceptBlueprintfrom pipelex.core.concepts.concept_structure_blueprint import ConceptStructureBlueprint, ConceptStructureBlueprintFieldType+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintdiff --git a/tests/unit/pipelex/core/interpreter/test_validation_error_categorizer.py b/tests/unit/pipelex/mthds_parsing/test_validation_error_categorizer.pysimilarity index 91%rename from tests/unit/pipelex/core/interpreter/test_validation_error_categorizer.pyrename to tests/unit/pipelex/mthds_parsing/test_validation_error_categorizer.pyindex 983dead63..9944de358 100644--- a/tests/unit/pipelex/core/interpreter/test_validation_error_categorizer.py+++ b/tests/unit/pipelex/mthds_parsing/test_validation_error_categorizer.py@@ -1,8 +1,8 @@import pytest-from pipelex.core.interpreter.exceptions import PipelexInterpreterError-from pipelex.core.interpreter.interpreter import PipelexInterpreterfrom pipelex.core.pipes.exceptions import PipeValidationErrorType+from pipelex.mthds_parsing.exceptions import MthdsParserError+from pipelex.mthds_parsing.parser import MthdsParser# A PipeBatch whose ``input_item_name`` equals its ``input_list_name`` — the collision# ``PipeBatchBlueprint.validate_inputs`` raises as a ``PipeValidationError`` from inside a pydantic@@ -71,8 +71,8 @@ class TestBlueprintValidationErrorCategorizer:carrying the ``pipe_code`` / ``domain_code`` / ``source`` locators recovered from the parse."""source = f"{test_name}.mthds"- with pytest.raises(PipelexInterpreterError) as exc_info:- PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=mthds_content, mthds_source=source)+ with pytest.raises(MthdsParserError) as exc_info:+ MthdsParser.make_pipelex_bundle_blueprint(mthds_content=mthds_content, mthds_source=source)collision_items = [error for error in exc_info.value.validation_errors if error.error_type == PipeValidationErrorType.BATCH_ITEM_NAME_COLLISIONdiff --git a/tests/unit/pipelex/pipe_controllers/batch/test_pipe_batch_input.py b/tests/unit/pipelex/pipe_controllers/batch/test_pipe_batch_input.pyindex 2531b6abe..66f8b0018 100644--- a/tests/unit/pipelex/pipe_controllers/batch/test_pipe_batch_input.py+++ b/tests/unit/pipelex/pipe_controllers/batch/test_pipe_batch_input.py@@ -3,9 +3,9 @@ from typing import Callableimport pytestfrom pipelex import log-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.pipe_controllers.batch.pipe_batch import PipeBatchfrom pipelex.pipe_controllers.batch.pipe_batch_blueprint import PipeBatchBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom tests.unit.pipelex.pipe_controllers.batch.data import PipeBatchInputTestCasesdiff --git a/tests/unit/pipelex/pipe_controllers/condition/test_pipe_condition_input.py b/tests/unit/pipelex/pipe_controllers/condition/test_pipe_condition_input.pyindex 5a55e3b03..228d22262 100644--- a/tests/unit/pipelex/pipe_controllers/condition/test_pipe_condition_input.py+++ b/tests/unit/pipelex/pipe_controllers/condition/test_pipe_condition_input.py@@ -4,9 +4,9 @@ import pytestfrom pipelex import logfrom pipelex.core.pipes.exceptions import PipeValidationError-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.pipe_controllers.condition.pipe_condition import PipeConditionfrom pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeConditionBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom tests.unit.pipelex.pipe_controllers.condition.data import PipeConditionInputTestCasesdiff --git a/tests/unit/pipelex/pipe_controllers/condition/test_pipe_condition_needed_inputs.py b/tests/unit/pipelex/pipe_controllers/condition/test_pipe_condition_needed_inputs.pyindex bec6f5a9c..7d5acf47e 100644--- a/tests/unit/pipelex/pipe_controllers/condition/test_pipe_condition_needed_inputs.py+++ b/tests/unit/pipelex/pipe_controllers/condition/test_pipe_condition_needed_inputs.py@@ -7,11 +7,11 @@ from pipelex.core.concepts.concept_factory import ConceptFactoryfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.pipes.exceptions import PipeValidationErrorfrom pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_concept_library, get_pipe_libraryfrom pipelex.pipe_controllers.condition.pipe_condition import PipeConditionfrom pipelex.pipe_controllers.condition.pipe_condition_blueprint import PipeConditionBlueprintfrom pipelex.pipe_controllers.condition.special_outcome import SpecialOutcome+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintdiff --git a/tests/unit/pipelex/pipe_controllers/parallel/test_pipe_parallel_input.py b/tests/unit/pipelex/pipe_controllers/parallel/test_pipe_parallel_input.pyindex ada263cb0..5e3cbf943 100644--- a/tests/unit/pipelex/pipe_controllers/parallel/test_pipe_parallel_input.py+++ b/tests/unit/pipelex/pipe_controllers/parallel/test_pipe_parallel_input.py@@ -4,9 +4,9 @@ import pytestfrom pipelex import logfrom pipelex.core.pipes.exceptions import PipeValidationError-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.pipe_controllers.parallel.pipe_parallel import PipeParallelfrom pipelex.pipe_controllers.parallel.pipe_parallel_blueprint import PipeParallelBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom tests.unit.pipelex.pipe_controllers.parallel.data import PipeParallelInputTestCasesdiff --git a/tests/unit/pipelex/pipe_controllers/sequence/test_pipe_sequence_input.py b/tests/unit/pipelex/pipe_controllers/sequence/test_pipe_sequence_input.pyindex e165223ca..20654c844 100644--- a/tests/unit/pipelex/pipe_controllers/sequence/test_pipe_sequence_input.py+++ b/tests/unit/pipelex/pipe_controllers/sequence/test_pipe_sequence_input.py@@ -4,9 +4,9 @@ import pytestfrom pipelex import logfrom pipelex.core.pipes.exceptions import PipeValidationError-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.pipe_controllers.sequence.pipe_sequence import PipeSequencefrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprint+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom tests.unit.pipelex.pipe_controllers.sequence.data import PipeSequenceInputTestCasesdiff --git a/tests/unit/pipelex/core/pipes/rendering/test_input_renderer_light.py b/tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.pysimilarity index 99%rename from tests/unit/pipelex/core/pipes/rendering/test_input_renderer_light.pyrename to tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.pyindex 2f6f86ae0..72bdc81bd 100644--- a/tests/unit/pipelex/core/pipes/rendering/test_input_renderer_light.py+++ b/tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py@@ -21,7 +21,7 @@ from typing import Anyimport tomlifrom pipelex.core.memory.input_shaper import InputKind-from pipelex.core.pipes.rendering.input_renderer import (+from pipelex.pipe_machinery.rendering.input_renderer import (_delighten_entry, # noqa: PLC2701 # pyright: ignore[reportPrivateUsage]serialize_inputs_template_to_toml,)diff --git a/tests/unit/pipelex/core/pipes/rendering/test_output_renderer.py b/tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer.pysimilarity index 97%rename from tests/unit/pipelex/core/pipes/rendering/test_output_renderer.pyrename to tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer.pyindex 85a39decf..09dd5b1d7 100644--- a/tests/unit/pipelex/core/pipes/rendering/test_output_renderer.py+++ b/tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer.py@@ -12,10 +12,10 @@ from pytest_mock import MockerFixturefrom pipelex.core.concepts.concept import Conceptfrom pipelex.core.concepts.concept_representation_generator import ConceptRepresentationFormat-from pipelex.core.pipes.pipe_abstract import PipeAbstract-from pipelex.core.pipes.rendering.output_renderer import render_outputfrom pipelex.core.pipes.stuff_spec.stuff_spec import StuffSpecfrom pipelex.core.stuffs.image_content import ImageContent+from pipelex.pipe_machinery.pipe_abstract import PipeAbstract+from pipelex.pipe_machinery.rendering.output_renderer import render_output@pytest.fixture(autouse=True)diff --git a/tests/unit/pipelex/core/pipes/rendering/test_output_renderer_anything_formats.py b/tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_anything_formats.pysimilarity index 96%rename from tests/unit/pipelex/core/pipes/rendering/test_output_renderer_anything_formats.pyrename to tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_anything_formats.pyindex 09e5e7a12..d39626955 100644--- a/tests/unit/pipelex/core/pipes/rendering/test_output_renderer_anything_formats.py+++ b/tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_anything_formats.py@@ -5,9 +5,9 @@ import pytestfrom pytest_mock import MockerFixturefrom pipelex.core.concepts.concept_representation_generator import ConceptRepresentationFormat-from pipelex.core.pipes.rendering.output_renderer import render_output+from pipelex.pipe_machinery.rendering.output_renderer import render_output-GET_REQUIRED_PIPE_TARGET = "pipelex.core.pipes.rendering.output_renderer.get_required_pipe"+GET_REQUIRED_PIPE_TARGET = "pipelex.pipe_machinery.rendering.output_renderer.get_required_pipe"def _make_anything_condition_pipe(mocker: MockerFixture, mapped_pipe_code: str) -> Any:diff --git a/tests/unit/pipelex/core/pipes/rendering/test_output_renderer_collect_condition.py b/tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_condition.pysimilarity index 95%rename from tests/unit/pipelex/core/pipes/rendering/test_output_renderer_collect_condition.pyrename to tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_condition.pyindex cf1e4ebda..1cd77452d 100644--- a/tests/unit/pipelex/core/pipes/rendering/test_output_renderer_collect_condition.py+++ b/tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_condition.py@@ -5,9 +5,9 @@ from pytest_mock import MockerFixturefrom pipelex.core.concepts.concept_representation_generator import ConceptRepresentationFormatfrom pipelex.core.concepts.exceptions import ConceptError-from pipelex.core.pipes.rendering.output_renderer import _collect_possible_outputs # noqa: PLC2701 # pyright: ignore[reportPrivateUsage]+from pipelex.pipe_machinery.rendering.output_renderer import _collect_possible_outputs # noqa: PLC2701 # pyright: ignore[reportPrivateUsage]-GET_REQUIRED_PIPE_TARGET = "pipelex.core.pipes.rendering.output_renderer.get_required_pipe"+GET_REQUIRED_PIPE_TARGET = "pipelex.pipe_machinery.rendering.output_renderer.get_required_pipe"def _make_condition_pipe(mocker: MockerFixture, dependencies: set[str]) -> Any:diff --git a/tests/unit/pipelex/core/pipes/rendering/test_output_renderer_collect_sequence.py b/tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_sequence.pysimilarity index 95%rename from tests/unit/pipelex/core/pipes/rendering/test_output_renderer_collect_sequence.pyrename to tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_sequence.pyindex fd65ca1f4..8353989a7 100644--- a/tests/unit/pipelex/core/pipes/rendering/test_output_renderer_collect_sequence.py+++ b/tests/unit/pipelex/pipe_machinery/rendering/test_output_renderer_collect_sequence.py@@ -5,9 +5,9 @@ from pytest_mock import MockerFixturefrom pipelex.core.concepts.concept_representation_generator import ConceptRepresentationFormatfrom pipelex.core.concepts.exceptions import ConceptError-from pipelex.core.pipes.rendering.output_renderer import _collect_possible_outputs # noqa: PLC2701 # pyright: ignore[reportPrivateUsage]+from pipelex.pipe_machinery.rendering.output_renderer import _collect_possible_outputs # noqa: PLC2701 # pyright: ignore[reportPrivateUsage]-GET_REQUIRED_PIPE_TARGET = "pipelex.core.pipes.rendering.output_renderer.get_required_pipe"+GET_REQUIRED_PIPE_TARGET = "pipelex.pipe_machinery.rendering.output_renderer.get_required_pipe"def _make_sequence_pipe(mocker: MockerFixture, sub_pipe_codes: list[str]) -> Any:diff --git a/tests/unit/pipelex/core/pipes/test_execution_data_coverage.py b/tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.pysimilarity index 98%rename from tests/unit/pipelex/core/pipes/test_execution_data_coverage.pyrename to tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.pyindex 5881e409f..b1b6bb6c6 100644--- a/tests/unit/pipelex/core/pipes/test_execution_data_coverage.py+++ b/tests/unit/pipelex/pipe_machinery/test_execution_data_coverage.py@@ -17,7 +17,7 @@ import reimport pytestfrom pipelex import pipe_controllers, pipe_operators-from pipelex.core.pipes.pipe_abstract import PipeAbstract+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractREGISTER_CALL = "self._register_execution_data("SELF_CALL_RE = re.compile(r"self\.(\w+)\(")diff --git a/tests/unit/pipelex/core/pipes/test_inputs_template_toml.py b/tests/unit/pipelex/pipe_machinery/test_inputs_template_toml.pysimilarity index 96%rename from tests/unit/pipelex/core/pipes/test_inputs_template_toml.pyrename to tests/unit/pipelex/pipe_machinery/test_inputs_template_toml.pyindex 705f02af0..e2d8e2972 100644--- a/tests/unit/pipelex/core/pipes/test_inputs_template_toml.py+++ b/tests/unit/pipelex/pipe_machinery/test_inputs_template_toml.py@@ -4,7 +4,7 @@ from __future__ import annotationsimport tomli-from pipelex.core.pipes.rendering.input_renderer import serialize_inputs_template_to_toml+from pipelex.pipe_machinery.rendering.input_renderer import serialize_inputs_template_to_tomlclass TestSerializeInputsTemplateToml:diff --git a/tests/unit/pipelex/core/pipes/test_pipe_abstract_namespace_strip.py b/tests/unit/pipelex/pipe_machinery/test_pipe_abstract_namespace_strip.pysimilarity index 93%rename from tests/unit/pipelex/core/pipes/test_pipe_abstract_namespace_strip.pyrename to tests/unit/pipelex/pipe_machinery/test_pipe_abstract_namespace_strip.pyindex 5fe3446f7..8e4540ca6 100644--- a/tests/unit/pipelex/core/pipes/test_pipe_abstract_namespace_strip.py+++ b/tests/unit/pipelex/pipe_machinery/test_pipe_abstract_namespace_strip.py@@ -1,6 +1,6 @@import pytest-from pipelex.core.pipes.pipe_abstract import PipeAbstract+from pipelex.pipe_machinery.pipe_abstract import PipeAbstractclass TestPipeAbstractNamespaceStrip:diff --git a/tests/unit/pipelex/core/pipes/test_pipe_abstract_signature_surface.py b/tests/unit/pipelex/pipe_machinery/test_pipe_abstract_signature_surface.pysimilarity index 97%rename from tests/unit/pipelex/core/pipes/test_pipe_abstract_signature_surface.pyrename to tests/unit/pipelex/pipe_machinery/test_pipe_abstract_signature_surface.pyindex 661b2a483..432e7b2a0 100644--- a/tests/unit/pipelex/core/pipes/test_pipe_abstract_signature_surface.py+++ b/tests/unit/pipelex/pipe_machinery/test_pipe_abstract_signature_surface.py@@ -1,6 +1,6 @@from typing import cast-from pipelex.core.pipes.pipe_abstract import PipeAbstract+from pipelex.pipe_machinery.pipe_abstract import PipeAbstract# Resolve the property descriptors directly via __dict__ so mypy doesn't lose the# `property` type the way it does through attribute access on a `BaseModel` subclass.diff --git a/tests/unit/pipelex/core/pipes/test_pipe_blueprint.py b/tests/unit/pipelex/pipe_machinery/test_pipe_blueprint.pysimilarity index 98%rename from tests/unit/pipelex/core/pipes/test_pipe_blueprint.pyrename to tests/unit/pipelex/pipe_machinery/test_pipe_blueprint.pyindex 7d7515b61..65b4f401e 100644--- a/tests/unit/pipelex/core/pipes/test_pipe_blueprint.py+++ b/tests/unit/pipelex/pipe_machinery/test_pipe_blueprint.py@@ -1,7 +1,7 @@import pytestfrom pydantic import ValidationError-from pipelex.core.pipes.pipe_blueprint import PipeBlueprint, PipeCategory, PipeType+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprint, PipeCategory, PipeTypeclass ConcretePipeBlueprint(PipeBlueprint):diff --git a/tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py b/tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.pysimilarity index 95%rename from tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.pyrename to tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.pyindex cec4bafa5..5694883d4 100644--- a/tests/unit/pipelex/core/pipes/test_pipe_blueprint_presence_markers.py+++ b/tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py@@ -2,8 +2,8 @@ import pytestfrom pydantic import ValidationErrorfrom pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrorType-from pipelex.core.pipes.handle_pipe_errors import extract_wrapped_pipe_validation_error-from pipelex.core.pipes.pipe_blueprint import PipeBlueprint+from pipelex.mthds_parsing.handle_pipe_errors import extract_wrapped_pipe_validation_error+from pipelex.pipe_machinery.pipe_blueprint import PipeBlueprintclass ConcretePipeBlueprint(PipeBlueprint):diff --git a/tests/unit/pipelex/core/pipes/test_pipe_blueprint_signature_enums.py b/tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_signature_enums.pysimilarity index 93%rename from tests/unit/pipelex/core/pipes/test_pipe_blueprint_signature_enums.pyrename to tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_signature_enums.pyindex a257b6010..7498d2b0a 100644--- a/tests/unit/pipelex/core/pipes/test_pipe_blueprint_signature_enums.py+++ b/tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_signature_enums.py@@ -1,6 +1,6 @@import pytest-from pipelex.core.pipes.pipe_blueprint import PIPE_SIGNATURE_TYPE_TAG, PipeCategory, PipeType+from pipelex.pipe_machinery.pipe_blueprint import PIPE_SIGNATURE_TYPE_TAG, PipeCategory, PipeTypeclass TestPipeSignatureTaxonomyEviction:diff --git a/tests/unit/pipelex/core/pipes/test_pipe_validate_before_run.py b/tests/unit/pipelex/pipe_machinery/test_pipe_validate_before_run.pysimilarity index 98%rename from tests/unit/pipelex/core/pipes/test_pipe_validate_before_run.pyrename to tests/unit/pipelex/pipe_machinery/test_pipe_validate_before_run.pyindex 1d6153106..843662f8f 100644--- a/tests/unit/pipelex/core/pipes/test_pipe_validate_before_run.py+++ b/tests/unit/pipelex/pipe_machinery/test_pipe_validate_before_run.py@@ -9,8 +9,8 @@ import pytestfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactoryfrom pipelex.core.pipes.inputs.exceptions import PipeRunInputsError-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_concept_library+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.pipe_run.pipe_run_mode import PipeRunModediff --git a/tests/unit/pipelex/core/pipes/test_run_pipe_tracer_metadata.py b/tests/unit/pipelex/pipe_machinery/test_run_pipe_tracer_metadata.pysimilarity index 93%rename from tests/unit/pipelex/core/pipes/test_run_pipe_tracer_metadata.pyrename to tests/unit/pipelex/pipe_machinery/test_run_pipe_tracer_metadata.pyindex e95929081..20a47831e 100644--- a/tests/unit/pipelex/core/pipes/test_run_pipe_tracer_metadata.py+++ b/tests/unit/pipelex/pipe_machinery/test_run_pipe_tracer_metadata.py@@ -7,10 +7,10 @@ from pytest_mock import MockerFixturefrom pipelex.core.concepts.concept import Conceptfrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_abstract import InputPresenceScan-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.stuff import Stufffrom pipelex.core.stuffs.text_content import TextContent+from pipelex.pipe_machinery.pipe_abstract import InputPresenceScan+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory@@ -61,7 +61,7 @@ class TestRunPipeForwardsTracerMetadata:mock_manager = mocker.MagicMock()mock_manager.on_pipe_start = on_pipe_start_mockmocker.patch(- "pipelex.core.pipes.pipe_abstract.GraphTracerManager.get_instance",+ "pipelex.pipe_machinery.pipe_abstract.GraphTracerManager.get_instance",return_value=mock_manager,)diff --git a/tests/unit/pipelex/core/pipes/test_validation.py b/tests/unit/pipelex/pipe_machinery/test_validation.pysimilarity index 97%rename from tests/unit/pipelex/core/pipes/test_validation.pyrename to tests/unit/pipelex/pipe_machinery/test_validation.pyindex c9142da35..adefe66ea 100644--- a/tests/unit/pipelex/core/pipes/test_validation.py+++ b/tests/unit/pipelex/pipe_machinery/test_validation.py@@ -1,6 +1,6 @@import pytest-from pipelex.core.pipes.validation import is_valid_input_name, validate_input_name+from pipelex.pipe_machinery.validation import is_valid_input_name, validate_input_nameclass TestInputNameValidation:diff --git a/tests/unit/pipelex/pipe_operators/pipe_compose/test_pipe_compose_input.py b/tests/unit/pipelex/pipe_operators/pipe_compose/test_pipe_compose_input.pyindex 8d393d13b..1c44be058 100644--- a/tests/unit/pipelex/pipe_operators/pipe_compose/test_pipe_compose_input.py+++ b/tests/unit/pipelex/pipe_operators/pipe_compose/test_pipe_compose_input.py@@ -3,7 +3,7 @@ from typing import Callableimport pytestfrom pipelex import log-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.compose.pipe_compose import PipeComposefrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintfrom tests.unit.pipelex.pipe_operators.pipe_compose.data import PipeComposeInputTestCasesdiff --git a/tests/unit/pipelex/pipe_operators/pipe_func/test_pipe_func_hosted_mode.py b/tests/unit/pipelex/pipe_operators/pipe_func/test_pipe_func_hosted_mode.pyindex 722e8d138..918c39637 100644--- a/tests/unit/pipelex/pipe_operators/pipe_func/test_pipe_func_hosted_mode.py+++ b/tests/unit/pipelex/pipe_operators/pipe_func/test_pipe_func_hosted_mode.py@@ -5,8 +5,8 @@ from pydantic import ValidationErrorfrom pytest_mock import MockerFixturefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.list_content import ListContent+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom pipelex.pipe_run.pipe_run_mode import PipeRunModediff --git a/tests/unit/pipelex/pipe_operators/pipe_func/test_pipe_func_input.py b/tests/unit/pipelex/pipe_operators/pipe_func/test_pipe_func_input.pyindex b91a21653..c3f692e43 100644--- a/tests/unit/pipelex/pipe_operators/pipe_func/test_pipe_func_input.py+++ b/tests/unit/pipelex/pipe_operators/pipe_func/test_pipe_func_input.py@@ -4,7 +4,7 @@ from typing import Callableimport pytestfrom pipelex import log-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.func.pipe_func import PipeFuncfrom pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprintfrom tests.unit.pipelex.pipe_operators.pipe_func.data import PipeFuncInputTestCasesdiff --git a/tests/unit/pipelex/pipe_operators/pipe_img_gen/test_compose_drops_embedded_image.py b/tests/unit/pipelex/pipe_operators/pipe_img_gen/test_compose_drops_embedded_image.pyindex bc02a0ca7..bb1a7b74e 100644--- a/tests/unit/pipelex/pipe_operators/pipe_img_gen/test_compose_drops_embedded_image.py+++ b/tests/unit/pipelex/pipe_operators/pipe_img_gen/test_compose_drops_embedded_image.py@@ -28,10 +28,10 @@ from pipelex.cogt.img_gen.img_gen_prompt import ImgGenPromptfrom pipelex.cogt.templating.template_blueprint import TemplateBlueprintfrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.memory.working_memory_factory import WorkingMemoryFactory-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.core.stuffs.image_content import ImageContentfrom pipelex.core.stuffs.stuff_factory import StuffFactoryfrom pipelex.interpreter_hub import get_native_concept, get_pipe_router+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.compose.pipe_compose import PipeCompose, PipeComposeOutputfrom pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprintfrom pipelex.pipe_operators.img_gen.pipe_img_gen import PipeImgGendiff --git a/tests/unit/pipelex/pipe_operators/pipe_img_gen/test_pipe_img_gen_factory.py b/tests/unit/pipelex/pipe_operators/pipe_img_gen/test_pipe_img_gen_factory.pyindex f5cf3c45f..f834c303a 100644--- a/tests/unit/pipelex/pipe_operators/pipe_img_gen/test_pipe_img_gen_factory.py+++ b/tests/unit/pipelex/pipe_operators/pipe_img_gen/test_pipe_img_gen_factory.py@@ -3,7 +3,7 @@from pathlib import Pathfrom typing import Callable-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.img_gen.pipe_img_gen import PipeImgGenfrom pipelex.pipe_operators.img_gen.pipe_img_gen_blueprint import PipeImgGenBlueprintfrom pipelex.pipe_operators.shared.image_reference import ImageReferenceKinddiff --git a/tests/unit/pipelex/pipe_operators/pipe_img_gen/test_pipe_img_gen_input.py b/tests/unit/pipelex/pipe_operators/pipe_img_gen/test_pipe_img_gen_input.pyindex 2b3f979ea..ff9792793 100644--- a/tests/unit/pipelex/pipe_operators/pipe_img_gen/test_pipe_img_gen_input.py+++ b/tests/unit/pipelex/pipe_operators/pipe_img_gen/test_pipe_img_gen_input.py@@ -3,7 +3,7 @@ from typing import Callableimport pytestfrom pipelex import log-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.img_gen.pipe_img_gen import PipeImgGenfrom pipelex.pipe_operators.img_gen.pipe_img_gen_blueprint import PipeImgGenBlueprintfrom tests.unit.pipelex.pipe_operators.pipe_img_gen.data import PipeImgGenInputTestCasesdiff --git a/tests/unit/pipelex/pipe_operators/pipe_llm/test_pipe_llm_dynamic_output.py b/tests/unit/pipelex/pipe_operators/pipe_llm/test_pipe_llm_dynamic_output.pyindex 846abbbbc..66c97615c 100644--- a/tests/unit/pipelex/pipe_operators/pipe_llm/test_pipe_llm_dynamic_output.py+++ b/tests/unit/pipelex/pipe_operators/pipe_llm/test_pipe_llm_dynamic_output.py@@ -20,7 +20,7 @@ from typing import Callablefrom pipelex.core.concepts.native.concept_native import NativeConceptCodefrom pipelex.core.domains.domain import SpecialDomain-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom pipelex.pipe_run.pipe_run_params import PipeRunParamKeydiff --git a/tests/unit/pipelex/pipe_operators/pipe_llm/test_pipe_llm_input.py b/tests/unit/pipelex/pipe_operators/pipe_llm/test_pipe_llm_input.pyindex 932deefe3..12c1e29da 100644--- a/tests/unit/pipelex/pipe_operators/pipe_llm/test_pipe_llm_input.py+++ b/tests/unit/pipelex/pipe_operators/pipe_llm/test_pipe_llm_input.py@@ -3,7 +3,7 @@ from typing import Callableimport pytestfrom pipelex import log-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.llm.pipe_llm import PipeLLMfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprintfrom tests.unit.pipelex.pipe_operators.pipe_llm.data import PipeLLMInputTestCasesdiff --git a/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_factory.py b/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_factory.pyindex b8db59759..e46369990 100644--- a/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_factory.py+++ b/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_factory.py@@ -2,7 +2,7 @@ from typing import Callableimport pytest-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.structure.pipe_structure import PipeStructurefrom pipelex.pipe_operators.structure.pipe_structure_blueprint import PipeStructureBlueprintdiff --git a/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_kajson.py b/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_kajson.pyindex 200816dab..adc9614c7 100644--- a/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_kajson.py+++ b/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_kajson.py@@ -1,7 +1,7 @@from kajson import kajson-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint-from pipelex.core.interpreter.bundle_elaborator import BundleElaborator+from pipelex.mthds_parsing.bundle_elaborator import BundleElaborator+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipe_controllers.sequence.pipe_sequence_blueprint import PipeSequenceBlueprintfrom pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprint, StructuringMethodfrom pipelex.pipe_operators.structure.pipe_structure_blueprint import PipeStructureBlueprintdiff --git a/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_validate_inputs.py b/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_validate_inputs.pyindex 2b1619cde..8a31d57ea 100644--- a/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_validate_inputs.py+++ b/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_validate_inputs.py@@ -4,8 +4,8 @@ from typing import Callableimport pytestfrom pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrorType-from pipelex.core.pipes.pipe_factory import PipeFactoryfrom pipelex.interpreter_hub import get_library_manager+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.structure.pipe_structure import PipeStructurefrom pipelex.pipe_operators.structure.pipe_structure_blueprint import PipeStructureBlueprintdiff --git a/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_validate_outputs.py b/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_validate_outputs.pyindex ba2dc15db..71f752457 100644--- a/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_validate_outputs.py+++ b/tests/unit/pipelex/pipe_operators/pipe_structure/test_pipe_structure_validate_outputs.py@@ -4,7 +4,7 @@ from typing import Callableimport pytestfrom pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrorType-from pipelex.core.pipes.pipe_factory import PipeFactory+from pipelex.pipe_machinery.pipe_factory import PipeFactoryfrom pipelex.pipe_operators.structure.pipe_structure import PipeStructurefrom pipelex.pipe_operators.structure.pipe_structure_blueprint import PipeStructureBlueprintdiff --git a/tests/unit/pipelex/pipe_run/test_pipe_job_hydration.py b/tests/unit/pipelex/pipe_run/test_pipe_job_hydration.pyindex a759065f1..65035ee79 100644--- a/tests/unit/pipelex/pipe_run/test_pipe_job_hydration.py+++ b/tests/unit/pipelex/pipe_run/test_pipe_job_hydration.py@@ -10,7 +10,7 @@ from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactoryfrom pipelex.system.job_metadata import JobMetadataif TYPE_CHECKING:- from pipelex.core.pipes.pipe_abstract import PipeAbstract+ from pipelex.pipe_machinery.pipe_abstract import PipeAbstractdef _make_pipe_job(diff --git a/tests/unit/pipelex/pipe_run/test_pipe_router_run.py b/tests/unit/pipelex/pipe_run/test_pipe_router_run.pyindex f7a94cb97..8c5408a8c 100644--- a/tests/unit/pipelex/pipe_run/test_pipe_router_run.py+++ b/tests/unit/pipelex/pipe_run/test_pipe_router_run.py@@ -14,7 +14,7 @@ from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactoryfrom pipelex.system.job_metadata import JobMetadataif TYPE_CHECKING:- from pipelex.core.pipes.pipe_abstract import PipeAbstract+ from pipelex.pipe_machinery.pipe_abstract import PipeAbstractclass _StubPipe:diff --git a/tests/unit/pipelex/pipe_signature/test_pipe_signature_blueprint_validator.py b/tests/unit/pipelex/pipe_signature/test_pipe_signature_blueprint_validator.pyindex 35c80d95e..22bbe6299 100644--- a/tests/unit/pipelex/pipe_signature/test_pipe_signature_blueprint_validator.py+++ b/tests/unit/pipelex/pipe_signature/test_pipe_signature_blueprint_validator.py@@ -1,7 +1,7 @@import pytestfrom pydantic import ValidationError-from pipelex.core.pipes.pipe_blueprint import PipeType+from pipelex.pipe_machinery.pipe_blueprint import PipeTypefrom pipelex.pipe_signature.pipe_signature_blueprint import PipeSignatureBlueprintdiff --git a/tests/unit/pipelex/pipeline/fixes/test_blueprint_fix_planner.py b/tests/unit/pipelex/pipeline/fixes/test_blueprint_fix_planner.pyindex 15b777dbc..7e6643dfb 100644--- a/tests/unit/pipelex/pipeline/fixes/test_blueprint_fix_planner.py+++ b/tests/unit/pipelex/pipeline/fixes/test_blueprint_fix_planner.py@@ -8,7 +8,7 @@ structurally. ``DELETE_KEY`` on ``["concept"]`` covers every authoring form (taball normalize to a ``concept.<Code>`` key)."""-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData+from pipelex.core.exceptions import PipelexBundleBlueprintValidationErrorDatafrom pipelex.core.pipes.exceptions import PipeValidationErrorTypefrom pipelex.pipeline.fixes.planner import plan_fix_for_blueprint_validation_errorfrom pipelex.suggested_fix import FixOpKind, FixSafetydiff --git a/tests/unit/pipelex/pipeline/fixes/test_fix_loop_multi_file_scoping.py b/tests/unit/pipelex/pipeline/fixes/test_fix_loop_multi_file_scoping.pyindex 148b96bb1..c5271f1ba 100644--- a/tests/unit/pipelex/pipeline/fixes/test_fix_loop_multi_file_scoping.py+++ b/tests/unit/pipelex/pipeline/fixes/test_fix_loop_multi_file_scoping.py@@ -18,8 +18,7 @@ import pytestimport tomlkitfrom pytest_mock import MockerFixture-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData-from pipelex.core.exceptions import PipesAndConceptValidationErrorData+from pipelex.core.exceptions import PipelexBundleBlueprintValidationErrorData, PipesAndConceptValidationErrorDatafrom pipelex.core.pipes.exceptions import PipeValidationErrorTypefrom pipelex.pipeline.exceptions import ValidateBundleErrorfrom pipelex.pipeline.fixes.fix_loop import fix_bundle_filediff --git a/tests/unit/pipelex/pipeline/fixes/test_fix_loop_select_ignore.py b/tests/unit/pipelex/pipeline/fixes/test_fix_loop_select_ignore.pyindex d23a84891..73e5789f3 100644--- a/tests/unit/pipelex/pipeline/fixes/test_fix_loop_select_ignore.py+++ b/tests/unit/pipelex/pipeline/fixes/test_fix_loop_select_ignore.py@@ -12,8 +12,7 @@ import pytestimport tomlkitfrom pytest_mock import MockerFixture-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData-from pipelex.core.exceptions import PipesAndConceptValidationErrorData+from pipelex.core.exceptions import PipelexBundleBlueprintValidationErrorData, PipesAndConceptValidationErrorDatafrom pipelex.core.pipes.exceptions import PipeValidationErrorTypefrom pipelex.pipeline.exceptions import ValidateBundleErrorfrom pipelex.pipeline.fixes.fix_loop import fix_bundle_filediff --git a/tests/unit/pipelex/pipeline/test_select_primary_blueprint.py b/tests/unit/pipelex/pipeline/test_select_primary_blueprint.pyindex 26736e494..a2083d13c 100644--- a/tests/unit/pipelex/pipeline/test_select_primary_blueprint.py+++ b/tests/unit/pipelex/pipeline/test_select_primary_blueprint.py@@ -10,8 +10,8 @@ Pure parsing test (no Pipelex boot, no library): blueprints come straight from timport pytest-from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint-from pipelex.core.interpreter.interpreter import PipelexInterpreter+from pipelex.mthds_parsing.parser import MthdsParser+from pipelex.mthds_parsing.pipelex_bundle_blueprint import PipelexBundleBlueprintfrom pipelex.pipeline.blueprint_selection import select_primary_blueprintfrom pipelex.pipeline.exceptions import ValidateBundleError@@ -51,7 +51,7 @@ prompt = "Do something else with $doc"def _blueprint(mthds_content: str) -> PipelexBundleBlueprint:- return PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=mthds_content)+ return MthdsParser.make_pipelex_bundle_blueprint(mthds_content=mthds_content)class TestSelectPrimaryBlueprint:diff --git a/tests/unit/pipelex/pipeline/test_validate_bundle_error_report.py b/tests/unit/pipelex/pipeline/test_validate_bundle_error_report.pyindex bf9c3f18b..a21493262 100644--- a/tests/unit/pipelex/pipeline/test_validate_bundle_error_report.py+++ b/tests/unit/pipelex/pipeline/test_validate_bundle_error_report.py@@ -8,8 +8,7 @@ of only a single ``detail`` string. The cause-chain enrichment from the base"""from pipelex.base_exceptions import DisclosureMode, ErrorDomain, ValidationErrorCategory-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData-from pipelex.core.exceptions import PipesAndConceptValidationErrorData+from pipelex.core.exceptions import PipelexBundleBlueprintValidationErrorData, PipesAndConceptValidationErrorDatafrom pipelex.core.pipes.exceptions import PipeValidationErrorTypefrom pipelex.pipeline.exceptions import ValidateBundleErrordiff --git a/tests/unit/pipelex/pipeline/test_validation_errors.py b/tests/unit/pipelex/pipeline/test_validation_errors.pyindex 749a67b4f..b4880ae09 100644--- a/tests/unit/pipelex/pipeline/test_validation_errors.py+++ b/tests/unit/pipelex/pipeline/test_validation_errors.py@@ -12,8 +12,7 @@ import jsonfrom pipelex.base_exceptions import ValidationErrorCategory, ValidationErrorItemfrom pipelex.cli.agent_cli.commands.agent_output import extract_validation_errors-from pipelex.core.bundles.exceptions import PipelexBundleBlueprintValidationErrorData-from pipelex.core.exceptions import PipeFactoryErrorData, PipesAndConceptValidationErrorData+from pipelex.core.exceptions import PipeFactoryErrorData, PipelexBundleBlueprintValidationErrorData, PipesAndConceptValidationErrorDatafrom pipelex.core.pipes.exceptions import PipeFactoryErrorType, PipeValidationErrorTypefrom pipelex.pipeline.exceptions import ValidateBundleErrorfrom pipelex.pipeline.validation_errors import build_validation_error_itemsdiff --git a/tests/unit/pipelex/pipeline/test_validation_report.py b/tests/unit/pipelex/pipeline/test_validation_report.pyindex 4fe8616a4..2292bd834 100644--- a/tests/unit/pipelex/pipeline/test_validation_report.py+++ b/tests/unit/pipelex/pipeline/test_validation_report.py@@ -10,7 +10,7 @@ Pure unit test (no Pipelex boot): blueprints from the interpreter, hand-built st"""from pipelex.base_exceptions import ValidationErrorCategory, ValidationErrorItem-from pipelex.core.interpreter.interpreter import PipelexInterpreter+from pipelex.mthds_parsing.parser import MthdsParserfrom pipelex.pipeline.bundle_validator import DryRunOutput, DryRunStatusfrom pipelex.pipeline.pipe_io_contracts import IOMultiplicity, PipeIOContract, PipeOutputContractfrom pipelex.pipeline.validation_report import build_validation_report@@ -40,8 +40,8 @@ prompt = "Do it with $doc"class TestBuildValidationReport:def test_assembles_canonical_report_from_ingredients(self) -> None:blueprints = [- PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=_NO_MAIN_PIPE_MTHDS),- PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=_MAIN_PIPE_MTHDS),+ MthdsParser.make_pipelex_bundle_blueprint(mthds_content=_NO_MAIN_PIPE_MTHDS),+ MthdsParser.make_pipelex_bundle_blueprint(mthds_content=_MAIN_PIPE_MTHDS),]pipe_io_contracts = {"beta.do_it": PipeIOContract(@@ -71,7 +71,7 @@ class TestBuildValidationReport:assert report.graph_spec is Nonedef test_runnable_when_nothing_pending(self) -> None:- blueprints = [PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=_MAIN_PIPE_MTHDS)]+ blueprints = [MthdsParser.make_pipelex_bundle_blueprint(mthds_content=_MAIN_PIPE_MTHDS)]report = build_validation_report(blueprints=blueprints,@@ -88,7 +88,7 @@ class TestBuildValidationReport:def test_warnings_ride_the_report_without_flipping_the_verdict(self) -> None:"""Warnings share the error item shape but the report stays the valid arm (is_valid True)."""- blueprints = [PipelexInterpreter.make_pipelex_bundle_blueprint(mthds_content=_MAIN_PIPE_MTHDS)]+ blueprints = [MthdsParser.make_pipelex_bundle_blueprint(mthds_content=_MAIN_PIPE_MTHDS)]warning_item = ValidationErrorItem(category=ValidationErrorCategory.PIPE_VALIDATION,error_type="optional_force_redundant",diff --git a/tests/unit/pipelex/plugins/test_import_light_boot.py b/tests/unit/pipelex/plugins/test_import_light_boot.pyindex 38e70ded3..7463c4f45 100644--- a/tests/unit/pipelex/plugins/test_import_light_boot.py+++ b/tests/unit/pipelex/plugins/test_import_light_boot.py@@ -47,6 +47,10 @@ _GUARD_SCRIPT = textwrap.dedent(from types import SimpleNamespaceimport pipelex.plugins.discovery as discovery+ # The composed built-in list, both layers' halves — the same one the boot entrypoint hands to+ # discovery. Importing it loads the method interpreter, which is expected and is exactly why+ # `discovery` takes the list as a parameter instead of importing it.+ from pipelex.interpreter_plugins.builtins import BUILTIN_PLUGINS, CORE_UNCONDITIONAL_PLUGIN_NAMES# Isolate to the built-ins: ignore any external entry points installed in this venv,# whose load() could legitimately import an optional SDK.@@ -55,7 +59,11 @@ _GUARD_SCRIPT = textwrap.dedent(# Core's built-ins claim no hub slots; building the registrar must register them all# import-light, pulling none of the BLOCKED backend SDKs into sys.modules.config = SimpleNamespace(plugins=SimpleNamespace(disabled=[]))- registrar = discovery.build_registrar(config=config)+ registrar = discovery.build_registrar(+ config=config,+ builtin_plugins=BUILTIN_PLUGINS,+ core_unconditional_plugin_names=CORE_UNCONDITIONAL_PLUGIN_NAMES,+ )assert registrar.inference_backends, "expected the built-in LLM backends to be registered"assert registrar.model_listers, "expected the built-in model listers to be registered import-light"assert registrar.orchestrators, "expected the built-in orchestrators to be registered"diff --git a/tests/unit/pipelex/plugins/test_inference_backend_coverage.py b/tests/unit/pipelex/plugins/test_inference_backend_coverage.pyindex 97062d5f1..2c30c39de 100644--- a/tests/unit/pipelex/plugins/test_inference_backend_coverage.py+++ b/tests/unit/pipelex/plugins/test_inference_backend_coverage.py@@ -11,7 +11,7 @@ from typing import TYPE_CHECKING, castimport pytest-from pipelex.plugins.builtins import BUILTIN_PLUGINS+from pipelex.interpreter_plugins.builtins import BUILTIN_PLUGINSfrom pipelex.plugins.inference_backend_registry import InferenceBackendRegistry, InferenceFamilyfrom pipelex.plugins.registrar import PluginRegistrardiff --git a/tests/unit/pipelex/plugins/test_model_lister_coverage.py b/tests/unit/pipelex/plugins/test_model_lister_coverage.pyindex 043fc78d2..fdd4aad23 100644--- a/tests/unit/pipelex/plugins/test_model_lister_coverage.py+++ b/tests/unit/pipelex/plugins/test_model_lister_coverage.py@@ -11,7 +11,7 @@ from typing import TYPE_CHECKING, castimport pytest-from pipelex.plugins.builtins import BUILTIN_PLUGINS+from pipelex.interpreter_plugins.builtins import BUILTIN_PLUGINSfrom pipelex.plugins.model_lister_registry import ModelListerRegistryfrom pipelex.plugins.registrar import PluginRegistrardiff --git a/tests/unit/pipelex/plugins/test_pipe_func_executor_registry.py b/tests/unit/pipelex/plugins/test_pipe_func_executor_registry.pyindex 586242f5d..a9c264af9 100644--- a/tests/unit/pipelex/plugins/test_pipe_func_executor_registry.py+++ b/tests/unit/pipelex/plugins/test_pipe_func_executor_registry.py@@ -15,10 +15,10 @@ from typing import TYPE_CHECKING, castimport pytest+from pipelex.interpreter_plugins.pipe_func.pipe_func_plugin import PipeFuncPluginfrom pipelex.pipe_operators.func.direct_pipe_func_executor import DirectPipeFuncExecutorfrom pipelex.plugins.contract import PLUGIN_API_VERSIONfrom pipelex.plugins.exceptions import DuplicatePipeFuncExecutorError, UnknownPipeFuncExecutionModeError-from pipelex.plugins.pipe_func.pipe_func_plugin import PipeFuncPluginfrom pipelex.plugins.pipe_func_executor_registry import DIRECT_PIPE_FUNC_EXECUTION_MODE, PipeFuncExecutorRegistryfrom pipelex.plugins.registrar import PluginOrigin, PluginRegistrardiff --git a/tests/unit/pipelex/plugins/test_plugin_discovery.py b/tests/unit/pipelex/plugins/test_plugin_discovery.pyindex 9efa20d7d..3e8482f00 100644--- a/tests/unit/pipelex/plugins/test_plugin_discovery.py+++ b/tests/unit/pipelex/plugins/test_plugin_discovery.py@@ -24,6 +24,8 @@ from pipelex.plugins.inference_backend_registry import InferenceFamilyfrom pipelex.plugins.registrar import PluginOrigin, PluginRegistrar, PluginStatusif TYPE_CHECKING:+ from collections.abc import Sequence+from pytest_mock import MockerFixturefrom pipelex.cogt.inference.inference_worker_abstract import InferenceWorkerAbstract@@ -32,6 +34,9 @@ if TYPE_CHECKING:DISCOVERY_MODULE = "pipelex.plugins.discovery"+#: The default for tests that exercise no core-unconditional plugin: nothing is undisableable.+NO_CORE_UNCONDITIONAL: frozenset[str] = frozenset()+def _noop_make_worker(**_kwargs: object) -> InferenceWorkerAbstract:msg = "make_worker is never invoked by discovery tests"@@ -82,24 +87,62 @@ class _BrokenPlugin:raise ValueError(msg)-def _patch_builtins(mocker: MockerFixture, plugins: list[object]) -> None:- mocker.patch(f"{DISCOVERY_MODULE}.BUILTIN_PLUGINS", plugins)+def _build_registrar_with(+ *,+ mocker: MockerFixture,+ plugins: Sequence[object],+ disabled: list[str] | None = None,+ core_unconditional: frozenset[str] = NO_CORE_UNCONDITIONAL,+) -> PluginRegistrar:+ """Build a registrar over exactly ``plugins``, with external entry points stubbed out.++ The built-in list is a *parameter* of ``build_registrar`` rather than a module global it imports:+ some built-ins adapt interpreter-layer ports, so importing them from the runtime-layer discovery+ module would put the method interpreter back into every runtime import closure. Which is why these+ tests hand the list in instead of patching a module attribute.+ """mocker.patch(f"{DISCOVERY_MODULE}._external_entry_points", return_value=[])+ return build_registrar(+ config=_fake_config(disabled or []),+ builtin_plugins=cast("Sequence[PipelexPlugin]", plugins),+ core_unconditional_plugin_names=core_unconditional,+ )class TestPluginDiscovery:def test_builtin_plugins_satisfy_the_protocol(self) -> None:"""Every shipped built-in is a structural PipelexPlugin; a bare object is not."""- from pipelex.plugins.builtins import BUILTIN_PLUGINS # noqa: PLC0415+ from pipelex.interpreter_plugins.builtins import BUILTIN_PLUGINS # noqa: PLC0415for plugin in BUILTIN_PLUGINS:assert isinstance(plugin, PipelexPlugin)assert not isinstance(object(), PipelexPlugin)+ def test_the_two_layer_halves_compose_into_one_list(self) -> None:+ """The composition root's list is exactly both halves, and each name appears once.++ The halves are filed by layer — `pipelex.plugins` for the runtime adapters,+ `pipelex.interpreter_plugins` for the ones that construct interpreter-layer objects — so the+ failure mode this pins is a half silently dropping out of the composition, which would present+ as a plugin quietly missing at boot rather than as an import error.+ """+ from pipelex.interpreter_plugins.builtins import ( # noqa: PLC0415+ BUILTIN_PLUGINS,+ CORE_UNCONDITIONAL_PLUGIN_NAMES,+ INTERPRETER_BUILTIN_PLUGINS,+ INTERPRETER_CORE_UNCONDITIONAL_PLUGIN_NAMES,+ )+ from pipelex.providers.builtins import RUNTIME_BUILTIN_PLUGINS, RUNTIME_CORE_UNCONDITIONAL_PLUGIN_NAMES # noqa: PLC0415++ assert [*INTERPRETER_BUILTIN_PLUGINS, *RUNTIME_BUILTIN_PLUGINS] == BUILTIN_PLUGINS+ assert CORE_UNCONDITIONAL_PLUGIN_NAMES == INTERPRETER_CORE_UNCONDITIONAL_PLUGIN_NAMES | RUNTIME_CORE_UNCONDITIONAL_PLUGIN_NAMES+ names = [plugin.name for plugin in BUILTIN_PLUGINS]+ assert len(names) == len(set(names))+ assert set(names) >= CORE_UNCONDITIONAL_PLUGIN_NAMES+def test_registry_round_trip(self, mocker: MockerFixture) -> None:"""A registered backend is retrievable by (family, sdk) and is the exact callable."""- _patch_builtins(mocker, [_InferencePlugin(name="synthetic", sdk="synthetic_sdk")])- registrar = build_registrar(config=_fake_config([]))+ registrar = _build_registrar_with(mocker=mocker, plugins=[_InferencePlugin(name="synthetic", sdk="synthetic_sdk")])from pipelex.plugins.inference_backend_registry import InferenceBackendRegistry # noqa: PLC0415@@ -107,39 +150,35 @@ class TestPluginDiscovery:assert registry.lookup(family=InferenceFamily.LLM, sdk="synthetic_sdk") is _noop_make_workerdef test_version_mismatch_fails_loud(self, mocker: MockerFixture) -> None:- _patch_builtins(mocker, [_InferencePlugin(name="from_the_future", sdk="future_sdk", targets_api=PLUGIN_API_VERSION + 1)])+ future_plugin = _InferencePlugin(name="from_the_future", sdk="future_sdk", targets_api=PLUGIN_API_VERSION + 1)with pytest.raises(PluginApiVersionMismatchError) as exc_info:- build_registrar(config=_fake_config([]))+ _build_registrar_with(mocker=mocker, plugins=[future_plugin])assert "from_the_future" in str(exc_info.value)def test_duplicate_inference_backend_names_both(self, mocker: MockerFixture) -> None:- _patch_builtins(mocker, [_InferencePlugin(name="alpha", sdk="dup"), _InferencePlugin(name="beta", sdk="dup")])with pytest.raises(DuplicateInferenceBackendError) as exc_info:- build_registrar(config=_fake_config([]))+ _build_registrar_with(mocker=mocker, plugins=[_InferencePlugin(name="alpha", sdk="dup"), _InferencePlugin(name="beta", sdk="dup")])message = str(exc_info.value)assert "alpha" in messageassert "beta" in messagedef test_duplicate_orchestrator_names_both(self, mocker: MockerFixture) -> None:- _patch_builtins(mocker, [_OrchestratorPlugin(name="orch_a"), _OrchestratorPlugin(name="orch_b")])with pytest.raises(DuplicateOrchestratorError) as exc_info:- build_registrar(config=_fake_config([]))+ _build_registrar_with(mocker=mocker, plugins=[_OrchestratorPlugin(name="orch_a"), _OrchestratorPlugin(name="orch_b")])message = str(exc_info.value)assert "orch_a" in messageassert "orch_b" in messagedef test_double_claimed_slot_names_both(self, mocker: MockerFixture) -> None:- _patch_builtins(mocker, [_SlotPlugin(name="claimer_1"), _SlotPlugin(name="claimer_2")])with pytest.raises(HubSlotAlreadyClaimedError) as exc_info:- build_registrar(config=_fake_config([]))+ _build_registrar_with(mocker=mocker, plugins=[_SlotPlugin(name="claimer_1"), _SlotPlugin(name="claimer_2")])message = str(exc_info.value)assert "claimer_1" in messageassert "claimer_2" in messagedef test_broken_plugin_register_wrapped(self, mocker: MockerFixture) -> None:- _patch_builtins(mocker, [_BrokenPlugin()])with pytest.raises(BrokenPluginError) as exc_info:- build_registrar(config=_fake_config([]))+ _build_registrar_with(mocker=mocker, plugins=[_BrokenPlugin()])assert "broken" in str(exc_info.value)assert "kaboom" in str(exc_info.value)@@ -151,10 +190,9 @@ class TestPluginDiscovery:raise ImportError(msg)bad_entry_point = SimpleNamespace(name="bad_ep", load=_explode)- mocker.patch(f"{DISCOVERY_MODULE}.BUILTIN_PLUGINS", [])mocker.patch(f"{DISCOVERY_MODULE}._external_entry_points", return_value=[bad_entry_point])with pytest.raises(BrokenPluginError) as exc_info:- build_registrar(config=_fake_config([]))+ build_registrar(config=_fake_config([]), builtin_plugins=[], core_unconditional_plugin_names=NO_CORE_UNCONDITIONAL)assert "bad_ep" in str(exc_info.value)def test_disabled_broken_external_entry_point_is_skipped_before_load(self, mocker: MockerFixture) -> None:@@ -167,10 +205,9 @@ class TestPluginDiscovery:raise ImportError(msg)bad_entry_point = SimpleNamespace(name="bad_ep", load=_explode)- mocker.patch(f"{DISCOVERY_MODULE}.BUILTIN_PLUGINS", [])mocker.patch(f"{DISCOVERY_MODULE}._external_entry_points", return_value=[bad_entry_point])- registrar = build_registrar(config=_fake_config(["bad_ep"]))+ registrar = build_registrar(config=_fake_config(["bad_ep"]), builtin_plugins=[], core_unconditional_plugin_names=NO_CORE_UNCONDITIONAL)disabled_discovery = next(discovery for discovery in registrar.discoveries if discovery.name == "bad_ep")assert disabled_discovery.status == PluginStatus.DISABLED@@ -178,15 +215,14 @@ class TestPluginDiscovery:def test_build_registrar_is_idempotent(self, mocker: MockerFixture) -> None:"""Two builds produce equivalent registrars — register is side-effect-free (D3)."""- _patch_builtins(mocker, [_InferencePlugin(name="synthetic", sdk="synthetic_sdk")])- first = build_registrar(config=_fake_config([]))- second = build_registrar(config=_fake_config([]))+ synthetic = [_InferencePlugin(name="synthetic", sdk="synthetic_sdk")]+ first = _build_registrar_with(mocker=mocker, plugins=synthetic)+ second = _build_registrar_with(mocker=mocker, plugins=synthetic)assert set(first.inference_backends) == set(second.inference_backends)assert [discovery.name for discovery in first.discoveries] == [discovery.name for discovery in second.discoveries]def test_disabled_plugin_is_skipped(self, mocker: MockerFixture) -> None:- _patch_builtins(mocker, [_InferencePlugin(name="optional", sdk="optional_sdk")])- registrar = build_registrar(config=_fake_config(["optional"]))+ registrar = _build_registrar_with(mocker=mocker, plugins=[_InferencePlugin(name="optional", sdk="optional_sdk")], disabled=["optional"])assert (InferenceFamily.LLM, "optional_sdk") not in registrar.inference_backendsdisabled_discovery = next(discovery for discovery in registrar.discoveries if discovery.name == "optional")assert disabled_discovery.status == PluginStatus.DISABLED@@ -194,13 +230,25 @@ class TestPluginDiscovery:@pytest.mark.parametrize("plugin_name", ["direct", "pipe_func", "storage", "secrets", "openai"])def test_disabling_core_unconditional_plugin_raises(self, plugin_name: str) -> None:"""Denylisting any plugin core requires unconditionally (pipe_func/storage/secrets included) is a startup error."""+ from pipelex.interpreter_plugins.builtins import BUILTIN_PLUGINS, CORE_UNCONDITIONAL_PLUGIN_NAMES # noqa: PLC0415+with pytest.raises(CoreUnconditionalPluginDisabledError) as exc_info:- build_registrar(config=_fake_config([plugin_name]))+ build_registrar(+ config=_fake_config([plugin_name]),+ builtin_plugins=BUILTIN_PLUGINS,+ core_unconditional_plugin_names=CORE_UNCONDITIONAL_PLUGIN_NAMES,+ )assert plugin_name in str(exc_info.value)def test_discoveries_describe_builtins(self) -> None:"""build_registrar records each built-in with origin/status/contributions for `plugins list`."""- registrar = build_registrar(config=_fake_config([]))+ from pipelex.interpreter_plugins.builtins import BUILTIN_PLUGINS, CORE_UNCONDITIONAL_PLUGIN_NAMES # noqa: PLC0415++ registrar = build_registrar(+ config=_fake_config([]),+ builtin_plugins=BUILTIN_PLUGINS,+ core_unconditional_plugin_names=CORE_UNCONDITIONAL_PLUGIN_NAMES,+ )by_name = {discovery.name: discovery for discovery in registrar.discoveries}assert "openai" in by_nameopenai_discovery = by_name["openai"]diff --git a/tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py b/tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.pysimilarity index 98%rename from tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.pyrename to tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.pyindex c32950130..ae5cb174e 100644--- a/tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_error_handling.py+++ b/tests/unit/pipelex/providers/anthropic/test_anthropic_worker_error_handling.py@@ -13,8 +13,8 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import InferenceErrorCategory, LLMCompletionError, LLMModelNotFoundErrorfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.anthropic.anthropic_llm_worker import AnthropicLLMWorker-from tests.unit.pipelex.plugins.anthropic.test_data import AnthropicErrorHandlingTestData+from pipelex.providers.anthropic.anthropic_llm_worker import AnthropicLLMWorker+from tests.unit.pipelex.providers.anthropic.test_data import AnthropicErrorHandlingTestDatadef _mock_httpx_response(status_code: int = 429) -> httpx.Response:diff --git a/tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py b/tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.pysimilarity index 98%rename from tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.pyrename to tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.pyindex 951e81c0c..95b02e4da 100644--- a/tests/unit/pipelex/plugins/anthropic/test_anthropic_worker_object_error_handling.py+++ b/tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py@@ -18,7 +18,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import InferenceErrorCategory, LLMCompletionError, LLMModelNotFoundErrorfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.anthropic.anthropic_llm_worker import AnthropicLLMWorker+from pipelex.providers.anthropic.anthropic_llm_worker import AnthropicLLMWorkerfrom tests.helpers.instructor_test_utils import DummySchema, make_llm_job, wrap_in_instructor_retry@@ -89,13 +89,13 @@ def _patch_gen_object_dependencies(mocker: MockerFixture) -> None:"""Patch the module-level helpers _gen_object relies on."""config_mock = mocker.MagicMock()config_mock.cogt.llm_config.anthropic_config.structured_output_timeout_seconds = 1200- mocker.patch("pipelex.plugins.anthropic.anthropic_llm_worker.get_config", return_value=config_mock)+ mocker.patch("pipelex.providers.anthropic.anthropic_llm_worker.get_config", return_value=config_mock)mocker.patch(- "pipelex.plugins.anthropic.anthropic_llm_worker.AnthropicFactory.make_simple_messages",+ "pipelex.providers.anthropic.anthropic_llm_worker.AnthropicFactory.make_simple_messages",new=mocker.AsyncMock(return_value=[]),)mocker.patch(- "pipelex.plugins.anthropic.anthropic_llm_worker.AnthropicFactory.calculate_safe_max_tokens_for_timeout",+ "pipelex.providers.anthropic.anthropic_llm_worker.AnthropicFactory.calculate_safe_max_tokens_for_timeout",return_value=4096,)diff --git a/tests/unit/pipelex/plugins/anthropic/test_data.py b/tests/unit/pipelex/providers/anthropic/test_data.pysimilarity index 100%rename from tests/unit/pipelex/plugins/anthropic/test_data.pyrename to tests/unit/pipelex/providers/anthropic/test_data.pydiff --git a/tests/unit/pipelex/plugins/anthropic/test_extract_anthropic_metadata.py b/tests/unit/pipelex/providers/anthropic/test_extract_anthropic_metadata.pysimilarity index 100%rename from tests/unit/pipelex/plugins/anthropic/test_extract_anthropic_metadata.pyrename to tests/unit/pipelex/providers/anthropic/test_extract_anthropic_metadata.pydiff --git a/tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_edit_routing.py b/tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_edit_routing.pysimilarity index 93%rename from tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_edit_routing.pyrename to tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_edit_routing.pyindex 4e50c0c61..6b02008ff 100644--- a/tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_edit_routing.py+++ b/tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_edit_routing.py@@ -11,7 +11,7 @@ from typing import TYPE_CHECKING, Anyimport httpximport pytest-from pipelex.plugins.azure_rest.azure_img_gen_worker import AzureImgGenWorker+from pipelex.providers.azure_rest.azure_img_gen_worker import AzureImgGenWorkerif TYPE_CHECKING:from pytest_mock import MockerFixture@@ -54,9 +54,9 @@ def _patch_httpx_success(mocker: MockerFixture, *, args_dict: dict[str, Any]) ->mock_client.__aenter__ = mocker.AsyncMock(return_value=mock_client)mock_client.__aexit__ = mocker.AsyncMock(return_value=False)mock_client.post = mocker.AsyncMock(return_value=mock_response)- mocker.patch("pipelex.plugins.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)+ mocker.patch("pipelex.providers.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)mocker.patch(- "pipelex.plugins.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value=args_dict,)diff --git a/tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py b/tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.pysimilarity index 94%rename from tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.pyrename to tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.pyindex 2e6bf2a43..54bbce85a 100644--- a/tests/unit/pipelex/plugins/azure_rest/test_azure_img_gen_worker_error_handling.py+++ b/tests/unit/pipelex/providers/azure_rest/test_azure_img_gen_worker_error_handling.py@@ -18,7 +18,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import ImgGenGenerationError, ImgGenModelNotFoundError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.azure_rest.azure_img_gen_worker import AzureImgGenWorker+from pipelex.providers.azure_rest.azure_img_gen_worker import AzureImgGenWorkerdef _make_status_error(status_code: int, text: str = "", headers: dict[str, str] | None = None) -> httpx.HTTPStatusError:@@ -56,9 +56,9 @@ def _patch_httpx_status_error(mocker: MockerFixture, sdk_exc: httpx.HTTPStatusErmock_client.__aenter__ = mocker.AsyncMock(return_value=mock_client)mock_client.__aexit__ = mocker.AsyncMock(return_value=False)mock_client.post = mocker.AsyncMock(return_value=mock_response)- mocker.patch("pipelex.plugins.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)+ mocker.patch("pipelex.providers.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)mocker.patch(- "pipelex.plugins.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -70,9 +70,9 @@ def _patch_httpx_post_raises(mocker: MockerFixture, sdk_exc: httpx.HTTPError) ->mock_client.__aenter__ = mocker.AsyncMock(return_value=mock_client)mock_client.__aexit__ = mocker.AsyncMock(return_value=False)mock_client.post = mocker.AsyncMock(side_effect=sdk_exc)- mocker.patch("pipelex.plugins.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)+ mocker.patch("pipelex.providers.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)mocker.patch(- "pipelex.plugins.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -90,9 +90,9 @@ def _patch_httpx_malformed_json(mocker: MockerFixture, raw_body: str) -> None:mock_client.__aenter__ = mocker.AsyncMock(return_value=mock_client)mock_client.__aexit__ = mocker.AsyncMock(return_value=False)mock_client.post = mocker.AsyncMock(return_value=mock_response)- mocker.patch("pipelex.plugins.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)+ mocker.patch("pipelex.providers.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)mocker.patch(- "pipelex.plugins.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -109,9 +109,9 @@ def _patch_httpx_success_json(mocker: MockerFixture, response_dict: dict[str, Anmock_client.__aenter__ = mocker.AsyncMock(return_value=mock_client)mock_client.__aexit__ = mocker.AsyncMock(return_value=False)mock_client.post = mocker.AsyncMock(return_value=mock_response)- mocker.patch("pipelex.plugins.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)+ mocker.patch("pipelex.providers.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)mocker.patch(- "pipelex.plugins.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)diff --git a/tests/unit/pipelex/plugins/azure_rest/test_azure_worker_error_handling.py b/tests/unit/pipelex/providers/azure_rest/test_azure_worker_error_handling.pysimilarity index 88%rename from tests/unit/pipelex/plugins/azure_rest/test_azure_worker_error_handling.pyrename to tests/unit/pipelex/providers/azure_rest/test_azure_worker_error_handling.pyindex 40c94d54d..cb4deab43 100644--- a/tests/unit/pipelex/plugins/azure_rest/test_azure_worker_error_handling.py+++ b/tests/unit/pipelex/providers/azure_rest/test_azure_worker_error_handling.py@@ -9,8 +9,8 @@ import pytestfrom pipelex.cogt.exceptions import ImgGenGenerationError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.azure_rest.azure_img_gen_worker import AzureImgGenWorker-from tests.unit.pipelex.plugins.azure_rest.test_data import AzureErrorHandlingTestData+from pipelex.providers.azure_rest.azure_img_gen_worker import AzureImgGenWorker+from tests.unit.pipelex.providers.azure_rest.test_data import AzureErrorHandlingTestDataif TYPE_CHECKING:from pytest_mock import MockerFixture@@ -75,9 +75,9 @@ class TestAzureWorkerErrorHandling:mock_client.__aexit__ = mocker.AsyncMock(return_value=False)mock_client.post = mocker.AsyncMock(return_value=mock_response)- mocker.patch("pipelex.plugins.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)+ mocker.patch("pipelex.providers.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)mocker.patch(- "pipelex.plugins.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -111,9 +111,9 @@ class TestAzureWorkerErrorHandling:mock_client.__aexit__ = mocker.AsyncMock(return_value=False)mock_client.post = mocker.AsyncMock(side_effect=sdk_exc)- mocker.patch("pipelex.plugins.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)+ mocker.patch("pipelex.providers.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)mocker.patch(- "pipelex.plugins.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -149,9 +149,9 @@ class TestAzureWorkerErrorHandling:mock_client.__aexit__ = mocker.AsyncMock(return_value=False)mock_client.post = mocker.AsyncMock(side_effect=sdk_exc)- mocker.patch("pipelex.plugins.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)+ mocker.patch("pipelex.providers.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)mocker.patch(- "pipelex.plugins.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -176,9 +176,9 @@ class TestAzureWorkerErrorHandling:mock_client.__aexit__ = mocker.AsyncMock(return_value=False)mock_client.post = mocker.AsyncMock(return_value=mock_response)- mocker.patch("pipelex.plugins.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)+ mocker.patch("pipelex.providers.azure_rest.azure_img_gen_worker.httpx.AsyncClient", return_value=mock_client)mocker.patch(- "pipelex.plugins.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.azure_rest.azure_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)diff --git a/tests/unit/pipelex/plugins/azure_rest/test_data.py b/tests/unit/pipelex/providers/azure_rest/test_data.pysimilarity index 100%rename from tests/unit/pipelex/plugins/azure_rest/test_data.pyrename to tests/unit/pipelex/providers/azure_rest/test_data.pydiff --git a/tests/unit/pipelex/plugins/azure_rest/test_extract_azure_metadata.py b/tests/unit/pipelex/providers/azure_rest/test_extract_azure_metadata.pysimilarity index 100%rename from tests/unit/pipelex/plugins/azure_rest/test_extract_azure_metadata.pyrename to tests/unit/pipelex/providers/azure_rest/test_extract_azure_metadata.pydiff --git a/tests/unit/pipelex/plugins/bedrock/test_bedrock_reasoning.py b/tests/unit/pipelex/providers/bedrock/test_bedrock_reasoning.pysimilarity index 96%rename from tests/unit/pipelex/plugins/bedrock/test_bedrock_reasoning.pyrename to tests/unit/pipelex/providers/bedrock/test_bedrock_reasoning.pyindex 1d48de1ef..c4b52d3e2 100644--- a/tests/unit/pipelex/plugins/bedrock/test_bedrock_reasoning.py+++ b/tests/unit/pipelex/providers/bedrock/test_bedrock_reasoning.py@@ -3,7 +3,7 @@ from pytest_mock import MockerFixturefrom pipelex.cogt.exceptions import LLMCapabilityErrorfrom pipelex.cogt.llm.llm_job_components import LLMJobParams, ReasoningEffort-from pipelex.plugins.bedrock.bedrock_llm_worker import BedrockLLMWorker+from pipelex.providers.bedrock.bedrock_llm_worker import BedrockLLMWorkerdef _make_worker(mocker: MockerFixture) -> BedrockLLMWorker:diff --git a/tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_error_handling.py b/tests/unit/pipelex/providers/bedrock/test_bedrock_worker_error_handling.pysimilarity index 92%rename from tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_error_handling.pyrename to tests/unit/pipelex/providers/bedrock/test_bedrock_worker_error_handling.pyindex 4ff5f6847..503d81250 100644--- a/tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_error_handling.py+++ b/tests/unit/pipelex/providers/bedrock/test_bedrock_worker_error_handling.py@@ -11,8 +11,8 @@ if TYPE_CHECKING:from pytest_mock import MockerFixturefrom pipelex.cogt.exceptions import InferenceErrorCategory, LLMCompletionError-from pipelex.plugins.bedrock.bedrock_llm_worker import BedrockLLMWorker-from tests.unit.pipelex.plugins.bedrock.test_data import BedrockLLMErrorHandlingTestData+from pipelex.providers.bedrock.bedrock_llm_worker import BedrockLLMWorker+from tests.unit.pipelex.providers.bedrock.test_data import BedrockLLMErrorHandlingTestDatadef _make_bedrock_client_error(error_code: str, error_message: str) -> ClientError:@@ -83,7 +83,7 @@ class TestBedrockWorkerErrorHandling:mock_message = mocker.MagicMock()mock_message.to_dict_list = mocker.MagicMock(return_value=[{"role": "user", "content": "test"}])mocker.patch(- "pipelex.plugins.bedrock.bedrock_llm_worker.BedrockFactory.make_simple_message",+ "pipelex.providers.bedrock.bedrock_llm_worker.BedrockFactory.make_simple_message",return_value=mock_message,)@@ -107,7 +107,7 @@ class TestBedrockWorkerErrorHandling:mock_message = mocker.MagicMock()mock_message.to_dict_list = mocker.MagicMock(return_value=[{"role": "user", "content": "test"}])mocker.patch(- "pipelex.plugins.bedrock.bedrock_llm_worker.BedrockFactory.make_simple_message",+ "pipelex.providers.bedrock.bedrock_llm_worker.BedrockFactory.make_simple_message",return_value=mock_message,)@@ -128,7 +128,7 @@ class TestBedrockWorkerErrorHandling:mock_message = mocker.MagicMock()mock_message.to_dict_list = mocker.MagicMock(return_value=[{"role": "user", "content": "test"}])mocker.patch(- "pipelex.plugins.bedrock.bedrock_llm_worker.BedrockFactory.make_simple_message",+ "pipelex.providers.bedrock.bedrock_llm_worker.BedrockFactory.make_simple_message",return_value=mock_message,)@@ -148,7 +148,7 @@ class TestBedrockWorkerErrorHandling:mock_message = mocker.MagicMock()mock_message.to_dict_list = mocker.MagicMock(return_value=[{"role": "user", "content": "test"}])mocker.patch(- "pipelex.plugins.bedrock.bedrock_llm_worker.BedrockFactory.make_simple_message",+ "pipelex.providers.bedrock.bedrock_llm_worker.BedrockFactory.make_simple_message",return_value=mock_message,)diff --git a/tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_semantic.py b/tests/unit/pipelex/providers/bedrock/test_bedrock_worker_semantic.pysimilarity index 96%rename from tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_semantic.pyrename to tests/unit/pipelex/providers/bedrock/test_bedrock_worker_semantic.pyindex 64be63e35..ee5302d82 100644--- a/tests/unit/pipelex/plugins/bedrock/test_bedrock_worker_semantic.py+++ b/tests/unit/pipelex/providers/bedrock/test_bedrock_worker_semantic.py@@ -12,7 +12,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import InferenceErrorCategory, LLMCompletionError, LLMModelNotFoundErrorfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.bedrock.bedrock_llm_worker import BedrockLLMWorker+from pipelex.providers.bedrock.bedrock_llm_worker import BedrockLLMWorkerdef _make_bedrock_client_error(error_code: str, error_message: str, status_code: int | None = None, request_id: str | None = None) -> ClientError:@@ -91,7 +91,7 @@ class TestBedrockWorkerSemantic:mock_message = mocker.MagicMock()mock_message.to_dict_list = mocker.MagicMock(return_value=[{"role": "user", "content": "test"}])mocker.patch(- "pipelex.plugins.bedrock.bedrock_llm_worker.BedrockFactory.make_simple_message",+ "pipelex.providers.bedrock.bedrock_llm_worker.BedrockFactory.make_simple_message",return_value=mock_message,)@@ -118,7 +118,7 @@ class TestBedrockWorkerSemantic:mock_message = mocker.MagicMock()mock_message.to_dict_list = mocker.MagicMock(return_value=[{"role": "user", "content": "test"}])mocker.patch(- "pipelex.plugins.bedrock.bedrock_llm_worker.BedrockFactory.make_simple_message",+ "pipelex.providers.bedrock.bedrock_llm_worker.BedrockFactory.make_simple_message",return_value=mock_message,)diff --git a/tests/unit/pipelex/plugins/bedrock/test_data.py b/tests/unit/pipelex/providers/bedrock/test_data.pysimilarity index 100%rename from tests/unit/pipelex/plugins/bedrock/test_data.pyrename to tests/unit/pipelex/providers/bedrock/test_data.pydiff --git a/tests/unit/pipelex/plugins/bedrock/test_extract_bedrock_metadata.py b/tests/unit/pipelex/providers/bedrock/test_extract_bedrock_metadata.pysimilarity index 100%rename from tests/unit/pipelex/plugins/bedrock/test_extract_bedrock_metadata.pyrename to tests/unit/pipelex/providers/bedrock/test_extract_bedrock_metadata.pydiff --git a/tests/unit/pipelex/plugins/docling/test_data.py b/tests/unit/pipelex/providers/docling/test_data.pysimilarity index 100%rename from tests/unit/pipelex/plugins/docling/test_data.pyrename to tests/unit/pipelex/providers/docling/test_data.pydiff --git a/tests/unit/pipelex/plugins/docling/test_docling_worker_error_handling.py b/tests/unit/pipelex/providers/docling/test_docling_worker_error_handling.pysimilarity index 88%rename from tests/unit/pipelex/plugins/docling/test_docling_worker_error_handling.pyrename to tests/unit/pipelex/providers/docling/test_docling_worker_error_handling.pyindex 34f2b2be6..2d85f0e81 100644--- a/tests/unit/pipelex/plugins/docling/test_docling_worker_error_handling.py+++ b/tests/unit/pipelex/providers/docling/test_docling_worker_error_handling.py@@ -12,9 +12,9 @@ if TYPE_CHECKING:from pipelex.cogt.inference.error_classification import UserActionKindfrom pipelex.cogt.exceptions import ExtractJobFailureError, InferenceErrorCategory-from pipelex.plugins.docling.docling_extract_worker import DoclingExtractWorker+from pipelex.providers.docling.docling_extract_worker import DoclingExtractWorkerfrom pipelex.tools.uri.prepared_file import PreparedFileLocalPath-from tests.unit.pipelex.plugins.docling.test_data import DoclingErrorHandlingTestData+from tests.unit.pipelex.providers.docling.test_data import DoclingErrorHandlingTestDatadef _make_docling_extract_worker(mocker: MockerFixture) -> DoclingExtractWorker:@@ -56,13 +56,13 @@ class TestDoclingWorkerErrorHandling:# Mock asyncio.to_thread to raise the exception (simulating docling conversion failure)mocker.patch(- "pipelex.plugins.docling.docling_extract_worker.asyncio.to_thread",+ "pipelex.providers.docling.docling_extract_worker.asyncio.to_thread",side_effect=sdk_exc,)# Mock prepare_file_from_uri to return a local path that the match statement can handlemock_prepared_file = PreparedFileLocalPath(path="/tmp/test.pdf") # noqa: S108mocker.patch(- "pipelex.plugins.docling.docling_extract_worker.prepare_file_from_uri",+ "pipelex.providers.docling.docling_extract_worker.prepare_file_from_uri",new_callable=mocker.AsyncMock,return_value=mock_prepared_file,)@@ -81,12 +81,12 @@ class TestDoclingWorkerErrorHandling:sdk_exc = FileNotFoundError("No such file: /tmp/missing.pdf")mocker.patch(- "pipelex.plugins.docling.docling_extract_worker.asyncio.to_thread",+ "pipelex.providers.docling.docling_extract_worker.asyncio.to_thread",side_effect=sdk_exc,)mock_prepared_file = PreparedFileLocalPath(path="/tmp/test.pdf") # noqa: S108mocker.patch(- "pipelex.plugins.docling.docling_extract_worker.prepare_file_from_uri",+ "pipelex.providers.docling.docling_extract_worker.prepare_file_from_uri",new_callable=mocker.AsyncMock,return_value=mock_prepared_file,)@@ -105,12 +105,12 @@ class TestDoclingWorkerErrorHandling:sdk_exc = OSError("Disk I/O failure")mocker.patch(- "pipelex.plugins.docling.docling_extract_worker.asyncio.to_thread",+ "pipelex.providers.docling.docling_extract_worker.asyncio.to_thread",side_effect=sdk_exc,)mock_prepared_file = PreparedFileLocalPath(path="/tmp/test.pdf") # noqa: S108mocker.patch(- "pipelex.plugins.docling.docling_extract_worker.prepare_file_from_uri",+ "pipelex.providers.docling.docling_extract_worker.prepare_file_from_uri",new_callable=mocker.AsyncMock,return_value=mock_prepared_file,)diff --git a/tests/unit/pipelex/plugins/docling/test_docling_worker_semantic.py b/tests/unit/pipelex/providers/docling/test_docling_worker_semantic.pysimilarity index 93%rename from tests/unit/pipelex/plugins/docling/test_docling_worker_semantic.pyrename to tests/unit/pipelex/providers/docling/test_docling_worker_semantic.pyindex bd96cba30..e40ef80a9 100644--- a/tests/unit/pipelex/plugins/docling/test_docling_worker_semantic.py+++ b/tests/unit/pipelex/providers/docling/test_docling_worker_semantic.py@@ -11,7 +11,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import ExtractJobFailureError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.docling.docling_extract_worker import DoclingExtractWorker+from pipelex.providers.docling.docling_extract_worker import DoclingExtractWorkerdef _make_worker(mocker: MockerFixture) -> DoclingExtractWorker:@@ -61,12 +61,12 @@ class TestDoclingWorkerSemantic:from pipelex.tools.uri.prepared_file import PreparedFileLocalPath # noqa: PLC0415mocker.patch(- "pipelex.plugins.docling.docling_extract_worker.prepare_file_from_uri",+ "pipelex.providers.docling.docling_extract_worker.prepare_file_from_uri",new_callable=mocker.AsyncMock,return_value=PreparedFileLocalPath(path="/tmp/test.pdf"), # noqa: S108)mocker.patch(- "pipelex.plugins.docling.docling_extract_worker.asyncio.to_thread",+ "pipelex.providers.docling.docling_extract_worker.asyncio.to_thread",new_callable=mocker.AsyncMock,side_effect=sdk_exc,)diff --git a/tests/unit/pipelex/plugins/fal/test_data.py b/tests/unit/pipelex/providers/fal/test_data.pysimilarity index 100%rename from tests/unit/pipelex/plugins/fal/test_data.pyrename to tests/unit/pipelex/providers/fal/test_data.pydiff --git a/tests/unit/pipelex/plugins/fal/test_extract_fal_metadata.py b/tests/unit/pipelex/providers/fal/test_extract_fal_metadata.pysimilarity index 100%rename from tests/unit/pipelex/plugins/fal/test_extract_fal_metadata.pyrename to tests/unit/pipelex/providers/fal/test_extract_fal_metadata.pydiff --git a/tests/unit/pipelex/plugins/fal/test_fal_img_gen_worker_semantic.py b/tests/unit/pipelex/providers/fal/test_fal_img_gen_worker_semantic.pysimilarity index 94%rename from tests/unit/pipelex/plugins/fal/test_fal_img_gen_worker_semantic.pyrename to tests/unit/pipelex/providers/fal/test_fal_img_gen_worker_semantic.pyindex 437fd2973..0f41011c8 100644--- a/tests/unit/pipelex/plugins/fal/test_fal_img_gen_worker_semantic.py+++ b/tests/unit/pipelex/providers/fal/test_fal_img_gen_worker_semantic.py@@ -13,7 +13,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import ImgGenGenerationError, ImgGenModelNotFoundError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.fal.fal_img_gen_worker import FalImgGenWorker+from pipelex.providers.fal.fal_img_gen_worker import FalImgGenWorkerdef _make_fal_http_error(status_code: int, message: str = "") -> FalClientHTTPError:@@ -74,7 +74,7 @@ class TestFalImgGenWorkerSemantic:worker.fal_async_client.submit.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)@@ -96,7 +96,7 @@ class TestFalImgGenWorkerSemantic:worker.fal_async_client.submit.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)@@ -117,7 +117,7 @@ class TestFalImgGenWorkerSemantic:worker.fal_async_client.submit.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)@@ -137,7 +137,7 @@ class TestFalImgGenWorkerSemantic:worker.fal_async_client.submit.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)diff --git a/tests/unit/pipelex/plugins/fal/test_fal_worker_error_handling.py b/tests/unit/pipelex/providers/fal/test_fal_worker_error_handling.pysimilarity index 93%rename from tests/unit/pipelex/plugins/fal/test_fal_worker_error_handling.pyrename to tests/unit/pipelex/providers/fal/test_fal_worker_error_handling.pyindex 592aaacc3..fb8303ddf 100644--- a/tests/unit/pipelex/plugins/fal/test_fal_worker_error_handling.py+++ b/tests/unit/pipelex/providers/fal/test_fal_worker_error_handling.py@@ -11,8 +11,8 @@ from fal_client.client import FalClientError, FalClientHTTPError, FalClientTimeofrom pipelex.cogt.exceptions import ImgGenGenerationError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.fal.fal_img_gen_worker import FalImgGenWorker-from tests.unit.pipelex.plugins.fal.test_data import FalErrorHandlingTestData+from pipelex.providers.fal.fal_img_gen_worker import FalImgGenWorker+from tests.unit.pipelex.providers.fal.test_data import FalErrorHandlingTestDataif TYPE_CHECKING:from pytest_mock import MockerFixture@@ -88,7 +88,7 @@ class TestFalWorkerErrorHandling:worker.fal_async_client.submit.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)@@ -118,7 +118,7 @@ class TestFalWorkerErrorHandling:worker.fal_async_client.submit.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)@@ -148,7 +148,7 @@ class TestFalWorkerErrorHandling:worker.fal_async_client.submit.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)@@ -178,7 +178,7 @@ class TestFalWorkerErrorHandling:worker.fal_async_client.submit.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)@@ -198,7 +198,7 @@ class TestFalWorkerErrorHandling:worker.fal_async_client.submit.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.fal.fal_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)diff --git a/tests/unit/pipelex/plugins/gateway/test_extract_gateway_metadata.py b/tests/unit/pipelex/providers/gateway/test_extract_gateway_metadata.pysimilarity index 100%rename from tests/unit/pipelex/plugins/gateway/test_extract_gateway_metadata.pyrename to tests/unit/pipelex/providers/gateway/test_extract_gateway_metadata.pydiff --git a/tests/unit/pipelex/plugins/gateway/test_gateway_completions_client.py b/tests/unit/pipelex/providers/gateway/test_gateway_completions_client.pysimilarity index 93%rename from tests/unit/pipelex/plugins/gateway/test_gateway_completions_client.pyrename to tests/unit/pipelex/providers/gateway/test_gateway_completions_client.pyindex 699569fb4..88d7afc17 100644--- a/tests/unit/pipelex/plugins/gateway/test_gateway_completions_client.py+++ b/tests/unit/pipelex/providers/gateway/test_gateway_completions_client.py@@ -2,7 +2,7 @@These patch the GatewayFactory accessors and the SDK client constructor — they never touchthe network. Transport retry wiring (``max_retries``) is pinned separately in-``tests/unit/pipelex/plugins/test_transport_retry_wiring.py``.+``tests/unit/pipelex/providers/test_transport_retry_wiring.py``."""from __future__ import annotations@@ -11,13 +11,13 @@ from typing import TYPE_CHECKING, Anyimport pytest-from pipelex.plugins.gateway.gateway_completions_factory import GatewayCompletionsFactory-from pipelex.plugins.gateway.gateway_exceptions import GatewayFactoryError+from pipelex.providers.gateway.gateway_completions_factory import GatewayCompletionsFactory+from pipelex.providers.gateway.gateway_exceptions import GatewayFactoryErrorif TYPE_CHECKING:from pytest_mock import MockerFixture-_FACTORY_NAMESPACE = "pipelex.plugins.gateway.gateway_completions_factory"+_FACTORY_NAMESPACE = "pipelex.providers.gateway.gateway_completions_factory"def _patch_gateway_accessors(diff --git a/tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py b/tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.pysimilarity index 98%rename from tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.pyrename to tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.pyindex c25cc7832..b0238187a 100644--- a/tests/unit/pipelex/plugins/gateway/test_gateway_completions_extract_output.py+++ b/tests/unit/pipelex/providers/gateway/test_gateway_completions_extract_output.py@@ -15,13 +15,13 @@ import pytestfrom portkey_ai.api_resources.utils import GenericResponsefrom pipelex.cogt.extract.extract_output import ExtractOutput-from pipelex.plugins.gateway.gateway_completions_factory import GatewayCompletionsFactory-from pipelex.plugins.gateway.gateway_exceptions import GatewayExtractResponseError+from pipelex.providers.gateway.gateway_completions_factory import GatewayCompletionsFactory+from pipelex.providers.gateway.gateway_exceptions import GatewayExtractResponseErrorif TYPE_CHECKING:from pytest_mock import MockerFixture-_FACTORY_NAMESPACE = "pipelex.plugins.gateway.gateway_completions_factory"+_FACTORY_NAMESPACE = "pipelex.providers.gateway.gateway_completions_factory"_FALSY_CHOICES_PAYLOADS: list[dict[str, Any]] = [{},diff --git a/tests/unit/pipelex/plugins/gateway/test_gateway_completions_messages.py b/tests/unit/pipelex/providers/gateway/test_gateway_completions_messages.pysimilarity index 97%rename from tests/unit/pipelex/plugins/gateway/test_gateway_completions_messages.pyrename to tests/unit/pipelex/providers/gateway/test_gateway_completions_messages.pyindex bca8291fe..a117ddd25 100644--- a/tests/unit/pipelex/plugins/gateway/test_gateway_completions_messages.py+++ b/tests/unit/pipelex/providers/gateway/test_gateway_completions_messages.py@@ -11,14 +11,14 @@ from typing import TYPE_CHECKING, Anyimport pytestfrom pipelex.cogt.image.prompt_image import PromptImageDetail-from pipelex.plugins.gateway.gateway_completions_factory import GatewayCompletionsFactory+from pipelex.providers.gateway.gateway_completions_factory import GatewayCompletionsFactoryfrom pipelex.tools.misc.filetype_utils import FileTypefrom pipelex.tools.uri.prepared_file import PreparedFileBase64, PreparedFileHttpUrl, PreparedFileLocalPathif TYPE_CHECKING:from pytest_mock import MockerFixture-_FACTORY_NAMESPACE = "pipelex.plugins.gateway.gateway_completions_factory"+_FACTORY_NAMESPACE = "pipelex.providers.gateway.gateway_completions_factory"_PNG_FILE_TYPE = FileType(extension="png", mime="image/png")_PDF_FILE_TYPE = FileType(extension="pdf", mime="application/pdf")diff --git a/tests/unit/pipelex/plugins/gateway/test_gateway_extract_worker_semantic.py b/tests/unit/pipelex/providers/gateway/test_gateway_extract_worker_semantic.pysimilarity index 92%rename from tests/unit/pipelex/plugins/gateway/test_gateway_extract_worker_semantic.pyrename to tests/unit/pipelex/providers/gateway/test_gateway_extract_worker_semantic.pyindex 86fb413f0..60702aeab 100644--- a/tests/unit/pipelex/plugins/gateway/test_gateway_extract_worker_semantic.py+++ b/tests/unit/pipelex/providers/gateway/test_gateway_extract_worker_semantic.py@@ -13,7 +13,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import ExtractJobFailureError, ExtractModelNotFoundError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.gateway.gateway_extract_worker import GatewayExtractWorker+from pipelex.providers.gateway.gateway_extract_worker import GatewayExtractWorkerdef _make_response(status_code: int) -> httpx.Response:@@ -86,11 +86,11 @@ class TestGatewayExtractWorkerSemantic:client.with_options.return_value.post.side_effect = sdk_excmocker.patch(- "pipelex.plugins.gateway.gateway_extract_worker.GatewayDeck.get_config_id",+ "pipelex.providers.gateway.gateway_extract_worker.GatewayDeck.get_config_id",return_value="linkup-fetch",)mocker.patch(- "pipelex.plugins.gateway.gateway_extract_worker.GatewayExtractProtocol.make_from_model_handle",+ "pipelex.providers.gateway.gateway_extract_worker.GatewayExtractProtocol.make_from_model_handle",return_value=mocker.MagicMock(),)@@ -114,11 +114,11 @@ class TestGatewayExtractWorkerSemantic:client.with_options.return_value.post.side_effect = sdk_excmocker.patch(- "pipelex.plugins.gateway.gateway_extract_worker.GatewayDeck.get_config_id",+ "pipelex.providers.gateway.gateway_extract_worker.GatewayDeck.get_config_id",return_value="linkup-fetch",)mocker.patch(- "pipelex.plugins.gateway.gateway_extract_worker.GatewayExtractProtocol.make_from_model_handle",+ "pipelex.providers.gateway.gateway_extract_worker.GatewayExtractProtocol.make_from_model_handle",return_value=mocker.MagicMock(),)diff --git a/tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_extras.py b/tests/unit/pipelex/providers/gateway/test_gateway_img_gen_extras.pysimilarity index 97%rename from tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_extras.pyrename to tests/unit/pipelex/providers/gateway/test_gateway_img_gen_extras.pyindex 194fb5996..309a46f11 100644--- a/tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_extras.py+++ b/tests/unit/pipelex/providers/gateway/test_gateway_img_gen_extras.py@@ -19,7 +19,7 @@ from pipelex.cogt.image.image_size import ImageSizefrom pipelex.cogt.img_gen.img_gen_job import ImgGenJobfrom pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background, ImgGenJobParams, SizeTierfrom pipelex.cogt.img_gen.img_gen_model_rules import AspectRatioTaxonomy, ImgGenArgTopic-from pipelex.plugins.gateway.gateway_factory import GatewayFactory+from pipelex.providers.gateway.gateway_factory import GatewayFactoryGEMINI_RULES: dict[str, str] = {ImgGenArgTopic.ASPECT_RATIO: AspectRatioTaxonomy.GEMINI_3_FLASH}@@ -44,7 +44,7 @@ def _make_img_gen_job(mocker: MockerFixture, *, aspect_ratio: AspectRatio, size:def disable_gateway_telemetry(mocker: MockerFixture) -> None:telemetry_manager = mocker.MagicMock()telemetry_manager.is_pipelex_gateway_portkey_tracing_enabled.return_value = False- mocker.patch("pipelex.plugins.gateway.gateway_factory.get_telemetry_manager", return_value=telemetry_manager)+ mocker.patch("pipelex.providers.gateway.gateway_factory.get_telemetry_manager", return_value=telemetry_manager)@pytest.mark.usefixtures("disable_gateway_telemetry")diff --git a/tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_edit_routing.py b/tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_edit_routing.pysimilarity index 96%rename from tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_edit_routing.pyrename to tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_edit_routing.pyindex 45f268a9c..4b72b15cc 100644--- a/tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_edit_routing.py+++ b/tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_edit_routing.py@@ -19,7 +19,7 @@ import pytestfrom portkey_ai.api_resources.utils import GenericResponsefrom pipelex.cogt.exceptions import ImgGenParameterError-from pipelex.plugins.gateway.gateway_img_gen_worker import GatewayImgGenWorker+from pipelex.providers.gateway.gateway_img_gen_worker import GatewayImgGenWorkerif TYPE_CHECKING:from pytest_mock import MockerFixture@@ -65,12 +65,12 @@ def _make_img_gen_job(mocker: MockerFixture) -> Any:def _patch_args(mocker: MockerFixture, *, args_dict: dict[str, Any]) -> None:mocker.patch(- "pipelex.plugins.gateway.gateway_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.gateway.gateway_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value=args_dict,)mocker.patch(- "pipelex.plugins.gateway.gateway_img_gen_worker.GatewayDeck.get_config_id",+ "pipelex.providers.gateway.gateway_img_gen_worker.GatewayDeck.get_config_id",return_value="cfg-1",)diff --git a/tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_malformed_body.py b/tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_malformed_body.pysimilarity index 95%rename from tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_malformed_body.pyrename to tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_malformed_body.pyindex 202b4f594..f41c80869 100644--- a/tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_malformed_body.py+++ b/tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_malformed_body.py@@ -17,7 +17,7 @@ from portkey_ai.api_resources.utils import GenericResponsefrom pipelex.cogt.exceptions import ImgGenGenerationError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.gateway.gateway_img_gen_worker import GatewayImgGenWorker+from pipelex.providers.gateway.gateway_img_gen_worker import GatewayImgGenWorkerif TYPE_CHECKING:from pytest_mock import MockerFixture@@ -62,12 +62,12 @@ def _patch_gateway_success(mocker: MockerFixture, worker: GatewayImgGenWorker, r"""Patch the worker so ``.post()`` succeeds and returns the given GenericResponse body."""worker.portkey_client.with_options.return_value.post.return_value = response # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.gateway.gateway_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.gateway.gateway_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)mocker.patch(- "pipelex.plugins.gateway.gateway_img_gen_worker.GatewayDeck.get_config_id",+ "pipelex.providers.gateway.gateway_img_gen_worker.GatewayDeck.get_config_id",return_value="cfg-1",)diff --git a/tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_semantic.py b/tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_semantic.pysimilarity index 91%rename from tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_semantic.pyrename to tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_semantic.pyindex 08de145dd..dd50853e8 100644--- a/tests/unit/pipelex/plugins/gateway/test_gateway_img_gen_worker_semantic.py+++ b/tests/unit/pipelex/providers/gateway/test_gateway_img_gen_worker_semantic.py@@ -13,7 +13,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import ImgGenGenerationError, ImgGenModelNotFoundError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.gateway.gateway_img_gen_worker import GatewayImgGenWorker+from pipelex.providers.gateway.gateway_img_gen_worker import GatewayImgGenWorkerdef _make_response(status_code: int) -> httpx.Response:@@ -79,12 +79,12 @@ class TestGatewayImgGenWorkerSemantic:worker.portkey_client.with_options.return_value.post.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.gateway.gateway_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.gateway.gateway_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)mocker.patch(- "pipelex.plugins.gateway.gateway_img_gen_worker.GatewayDeck.get_config_id",+ "pipelex.providers.gateway.gateway_img_gen_worker.GatewayDeck.get_config_id",return_value="cfg-1",)@@ -105,12 +105,12 @@ class TestGatewayImgGenWorkerSemantic:worker.portkey_client.with_options.return_value.post.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.gateway.gateway_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.gateway.gateway_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)mocker.patch(- "pipelex.plugins.gateway.gateway_img_gen_worker.GatewayDeck.get_config_id",+ "pipelex.providers.gateway.gateway_img_gen_worker.GatewayDeck.get_config_id",return_value="cfg-1",)@@ -138,12 +138,12 @@ class TestGatewayImgGenWorkerSemantic:worker.portkey_client.with_options.return_value.post.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.gateway.gateway_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.gateway.gateway_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)mocker.patch(- "pipelex.plugins.gateway.gateway_img_gen_worker.GatewayDeck.get_config_id",+ "pipelex.providers.gateway.gateway_img_gen_worker.GatewayDeck.get_config_id",return_value="cfg-1",)diff --git a/tests/unit/pipelex/plugins/gateway/test_gateway_quota_detection.py b/tests/unit/pipelex/providers/gateway/test_gateway_quota_detection.pysimilarity index 87%rename from tests/unit/pipelex/plugins/gateway/test_gateway_quota_detection.pyrename to tests/unit/pipelex/providers/gateway/test_gateway_quota_detection.pyindex 2fa8a82b2..47957b6a5 100644--- a/tests/unit/pipelex/plugins/gateway/test_gateway_quota_detection.py+++ b/tests/unit/pipelex/providers/gateway/test_gateway_quota_detection.py@@ -13,10 +13,10 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import ExtractJobFailureError, ImgGenGenerationError, InferenceErrorCategory, SearchJobFailureErrorfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.gateway.gateway_extract_worker import GatewayExtractWorker-from pipelex.plugins.gateway.gateway_img_gen_worker import GatewayImgGenWorker-from pipelex.plugins.gateway.gateway_protocols import GatewayExtractProtocol-from pipelex.plugins.gateway.gateway_search_worker import GatewaySearchWorker+from pipelex.providers.gateway.gateway_extract_worker import GatewayExtractWorker+from pipelex.providers.gateway.gateway_img_gen_worker import GatewayImgGenWorker+from pipelex.providers.gateway.gateway_protocols import GatewayExtractProtocol+from pipelex.providers.gateway.gateway_search_worker import GatewaySearchWorkerdef _make_portkey_exception(exception_type_name: str, status_code: int, message: str) -> portkey_exceptions.APIError:@@ -111,12 +111,12 @@ class TestGatewayQuotaDetection:worker.portkey_client.with_options = mocker.MagicMock(return_value=mock_options) # type: ignore[method-assign]mocker.patch(- "pipelex.plugins.gateway.gateway_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.gateway.gateway_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)mocker.patch(- "pipelex.plugins.gateway.gateway_img_gen_worker.GatewayDeck.get_config_id",+ "pipelex.providers.gateway.gateway_img_gen_worker.GatewayDeck.get_config_id",return_value="test-config",)@@ -141,7 +141,7 @@ class TestGatewayQuotaDetection:worker.portkey_client.with_options = mocker.MagicMock(return_value=mock_options) # type: ignore[method-assign]mocker.patch(- "pipelex.plugins.gateway.gateway_search_worker.GatewayDeck.get_config_id",+ "pipelex.providers.gateway.gateway_search_worker.GatewayDeck.get_config_id",return_value="test-config",)@@ -161,15 +161,15 @@ class TestGatewayQuotaDetection:worker.portkey_client.with_options = mocker.MagicMock(return_value=mock_options) # type: ignore[method-assign]mocker.patch(- "pipelex.plugins.gateway.gateway_extract_worker.GatewayDeck.get_config_id",+ "pipelex.providers.gateway.gateway_extract_worker.GatewayDeck.get_config_id",return_value="test-config",)mocker.patch(- "pipelex.plugins.gateway.gateway_extract_worker.GatewayFactory.make_extras",+ "pipelex.providers.gateway.gateway_extract_worker.GatewayFactory.make_extras",return_value=({}, {"messages": [{"role": "user", "content": "test"}]}),)mocker.patch(- "pipelex.plugins.gateway.gateway_extract_worker.make_base64_url_from_any_uri",+ "pipelex.providers.gateway.gateway_extract_worker.make_base64_url_from_any_uri",new_callable=mocker.AsyncMock,return_value="data:application/pdf;base64,dGVzdA==",)@@ -181,11 +181,11 @@ class TestGatewayQuotaDetection:extract_job.job_params.should_caption_images = Falsemocker.patch(- "pipelex.plugins.gateway.gateway_extract_worker.GatewayExtractProtocol.make_from_model_handle",+ "pipelex.providers.gateway.gateway_extract_worker.GatewayExtractProtocol.make_from_model_handle",return_value=GatewayExtractProtocol.MISTRAL_DOC_AI,)mocker.patch(- "pipelex.plugins.gateway.gateway_extract_worker.get_storage_provider",+ "pipelex.providers.gateway.gateway_extract_worker.get_storage_provider",)with pytest.raises(ExtractJobFailureError) as exc_info:diff --git a/tests/unit/pipelex/plugins/gateway/test_gateway_search_worker_semantic.py b/tests/unit/pipelex/providers/gateway/test_gateway_search_worker_semantic.pysimilarity index 95%rename from tests/unit/pipelex/plugins/gateway/test_gateway_search_worker_semantic.pyrename to tests/unit/pipelex/providers/gateway/test_gateway_search_worker_semantic.pyindex a363db133..037637b6d 100644--- a/tests/unit/pipelex/plugins/gateway/test_gateway_search_worker_semantic.py+++ b/tests/unit/pipelex/providers/gateway/test_gateway_search_worker_semantic.py@@ -13,7 +13,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import InferenceErrorCategory, SearchJobFailureError, SearchModelNotFoundErrorfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.gateway.gateway_search_worker import GatewaySearchWorker+from pipelex.providers.gateway.gateway_search_worker import GatewaySearchWorkerdef _make_response(status_code: int) -> httpx.Response:@@ -86,7 +86,7 @@ class TestGatewaySearchWorkerSemantic:client.with_options.return_value.post.side_effect = sdk_excmocker.patch(- "pipelex.plugins.gateway.gateway_search_worker.GatewayDeck.get_config_id",+ "pipelex.providers.gateway.gateway_search_worker.GatewayDeck.get_config_id",return_value="linkup-sourced-answer",)@@ -110,7 +110,7 @@ class TestGatewaySearchWorkerSemantic:client.with_options.return_value.post.side_effect = sdk_excmocker.patch(- "pipelex.plugins.gateway.gateway_search_worker.GatewayDeck.get_config_id",+ "pipelex.providers.gateway.gateway_search_worker.GatewayDeck.get_config_id",return_value="linkup-sourced-answer",)diff --git a/tests/unit/pipelex/plugins/google/test_data.py b/tests/unit/pipelex/providers/google/test_data.pysimilarity index 100%rename from tests/unit/pipelex/plugins/google/test_data.pyrename to tests/unit/pipelex/providers/google/test_data.pydiff --git a/tests/unit/pipelex/plugins/google/test_extract_google_metadata.py b/tests/unit/pipelex/providers/google/test_extract_google_metadata.pysimilarity index 100%rename from tests/unit/pipelex/plugins/google/test_extract_google_metadata.pyrename to tests/unit/pipelex/providers/google/test_extract_google_metadata.pydiff --git a/tests/unit/pipelex/plugins/google/test_google_factory_tokens.py b/tests/unit/pipelex/providers/google/test_google_factory_tokens.pysimilarity index 96%rename from tests/unit/pipelex/plugins/google/test_google_factory_tokens.pyrename to tests/unit/pipelex/providers/google/test_google_factory_tokens.pyindex d568be58f..35fcf7049 100644--- a/tests/unit/pipelex/plugins/google/test_google_factory_tokens.py+++ b/tests/unit/pipelex/providers/google/test_google_factory_tokens.py@@ -1,7 +1,7 @@from pytest_mock import MockerFixturefrom pipelex.cogt.usage.token_category import TokenCategory-from pipelex.plugins.google.google_factory import GoogleFactory+from pipelex.providers.google.google_factory import GoogleFactoryclass TestGoogleFactoryTokens:diff --git a/tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py b/tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.pysimilarity index 97%rename from tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.pyrename to tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.pyindex 1faaf4f7c..848e34bf3 100644--- a/tests/unit/pipelex/plugins/google/test_google_img_gen_worker_error_handling.py+++ b/tests/unit/pipelex/providers/google/test_google_img_gen_worker_error_handling.py@@ -17,10 +17,10 @@ if TYPE_CHECKING:from pytest_mock import MockerFixturefrom pipelex.cogt.exceptions import ImgGenGenerationError, ImgGenModelNotFoundError, InferenceErrorCategory+from pipelex.cogt.img_gen.img_gen_gemini_mapping import ResolvedGeminiImageConfigfrom pipelex.cogt.img_gen.img_gen_model_rules import AspectRatioTaxonomy, ImgGenArgTopicfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.google.google_img_gen_factory import ResolvedGoogleImageConfig-from pipelex.plugins.google.google_img_gen_worker import GoogleImgGenWorker+from pipelex.providers.google.google_img_gen_worker import GoogleImgGenWorkerdef _make_google_client_error(code: int, message: str, status: str = "ERROR") -> genai_errors.ClientError:@@ -47,8 +47,8 @@ def _make_worker(mocker: MockerFixture) -> GoogleImgGenWorker:worker.genai_async_client = mock_async_clientmocker.patch(- "pipelex.plugins.google.google_img_gen_worker.GoogleImgGenFactory.resolve_image_config",- return_value=ResolvedGoogleImageConfig(aspect_ratio="1:1", image_size=None, width=1024, height=1024),+ "pipelex.providers.google.google_img_gen_worker.ImgGenGeminiMapping.resolve_image_config",+ return_value=ResolvedGeminiImageConfig(aspect_ratio="1:1", image_size=None, width=1024, height=1024),)return workerdiff --git a/tests/unit/pipelex/plugins/google/test_google_img_gen_worker_payload.py b/tests/unit/pipelex/providers/google/test_google_img_gen_worker_payload.pysimilarity index 98%rename from tests/unit/pipelex/plugins/google/test_google_img_gen_worker_payload.pyrename to tests/unit/pipelex/providers/google/test_google_img_gen_worker_payload.pyindex 1bc0b9181..0a8833ce5 100644--- a/tests/unit/pipelex/plugins/google/test_google_img_gen_worker_payload.py+++ b/tests/unit/pipelex/providers/google/test_google_img_gen_worker_payload.py@@ -18,7 +18,7 @@ if TYPE_CHECKING:from pipelex.cogt.image.image_size import ImageSizefrom pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, SizeTierfrom pipelex.cogt.img_gen.img_gen_model_rules import AspectRatioTaxonomy, ImgGenArgTopic-from pipelex.plugins.google.google_img_gen_worker import GoogleImgGenWorker+from pipelex.providers.google.google_img_gen_worker import GoogleImgGenWorkerdef _make_response(mocker: MockerFixture) -> Any:diff --git a/tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py b/tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.pysimilarity index 98%rename from tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.pyrename to tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.pyindex fe92a9234..8cbf1c6cf 100644--- a/tests/unit/pipelex/plugins/google/test_google_llm_worker_object_error_handling.py+++ b/tests/unit/pipelex/providers/google/test_google_llm_worker_object_error_handling.py@@ -20,7 +20,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import InferenceErrorCategory, LLMCompletionError, LLMModelNotFoundErrorfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.google.google_llm_worker import GoogleLLMWorker+from pipelex.providers.google.google_llm_worker import GoogleLLMWorkerfrom tests.helpers.instructor_test_utils import DummySchema, make_llm_job, wrap_in_instructor_retry@@ -67,7 +67,7 @@ def _make_worker(mocker: MockerFixture) -> GoogleLLMWorker:worker.instructor_for_objects = instructor_clientmocker.patch(- "pipelex.plugins.google.google_llm_worker.GoogleFactory.prepare_user_contents",+ "pipelex.providers.google.google_llm_worker.GoogleFactory.prepare_user_contents",new_callable=mocker.AsyncMock,return_value=[],)@@ -258,7 +258,7 @@ class TestGoogleLLMWorkerObjectErrorHandling:user_content = genai_types.Content(role="user", parts=[genai_types.Part.from_text(text="hi")])mocker.patch(- "pipelex.plugins.google.google_llm_worker.GoogleFactory.prepare_user_contents",+ "pipelex.providers.google.google_llm_worker.GoogleFactory.prepare_user_contents",new_callable=mocker.AsyncMock,return_value=user_content,)diff --git a/tests/unit/pipelex/plugins/google/test_google_reasoning.py b/tests/unit/pipelex/providers/google/test_google_reasoning.pysimilarity index 95%rename from tests/unit/pipelex/plugins/google/test_google_reasoning.pyrename to tests/unit/pipelex/providers/google/test_google_reasoning.pyindex 21fd567ff..e99b76ad9 100644--- a/tests/unit/pipelex/plugins/google/test_google_reasoning.py+++ b/tests/unit/pipelex/providers/google/test_google_reasoning.py@@ -5,8 +5,8 @@ from pytest_mock import MockerFixturefrom pipelex.cogt.exceptions import LLMCapabilityErrorfrom pipelex.cogt.llm.llm_job_components import LLMJobParams, ReasoningEffortfrom pipelex.cogt.llm.thinking_mode import ThinkingMode-from pipelex.plugins.google.google_config import GoogleConfig-from pipelex.plugins.google.google_llm_worker import GoogleLLMWorker+from pipelex.providers.google.google_config import GoogleConfig+from pipelex.providers.google.google_llm_worker import GoogleLLMWorker_GOOGLE_LEVEL_MAP: dict[str, str] = {"none": "disabled",@@ -34,7 +34,7 @@ def _mock_config_for_adaptive(mocker: MockerFixture) -> None:"""Mock get_config() to return a google_config with the effort_to_level_map."""google_config = GoogleConfig(effort_to_level_map=_GOOGLE_LEVEL_MAP)mocker.patch(- "pipelex.plugins.google.google_llm_worker.get_config",+ "pipelex.providers.google.google_llm_worker.get_config",return_value=mocker.MagicMock(cogt=mocker.MagicMock(llm_config=mocker.MagicMock(@@ -69,7 +69,7 @@ class TestGoogleReasoning:worker = _make_worker(mocker, thinking_mode=ThinkingMode.MANUAL)google_config = GoogleConfig(effort_to_level_map=_GOOGLE_LEVEL_MAP)mocker.patch(- "pipelex.plugins.google.google_llm_worker.get_config",+ "pipelex.providers.google.google_llm_worker.get_config",return_value=mocker.MagicMock(cogt=mocker.MagicMock(llm_config=mocker.MagicMock(@@ -114,7 +114,7 @@ class TestGoogleReasoning:worker = _make_worker(mocker, thinking_mode=ThinkingMode.MANUAL)google_config = GoogleConfig(effort_to_level_map=_GOOGLE_LEVEL_MAP)mocker.patch(- "pipelex.plugins.google.google_llm_worker.get_config",+ "pipelex.providers.google.google_llm_worker.get_config",return_value=mocker.MagicMock(cogt=mocker.MagicMock(llm_config=mocker.MagicMock(@@ -187,7 +187,7 @@ class TestGoogleReasoning:worker = _make_worker(mocker, thinking_mode=ThinkingMode.MANUAL)google_config = GoogleConfig(effort_to_level_map=_GOOGLE_LEVEL_MAP)mocker.patch(- "pipelex.plugins.google.google_llm_worker.get_config",+ "pipelex.providers.google.google_llm_worker.get_config",return_value=mocker.MagicMock(cogt=mocker.MagicMock(llm_config=mocker.MagicMock(diff --git a/tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py b/tests/unit/pipelex/providers/google/test_google_worker_error_handling.pysimilarity index 95%rename from tests/unit/pipelex/plugins/google/test_google_worker_error_handling.pyrename to tests/unit/pipelex/providers/google/test_google_worker_error_handling.pyindex f37c7a82d..4f4e3992e 100644--- a/tests/unit/pipelex/plugins/google/test_google_worker_error_handling.py+++ b/tests/unit/pipelex/providers/google/test_google_worker_error_handling.py@@ -19,9 +19,9 @@ from pipelex.cogt.exceptions import ()from pipelex.cogt.img_gen.img_gen_model_rules import AspectRatioTaxonomy, ImgGenArgTopicfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.google.google_img_gen_worker import GoogleImgGenWorker-from pipelex.plugins.google.google_llm_worker import GoogleLLMWorker-from tests.unit.pipelex.plugins.google.test_data import GoogleErrorHandlingTestData+from pipelex.providers.google.google_img_gen_worker import GoogleImgGenWorker+from pipelex.providers.google.google_llm_worker import GoogleLLMWorker+from tests.unit.pipelex.providers.google.test_data import GoogleErrorHandlingTestDatadef _make_google_client_error(code: int, message: str) -> genai_errors.ClientError:@@ -52,7 +52,7 @@ def _make_google_llm_worker(mocker: MockerFixture) -> GoogleLLMWorker:# Mock the factory so it doesn't try to parse mock prompt objects as real Pydantic typesmocker.patch(- "pipelex.plugins.google.google_llm_worker.GoogleFactory.prepare_user_contents",+ "pipelex.providers.google.google_llm_worker.GoogleFactory.prepare_user_contents",new_callable=mocker.AsyncMock,return_value=[],)@@ -76,11 +76,11 @@ def _make_google_img_gen_worker(mocker: MockerFixture) -> GoogleImgGenWorker:# Mock the factory static methods so they don't fail before the API callmocker.patch(- "pipelex.plugins.google.google_img_gen_worker.GoogleImgGenFactory.aspect_ratio_literal",+ "pipelex.providers.google.google_img_gen_worker.ImgGenGeminiMapping.aspect_ratio_literal",return_value="1:1",)mocker.patch(- "pipelex.plugins.google.google_img_gen_worker.GoogleImgGenFactory.dimensions_for_aspect_ratio_and_size",+ "pipelex.providers.google.google_img_gen_worker.ImgGenGeminiMapping.dimensions_for_aspect_ratio_and_size",return_value=(1024, 1024),)diff --git a/tests/unit/pipelex/plugins/huggingface/test_data.py b/tests/unit/pipelex/providers/huggingface/test_data.pysimilarity index 100%rename from tests/unit/pipelex/plugins/huggingface/test_data.pyrename to tests/unit/pipelex/providers/huggingface/test_data.pydiff --git a/tests/unit/pipelex/plugins/huggingface/test_extract_huggingface_metadata.py b/tests/unit/pipelex/providers/huggingface/test_extract_huggingface_metadata.pysimilarity index 100%rename from tests/unit/pipelex/plugins/huggingface/test_extract_huggingface_metadata.pyrename to tests/unit/pipelex/providers/huggingface/test_extract_huggingface_metadata.pydiff --git a/tests/unit/pipelex/plugins/huggingface/test_hf_worker_error_handling.py b/tests/unit/pipelex/providers/huggingface/test_hf_worker_error_handling.pysimilarity index 92%rename from tests/unit/pipelex/plugins/huggingface/test_hf_worker_error_handling.pyrename to tests/unit/pipelex/providers/huggingface/test_hf_worker_error_handling.pyindex 3e3e72f04..4aa947030 100644--- a/tests/unit/pipelex/plugins/huggingface/test_hf_worker_error_handling.py+++ b/tests/unit/pipelex/providers/huggingface/test_hf_worker_error_handling.py@@ -10,8 +10,8 @@ from huggingface_hub.errors import HfHubHTTPError, InferenceTimeoutErrorfrom pipelex.cogt.exceptions import ImgGenGenerationError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.huggingface.huggingface_img_gen_worker import HuggingFaceImgGenWorker-from tests.unit.pipelex.plugins.huggingface.test_data import HuggingFaceErrorHandlingTestData+from pipelex.providers.huggingface.huggingface_img_gen_worker import HuggingFaceImgGenWorker+from tests.unit.pipelex.providers.huggingface.test_data import HuggingFaceErrorHandlingTestDataif TYPE_CHECKING:from pytest_mock import MockerFixture@@ -84,7 +84,7 @@ class TestHuggingFaceWorkerErrorHandling:worker.hf_async_client.text_to_image.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.huggingface.huggingface_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.huggingface.huggingface_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)@@ -114,7 +114,7 @@ class TestHuggingFaceWorkerErrorHandling:worker.hf_async_client.text_to_image.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.huggingface.huggingface_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.huggingface.huggingface_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)@@ -134,7 +134,7 @@ class TestHuggingFaceWorkerErrorHandling:worker.hf_async_client.text_to_image.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.huggingface.huggingface_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.huggingface.huggingface_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)diff --git a/tests/unit/pipelex/plugins/huggingface/test_huggingface_img_gen_worker_semantic.py b/tests/unit/pipelex/providers/huggingface/test_huggingface_img_gen_worker_semantic.pysimilarity index 93%rename from tests/unit/pipelex/plugins/huggingface/test_huggingface_img_gen_worker_semantic.pyrename to tests/unit/pipelex/providers/huggingface/test_huggingface_img_gen_worker_semantic.pyindex da1457e84..ecc3324c7 100644--- a/tests/unit/pipelex/plugins/huggingface/test_huggingface_img_gen_worker_semantic.py+++ b/tests/unit/pipelex/providers/huggingface/test_huggingface_img_gen_worker_semantic.py@@ -13,7 +13,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import ImgGenGenerationError, ImgGenModelNotFoundError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.huggingface.huggingface_img_gen_worker import HuggingFaceImgGenWorker+from pipelex.providers.huggingface.huggingface_img_gen_worker import HuggingFaceImgGenWorkerdef _make_hf_http_error(status_code: int, message: str = "error") -> HfHubHTTPError:@@ -77,7 +77,7 @@ class TestHuggingFaceImgGenWorkerSemantic:worker.hf_async_client.text_to_image.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.huggingface.huggingface_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.huggingface.huggingface_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)@@ -99,7 +99,7 @@ class TestHuggingFaceImgGenWorkerSemantic:worker.hf_async_client.text_to_image.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.huggingface.huggingface_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.huggingface.huggingface_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)@@ -120,7 +120,7 @@ class TestHuggingFaceImgGenWorkerSemantic:worker.hf_async_client.text_to_image.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.huggingface.huggingface_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.huggingface.huggingface_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test", "model": "test-model-id"},)diff --git a/tests/unit/pipelex/plugins/linkup/test_data.py b/tests/unit/pipelex/providers/linkup/test_data.pysimilarity index 100%rename from tests/unit/pipelex/plugins/linkup/test_data.pyrename to tests/unit/pipelex/providers/linkup/test_data.pydiff --git a/tests/unit/pipelex/plugins/linkup/test_linkup_extract_worker_semantic.py b/tests/unit/pipelex/providers/linkup/test_linkup_extract_worker_semantic.pysimilarity index 98%rename from tests/unit/pipelex/plugins/linkup/test_linkup_extract_worker_semantic.pyrename to tests/unit/pipelex/providers/linkup/test_linkup_extract_worker_semantic.pyindex cec881745..bc5730c44 100644--- a/tests/unit/pipelex/plugins/linkup/test_linkup_extract_worker_semantic.py+++ b/tests/unit/pipelex/providers/linkup/test_linkup_extract_worker_semantic.py@@ -23,7 +23,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import ExtractJobFailureError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.linkup.linkup_extract_worker import LinkupExtractWorker+from pipelex.providers.linkup.linkup_extract_worker import LinkupExtractWorkerdef _make_worker(mocker: MockerFixture) -> LinkupExtractWorker:diff --git a/tests/unit/pipelex/plugins/test_linkup_plugin_guard.py b/tests/unit/pipelex/providers/linkup/test_linkup_plugin_guard.pysimilarity index 96%rename from tests/unit/pipelex/plugins/test_linkup_plugin_guard.pyrename to tests/unit/pipelex/providers/linkup/test_linkup_plugin_guard.pyindex 497cab106..dfc3af360 100644--- a/tests/unit/pipelex/plugins/test_linkup_plugin_guard.py+++ b/tests/unit/pipelex/providers/linkup/test_linkup_plugin_guard.py@@ -6,8 +6,8 @@ from typing import TYPE_CHECKING, castimport pytestfrom pipelex.plugins.inference_backend_registry import InferenceFamily-from pipelex.plugins.linkup.linkup_plugin import LinkupPluginfrom pipelex.plugins.registrar import PluginRegistrar+from pipelex.providers.linkup.linkup_plugin import LinkupPluginfrom pipelex.system.exceptions import MissingDependencyErrorif TYPE_CHECKING:diff --git a/tests/unit/pipelex/plugins/linkup/test_linkup_search_worker_semantic.py b/tests/unit/pipelex/providers/linkup/test_linkup_search_worker_semantic.pysimilarity index 98%rename from tests/unit/pipelex/plugins/linkup/test_linkup_search_worker_semantic.pyrename to tests/unit/pipelex/providers/linkup/test_linkup_search_worker_semantic.pyindex 2f5f0c860..5ae1d2b26 100644--- a/tests/unit/pipelex/plugins/linkup/test_linkup_search_worker_semantic.py+++ b/tests/unit/pipelex/providers/linkup/test_linkup_search_worker_semantic.py@@ -20,7 +20,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import InferenceErrorCategory, SearchJobFailureErrorfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.linkup.linkup_search_worker import LinkupSearchWorker+from pipelex.providers.linkup.linkup_search_worker import LinkupSearchWorkerdef _make_worker(mocker: MockerFixture) -> LinkupSearchWorker:diff --git a/tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py b/tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.pysimilarity index 97%rename from tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.pyrename to tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.pyindex edb8848b0..48323dbad 100644--- a/tests/unit/pipelex/plugins/linkup/test_linkup_worker_error_handling.py+++ b/tests/unit/pipelex/providers/linkup/test_linkup_worker_error_handling.py@@ -12,9 +12,9 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import ExtractJobFailureError, InferenceErrorCategory, SearchJobFailureErrorfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.linkup.linkup_extract_worker import LinkupExtractWorker-from pipelex.plugins.linkup.linkup_search_worker import LinkupSearchWorker-from tests.unit.pipelex.plugins.linkup.test_data import LinkupExtractErrorHandlingTestData, LinkupSearchErrorHandlingTestData+from pipelex.providers.linkup.linkup_extract_worker import LinkupExtractWorker+from pipelex.providers.linkup.linkup_search_worker import LinkupSearchWorker+from tests.unit.pipelex.providers.linkup.test_data import LinkupExtractErrorHandlingTestData, LinkupSearchErrorHandlingTestDatadef _make_linkup_extract_worker(mocker: MockerFixture) -> LinkupExtractWorker:diff --git a/tests/unit/pipelex/plugins/mistral/test_data.py b/tests/unit/pipelex/providers/mistral/test_data.pysimilarity index 100%rename from tests/unit/pipelex/plugins/mistral/test_data.pyrename to tests/unit/pipelex/providers/mistral/test_data.pydiff --git a/tests/unit/pipelex/plugins/mistral/test_extract_mistral_metadata.py b/tests/unit/pipelex/providers/mistral/test_extract_mistral_metadata.pysimilarity index 100%rename from tests/unit/pipelex/plugins/mistral/test_extract_mistral_metadata.pyrename to tests/unit/pipelex/providers/mistral/test_extract_mistral_metadata.pydiff --git a/tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py b/tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.pysimilarity index 94%rename from tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.pyrename to tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.pyindex 7f62906b7..f6fde4030 100644--- a/tests/unit/pipelex/plugins/mistral/test_mistral_extract_worker_semantic.py+++ b/tests/unit/pipelex/providers/mistral/test_mistral_extract_worker_semantic.py@@ -13,7 +13,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import ExtractJobFailureError, ExtractModelNotFoundError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.mistral.mistral_extract_worker import MistralExtractWorker+from pipelex.providers.mistral.mistral_extract_worker import MistralExtractWorkerdef _make_mistral_error(status_code: int, message: str) -> MistralError:@@ -71,7 +71,7 @@ class TestMistralExtractWorkerSemantic:cast_client.ocr.process_async.side_effect = sdk_excmocker.patch(- "pipelex.plugins.mistral.mistral_extract_worker.MistralFactory.make_mistral_image_url_chunk_from_uri",+ "pipelex.providers.mistral.mistral_extract_worker.MistralFactory.make_mistral_image_url_chunk_from_uri",return_value={"type": "image_url", "image_url": "https://example.com/test.png"},)@@ -112,7 +112,7 @@ class TestMistralExtractWorkerSemantic:cast_client.ocr.process_async.side_effect = sdk_excmocker.patch(- "pipelex.plugins.mistral.mistral_extract_worker.MistralFactory.make_mistral_image_url_chunk_from_uri",+ "pipelex.providers.mistral.mistral_extract_worker.MistralFactory.make_mistral_image_url_chunk_from_uri",return_value={"type": "image_url", "image_url": "https://example.com/test.png"},)@@ -143,7 +143,7 @@ class TestMistralExtractWorkerSemantic:cast_client.ocr.process_async.side_effect = sdk_excmocker.patch(- "pipelex.plugins.mistral.mistral_extract_worker.MistralFactory.make_mistral_document_url_chunk_from_uri",+ "pipelex.providers.mistral.mistral_extract_worker.MistralFactory.make_mistral_document_url_chunk_from_uri",return_value={"type": "document_url", "document_url": "https://example.com/doc.pdf"},)@@ -175,7 +175,7 @@ class TestMistralExtractWorkerSemantic:cast_client.ocr.process_async.side_effect = sdk_excmocker.patch(- "pipelex.plugins.mistral.mistral_extract_worker.MistralFactory.make_mistral_image_url_chunk_from_uri",+ "pipelex.providers.mistral.mistral_extract_worker.MistralFactory.make_mistral_image_url_chunk_from_uri",return_value={"type": "image_url", "image_url": "https://example.com/test.png"},)diff --git a/tests/unit/pipelex/plugins/mistral/test_mistral_factory_document_prep.py b/tests/unit/pipelex/providers/mistral/test_mistral_factory_document_prep.pysimilarity index 93%rename from tests/unit/pipelex/plugins/mistral/test_mistral_factory_document_prep.pyrename to tests/unit/pipelex/providers/mistral/test_mistral_factory_document_prep.pyindex ffd43dda0..78c0dc332 100644--- a/tests/unit/pipelex/plugins/mistral/test_mistral_factory_document_prep.py+++ b/tests/unit/pipelex/providers/mistral/test_mistral_factory_document_prep.py@@ -6,7 +6,7 @@ from typing import TYPE_CHECKING, Any, castimport pytest-from pipelex.plugins.mistral.mistral_factory import MistralFactory+from pipelex.providers.mistral.mistral_factory import MistralFactoryfrom pipelex.tools.misc.filetype_utils import FileTypefrom pipelex.tools.uri.prepared_file import PreparedFileBase64, PreparedFileHttpUrl, PreparedFileLocalPath@@ -60,7 +60,7 @@ class TestMistralFactoryDocumentPrep:) -> None:"""HTTP URLs are kept as-is and base64 files become data URLs; local paths are not requested from preparation."""prepare_mock = mocker.patch(- "pipelex.plugins.mistral.mistral_factory.prepare_file_from_uri",+ "pipelex.providers.mistral.mistral_factory.prepare_file_from_uri",return_value=prepared,)@@ -72,7 +72,7 @@ class TestMistralFactoryDocumentPrep:async def test_make_mistral_image_url_chunk_local_path_raises(self, mocker: MockerFixture) -> None:"""An unexpected PreparedFileLocalPath (despite keep_local_path=False) raises a TypeError."""mocker.patch(- "pipelex.plugins.mistral.mistral_factory.prepare_file_from_uri",+ "pipelex.providers.mistral.mistral_factory.prepare_file_from_uri",return_value=PreparedFileLocalPath(path="/fake/dir/pic.png"),)@@ -84,7 +84,7 @@ class TestMistralFactoryDocumentPrep:async def test_make_mistral_document_url_chunk_http_kept(self, mocker: MockerFixture) -> None:"""An HTTP document URL is kept as-is and the client is never used."""prepare_mock = mocker.patch(- "pipelex.plugins.mistral.mistral_factory.prepare_file_from_uri",+ "pipelex.providers.mistral.mistral_factory.prepare_file_from_uri",return_value=PreparedFileHttpUrl(url="https://example.com/file.pdf"),)mock_client = _make_mistral_client(mocker)@@ -105,7 +105,7 @@ class TestMistralFactoryDocumentPrep:file_content = b"%PDF-1.7 fake pdf bytes"local_file.write_bytes(file_content)mocker.patch(- "pipelex.plugins.mistral.mistral_factory.prepare_file_from_uri",+ "pipelex.providers.mistral.mistral_factory.prepare_file_from_uri",return_value=PreparedFileLocalPath(path=str(local_file)),)mock_client = _make_mistral_client(mocker, uploaded_file_id="file-xyz", signed_url="https://signed.example.com/scan.pdf")@@ -127,7 +127,7 @@ class TestMistralFactoryDocumentPrep:first_pass = PreparedFileBase64(base64_data="Rmly", file_type=PDF_FILE_TYPE)second_pass = PreparedFileBase64(base64_data="U2Vj", file_type=PDF_FILE_TYPE)prepare_mock = mocker.patch(- "pipelex.plugins.mistral.mistral_factory.prepare_file_from_uri",+ "pipelex.providers.mistral.mistral_factory.prepare_file_from_uri",side_effect=[first_pass, second_pass],)mock_client = _make_mistral_client(mocker)@@ -145,7 +145,7 @@ class TestMistralFactoryDocumentPrep:async def test_make_mistral_document_url_chunk_base64_second_pass_failure_raises(self, mocker: MockerFixture) -> None:"""If the second preparation pass does not yield a base64 file, a TypeError is raised."""mocker.patch(- "pipelex.plugins.mistral.mistral_factory.prepare_file_from_uri",+ "pipelex.providers.mistral.mistral_factory.prepare_file_from_uri",side_effect=[PreparedFileBase64(base64_data="Rmly", file_type=PDF_FILE_TYPE),PreparedFileHttpUrl(url="https://example.com/file.pdf"),diff --git a/tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py b/tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.pysimilarity index 98%rename from tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.pyrename to tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.pyindex 522a91916..78d6bdc4c 100644--- a/tests/unit/pipelex/plugins/mistral/test_mistral_factory_extract_output.py+++ b/tests/unit/pipelex/providers/mistral/test_mistral_factory_extract_output.py@@ -7,8 +7,8 @@ import base64import pytestfrom mistralai.models import OCRImageObject, OCRPageObject, OCRResponse, OCRUsageInfo-from pipelex.plugins.mistral.mistral_exceptions import MistralExtractResponseError-from pipelex.plugins.mistral.mistral_factory import MistralFactory+from pipelex.providers.mistral.mistral_exceptions import MistralExtractResponseError+from pipelex.providers.mistral.mistral_factory import MistralFactoryJPEG_BODY = b"\xff\xd8\xff\xe0\x00\x10JFIF-jpeg-payload-bytes"PNG_BODY = b"\x89PNG\r\n\x1a\npng-payload-bytes"diff --git a/tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py b/tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.pysimilarity index 95%rename from tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.pyrename to tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.pyindex ad6e9cabd..4421b82dc 100644--- a/tests/unit/pipelex/plugins/mistral/test_mistral_factory_messages.py+++ b/tests/unit/pipelex/providers/mistral/test_mistral_factory_messages.py@@ -9,7 +9,7 @@ from mistralai.models import DocumentURLChunk, ImageURLChunk, SystemMessage, Texfrom pipelex.cogt.image.prompt_image import PromptImageDetailfrom pipelex.cogt.usage.token_category import TokenCategory-from pipelex.plugins.mistral.mistral_factory import MistralFactory+from pipelex.providers.mistral.mistral_factory import MistralFactoryfrom pipelex.tools.misc.filetype_utils import FileTypefrom pipelex.tools.uri.prepared_file import PreparedFileBase64, PreparedFileHttpUrl, PreparedFileLocalPath@@ -105,7 +105,7 @@ class TestMistralFactoryMessages:return prepared_by_image_id[id(prompt_image)]mocker.patch(- "pipelex.plugins.mistral.mistral_factory.prepare_prompt_image",+ "pipelex.providers.mistral.mistral_factory.prepare_prompt_image",side_effect=fake_prepare_prompt_image,)@@ -142,7 +142,7 @@ class TestMistralFactoryMessages:return [prepared_by_document_id[id(prompt_documents[0])]]mocker.patch(- "pipelex.plugins.mistral.mistral_factory.prep_prompt_documents",+ "pipelex.providers.mistral.mistral_factory.prep_prompt_documents",side_effect=fake_prep_prompt_documents,)@@ -180,7 +180,7 @@ class TestMistralFactoryMessages:) -> None:"""Base64 files become data URLs and HTTP URLs are passed through; HTTP URLs are enabled at preparation."""prepare_mock = mocker.patch(- "pipelex.plugins.mistral.mistral_factory.prepare_prompt_image",+ "pipelex.providers.mistral.mistral_factory.prepare_prompt_image",return_value=prepared,)prompt_image = mocker.MagicMock(name="prompt_image")@@ -194,7 +194,7 @@ class TestMistralFactoryMessages:async def test_make_mistral_image_url_local_path_raises(self, mocker: MockerFixture) -> None:"""A PreparedFileLocalPath is rejected with a TypeError for images."""mocker.patch(- "pipelex.plugins.mistral.mistral_factory.prepare_prompt_image",+ "pipelex.providers.mistral.mistral_factory.prepare_prompt_image",return_value=PreparedFileLocalPath(path="/fake/dir/pic.png"),)@@ -219,7 +219,7 @@ class TestMistralFactoryMessages:) -> None:"""Base64 documents become data URLs and HTTP URLs are passed through; HTTP URLs are enabled at preparation."""prep_mock = mocker.patch(- "pipelex.plugins.mistral.mistral_factory.prep_prompt_documents",+ "pipelex.providers.mistral.mistral_factory.prep_prompt_documents",return_value=[prepared],)prompt_document = mocker.MagicMock(name="prompt_document")@@ -233,7 +233,7 @@ class TestMistralFactoryMessages:async def test_make_mistral_document_url_local_path_raises(self, mocker: MockerFixture) -> None:"""A PreparedFileLocalPath is rejected with a TypeError for documents."""mocker.patch(- "pipelex.plugins.mistral.mistral_factory.prep_prompt_documents",+ "pipelex.providers.mistral.mistral_factory.prep_prompt_documents",return_value=[PreparedFileLocalPath(path="/fake/dir/file.pdf")],)@@ -259,7 +259,7 @@ class TestMistralFactoryMessages:) -> None:"""OpenAI-typed messages put the system message FIRST, then a user message with text and image parts; a missing image_detail maps to AUTO."""prep_mock = mocker.patch(- "pipelex.plugins.mistral.mistral_factory.prep_prompt_images",+ "pipelex.providers.mistral.mistral_factory.prep_prompt_images",return_value=[PreparedFileBase64(base64_data="QUJD", file_type=PNG_FILE_TYPE),PreparedFileHttpUrl(url="https://example.com/pic.png"),@@ -297,7 +297,7 @@ class TestMistralFactoryMessages:async def test_make_simple_messages_openai_typed_local_path_raises(self, mocker: MockerFixture) -> None:"""A PreparedFileLocalPath image is rejected with a TypeError on the OpenAI-typed path."""mocker.patch(- "pipelex.plugins.mistral.mistral_factory.prep_prompt_images",+ "pipelex.providers.mistral.mistral_factory.prep_prompt_images",return_value=[PreparedFileLocalPath(path="/fake/dir/pic.png")],)llm_job = _make_llm_job(mocker, user_images=[mocker.MagicMock(name="image_one")])diff --git a/tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py b/tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.pysimilarity index 99%rename from tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.pyrename to tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.pyindex 543e6b82b..a74a711d3 100644--- a/tests/unit/pipelex/plugins/mistral/test_mistral_llm_worker_object_error_handling.py+++ b/tests/unit/pipelex/providers/mistral/test_mistral_llm_worker_object_error_handling.py@@ -19,7 +19,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import InferenceErrorCategory, LLMCompletionError, LLMModelNotFoundErrorfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.mistral.mistral_llm_worker import MistralLLMWorker+from pipelex.providers.mistral.mistral_llm_worker import MistralLLMWorkerfrom tests.helpers.instructor_test_utils import DummySchema, make_llm_job, wrap_in_instructor_retrydiff --git a/tests/unit/pipelex/plugins/mistral/test_mistral_reasoning.py b/tests/unit/pipelex/providers/mistral/test_mistral_reasoning.pysimilarity index 95%rename from tests/unit/pipelex/plugins/mistral/test_mistral_reasoning.pyrename to tests/unit/pipelex/providers/mistral/test_mistral_reasoning.pyindex ad973c9d3..52ea1dc33 100644--- a/tests/unit/pipelex/plugins/mistral/test_mistral_reasoning.py+++ b/tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py@@ -4,7 +4,7 @@ from pytest_mock import MockerFixturefrom pipelex.cogt.exceptions import LLMCapabilityErrorfrom pipelex.cogt.llm.llm_job_components import LLMJobParams, ReasoningEffortfrom pipelex.cogt.llm.thinking_mode import ThinkingMode-from pipelex.plugins.mistral.mistral_llm_worker import MistralLLMWorker+from pipelex.providers.mistral.mistral_llm_worker import MistralLLMWorker_MISTRAL_LEVEL_MAP: dict[str, str] = {"none": "disabled",@@ -29,11 +29,11 @@ def _make_worker(mocker: MockerFixture, thinking_mode: ThinkingMode) -> MistralLdef _mock_config(mocker: MockerFixture) -> None:"""Mock get_config() to return a mistral_config with the effort_to_level_map."""- from pipelex.plugins.mistral.mistral_config import MistralConfig # noqa: PLC0415+ from pipelex.providers.mistral.mistral_config import MistralConfig # noqa: PLC0415mistral_config = MistralConfig(effort_to_level_map=_MISTRAL_LEVEL_MAP)mocker.patch(- "pipelex.plugins.mistral.mistral_llm_worker.get_config",+ "pipelex.providers.mistral.mistral_llm_worker.get_config",return_value=mocker.MagicMock(cogt=mocker.MagicMock(llm_config=mocker.MagicMock(diff --git a/tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py b/tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.pysimilarity index 95%rename from tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.pyrename to tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.pyindex 2baededb8..d927a2a02 100644--- a/tests/unit/pipelex/plugins/mistral/test_mistral_worker_error_handling.py+++ b/tests/unit/pipelex/providers/mistral/test_mistral_worker_error_handling.py@@ -19,9 +19,9 @@ from pipelex.cogt.exceptions import (LLMModelNotFoundError,)from pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.mistral.mistral_extract_worker import MistralExtractWorker-from pipelex.plugins.mistral.mistral_llm_worker import MistralLLMWorker-from tests.unit.pipelex.plugins.mistral.test_data import (+from pipelex.providers.mistral.mistral_extract_worker import MistralExtractWorker+from pipelex.providers.mistral.mistral_llm_worker import MistralLLMWorker+from tests.unit.pipelex.providers.mistral.test_data import (MistralExtractErrorHandlingTestData,MistralLLMErrorHandlingTestData,)@@ -174,7 +174,7 @@ class TestMistralWorkerErrorHandling:# Patch the static factory method that runs before the API callmocker.patch(- "pipelex.plugins.mistral.mistral_extract_worker.MistralFactory.make_mistral_image_url_chunk_from_uri",+ "pipelex.providers.mistral.mistral_extract_worker.MistralFactory.make_mistral_image_url_chunk_from_uri",return_value={"type": "image_url", "image_url": "https://example.com/test.png"},)@@ -194,7 +194,7 @@ class TestMistralWorkerErrorHandling:worker.mistral_client.ocr.process_async.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.mistral.mistral_extract_worker.MistralFactory.make_mistral_image_url_chunk_from_uri",+ "pipelex.providers.mistral.mistral_extract_worker.MistralFactory.make_mistral_image_url_chunk_from_uri",return_value={"type": "image_url", "image_url": "https://example.com/test.png"},)@@ -242,7 +242,7 @@ class TestMistralWorkerErrorHandling:worker.mistral_client.ocr.process_async.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.mistral.mistral_extract_worker.MistralFactory.make_mistral_image_url_chunk_from_uri",+ "pipelex.providers.mistral.mistral_extract_worker.MistralFactory.make_mistral_image_url_chunk_from_uri",return_value={"type": "image_url", "image_url": "https://example.com/test.png"},)diff --git a/tests/unit/pipelex/plugins/openai/test_data.py b/tests/unit/pipelex/providers/openai/test_data.pysimilarity index 100%rename from tests/unit/pipelex/plugins/openai/test_data.pyrename to tests/unit/pipelex/providers/openai/test_data.pydiff --git a/tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.py b/tests/unit/pipelex/providers/openai/test_extract_openai_metadata.pysimilarity index 100%rename from tests/unit/pipelex/plugins/openai/test_extract_openai_metadata.pyrename to tests/unit/pipelex/providers/openai/test_extract_openai_metadata.pydiff --git a/tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.py b/tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.pysimilarity index 99%rename from tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.pyrename to tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.pyindex 99f29cfd3..0a68b9404 100644--- a/tests/unit/pipelex/plugins/openai/test_openai_completions_img_gen_worker_error_handling.py+++ b/tests/unit/pipelex/providers/openai/test_openai_completions_img_gen_worker_error_handling.py@@ -13,7 +13,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import ImgGenGenerationError, ImgGenModelNotFoundError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.openai.openai_completions_img_gen_worker import OpenAICompletionsImgGenWorker+from pipelex.providers.openai.openai_completions_img_gen_worker import OpenAICompletionsImgGenWorkerdef _make_response(status_code: int, headers: dict[str, str] | None = None) -> httpx.Response:diff --git a/tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.py b/tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.pysimilarity index 95%rename from tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.pyrename to tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.pyindex b566a9707..a55489547 100644--- a/tests/unit/pipelex/plugins/openai/test_openai_completions_reasoning.py+++ b/tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py@@ -4,7 +4,7 @@ from pytest_mock import MockerFixturefrom pipelex.cogt.exceptions import LLMCapabilityErrorfrom pipelex.cogt.llm.llm_job_components import LLMJobParams, ReasoningEffortfrom pipelex.cogt.llm.thinking_mode import ThinkingMode-from pipelex.plugins.openai.openai_completions_llm_worker import OpenAICompletionsLLMWorker+from pipelex.providers.openai.openai_completions_llm_worker import OpenAICompletionsLLMWorker_OPENAI_LEVEL_MAP: dict[str, str] = {"none": "none",@@ -29,11 +29,11 @@ def _make_worker(mocker: MockerFixture, thinking_mode: ThinkingMode) -> OpenAICodef _mock_config(mocker: MockerFixture) -> None:"""Mock get_config() to return an openai_config with the effort_to_level_map."""- from pipelex.plugins.openai.openai_config import OpenAIConfig # noqa: PLC0415+ from pipelex.providers.openai.openai_config import OpenAIConfig # noqa: PLC0415openai_config = OpenAIConfig(effort_to_level_map=_OPENAI_LEVEL_MAP)mocker.patch(- "pipelex.plugins.openai.openai_completions_llm_worker.get_config",+ "pipelex.providers.openai.openai_completions_llm_worker.get_config",return_value=mocker.MagicMock(cogt=mocker.MagicMock(llm_config=mocker.MagicMock(diff --git a/tests/unit/pipelex/plugins/openai/test_openai_completions_usage_capture.py b/tests/unit/pipelex/providers/openai/test_openai_completions_usage_capture.pysimilarity index 97%rename from tests/unit/pipelex/plugins/openai/test_openai_completions_usage_capture.pyrename to tests/unit/pipelex/providers/openai/test_openai_completions_usage_capture.pyindex 4b58ef025..befd21237 100644--- a/tests/unit/pipelex/plugins/openai/test_openai_completions_usage_capture.py+++ b/tests/unit/pipelex/providers/openai/test_openai_completions_usage_capture.py@@ -20,8 +20,8 @@ from pipelex.cogt.llm.llm_prompt import LLMPromptfrom pipelex.cogt.llm.llm_report import LLMTokensUsagefrom pipelex.cogt.usage.cost_category import CostCategoryfrom pipelex.cogt.usage.token_category import TokenCategory-from pipelex.plugins.openai.openai_completions_factory import OpenAICompletionsFactory-from pipelex.plugins.openai.openai_completions_llm_worker import OpenAICompletionsLLMWorker+from pipelex.providers.openai.openai_completions_factory import OpenAICompletionsFactory+from pipelex.providers.openai.openai_completions_llm_worker import OpenAICompletionsLLMWorkerfrom pipelex.system.job_metadata import JobMetadataif TYPE_CHECKING:diff --git a/tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py b/tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.pysimilarity index 99%rename from tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.pyrename to tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.pyindex 35d892671..a7ec5fce2 100644--- a/tests/unit/pipelex/plugins/openai/test_openai_completions_worker_object_error_handling.py+++ b/tests/unit/pipelex/providers/openai/test_openai_completions_worker_object_error_handling.py@@ -19,7 +19,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import InferenceErrorCategory, LLMCompletionError, LLMModelNotFoundErrorfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.openai.openai_completions_llm_worker import OpenAICompletionsLLMWorker+from pipelex.providers.openai.openai_completions_llm_worker import OpenAICompletionsLLMWorkerfrom tests.helpers.instructor_test_utils import DummySchema, make_llm_job, wrap_in_instructor_retrydiff --git a/tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_error_handling.py b/tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_error_handling.pysimilarity index 92%rename from tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_error_handling.pyrename to tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_error_handling.pyindex b7069969c..39da82d5d 100644--- a/tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_error_handling.py+++ b/tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_error_handling.py@@ -13,7 +13,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import ImgGenGenerationError, ImgGenModelNotFoundError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.openai.openai_img_gen_worker import OpenAIImgGenWorker+from pipelex.providers.openai.openai_img_gen_worker import OpenAIImgGenWorkerdef _make_response(status_code: int, headers: dict[str, str] | None = None) -> httpx.Response:@@ -60,7 +60,7 @@ class TestOpenAIImgGenWorkerErrorHandling:worker.openai_client.images.generate.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -86,7 +86,7 @@ class TestOpenAIImgGenWorkerErrorHandling:worker.openai_client.images.generate.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -107,7 +107,7 @@ class TestOpenAIImgGenWorkerErrorHandling:worker.openai_client.images.generate.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -128,7 +128,7 @@ class TestOpenAIImgGenWorkerErrorHandling:worker.openai_client.images.generate.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -150,7 +150,7 @@ class TestOpenAIImgGenWorkerErrorHandling:worker.openai_client.images.generate.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -174,7 +174,7 @@ class TestOpenAIImgGenWorkerErrorHandling:worker.openai_client.images.generate.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -196,7 +196,7 @@ class TestOpenAIImgGenWorkerErrorHandling:worker.openai_client.images.generate.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -218,7 +218,7 @@ class TestOpenAIImgGenWorkerErrorHandling:worker.openai_client.images.generate.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -242,7 +242,7 @@ class TestOpenAIImgGenWorkerErrorHandling:worker.openai_client.images.generate.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -264,7 +264,7 @@ class TestOpenAIImgGenWorkerErrorHandling:worker.openai_client.images.generate.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)@@ -289,7 +289,7 @@ class TestOpenAIImgGenWorkerErrorHandling:worker.openai_client.images.generate.side_effect = sdk_exc # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]mocker.patch(- "pipelex.plugins.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "test"},)diff --git a/tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_usage_capture.py b/tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_usage_capture.pysimilarity index 98%rename from tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_usage_capture.pyrename to tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_usage_capture.pyindex ed939d6c4..fa594f0ca 100644--- a/tests/unit/pipelex/plugins/openai/test_openai_img_gen_worker_usage_capture.py+++ b/tests/unit/pipelex/providers/openai/test_openai_img_gen_worker_usage_capture.py@@ -28,7 +28,7 @@ from pipelex.cogt.model_backends.model_spec import InferenceModelSpecfrom pipelex.cogt.model_backends.model_type import ModelTypefrom pipelex.cogt.usage.cost_category import CostCategoryfrom pipelex.cogt.usage.token_category import TokenCategory-from pipelex.plugins.openai.openai_img_gen_worker import OpenAIImgGenWorker+from pipelex.providers.openai.openai_img_gen_worker import OpenAIImgGenWorkerfrom pipelex.system.job_metadata import JobMetadatafrom pipelex.tools.misc.image_utils import ImageFormatdiff --git a/tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.py b/tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.pysimilarity index 95%rename from tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.pyrename to tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.pyindex e8ddb84ad..a6f2a79e7 100644--- a/tests/unit/pipelex/plugins/openai/test_openai_responses_reasoning.py+++ b/tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py@@ -4,7 +4,7 @@ from pytest_mock import MockerFixturefrom pipelex.cogt.exceptions import LLMCapabilityErrorfrom pipelex.cogt.llm.llm_job_components import LLMJobParams, ReasoningEffortfrom pipelex.cogt.llm.thinking_mode import ThinkingMode-from pipelex.plugins.openai.openai_responses_llm_worker import OpenAIResponsesLLMWorker+from pipelex.providers.openai.openai_responses_llm_worker import OpenAIResponsesLLMWorker_OPENAI_LEVEL_MAP: dict[str, str] = {"none": "none",@@ -29,11 +29,11 @@ def _make_worker(mocker: MockerFixture, thinking_mode: ThinkingMode) -> OpenAIRedef _mock_config(mocker: MockerFixture) -> None:"""Mock get_config() to return an openai_config with the effort_to_level_map."""- from pipelex.plugins.openai.openai_config import OpenAIConfig # noqa: PLC0415+ from pipelex.providers.openai.openai_config import OpenAIConfig # noqa: PLC0415openai_config = OpenAIConfig(effort_to_level_map=_OPENAI_LEVEL_MAP)mocker.patch(- "pipelex.plugins.openai.openai_responses_llm_worker.get_config",+ "pipelex.providers.openai.openai_responses_llm_worker.get_config",return_value=mocker.MagicMock(cogt=mocker.MagicMock(llm_config=mocker.MagicMock(diff --git a/tests/unit/pipelex/plugins/openai/test_openai_responses_usage_capture.py b/tests/unit/pipelex/providers/openai/test_openai_responses_usage_capture.pysimilarity index 96%rename from tests/unit/pipelex/plugins/openai/test_openai_responses_usage_capture.pyrename to tests/unit/pipelex/providers/openai/test_openai_responses_usage_capture.pyindex f7ac0bf94..b94bd9d9f 100644--- a/tests/unit/pipelex/plugins/openai/test_openai_responses_usage_capture.py+++ b/tests/unit/pipelex/providers/openai/test_openai_responses_usage_capture.py@@ -19,8 +19,8 @@ from pipelex.cogt.llm.llm_prompt import LLMPromptfrom pipelex.cogt.llm.llm_report import LLMTokensUsagefrom pipelex.cogt.usage.cost_category import CostCategoryfrom pipelex.cogt.usage.token_category import TokenCategory-from pipelex.plugins.openai.openai_responses_factory import OpenAIResponsesFactory-from pipelex.plugins.openai.openai_responses_llm_worker import OpenAIResponsesLLMWorker+from pipelex.providers.openai.openai_responses_factory import OpenAIResponsesFactory+from pipelex.providers.openai.openai_responses_llm_worker import OpenAIResponsesLLMWorkerfrom pipelex.system.job_metadata import JobMetadataif TYPE_CHECKING:diff --git a/tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py b/tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.pysimilarity index 99%rename from tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.pyrename to tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.pyindex a61387ef2..2c044e88f 100644--- a/tests/unit/pipelex/plugins/openai/test_openai_responses_worker_object_error_handling.py+++ b/tests/unit/pipelex/providers/openai/test_openai_responses_worker_object_error_handling.py@@ -21,7 +21,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import InferenceErrorCategory, LLMCompletionError, LLMModelNotFoundErrorfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.openai.openai_responses_llm_worker import OpenAIResponsesLLMWorker+from pipelex.providers.openai.openai_responses_llm_worker import OpenAIResponsesLLMWorkerfrom tests.helpers.instructor_test_utils import DummySchema, make_llm_job, wrap_in_instructor_retrydiff --git a/tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py b/tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.pysimilarity index 97%rename from tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.pyrename to tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.pyindex f9a085c64..28044040b 100644--- a/tests/unit/pipelex/plugins/openai/test_openai_worker_error_handling.py+++ b/tests/unit/pipelex/providers/openai/test_openai_worker_error_handling.py@@ -18,10 +18,10 @@ from pipelex.cogt.exceptions import (LLMModelNotFoundError,)from pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.openai.openai_completions_llm_worker import OpenAICompletionsLLMWorker-from pipelex.plugins.openai.openai_img_gen_worker import OpenAIImgGenWorker-from pipelex.plugins.openai.openai_responses_llm_worker import OpenAIResponsesLLMWorker-from tests.unit.pipelex.plugins.openai.test_data import OpenAIErrorHandlingTestData+from pipelex.providers.openai.openai_completions_llm_worker import OpenAICompletionsLLMWorker+from pipelex.providers.openai.openai_img_gen_worker import OpenAIImgGenWorker+from pipelex.providers.openai.openai_responses_llm_worker import OpenAIResponsesLLMWorker+from tests.unit.pipelex.providers.openai.test_data import OpenAIErrorHandlingTestDatadef _mock_httpx_response(status_code: int = 429) -> httpx.Response:@@ -124,7 +124,7 @@ def _make_img_gen_worker(mocker: MockerFixture) -> OpenAIImgGenWorker:worker.openai_client = mock_clientmocker.patch(- "pipelex.plugins.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",+ "pipelex.providers.openai.openai_img_gen_worker.ImgGenArgsFactory.make_args_for_model",new_callable=mocker.AsyncMock,return_value={"prompt": "a cute cat", "model": "gpt-image-1"},)diff --git a/tests/unit/pipelex/plugins/pypdfium2/test_data.py b/tests/unit/pipelex/providers/pypdfium2/test_data.pysimilarity index 100%rename from tests/unit/pipelex/plugins/pypdfium2/test_data.pyrename to tests/unit/pipelex/providers/pypdfium2/test_data.pydiff --git a/tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_error_handling.py b/tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_error_handling.pysimilarity index 90%rename from tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_error_handling.pyrename to tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_error_handling.pyindex 126e94acd..6b748e60d 100644--- a/tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_error_handling.py+++ b/tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_error_handling.py@@ -12,8 +12,8 @@ if TYPE_CHECKING:from pipelex.cogt.inference.error_classification import UserActionKindfrom pipelex.cogt.exceptions import ExtractJobFailureError, InferenceErrorCategory-from pipelex.plugins.pypdfium2.pypdfium2_worker import Pypdfium2Worker-from tests.unit.pipelex.plugins.pypdfium2.test_data import Pypdfium2ErrorHandlingTestData+from pipelex.providers.pypdfium2.pypdfium2_worker import Pypdfium2Worker+from tests.unit.pipelex.providers.pypdfium2.test_data import Pypdfium2ErrorHandlingTestDatadef _make_pypdfium2_worker(mocker: MockerFixture) -> Pypdfium2Worker:@@ -68,7 +68,7 @@ class TestPypdfium2WorkerErrorHandling:# Mock pypdfium2_renderer methods to raise the exceptionmocker.patch(- "pipelex.plugins.pypdfium2.pypdfium2_worker.pypdfium2_renderer.extract_text_from_pdf_pages",+ "pipelex.providers.pypdfium2.pypdfium2_worker.pypdfium2_renderer.extract_text_from_pdf_pages",new_callable=mocker.AsyncMock,side_effect=sdk_exc,)@@ -93,7 +93,7 @@ class TestPypdfium2WorkerErrorHandling:return_value="/tmp/missing.pdf", # noqa: S108)mocker.patch(- "pipelex.plugins.pypdfium2.pypdfium2_worker.pypdfium2_renderer.extract_text_from_pdf_pages",+ "pipelex.providers.pypdfium2.pypdfium2_worker.pypdfium2_renderer.extract_text_from_pdf_pages",new_callable=mocker.AsyncMock,side_effect=sdk_exc,)@@ -118,7 +118,7 @@ class TestPypdfium2WorkerErrorHandling:return_value="/tmp/test.pdf", # noqa: S108)mocker.patch(- "pipelex.plugins.pypdfium2.pypdfium2_worker.pypdfium2_renderer.extract_text_from_pdf_pages",+ "pipelex.providers.pypdfium2.pypdfium2_worker.pypdfium2_renderer.extract_text_from_pdf_pages",new_callable=mocker.AsyncMock,side_effect=sdk_exc,)diff --git a/tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_semantic.py b/tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_semantic.pysimilarity index 94%rename from tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_semantic.pyrename to tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_semantic.pyindex 022913050..7c5c2b983 100644--- a/tests/unit/pipelex/plugins/pypdfium2/test_pypdfium2_worker_semantic.py+++ b/tests/unit/pipelex/providers/pypdfium2/test_pypdfium2_worker_semantic.py@@ -11,7 +11,7 @@ if TYPE_CHECKING:from pipelex.cogt.exceptions import ExtractJobFailureError, InferenceErrorCategoryfrom pipelex.cogt.inference.error_classification import UserActionKind-from pipelex.plugins.pypdfium2.pypdfium2_worker import Pypdfium2Worker+from pipelex.providers.pypdfium2.pypdfium2_worker import Pypdfium2Workerdef _make_worker(mocker: MockerFixture) -> Pypdfium2Worker:@@ -64,7 +64,7 @@ class TestPypdfium2WorkerSemantic:return_value="/tmp/test.pdf", # noqa: S108)mocker.patch(- "pipelex.plugins.pypdfium2.pypdfium2_worker.pypdfium2_renderer.extract_text_from_pdf_pages",+ "pipelex.providers.pypdfium2.pypdfium2_worker.pypdfium2_renderer.extract_text_from_pdf_pages",new_callable=mocker.AsyncMock,side_effect=sdk_exc,)diff --git a/tests/unit/pipelex/plugins/test_secrets_plugin.py b/tests/unit/pipelex/providers/secrets/test_secrets_plugin.pysimilarity index 97%rename from tests/unit/pipelex/plugins/test_secrets_plugin.pyrename to tests/unit/pipelex/providers/secrets/test_secrets_plugin.pyindex cd4c1fa2e..b4bee840c 100644--- a/tests/unit/pipelex/plugins/test_secrets_plugin.py+++ b/tests/unit/pipelex/providers/secrets/test_secrets_plugin.py@@ -13,8 +13,8 @@ from typing import TYPE_CHECKING, castfrom pipelex.plugins.contract import PLUGIN_API_VERSIONfrom pipelex.plugins.registrar import PluginOrigin, PluginRegistrar-from pipelex.plugins.secrets.secrets_plugin import SecretsPluginfrom pipelex.plugins.secrets_provider_registry import SecretsProviderRegistry+from pipelex.providers.secrets.secrets_plugin import SecretsPluginfrom pipelex.tools.secrets.env_secrets_provider import EnvSecretsProviderfrom pipelex.tools.secrets.secrets_config import SecretsProviderConfigdiff --git a/tests/unit/pipelex/plugins/test_storage_plugin.py b/tests/unit/pipelex/providers/storage/test_storage_plugin.pysimilarity index 94%rename from tests/unit/pipelex/plugins/test_storage_plugin.pyrename to tests/unit/pipelex/providers/storage/test_storage_plugin.pyindex c25eb8129..42a230e04 100644--- a/tests/unit/pipelex/plugins/test_storage_plugin.py+++ b/tests/unit/pipelex/providers/storage/test_storage_plugin.py@@ -16,8 +16,8 @@ import pytestfrom pipelex.plugins.contract import PLUGIN_API_VERSIONfrom pipelex.plugins.registrar import PluginOrigin, PluginRegistrar-from pipelex.plugins.storage.storage_plugin import StoragePluginfrom pipelex.plugins.storage_provider_registry import StorageProviderRegistry+from pipelex.providers.storage.storage_plugin import StoragePluginfrom pipelex.tools.storage.gcp_storage_provider import GcpStorageProviderfrom pipelex.tools.storage.in_memory_storage_provider import InMemoryStorageProviderfrom pipelex.tools.storage.local_storage_provider import LocalStorageProvider@@ -96,10 +96,10 @@ class TestStoragePlugin:def test_gcp_factory_reads_credentials_from_the_hub_secrets_provider(self, mocker: MockerFixture) -> None:"""The gcp factory resolves GCP_CREDENTIALS_FILE_PATH from the hub secrets provider and passes it through."""fake_secrets = _FakeSecretsProvider(credentials_path="/secrets/gcp-creds.json")- mocker.patch("pipelex.plugins.storage.storage_plugin.get_secrets_provider", return_value=fake_secrets)+ mocker.patch("pipelex.providers.storage.storage_plugin.get_secrets_provider", return_value=fake_secrets)# Spy the constructor (wraps → the real provider is still built and returned) to assert the# resolved secret value flows through as credentials_file_path, not just that it was requested.- gcp_ctor = mocker.patch("pipelex.plugins.storage.storage_plugin.GcpStorageProvider", wraps=GcpStorageProvider)+ gcp_ctor = mocker.patch("pipelex.providers.storage.storage_plugin.GcpStorageProvider", wraps=GcpStorageProvider)gcp_config = make_gcp_config()registry = _build_storage_registry()diff --git a/tests/unit/pipelex/plugins/test_plugin_pipelex_storage_images.py b/tests/unit/pipelex/providers/test_plugin_pipelex_storage_images.pysimilarity index 97%rename from tests/unit/pipelex/plugins/test_plugin_pipelex_storage_images.pyrename to tests/unit/pipelex/providers/test_plugin_pipelex_storage_images.pyindex 071305e91..2fea03593 100644--- a/tests/unit/pipelex/plugins/test_plugin_pipelex_storage_images.py+++ b/tests/unit/pipelex/providers/test_plugin_pipelex_storage_images.py@@ -11,8 +11,8 @@ from pytest_mock import MockerFixturefrom pipelex.cogt.image.prompt_image import PromptImageUrifrom pipelex.cogt.image.prompt_image_utils import prepare_prompt_image_as_base64-from pipelex.plugins.google.google_factory import GoogleFactory-from pipelex.plugins.mistral.mistral_factory import MistralFactory+from pipelex.providers.google.google_factory import GoogleFactory+from pipelex.providers.mistral.mistral_factory import MistralFactoryfrom pipelex.tools.storage.in_memory_storage_provider import InMemoryStorageProviderfrom pipelex.tools.uri.prepared_file import PreparedFileBase64diff --git a/tests/unit/pipelex/plugins/test_transport_retry_wiring.py b/tests/unit/pipelex/providers/test_transport_retry_wiring.pysimilarity index 62%rename from tests/unit/pipelex/plugins/test_transport_retry_wiring.pyrename to tests/unit/pipelex/providers/test_transport_retry_wiring.pyindex 2142fbea6..6c1bcec3e 100644--- a/tests/unit/pipelex/plugins/test_transport_retry_wiring.py+++ b/tests/unit/pipelex/providers/test_transport_retry_wiring.py@@ -12,14 +12,14 @@ from typing import TYPE_CHECKINGfrom mistralai.utils import RetryConfig-from pipelex.plugins.anthropic.anthropic_factory import AnthropicFactory-from pipelex.plugins.gateway.gateway_completions_factory import GatewayCompletionsFactory-from pipelex.plugins.gateway.gateway_responses_factory import GatewayResponsesFactory-from pipelex.plugins.google.google_factory import GoogleFactory-from pipelex.plugins.mistral.mistral_factory import MistralFactory-from pipelex.plugins.openai.openai_client_factory import OpenAIClientFactory-from pipelex.plugins.portkey.portkey_completions_factory import PortkeyCompletionsFactory-from pipelex.plugins.portkey.portkey_responses_factory import PortkeyResponsesFactory+from pipelex.providers.anthropic.anthropic_factory import AnthropicFactory+from pipelex.providers.gateway.gateway_completions_factory import GatewayCompletionsFactory+from pipelex.providers.gateway.gateway_responses_factory import GatewayResponsesFactory+from pipelex.providers.google.google_factory import GoogleFactory+from pipelex.providers.mistral.mistral_factory import MistralFactory+from pipelex.providers.openai.openai_client_factory import OpenAIClientFactory+from pipelex.providers.portkey.portkey_completions_factory import PortkeyCompletionsFactory+from pipelex.providers.portkey.portkey_responses_factory import PortkeyResponsesFactoryif TYPE_CHECKING:from pytest_mock import MockerFixture@@ -36,10 +36,10 @@ class TestTransportRetryWiring:def test_anthropic_factory_passes_max_retries(self, mocker: MockerFixture) -> None:mocker.patch(- "pipelex.plugins.anthropic.anthropic_factory.get_config",+ "pipelex.providers.anthropic.anthropic_factory.get_config",return_value=_config_with(mocker, 5),)- mock_client = mocker.patch("pipelex.plugins.anthropic.anthropic_factory.AsyncAnthropic")+ mock_client = mocker.patch("pipelex.providers.anthropic.anthropic_factory.AsyncAnthropic")model_handle = mocker.MagicMock()model_handle.sdk = "anthropic"@@ -50,7 +50,7 @@ class TestTransportRetryWiring:def test_openai_factory_passes_max_retries(self, mocker: MockerFixture) -> None:mocker.patch(- "pipelex.plugins.openai.openai_client_factory.get_config",+ "pipelex.providers.openai.openai_client_factory.get_config",return_value=_config_with(mocker, 7),)mock_client = mocker.patch("openai.AsyncOpenAI")@@ -64,10 +64,10 @@ class TestTransportRetryWiring:def test_mistral_factory_builds_retry_config_when_enabled(self, mocker: MockerFixture) -> None:mocker.patch(- "pipelex.plugins.mistral.mistral_factory.get_config",+ "pipelex.providers.mistral.mistral_factory.get_config",return_value=_config_with(mocker, 3),)- mock_client = mocker.patch("pipelex.plugins.mistral.mistral_factory.Mistral")+ mock_client = mocker.patch("pipelex.providers.mistral.mistral_factory.Mistral")MistralFactory.make_mistral_client(backend=mocker.MagicMock())@@ -78,10 +78,10 @@ class TestTransportRetryWiring:def test_mistral_factory_disables_retry_when_zero(self, mocker: MockerFixture) -> None:mocker.patch(- "pipelex.plugins.mistral.mistral_factory.get_config",+ "pipelex.providers.mistral.mistral_factory.get_config",return_value=_config_with(mocker, 0),)- mock_client = mocker.patch("pipelex.plugins.mistral.mistral_factory.Mistral")+ mock_client = mocker.patch("pipelex.providers.mistral.mistral_factory.Mistral")MistralFactory.make_mistral_client(backend=mocker.MagicMock())@@ -90,10 +90,10 @@ class TestTransportRetryWiring:def test_google_factory_passes_retry_options(self, mocker: MockerFixture) -> None:mocker.patch(- "pipelex.plugins.google.google_factory.get_config",+ "pipelex.providers.google.google_factory.get_config",return_value=_config_with(mocker, 4),)- mock_client = mocker.patch("pipelex.plugins.google.google_factory.GoogleGenAiClient")+ mock_client = mocker.patch("pipelex.providers.google.google_factory.GoogleGenAiClient")GoogleFactory.make_google_client(backend=mocker.MagicMock())@@ -105,13 +105,13 @@ class TestTransportRetryWiring:def test_portkey_completions_factory_passes_max_retries(self, mocker: MockerFixture) -> None:mocker.patch(- "pipelex.plugins.portkey.portkey_completions_factory.get_config",+ "pipelex.providers.portkey.portkey_completions_factory.get_config",return_value=_config_with(mocker, 6),)- mocker.patch("pipelex.plugins.portkey.portkey_completions_factory.PortkeyFactory.is_debug_enabled", return_value=False)- mocker.patch("pipelex.plugins.portkey.portkey_completions_factory.PortkeyFactory.get_endpoint", return_value="https://gateway.test")- mocker.patch("pipelex.plugins.portkey.portkey_completions_factory.PortkeyFactory.get_api_key", return_value="pk-test")- mocker.patch("pipelex.plugins.portkey.portkey_completions_factory.PortkeyOpenAISdkVariant.is_completions", return_value=True)+ mocker.patch("pipelex.providers.portkey.portkey_completions_factory.PortkeyFactory.is_debug_enabled", return_value=False)+ mocker.patch("pipelex.providers.portkey.portkey_completions_factory.PortkeyFactory.get_endpoint", return_value="https://gateway.test")+ mocker.patch("pipelex.providers.portkey.portkey_completions_factory.PortkeyFactory.get_api_key", return_value="pk-test")+ mocker.patch("pipelex.providers.portkey.portkey_completions_factory.PortkeyOpenAISdkVariant.is_completions", return_value=True)mock_client = mocker.patch("openai.AsyncOpenAI")PortkeyCompletionsFactory.make_portkey_openai_client_for_completions(model_handle=mocker.MagicMock(), backend=mocker.MagicMock())@@ -121,13 +121,13 @@ class TestTransportRetryWiring:def test_portkey_responses_factory_passes_max_retries(self, mocker: MockerFixture) -> None:mocker.patch(- "pipelex.plugins.portkey.portkey_responses_factory.get_config",+ "pipelex.providers.portkey.portkey_responses_factory.get_config",return_value=_config_with(mocker, 8),)- mocker.patch("pipelex.plugins.portkey.portkey_responses_factory.PortkeyFactory.is_debug_enabled", return_value=False)- mocker.patch("pipelex.plugins.portkey.portkey_responses_factory.PortkeyFactory.get_endpoint", return_value="https://gateway.test")- mocker.patch("pipelex.plugins.portkey.portkey_responses_factory.PortkeyFactory.get_api_key", return_value="pk-test")- mocker.patch("pipelex.plugins.portkey.portkey_responses_factory.PortkeyOpenAISdkVariant.is_responses", return_value=True)+ mocker.patch("pipelex.providers.portkey.portkey_responses_factory.PortkeyFactory.is_debug_enabled", return_value=False)+ mocker.patch("pipelex.providers.portkey.portkey_responses_factory.PortkeyFactory.get_endpoint", return_value="https://gateway.test")+ mocker.patch("pipelex.providers.portkey.portkey_responses_factory.PortkeyFactory.get_api_key", return_value="pk-test")+ mocker.patch("pipelex.providers.portkey.portkey_responses_factory.PortkeyOpenAISdkVariant.is_responses", return_value=True)mock_client = mocker.patch("openai.AsyncOpenAI")PortkeyResponsesFactory.make_portkey_openai_client_for_responses(model_handle=mocker.MagicMock(), backend=mocker.MagicMock())@@ -137,13 +137,13 @@ class TestTransportRetryWiring:def test_gateway_completions_factory_passes_max_retries(self, mocker: MockerFixture) -> None:mocker.patch(- "pipelex.plugins.gateway.gateway_completions_factory.get_config",+ "pipelex.providers.gateway.gateway_completions_factory.get_config",return_value=_config_with(mocker, 4),)- mocker.patch("pipelex.plugins.gateway.gateway_completions_factory.GatewayFactory.is_debug_enabled", return_value=False)- mocker.patch("pipelex.plugins.gateway.gateway_completions_factory.GatewayFactory.get_endpoint", return_value="https://gateway.test")- mocker.patch("pipelex.plugins.gateway.gateway_completions_factory.GatewayFactory.get_api_key", return_value="gw-test")- mocker.patch("pipelex.plugins.gateway.gateway_completions_factory.GatewayOpenAISdkVariant.is_completions", return_value=True)+ mocker.patch("pipelex.providers.gateway.gateway_completions_factory.GatewayFactory.is_debug_enabled", return_value=False)+ mocker.patch("pipelex.providers.gateway.gateway_completions_factory.GatewayFactory.get_endpoint", return_value="https://gateway.test")+ mocker.patch("pipelex.providers.gateway.gateway_completions_factory.GatewayFactory.get_api_key", return_value="gw-test")+ mocker.patch("pipelex.providers.gateway.gateway_completions_factory.GatewayOpenAISdkVariant.is_completions", return_value=True)mock_client = mocker.patch("openai.AsyncOpenAI")GatewayCompletionsFactory.make_portkey_openai_client_for_completions(model_handle=mocker.MagicMock(), backend=mocker.MagicMock())@@ -153,13 +153,13 @@ class TestTransportRetryWiring:def test_gateway_responses_factory_passes_max_retries(self, mocker: MockerFixture) -> None:mocker.patch(- "pipelex.plugins.gateway.gateway_responses_factory.get_config",+ "pipelex.providers.gateway.gateway_responses_factory.get_config",return_value=_config_with(mocker, 9),)- mocker.patch("pipelex.plugins.gateway.gateway_responses_factory.GatewayFactory.is_debug_enabled", return_value=False)- mocker.patch("pipelex.plugins.gateway.gateway_responses_factory.GatewayFactory.get_endpoint", return_value="https://gateway.test")- mocker.patch("pipelex.plugins.gateway.gateway_responses_factory.GatewayFactory.get_api_key", return_value="gw-test")- mocker.patch("pipelex.plugins.gateway.gateway_responses_factory.GatewayOpenAISdkVariant.is_responses", return_value=True)+ mocker.patch("pipelex.providers.gateway.gateway_responses_factory.GatewayFactory.is_debug_enabled", return_value=False)+ mocker.patch("pipelex.providers.gateway.gateway_responses_factory.GatewayFactory.get_endpoint", return_value="https://gateway.test")+ mocker.patch("pipelex.providers.gateway.gateway_responses_factory.GatewayFactory.get_api_key", return_value="gw-test")+ mocker.patch("pipelex.providers.gateway.gateway_responses_factory.GatewayOpenAISdkVariant.is_responses", return_value=True)mock_client = mocker.patch("openai.AsyncOpenAI")GatewayResponsesFactory.make_portkey_openai_client_for_responses(model_handle=mocker.MagicMock(), backend=mocker.MagicMock())diff --git a/tests/unit/pipelex/runtime_bridge/test_direct_orchestrator.py b/tests/unit/pipelex/runtime_bridge/test_direct_orchestrator.pyindex 5f7a50072..3e26e0ccb 100644--- a/tests/unit/pipelex/runtime_bridge/test_direct_orchestrator.py+++ b/tests/unit/pipelex/runtime_bridge/test_direct_orchestrator.py@@ -9,7 +9,7 @@ from pipelex.runtime_bridge.exceptions import PipelexBridgeDispatchErrorfrom pipelex.system.job_metadata import JobMetadataif TYPE_CHECKING:- from pipelex.core.pipes.pipe_abstract import PipeAbstract+ from pipelex.pipe_machinery.pipe_abstract import PipeAbstractclass _StubPipe:diff --git a/tests/unit/pipelex/test_error_report_disclosure_mode.py b/tests/unit/pipelex/test_error_report_disclosure_mode.pyindex a1c32b8fc..488c7c8d1 100644--- a/tests/unit/pipelex/test_error_report_disclosure_mode.py+++ b/tests/unit/pipelex/test_error_report_disclosure_mode.py@@ -6,7 +6,7 @@through the curated subset (just ``status_code`` and ``retry_after_seconds`` —actionable HTTP client hints), and the ``message`` is kept only when the reportis flagged ``caller_facing_message`` — the flag set by error classes-(``PipelexInterpreterError`` / ``ValidateBundleError``) whose message describes+(``MthdsParserError`` / ``ValidateBundleError``) whose message describesthe caller's own input. Every other report has its ``message`` replaced with ageneric placeholder and ``user_action`` dropped, keeping the stable identifiers(``error_type`` / ``error_domain`` / ``error_category`` / ``retryable`` /@@ -34,7 +34,7 @@ from pipelex.base_exceptions import ()from pipelex.cogt.inference.error_classification import ProviderErrorMetadata, UserAction, UserActionKindfrom pipelex.cogt.inference.provider_name import ProviderName-from pipelex.core.interpreter.exceptions import PipelexInterpreterError+from pipelex.mthds_parsing.exceptions import MthdsParserErrordef _runtime_report(message: str = "rate limited on the worker") -> ErrorReport:@@ -71,10 +71,10 @@ def _config_report(message: str = "OPENAI_API_KEY is not set") -> ErrorReport:def _caller_facing_report(message: str = "pipe 'summarize' references unknown concept 'Reportt' at line 14") -> ErrorReport:"""A report whose message was authored as caller-facing copy (interpreter / bundle-validation)."""return ErrorReport(- error_type="PipelexInterpreterError",+ error_type="MthdsParserError",message=message,- title="Pipelex interpreter error",- type_uri="https://docs.pipelex.com/latest/errors/pipelex-interpreter-error/",+ title="MTHDS parser",+ type_uri="https://docs.pipelex.com/latest/errors/mthds-parser-error/",error_domain=ErrorDomain.INPUT,user_action=UserAction(kind=UserActionKind.CHANGE_INPUT, detail="fix the concept name in your .mthds"),caller_facing_message=True,@@ -252,12 +252,12 @@ class TestErrorReportDisclosureMode:"""A domain-less wrapper raised ``from`` an INPUT cause must not leak its own message in STRICT.``PipelexUnexpectedError`` (no domain, internal message) wrapping a- ``PipelexInterpreterError`` (INPUT) produces a report classified+ ``MthdsParserError`` (INPUT) produces a report classified``error_domain=INPUT`` via ``__cause__``-chain inheritance — yet thereport's ``message`` is the wrapper's internal text. ``caller_facing_message``is NOT inherited, so STRICT redacts the message."""- cause = PipelexInterpreterError("parse failed at /srv/secret/internal/bundle.mthds")+ cause = MthdsParserError("parse failed at /srv/secret/internal/bundle.mthds")wrapper_message = "internal invariant violated: cache slot is None"try:raise PipelexUnexpectedError(wrapper_message) from cause@@ -272,8 +272,8 @@ class TestErrorReportDisclosureMode:assert "invariant" not in payload["message"]def test_strict_passes_through_real_interpreter_error_message(self) -> None:- """A genuine ``PipelexInterpreterError`` reflects its caller-facing message through STRICT."""- report = PipelexInterpreterError("pipe 'foo' references unknown concept at line 5").to_error_report()+ """A genuine ``MthdsParserError`` reflects its caller-facing message through STRICT."""+ report = MthdsParserError("pipe 'foo' references unknown concept at line 5").to_error_report()assert report.caller_facing_message is Truepayload = report.to_dict(disclosure_mode=DisclosureMode.STRICT)assert payload["message"] == "pipe 'foo' references unknown concept at line 5"@@ -403,10 +403,10 @@ class TestErrorReportDisclosureMode:# exercise each branch — using ``model_copy`` so pyright sees the# concrete field types instead of the union we'd get from ``**kwargs``.caller_facing_report = ErrorReport(- error_type="PipelexInterpreterError",+ error_type="MthdsParserError",message="pipe references unknown concept",- title="Pipelex interpreter error",- type_uri="https://docs.pipelex.com/latest/errors/pipelex-interpreter-error/",+ title="MTHDS parser",+ type_uri="https://docs.pipelex.com/latest/errors/mthds-parser-error/",error_category="capacity",error_domain=ErrorDomain.INPUT,retryable=False,diff --git a/tests/unit/pipelex/test_error_report_problem_document.py b/tests/unit/pipelex/test_error_report_problem_document.pyindex fa523ec7f..a4091d5ba 100644--- a/tests/unit/pipelex/test_error_report_problem_document.py+++ b/tests/unit/pipelex/test_error_report_problem_document.py@@ -124,10 +124,10 @@ class TestErrorReportProblemDocument:def test_strict_mode_passes_through_detail_for_caller_facing_report(self) -> None:"""A caller-facing-message report reflects ``detail`` back unchanged in STRICT mode."""report = ErrorReport(- error_type="PipelexInterpreterError",+ error_type="MthdsParserError",message="pipe 'summarize' references unknown concept at line 14",- title="Pipelex interpreter error",- type_uri="https://docs.pipelex.com/latest/errors/pipelex-interpreter-error/",+ title="MTHDS parser",+ type_uri="https://docs.pipelex.com/latest/errors/mthds-parser-error/",error_domain=ErrorDomain.INPUT,caller_facing_message=True,)@@ -159,10 +159,10 @@ class TestErrorReportProblemDocument:the RFC 7807 envelope."""report = ErrorReport(- error_type="PipelexInterpreterError",+ error_type="MthdsParserError",message="pipe 'summarize' references unknown concept at line 14",- title="Pipelex interpreter error",- type_uri="https://docs.pipelex.com/latest/errors/pipelex-interpreter-error/",+ title="MTHDS parser",+ type_uri="https://docs.pipelex.com/latest/errors/mthds-parser-error/",error_domain=ErrorDomain.INPUT,caller_facing_message=True,model="gpt-5",@@ -178,10 +178,10 @@ class TestErrorReportProblemDocument:def test_caller_facing_message_flag_never_rides_as_extension_member(self) -> None:"""``caller_facing_message`` is internal redaction plumbing — never an RFC 7807 extension member."""report = ErrorReport(- error_type="PipelexInterpreterError",+ error_type="MthdsParserError",message="pipe 'summarize' references unknown concept at line 14",- title="Pipelex interpreter error",- type_uri="https://docs.pipelex.com/latest/errors/pipelex-interpreter-error/",+ title="MTHDS parser",+ type_uri="https://docs.pipelex.com/latest/errors/mthds-parser-error/",error_domain=ErrorDomain.INPUT,caller_facing_message=True,)diff --git a/tests/unit/pipelex/test_pipelex_error_title_and_type_uri.py b/tests/unit/pipelex/test_pipelex_error_title_and_type_uri.pyindex 3e70f7556..9aadf40af 100644--- a/tests/unit/pipelex/test_pipelex_error_title_and_type_uri.py+++ b/tests/unit/pipelex/test_pipelex_error_title_and_type_uri.py@@ -4,6 +4,7 @@"""from pipelex.base_exceptions import ErrorDomain, ErrorReport, PipelexConfigError, PipelexError, SecurityError+from pipelex.mthds_parsing.exceptions import BundleElaboratorError, MthdsParserErrorclass TestPipelexErrorTitleAndTypeUri:@@ -60,6 +61,24 @@ class TestPipelexErrorTitleAndTypeUri:assert PipelexError.title() == "Pipelex error"assert SecurityError.title() == "Security policy violation"+ def test_mthds_parser_error_identity_is_pinned(self) -> None:+ """The parser error's wire-visible identity triple, pinned against silent drift.++ ``error_type`` (the class name), ``title`` and ``type_uri`` all travel on every+ ``ErrorReport``, and clients branch on them. Nothing asserted the trio before, which is+ how a rename left the repo's own fixtures carrying a shape the class cannot produce.+ The title is *declared* rather than auto-derived because ``_humanize_class_name`` would+ render the standard's name as "Mthds parser" — see ``mthds_parsing/exceptions.py``.+ """+ report = MthdsParserError("bad .mthds").to_error_report()+ assert report.error_type == "MthdsParserError"+ assert report.title == "MTHDS parser"+ assert report.type_uri == "https://docs.pipelex.com/latest/errors/mthds-parser-error/"++ # The declared title must not capture the subclass — it derives from its own name.+ assert BundleElaboratorError.title() == "Bundle elaborator"+ assert BundleElaboratorError.type_uri() == "https://docs.pipelex.com/latest/errors/bundle-elaborator-error/"+def test_round_trip_preserves_title_and_type_uri(self) -> None:"""``ErrorReport.from_dict(report.to_dict())`` preserves the new fields."""report = PipelexConfigError("config gone").to_error_report()diff --git a/tests/unit/pipelex/test_registry_models_split.py b/tests/unit/pipelex/test_registry_models_split.pynew file mode 100644index 000000000..4ac8da773--- /dev/null+++ b/tests/unit/pipelex/test_registry_models_split.py@@ -0,0 +1,67 @@+# Splitting the boot manifest in two lost nothing, and both halves still reach the class registry.+#+# `CoreRegistryModels` used to carry core's value model *and* every pipe kind. The pipe half now lives+# in `pipelex.pipe_machinery.registry_models.PipeRegistryModels`, and `pipelex.py` registers the two+# side by side. Every way of getting that wrong is silent: drop one of the two `register_classes`+# calls, or let a pipe kind and its factory drift apart, and boot still succeeds — the failure+# surfaces later as a kajson lookup miss on a pipe, in production.+#+# Nothing else in the suite covers this. The hub-lifecycle tests assert hub singletons and scoping,+# and the class-registry tests use a synthetic model, so a pipe class never being registered would+# pass them all.+#+# Every assertion below is derived from the manifests themselves — this module holds no inventory of+# what is registered, so adding a pipe kind or a content class never touches it.++from pydantic import BaseModel++from pipelex.core.registry_models import CoreRegistryModels+from pipelex.pipe_machinery.registry_models import PipeRegistryModels+from pipelex.runtime_hub import get_class_registry+++def _registered_models() -> list[type[BaseModel]]:+ """Both manifests, read straight from the source rather than from whatever boot happened to register."""+ return CoreRegistryModels.get_all_models() + PipeRegistryModels.get_all_models()+++def _model_names(models: list[type[BaseModel]]) -> set[str]:+ return {model.__name__ for model in models}+++class TestRegistryModelsSplit:+ def test_every_pipe_kind_declares_the_factory_that_gets_looked_up_for_it(self) -> None:+ """A pipe kind and its factory never drift apart — one dropped without the other is a run-time miss.++ `PipeFactory` resolves a pipe's factory by string (`f"{pipe_type.value}Factory"`, see+ `pipelex/pipe_machinery/pipe_factory.py:121`), so this suffix pairing is the live lookup contract,+ not a naming preference. Dropping both halves is a deliberate removal and stays green.+ """+ pipe_names = _model_names(PipeRegistryModels.get_all_models())+ kinds = {name for name in pipe_names if not name.endswith("Factory")}+ factories = {name for name in pipe_names if name.endswith("Factory")}++ assert {f"{kind}Factory" for kind in kinds} == factories++ def test_no_two_registered_models_share_a_class_name(self) -> None:+ """The registry is keyed by class name, so a collision silently drops one of the two.++ kajson's `register_classes` skips a name it already holds, which makes a cross-manifest+ duplicate a debug-level no-op at boot and the wrong type at deserialization time.+ """+ models = _registered_models()++ assert len(_model_names(models)) == len(models), f"two registered models share a class name: {sorted(_model_names(models))}"++ def test_every_registered_model_is_live_in_the_booted_class_registry(self) -> None:+ """Both `register_classes` calls ran — the failure the two tests above cannot see.++ Deleting either line from `Pipelex.make` leaves a clean boot and a half-populated registry;+ kajson then fails to resolve whichever half went missing, at run time. The expectation is read+ from the manifests, not from the registry, so a deleted call cannot make this pass vacuously.+ """+ class_registry = get_class_registry()++ missing = sorted(name for name in _model_names(_registered_models()) if not class_registry.has_class(name))++ assert missing == [], f"booted class registry is missing {len(missing)} registered model(s): {missing}"diff --git a/tests/unit/pipelex/test_runtime_layer_import_closure.py b/tests/unit/pipelex/test_runtime_layer_import_closure.pyindex 03f176e48..3eab9df8b 100644--- a/tests/unit/pipelex/test_runtime_layer_import_closure.py+++ b/tests/unit/pipelex/test_runtime_layer_import_closure.py@@ -6,17 +6,19 @@ itself, must pull in zero interpreter modules. The distinction matters because aelse entirely — a runtime-layer module reaching into `pipe_operators` directly, without touching a hub —would break the property while the lint stays green.-"Interpreter module" is spelled out twice below, because the five interpreter top-level packages alone-under-state it: core's Pipe-machinery modules are interpreter-layer too, and most of them only get-caught *transitively*, through the `pipe_operators` / `libraries` they happen to pull in.-`core.pipes.pipe_blueprint` pulls in none of it, so a runtime-layer import of it would pass a-package-only predicate. Naming them makes the predicate state the boundary instead of approximating it.+"Interpreter module" used to need spelling out twice, because core's Pipe-machinery modules were+interpreter-layer while living under a runtime-named package — so the predicate carried a second tuple+naming them one by one, plus an exclusion for the one leaf model that landed in every runtime closure.+It does not any more: every one of those modules now lives under `pipe_machinery` or `mthds_parsing`,+so the top-level package set says exactly what it means, with no per-module list and no exclusion. A+package-granular predicate is only honest once the packages match the layers, which is what M1 bought.Two documented interpreter homes are deliberately absent, and their absence is a known wart rather than-an oversight: `pipeline` and `pipe_run` (plus `core.bundles.exceptions`) already leak leaf models into-every runtime closure — `SpecialPipelineId`, `PipeRunMode`, the bundle validation-error data. Naming-them here would fail the test over a *placement* problem, not a broken hub arrow. See-`wip/pr-1062-review-notes.md`.+an oversight: `pipeline` and `pipe_run` already leak leaf models into every runtime closure —+`SpecialPipelineId`, `PipeRunMode`. Naming them here would fail the test over a *placement* problem,+not a broken hub arrow. See `wip/pr-1062-review-notes.md`. The third leak of that family is gone:+the bundle validation-error data that `pipeline/` carries into every closure now lives in+`core.exceptions`, beside the two sibling error-data models, so `mthds_parsing` needs no exclusion.Run in a subprocess so the closure is exactly what the entry point pulls in: an in-process`sys.modules` check would see everything the test session already imported.@@ -24,20 +26,35 @@ Run in a subprocess so the closure is exactly what the entry point pulls in: anfrom __future__ import annotations+import ast+import reimport subprocess # noqa: S404import sysimport textwrap+from pathlib import Pathimport pytest-#: Entry points that must never load the interpreter: the inference layer, the runtime hub itself, and the-#: heaviest module of each runtime-layer `core/` package — the ones that historically reached for a library-#: and now take a `ConceptProviderAbstract` instead. `core/`'s Pipe-touching remainder is deliberately-#: absent; it names the interpreter's own object and belongs to the interpreter layer by construction (see-#: the guard's `RUNTIME_LAYER_PACKAGES` note).+#: Entry points that must never load the interpreter: the inference layer, the runtime hub itself, the+#: built-in plugin aggregator, and the heaviest module of each runtime-layer `core/` package — the ones+#: that historically reached for a library and now take a `ConceptProviderAbstract` instead. There is no+#: longer a Pipe-touching remainder of `core/` to leave out: all of it moved to `pipe_machinery` and+#: `mthds_parsing`, which is what let `pipelex.core` be declared wholesale (see the guard's+#: `RUNTIME_LAYER_PACKAGES` note).+#:+#: `providers.builtins` earns its place by history, under its former name `plugins.builtins`: it and+#: three neighbours reached `interpreter_hub` transitively — through `runtime_bridge`, `pipeline` and+#: `pipe_operators` — while both gates stayed green, because the guard was one hop deep and+#: `pipelex.plugins`, the largest declared runtime-layer package, had no entry point here. The guard+#: now follows the import graph, but that is *static* analysis: it cannot see a dynamic import, so the+#: package that bit us gets a runtime-truth check too. It instantiates every built-in vendor adapter,+#: so importing it pulls in every one of them — the broadest single entry point into `pipelex.providers`,+#: which is where those adapters now live. The plugin *mechanism* it registers through stayed behind+#: in `pipelex.plugins` and is reached from here, so one entry point still covers both halves.RUNTIME_LAYER_ENTRY_POINTS = ["pipelex.cogt.content_generation.content_generator","pipelex.runtime_hub",+ "pipelex.providers.builtins","pipelex.core.concepts.structure_generation.generator","pipelex.core.memory.input_shaper","pipelex.core.memory.working_memory_factory",@@ -47,10 +64,11 @@ RUNTIME_LAYER_ENTRY_POINTS = []#: The negative control, and the reason it is needed: the detector below is a `textwrap.dedent`-#: string, so nothing type-checks or lints the names inside it. A typo in `INTERPRETER_PACKAGES` or-#: `is_interpreter` would make every entry point above pass *vacuously*, forever, and the suite would-#: stay green while guarding nothing. This entry point is dirty by definition — the interpreter hub-#: is the interpreter — so it must come back a failure, *reported as offending modules*, whatever+#: string, so nothing type-checks or lints the *logic* inside it. The package names are no longer at+#: risk — they are a real module-level constant, passed in as argv — but a broken predicate or a+#: mis-built offenders comprehension would still make every entry point above pass *vacuously*,+#: forever, while the suite stayed green. This entry point is dirty by definition — the interpreter+#: hub is the interpreter — so it must come back a failure, *reported as offending modules*, whatever#: else changes. Asserting the offender message and not merely the exit code is what pins the#: predicate: the `sys.modules` check below would exit 1 for this entry point either way.DIRTY_ENTRY_POINT = "pipelex.interpreter_hub"@@ -60,38 +78,45 @@ DIRTY_ENTRY_POINT = "pipelex.interpreter_hub"#: repo has a documented history of (`docs/agents/debugging-hanging-pytest-runs.md`).SUBPROCESS_TIMEOUT_SECONDS = 300+#: The interpreter layer's top-level packages — the set the detector treats as "interpreter module".+#:+#: A real module-level constant, handed to the subprocess as argv rather than baked into the script+#: string below. That is deliberate: while these names lived *inside* the `textwrap.dedent` string,+#: nothing type-checked, linted or grepped them, and reading them back out took a regex. Two+#: documented interpreter homes are absent, and their absence is a known wart rather than an+#: oversight — see this module's docstring.+INTERPRETER_PACKAGES: tuple[str, ...] = (+ "libraries",+ "pipe_operators",+ "pipe_controllers",+ "codegen",+ "builder",+ # The built-ins that adapt interpreter-layer ports; they construct interpreter-layer objects.+ "interpreter_plugins",+ # Core's Pipe machinery and the pipe-kind registration manifest, hoisted out of `core/`.+ "pipe_machinery",+ # Signature resolution: `signature_walk` imports `interpreter_hub` to resolve pipes by code.+ "pipe_signature",+ # The MTHDS parser and its blueprint, hoisted out of `core/`.+ "mthds_parsing",+)+_CLOSURE_SCRIPT = textwrap.dedent("""import importlibimport systarget = sys.argv[1]+ interpreter_packages = frozenset(sys.argv[2:])+ # An empty set would make every entry point pass while flagging nothing — the exact vacuity this+ # module exists to prevent. Fail loudly instead, so a caller that drops the argv splat is caught.+ if not interpreter_packages:+ print("no interpreter packages passed — the detector would match nothing")+ raise SystemExit(2)importlib.import_module(target)- INTERPRETER_PACKAGES = ("libraries", "pipe_operators", "pipe_controllers", "codegen", "builder")-- # Core's Pipe machinery: interpreter-layer by construction, but not under a top-level package of its own.- INTERPRETER_CORE = (- "pipelex.core.bundles",- "pipelex.core.interpreter",- "pipelex.core.registry_models",- "pipelex.core.pipes.pipe_abstract",- "pipelex.core.pipes.pipe_blueprint",- "pipelex.core.pipes.pipe_factory",- "pipelex.core.pipes.rendering",- )- # The one straddler: structured bundle validation-error data that `pipeline/` imports, so it lands in- # every runtime closure -- dragging the empty `core.bundles` package placeholder in with it. A placement- # wart, not a hub violation -- see wip/pr-1062-review-notes.md. Matched exactly, never as a prefix, so- # the rest of `core.bundles` stays flagged.- INTERPRETER_CORE_EXCLUDED = ("pipelex.core.bundles", "pipelex.core.bundles.exceptions")-def is_interpreter(name):- if name.split(".")[1] in INTERPRETER_PACKAGES:- return True- if name in INTERPRETER_CORE_EXCLUDED:- return False- return any(name == module or name.startswith(module + ".") for module in INTERPRETER_CORE)+ return name.split(".")[1] in interpreter_packagesoffenders = sorted(name for name in sys.modules if name.startswith("pipelex.") and is_interpreter(name))if offenders:@@ -108,11 +133,18 @@ _CLOSURE_SCRIPT = textwrap.dedent()+#: Anchored on `tests/` by name rather than by a parent count — a depth index resolves silently to the+#: wrong directory when a module moves, which is exactly the failure this whole track kept hitting.+_TESTS_ROOT = next(parent for parent in Path(__file__).resolve().parents if parent.name == "tests")+_REPO_ROOT = _TESTS_ROOT.parent+_HUB_LAYERING_PAGE = _REPO_ROOT / "docs" / "contribute" / "hub-layering.md"++def _run_closure(*, entry_point: str) -> subprocess.CompletedProcess[str]:"""Import one entry point in a fresh interpreter and return the detector's verdict."""try:return subprocess.run( # noqa: S603- [sys.executable, "-c", _CLOSURE_SCRIPT, entry_point],+ [sys.executable, "-c", _CLOSURE_SCRIPT, entry_point, *INTERPRETER_PACKAGES],capture_output=True,text=True,check=False,@@ -147,3 +179,39 @@ class TestHubImportClosure:else:assert "closure OK" not in result.stdoutassert "interpreter module(s)" in result.stdout++ def test_every_configured_interpreter_package_is_real(self) -> None:+ """Each name in `INTERPRETER_PACKAGES` is a real top-level package under `pipelex/`.++ `DIRTY_ENTRY_POINT` proves that *at least one* configured name matches — it imports the+ interpreter hub, whose closure contains several of them. It cannot prove that each one does.+ A typo'd or retired name matches nothing and guards nothing, forever, while the suite stays+ green; and since the predicate is a membership test, a dead name is invisible rather than loud.+ Being a real constant makes the names lint-visible, but no tool checks a string against disk.+ """+ source_root = _REPO_ROOT / "pipelex"+ for package in INTERPRETER_PACKAGES:+ assert (source_root / package).is_dir(), (+ f"INTERPRETER_PACKAGES names {package!r}, which is not a package directory under "+ f"{source_root}. The predicate is a membership test, so this name silently matches "+ f"nothing rather than failing — every module it was meant to flag now passes."+ )++ def test_the_interpreter_package_set_matches_the_documented_one(self) -> None:+ """The closure predicate and `hub-layering.md`'s verification snippet name the same packages.++ The page publishes a runnable snippet with its own copy of this set, and a reader who runs it+ with a stale copy measures zero interpreter modules and believes it. The two copies had in fact+ silently disagreed on `pipe_signature` before anyone compared them by machine.+ """+ page = _HUB_LAYERING_PAGE.read_text(encoding="utf-8")+ match = re.search(r"^INTERPRETER = (\{.*\})$", page, re.MULTILINE)+ assert match is not None, f"could not locate the INTERPRETER set in {_HUB_LAYERING_PAGE}"+ documented = set(ast.literal_eval(match.group(1)))+ configured = set(INTERPRETER_PACKAGES)+ assert configured == documented, (+ f"the closure predicate and {_HUB_LAYERING_PAGE.name} disagree on the interpreter packages.\n"+ f" only in the closure test: {sorted(configured - documented)}\n"+ f" only in the doc snippet: {sorted(documented - configured)}\n"+ "Both must gain a new interpreter package together, or one of the two checks passes vacuously."+ )diff --git a/tests/unit/repo/test_test_durations_paths.py b/tests/unit/repo/test_test_durations_paths.pynew file mode 100644index 000000000..f85bb99ca--- /dev/null+++ b/tests/unit/repo/test_test_durations_paths.py@@ -0,0 +1,53 @@+"""Guards the committed `.test_durations` bookkeeping artifact against a bulk path rewrite.++`.test_durations` maps every test node id to how long it took, and pytest-split reads it to balance the+CI shards (`make gha-tests` with `SPLITS`/`GROUP`; regenerate with `make store-test-durations`). It is+generated, committed, and touched by nobody — which is exactly why a bulk rewrite of test paths (a+package move, a sed over `tests/`) walks straight past it: the file still parses, the shards still run,+and they silently unbalance because entries for files that no longer exist can never match a test again.++The gate is on the **file path**, not the node id. A path rewrite breaks paths; parametrization churn+breaks node ids and is benign — a parametrization keyed on a generated fixture legitimately drifts+between runs, and pytest-split treats an unknown id as average duration. Pinning node ids would need a+full unfiltered collection plus a tolerance policy for those; pinning paths is a filesystem check with+no policy at all, and it catches the failure that actually costs something.+"""++from __future__ import annotations++import json+from pathlib import Path+from typing import cast++#: Anchored on `tests/` by name rather than by a parent count — a depth index is silently wrong from the+#: workspace root, which holds a sibling `pipelex/` checkout (see `test_hub_layering_guard.py`).+REPO_ROOT = next(parent for parent in Path(__file__).resolve().parents if parent.name == "tests").parent++DURATIONS_PATH = REPO_ROOT / ".test_durations"+++def _recorded_durations() -> dict[str, float]:+ """The committed node-id → seconds map."""+ return cast("dict[str, float]", json.loads(DURATIONS_PATH.read_text(encoding="utf-8")))+++class TestTestDurationsPaths:+ def test_durations_file_is_committed_and_not_empty(self) -> None:+ """Anti-vacuity: an empty (or absent) map would make every assertion below trivially true."""+ assert DURATIONS_PATH.is_file(), f"{DURATIONS_PATH.name} is committed at the repo root — regenerate it with `make store-test-durations`"+ assert _recorded_durations(), f"{DURATIONS_PATH.name} is empty — regenerate it with `make store-test-durations`"++ def test_every_node_id_is_rooted_in_a_test_file_path(self) -> None:+ """The path extraction below is only meaningful while every key really starts with one."""+ malformed = sorted(node_id for node_id in _recorded_durations() if "::" not in node_id or not node_id.partition("::")[0].endswith(".py"))+ assert not malformed, f"{DURATIONS_PATH.name} holds entries that are not '<path.py>::<test>' node ids: {malformed[:10]}"++ def test_every_recorded_test_file_still_exists(self) -> None:+ """A path that no longer exists is dead weight the shard balancer can never spend."""+ recorded_paths = {node_id.partition("::")[0] for node_id in _recorded_durations()}+ dead = sorted(path for path in recorded_paths if not (REPO_ROOT / path).is_file())+ assert not dead, (+ f"{len(dead)} test file path(s) in {DURATIONS_PATH.name} no longer exist, so the CI shards are "+ f"balanced against tests that cannot run: {dead[:10]}. Regenerate with `make store-test-durations` "+ "(alias `make std`), or drop the stale entries."+ )diff --git a/wip/drift-contracts/README.md b/wip/drift-contracts/README.mdindex 2ca832ada..da4cb21fd 100644--- a/wip/drift-contracts/README.md+++ b/wip/drift-contracts/README.md@@ -4,5 +4,6 @@ Working notes for the drift-contracts system (the shipped system itself is docum- **`phase-3-verdict.md`** — the pilot verdict working doc: per-contract keep/narrow/mechanize/drop rulings, trigger repairs, new contracts, derived-check adoption. **The live document — awaiting Louis' rulings.**- **`dogfood-log.md`** — one mandatory entry per `drift ack` (real-catch / clean-pass / friction). The pilot's primary evidence stream; stays mandatory per the verdict doc's E3.+- **`ack-record-gaps.md`** — two gaps in `.drift/acks/*.toml` as a data model, both found on a merge: the ack has no merge semantics (a merge invalidates both parents' acks by construction), and `--by`'s git-user default silently overwrote deliberate reviewer identities on every contract. Carries DECISION M1/M2 — **rule on these alongside the verdict doc**, since both get worse as the manifest grows.Campaign-side evidence (the Drift Hunt) lives in `../drift-hunt/findings/SUMMARY.md` — its Handoff 1 is the drift-contract shortlist the verdict doc consumes.diff --git a/wip/drift-contracts/ack-record-gaps.md b/wip/drift-contracts/ack-record-gaps.mdnew file mode 100644index 000000000..8e7e7a05f--- /dev/null+++ b/wip/drift-contracts/ack-record-gaps.md@@ -0,0 +1,100 @@+# Drift contracts — two gaps in the ack record++**Status: for ruling.** Two findings about `.drift/acks/*.toml` as a *data model*, both surfaced on 2026-07-29 while merging `dev` into `refactor/Hub-2` (merge commit `647f97881`). Neither is about whether a contract is worth keeping — that is the [phase-3 verdict](phase-3-verdict.md)'s question — so they are recorded here rather than inserted into a doc that is already awaiting rulings. Both want a decision before the verdict's Phase V1 manifest wave, because both get worse as the manifest grows.++Finding 1 is logged in the [dogfood log](dogfood-log.md) under its 2026-07-29 `cli-docs` entry. Finding 2 is not — it is a property of the registry, not of any one ack.++## Finding 1 — the ack registry has no merge semantics++### What happened++Merging `dev` into `refactor/Hub-2` conflicted on `.drift/acks/cli-docs.toml`. Both branches had acked the same contract; the file holds exactly one ack; the two sides carried different digests *and* different `trigger_files` blob maps. Resolving to either side would have left a file that looks like a valid ack and is not, because the merged trigger content is a third thing that equals neither parent's. The contract necessarily reopened, and `drift plan` presented the union of both branches' changes — the entire modularity sweep, 26 files under `pipelex/cli/**` — as unreviewed, despite three prior acks on that branch having already covered it.++### Why this is structural, not a bug in the merge++The digest is a claim about a **whole tree state**: `compute_contract_digest` hashes the contract definition plus the *complete* `trigger_files` map (every matched trigger's blob OID, not just the changed ones). A claim of that shape can only ever be true of one linear history. A merge produces a tree that is neither parent, so — outside a fast-forward, where the ack and the tree stay consistent by construction — **the merge invalidates both parents' acks by definition**. There is no resolution that preserves either.++Two distinct shapes, worth separating because only one of them is visible:++- **Both branches acked the same contract** → textual conflict in the ack file. Loud, and the resolver is forced to think. This is what happened here.+- **Only one branch acked, the other merely touched triggers** → git auto-merges the ack file cleanly, no conflict, and the contract silently reopens at the next `drift check`. Still fail-loud at check time, but the merge itself gives no signal.++The trap in the first shape is worth naming precisely: `git checkout --ours/--theirs` on an ack file produces a plausible-looking record whose `rationale` describes a review of *one branch's* changes while its digest is stale. `drift check` catches the stale digest, so this cannot ship silently — but a resolver who takes a side and moves on has written a misleading rationale into a permanent record, and only the digest saves them. **The safe resolution is to treat any conflicted ack file as garbage, complete the merge, then re-review and re-ack.** That is what this merge did.++### The cost++Any long-lived branch pays a contract's full review cost again at **every** merge from its base, for every contract whose triggers either side touched. With `N` contracts and `M` merges the branch pays up to `N × M` reviews, and the overwhelming majority re-present already-reviewed work. The verdict doc's Phase V1 raises `N` from 4 to 6 and repairs triggers to widen two of them, so this multiplies rather than staying flat.++### Why it still is not a defect++Reopening is the conservative answer and the right default. The merged state genuinely has not been reviewed *as a whole*, and the one thing that must never happen — a stale ack passing `drift check` — does not happen. The complaint is about proportionality, not correctness.++### It is the same problem the content-aware digest already solves++Measured on this merge, over the 26 changed triggers (`git diff dev HEAD`, filtering `from`/`import` lines):++| | files |+|---|---|+| import-line changes only | **19** |+| substantive changes | **7** |++The 7 substantive ones carry three distinct changes in total, all already reviewed on the branch: the `PipelexInterpreter` → `MthdsParser` rename, the matching `PipelexInterpreterError` → `MthdsParserError` rename (which also re-keys one `AGENT_ERROR_HINTS` entry), and `build_registrar` gaining `builtin_plugins` / `core_unconditional_plugin_names`.++So a digest that ignored diffs confined to `import` / `from` statements — the narrowing the `config-docs` entry of 2026-07-28 proposes on independent grounds, and which the `cli-docs` clean-pass entries have been building toward for seven consecutive openings — would have reduced this merge's reopening from 26 files to 7, and would have made the *merge* case nearly free without weakening the contract in any of its recorded real-catches. **The two proposals are the same lever.** That is the load-bearing point for the verdict: merge friction is not a separate problem needing separate machinery, it is the strongest single argument for a narrowing already on the table.++### Options++1. **Do nothing.** Accept re-review at every merge. Honest, and cheap while `N` is small and branches are short-lived; the modularity track shows neither assumption holds.+2. **Adopt the content-aware digest** (already proposed for other reasons). Does not eliminate merge reopenings — it makes the common refactor-sweep case collapse to near-nothing. **Recommended**, because it is one change buying two wins.+3. **Teach the ack a merge rule** — e.g. an ack could store the commit it was recorded at, and `drift check` could treat a contract as still-acked if every trigger's content at HEAD is reachable from an acked state on some parent. This is real work, it re-implements a chunk of merge-base reasoning, and it trades a loud correct answer for a subtle one. **Not recommended** on the clean-solid rule; revisit only if (2) lands and merge friction is still material.+4. **Document the resolution protocol** regardless of the above: a conflicted ack file is never resolved by picking a side. One paragraph in `docs/contribute/drift-contracts.md`. **Recommended and independent** — it costs nothing and closes the misleading-rationale trap.++- [ ] **DECISION M1 (Louis):** confirm option 2 is folded into the content-aware-digest ruling rather than tracked separately, and option 4 is written up.++## Finding 2 — `--by` silently overwrites a deliberate reviewer identity++### The evidence++`make drift-ack` writes the whole ack file, and `--by` defaults to `get_git_user_name`. So a re-ack by a different actor relabels the record with no prompt and no diff worth noticing. That is not hypothetical — it already happened to **every contract in the registry**:++| contract | 2026-07-27 | current |+|---|---|---|+| `cli-docs` | `Claude (Opus 5 1M context)` | `Louis Choquel` |+| `config-docs` | `Claude (Opus 5)` | `Louis Choquel` |+| `hub-layering-convention` | `Claude (Opus 5 1M context)` | `Louis Choquel` |+| `keyword-only-convention` | `Claude (Opus 5)` | `Louis Choquel` |++The three flips landed in `41341a227` (#1067) and the fourth in `cee4588b5` (#1069). The registry now reads as uniformly human-reviewed, and that uniformity is an artifact of the default, not a record of who reviewed anything.++### Why this is sharper than "a default that is sometimes wrong"++The dogfood log already predicted it. The fourth `hub-layering-convention` entry (2026-07-27) records deliberately *setting* agent attribution and closes: *"If the pilot keeps agents in the loop, `--by` should probably not default to the committer."* The prediction came true within a day — and the mechanism is worse than a bad default, because it **erases a value someone chose on purpose**. An ack is the pilot's primary evidence stream; `reviewed_by` is the field that says whether a human or an agent produced that evidence, which is precisely the question a pilot about review obligations needs to answer. A field that silently reverts cannot answer it.++Note the second-order effect: this is now the **third** instance of the pattern the log keeps recording — an ack's own edits containing an error that a later review catches (cf. the fourth and ninth `hub-layering-convention` entries). Here the error is in the *registry* rather than in a rationale or a comment, and nothing in the machinery re-reads it at all.++`reviewed_by` is **not** part of the digest (`compute_contract_digest` hashes only the contract definition and `trigger_files`), so it can be corrected by hand at any time without invalidating an ack. That makes the fix cheap and the regression cheap to undo.++### Options++1. **Drop the `get_git_user_name` default** — make `--by` required. Loud, one-line change, forces the question at every ack. Slightly annoying for the human case.+2. **Keep the default, add an agent-aware override** — e.g. `drift ack` reads an env var the agent harness sets, falling back to git user. Correct attribution with no ceremony for humans; needs the harness to actually set it. **Recommended.**+3. **Keep the default, make the skill always pass `--by`.** Cheapest — the `drift-review` skill is what agents actually invoke, so putting `--by` in the skill's ack step fixes the observed failure mode without touching the CLI. Weaker than (2): it fails open for any agent that acks without the skill. **Recommended as the immediate step** regardless of (1) or (2).++- [ ] **DECISION M2 (Louis):** pick an option, and decide whether to restore the four clobbered attributions. Restoring is a hand-edit of four `reviewed_by` lines and does not touch any digest — but the reviews behind `41341a227` / `cee4588b5` were, on my reading of that work, agent reviews, and re-attributing someone else's merged records is your call, not mine.++## What was changed, and what was not++In the merge commit `647f97881`:++- The `cli-docs` ack was re-recorded after an actual review (not a rubber-stamp — targets checked against the live CLI on both sides), with the dogfood-log entry Finding 1 comes from.+- `reviewed_by` on that ack was left at the `Louis Choquel` default, on the reasoning that the registry was uniform and consistency should not be broken unilaterally.++After it, while writing this doc:++- **That reasoning turned out to be wrong** — the uniformity *was* the regression in Finding 2, which only surfaced when the ack history was traced. `reviewed_by` on the `cli-docs` ack is now `Claude (Opus 5 1M context)`, matching what that same ack carried on 2026-07-27 and matching who actually performed the review. `drift check` still passes, confirming the field is outside the digest.+- The 2026-07-29 dogfood-log entry said *"23 of the 26 triggers changed by import line alone"*. The measured figure is **19**; the entry is corrected. The original number was asserted from a partial reading of the diff rather than counted, and a first attempt at counting it used a `pipelex/cli/**/*.py` pathspec that silently skips files sitting directly in `pipelex/cli/`. Recorded because this log's standard is that an ack's own output gets checked like anything else — and because the near-miss is a reminder that `**/` globs in a hand-written verification command are not the same set as the contract's own matcher.++Deliberately not done:++- No change to the other three acks' `reviewed_by` — see DECISION M2. Those are attributions on already-merged work, and re-labelling someone else's review record is not a call to make unilaterally.+- No change to `drift.toml`, the digest algorithm, or the ack model. Both findings are proposals for the verdict, not fixes to apply ahead of it.diff --git a/wip/drift-contracts/dogfood-log.md b/wip/drift-contracts/dogfood-log.mdindex a1f3c5101..7bc17dfd6 100644--- a/wip/drift-contracts/dogfood-log.md+++ b/wip/drift-contracts/dogfood-log.md@@ -17,4 +17,18 @@ One entry per ack. Verdicts: **real-catch** (the review found actual staleness),- **2026-07-26 · hub-layering-convention · clean-pass (initial)** — **new contract**, added on Louis' explicit say-so after being built, verified, and deliberately reverted at H-2. Triggers are the layering guard plus both hub modules; review target is `docs/contribute/hub-layering.md`. No verify command: `check-hub-layering` already gates `make check` and CI, so re-running it pre-ack would add the unstaged-file hard error without adding a guarantee. Initial review was mechanical rather than a read-through — extracted all 65 public module-level symbols from the two hubs and confirmed every one appears in the doc's partition tables, then imported `RUNTIME_LAYER_PACKAGES` from the guard and confirmed all 11 declared packages are named in Enforcement. Both checks are cheap and repeatable; whoever reviews this contract next should run them rather than re-read the tables. Deliberately **not** made a trigger: `tests/unit/pipelex/test_runtime_layer_import_closure.py`, even though the doc has a section on it — that stays within the scope Louis approved, and it is the obvious first candidate if this contract ever proves under-triggered. Watch item for the pilot verdict: both hub modules are type-annotated with most of the tree, so a *type move* elsewhere edits their import blocks and opens this contract — the same import-churn shape logged four times above. If that is what its first few openings look like, this contract is evidence for the content-aware digest, not against it.- **2026-07-27 · hub-layering-convention · real-catch** — first opening after the initial baseline, and it **answers that entry's watch item in the negative**: this was not the import-churn shape. Both triggers changed semantically — the guard's declared runtime layer gained `pipelex.runtime_hub` (closing a gap where the module at the centre of the rule was exempt from it), and `runtime_hub.py` shed write-only class-registry state. The review found four stale claims in `docs/contribute/hub-layering.md`, none of which the contract's two prescribed mechanical checks can see: they verify *coverage* (every hub symbol appears, every declared package is named) and are blind to a covered claim being **false**. Three of the four were exactly that — a compliance claim that read as a claim about the property when the guard only checks direct imports; a "the one module not covered" sentence wrong on both halves; and a leaf-import rule whose stated criterion contradicts two of its three in-tree importers. That is the case *for* a prose review target with a human-or-agent reader, and the sharpest evidence in this log that the mechanical checks are a floor, not the review. Note also what this says about the content-aware-digest recommendation running through the entries above: it would have opened this contract too (the trigger diffs are code, not imports), so the recommendation costs nothing here — the two are not in tension.- **2026-07-27 · hub-layering-convention · real-catch (second)** — opened by a *behavioral* guard change, the second consecutive non-import-churn opening for this contract: `_is_type_checking_test` matched `ast.Attribute(attr=...)` with an unconstrained receiver, so any `settings.TYPE_CHECKING:` block claimed the layer-rule exemption; the attributed form is now rooted at `typing`. The doc's carve-out bullet was under-specified rather than false, and needed the constraint stated. **The more interesting half is what the review caught that the triggers cannot see.** The same commit hardened both test modules the review target has sections on — the closure test gained a negative control and a subprocess timeout, the lifecycle test now pins the real `Pipelex.teardown` instead of a stand-in — and *neither test file is a trigger*, deliberately, per the initial baseline entry above. So the contract fired on the guard and the review then found staleness caused by changes it is structurally blind to. Two readings, and the honest one matters: this is **not** an argument for adding the test modules as triggers (the initial entry's scoping decision was Louis', and the spillover was caught anyway), but it *is* evidence that a review target's value is bounded by what a reviewer reads, not by what opened the contract. A narrower trigger set that had stayed closed here would have shipped two stale doc sentences.+- **2026-07-27 · cli-docs · clean-pass** — opened by a single trigger, `pipelex/cli/commands/plugins_cmd.py`, and this one is **not** the import-churn shape the four entries above complain about: the command's call actually changed, `build_registrar(config=…)` → `build_registrar(config=…, builtin_plugins=…, core_unconditional_plugin_names=…)`, because discovery stopped importing the built-in list so the runtime-layer plugins package could stay importable without the interpreter. A command module that changes how it builds what it prints is squarely the coupling this contract exists for, so the opening was proportionate — and a content-aware digest would rightly have opened it too. Reviewed against the *live* CLI: `pipelex plugins --help` still exposes only `list` with no options, and `plugins list` still prints the same five columns with all 19 built-ins in the same order and the same core-unconditional set as before the split, so nothing about the surface moved. Both targets carry zero references to the plugins command or to any Python import path. **Fifth consecutive clean-pass for cli-docs**, but the first on a genuinely behavior-adjacent trigger rather than a sweep — which cuts *against* narrowing this contract: the openings worth preventing are the sweeps, and this was not one.+- **2026-07-27 · hub-layering-convention · real-catch (third)** — third consecutive opening for this contract, third that is not import churn, and the first where **the change's whole purpose was to falsify the review target**. The guard gained a transitive rule (resolve the module-level import graph of `pipelex/`, flag any runtime-layer module that *reaches* `interpreter_hub`), which retires two things the doc said in prose: the paragraph conceding the guard "does not follow the import graph", and the Known-inversions block measuring four `pipelex.plugins` modules that breached through it. Both were accurate when written and became false the moment the remedy landed — so the contract worked here as **promise retirement**: a doc that honestly records a known defect *and* the planned fix accrues a debt that only a trigger can call in. Neither of the contract's two prescribed mechanical checks can see that class of staleness (they were re-run and both passed, unchanged: 33 + 32 hub symbols covered, all 12 declared packages named) — same finding as the previous two entries, now three for three. Worth noting for the pilot verdict: this opening also came with real spillover the triggers cannot see — the closure test gained an entry point and `PipelexPlugin`'s docstring gained the one-plugin-one-layer contract, neither file a trigger — and again it was caught only because the reviewer read past the diff.+- **2026-07-27 · hub-layering-convention · real-catch (fourth)** — opened by a code review hardening the transitive rule the previous entry logged, and it is the first opening where the staleness ran in **both** directions at once. Two doc claims were false because the *code* was weaker than the prose: the page promised rule 3 has "no escape hatch" while a `# hub-layering: ignore` on a direct import silently exempted the whole module from it, and it described a graph that models what an import loads while the graph skipped every ancestor `__init__.py` Python executes on the way. Neither was fixed by editing the doc — the code moved to meet it (the marker now removes the edge; ancestors are edges), and the doc gained only the sentences needed to state the new truth precisely. A third change went the other way: the rule now raises rather than reporting zero when it cannot find the hub module in the graph, which is a *new* guarantee the doc had no claim about, and got a paragraph. The review also caught two errors in prose the previous ack had signed off on — a registry attributed to the wrong hub, and an H2 inserted mid-section that reparented core's provider-injection convention under the plugins heading. **That is the finding worth recording for the pilot verdict.** Three consecutive acks on this contract have now been recorded by an agent, each with an honest, detailed rationale, and this one still found two errors inside the immediately preceding one. The rationale field is a genuine review record, but it is not self-checking: nothing in the drift machinery re-reads a rationale against the page it signs. The mechanical checks passed unchanged for the fourth time running (33 + 32 hub symbols covered, all 12 declared packages named) and were blind to all of it, as in the three entries above. Related process note: this ack's `reviewed_by` had come out as the git user (`make drift-ack` defaults to `get_git_user_name`), attributing an agent review to a human; corrected here and on `cli-docs` to match the other two acks in the registry. If the pilot keeps agents in the loop, `--by` should probably not default to the committer.+- **2026-07-27 · hub-layering-convention · real-catch (fifth)** — opened by a fix for a PR-review bot finding, and notable for *where in the pipeline the finding came from*. The four openings above were all driven by a human-or-agent review of the change itself; this one came from Greptile on the PR, after local gates, CI and a full `/code-review` pass had all gone green — a fourth defect of the same class (rule 3 green while the boundary is broken), this time a module-level `importlib.import_module("pipelex.interpreter_hub")` in an intermediary creating no graph edge. Two readings worth keeping. First, the contract behaved correctly as a *ratchet*: the fix touched a trigger, the contract opened, and the doc genuinely did need three edits, because the page states rule 3's carve-outs and its string-matching scope in prose that the fix falsified. Second, and more useful for the pilot verdict: **five consecutive real-catches for this contract, and none of them was the import-churn shape the earlier entries in this log complain about.** Whatever the case for a content-aware digest across `config-docs` / `cli-docs` / `keyword-only-convention`, it does not extend here — `hub_layering_guard.py` is a module whose every substantive edit changes what the review target claims, which is the shape a drift contract is *for*. If the pilot narrows contracts, this one should be left alone.+- **2026-07-27 · hub-layering-convention · real-catch (sixth)** — opened by M3 of the modularity track: the pipe-kind registration manifest moved out of `core/` into a new top-level `pipelex/pipe_machinery/`, which edits only the guard's `RUNTIME_LAYER_PACKAGES` *note* (the declaration tuple is unchanged). By the taxonomy running through this log that is the weakest opening shape yet — a comment-only trigger diff, the shape the `keyword-only-convention` entries above call friction — and it still turned up four stale places, three of them **outside** the paragraph the trigger diff touched: the "Where core splits" Pipe-machinery list and the Known-inversions line both still named `core.registry_models` as a module that imports the interpreter directly, and, more importantly, two *enumerations of the interpreter packages* went stale — the "`runtime_hub` must not name anything from …" list under "Why the boundary exists", and the `INTERPRETER` set inside the page's own verification snippet. That second one is the finding worth recording: the snippet is the doc's copy of a predicate that also exists in the closure test and in the design doc's classification snippet, and all three must gain a new interpreter package together or a check passes vacuously. A reader following the page's instructions with the stale set would have measured zero interpreter modules and believed it. So the verdict is real-catch, not friction, and the reason is a property of the *target*, not the trigger: this page embeds executable predicates, which go stale on any change to the set of interpreter packages regardless of how small the trigger diff was. The two prescribed mechanical checks passed unchanged for the fifth consecutive time (33 + 32 hub symbols covered, all 12 declared packages named) and were blind to all four, consistent with every entry since the baseline. **Sixth consecutive real-catch for this contract**; the recommendation in the entry above — leave this one alone if the pilot narrows contracts — now has a case where even a comment-only diff justified the opening.+- **2026-07-27 · cli-docs · clean-pass** — opened by M1a of the modularity track: 17 `pipelex/cli/**` triggers, every one changed by import rewrite alone as the MTHDS parser left `core/`. This is the sweep shape the entries above argue a content-aware digest should suppress, and the verdict is the sixth consecutive clean-pass for this contract. Reviewed against the *live* CLI rather than by reading: `pipelex-agent validate bundle <broken>.mthds --format json --error-format json` still emits the documented envelope unchanged. **One finding worth recording even though nothing was stale.** The change renames an error class, and `error_type` is the field clients branch on — so the natural worry is that a documented wire value moved. It did not, on this channel: the parser error is translated at `pipeline/validate_bundle.py:132`, so `error_type` is `ValidateBundleError` before and after, and the renamed `MthdsParserError` surfaces only in `error_source`, the internal stack-frame array both targets already describe as JSON-only. That is still a wire-visible rename on a documented field, and it is *not* the one the release sweep is tracking (four TypeScript consumers branch on the untranslated channel's value) — so the review's value here was establishing which channel breaks and which does not, a question neither target answers and neither trigger diff shows.+- **2026-07-27 · hub-layering-convention · real-catch (seventh)** — opened by M1a hoisting `core/interpreter/` + `core/bundles/` into `pipelex/mthds_parsing/`, again a note-only trigger diff (the declaration tuple is unchanged), and again — exactly as the sixth entry predicted — the *enumerations* were the staleness. Four of the page's five edits are enumeration sites: the must-not-name list, the verification snippet's `INTERPRETER` set, the "Where core splits" Pipe-machinery list, and Known-inversions. The prediction in the previous entry ("expect the same pair in M1a") held verbatim, which makes this the first opening on this contract that was *anticipated in the log and then confirmed* — evidence the failure mode is structural to the page, not incidental. **The new half is a claim retirement the trigger diff does not contain.** The transitive-rule paragraph listed `core.bundles.exceptions` among the homes "the predicate deliberately cannot name yet", because its validation-error data landed in every runtime closure via `pipeline/`. M1a fixed that straddler rather than inheriting it: `PipelexBundleBlueprintValidationErrorData` moved to `pipelex.core.exceptions` beside its two sibling error-data models, which let `INTERPRETER_CORE_EXCLUDED` be deleted outright and `mthds_parsing` be named in the predicate with no exclusion. So the doc had to *retire a conceded defect*, the same promise-retirement shape as the third entry above — and, as there, neither prescribed mechanical check can see it (both passed unchanged for the sixth consecutive time: 33 + 32 hub symbols covered, all 12 declared packages named). Methodological note for whoever holds this contract next: the matched triple was verified **by script** this time — extract `INTERPRETER_PACKAGES` from the closure test's dedented script string, `INTERPRETER` from this page's snippet, `I` from the design doc's, assert set equality — after the sixth entry found they had silently disagreed on `pipe_signature`. Do that rather than reading three lists side by side; it is ten lines and it is the only check that catches the failure this page keeps having.+- **2026-07-27 · cli-docs · clean-pass** — second opening from the same refactor track and the same cause as the entry above: 11 `pipelex/cli/**` triggers, one import line each, this time the renderers following `core.pipes.rendering` → `pipe_machinery.rendering`. **Seventh consecutive clean-pass**, and the sharpest data point yet for the content-aware-digest recommendation: the *same* mechanical sweep opened this contract twice in one afternoon, on two disjoint file sets, for two verdicts of "nothing stale". Reviewed against the live CLI for the affected command families rather than by reading (`pipelex build inputs --help`, `pipelex codegen inputs --help`), which is the only check that could have caught a real regression, and it cost more than the finding was worth — the honest cost/benefit for this contract on refactor sweeps, recorded as such.+- **2026-07-27 · hub-layering-convention · real-catch (eighth)** — the trigger diff this contract was designed for: `RUNTIME_LAYER_PACKAGES` itself changed, six `pipelex.core.*` entries collapsing to one `pipelex.core`. Five stale places, and the pattern from the previous two entries held for the third time running — **the enumerations are where this page rots**, and two of the five were not in the paragraph the trigger diff touches: "The layer rule" under Enforcement still listed all six core entries and closed by pointing at an explanation of why `core/` is listed package-by-package, and the must-not-name list still trailed "…or the Pipe-touching modules of `core.pipes`", now an empty set. **The half worth recording is what M1c did about it rather than what it found.** The gap this contract's own sixth entry flagged — that nothing binds the three copies of the interpreter-package set, which is why they had silently disagreed on `pipe_signature` — is now closed by two tests instead of a drift contract: they parse `INTERPRETER_PACKAGES` back out of the dedented script string and assert every token is a real package directory, and that the set equals this page's snippet. Both mutation-checked red. That is a better answer than adding the closure test as a trigger, because it converts a review obligation into a mechanical one, and it retires the standing worry that `DIRTY_ENTRY_POINT` only ever proved *some* token matched. Note the boundary of the fix: the design doc's third copy is not asserted, since `wip/` gets archived at track end, so that one stays a manual concern — a real limit, recorded rather than papered over. Eight consecutive real-catches; the recommendation to leave this contract alone if the pilot narrows contracts stands.+- **2026-07-28 · hub-layering-convention · real-catch (ninth)** — the M1 checkpoint review round, and the first opening in this track where **`runtime_hub.py` is itself in the trigger diff**. That matters because of what the *previous* ack missed. The rule is stated in two places — `docs/contribute/hub-layering.md` (the review target) and `runtime_hub.py`'s docstring (a trigger) — and the eighth entry above rewrote the doc copy while the source copy stayed stale, naming two packages M1a had deleted and omitting the four current ones. It stayed stale for a structural reason worth naming: **a trigger file is never a review target**, so the source-side twin of a documented rule carries no review obligation at all; it only gets read when some *other* change happens to touch it. Three of the four checkpoint reviewers found it independently. Second finding, and the sharper one: the previous ack's own edit to the guard note **introduced** a false claim — "measured: every `pipelex.core.*` module loads zero interpreter modules" — where the pre-M1 note had said the honest opposite. Measured: `core.pipes.pipe_output` loads `pipeline.pipeline_models`, `runtime_hub` also loads `pipe_run.pipe_run_mode`; the claim holds only under the closure predicate's deliberate carve-out, which line 228 of the review target states plainly two paragraphs away. So an ack rewriting a trigger to match its target wrote a claim the target already contradicted. This is the **second** time an ack's own edits contained an error caught by a later review (cf. the fourth entry, "nothing in the drift machinery re-reads a rationale against the page it signs") — and this time the error was not in the rationale but in the *code comment the ack edited*, which is worse, because the rationale is read once and the comment is read forever. The two prescribed mechanical checks passed unchanged for the seventh consecutive time and were blind to all of it. **Ninth consecutive real-catch**; the standing recommendation to leave this contract alone if the pilot narrows contracts stands, but the log now also supports a narrower proposal: when a review target's claim is mirrored in a trigger file's prose, the ack should be required to diff *both* copies, because only one of them is ever reviewed.+- **2026-07-28 · config-docs · friction (candidate)** — opened by M2 moving the seventeen built-in vendor adapters out of `pipelex/plugins/` into `pipelex/providers/`, which re-pathed exactly four import lines in `config_cogt.py`. No config field, default, validator, TOML key or section name changed; the four vendor config classes moved intact rather than being edited. The review target is `docs/configuration/**/*.md`, and grepping the whole tree for both module paths and all four config class names returns **zero hits** — those pages document TOML sections and keys and cite no Python import path anywhere, so an import-path move is invisible to them *by construction*, not by luck. That is the distinction between this entry and the clean-passes above: a clean-pass means the review could have found something and did not, this one means the trigger and the targets cannot interact. Second such opening on this contract from a pure refactor sweep (cf. 2026-07-11), and both were import-line-only. Concrete narrowing proposal, now that there are two data points: this contract's digest could ignore diffs confined to `import`/`from` statements, which would have suppressed both openings without weakening it — every real catch it has recorded involved a field, default or key.+- **2026-07-28 · hub-layering-convention · real-catch (tenth)** — M2, and the first opening whose trigger is a package being **added** to `RUNTIME_LAYER_PACKAGES` rather than removed or collapsed. Five stale places, and for the fourth consecutive time **the enumerations were the rot** and two of them sat well away from the paragraph the diff touched: the layer-rule enumeration under Enforcement listed seven packages where there are now eight, and the fixed worked example under Known inversions still pointed at `plugins/builtins.py`. The load-bearing edit was different in kind, though, and it is the one to record: "Where the built-in plugins split" asserted that `pipelex/plugins/` is where the runtime-port adapters live — a sentence M2 makes flatly false — and rewriting it forced the page to separate **two splits it had been conflating**. Mechanism-vs-adapters does not cross a layer at all (both packages are runtime-layer; the split exists to make the one-way dependency legible), while runtime-vs-interpreter does. A page about layering had been using one section to describe a non-layer boundary, which is exactly the confusion that makes a reader mis-place the next plugin. **The finding no check could see, and the reason it was found.** `_SUBSYSTEM_SECTIONS` in `error_pages_generator.py` keys on a module's *second dotted segment*, so moving the vendors from `plugins` to `providers` silently reclassified every vendor error page out of "Inference & providers" into the fallback "Platform & tooling" macro — a user-facing regression, wire-invisible, with `make gep` exiting 0 and producing a plausible diff either way. This is the **identical shape** to the `mthds_parsing` regression M1's review round found three weeks ago, and it was caught this time only because M1's recorded lesson was to *read* the generated diff instead of trusting the exit code. A lesson written down and then paying off on the next occurrence of its own failure mode is the strongest evidence in this log that the review obligation is worth its cost. The three prescribed mechanical checks (8 declared packages named under Enforcement, 27 + 22 hub accessors covered, matched triple equal by script) passed unchanged and were blind to all six findings — eighth consecutive time. **Tenth consecutive real-catch.**- **2026-07-28 · cli-docs · real-catch** — first opening for this contract that was *not* a mechanical sweep, and the first that caught real staleness. Triggers were two `build output` help strings: the group help in `build/app.py` advertised "(JSON, Python, or TypeScript)" while `--format` accepts `json|python|schema` (passing `typescript` errors out), and `method_cmd.py`'s `--format` help lacked the TypeScript/Zod parenthetical its `pipe`/`bundle` siblings carry. Reviewing `docs/tools/cli/` against them found `docs/tools/cli/build/index.md` describing the command as "Generate example output JSON for a pipe" — written before `python` and `schema` existed, and stale in the same direction as the help string that opened the contract. `build/output.md` was already accurate (all three subcommands list the three formats; TypeScript is consistently framed as a downstream use of `--format schema`), and `agent_cli/CLAUDE.md` has no `build` command at all, so it was structurally out of scope. Both stale strings fixed before the ack. Worth recording against the four consecutive clean-passes above: this contract's value shows up precisely when a trigger diff is a *user-visible string* rather than an import line — which is the same distinction the content-aware-digest recommendation draws, and further evidence it would preserve the openings that matter while dropping the ones that don't. Note the finding arrived from outside the contract (a developer reported the `typescript` help lie); the contract's contribution was pulling the neighbouring doc table into the same fix instead of leaving it to rot another cycle.+- **2026-07-29 · keyword-only-convention · real-catch (eleventh)** — FU-3, and the first opening on this contract where the review target's **prose was the specification the code was changed to satisfy**, not the record that had to catch up. Line 37 had asserted since the registry landed that "the registry is machine-written and sorted by key"; nothing checked it, and the modularity track broke it three times, each found by hand well after the fact. The guard gains an `unsorted-grant` kind and the doc's claim stops being a claim. Five edits, and for the fifth consecutive entry across this log's two active contracts **the enumerations were where the page had to change and three of the five sat away from the paragraph the work is about**: the violation-kinds table under Enforcement, the hook bullet's parenthetical listing which violations are full-scan-only, and the auto-fix paragraph's list of what is never rewritten (which was already carrying only `grant-param-mismatch` and silently omitting `dead-grant`, a pre-existing gap this pass closed as a side effect). The fifth is the one worth naming: the page opens with "A signature is a violation when any of these holds", and registry order is **not** a property of any signature, so adding a sixth bullet there would have been wrong — the honest edit was a pointer line saying the registry carries one rule that is not about a signature at all. A doc whose framing sentence silently excludes a rule it later documents is a shape no mechanical check can see, and it only surfaced because the rule being added did not fit the list. **Eleventh consecutive real-catch on this contract** — but the recorded verdict is narrower than the streak suggests: the doc edits here were going to happen with or without the contract, since the whole item was "enforce what the docs claim". What the contract bought was the *sweep* — the three enumerations, which the implementing change had no reason to visit.+- **2026-07-29 · cli-docs · clean-pass** — the first entry in this log for an opening caused by a **merge** rather than by a change, and it exposes a property of the ack model nothing above has hit. Merging `dev` into `refactor/Hub-2` conflicted on `.drift/acks/cli-docs.toml` itself: both branches had acked the same contract, the file holds exactly one ack, and the two sides carried different digests *and* different trigger blobs. Resolving to either side leaves the digest wrong, because the merged trigger content is a third thing — so the contract necessarily reopens on the union of both branches' changes, and the whole modularity sweep (26 `pipelex/cli/**` files) re-presents as unreviewed despite three prior acks on this branch having covered it. **The ack registry has no merge semantics**: an ack is a claim about one linear history, and a merge invalidates both parents' claims by construction. That is not a bug — reopening is the conservative answer — but it means any long-lived branch pays the full review cost of a contract again at every merge, which belongs in the pilot verdict next to the content-aware-digest recommendation the entries above build. Note the two interact: a digest that ignored import-only diffs would have made this reopening nearly free, since 19 of the 26 triggers changed by import line alone. The review itself was cheap and mechanical, per the method recorded above — filtering import lines out of the combined diff left three real changes, all previously reviewed (the `PipelexInterpreter`→`MthdsParser` and `PipelexInterpreterError`→`MthdsParserError` renames, and `build_registrar`'s new arguments) — then both sides were checked live: dev's corrected `build output` help now agrees with the `docs/tools/cli/build/index.md` line dev fixed with it, and the agent-CLI error envelope still reports `error_type: ValidateBundleError` with `MthdsParserError` confined to `error_source`, as the target describes. One durable finding worth keeping beyond the merge question: `agent_cli/CLAUDE.md` survives an error-class rename untouched **because it names the `AGENT_ERROR_HINTS` dict instead of copying its keys** — the exact opposite of the enumeration-copying that the `hub-layering-convention` entries above show rotting on every single opening. Two targets, two contracts, same log: the page that points at its source is the one that never goes stale.diff --git a/wip/drift-contracts/phase-3-verdict.md b/wip/drift-contracts/phase-3-verdict.mdindex 3b9dbed12..23f7661d2 100644--- a/wip/drift-contracts/phase-3-verdict.md+++ b/wip/drift-contracts/phase-3-verdict.md@@ -155,6 +155,8 @@ Friction: near zero (the drift subpackage changed twice in the last month, both- [ ] **DECISION E3 (Louis):** confirm the three policy positions.+**Related, ruled separately:** `ack-record-gaps.md` carries two findings about the ack record as a data model (DECISION M1 — the ack has no merge semantics, so a long-lived branch re-pays every contract's review cost at every merge; DECISION M2 — `--by`'s git-user default silently clobbered deliberate reviewer identities on all four contracts). M1 is not independent of this doc: it resolves into the content-aware-digest narrowing the `config-docs` and `cli-docs` log entries propose, so rule the two together. Both worsen as Phase V1 grows the manifest.+## F — Execution plan (once rulings are in)**Phase V1 — manifest wave (one PR).** Apply B1 + B3 trigger repairs and add the E1 + E2 contracts to `drift.toml`; perform the initial reviews *for real* (the Phase-2-seeds precedent — note the make-targets pages were just swept and fixed by the campaign, so the first reviews should be fast but must still be genuine); record the initial acks + dogfood-log entries; update `docs/contribute/drift-contracts.md`'s contract roster and the changelog.diff --git a/wip/drift-hunt/deferred-code-findings.md b/wip/drift-hunt/deferred-code-findings.mdindex ba6dfc13d..b15ef70fd 100644--- a/wip/drift-hunt/deferred-code-findings.md+++ b/wip/drift-hunt/deferred-code-findings.md@@ -80,7 +80,7 @@ Defects the hunt surfaced whose fix belongs in **code**, not docs (Louis' Checkp**Found:** Stage 2, batch S2-2, by the adversarial verifier while refuting a fix-time candidate against `docs/building-methods/configure-ai-llm-to-optimize-methods.md` (the doc's multi-line inline tables turned out to be VALID under the shipped loader — this is the code-side residue of that refutation).-**Behavior:** all deck/bundle TOML goes through `load_toml_from_path` → `tomli` (`pipelex/tools/misc/toml_utils.py:40`, `pipelex/core/interpreter/interpreter.py:43,46`). The installed tomli 2.4.1 accepts TOML 1.1 features (newlines and trailing commas in inline tables), and both the docs' snippets and real `.mthds` content use them. But the pin is `tomli>=2.3.0` (`pyproject.toml:55`), and tomli 2.3.0 empirically REJECTS the same content ("Invalid initial character for a key part") — 2.4.0 is the first version that accepts it.+**Behavior:** all deck/bundle TOML goes through `load_toml_from_path` → `tomli` (`pipelex/tools/misc/toml_utils.py:40`, `pipelex/mthds_parsing/parser.py:43,46`). The installed tomli 2.4.1 accepts TOML 1.1 features (newlines and trailing commas in inline tables), and both the docs' snippets and real `.mthds` content use them. But the pin is `tomli>=2.3.0` (`pyproject.toml:55`), and tomli 2.3.0 empirically REJECTS the same content ("Invalid initial character for a key part") — 2.4.0 is the first version that accepts it.**Why it matters:** any environment resolving tomli to exactly 2.3.0 (permitted by the constraint) fails to parse documented deck syntax and multi-line inline tables in `.mthds` bundles generally — a version-dependent parse surface for the language itself.diff --git a/wip/hub/README.md b/wip/hub/README.mdindex b0b17f43b..88c3bae6a 100644--- a/wip/hub/README.md+++ b/wip/hub/README.md@@ -1,12 +1,13 @@# Hub layering — working docs-Working notes for the `refactor/Hub` track: splitting `pipelex.hub` into two hubs and drawing an enforced layering boundary between them.+Working notes for the `refactor/Hub` track: splitting `pipelex.hub` into two hubs and drawing an enforced layering boundary between them. **Track complete** — the repo-root `TODOS.md` tracker was archived here on 2026-07-27 once `_hub/` moved on to the `refactor/Modularity-3` track. What is left is not a phase, it is the release-gated cross-repo sweep (see the tracker's [Cross-repo sweep](hub-split-tracker.md#cross-repo-sweep) section).| doc | what it is || --- | --- |-| [`hub-split-refactor.md`](hub-split-refactor.md) | The original design rationale — why one hub was a problem, alternatives considered, the measured argument. Written before Phase 0. Where it disagrees with `TODOS.md`, the tracker wins (it carries the settled decisions and the re-measured numbers). |+| [`hub-split-tracker.md`](hub-split-tracker.md) | **The archived executable tracker** (formerly the repo-root `TODOS.md`) — every phase, checkpoint record, and the release-gated cross-repo sweep tables. Start at its "▶ Resume here" section. |+| [`hub-split-refactor.md`](hub-split-refactor.md) | The original design rationale — why one hub was a problem, alternatives considered, the measured argument. Written before Phase 0. Where it disagrees with the tracker, the tracker wins (it carries the settled decisions and the re-measured numbers). || [`layer-and-hub-renaming.md`](layer-and-hub-renaming.md) | The decision to rename the layers to *runtime* / *interpreter* and the hubs to `runtime_hub` / `interpreter_hub`, with the full rationale, the rejected alternatives, and the mechanical plan. **Landed** as its own commit after H-4. || [`hub-split-explained.html`](hub-split-explained.html) | **Read this first if you are new to the track.** A self-contained walkthrough for co-developers: what was wrong, what we built, the measured gains (import cost, agentic work, docs and plugin contract), the critical code diffs, how the boundary is enforced, what to import from where, and the cross-repo migration table. Open it in a browser — no network needed. Also published as a shareable artifact: <https://claude.ai/code/artifact/b34e68eb-3ee1-44e1-a2ca-00a7f0ac8339>. |-| [`pr-1062-review-followups.md`](pr-1062-review-followups.md) | **Pending work — start here.** The executable follow-up plan from the full `/review` pass on PR #1062: the transitive hole in the layer rule, the in-PR fixes, the test hardening, and the additions the release-gated sweep is missing. Phases A and B are applied; what is left is the F1 remedy (its own PR, after #1062 merges) and the release-gated Phase C. |+| [`pr-1062-review-followups.md`](pr-1062-review-followups.md) | The executable follow-up plan from the full `/review` pass on PR #1062: the transitive hole in the layer rule, the in-PR fixes, the test hardening, and the additions the release-gated sweep is missing. Phases A, B and the F1 remedy are applied; only the release-gated Phase C is left. |-The executable tracker is [`../../TODOS.md`](../../TODOS.md) — start at its "▶ Resume here" section. The shipped specification of the boundary is [`docs/contribute/hub-layering.md`](../../docs/contribute/hub-layering.md). The earlier single-thread triage is [`../pr-1062-review-notes.md`](../pr-1062-review-notes.md).+The shipped specification of the boundary is [`docs/contribute/hub-layering.md`](../../docs/contribute/hub-layering.md). The earlier single-thread triage is [`../pr-1062-review-notes.md`](../pr-1062-review-notes.md).diff --git a/wip/hub/hub-split-tracker.md b/wip/hub/hub-split-tracker.mdnew file mode 100644index 000000000..11c93544e--- /dev/null+++ b/wip/hub/hub-split-tracker.md@@ -0,0 +1,706 @@+# TODOS — split `pipelex.hub` into `runtime_hub` + `interpreter_hub` (archived plan)++**Worktree:** `_hub/` · **Branch:** `refactor/Hub-2` (off `6fbdcb2fd`, the #1062 merge) · **PR #1062:** [merged to `dev`](https://github.com/Pipelex/pipelex/pull/1062) 2026-07-27.++**Status: ARCHIVED — track complete.** All phases, the rename, and the full `/review` follow-up (Phases A, B and the F1 remedy) are done and merged, gates green. Archived from the repo-root `TODOS.md` tracker to this file on 2026-07-27, once `_hub/` moved on to the `refactor/Modularity-3` track (see [`wip/refactoring/modularity-refactors.md`](../refactoring/modularity-refactors.md)). What is left is not a phase — it is the release-gated [cross-repo sweep](#cross-repo-sweep), still open. **Jump to [Checkpoint A1](pr-1062-review-followups.md#checkpoint-a1-record--the-f1-remedy) first**, then [Checkpoint B record](#checkpoint-b-record--test-hardening), [Checkpoint A record](#checkpoint-a-record--pr-1062-review-follow-ups), then [▶ Resume here](#-resume-here-the-rename-is-landed) for the state they build on.++> ✅ **The `/review` follow-ups are applied except the release-gated Phase C.** The executable plan is [`wip/hub/pr-1062-review-followups.md`](pr-1062-review-followups.md) — read it before touching this branch. **Phase A** (A1's doc-honesty fix + A2–A8) at [Checkpoint A](#checkpoint-a-record--pr-1062-review-follow-ups); **Phase B** (test hardening, B1–B7, every item mutation-verified) at [Checkpoint B](#checkpoint-b-record--test-hardening); **the F1 remedy** (D-R4 = (d)+(c)) at [Checkpoint A1](pr-1062-review-followups.md#checkpoint-a1-record--the-f1-remedy). **Phase C (release-wave additions) is not started** and is gated on the release.+>+> **F1 is fixed, not just documented.** The layer rule used to be enforced one hop deep, so four modules of the *declared runtime-layer* `pipelex.plugins` package loaded `interpreter_hub` (plus 57–67 interpreter modules) with both gates green. The two leaves — the plugins whose job is to *construct* interpreter-layer objects — now live in **`pipelex/interpreter_plugins/`**, `builtins.py` is split by layer with the composition in the interpreter half, `build_registrar` takes the plugin list and the core-unconditional names as **parameters**, and the guard grew a **transitive rule** that resolves the module-level import graph of `pipelex/` and flags any runtime-layer module that *reaches* the interpreter hub. Measured after: **0 of 473** declared runtime-layer modules breaching, down from 4 of 477; `plugins.discovery` and `plugins.builtins` both load 0 interpreter modules, down from 67. The new rule was verified by re-running it against the pre-remedy tree, where it reproduces F1 exactly. The shipped 0-interpreter-modules headline property was never damaged by the defect and is unchanged.+>+> The plan also carries additions the [cross-repo sweep](#cross-repo-sweep) tables below are missing — five consumer repos, and the `docs/specs/` + `conformance/` governed surface that names `pipelex.hub` explicitly. Those are Phase C, folded into the release-gated sweep per D-R1. **One addition from the remedy belongs in that sweep too:** any external repo that calls `build_registrar` directly must now pass `builtin_plugins=` and `core_unconditional_plugin_names=`, and anything importing `pipelex.plugins.direct.direct_plugin` or `pipelex.plugins.pipe_func.pipe_func_plugin` must retarget to `pipelex.interpreter_plugins.*`.++The split is landed, the boundary is mechanically enforced (`make check-hub-layering` + a subprocess import-closure test over eight entry points), the misplaced types are moved, and core's data model has joined the runtime layer behind injected providers. Every runtime-layer entry point measures **0 interpreter modules**. Docs and the CHANGELOG breaking-change note are written, and the [runtime/interpreter rename](layer-and-hub-renaming.md) is applied throughout.++**What is left is not a phase** — it is the release-gated [cross-repo sweep](#cross-repo-sweep) (three waves). Nothing else is open.++### Cold start — read in this order++1. [The one rule](#the-one-rule) and [Symbol partition](#symbol-partition) — the settled boundary.+2. [Checkpoint H-4 record](#checkpoint-h-4-record) — **start here**: why the plan's "all of `core/` goes low" premise was wrong, the `if it names a Pipe, it is high` rule that replaced it, and the injected-provider pattern.+3. [Checkpoint H-3 record](#checkpoint-h-3-record) — the two type moves, why `TraceContext` had to travel with `JobMetadata`, and why the templating primitives split across two packages.+4. [Checkpoint H-2 record](#checkpoint-h-2-record) — what the guard actually enforces (two rules, not one), its two carve-outs, and two CI wiring traps.+5. [Checkpoint H-1 record](#checkpoint-h-1-record) — the split itself, including the two places reality forced a change to the plan (the D5 slot could not live on `RuntimeHub`; boot was deliberately not reordered).+6. [`docs/contribute/hub-layering.md`](../../docs/contribute/hub-layering.md) — the shipped specification: the two halves, "Where core splits", enforcement, and "Placement, not coupling".++Three notes for whoever picks this up:++- **The cross-repo sweep is the only substantial work remaining, and it is release-gated.** Three waves now: the `pipelex.hub` split ([table](#cross-repo-sweep)), the Phase 3 type moves ([table](#cross-repo-impact-added-by-phase-3)), and the Phase 4 moves + signature changes ([table](#cross-repo-impact-added-by-phase-4)). Do all three in one pass per repo.+- **The `hub-layering-convention` drift contract is now in the manifest.** Louis gave explicit say-so; it was added, reviewed, and acked — see [Proposed, reverted, then landed](#proposed-reverted-then-landed).+- **`core.pipes.pipe_output → pipeline.pipeline_models` was NOT removed.** H-3 predicted Phase 4 would take it out; it did not. It remains one of the two edges pulling non-inference modules into the inference closure, which is why the module/SLOC rows are flat at H-4. The reason recorded at H-4 — "`pipe_output` is on the Pipe-touching (high) side of the core split" — was **wrong**, and the PR #1062 review corrected it: `pipe_output` names no `Pipe`, imports zero interpreter modules, and sits inside `runtime_hub`'s own closure. It is runtime-layer. What survives is the edge itself: `SpecialPipelineId` is a leaf constant filed in an interpreter-named package. See [`wip/pr-1062-review-notes.md`](../pr-1062-review-notes.md).+- **The PR #1062 agent-review pass is recorded in [`wip/pr-1062-review-notes.md`](../pr-1062-review-notes.md).** It fixed the `pipe_output` misclassification above, widened the import-closure predicate to name core's Pipe machinery (closing a real `core.pipes.pipe_blueprint` blind spot), and deferred one item: `pipeline` / `pipe_run` / `graph` leak leaf models into every runtime closure, so the predicate cannot name them yet.++Design rationale, alternatives considered, and the full measured argument live in [`wip/hub/hub-split-refactor.md`](hub-split-refactor.md). This file is the executable tracker: what to do, in what order, with the concrete tables the work needs. Where the two disagree, this file wins — it carries the settled decisions and the re-measured numbers.++ℹ **The names in this document are the final ones.** Louis challenged the Phase 0–4 naming at the close of H-4 and settled on a rename, which has since **landed as its own commit**: the layers are **runtime** / **interpreter**, and the hubs are `runtime_hub` (`RuntimeHub`) / `interpreter_hub` (`InterpreterHub`). This tracker has been swept to those names — including the cross-repo tables, so the sweep rewrites external repos exactly once, straight to the final names. The intermediate `service_hub` / `method_hub` names never shipped. The decision, the rejected alternatives, and the mechanical plan are in [`wip/hub/layer-and-hub-renaming.md`](layer-and-hub-renaming.md); [D1](#decisions) keeps the original naming decision's reasoning verbatim.++Note that the prose below still uses "low layer" / "high layer" in the historical checkpoint records (H-1 through H-4), because that was the vocabulary at the time. Read *low* as **runtime** and *high* as **interpreter**; the shipped code, tests, guard and docs use only the new terms.++## The one rule++`interpreter_hub` may import `runtime_hub`. **`runtime_hub` must never import `interpreter_hub`.** That single arrow is the whole architecture, and it is what the Phase 2 guard checks.++> At H-1 only the forbidden direction is load-bearing; the permitted one turned out to be unused, because the one low-layer thing `interpreter_hub` needs (the class-registry scoping slot) lives below *both* hubs. Importing either hub loads the other in neither direction — stronger than the rule requires. Phase 2's guard should still check the forbidden direction, not assert the permitted one exists.++`pipelex/hub.py` is deleted outright — not kept as an alias for either half. A stale import must fail loudly at import time rather than silently resolve to the wrong layer.++## Baseline — measured on the base commit++Reproduce with the snippet in [Exit criteria](#exit-criteria--measured-not-asserted). Re-taken at CHECKPOINT H-1 — the after is in [Measured after](#measured-after).++| | baseline | target after Phase 1 |+| --- | --- | --- |+| interpreter modules loaded by `cogt.content_generation.content_generator` | 50 | **0** |+| pipelex modules loaded | 357 | ≤ 260 |+| SLOC loaded | 29,193 | ≤ 19,000 |++Call-site inventory (`ast`-parsed over `pipelex/` + `tests/`, zero symbols left unclassified by the partition below):++| | count |+| --- | --- |+| files importing `pipelex.hub` | 309 |+| — low-only | 134 |+| — high-only | 139 |+| — straddling (gain a second import line) | 36 |+| parenthesized multi-line import blocks | 29 |+| `PipelexHub()` construction sites | 5 (2 production, 3 test) |+| `importlib.import_module("pipelex.hub")` hacks | 3 |++## Decisions++**D1 — module names. SUPERSEDED by the [runtime/interpreter rename](layer-and-hub-renaming.md); the modules are now `pipelex/runtime_hub.py` + `pipelex/interpreter_hub.py`.** The original decision, kept because its rejected alternatives are still live reasoning: *SETTLED: `pipelex/service_hub.py` + `pipelex/method_hub.py`, both flat at the package root, `pipelex/hub.py` deleted. Rejected: keeping `hub.py` for one half (a stale import would silently succeed); `library_hub` (the high half also holds the router, the runner, and the pipeline manager); a `pipelex/hubs/` package (`pipelex.hubs.services` reads worse than `pipelex.service_hub` at 300+ call sites). Noted for review: `method_hub` borrows the MTHDS noun for a runtime container — acceptable because the object genuinely holds the loaded method's libraries, but it is a conscious call against the brand-boundary rule.* That last note is exactly what Louis acted on at the close of H-4: the flat-at-the-root shape and the no-alias deletion survive unchanged, only the two names moved. `library_hub` was re-proposed and re-rejected during the rename, on the same grounds plus one more — a library is inert, while the container is active machinery.++**D2 — one container or two. SETTLED: two** — `RuntimeHub` and `InterpreterHub`, each its own singleton, each with its own module-level accessors. One container would have to live in the low module, forcing every high-level slot to a quoted `TYPE_CHECKING` annotation — that keeps the god-object and adds a fig leaf. Two is affordable: the construction surface is five sites total.++**D3 — where `get_pipe_func_executor_registry` lands. SETTLED: high (`interpreter_hub`).** It is a plugin registry by kind but its protocol lives in `pipe_operators/func/`. The underlying inversion — `pipelex/plugins/pipe_func_executor_registry.py` importing from `pipe_operators/` — is recorded as a follow-up (see [Known inversions](#known-inversions-not-fixed-here)), not fixed here.++**D4 — does `core/` join the low layer now? SETTLED: no, not in Phase 1.** Five `core/` modules use high-hub symbols; converting them means passing resolved concepts in rather than looking them up, which is design work, not mechanical. Phase 4 does it, and the guard's low-layer set widens only when that lands.++**D5 — `get_class_registry` is low but reads the library manager. SETTLED: callable resolver slot, defaulting to "no scoping", installed downward at boot.** Not in the design doc; surfaced while building the partition table. It is the decision that makes Phase 1.6 possible at all, so it is recorded here in full.++> **Amended at implementation (H-1): the slot does not live on `RuntimeHub`.** It lives in a new leaf module, `pipelex/system/registries/class_registry_access.py`, reached through the `class_registry_scoping` module singleton. The mechanism, the default, and the downward-at-boot crossing are all exactly as designed below — only the physical home moved, and it was forced by a measured cycle rather than chosen. See [Checkpoint H-1 record → D5 amendment](#d5-amendment-the-resolver-slot-could-not-live-on-servicehub).++Today's body reaches straight into the high layer:++```python+def get_class_registry() -> ClassRegistryAbstract:+ library_id = _library_id.get()+ if library_id is not None:+ registry = get_library_manager().get_library_class_registry(library_id) # ← HIGH+ if registry is not None:+ return registry+ return KajsonManager.get_class_registry()+```++`get_class_registry` is the single symbol all three `importlib` hacks want, and it has 29 importers spread across both layers — so it must be low, and it must keep its library scoping (Phase 1 is zero-behavior-change).++Resolution: `RuntimeHub` grows a `Callable[[], ClassRegistryAbstract | None]` slot — default returns `None`, and boot installs the library-scoped resolver once `InterpreterHub` is populated. `get_class_registry` calls the slot and falls back to `KajsonManager.get_class_registry()`. The `_library_id` ContextVar stays in `interpreter_hub` with the rest of its family; the resolver closure is what crosses, and it crosses downward at boot, not as an import.++This is not a new pattern — it is exactly how `_isolated_execution_probe` already works (`HubSlot.ISOLATED_EXECUTION_PROBE`, defaulting to `_never_in_isolated_execution`), so the precedent, the naming, and the plugin-claim machinery are all in place.++Alternative considered and rejected: move the whole `_library_id` contextvar family down into `runtime_hub`. Simpler (no indirection) but it splits the "current library" concept across both modules and makes `pipelex.runtime_hub` export `set_current_library`, which reads wrong. Also rejected: drop the scoping from `get_class_registry` and expose a separate high `get_scoped_class_registry` — that is a behavior change, and `tests/unit/pipelex/test_class_registry_scoping.py` pins the current semantics.++`tests/unit/pipelex/test_class_registry_scoping.py` is the regression guard for D5 — it must keep passing unmodified except for its import lines.++## Symbol partition++Complete and verified: an `ast` sweep of every `from pipelex.hub import …` across `pipelex/` and `tests/` classified every imported name against these two sets with nothing left over.++### → `pipelex/runtime_hub.py` (runtime layer)++| group | symbols |+| --- | --- |+| container | `RuntimeHub`, `get_runtime_hub`, `set_runtime_hub` |+| config | `get_required_config`, `get_optional_config` |+| console | `get_console` |+| secrets | `get_secrets_provider`, `get_secret` |+| system registries | `get_class_registry` (see D5), `get_func_registry` |+| storage | `get_storage_provider` |+| telemetry | `get_telemetry_manager`, `get_otel_tracer` |+| models | `get_models_manager`, `get_model_deck`, `get_sdk_client_manager` |+| inference | `get_inference_manager`, `get_llm_worker`, `get_img_gen_worker`, `get_extract_worker` |+| content generation | `get_content_generator`, `scoped_content_generator` |+| reporting | `get_report_delegate`, `is_in_isolated_execution` |+| run mode | `is_dry_run_forced` |+| tracing | `scoped_event_log`, `get_event_log_override` |+| plugin registries | `get_inference_backend_registry`, `get_model_lister_registry`, `get_orchestrator_registry`, `get_bundle_validator_registry`, `get_storage_provider_registry`, `get_secrets_provider_registry` |++### → `pipelex/interpreter_hub.py` (interpreter layer)++| group | symbols |+| --- | --- |+| container | `InterpreterHub`, `get_interpreter_hub`, `set_interpreter_hub` |+| library manager | `get_library_manager`, `get_library` |+| library lookups | `get_concept_library`, `get_required_concept`, `get_native_concept`, `get_required_domain`, `get_optional_domain`, `get_pipe_library`, `get_pipes`, `get_required_pipe`, `get_optional_pipe`, `get_pipe_source` |+| current-library contextvar | `set_current_library`, `get_current_library`, `get_current_library_id_or_none`, `clear_current_library`, `scoped_current_library` |+| library dirs | `resolve_library_dirs`, `get_default_library_dirs` |+| pipe router | `get_pipe_router`, `set_pipe_router`, `teardown_current_pipe_router`, `scoped_pipe_router` |+| run | `get_pipe_run`, `get_pipeline_manager`, `get_pipeline` |+| pipe func (D3) | `get_pipe_func_executor`, `scoped_pipe_func_executor`, `get_pipe_func_executor_registry` |++Setter methods follow their getters onto the matching container. Do **not** delete the accessors with no in-tree importers (`get_bundle_validator_registry`, `get_orchestrator_registry`, `get_pipe_func_executor_registry`, `get_default_library_dirs`, `get_func_registry`, `scoped_pipe_func_executor`) — they are reached internally via the container and several are live external plugin contract (see [Cross-repo sweep](#cross-repo-sweep)). Placement is decided by kind, not by in-tree usage.++### Straddling files — hand-review list for step 1.4++These are the only files that gain a second import line. Everything else is a one-line module swap.++| file | low symbols | high symbols |+| --- | --- | --- |+| `pipelex/cli/commands/build/inputs/_inputs_core.py` | `get_telemetry_manager` | `get_library_manager`, `get_required_pipe`, `resolve_library_dirs`, `set_current_library` |+| `pipelex/cli/commands/build/output/_output_core.py` | `get_telemetry_manager` | `get_library_manager`, `get_required_pipe`, `resolve_library_dirs`, `set_current_library` |+| `pipelex/cli/commands/build/runner/_runner_core.py` | `get_telemetry_manager` | `get_current_library_id_or_none`, `get_library_manager`, `get_required_pipe` |+| `pipelex/cli/commands/codegen/inputs_cmd.py` | `get_telemetry_manager` | `get_required_pipe` |+| `pipelex/cli/commands/show_cmd.py` | `get_console`, `get_models_manager`, `get_secrets_provider`, `get_telemetry_manager` | `get_library_manager`, `get_pipe_library`, `get_required_pipe`, `resolve_library_dirs`, `set_current_library` |+| `pipelex/cli/commands/validate/_validate_core.py` | `get_console`, `get_telemetry_manager` | `get_library_manager`, `get_pipe_library`, `get_pipes`, `get_required_pipe`, `resolve_library_dirs`, `set_current_library` |+| `pipelex/cli/commands/which_cmd.py` | `get_console`, `get_telemetry_manager` | `get_library_manager`, `get_optional_pipe`, `get_pipe_source`, `resolve_library_dirs`, `set_current_library` |+| `pipelex/core/stuffs/stuff_factory.py` | `get_class_registry` | `get_concept_library`, `get_native_concept`, `get_required_concept` |+| `pipelex/libraries/library_manager.py` | `get_class_registry` | `get_current_library`, `get_current_library_id_or_none`, `scoped_current_library` |+| `pipelex/pipe_operators/compose/pipe_compose.py` | `get_class_registry` | `get_concept_library`, `get_native_concept` |+| `pipelex/pipe_operators/extract/pipe_extract.py` | `get_content_generator`, `get_model_deck` | `get_concept_library`, `get_native_concept` |+| `pipelex/pipe_operators/func/pipe_func.py` | `get_class_registry` | `get_pipe_func_executor` |+| `pipelex/pipe_operators/img_gen/pipe_img_gen.py` | `get_class_registry`, `get_content_generator`, `get_model_deck` | `get_concept_library`, `get_native_concept` |+| `pipelex/pipe_operators/llm/helpers.py` | `get_class_registry` | `get_required_concept` |+| `pipelex/pipe_operators/llm/pipe_llm.py` | `get_class_registry`, `get_content_generator`, `get_model_deck` | `get_concept_library`, `get_native_concept`, `get_required_concept` |+| `pipelex/pipe_operators/structure/pipe_structure.py` | `get_class_registry`, `get_content_generator`, `get_model_deck` | `get_concept_library`, `get_native_concept` |+| `pipelex/pipe_run/dry_run_in_process.py` | `scoped_content_generator`, `scoped_event_log` | `get_library_manager`, `scoped_pipe_router` |+| `pipelex/pipeline/bundle_validator.py` | `get_telemetry_manager`, `scoped_content_generator` | `clear_current_library`, `get_current_library`, `get_current_library_id_or_none`, `get_library_manager`, `get_pipe_library`, `scoped_pipe_router`, `set_current_library` |+| `pipelex/pipeline/pipeline_run_setup.py` | `get_event_log_override`, `get_otel_tracer`, `get_report_delegate`, `get_telemetry_manager` | `clear_current_library`, `get_current_library_id_or_none`, `get_library_manager`, `get_pipeline_manager`, `get_required_pipe`, `set_current_library` |+| `pipelex/pipeline/runner.py` | `get_report_delegate`, `get_telemetry_manager` | `clear_current_library`, `get_current_library_id_or_none`, `get_library_manager`, `get_pipe_run`, `get_pipeline_manager`, `set_current_library` |+| `tests/integration/pipelex/pipeline/test_bundle_validator.py` | `get_telemetry_manager` | `clear_current_library`, `get_library_manager`, `get_required_pipe` |+| `tests/integration/pipelex/pipeline/test_pipeline_run_setup_characterization.py` | `get_report_delegate`, `get_telemetry_manager` | `clear_current_library`, `get_current_library_id_or_none`, `get_library_manager`, `get_pipeline_manager`, `set_current_library` |+| `tests/integration/pipelex/pipeline/test_pipeline_run_setup_emit_gates.py` | `get_report_delegate` | `clear_current_library`, `get_library_manager` |+| `tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_absence.py` | `get_class_registry` | `get_concept_library`, `get_pipe_library` |+| `tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_branch_type_validation.py` | `get_class_registry` | `get_concept_library`, `get_pipe_library` |+| `tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_unresolvable_structure_class.py` | `get_class_registry` | `get_concept_library`, `get_pipe_library` |+| `tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm.py` | `get_class_registry` | `get_native_concept`, `get_pipe_library`, `get_pipe_router` |+| `tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_date_output_path.py` | `get_content_generator` | `get_pipe_library`, `get_pipe_router` |+| `tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_yes_no_output_path.py` | `get_content_generator` | `get_pipe_library`, `get_pipe_router` |+| `tests/integration/pipelex/pipes/operator/pipe_structure/test_preliminary_text_e2e.py` | `get_report_delegate` | `get_native_concept`, `get_pipe_router`, `get_required_pipe` |+| `tests/integration/pipelex/pipes/operator/pipe_structure/test_preliminary_text_inline_e2e.py` | `get_report_delegate` | `get_native_concept`, `get_pipe_router`, `get_required_pipe` |+| `tests/integration/pipelex/pipes/optionals/test_parallel_optional_combine_validation.py` | `get_class_registry` | `get_concept_library`, `get_pipe_library` |+| `tests/integration/pipelex/system/test_hub_slot_injection_precedence.py` | `get_content_generator` | `get_pipe_router` |+| `tests/unit/pipelex/core/memory/input_shaper/conftest.py` | `get_class_registry` | `get_concept_library` |+| `tests/unit/pipelex/core/stuffs/test_stuff_factory_implicit_memory.py` | `get_class_registry` | `get_concept_library` |+| `tests/unit/pipelex/test_class_registry_scoping.py` | `get_class_registry` | `clear_current_library`, `get_library_manager`, `set_current_library` |++Note the shape of the `pipe_operators/` rows: every one of them straddles for the same reason — `get_class_registry` / `get_content_generator` / `get_model_deck` (low) next to `get_concept_library` / `get_native_concept` (high). That is the D4 boundary showing through, and it is what Phase 4 dissolves.++## Phases++### Phase 0 — declare the boundary ✅++- [x] 0.1 Confirm **D5**. Settled as recorded above, and amended at implementation (the slot's home moved; the mechanism did not).+- [x] 0.2 Baseline re-taken on the branch tip and confirmed identical to the table above (357 / 29,193 / 50).+- [x] 0.3 Wrote [`docs/contribute/hub-layering.md`](../../docs/contribute/hub-layering.md) — the two hubs, the partition, how to place a new symbol, the class-registry exception, the measurement, enforcement, and the known inversions. Modelled on `keyword-only-arguments.md`. Its "Enforcement" section describes what is true at H-1 and is rewritten by Phase 2 when the guard lands.+- [x] 0.4 Updated `docs/under-the-hood/architecture-overview.md` with a "What Keeps The Layers Apart: The Two Hubs" section naming the boundary and the one-arrow rule, linking to the contributor doc. Added both pages to the `mkdocs.yml` nav.++### Phase 1 — the split ✅++- [x] 1.1 Created `pipelex/runtime_hub.py`. Module-level imports verified to name nothing from `libraries`, `pipe_operators`, `pipe_controllers`, `codegen`, `builder`, `core.bundles`, `core.concepts`, or `core.pipes`.+- [x] 1.2 Created `pipelex/interpreter_hub.py`, importing `runtime_hub`'s layer for the D5 install. `set_interpreter_hub` installs the resolver, so scoping is live exactly when a InterpreterHub exists and a caller cannot forget to wire it.+- [x] 1.3 Deleted `pipelex/hub.py`.+- [x] 1.4 Rewrote all 309 call sites via an `ast` pass over the whole import statement (the 29 parenthesized blocks came through intact). The 36 straddlers each gained a second import line, as predicted. **Two string-literal references the AST pass could not see broke the suite and had to be found by running it** — see the record below.+- [x] 1.5 Re-wired boot. Both hubs are constructed and installed at the top of `Pipelex.__init__`; every setter was retargeted to its own container. **The setter sequence was deliberately NOT reordered** — see the record below.+- [x] 1.6 Replaced all three `importlib.import_module("pipelex.hub")` hacks with plain top-level imports and deleted the `_get_class_registry` shims. The import target is the new leaf module, not `runtime_hub` — that is the D5 amendment.+- [x] 1.7 `Pipelex.teardown` and the `make()` failure path now release both hubs' process-global state. Pinned by `tests/unit/pipelex/test_hub_lifecycle.py`, which asserts a boot installs both singletons and that the reset really drops the scoping a InterpreterHub installed.++**CHECKPOINT H-1** — zero behavior change.++Gates: `make agent-check` + **full** `make agent-test` (no test edits beyond import lines) + `make drift-check`. Expect the **`cli-docs` drift contract to fire** — `pipelex/cli/**/*.py` is a trigger and the rewrite touches many CLI files. Review `docs/tools/cli/` and `pipelex/cli/agent_cli/CLAUDE.md`, then `make drift-ack` with an honest rationale ("import-path-only change, CLI surface unaffected" is legitimate if that is what the review found). Re-take the measurement and record the after against the target table.++### Checkpoint H-1 record++Written at the checkpoint so Phase 2 can start cold. Everything below is what actually happened, including where the plan was wrong.++#### Measured after++| | baseline | target | **after H-1** |+| --- | --- | --- | --- |+| interpreter modules loaded by `cogt.content_generation.content_generator` | 50 | **0** | **0** ✅ |+| pipelex modules loaded | 357 | ≤ 260 | 275 |+| SLOC loaded | 29,193 | ≤ 19,000 | 21,186 |++The headline property is met exactly: the inference layer now loads **zero** `libraries` / `pipe_operators` / `pipe_controllers` / `codegen` / `builder` modules. The module and SLOC targets were missed, and the reason is that the estimate was wrong rather than the change: those targets were derived from "236 modules / 17,683 SLOC *plus headroom for cogt's own modules*", and the real headroom is ~40 modules / ~3,500 SLOC, not the ~24 / ~1,300 assumed. A low-only hub's own closure measures 235 modules / 17,675 SLOC on this branch — within 1 of the estimate — so the partition is exactly as tight as designed; only the headroom guess was low. **Do not treat the module/SLOC rows as open work.** Squeezing them further means attacking `cogt`'s own dependency weight (`system.telemetry.otel_factory` → `core.pipes.pipe_output` → `core.stuffs.stuff` is the fattest edge), which is Phase 3/4 territory, not the hub boundary.++#### D5 amendment: the resolver slot could not live on `RuntimeHub`++D5 assumed `core/concepts/` could reach `get_class_registry` from `pipelex.runtime_hub`. It cannot. `core.concepts.concept` is **inside `runtime_hub`'s own import closure**:++```+runtime_hub → cogt.llm.llm_worker_abstract → system.telemetry.otel_factory+ → core.pipes.pipe_output → core.stuffs.stuff → core.concepts.concept+```++so a module-level `from pipelex.runtime_hub import get_class_registry` in `concept.py` is a hard cycle — and it fails in *both* import orders, which is why it could not simply be ordered around. The design doc's claim that "a hub that does not import `Concept` has no cycle with `concept.py`" was half right: the cycle is not via `Concept`, it is via `cogt → system → core`.++Resolution, which preserves every property D5 was chosen for:++- `pipelex/system/registries/class_registry_access.py` — a new leaf module importing nothing from `pipelex`. Holds the real `get_class_registry` plus the `class_registry_scoping` slot (a module singleton in the `config_manager` style; the resolver default returns `None`, so a RuntimeHub-only process degrades to the global registry rather than raising, exactly as [Risks](#risks-and-containment) requires).+- `pipelex.runtime_hub.get_class_registry` delegates to it and stays the **public** accessor — so the symbol partition table above is unchanged and the cross-repo contract is still "low symbols come from `runtime_hub`".+- The three `core/concepts/` modules import the leaf directly, because they are the one place the public accessor is unreachable.+- `interpreter_hub.set_interpreter_hub` installs the library-scoped resolver; `Pipelex.teardown` calls `class_registry_scoping.reset()`.++`tests/unit/pipelex/test_class_registry_scoping.py` (the D5 regression guard) passes unmodified except for its import lines, as required.++#### Boot was not reordered — deliberately++Step 1.5 predicted the setter sequence would "split cleanly at line 475 with no reordering" once the duplicate pair was deleted. It does not, and cannot: **D3 puts the PipeFunc executor on the high hub**, so `set_pipe_func_executor_registry` and `set_pipe_func_executor` are InterpreterHub calls sitting in the middle of the RuntimeHub run, and `set_isolated_execution_probe` is a RuntimeHub call sitting after the InterpreterHub ones.++Reordering to force a clean split would have moved setters across documented ordering dependencies (the storage-provider block explicitly resolves *after* secrets is on the hub so the GCP factory's secret read works) — a real behavior risk at a checkpoint whose bar is zero behavior change. So: **both hubs are constructed and installed at the top of `__init__`, and the setter sequence is otherwise byte-identical in order.** That delivers what "populate RuntimeHub fully before InterpreterHub" was actually protecting against — no setter can ever run against a missing hub — without touching execution order. Untangling the interleave belongs with D3's inversion, not here.++#### Findings in passing — both resolved, one bigger than recorded++- **Duplicate `set_library_manager` deleted** ✅. Confirmed dead: nothing between the two pairs reads it, and `make tb` plus the full suite pass without it.+- **`_observer` deleted** ✅ — but the tracker's "confirm no external consumer sets it" check turned up something worse than dead code. `docs/advanced/observer-provider-injection.md` **documented `hub.set_observer()` as the public way to register a custom observer**, and that documented API never worked: the value was written and never read, while the live path is `Pipelex.make(observers={...})` → `MultiObserver` → `PipeRouter`. Anyone following that page got a silently ignored observer. Both that page and `docs/advanced/index.md` (which showed a bare `PipelexHub()` being constructed and configured — equally inert) are rewritten to the mechanism that actually works, with a warning against hand-constructing a hub. Verified across the workspace: no repo sets `set_observer`.++#### One fix outside the plan, required by the exit criterion++After the split the measurement still reported 3 interpreter modules, via `content_generator → pipelex.config → plugins.pipe_func_executor_registry → pipe_operators.func.pipe_func_executor_protocol` — D3's underlying inversion, which [Known inversions](#known-inversions-not-fixed-here) had scheduled as "not fixed here". But the exit criterion demands 0 and instructs that the printed offender is what to fix, and Phase 2.5's closure regression test would fail on it regardless. The import is **type-only**, so it was deferred under `TYPE_CHECKING` with a string annotation on the type alias. The placement inversion itself is untouched and stays recorded.++#### Landmines the AST rewrite could not see++`pipelex.hub` ceasing to exist turns a missed *import* into an immediate `ImportError` — but not a missed **string literal**. Two of those existed, and neither is reachable by an import-graph tool:++- `tests/helpers/init_cmd_helpers.py` — `mocker.patch("pipelex.hub.get_console", ...)`. This broke **36 tests** across the init CLI suites, and the failure surfaced as `AttributeError: module 'pipelex' has no attribute 'hub'` from `pkgutil.resolve_name`, nowhere near the hub.+- `tests/unit/pipelex/cli/test_agent_cli_output_discipline.py` — `mocker.patch("...agent_cli_factory.PipelexHub.get_optional_instance")`, caught by grep before the run.++If Phase 2's guard is meant to catch "the string-literal `importlib.import_module` form", it should also be pointed at `mocker.patch` targets — that is where this class of reference actually lives in this repo.++#### Housekeeping done at H-1++- **Subject grants migrated**: 54 `pipelex/hub.py::` entries → 55 under `pipelex/runtime_hub.py::` / `pipelex/interpreter_hub.py::` (`set_instance` and `set_pipelex_hub` each split in two; `set_observer` dropped with the state). `make cko` is green, and staleness is symmetric so a missed entry would have failed.+- **Doc references swept**: `docs/under-the-hood/{pipe-routing-and-execution,runtime-bridge-and-transport,execution-graph-tracing}.md`, `docs/advanced/{index,observer-provider-injection}.md`, `tests/CLAUDE.md`, and in-code docstrings in `signature_walk.py` / the keyword-only guard modules. CHANGELOG history entries were left alone (they are release records). No live `pipelex.hub` reference remains anywhere in `pipelex/`, `tests/`, or `docs/`.++#### Still open at H-1++- **The CHANGELOG breaking-change note is not written yet** — it stays scheduled at H-4 per the plan, but `pipelex.hub` is *already* gone as of this checkpoint. If this branch is ever merged before H-4, write it first.+- The **cross-repo sweep** is untouched and still release-gated.+- One semantic edge worth knowing: `class_registry_scoping` is process-global, so the doctor path (which installs a fresh `RuntimeHub` but leaves any existing `InterpreterHub` in place) now keeps library scoping alive where the single hub would have raised. Strictly more coherent — the InterpreterHub genuinely is still installed — and unreachable in practice, since doctor runs in its own process. Noted rather than fixed.++### Phase 2 — enforce it ✅++- [x] 2.1 Added `pipelex-dev check-hub-layering` — guard in `pipelex/cli/dev_cli/commands/hub_layering_guard.py` (stdlib-only AST core), command in `check_hub_layering_cmd.py` (rich presentation), following the `keyword_only_guard.py` / `check_keyword_only_cmd.py` split exactly. Catches imports **and** string literals, and resolves relative imports against the importing module's own package. **The guard grew a second rule beyond the plan** — see the record below.+- [x] 2.2 Low layer declared as `pipelex.cogt`, `pipelex.plugins`, `pipelex.reporting`, `pipelex.system`, `pipelex.tools`. All five compliant; the guard hard-blocks with an empty exception list (one escape-hatch marker exists, on the guard's own declaration of the forbidden path).+- [x] 2.3 Wired into `make agent-check`, the `make check` aggregate, and both CI lint workflows, with the `chl` alias.+- [x] 2.4 `tests/unit/pipelex/cli/dev/test_hub_layering_guard.py` — layer membership, both directions of the arrow, every import spelling (plain / aliased / `from pipelex import interpreter_hub` / relative), both string forms, the prose-is-not-a-reference and `runtime_hub`-is-not-`hub` boundary cases, the `TYPE_CHECKING` carve-out and its three non-exempt neighbours, the escape hatch, and the dead-module rule across all three layers.+- [x] 2.5 `tests/unit/pipelex/test_runtime_layer_import_closure.py` — imports each low-layer entry point in a subprocess and asserts zero interpreter modules **and** no `pipelex.interpreter_hub` in `sys.modules`. Parametrized over two entry points: the inference layer and `runtime_hub` itself.++**CHECKPOINT H-2** — boundary declared, enforced, and regression-tested.++### Checkpoint H-2 record++Gates: `make agent-check` ✅ (pyright 0 errors, mypy 2,352 files, keyword-only PASSED, hub-layering PASSED) · `make agent-test` ✅ (full suite) · `make drift-check` ✅ (no contract opened — see below).++#### The guard enforces two rules, not one++The plan specified one rule (no `interpreter_hub` in the low layer). The guard ships with a second: **no module anywhere in `pipelex/` or `tests/` may reference `pipelex.hub`.** That is the H-1 note about `mocker.patch` targets, generalized — and generalizing it is what makes it work. The plan framed the string check as an `importlib.import_module` special case; scanning *every* string constant for an exact-or-boundary match on the module path catches `importlib`, `mocker.patch`, `pkgutil.resolve_name`, and any config-driven dotted path in one mechanism, with no call-site special-casing.++Scope follows from the two rules being different: `tests/` is scanned for the dead-module rule **only**. `tests.*` is in no declared layer, so a test may still freely patch `pipelex.interpreter_hub` — while a stale `pipelex.hub` patch target, the thing that actually broke 36 tests, now fails the check.++Matching is exact-or-boundary (`==`, or a `.`/`:` suffix), which is why `pipelex.runtime_hub` does not match `pipelex.hub` and why a docstring that merely *mentions* a module is not a reference. Two in-tree docstrings do exactly that and are correctly ignored. A path assembled at runtime from f-strings is beyond any AST scan; nothing does that today, and it is noted in the module docstring rather than defended against.++#### Two carve-outs, both deliberate++- **`if TYPE_CHECKING:` is exempt from the layer rule, not from the dead-module rule.** The rule is about what *loads*; a type-only import loads nothing, and H-1's own out-of-plan fix used exactly this deferral. Its `else` branch, `if not TYPE_CHECKING:`, and any `pipelex.hub` import inside a `TYPE_CHECKING` block all stay violations — each is pinned by a test.+- **`# hub-layering: ignore`** mirrors `# kw-only: ignore`. There is exactly one in `pipelex/` and one in the test suite, both on lines that *declare* the forbidden path as data. The guard flagged its own configuration on first run, which is a good sign about the matcher and the reason the hatch exists.++#### Verified by breaking it, not only by unit tests++Both forms were injected into a real low-layer module (`cogt/content_generation/content_generator.py`) and the CLI was confirmed to report them at the right lines with the right kinds, then the file was restored byte-identically. Snippet-level unit tests would not have caught a filesystem-walk or layer-membership mistake.++#### Two wiring traps worth knowing++- **The CI aggregator gates on an explicit bash result check, not on `needs`.** Adding `lint-hub-layering` to `lint-all`'s `needs` list is *not* enough — `if: always()` means the aggregator runs regardless, and the `[ "${{ needs.<job>.result }}" != "success" ]` chain is what actually fails the build. Both were updated. A new lint job added without touching that chain would be silently advisory.+- **A new job, not a step on `lint-keyword-only`.** Folding both AST guards into one job would have meant renaming it, and that job name may be a required status check — a rename silently un-requires it. The repo already runs one job per guard; this follows that.++#### Proposed, reverted, then landed++A `hub-layering-convention` drift contract (triggers: the guard + both hub modules; review: `docs/contribute/hub-layering.md`) is the exact analogue of the existing `keyword-only-convention` contract, and it mechanizes the doc obligation Phase 4 and the rename both carried. It was added at H-2, confirmed to open correctly, then **reverted**: `.claude/skills/drift-review` states that during the pilot the manifest must not grow without the user's explicit say-so, because ack friction is the thing being measured. Left as a decision for Louis rather than a silent addition. Note that `cli-docs` legitimately did not fire on this work — it excludes `pipelex/cli/dev_cli/**`.++**Louis approved it after the rename landed, and it is now in `drift.toml`, reviewed and acked.** It carries no verify command, matching `keyword-only-convention`: `check-hub-layering` already gates `make check` and CI, so re-running it before an ack would add the unstaged-file hard error without adding a guarantee. The initial review is mechanical and worth repeating rather than re-reading — extract every public module-level symbol from both hubs and confirm each appears in the doc's partition tables, then import `RUNTIME_LAYER_PACKAGES` from the guard and confirm every declared package is named under Enforcement. The closure test was deliberately left out of the triggers; it is the obvious first addition if the contract ever proves under-triggered.++#### Docs updated++- `docs/contribute/hub-layering.md` — the "Enforcement" section was rewritten from "a guard is the next step" to the shipped two-rule specification: what each rule checks, why the string half is the load-bearing one, both carve-outs, the `tests/` scoping, and the rule-vs-property split.+- `docs/under-the-hood/architecture-overview.md` — one sentence stating the boundary is mechanically enforced rather than held up by review.++### Phase 3 — the placement residue ✅++Neither item was coupling; both were types living in the wrong package, and each was independently correct. Both are **resolved by moving the type**, not by adding indirection — no resolver slot, no protocol, no `TYPE_CHECKING` deferral was needed for either.++- [x] 3.1 **`JobMetadata`** → `pipelex/system/job_metadata.py` (with `JobCategory`, `UnitJobId`); `JobMetadataError` → `pipelex/system/exceptions.py`. `TraceContext` moved with it → `pipelex/system/trace_context.py`, and `DataInclusionConfig` moved down to `pipelex/system/data_inclusion_config.py` so `trace_context` no longer imports `graph_config`. **`cogt → pipeline` is now 0 statements.**+- [x] 3.2 **`cogt.templating.*`** → moved down to `tools`. `TextFormat` / `TemplatingStyle` / `TagStyle` → `pipelex/tools/templating/`; `TemplateCategory` → `pipelex/tools/jinja2/`. **`tools → cogt` drops from 15 statements to 3** (the `tools/pdf` renderer only).++**CHECKPOINT H-3** — placement residue resolved.++### Checkpoint H-3 record++Gates: `make agent-check` ✅ (pyright 0 errors, mypy 2,354 files, keyword-only PASSED, hub-layering PASSED) · `make agent-test` ✅ (full suite) · `make drift-check` ✅ (no contract opened).++#### Measured after++| | baseline | H-1 | **after H-3** |+| --- | --- | --- | --- |+| interpreter modules loaded by `cogt.content_generation.content_generator` | 50 | 0 | **0** ✅ |+| pipelex modules loaded | 357 | 275 | **268** † |+| SLOC loaded | 29,193 | 21,186 | **20,304** † |++† Recorded from a stale run, caught by the PR #1062 review and re-verified at [Checkpoint A](#checkpoint-a-record--pr-1062-review-follow-ups): the tree measures **269 / 20,305**, not 268 / 20,304. The baseline and H-1 rows reproduce to the digit, so the method is sound and only the recording was off. The 0-interpreter-modules row — the one that matters — is exact.++Cross-package import statements, the number Phase 3 was actually aimed at:++| edge | before | after |+| --- | --- | --- |+| `cogt → pipeline` | 18 | **0** |+| `tools → cogt` | 15 | **3** |+| `graph → cogt` | 2 | **0** |+| `reporting → graph` | 1 | **0** |+| `system → graph` | 1 | 1 (by design — see below) |++The module/SLOC rows moved only a little because the fat edge was never `cogt → pipeline` alone. Two edges still pull `graph` and `pipeline` modules into the inference closure, and **both are out of Phase 3's scope by construction**:++- `system.configuration.configs → graph.graph_config` (→ `mermaid_config`, `reactflow_config`): the main config model must name every subconfig, and the repo's convention is that submodels live in their own sub-packages. This is inherent to the one-big-config design, not a layering defect. It is the surviving `system → graph` edge.+- `core.pipes.pipe_output → pipeline.pipeline_models`: a `core → pipeline` edge, which is **Phase 4 territory**.++Together they account for the 7 `graph.*` and 2 `pipeline.*` modules still in the closure. Do not chase them here.++#### 3.1 — where things landed, and why++`JobMetadata` had to go somewhere `cogt` may import, which means a declared low-layer package. `pipelex/system/` is that package and it already houses `telemetry/otel_context.py` — the sibling transport `JobMetadata` carries alongside `TraceContext`.++`TraceContext` moved **with** it rather than staying in `graph/`. Leaving it would only have renamed the inversion: `system/job_metadata.py → pipelex.graph.trace_context` is a `system → graph` edge, exactly the direction being removed. Its one graph dependency was `DataInclusionConfig`, so that class moved down to `pipelex/system/data_inclusion_config.py` and `graph_config.py` now imports it from there. **The TOML shape is unchanged** — the key is still `[pipelex.pipeline_execution_config.graph_config.data_inclusion]`; only the Python class's home moved. `pipelex.system.trace_context` now has a leaf closure: no `graph`, no `pipeline`.++Two homes were considered and rejected for `TraceContext`: `pipelex/tracing/` (would have created a `system ⇄ tracing` package cycle, since `tracing → system` already exists) and `pipelex/system/telemetry/` (that package is OTel + PostHog; `TraceContext` is the pipelex-native node-tree transport, and conflating them would mislead).++#### 3.2 — why the templating primitives split across two packages++None of the three moved modules named anything from `cogt`, so this was pure misfiling. But they could not all land in one new package:++- `TextFormat`, `TemplatingStyle`, `TagStyle` → `pipelex/tools/templating/`. That package imports nothing from `pipelex` beyond its own sibling — a genuine leaf.+- `TemplateCategory` → `pipelex/tools/jinja2/`, because its entire payload is a map of jinja2 filters (`jinja2_filters`, `jinja2_models`, `jinja2_with_images_filter`). Filing it in `tools/templating/` would have made that package import `tools/jinja2` while `tools/jinja2` imports it back — a cycle inside one layer. As placed, the edges run one way: `tools/mermaid → tools/jinja2 → tools/templating`.++What stays in `cogt/templating/` — `TemplateBlueprint`, the sigil preprocessor, `template_rendering` — belongs there: a blueprint is language-layer, and the rest imports `tools/jinja2` downward.++#### Housekeeping done at H-3++- **Subject grant migrated**: `pipelex/graph/trace_context.py::TraceContext.copy_for_child` → `pipelex/system/trace_context.py::…`. Recorded **before** running any check, per the `fko`-silently-rewrites warning in `CLAUDE.md`. No grants existed for the moved templating modules (the two that do, on `template_preprocessor` / `template_rendering`, did not move).+- **Tests**: `tests/unit/pipelex/pipeline/test_job_metadata_request_id.py` → `tests/unit/pipelex/system/` (self-contained, so the move is free). The two `TraceContext` test modules **stayed** in `tests/unit/pipelex/graph/` — they consume `make_trace_context` and the `data_inclusion_config` / `graph_config` fixtures from that directory's `conftest.py`, which the graph tests use heavily. Splitting the fixture module to mirror the source move would cost more than the tidiness is worth.+- **Docs**: `docs/contribute/hub-layering.md` gained a "Placement, not coupling" section recording both moves and the generalizable lesson, and its "Known inversions" bullet was corrected (`tools → cogt` is now the pdf renderer only). `docs/under-the-hood/execution-graph-tracing.md`'s file-reference table was updated for the two moved modules.+- **`make cleanderived` deletes `tests/integration/pipelex/fixtures/_generated_model_sets.py`**, and pyright then fails on 12 unresolved-import errors that have nothing to do with your change. `make regenerate-test-models-quiet` restores it. Worth knowing before debugging a phantom failure.++#### Cross-repo impact added by Phase 3++These are **new** breakages on top of the `pipelex.hub` split, and they land in the same release-gated sweep:++| repo | files touched by the Phase 3 moves |+| --- | --- |+| `pipelex-temporal/` (private) | 22 |+| `pipelex-mistralai-workflows/` | 6 |+| `pipelex-api/` | 1 |++The import lines to rewrite, in full:++| old | new |+| --- | --- |+| `pipelex.pipeline.job_metadata` | `pipelex.system.job_metadata` |+| `pipelex.graph.trace_context` | `pipelex.system.trace_context` |+| `pipelex.graph.graph_config import DataInclusionConfig` | `pipelex.system.data_inclusion_config import DataInclusionConfig` |+| `pipelex.pipeline.exceptions import JobMetadataError` | `pipelex.system.exceptions import JobMetadataError` |+| `pipelex.cogt.templating.text_format` | `pipelex.tools.templating.text_format` |+| `pipelex.cogt.templating.templating_style` | `pipelex.tools.templating.templating_style` |+| `pipelex.cogt.templating.template_category` | `pipelex.tools.jinja2.template_category` |++Clean (no action): `pipelex-cookbook/`, `cocode/`, `pipelex-worker/`, `pipelex-starter-python/`, `pipelex-relay/`, `sandbox/`.++### Phase 4 — core's data model joins the low layer ✅++- [x] 4.1 Converted the `core/` straddlers to injected providers. **The plan's premise was wrong** — `core/` is two layers, not one, and only its *data model* can be low. See the H-4 record.+- [x] 4.2 Widened the guard's low layer with core's six data-model packages, and added six `pipelex.core.*` entry points to `RUNTIME_LAYER_ENTRY_POINTS`.++**CHECKPOINT H-4** — the boundary is complete, enforced, and measured.++### Checkpoint H-4 record++Gates: `make agent-check` ✅ (pyright 0 errors, mypy 2,356 files, keyword-only PASSED, hub-layering PASSED) · `make agent-test` ✅ (full suite, no test edits beyond the mechanical ones recorded below) · `make drift-check` ✅ (both contracts reviewed and acked — see below).++## ▶ Resume here — the rename is landed++All four phases **and** the runtime/interpreter rename are landed, with all three gates green. The rename's own record is [below](#the-runtimeinterpreter-rename-record); the rest of this section is the H-4 close-out it followed.++The two contracts that were left open on purpose at the H-4 pause were reviewed and acked:++- **`config-docs` — clean-pass.** The only trigger change was one import line in `configs.py` (`TemplatingStyle` moving `cogt.templating` → `tools.templating`, the Phase 3 placement fix); every other trigger file was byte-identical. No config field, default, validator, or TOML key moved. `docs/configuration/` documents no import path, and every Python path the docs *do* cite still resolves.+- **`cli-docs` — clean-pass.** All 10 triggers changed by exactly one import line each (the Phase 4 renderer regroup). Verified against the **live CLI** rather than by reading alone — `pipelex build inputs pipe`, `pipelex build output pipe`, `pipelex-agent inputs pipe` — arguments, flags, format values and defaults all match `docs/tools/cli/`. The behavior-adjacent half of Phase 4 was checked too: no CLI doc cites a Python import path or calls a factory that gained a required `concept_provider`, and the runner codegen emits none. `agent_cli/CLAUDE.md`'s layout map lists only `agent_cli`'s own modules, none of which moved.++Also swept `docs/` and `wip/` for stale references to the H-4 moves (`core.pipes.output.*`, `codegen.resolved_fields`, `core.pipes.inputs.input_renderer`): every remaining hit is intentional historical prose in `hub-layering.md` or this tracker.++**One observation is worth carrying forward, because it is now a pattern rather than an anecdote.** This refactor opened **four contracts across three different ids**, and every one of them was import-path churn. The narrowing proposed in the earlier `config-docs` dogfood entry (scope the trigger to files that define settings) would **not** have prevented today's opening — `configs.py` is squarely inside that narrowed set. The mechanism that would prevent all four is a content-aware digest that ignores changes confined to import statements (and, for `keyword-only-convention`, to comments/docstrings): one manifest-wide change instead of three separate glob surgeries. Recorded in `wip/drift-contracts/dogfood-log.md` as the thing to weigh before any per-contract narrowing — it is evidence for the pilot's keep/narrow/mechanize verdict, not a change to make now.++**Next: [PR #1062](https://github.com/Pipelex/pipelex/pull/1062) is open against `dev`** (base was still exactly `f23fda7a0` at open time, so no merge was needed). The only thing outstanding after it lands is the release-gated cross-repo sweep, already retargeted to the final names. Louis' drift-contract decision is resolved — `hub-layering-convention` is in the manifest, reviewed and acked.++The PR body carries a **reviewer map**, which this diff needs: 528 files, of which ~490 are mechanical import churn. It names the dozen files where the judgment actually lives, and pre-empts the two things that look wrong at a glance — `subject_grants.toml`'s 221/221 re-sort (the registry is machine-written sorted, and was not in sort order before; the parsed mapping is identical modulo renames) and the deliberately un-swept old names in D1, the checkpoint records, and `.drift/acks/`.++### The runtime/interpreter rename — record++Landed as its own commit after H-4, per [`wip/hub/layer-and-hub-renaming.md`](layer-and-hub-renaming.md). Gates: `make agent-check` ✅ · full `make agent-test` ✅ · `make drift-check` ✅.++**Pre-flight was clean.** Grepping the whole workspace — including the private `pipelex-temporal`, the heaviest consumer — turned up **zero** collisions on `runtime_hub` / `RuntimeHub` / `interpreter_hub` / `InterpreterHub`. The only hits were the plan documents themselves.++**A token substitution was the right tool here, and the plan's AST warning did not apply.** Phase 1 needed an `ast` rewrite because it was *splitting* one module into two: each import line had to be classified symbol by symbol, and 29 parenthesized multi-line blocks were the hazard. This rename is 1:1 — no import splits, no classification — so the question is only whether the four tokens ever appear where they must not. They do not: enumerating every whole word in `pipelex/` and `tests/` containing any of them returned exactly the identifiers that should change (`get_method_hub`, `set_service_hub`, the hub-named test functions, and the bare class names). Substring replacement across 332 files, then a re-parse of every file in both trees, was safer than a formatting-preserving AST rewrite and left zero residuals.++**The string-literal landmine was real again, and pre-enumerated.** The H-1 lesson (a missed `mocker.patch` target is invisible to every import-graph tool) held: `tests/helpers/init_cmd_helpers.py` carried `mocker.patch("pipelex.service_hub.get_console", ...)` — the same file, the same shape that broke 36 tests at H-1. Because the sweep was token-based over the whole file rather than import-based, it was caught for free. The other string references were the guard's own configuration, the closure test's entry-point list, and the guard test's patch-target fixtures.++**What the plan under-specified: the enum members in the *test* file.** Step 4 lists the guard's `HubLayeringViolationKind` renames but step 5 lists only the test's constants and patch targets, so a first pass renamed the members in the source and left `HubLayeringViolationKind.METHOD_HUB_IMPORT` in the test — 7 failures. Mechanical to fix, but worth recording: when an enum member is renamed, its *references* live wherever the enum is asserted on, and the plan's per-file checklists split that pair across two steps.++**Vocabulary, not just identifiers.** `LOW_LAYER_PACKAGES` → `RUNTIME_LAYER_PACKAGES` and `is_low_layer` → `is_runtime_layer` were in the plan; the prose was not, and it was the larger edit. "Low layer" / "high layer" was swept out of the guard, both hub docstrings, `class_registry_access.py`, the guard's success panel (it printed `Low layer: …` to the user), `hub-layering.md`, `architecture-overview.md` and the CHANGELOG. The historical checkpoint records in *this* file deliberately keep the old vocabulary, with a reading key in the header note — rewriting them would falsify what was decided when.++**Judgment calls made while sweeping the docs**, none of them mechanical:++- `hub-layering.md` gained an opening section naming the two layers as the language-implementation split, so a reader meets the vocabulary before the rule. The headline property was restated from "importing the inference layer must not load the interpreter" to **"importing the Pipelex runtime loads zero interpreter modules"** — the same measurement, phrased as the outward-facing claim.+- The `runtime_bridge` clarifier the plan asked for landed in two places, not one: `hub-layering.md`'s intro and the guard's module docstring, since `plugins → runtime_bridge` appears in that file's Known-inversions list.+- **D1 was preserved verbatim rather than swept.** Mechanically renaming it would have produced a decision record whose rejected alternatives argued about names that were no longer the subject. It is now marked SUPERSEDED, quotes the original in full, and notes that its own "conscious call against the brand-boundary rule" caveat is precisely what Louis acted on.+- `.drift/acks/keyword-only-convention.toml` was **left alone** — an ack is an on-the-record review decision, and rewriting the rationale of a past review to mention a module that did not exist at review time would be falsifying the record.++**One trigger file changed, so `keyword-only-convention` re-opened** — `keyword_only_guard.py`'s docstring names the hub. Reviewed and acked as import-path/prose-only; no guard behavior, registry schema, or carve-out changed.++**Cross-repo is retargeted, not extended.** The sweep tables in this file now name `pipelex.runtime_hub` / `pipelex.interpreter_hub` directly. External repos still import `pipelex.hub`, so they are rewritten exactly once — the intermediate names never reach them, and never shipped.++#### The plan's premise was wrong: `core/` is two layers++Phase 4 assumed all of `pipelex/core/` could join the low layer once five straddlers were converted. Measurement said otherwise, and the correction is the main finding of this checkpoint.++Beyond the five hub straddlers, **seven `core/` modules import the interpreter *directly*** — no hub involved, so no amount of dependency injection touches them:++| module | pulls | why it is irreducible |+| --- | --- | --- |+| `core/registry_models.py` | every pipe + factory | it *is* the registry of pipe kinds |+| `core/bundles/pipelex_bundle_blueprint.py` | 12 pipe blueprints | a discriminated union over every pipe kind |+| `core/interpreter/bundle_elaborator.py` | 4 pipe blueprints | it is the interpreter |+| `core/pipes/pipe_abstract.py` | `libraries.library_crate`, `pipe_signature.exceptions` | the base class every pipe extends |++Measured: `pipelex.core.pipes.pipe_abstract` alone loads **30** interpreter modules while importing no hub at all. So the honest boundary is not `pipelex.core` — it is **"if it names a `Pipe`, it is high."**++Louis' call (option A of three): declare core's data-model packages low, leave the Pipe-touching remainder high. Rejected: threading a provider through `PipeFactory.make_from_blueprint` too — that is **337 call sites (332 in tests, ~85 files)** and buys *no* additional closure property, since `pipe_factory` stays interpreter-bound either way.++#### What landed++**Two read-side contracts, new in `core/`:**++- `ConceptProviderAbstract` (`core/concepts/concept_provider_abstract.py`) — `get_required_concept`, `get_native_concept`, `get_required_concept_from_concept_ref_or_code`, `is_compatible`.+- ~~`PipeProviderAbstract` (`core/pipes/pipe_provider_abstract.py`) — `get_required_pipe`.~~ **Deleted at [Checkpoint A](#checkpoint-a-record--pr-1062-review-follow-ups) (A5)**: it had zero consumers and its docstring described the opposite of what the code does. `get_required_pipe` is back on `PipeLibraryAbstract`.++`ConceptLibraryAbstract` now **extends** the provider abstract, keeping add/remove/list/setup/teardown high. The split is the point: core depends on resolution, never on a library lifecycle. Both abstracts already named only `core` types, so this was an inverted dependency waiting to be undone.++**Injected, not looked up.** `StuffFactory.{make_stuff_from_stuff_content_or_data, make_from_blueprint, make_from_concept_ref}`, `InputShaper.{shape, resolve_input_kind}`, `WorkingMemoryFactory.make_from_pipeline_inputs`, `InputStuffSpecsFactory.{make_from_blueprint, make_from_string}`, `StuffSpecFactory.make_from_blueprint` all take a required `concept_provider`. Injection happens in the high half: `pipe_factory`, `input_renderer`, `output_renderer` call the hub themselves and hand the result down, as does `pipeline/execution_seams.py`.++**One import was simply wrong**: `stuff_factory.py` imported `ConceptLibraryConceptNotFoundError` from `libraries.concept.concept_library` — a re-export path. The class already lived in `core/concepts/exceptions.py`. A one-line fix deleted a whole interpreter edge.++**Two placement fixes** (the H-3 pattern again):++- `codegen/resolved_fields.py` → `core/concepts/resolved_fields.py`. It names nothing outside `pipelex.core`, yet put `pipelex.codegen` into the closure of every core module reaching structure generation.+- `core/pipes/inputs/input_renderer.py` + `core/pipes/output/output_renderer.py` → **`core/pipes/rendering/`**. Both render a `PipeAbstract`, so both are high; leaving `input_renderer` beside the low input-spec modules would have forced the low-layer declaration to enumerate *modules* instead of packages. `core/pipes/output/` is gone. Tests mirrored to `tests/unit/pipelex/core/pipes/rendering/`.++#### Measured after++| | baseline | H-1 | H-3 | H-4 | **Checkpoint A** |+| --- | --- | --- | --- | --- | --- |+| interpreter modules loaded by `cogt.content_generation.content_generator` | 50 | 0 | 0 | 0 | **0** ✅ |+| pipelex modules loaded | 357 | 275 | 268 † | 268 † | **269** |+| SLOC loaded | 29,193 | 21,186 | 20,304 † | 20,304 † | **20,299** |++† The H-3 / H-4 module and SLOC cells were recorded from a stale run — the same tree measures **269 / 20,305**, confirmed by re-reading every closure module at both revisions. The Checkpoint A column is a fresh measurement after the [Phase A follow-ups](#checkpoint-a-record--pr-1062-review-follow-ups); the 6-SLOC drop is those edits (chiefly A3's deletion in `runtime_hub.py`, which is itself in the closure), not a module leaving it. Baseline and H-1 reproduce to the digit.++The inference-layer numbers are unchanged by design — Phase 4 widened *which* modules are guaranteed clean, it did not touch `cogt`'s own weight. The new numbers are the six core entry points, each measured at **0 interpreter modules and no `pipelex.interpreter_hub`**, up from 50 each before this phase:++| entry point | interpreter modules before → after |+| --- | --- |+| `core.stuffs.stuff_factory` | 50 → **0** |+| `core.memory.input_shaper` | 50 → **0** |+| `core.memory.working_memory_factory` | 50 → **0** |+| `core.pipes.stuff_spec.stuff_spec_factory` | 50 → **0** |+| `core.pipes.inputs.input_stuff_specs_factory` | 50 → **0** |+| `core.concepts.structure_generation.generator` | 2 → **0** |++#### Housekeeping done at H-4++- **Grants**: 4 new (the provider-abstract getters), recorded **before** any check ran; 6 migrated with `resolved_fields`; 15 migrated with the two renderers; **4 deleted as dead** (`ConceptLibraryAbstract.get_{native_concept,required_concept,required_concept_from_concept_ref_or_code}`, `PipeLibraryAbstract.get_required_pipe`) — those defs moved to the provider abstracts, and staleness is symmetric so `make cko` hard-failed until the registry was cleaned.+- **Test call sites**: 74 across 12 files gained `concept_provider=get_concept_library()`, applied by an AST-driven fixer keyed off pyright's own `Argument missing` report so no unrelated `make_from_blueprint` was touched. ⚠ The first pass mangled 3 files: for a multi-line call the closing-paren line is whitespace-only, so a "does the preceding text end in a comma?" check must look back **across newlines**, not within the line. Reverted and redone.+- **Docs**: `docs/contribute/hub-layering.md` gained a "Where core splits" section (the two halves, the `if it names a Pipe, it is high` rule, and the injected-provider pattern), two new "Placement, not coupling" entries, a corrected low-layer list under Enforcement, and a rewritten `core/` bullet under Known inversions. `docs/under-the-hood/architecture-overview.md` gained a paragraph on core straddling the line. `docs/under-the-hood/codegen-projections.md` updated for the `resolved_fields` move.+- **CHANGELOG**: the breaking-change note that had been deferred since H-1 is now written under `[Unreleased]`, covering all four phases — the `pipelex.hub` split, the moved types, and the injected providers.++#### Still open++- **The cross-repo sweep is still untouched and release-gated.** It now has a **third** wave on top of the `pipelex.hub` split and the Phase 3 type moves — see [Cross-repo impact added by Phase 4](#cross-repo-impact-added-by-phase-4).+- ~~**The `hub-layering-convention` drift contract decision is still Louis'**~~ — **resolved: approved and landed** after the rename. See [Proposed, reverted, then landed](#proposed-reverted-then-landed).+- A plausible sequel, now much cheaper to argue for than at H-2: a general layering ratchet. The remaining measured inversions are in [Known inversions](#known-inversions-not-fixed-here).++#### Cross-repo impact added by Phase 4++| old | new |+| --- | --- |+| `pipelex.codegen.resolved_fields` | `pipelex.core.concepts.resolved_fields` |+| `pipelex.core.pipes.inputs.input_renderer` | `pipelex.core.pipes.rendering.input_renderer` |+| `pipelex.core.pipes.output.output_renderer` | `pipelex.core.pipes.rendering.output_renderer` |++Plus the signature changes: any external caller of `StuffFactory.make_stuff_from_stuff_content_or_data`, `WorkingMemoryFactory.make_from_pipeline_inputs`, `InputShaper.shape`, `InputStuffSpecsFactory.make_from_*` or `StuffSpecFactory.make_from_blueprint` must now pass `concept_provider=get_concept_library()`. Do all four waves in one pass per repo.++#### Cross-repo impact added by the F1 remedy++| old | new |+| --- | --- |+| `pipelex.plugins.direct.direct_plugin` | `pipelex.interpreter_plugins.direct.direct_plugin` |+| `pipelex.plugins.pipe_func.pipe_func_plugin` | `pipelex.interpreter_plugins.pipe_func.pipe_func_plugin` |+| `pipelex.plugins.builtins` → `BUILTIN_PLUGINS` / `CORE_UNCONDITIONAL_PLUGIN_NAMES` | `pipelex.interpreter_plugins.builtins` → same names (composed); the runtime half stays in `pipelex.plugins.builtins` as `RUNTIME_BUILTIN_PLUGINS` / `RUNTIME_CORE_UNCONDITIONAL_PLUGIN_NAMES` |++Plus one signature change with a **real production call site outside this repo**: `build_registrar` now requires `builtin_plugins=` and `core_unconditional_plugin_names=`.++| repo | site | fix |+| --- | --- | --- |+| `pipelex-api` | `api/main.py:110`, `_resolve_http_error_mappers` — `build_registrar(config=config).get_http_error_mappers()` at module import | import the composed lists from `pipelex.interpreter_plugins.builtins` and pass both. Its docstring's "the same standalone pattern `pipelex plugins list` uses" stays true — that command passes the same two lists |++Verified by grep across the workspace: no other repo calls `build_registrar` or imports either relocated module (`pipelex-mistralai-workflows`'s two hits are prose in docstrings). External plugins are unaffected — they arrive through the `pipelex.plugins` entry point and sit in no declared layer.++### Checkpoint A record — PR #1062 review follow-ups++Phase A of [`wip/hub/pr-1062-review-followups.md`](pr-1062-review-followups.md) is applied: A1's doc-honesty fix plus A2–A8. Per **D-R4** the [F1](pr-1062-review-followups.md#f1--the-layer-rule-is-only-enforced-one-hop-deep) *remedy* is deliberately **not** here — it is its own PR after #1062 merges — so this checkpoint makes the shipped documentation true about a defect that still exists, rather than fixing the defect.++#### What landed++- **A1 — the scope claim is corrected.** `docs/contribute/hub-layering.md`'s "Every declared package is compliant" now says what it means: the declaration is compliant *with the direct-import rule*, which the guard does not follow transitively. Known inversions carries the measurement (the four `pipelex.plugins` modules, their interpreter-module counts, and which two are leaves versus aggregators), states plainly that the headline property is unaffected, and describes the decided fix. Re-measured on the working tree before publishing: 57 / 67 / 67 / 58, reproducing the review exactly.+- **A2 — `pipelex.runtime_hub` joined `RUNTIME_LAYER_PACKAGES`.** The module at the centre of the rule was exempt from it, since no tuple entry was a prefix of it. Verified zero-risk both ways: still 0 violations tree-wide, and an `interpreter_hub` import injected into `runtime_hub.py` in memory is caught at the injected line. `is_runtime_layer`'s docstring now records that matching is exact-or-dotted-prefix, so a bare module is a legal entry beside the packages.+- **A3 — write-only `RuntimeHub._class_registry` deleted**, with `set_class_registry`, `get_required_class_registry`, the `pipelex.py` call site and the subject grant. Zero callers here or in any sibling repo. It was the twin of the `_observer` state H-1 deleted for exactly this reason, and a live trap besides: it returned the boot-time global while the module-level `get_class_registry()` returns the library-scoped one, so the two diverged under `scoped_current_library(...)`.+- **A4 — the loop-invariant `get_concept_library()` in `_delighten_template` is hoisted** above the loop.+- **A5 — `PipeProviderAbstract` deleted; `get_required_pipe` is back on `PipeLibraryAbstract`.** The follow-up plan left this a two-way choice (delete, or keep for symmetry and rewrite the docstring). Deleted, because the abstract had zero consumers, bought no closure property (`core.pipes` is not runtime-layer), and its docstring asserted the opposite of the code — it claimed core takes pipe resolution as a parameter, while the only two sites that follow a pipe reference (`core/pipes/rendering/output_renderer.py:51` and `:84`) call `interpreter_hub.get_required_pipe` directly. Symmetry with `ConceptProviderAbstract` is not a reason to ship an unused abstraction. The absence is now documented where it will be questioned — on `PipeLibraryAbstract` and in `hub-layering.md` — so the next reader does not "restore" it.+- **A6 — five accuracy fixes.** `runtime_hub.py`'s docstring stopped forbidding `core.concepts` / `core.pipes` wholesale (`core.concepts` is a *declared runtime-layer package* and sits in `runtime_hub`'s own closure); `pipelex.py`'s boot comment stopped claiming the InterpreterHub install "needs a RuntimeHub already in place" (it stores a lazily-resolved callable and needs nothing); the CHANGELOG names the exact templating modules, since `pipelex.tools.templating.__init__` is 0 bytes and the path it printed raised `ImportError` for the external consumers who read that file; and the low/high vocabulary survivors are swept — **four**, not the two the review found (`concept_library_abstract.py` and `pipe_library_abstract.py` carried "stays here, high" too).+- **A7 — `make generate-error-pages` re-run.** `job-metadata-error.md` had followed neither of Phase 3's moves; it now reports `pipelex.system.exceptions`, and the generator also re-filed its index entry from "execution and runtime" to "platform and tooling", which is the subsystem grouping following the class.+- **A8 — the class-registry leaf-import rule is restated.** It said "import the leaf only from inside `runtime_hub`'s import closure", which is false for two of the three in-tree importers (verified: `concept.py` is inside, `concept_factory.py` and `structure_generation/generator.py` are not). The real criterion is a module that must stay import-light *with respect to* `runtime_hub`. As written, the rule invited someone to "fix" `concept_factory.py` into re-coupling `core.concepts` to the whole cogt/plugin stack — and neither gate would have noticed, because the closure test measures interpreter modules, not weight.+- **Batched in:** the published doc's pointer to `wip/pr-1062-review-notes.md` is folded into an in-place sentence. `wip/` is outside `docs_dir`, so it was unreachable for a reader on docs.pipelex.com and would dangle once the file is archived.++#### The measurement++Re-taken here rather than copied — see the [H-4 table](#measured-after-1) for the full row and the stale-recording footnote. The closure is **269 modules / 20,299 SLOC / 0 interpreter modules**. The 6-SLOC drop against the pre-Phase-A tree is A3's deletion in `runtime_hub.py` (itself in the closure), confirmed by re-reading every closure module at both revisions; no module left the closure.++#### Not in this checkpoint++- **The F1 remedy** — (d) split the built-ins by layer + (c) teach the guard the transitive check. Its own PR after #1062 merges, per D-R4. Until it lands, Known inversions is the record that keeps the breach visible.+- **[Phase C](pr-1062-review-followups.md#phase-c--release-wave-additions)** — folded into the release-gated cross-repo sweep per D-R1. It adds a governed `docs/specs/` + `conformance/` surface and five consumer repos the [sweep tables](#cross-repo-sweep) below are missing, including `pipelex-transport`, whose `bridge.py` calls a changed signature in production code.++[Phase B](#checkpoint-b-record--test-hardening) followed immediately and is now applied too.++### Checkpoint B record — test hardening++Gates: `make agent-check` ✅ (pyright 0 errors, mypy 2,358 files, keyword-only PASSED, hub-layering PASSED) · full `make agent-test` ✅ · `make drift-check` ✅ (one contract re-opened, reviewed and acked — see below).++Phase B of [`wip/hub/pr-1062-review-followups.md`](pr-1062-review-followups.md) is applied in full: B1–B7. Three new test modules, three hardened ones, one guard fix.++**Every item was verified by mutation.** Watching a new test go green proves nothing about what it pins, and two of these items exist precisely because an existing test *appeared* to pin something it did not. So for each one the pinned behavior was removed, the new test confirmed to fail, and the mutation reverted. What that turned up is worth keeping:++- **B1's mutation is the finding, restated as a fact.** Deleting `class_registry_scoping.reset()` from `Pipelex.teardown` fails the new test and *only* it — the three other tests in the module, including the pre-existing one that calls `reset()` directly under a `# what Pipelex.teardown does` comment, stay green. That comment was the whole safety net. The simulation test is kept, because it does pin `reset()`'s own semantics; its comment now says so instead of overclaiming.+- **B2 needed a stronger assertion than the plan specified.** The plan said to assert `returncode == 1` on a known-dirty entry point. That would **not** have worked: the closure script's *second* check (`pipelex.interpreter_hub in sys.modules`) exits 1 for `pipelex.interpreter_hub` whatever the offender predicate does, so the control would have passed over a completely broken detector. The test asserts the offender *message* too. Confirmed by mutation: typo-ing `INTERPRETER_PACKAGES` and emptying `INTERPRETER_CORE` fails the control while all eight real entry points pass vacuously — the exact failure mode the item was written against.+- **B5's mutation reproduces the regression the finding describes.** Making `resolve_input_kind` accept `concept_provider` and then call `get_concept_library()` anyway fails the new test alone, with the other 69 `input_shaper` tests green. Before it, that regression failed nothing anywhere.+- **B3 and B4** fail 4-of-6 and 2-of-5 respectively when their gates are removed (`sys.exit(1)` deleted from both command paths; the `__pycache__` skip dropped from `iter_source_files`).+- **B6 is a fix, not just a test.** `_is_type_checking_test` matched `ast.Attribute(attr=...)` with an unconstrained receiver, so `settings.TYPE_CHECKING:` — an ordinary runtime condition — claimed the layer-rule exemption. Tightened to require the receiver to be `typing`. Verified safe before tightening: nothing in `pipelex/` or `tests/` uses the attributed form at all, so there was no alias (`import typing as t`) to break.++**B6 re-opened the `hub-layering-convention` drift contract**, which the plan had said Phase B would not do — `hub_layering_guard.py` is one of its triggers. Reviewed and acked. Both prescribed mechanical checks were re-run (33 + 32 public module-level hub symbols all present in the partition tables; all 12 declared runtime-layer entries named under Enforcement), and `docs/contribute/hub-layering.md` gained the receiver constraint on its `TYPE_CHECKING` bullet.++**One observation from that ack is worth carrying forward.** The read-through caught staleness the contract's triggers structurally cannot see: B1/B2/B7 changed the two test modules the doc has sections on, and neither test file is a trigger — deliberately, per the contract's initial scoping. So the contract fired on the guard, and the review found the spillover. That is not an argument for widening the triggers (the scoping was Louis' call, and the spillover was caught anyway); it is evidence that a review target's value is bounded by what the reviewer reads, not by what opened the contract. Recorded in `wip/drift-contracts/dogfood-log.md` as this contract's second consecutive `real-catch`.++**Two things caught in passing, both fixed here:**++- **The plan's B2 instruction would not have worked as written** — see the bullet above. Recorded because it generalizes: a negative control that asserts only an exit code is only as strong as the *first* thing that can produce it.+- **Two dead anchor links in `hub-layering.md`**, pre-existing since the page was written and invisible to every gate the branch runs — `make docs-check` reports them as `INFO`, not a failure. The heading is `### The rule — \`make check-hub-layering\``, and Python-Markdown strips the em dash rather than turning it into a second hyphen, so `#the-rule--make-check-hub-layering` never resolved. Confirmed against the built site's real `id`, and confirmed pre-existing by re-running the check with Phase B stashed.++**No CHANGELOG entry.** Phase B adds tests and tightens a `pipelex-dev` guard, and `pipelex/cli/dev_cli` is excluded from both wheel and sdist — nothing here reaches a release consumer.++The measurement is untouched by Phase B — no production module changed except the guard, which is dev-CLI-only and outside every closure. The [Checkpoint A column](#measured-after-1) stands.++### Checkpoint A1 record — the F1 remedy++Applied on `refactor/Hub-2`, after #1062 merged. **The full record lives with the plan**, at [`wip/hub/pr-1062-review-followups.md` → Checkpoint A1](pr-1062-review-followups.md#checkpoint-a1-record--the-f1-remedy): what landed against what D-R4 planned, the measurements, how the new rule was verified by reproducing the defect on the pre-remedy tree, which existing tests it touched and why, and what it deliberately does not do. Summarized here only so this tracker is not misleading on its own:++- `pipelex/interpreter_plugins/` is the interpreter-side home for `direct/` and `pipe_func/`; `plugins/builtins.py` keeps the runtime half; the interpreter half composes both.+- `build_registrar` takes `builtin_plugins` and `core_unconditional_plugin_names` as required parameters — see the [sweep row](#cross-repo-impact-added-by-the-f1-remedy) for the one external call site this breaks.+- The guard gained a **transitive rule** over the module-level import graph; `pipelex.plugins.builtins` gained a closure-test entry point.+- **0 of 473** declared runtime-layer modules reach `interpreter_hub`, down from 4 of 477. Gates all green, and the headline measurement below is unchanged (nothing that loads at runtime moved — only where the built-ins are filed).++## Exit criteria — measured, not asserted++The headline property is that the inference layer must stop importing the interpreter. Measure it directly, from the repo root on a synced venv:++```bash+.venv/bin/python - <<'PY'+import sys+from pathlib import Path++import pipelex.cogt.content_generation.content_generator # noqa: F401++INTERPRETER = {"libraries", "pipe_operators", "pipe_controllers", "codegen", "builder"}+loaded = {name: mod for name, mod in sys.modules.items() if name.startswith("pipelex.")}+interpreter = sorted(n for n in loaded if n.split(".")[1] in INTERPRETER)+sloc = 0+for mod in loaded.values():+ file = getattr(mod, "__file__", None)+ if file:+ sloc += sum(1 for line in Path(file).read_text(encoding="utf-8").splitlines() if line.strip() and not line.strip().startswith("#"))+print(f"pipelex modules: {len(loaded)} | sloc: {sloc} | interpreter modules: {len(interpreter)}")+print("offenders:", interpreter)+PY+```++If Phase 1 lands and `interpreter modules` is not 0, the snippet prints the offenders: something imports the interpreter outside the hub, and the shortest import path to it is what to fix. Swap the imported module to measure any other entry point (`pipelex.pipelex`, `pipelex.runtime_hub`, …).++The module/SLOC targets come from importing exactly the types a low-only hub would annotate — 236 modules / 17,683 SLOC with the interpreter subpackages at zero — plus headroom for cogt's own modules.++## Findings in passing++> **Both are resolved as of H-1** — see [Findings in passing — both resolved, one bigger than recorded](#findings-in-passing--both-resolved-one-bigger-than-recorded). The `_observer` one turned out to be more than dead code: a public doc page documented the inert setter as the supported API.++Both surfaced while inventorying the boot sequence. Neither is caused by this refactor; both are in its blast radius, and the repo's flag-and-fix rule applies.++- **Duplicate `set_library_manager` in `Pipelex.setup`.** Lines 364–365 and 474–475 are the identical pair `self.library_manager = library_manager or LibraryManager()` + `self.pipelex_hub.set_library_manager(...)`. Nothing between them touches `library_manager` (verified), so when the caller passes no manager the first `LibraryManager()` is constructed, registered, and then silently discarded and replaced by a second instance. Delete the earlier pair — it is dead, and removing it is what makes the low/high boot split clean with no reordering (step 1.5).+- **`_observer` is write-only state.** `PipelexHub.set_observer` is called at `pipelex.py:503`, but there is no `get_observer` on the container and no module-level accessor — the live observer reaches its consumer directly via `PipeRouter(observer=multi_observer)` at line 531. The design doc lists "observer" among the `interpreter_hub` contents; it should be **deleted rather than moved**. Confirm no external consumer sets it before removing (see [Cross-repo sweep](#cross-repo-sweep)).++## Risks and containment++- **Big mechanical diff.** Contained by: the rewrite is scriptable from the partition table; `pipelex.hub` ceasing to exist means a missed site is an import error, not a silent wrong-layer resolution; and full `make agent-test` is the zero-behavior-change bar. The 29 multi-line import blocks are the one place a careless script does real damage — rewrite via `ast`, not regex.+- **Two singletons, two lifecycles, two teardowns.** Contained by the tiny construction surface. Watch `Pipelex.teardown` / `teardown_if_needed` and the fixtures that reset hub state — a half-reset hub between tests is the realistic failure mode, and it surfaces as cross-test pollution rather than a clean failure. Step 1.7 exists for this; make the "both hubs reset" assertion explicit rather than implied.+- **D5's resolver slot is installed at boot, not imported.** If a consumer builds a `RuntimeHub` without ever populating a `InterpreterHub` (the doctor path, some tests), `get_class_registry` must degrade to the unscoped `KajsonManager` registry rather than raise. Default the slot to a function returning `None`, never to an unset attribute.++## Cross-repo sweep++Release-gated follow-up — `pipelex.hub` is imported outside this repo and every one of these breaks the moment the module disappears.++| repo | files importing `pipelex.hub` |+| --- | --- |+| `pipelex-temporal/` (private) | 35 |+| `pipelex-mistralai-workflows/` | 11 |+| `pipelex-api/` | 9 |+| `pipelex-cookbook/` | 2 |+| `cocode/` | 2 |++Clean (no action): `pipelex-worker/`, `pipelex-starter-python/`, `pipelex-relay/`, `n8n-nodes-pipelex/`, `sandbox/`.++Symbols crossing the repo boundary today, which is the surface whose new home is a published contract change:++`clear_current_library`, `get_bundle_validator_registry`, `get_class_registry`, `get_console`, `get_content_generator`, `get_current_library`, `get_current_library_id_or_none`, `get_library_manager`, `get_model_deck`, `get_orchestrator_registry`, `get_pipe_func_executor_registry`, `get_pipe_library`, `get_pipe_router`, `get_pipelex_hub`, `get_report_delegate`, `get_required_concept`, `get_required_pipe`, `get_secret`, `get_storage_provider`, `get_storage_provider_registry`, `is_dry_run_forced`, `scoped_current_library`, `set_current_library`++Two notes on that list: `get_pipelex_hub` splits into two accessors, so every external site must pick a half; and `set_pipe_router` / `teardown_current_pipe_router` / `scoped_pipe_router` are documented as depended upon by our Mistral Workflows plugin, so their move is a contract change to announce, not just to make.++**Rewrite straight to the final names — there is no intermediate step.** `service_hub` / `method_hub` never shipped, so external repos go directly from `pipelex.hub` to:++| old | new |+| --- | --- |+| `from pipelex.hub import <runtime symbol>` | `from pipelex.runtime_hub import …` — everything in the [`runtime_hub` partition table](#-pipelexruntime_hubpy-runtime-layer) |+| `from pipelex.hub import <interpreter symbol>` | `from pipelex.interpreter_hub import …` — everything in the [`interpreter_hub` partition table](#-pipelexinterpreter_hubpy-interpreter-layer) |+| `get_pipelex_hub` | `get_runtime_hub` **or** `get_interpreter_hub` — pick the container the call site actually meant |+| `PipelexHub` | `RuntimeHub` **or** `InterpreterHub` |++**Phase 3 added a second wave of breakage to the same sweep** — the moved types, not the hub accessors. The per-repo counts and the complete old→new import table are in [Cross-repo impact added by Phase 3](#cross-repo-impact-added-by-phase-3). Do both waves in one pass per repo.++## Known inversions — not fixed here++Named so the docs stay honest, not scheduled.++- `plugins/pipe_func_executor_registry.py` imports from `pipe_operators/` — under `TYPE_CHECKING`, so it loads nothing and breaches no rule, but the *placement* is still inverted: a runtime-layer module typed by an interpreter-layer protocol. This is D3's underlying inversion, and it is what is left of it. The two plugins that used to sit beside it — `pipe_func_plugin.py` and `direct_plugin.py`, which imported `pipe_operators/` and `pipeline/` for real — are no longer in `plugins/`: the F1 remedy moved them to `pipelex/interpreter_plugins/`, and the guard's transitive rule would now flag them if they came back.+- A general layering ratchet ("no low module may import any high module", with an allowlist) is out of scope. The measured inversion set is real but larger than this change should carry. **Re-measured at H-3**, after Phase 3 removed the two biggest clusters: `cogt → core` (21), `system → cogt` (7), `plugins → runtime_bridge` (6), `tools → cogt` (3 — the pdf renderer reaching for `cogt.extract` / `cogt.image` types, the same misfiling pattern Phase 3 fixed elsewhere), and one genuine wart — `cogt/model_backends/model_lists.py` importing `pipelex.cli.exceptions.PipelexCLIError`. `cogt → pipeline` (18) is gone. The general rule is now a more plausible sequel than it was at H-2.+- Eager optional-SDK imports: `pipelex/tracing/event_log_factory.py` imports `dynamodb_event_log` at module level, which runs a module-level `try: import boto3`, so `boto3`/`botocore`/`jmespath`/`dateutil`/`six` load in every process that touches the tracing factory. A three-line fix (import `DynamoDBEventLog` inside the factory branch, the pattern already used for `pypdfium2` in `cogt/content_generation/render_generate.py`), entirely independent of this plan. Most other heavy roots (`posthog`, `pypdfium2`, `pillow`, `polyfactory`, `datamodel-code-generator`) are **base** dependencies, not extras — not the same kind of finding.diff --git a/wip/hub/layer-and-hub-renaming.md b/wip/hub/layer-and-hub-renaming.mdindex bbb5aefc5..191c4eef0 100644--- a/wip/hub/layer-and-hub-renaming.md+++ b/wip/hub/layer-and-hub-renaming.md@@ -1,6 +1,6 @@# Renaming the layers and the hubs — `runtime` / `interpreter`-**Status: EXECUTED.** Landed as its own commit after H-4, with all three gates green. The outcome record — what the plan got right, the two places it under-specified, and the judgment calls made while sweeping the docs — is in [`TODOS.md` → The runtime/interpreter rename, record](../../TODOS.md#the-runtimeinterpreter-rename--record). This document stays as the decision record: it is the *why*, and its old→new tables are deliberately not swept.+**Status: EXECUTED.** Landed as its own commit after H-4, with all three gates green. The outcome record — what the plan got right, the two places it under-specified, and the judgment calls made while sweeping the docs — is in [`TODOS.md` → The runtime/interpreter rename, record](hub-split-tracker.md#the-runtimeinterpreter-rename--record). This document stays as the decision record: it is the *why*, and its old→new tables are deliberately not swept.Two corrections to the mechanical plan below, for anyone reading it as a template:@@ -209,6 +209,6 @@ Expect **`cli-docs` to fire** — the rename touches many CLI modules' import li## Cross-repo-This **replaces**, not adds to, the first wave of the [cross-repo sweep](../../TODOS.md#cross-repo-sweep): external repos go straight from `pipelex.hub` to `pipelex.runtime_hub` / `pipelex.interpreter_hub`, never touching the intermediate names. Update the sweep tables in `TODOS.md` to the final names as part of this work, so the sweep is done once with the right target.+This **replaces**, not adds to, the first wave of the [cross-repo sweep](hub-split-tracker.md#cross-repo-sweep): external repos go straight from `pipelex.hub` to `pipelex.runtime_hub` / `pipelex.interpreter_hub`, never touching the intermediate names. Update the sweep tables in `TODOS.md` to the final names as part of this work, so the sweep is done once with the right target.Affected: `pipelex-temporal` (35 files, private), `pipelex-mistralai-workflows` (11), `pipelex-api` (9), `pipelex-cookbook` (2), `cocode` (2). `get_pipelex_hub` splits into `get_runtime_hub` / `get_interpreter_hub`.diff --git a/wip/hub/pr-1062-review-followups.md b/wip/hub/pr-1062-review-followups.mdindex 4b210e4e5..56bd86f43 100644--- a/wip/hub/pr-1062-review-followups.md+++ b/wip/hub/pr-1062-review-followups.md@@ -1,15 +1,15 @@# PR #1062 — `/review` follow-ups-**Status: [Phase A](#phase-a--in-pr-fixes) and [Phase B](#phase-b--test-hardening) are APPLIED**, recorded at [Checkpoint A](../../TODOS.md#checkpoint-a-record--pr-1062-review-follow-ups) and [Checkpoint B](../../TODOS.md#checkpoint-b-record--test-hardening) in the tracker. [Phase C](#phase-c--release-wave-additions) and the [F1](#f1--the-layer-rule-is-only-enforced-one-hop-deep) remedy (the A1-PR) are **not** started. PR [#1062](https://github.com/Pipelex/pipelex/pull/1062) is open against `dev`. This document is the executable follow-up plan from a full `/review` pass, written so it can be picked up cold in a new session.+**Status: [Phase A](#phase-a--in-pr-fixes), [Phase B](#phase-b--test-hardening) and the [F1](#f1--the-layer-rule-is-only-enforced-one-hop-deep) remedy (the A1-PR) are APPLIED.** PR [#1062](https://github.com/Pipelex/pipelex/pull/1062) merged to `dev` on 2026-07-27 (squash `6fbdcb2fd`), carrying Phases A and B — recorded at [Checkpoint A](hub-split-tracker.md#checkpoint-a-record--pr-1062-review-follow-ups) and [Checkpoint B](hub-split-tracker.md#checkpoint-b-record--test-hardening). The A1-PR — remedy (d)+(c) per [D-R4](#decisions-taken) — is applied on branch `refactor/Hub-2` and recorded at [Checkpoint A1](#checkpoint-a1-record--the-f1-remedy). **[Phase C](#phase-c--release-wave-additions) is the only phase left**, and it is release-gated. This document is the executable follow-up plan from a full `/review` pass, written so it can be picked up cold in a new session.**Related:** [`../pr-1062-review-notes.md`](../pr-1062-review-notes.md) records the earlier Codex thread triage (the closure-predicate widening, the `pipe_output` reclassification, and one deliberately-deferred item). That file is about *one* review thread; this one is the whole review. They do not overlap except where noted.## Cold start — read in this order-1. This section, then [Decisions taken](#decisions-taken) — what was chosen and what was declined. Every decision is now taken, including [D-R4](#decisions-taken) (decided 2026-07-27).-2. [F1](#f1-the-layer-rule-is-only-enforced-one-hop-deep) — the biggest finding, and the only one that changes how the boundary is enforced. It invalidates a claim the shipped doc makes. **It was re-verified on 2026-07-26 and three specifics in the first draft were corrected**; read the section as it now stands, not any summary of it elsewhere.-3. [Phase A](#phase-a--in-pr-fixes) — the code changes, in dependency order. A1 is now split per D-R4: only its doc-honesty fix stayed in #1062; the remedy itself is its own follow-up PR. Everything else in the phase is applied.-4. [Phase B](#phase-b--test-hardening) — applied, every item mutation-verified. [Phase C](#phase-c--release-wave-additions) is the only phase left here, and it is release-gated.+1. This section, then [Decisions taken](#decisions-taken) — what was chosen and what was declined. Every decision is taken, including [D-R4](#decisions-taken) (decided 2026-07-27, applied the same day).+2. [Checkpoint A1](#checkpoint-a1-record--the-f1-remedy) — **start here for the current state**: what the remedy actually did, what it measured, and where it differed from the plan.+3. [F1](#f1-the-layer-rule-is-only-enforced-one-hop-deep) — the finding the remedy closed. Kept in full as the record: the measurement, the three routes, and why the headline property was never damaged. It is history now, not open work.+4. [Phase A](#phase-a--in-pr-fixes) and [Phase B](#phase-b--test-hardening) — applied, every Phase B item mutation-verified. [Phase C](#phase-c--release-wave-additions) is the only phase left here, and it is release-gated.Every finding below was **verified by running it**, not by reading alone. The reproduction command is quoted with each one; re-run it first if you doubt a claim, because several of them contradict what the tracker and the shipped docs currently say.@@ -33,6 +33,8 @@ Recorded so nobody re-audits it. Each of these was independently re-measured, no## F1 — the layer rule is only enforced one hop deep+> ✅ **RESOLVED 2026-07-27** by remedy (d)+(c) — see [Checkpoint A1](#checkpoint-a1-record--the-f1-remedy). Everything below is kept verbatim as the record of what was measured and why; the tree now reports **0 of 473** declared runtime-layer modules reaching `interpreter_hub`, and the guard follows the import graph so this class of breach cannot recur silently. Read it for the reasoning, not for open work.+**This is the finding that matters most, and it is not what the earlier review thread was about.**The guard checks whether a runtime-layer module *directly* imports `pipelex.interpreter_hub`. It does not follow the import graph. `pipelex.plugins` is a declared runtime-layer package, and four of its modules reach `interpreter_hub` transitively. Both gates stay green.@@ -201,11 +203,11 @@ Ordered so each step leaves the tree green. **A1, A2 and A6 touch `hub-layering-**A1 is the only item that changes what the boundary actually guarantees. Per [D-R4](#decisions-taken) (decided 2026-07-27) it is now split: only the doc-honesty fix below stays in #1062; the remedy — (d)+(c) — is its own follow-up PR.** Everything else in the phase is independent of A1 and of each other, and can be done in any order.- [x] **A1 (in #1062) — correct the doc.** ✅ Applied. Per [F1.c](#f1c--the-headline-property-is-not-damaged): `docs/contribute/hub-layering.md:184` ("Every declared package is compliant") is true only of the direct-import rule and reads as a claim about the property — the branch must not merge shipping a claim the measurement contradicts; the Known-inversions preamble at `:217` needs the measurement (the inversion loads `interpreter_hub` and 67 interpreter modules today), not just the placement note, and understates both listed instances; `plugins/discovery.py` + `plugins/builtins.py` are not listed there at all despite pulling `builder` and `codegen`. State that the fix is decided and planned ([D-R4](#decisions-taken)). Do **not** repeat the original draft's framing that the headline property is broken — it is not.-- [ ] **A1-PR (own follow-up PR, after #1062 merges) — apply remedy (d)+(c).** Scope per [D-R4](#decisions-taken) and the [Resolutions](#remedy-d--resolutions-2026-07-27): the four moves of [(d)](#remedy-d--split-the-built-ins-by-layer) with the interpreter-side home and parameter-passed `CORE_UNCONDITIONAL_PLUGIN_NAMES`; the transitive check [(c)](#remedy-options-with-what-was-measured-about-each) in the guard; one `pipelex.plugins` closure-test entry point (the broad five-package addition from the original A1.1 is consciously skipped — superseded by (c)); the contract-docstring sentence; and the `hub-layering.md` rewrite removing the inversion from Known-inversions once it is actually gone.+- [x] **A1-PR (own branch `refactor/Hub-2`, off the #1062 merge commit) — apply remedy (d)+(c).** ✅ Applied 2026-07-27, exactly the scope [D-R4](#decisions-taken) and the [Resolutions](#remedy-d--resolutions-2026-07-27) set, with no scope added. Full record at [Checkpoint A1](#checkpoint-a1-record--the-f1-remedy).- [x] **A2 — close the [F2](#f2-the-guard-does-not-enforce-its-own-rule-on-runtime_hubpy) guard gap.** ✅ Applied; re-verified both ways (0 violations tree-wide, injected import caught). Add `"pipelex.runtime_hub"` to `RUNTIME_LAYER_PACKAGES`; fix the `:110` sentence in `hub-layering.md`. Note the tuple is named `..._PACKAGES` but `is_runtime_layer` matches a bare module fine (`==` or `startswith(pkg + ".")`); add a line to its docstring saying so. Verified zero-risk: still 0 violations, and it catches an injected `interpreter_hub` import at line 35.- [x] **A3 — delete write-only `RuntimeHub._class_registry`.** ✅ Applied, grant dropped. Remove the field, `set_class_registry`, `get_required_class_registry`, the `pipelex/pipelex.py:339` call, and the now-stale grant `pipelex/runtime_hub.py::RuntimeHub.set_class_registry` (grant staleness is symmetric — `make cko` hard-fails until the registry is cleaned). `get_required_class_registry` has **zero callers** in this repo or any sibling repo; verified. It is pre-existing, but this PR deleted `_observer` for exactly this reason, so the twin is a missed sweep. It is also a live trap: it returns the boot-time global while the module-level `get_class_registry()` returns the **library-scoped** registry, so under `scoped_current_library(...)` the two differ — and the PR's own new test pins that divergence.- [x] **A4 — hoist the loop-invariant lookup.** ✅ Applied. `pipelex/core/pipes/rendering/input_renderer.py:134` calls `get_concept_library()` once per `_delighten_template` iteration. Hoist it above the `for`. It also defeats `resolve_input_kind`'s `DYNAMIC` early return, which used to skip the lookup entirely.-- [x] **A5 — resolve `PipeProviderAbstract`.** ✅ **Deleted** (the first of the two options), `get_required_pipe` back on `PipeLibraryAbstract`, grant re-recorded there, docstring + `hub-layering.md` + CHANGELOG updated to state the absence is deliberate. Rationale in the [Checkpoint A record](../../TODOS.md). It has zero consumers, and its docstring describes the opposite of what the code does: it says core declares pipe resolution *"as a parameter instead of reaching for `interpreter_hub.get_required_pipe`"*, while `core/pipes/rendering/output_renderer.py:51` (a condition's mapped pipes) and `:84` (a sequence's last step) — the two cases the docstring names — both call `interpreter_hub.get_required_pipe` directly. It buys no closure property either, since `core.pipes` is not runtime-layer. **Either delete it** and put `get_required_pipe` back on `PipeLibraryAbstract` (smallest correct surface, consistent with the repo's no-speculative-additions rule), **or** keep it for symmetry with `ConceptProviderAbstract` and rewrite the docstring to say it is not consumed yet. Deleting also means dropping its subject grant.+- [x] **A5 — resolve `PipeProviderAbstract`.** ✅ **Deleted** (the first of the two options), `get_required_pipe` back on `PipeLibraryAbstract`, grant re-recorded there, docstring + `hub-layering.md` + CHANGELOG updated to state the absence is deliberate. Rationale in the [Checkpoint A record](hub-split-tracker.md). It has zero consumers, and its docstring describes the opposite of what the code does: it says core declares pipe resolution *"as a parameter instead of reaching for `interpreter_hub.get_required_pipe`"*, while `core/pipes/rendering/output_renderer.py:51` (a condition's mapped pipes) and `:84` (a sequence's last step) — the two cases the docstring names — both call `interpreter_hub.get_required_pipe` directly. It buys no closure property either, since `core.pipes` is not runtime-layer. **Either delete it** and put `get_required_pipe` back on `PipeLibraryAbstract` (smallest correct surface, consistent with the repo's no-speculative-additions rule), **or** keep it for symmetry with `ConceptProviderAbstract` and rewrite the docstring to say it is not consumed yet. Deleting also means dropping its subject grant.- [x] **A6 — doc/comment/CHANGELOG accuracy.** ✅ Applied. Five independent one-liners:- `pipelex/runtime_hub.py:9-11` forbids naming `core.concepts` and `core.pipes`, but `core.concepts` is a **declared runtime-layer package** and is in `runtime_hub`'s own closure — as line 415 of the same file says. Match the canonical doc: `core.bundles`, `core.interpreter`, and the Pipe-touching modules of `core.pipes`.- `pipelex/pipelex.py:122-124` claims RuntimeHub must be installed first because the scoping install *"needs a RuntimeHub already in place"*. It does not — `class_registry_scoping.install` lives in a module that imports nothing from `pipelex`, and `_resolve_scoped_class_registry` reads only the contextvar and the library manager, lazily. State the real reason (runtime is the lower layer, so it reads first) or drop the clause.@@ -239,6 +241,72 @@ Additive; landed in one commit after Checkpoint A. B1 and B2 are the two that pi>> Per [D-R4](#decisions-taken) the property-side fix is in the A1-PR, not here: no new green entry point landed in #1062, and B2's control is dirty by definition so it survives the remedy unchanged.+## Checkpoint A1 record — the F1 remedy++Branch `refactor/Hub-2`, off `6fbdcb2fd` (the #1062 merge). Gates: `make agent-check` ✅ (pyright 0 errors, mypy 2,361 files, keyword-only PASSED, hub-layering PASSED) · full `make agent-test` ✅ · `make tb` ✅ · `make drift-check` ✅ (two contracts reviewed and acked — see below).++### What landed, against what was planned++The [four moves of (d)](#remedy-d--split-the-built-ins-by-layer) plus [(c)](#remedy-options-with-what-was-measured-about-each), and nothing else:++- **`pipelex/interpreter_plugins/`** is the new interpreter-side home. `plugins/direct/` and `plugins/pipe_func/` moved there wholesale (`git mv`, subpackage shape preserved, so the only churn is the parent path). Its `builtins.py` imports the runtime half — downward, which the interpreter layer may do — and exports the composed `BUILTIN_PLUGINS` / `CORE_UNCONDITIONAL_PLUGIN_NAMES`.+- **`pipelex/plugins/builtins.py`** keeps the seventeen runtime adapters as `RUNTIME_BUILTIN_PLUGINS` / `RUNTIME_CORE_UNCONDITIONAL_PLUGIN_NAMES`. The composed list keeps the canonical names, so exactly one symbol still answers "what are the built-in plugins".+- **`build_registrar` takes both as required keyword parameters.** No default, so a caller cannot silently boot with half the plugins. Both call sites — `pipelex.py` and the `pipelex plugins list` diagnostic — pass the composed lists.+- **The guard learned the transitive rule** (`collect_transitive_violations`): build the module-level import graph of `pipelex/`, reverse-BFS once from `interpreter_hub` to find every module that reaches it, then report the runtime-layer ones with the shortest chain and the line of the first hop. Module-level imports only, `TYPE_CHECKING` and function bodies excluded; a *direct* import is left to rule 1 rather than double-reported; no escape hatch.+- **`pipelex.plugins.builtins` joined the closure test's entry points** — one, as decided, not the broad five-package addition.+- **`PipelexPlugin`'s docstring carries the one-plugin-one-layer invariant**, as a sentence, not machinery.++### Measured++```+ before after+declared runtime-layer modules 477 473 (4 relocated)+ ... reaching interpreter_hub 4 0+pipelex.plugins modules 131 127+pipelex.plugins.discovery interp= 67 0+pipelex.plugins.builtins interp= 67 0+```++The plan's simulation predicted **128** modules left in `pipelex.plugins`, not 127: its `RELOCATED` filter used the prefix `pipelex.plugins.pipe_func.` with a trailing dot, which misses the package's own `__init__`. Four files moved, not three.++The *before* figure is **477**, not the 476 the [F1.a sweep](#f1a--the-blast-radius-is-exactly-pipelexplugins) printed: that table has one row per declared runtime-layer **package** and so omits `pipelex.runtime_hub`, which is a bare *module* entry in `RUNTIME_LAYER_PACKAGES` — and the one module the whole rule exists to protect. Its reaching count was 0 either way, so no conclusion moves; the sweep's own rows are kept verbatim above as the record. Re-measured on the base commit with the shipped guard's helpers: per-entry sum and distinct count both 477, `pipelex.runtime_hub → 1`. 477 → 473 is the same four relocated modules the `pipelex.plugins 131 → 127` row already counts.++**What the transitive rule costs, measured honestly.** Do not difference against the 2.79s in the [remedy options](#remedy-options-with-what-was-measured-about-each) — that was taken in an earlier session on a different tree, and comparing to it understates the cost. Measured back-to-back on this tree, same binary, with the transitive pass enabled and then disabled:++```+with 3.06s / 2.87s / 2.83s in-process: per-file rules (both roots) 1.50s+without 2.46s / 2.48s / 2.47s transitive rule (pipelex/) 0.38s+```++**+0.38s, or +15% of the command** (+25% of the scan work; the remaining ~1.0s is process startup). Under the 0.83s the prototype suggested, but not free.++**All of it is re-parsing.** Over 956 modules and 4,403 edges: the reverse-BFS reachability is **0.5ms**, and the graph visitor is cheaper than the per-file collector (it skips function bodies and walks no string constants). So the honest description is not "reachability is cheap because it runs once in reverse" — it is "the pass parses the tree a second time, and parsing is the whole bill."++That is also where the optimization is, if the cost ever matters: the per-file pass already parses every `pipelex/` module, so feeding one parse to both collectors would recover most of the 0.38s. **Deliberately not done.** It would couple two passes that are currently independent and independently testable — `find_violations_in_source` takes *source text* and is what the snippet tests drive, while the graph builder needs an AST plus a resolved qname per file — and 0.38s on a gate whose parent (`make agent-check`) is dominated by pyright and mypy is not worth that. Revisit only if `pipelex/` grows enough to make the guard a felt cost in CI.++### Verified by reproducing the defect, not only by going green++A rule that reports nothing is indistinguishable from a rule that sees nothing. So the new check was run against **`HEAD` — the pre-remedy tree** (`git archive HEAD pipelex`, scanned with the new guard from the working tree): it reproduces F1 exactly — the same four modules, with the same three routes [F1.b](#f1b--there-are-three-routes-not-one) documented, including both of `direct_plugin`'s independent routes. On the fixed tree it reports 0. The ten unit tests in `tests/unit/pipelex/cli/dev/test_hub_layering_transitive.py` were mutation-verified: dropping the function-body skip fails the two deferred-import cases, dropping the runtime-layer filter fails two more, and reporting direct imports fails the no-double-report case.++### The existing tests this touched, and why++- `test_plugin_discovery.py` patched `discovery.BUILTIN_PLUGINS`, a module global that no longer exists. Its helper now passes the list in — which is the honest shape anyway, since that is how production calls it. It gained one test pinning that the composed list *is* both halves in order, with unique names: the failure mode the split introduces is a half silently dropping out, which would present as a plugin quietly missing at boot rather than as an import error.+- `test_import_light_boot.py` imports the composed list inside its blocked-SDK subprocess. Loading it pulls the interpreter, which is expected and is exactly why discovery takes the list as a parameter; the assertion — that registering the built-ins imports no backend SDK — is unchanged and still passes.+- `test_check_hub_layering_cmd.py` now mocks **both** scans. Mocking only the per-file one would have left the transitive pass walking the real tree inside a unit test. Two tests were added: the merged report, and a transitive finding failing the gate on its own.++### Drift++Both re-opened contracts were reviewed for real and acked, with entries in `wip/drift-contracts/dogfood-log.md`:++- **`hub-layering-convention` — real-catch (third consecutive non-import-churn opening).** This one is a new mode worth naming: the doc honestly recorded the defect *and* announced the planned fix, so landing the fix falsified two of its sections by design. A doc that records a known defect accrues a debt only a trigger can call in. The contract's two prescribed mechanical checks both passed unchanged (33 + 32 hub symbols covered, 12 declared packages named) and again saw none of it — three for three.+- **`cli-docs` — clean-pass, but the first on a genuinely behavior-adjacent trigger** rather than an import sweep: `plugins_cmd.py`'s call actually changed shape. Reviewed against the live CLI: same subcommand, same options, same five columns, all 19 built-ins in the same order.++### What this does *not* do++- **Nothing loads less.** `pipelex.py` is still the only caller that needs everything, so boot's closure is unchanged — as [the counterargument](#remedy-d--split-the-built-ins-by-layer) said it would be. The payoff is that the declaration is now true and mechanically kept true.+- **`plugins/pipe_func_executor_registry.py`'s placement inversion is still unfixed** — it is type-only under `TYPE_CHECKING`, so it breaches neither rule. Still recorded in Known inversions.+- **Phase C is untouched** and still release-gated.+## Phase C — release-wave additionsPer **D-R1**, none of this lands in PR #1062. Fold it into the existing release-gated cross-repo sweep in `TODOS.md`.diff --git a/wip/pr-1069-review-notes.md b/wip/pr-1069-review-notes.mdnew file mode 100644index 000000000..948a238d3--- /dev/null+++ b/wip/pr-1069-review-notes.md@@ -0,0 +1,29 @@+# PR #1069 review notes — deferred items++Triage record for the SWE-agent review threads on [PR #1069](https://github.com/Pipelex/pipelex/pull/1069) (the three modularity review follow-ups: the error-identity snapshot, the `cogt` dependency boundaries, and the `subject_grants.toml` / `.test_durations` bookkeeping gates). Six unresolved threads: one from Greptile, five from Codex.++Four were fixed in place — the provider-edge gate's blind spot on the `from X import submodule` form, the two-test-classes-in-one-module violation and the class docstring it carried, and the `--fix` path's failure to report an out-of-order registry. This file captures the two deliberately **deferred**. Both threads are left **open**.++## 1. Test-module and test-class docstrings — a convention the repo does not actually hold++- **Reporter:** Codex, two threads — [`PRRT_kwDOOwmMFc6UetDk`](https://github.com/Pipelex/pipelex/pull/1069) on `tests/unit/pipelex/errors/test_error_identity_snapshot.py:1` and [`PRRT_kwDOOwmMFc6UetDn`](https://github.com/Pipelex/pipelex/pull/1069) on `tests/unit/repo/test_test_durations_paths.py:1`. Both ask for the module-level docstring to become comments or to be redistributed into the test methods, citing `AGENTS.md`: "Include concise docstrings explaining test purpose but **not on top of the file and not on top of the class**."+- **Verdict:** the rule says what Codex says it says. The repo does not follow it.+- **Measured on this branch:**+ - **579 of 1018** test modules open with a module-level docstring.+ - **436 of 1018** carry a docstring directly on the test class.+ - (For contrast, the sibling one-class-per-module rule in the same section *is* held — 978 of 1018 — which is why the class-splitting thread was fixed rather than deferred.)+- **The neighbours violate it too.** Every module adjacent to the two flagged files does the thing the rule forbids: `tests/unit/pipelex/cli/dev/test_check_keyword_only_cmd_fix.py`, `tests/unit/pipelex/cli/dev/test_subject_grant_registry.py` (its module docstring predates this PR) and `tests/unit/pipelex/cli/dev/conftest.py` all open with one. So conforming these two files would satisfy the letter of the rule while making them inconsistent with their own directory.+- **Why deferred:** this is not a defect in the PR, it is a rule/practice gap across the whole suite. Rewriting 2 files out of 579 does not close it — it just makes the two new files the odd ones out, and it costs the rationale its natural home (both docstrings explain *why the gate exists*, which is the most valuable thing in either file). Which way to resolve it is a repo-wide convention call, not something a PR-review pass should settle unilaterally.+- **Recommendation — pick one deliberately:**+ 1. **Relax the rule to match practice.** Amend the pytest-standards source (`pipelex/kit/agent_rules/`, from which the root `AGENTS.md` / `CLAUDE.md` are generated) to allow a module-level docstring that explains *why the module exists*, keeping the prohibition on per-test purpose docstrings migrating upward. This matches what 57% of the suite already does and what the rule was probably reaching for.+ 2. **Enforce it mechanically and sweep.** If the rule is meant, it needs a check — the same lesson this very PR is about: an invariant asserted in prose and gated by nothing drifts silently, and 579 files of drift is the proof. That means a guard plus a 579-file sweep, which is its own piece of work.+- **Note on the third new test file:** `tests/unit/pipelex/cogt/test_cogt_dependency_boundaries.py`, added by this same PR, opens with a `#` comment block rather than a docstring — i.e. the compliant form. Whichever resolution is taken, the three new files should end up consistent with each other.++## Not deferred — fixed on this branch++Recorded here only so all six threads are traceable:++- **The provider-edge gate missed a legal import form** (Greptile, `test_cogt_dependency_boundaries.py`). `_import_targets` recorded `from pipelex import providers` as a dependency on `pipelex`, so a `cogt → pipelex.providers` edge written that way never reached the golden-set assertion — the exact "reviewable diff" the test exists to force. Import targets now resolve an imported name to `base.name` when that names a module of this repo, and keep `base` when it is a symbol; the relative form (`from .. import providers`) is covered by the same path. Verified with a probe module: the edge is now reported. All five pinned rows and the ~20 `from pipelex import log` sites are byte-identical, because a symbol never resolves.+- **Two test classes in one module** (Codex, `test_subject_grant_registry.py`). `TestSubjectGrantRegistryOrder`'s tests merged into `TestSubjectGrantRegistry`; the colliding `test_missing_registry_is_an_explicit_error` renamed to `test_order_check_missing_registry_is_an_explicit_error`. Splitting into a sibling module was the alternative, but `_VALID_REGISTRY` and `_write_registry` are shared by both halves, so it would have cost a new `test_data.py` for three string constants.+- **The class docstring** (Codex, same file) — became a comment above the order tests, as a side effect of the merge above.+- **`--fix` never reported an out-of-order registry** (Codex, `check_keyword_only_cmd.py`). `_run_fix` returned before the order scan, so `make fko` on a scrambled registry printed "nothing to fix" while `make check-keyword-only` was about to fail — a false all-clear, and a contradiction of `docs/contribute/keyword-only-arguments.md`, which already groups `unsorted-grant` with the registry-level kinds "reported for a manual fix rather than rewritten" (the other two, `dead-grant` and `grant-param-mismatch`, do reach the report through `fix_all_violations`). The order result now joins the unfixable list. Verified end to end against a temporarily scrambled real registry: reported with its `subject_grants.toml:<line>` locator, still exiting 0 as the non-gating contract requires.diff --git a/wip/refactoring/deferred-placement-follow-ups.md b/wip/refactoring/deferred-placement-follow-ups.mdnew file mode 100644index 000000000..44c616213--- /dev/null+++ b/wip/refactoring/deferred-placement-follow-ups.md@@ -0,0 +1,31 @@+# Deferred placement follow-ups++Findings from the M1 checkpoint review round that are **placement or naming accuracy, not silent bugs**. Nothing here is broken, nothing here breaches the layer boundary, and no gate is failing because of any of it. Each is recorded rather than fixed because the fix is a rename-and-rewrite wave whose churn is not justified by the defect, and because two of the three are better folded into a later modularity commit than done alone.++## 1. `mthds_parsing/` holds three modules that are not parsing++The package is named for what most of it does, but three tenants do something else:++- **`pipe_sorter.py`** — its only production caller is `pipelex/builder/bundle_spec.py`, the builder's *specs → blueprint* direction. The parser never sorts. It arrived here because it lived in `core/bundles/`, which M1a hoisted wholesale.+- **`helpers.py`** — mixes two unrelated things. `MTHDS_EXTENSION` and `is_pipelex_file` are a generic file-extension predicate imported across `cli/`, `libraries/` and `builder/`; the rest is parse-error scoping used only inside this package. The generic half has no business behind a parser-named import path.+- **`handle_pipe_errors.py`** — the M1b changelog says it followed "its importers" into `mthds_parsing`, which is half true: one of its two importers is `pipeline/validate_bundle.py`.++**Why deferred.** None of this is a layering problem — all three are leaves or interpreter-layer consumers, so the closure test and the guard are both indifferent. Fixing it well means splitting the generic extension predicate out (a good candidate for `core/` or `tools/`, touching every one of its importers) and finding `pipe_sorter` a home nearer the builder. That is a coherent commit of its own, not a review-fix.++**Worth noting for contrast:** `pipe_machinery/` was checked module by module in the same review and is accurately named throughout, `validation.py` and `template_guard_lint.py` included.++## 2. Parser test fixtures stayed under `tests/unit/pipelex/core/`++`tests/unit/pipelex/core/test_data/` holds the parser's fixture corpus — `interpreter_test_cases.py` exporting `InterpreterTestCases`, plus the `complex/`, `concepts/`, `domain/`, `errors/`, `pipes/` subtrees. Its consumers are now `tests/unit/pipelex/mthds_parsing/test_parser.py` and `tests/integration/pipelex/language/test_mthds_factory.py`; nothing under `tests/unit/pipelex/core/` uses it any more.++It resolves fine — this is filing, not breakage. Moving it means rewriting the nested `from tests.unit.pipelex.core.test_data.…` imports throughout the subtree and renaming `interpreter_test_cases` / `InterpreterTestCases` to match the `MthdsParser` rename, which is exactly the kind of churn that should ride along with the next commit that touches those tests rather than land on its own.++## 3. The `pipeline` / `pipe_run` leak is now referenced from four places++`core.pipes.pipe_output` reaches `pipeline.pipeline_models` for a single leaf constant, and `runtime_hub` reaches `pipe_run.pipe_run_mode`. Because of that, neither package can be named in the closure test's `INTERPRETER_PACKAGES` — naming them would fail every entry point on a placement wart rather than on a broken hub arrow.++The M1 review round found that the *statement* of the property had quietly dropped this qualification in three places (the guard's `RUNTIME_LAYER_PACKAGES` note, and two spots in `hub-layering.md`), which is fixed. The underlying wart is not, and the qualification now has to be repeated wherever the property is stated: `runtime_hub`'s docstring, the guard note, `hub-layering.md` "Why the boundary exists", and `hub-layering.md` "Where core splits".++**The remedy is known and is the one `mthds_parsing` already used** (D-M1-8): move the leaf models to a runtime-layer home, *then* widen the predicate. `SpecialPipelineId` and `PipeRunMode` are the two leaves. Doing it would let all four qualifications collapse back to the unqualified claim — which is the real argument for doing it, since a caveat repeated in four places is a caveat that will go stale in at least one.++See also `wip/pr-1062-review-notes.md`, where this leak was first recorded.diff --git a/wip/refactoring/modularity-refactors.md b/wip/refactoring/modularity-refactors.mdnew file mode 100644index 000000000..f803ae7fc--- /dev/null+++ b/wip/refactoring/modularity-refactors.md@@ -0,0 +1,292 @@+# Three modularity refactors after the hub split++> ⚠ **SUPERSEDED IN PART — read [`../../TODOS.md`](../../TODOS.md) first.** An engineering review on 2026-07-27 (plus an independent Codex pass) reversed and re-ruled several decisions below. The tracker is now authoritative for *what to do*; this document remains the record of the *original* reasoning. Specifically:+>+> - **D-M1-2 is REVERSED.** `pipe_blueprint.py` is **interpreter-layer and moves**, together with `validation.py`, `template_guard_lint.py` and `handle_pipe_errors.py`. The measurement below counts **outbound** imports, which tells you whether a module is a *leaf*, not which layer owns it. The deciding test is **inbound**: zero declared runtime-layer modules import any of those four. Sections "The rulings that shape the hoist" (below), move 5, and the Decisions row for D-M1-2 are all stale.+> - **The rule of thumb is NOT rewritten.** *"If it names a `Pipe`, it belongs to the interpreter layer"* was correct all along; move 5's proposed replacement only existed to accommodate the `pipe_blueprint` misclassification.+> - **F1 uses no registry.** `inference_backend_registry` is `(family, sdk) → MakeWorkerFn`, and `make_args_for_model` receives no sdk — dispatch is by `AspectRatioTaxonomy`. The fix is a neutral mapping module under `cogt/img_gen/`.+> - **M2 is not release-gated** (zero external consumers of `pipelex.plugins.<vendor>`), and its "vendor modules importing anything but the mechanism = 0" exit metric is false by construction — cross-vendor edges are deliberately preserved.+> - **M1 stacks on M3**; the "each track branches from the #1064 base" note in [Sequencing](#sequencing) is superseded.++**Status: DRAFT v2, not started.** Written on `refactor/Modularity-3`, which is based on `refactor/Hub-2` (PR #1064) — deliberately: all three tracks build on the F1 remedy (`pipelex/interpreter_plugins/`, the transitive guard rule), so #1064 merges first and these PRs land on top of it. Every number below is measured on that tree with the snippets recorded in [Measurement](#measurement); nothing here is estimated. v2 folds in the review pass: the naming and layer questions that were open in v1 are now recorded rulings in [Decisions](#decisions), and the operational costs v1 missed (subject-grant re-pathing, error-page regeneration, test-tree mirroring) are in [Ground rules for the moves](#ground-rules-for-the-moves).++Three tracks that continue the boundary work the hub split started. They are ordered by dependency, not by value: **M3 is a prerequisite slice of M1**, and **M2 is independent of both**.++| track | what | why now |+| --- | --- | --- |+| [M3](#m3--split-the-boot-manifest-by-layer) | split `CoreRegistryModels` by layer, seed the pipe-machinery package | removes core's fattest interpreter edge (92 modules) in one small, self-contained PR |+| [M1](#m1--make-cores-layer-split-physical) | hoist core's interpreter-layer modules out of `core/` | makes the boundary visible in the tree instead of in a guard tuple; collapses `RUNTIME_LAYER_PACKAGES` |+| [M2](#m2--separate-the-plugin-mechanism-from-the-vendor-adapters) | split `pipelex/plugins/` into mechanism + providers | one package name currently hides a clean one-way dependency behind an apparent cycle |++**All three break external imports.** The repo already owes a release-gated cross-repo sweep for the hub split, the Phase 3 type moves, and the `interpreter_plugins` relocation (see [`wip/hub/hub-split-tracker.md`](../hub/hub-split-tracker.md) → Cross-repo sweep). Every rename below lands in the same consumer repos. **Do these before that sweep executes**, so consumers absorb one breaking wave instead of four. That is the single strongest scheduling argument in this document.++---++## M3 — split the boot manifest by layer++### What is true today++`core/registry_models.py` is **not core**. It has exactly one consumer in the entire tree:++```python+# pipelex/pipelex.py:500+self.class_registry.register_classes(CoreRegistryModels.get_all_models())+```++It is a boot-time composition manifest that happens to live in `core/`. And it holds **two unrelated registries in one class**:++- `PIPE_OPERATORS`, `PIPE_OPERATORS_FACTORY`, `PIPE_CONTROLLERS`, `PIPE_CONTROLLERS_FACTORY`, `PIPE_SIGNATURES`, `PIPE_SIGNATURES_FACTORY` — every one of these imports `pipe_operators` / `pipe_controllers` / `pipe_signature` directly. This half is what makes the module load **92 interpreter modules**, the fattest single module in `core/`.+- `STUFF`, `EXPERIMENTAL`, `FIELD_EXTRACTION` — pure `core.stuffs`, zero interpreter modules.++`RegistryModels.get_all_models()` reflects over every list `ClassVar` via `dir(cls)`, so splitting one class into two is mechanical and boot registers both.++### Moves++1. **Split `CoreRegistryModels` by layer, with the names decided up front.**+ - `core/registry_models.py` keeps the value-model half (`STUFF`, `EXPERIMENTAL`, `FIELD_EXTRACTION`) under the name `CoreRegistryModels` — still accurate, since core's runtime half is exactly the value model. Measures 0 interpreter modules after the split.+ - The pipe half becomes `PipeRegistryModels` in **`pipelex/pipe_machinery/registry_models.py`** — M3 creates the `pipe_machinery/` package with just this module, and M1 fills it ([D-M1-1](#decisions)). No placeholder, nothing moves twice.+ - `pipelex.py` registers both. Two adjacent `register_classes` lines that read as obviously-different registrations; no behavior change.++2. **Leave `PipeType` / `PipeCategory` where they are** (`core/pipes/pipe_blueprint.py`). They are string tags naming no class and the module measures 0 — it is runtime-layer by measurement and stays in `core/` permanently ([D-M1-2](#decisions)).++3. **Document the registration surface.** After the move, "adding a pipe kind" is: the kind's package, the type tag, the blueprint union, `PipeRegistryModels`, the spec map (`builder/pipe/pipe_spec_map.py` + `pipe_spec_union.py`). Write that list into `docs/contribute/` so it stops being tribal knowledge — with a note that the spec-layer parallel in `builder/pipe/` is deliberate (see `pipelex/builder/CLAUDE.md`, spec vs blueprint), not duplication to be collapsed.++### Cut from v1: the `PipeBlueprintUnion` extraction++v1 proposed extracting `PipeBlueprintUnion` out of `core/bundles/pipelex_bundle_blueprint.py` as part of M3. Cut, for two reasons v1 only half-admitted: the extraction moves import *statements* but not the closure (`pipelex_bundle_blueprint` still measures 28 interpreter modules either way), and M1 hoists `core/bundles/` out of `core/` anyway — so an extracted union module would **move twice**. Once the module leaves `core/`, its twelve blueprint imports are no longer inverted and the extraction buys nothing. The union stays where it is and rides the M1 hoist; discoverability of the manifests is handled by the registration-surface doc (move 3), not by file adjacency.++### Exit criteria — measured++`core/` reaches up into the pipe-kind packages in **43 import statements**, concentrated in two files:++| source module | `pipe_operators` | `pipe_controllers` | `pipe_signature` | total | moved by |+| --- | --- | --- | --- | --- | --- |+| `core.registry_models` | 14 | 8 | 2 | **24** | M3 |+| `core.bundles.pipelex_bundle_blueprint` | 7 | 4 | 1 | **12** | M1 |+| `core.interpreter.bundle_elaborator` | 2 | 2 | — | 4 | M1 |+| `core.pipes.rendering.output_renderer` | — | 2 | — | 2 | M1 |+| `core.pipes.pipe_abstract` | — | — | 1 | 1 | M1 |++| | before | target after M3 | target after M1 |+| --- | --- | --- | --- |+| inverted `core → pipe_*` statements | 43 | 19 | 0 |+| interpreter modules loaded by `pipelex.core.registry_models` | 92 | 0 | 0 |+| pipe-kind manifests filed inside `core/` | 2 | 1 | 0 |++**CHECKPOINT M3** — gates: `make agent-check` + full `make agent-test` + `make drift-check`, plus the grant re-path from the [ground rules](#ground-rules-for-the-moves). Re-take the [core classification](#measurement) and confirm `core.registry_models` reports 0. This is a natural handoff point: M3 lands as its own PR, and M1 starts from a tree where core's fattest interpreter edge is already gone and the pipe-machinery package exists.++---++## M1 — make core's layer split physical++### What is true today++`docs/contribute/hub-layering.md` already says it: *"`pipelex/core/` is not one layer, and trying to declare it one was the mistake this section records."* But the split exists only inside the guard's configuration:++```python+RUNTIME_LAYER_PACKAGES = (..., "pipelex.core.concepts", "pipelex.core.domains",+ "pipelex.core.memory", "pipelex.core.pipes.inputs",+ "pipelex.core.pipes.stuff_spec", "pipelex.core.stuffs")+```++Six sub-paths enumerated by hand — plus `core.pipes.pipe_output`, which *is* runtime-layer but cannot be listed because the declaration is package-granular, so the doc has to explain that the closure test covers it instead. The boundary lives in a tuple and a paragraph, not in the tree.++### The finding++The residue is far smaller than the six-entry declaration suggests. Importing each `core` module in a subprocess and counting interpreter modules loaded: **86 of 95 measure zero**. The nine that do not:++| module | interpreter modules loaded | pulls in `interpreter_hub` |+| --- | --- | --- |+| `core.registry_models` | 92 | yes |+| `core.pipes.pipe_factory` | 48 | yes |+| `core.pipes.rendering.input_renderer` | 48 | yes |+| `core.pipes.rendering.output_renderer` | 48 | yes |+| `core.pipes.pipe_abstract` | 30 | no |+| `core.bundles.pipe_sorter` | 28 | no |+| `core.bundles.pipelex_bundle_blueprint` | 28 | no |+| `core.interpreter.bundle_elaborator` | 28 | no |+| `core.interpreter.interpreter` | 28 | no |++M3 removes the first one outright. **Eight modules** stand between `core/` and being a single declared runtime-layer package, and they are the whole of M1's hoist.++### The rulings that shape the hoist++Two places where the doc's rule of thumb ("if it names a `Pipe`, it belongs to the interpreter layer") and the measurement disagreed are now settled — **the measurement wins**, because the closure property is what the guard actually enforces ([D-M1-2](#decisions)):++- **`core/pipes/pipe_blueprint.py` is runtime-layer and stays in `core/`.** It imports only `core.concepts` and `core.pipes` siblings and measures 0; what it declares is `PipeType` / `PipeCategory` / the signature-normalization helpers — vocabulary and parse-time validation, not machinery. The doc's claim that every Pipe-naming module "imports `pipe_operators` / `pipe_controllers` directly" is factually wrong for this module; the rewrite (move 5) fixes the rule, not the module.+- **The four measured-zero leaf modules move with their packages.** `core.bundles.exceptions`, `core.interpreter.exceptions`, `core.interpreter.helpers`, `core.interpreter.validation_error_categorizer` measure 0, but cohesion wins: their importers are `cli/`, `libraries/`, `pipeline/`, `builder/` — none runtime-layer-declared (the `core/pipes/handle_pipe_errors.py` mention is a docstring, not an import) — so hoisting them breaches nothing, and an interpreter-layer module is free to measure 0.++### Moves++1. **Hoist the eight interpreter-layer modules (plus the four leaf modules) out of `core/`, into the two packages the groups already form:**+ - **`pipelex/mthds_parsing/`** — bundle parsing, MTHDS text → `PipelexBundleBlueprint` ([D-M1-3](#decisions)): `interpreter.py`, `bundle_elaborator.py`, `pipe_sorter.py`, `pipelex_bundle_blueprint.py`, `helpers.py`, `validation_error_categorizer.py`, and the two exceptions modules merged into one `mthds_parsing/exceptions.py` (topical split only if a circular import forces it, per the error-class location convention). `core/bundles/` and `core/interpreter/` cease to exist.+ - **`pipelex/pipe_machinery/`** — the pipe base machinery, joining `registry_models.py` from M3: `pipe_abstract.py`, `pipe_factory.py`, `rendering/`.++ The machinery package is deliberately **not** named `pipelex/pipes/`: `core/pipes/` remains (inputs, stuff_spec, pipe_output, validation — the runtime half), and two `pipes` packages in adjacent layers would be actively confusing.++2. **Rename the parser class along with its package.** `core/interpreter/` shares its word with the interpreter *layer* and means something narrower — and the collision extends to the class: `PipelexInterpreter` becomes **`MthdsParser`** in `mthds_parsing/interpreter.py` → `mthds_parsing/parser.py`. Parsing the language is an MTHDS-owned concept, so the name is correctly branded. (Renaming `PipelexBundleBlueprint` itself is out of scope — it is wire-visible and widely consumed; if its branding is ever revisited, that is its own track.)++3. **Collapse the guard declaration** to `"pipelex.core"` and delete the `pipe_output` carve-out paragraph from `docs/contribute/hub-layering.md`.++4. **Extend the measurement classification set.** The interpreter-package set in the [measurement snippet](#measurement) (and any permanent check derived from it) gains `mthds_parsing` and `pipe_machinery` — otherwise the re-taken classification would silently under-count.++5. **Rewrite the doc's rule of thumb** to match what the guard enforces: **"if it imports a pipe kind or constructs pipes, it is interpreter-layer; declaring the vocabulary (type tags, blueprint base shapes, signature normalization) is runtime."** The old "names a `Pipe`" phrasing was a good teaching rule but it misclassifies `pipe_blueprint`, and the doc and the guard should not silently diverge.++### Exit criteria — measured++| | before | target |+| --- | --- | --- |+| `RUNTIME_LAYER_PACKAGES` entries naming `pipelex.core.*` | 6 | 1 (`pipelex.core`) |+| `core` modules loading > 0 interpreter modules | 9 | 0 |+| doc carve-outs for `core.pipes.pipe_output` | 1 | 0 |++**CHECKPOINT M1** — gates as above, plus: re-run the [core classification](#measurement) with the extended set and confirm every remaining `pipelex.core.*` module reports 0; confirm `make check-hub-layering` still passes with the collapsed declaration; confirm the transitive rule still reports 0 breaching runtime-layer modules; `make generate-error-pages` and confirm error-page/`type_uri` stability for the moved exception classes ([ground rules](#ground-rules-for-the-moves)).++### Cross-repo blast radius++Small, and known. Grepping the sibling repos for the nine modules:++| repo | file | symbol |+| --- | --- | --- |+| `pipelex-api` | `api/routes/pipelex/build/runner.py` | `PipelexBundleBlueprint` |+| `pipelex-api` | `api/routes/pipelex/crate_ops.py` | `PipeAbstract` |+| `pipelex-api` | `tests/unit/test_validate_errors.py` | `PipelexBundleBlueprintValidationErrorData` |++No external consumer imports `PipelexInterpreter`, so the class rename adds nothing to the sweep. Clean: `pipelex-cookbook`, `cocode`, `pipelex-mistralai-workflows`, `pipelex-worker`, `pipelex-starter-python`, `pipelex-relay`, `sandbox`. `pipelex-temporal` is private and not checked here — verify during the sweep. None of the classes registered in the kajson class registry move (pipe classes stay in `pipe_operators/` etc.), so serialized payloads are untouched.++---++## M2 — separate the plugin mechanism from the vendor adapters++### What is true today++`pipelex/plugins/` is 11.4k lines across 127 files, and it is two things:++- **the mechanism** — 17 top-level modules, 1,436 lines: `contract.py`, `registrar.py` (387), `discovery.py` (161), `exceptions.py` (287), seven `*_registry.py`, `model_handle.py`, `sdk_client_registry.py`, `sdk_client_manager.py`, `backend_extras_factory.py`, `builtins.py`+- **the built-in vendor adapters** — 17 directories, ~9,900 lines: `openai/` 17 files, `gateway/` 14, `bedrock/` 11, `google/` 9, `mistral/` 9, `anthropic/` 8, `portkey/` 7, plus fal, docling, linkup, huggingface, azure_rest, blackboxai, openrouter, pypdfium2, secrets, storage++### The problem++**One package name hides a one-way dependency behind an apparent cycle.** The two heaviest edges in the whole repo are `plugins → cogt` (380 statements) and `cogt → plugins` (15). That reads as a cycle. It is not:++- every vendor directory imports **only** mechanism modules — `contract`, `registrar`, `inference_backend_registry`, `model_handle`, `sdk_client_registry`, `backend_extras_factory` — which is adapters importing the ports they implement, upward and correct+- the `cogt → plugins` half is `llm_worker_factory` / `img_gen_worker_factory` / `extract_worker_factory` / `search_worker_factory` reaching `inference_backend_registry` and `model_handle` — the engine importing the registry, downward and correct++**No mechanism module imports a vendor, with exactly one exception: `builtins.py`**, which is the composition root. That is the same shape the F1 remedy already established for `interpreter_plugins/builtins.py`, so the precedent and the pattern are both in place. Separating mechanism from adapters makes this structure visible in the tree: adapters → mechanism, engine → mechanism, mechanism → nothing.++A secondary point, stated honestly: v1 led with "the name misleads" — `pipelex/plugins/openai/` inviting the conclusion that OpenAI support is external. That argument is real but overstated: each vendor directory ships a `*Plugin` class implementing the `PipelexPlugin` contract, so they genuinely *are* plugins — first-party built-in ones, a category the docs already use comfortably. The conflation of mechanism with adapters is the load-bearing reason to split; the naming clarity is a bonus.++### The seven `cogt → <specific vendor>` edges — split ruling++Seven statements reach from `cogt` *into a specific vendor package*:++```+cogt/config_cogt.py -> plugins.{anthropic,google,mistral,openai}.*_config+cogt/img_gen/img_gen_args_factory.py -> plugins.{google,openai}.*_img_gen_factory+cogt/model_backends/backend_factory.py -> plugins.openai.vertexai_factory+```++These are two different animals, and they get two different rulings ([D-M2-2](#decisions)):++- **The four config imports are accepted and documented.** The main config model is statically typed end-to-end (`configs.py` ⇄ `pipelex.toml` structural sync); making vendor config sections plugin-contributed would trade that static typing for a dynamic registry — over-engineering given this repo's config discipline. Record them as a known, deliberate exception in `hub-layering.md`'s Known inversions.+- **The three factory imports are a defect, fixed as a separate small follow-up.** `img_gen_args_factory` naming `GoogleImgGenFactory` / `OpenAIImgGenFactory`, and `backend_factory`'s inline `vertexai_factory` import, are exactly what `inference_backend_registry` exists to dispatch. Fix them behind the registry — but *not* inside the 127-file move, where a behavior change would be invisible in the diff.++### Moves++1. **Keep `pipelex/plugins/` for the mechanism only** — contract, registrar, discovery, exceptions, the registries, the SDK client machinery. That package then genuinely is "how an extension plugs in", matching the docs.++2. **Move the 17 vendor directories to `pipelex/providers/`** ([D-M2-1](#decisions)). `providers/` beats v1's preferred `backends/` on two concrete grounds: `backends/` would collide with the existing `pipelex/cogt/model_backends/` (two "backends" packages in adjacent layers), and the code's own vocabulary for the non-inference adapters is already "provider" — `secrets_provider_registry`, `storage_provider_registry` — so `providers/secrets/` and `providers/storage/` fit without the nesting workaround `backends/` would force. "Inference provider" is also the natural industry term, and the directories are keyed by vendor, not capability.++3. **`builtins.py` follows the vendors** (`pipelex/providers/builtins.py`) and keeps exporting `RUNTIME_BUILTIN_PLUGINS` / `RUNTIME_CORE_UNCONDITIONAL_PLUGIN_NAMES`. `interpreter_plugins/builtins.py` re-points its downward import. Both remain parameters of `build_registrar`, unchanged.++4. **Add `pipelex.providers` to `RUNTIME_LAYER_PACKAGES`.** The vendors are runtime-layer today by declaration and by measurement; the split must not silently drop them from the guard. This is the one step where a mistake is invisible — the transitive rule is what catches it.++5. **Cross-vendor edges survive unchanged** (`blackboxai` / `openrouter` / `portkey` → `openai`; `gateway` → `fal` / `google` / `openai` / `portkey`) because they stay inside the new package.++### Exit criteria — measured++| | before | target |+| --- | --- | --- |+| mechanism modules importing a vendor | 1 (`builtins.py`, by design) | 0 in `plugins/`, 1 in `providers/` |+| vendor modules importing anything but the mechanism | 0 | 0 (unchanged) |+| `cogt → <specific vendor>` statements | 7 | 7 (4 documented in Known inversions; 3 queued as the registry follow-up) |+| `RUNTIME_LAYER_PACKAGES` covers every vendor module | yes | yes |++**CHECKPOINT M2** — gates as above, plus a re-run of the transitive layering rule confirming 0 breaching runtime-layer modules, the closure test still reporting 0 interpreter modules for every runtime entry point, and `make generate-error-pages` if any vendor directory carries an exceptions module.++### Cross-repo blast radius++Anything importing `pipelex.plugins.<vendor>.*` breaks. In-tree that is 7 statements in `cogt` and 67 test files. External: `pipelex-api`, `pipelex-cookbook`, `cocode`, `pipelex-mistralai-workflows` all import `pipelex.plugins.*` or `pipelex.core.*` — size the vendor-specific subset during the sweep. `pipelex-temporal` (private) is unchecked here.++The *plugin entry-point contract* is unaffected: an external plugin imports `pipelex.plugins.contract` / `pipelex.plugins.registrar`, both of which stay put. That is the surface we promised third parties, and it does not move.++---++## Decisions++The questions v1 left open, now ruled. Each ruling is recorded where it is applied; this table is the index.++| id | ruling | why |+| --- | --- | --- |+| **D-M1-1** | The pipe manifest lives in `pipelex/pipe_machinery/registry_models.py` as `PipeRegistryModels`; M3 creates the package, M1 fills it | next to `PipeAbstractType` / `PipeFactoryProtocol` that type its lists; no placeholder, nothing moves twice |+| **D-M1-2** | The measurement wins over the "names a `Pipe`" heuristic: `pipe_blueprint.py` is runtime and stays in `core/`; the four measured-zero leaf modules move with their packages | the closure property is what the guard enforces; leaf-module importers verified non-runtime, so cohesion is free |+| **D-M1-3** | `core/interpreter/` + `core/bundles/` → `pipelex/mthds_parsing/`; `PipelexInterpreter` → `MthdsParser` | says what it does, correctly MTHDS-branded, and evicts the colliding word from both the path and the class |+| **D-M2-1** | Vendors move to `pipelex/providers/`, flat (no capability nesting) | avoids the `cogt/model_backends` collision `backends/` would create; matches the existing `*_provider_registry` vocabulary; directories are keyed by vendor |+| **D-M2-2** | The four `cogt` config imports: accepted, documented in Known inversions. The three factory imports: defect, fixed behind the registry as a separate follow-up after M2 | static config typing is worth keeping; the factory fix is a behavior change and must not hide inside a 127-file rename |++## Ground rules for the moves++Cross-cutting operational costs that apply to every track — v1 missed all three, and the first one would have made the first `make agent-check` after any move fail confusingly.++- **Re-path subject grants in the same commit as each move.** `subject_grants.toml` keys grants by `<path>::<qualname>`, and staleness is symmetric: a grant whose def moved **hard-fails** `check-keyword-only`. Every track that moves files rewrites the affected path prefixes in the registry in the same commit as the `git mv`, then verifies with `make cko`. Do not rely on the auto-fixer here — `fko` would silently keyword-only the "ungranted" subjects instead.+- **Regenerate error pages when an exceptions module moves.** The per-class pages under `docs/errors/` are what each error's `type_uri` dereferences to. After any move that relocates an error class, run `make generate-error-pages` (alias `gep`) and confirm the pages — and any module-path-derived component of the URIs — are stable or intentionally changed.+- **Mirror the test tree and clean derived state.** `tests/unit/` mirrors source paths; each move drags its test files along in the same commit. Run `make cleanderived` after the moves so pytest collection and the linters don't chase ghosts.++## Sequencing++```+PR #1064 (refactor/Hub-2) merges+ ↓+M3 → M1 (M3 removes core's fattest interpreter edge and seeds pipe_machinery/; M1 hoists the rest)+M2 (independent — can run in parallel or in either order)+ ↓+follow-up: the three cogt factory imports behind the registry (D-M2-2)+ ↓+release-gated cross-repo sweep (one wave: hub split + Phase 3 moves + interpreter_plugins + M1 + M2 + M3)+```++Each track is its own PR with its own checkpoint, branched from the #1064-inclusive base. None of them should be merged into the sweep's own branch — the sweep consumes their results.++## Measurement++Core module classification, run from the repo root on a synced venv. Reports, per `pipelex.core.*` module, how many interpreter modules it loads and whether it drags in `interpreter_hub`. `I` must name every interpreter top-level package — it is one of three copies of that set (the others are `INTERPRETER_PACKAGES` in the closure test and the `INTERPRETER` set in `docs/contribute/hub-layering.md`'s verification snippet), and a package missing from any one of them makes that check pass vacuously. `"pipe_machinery"` was added by M3, `"mthds_parsing"` by M1a:++```bash+.venv/bin/python - <<'PY'+import os, subprocess, sys++ROOT = os.getcwd()+SNIP = '''+import sys, importlib+importlib.import_module(%r)+I = {"libraries", "pipe_operators", "pipe_controllers", "codegen", "builder", "interpreter_plugins", "pipe_signature", "pipe_machinery", "mthds_parsing"}+bad = sorted(n for n in sys.modules if n.startswith("pipelex.") and len(n.split(".")) > 1 and n.split(".")[1] in I)+print(len(bad), int("pipelex.interpreter_hub" in sys.modules))+'''+mods = []+for dirpath, dirnames, files in os.walk(os.path.join(ROOT, "pipelex", "core")):+ dirnames[:] = [d for d in dirnames if d != "__pycache__"]+ for f in files:+ if not f.endswith(".py"):+ continue+ rel = os.path.relpath(os.path.join(dirpath, f), ROOT)[:-3].replace(os.sep, ".")+ mods.append(rel[:-9] if rel.endswith(".__init__") else rel)+for m in sorted(mods):+ r = subprocess.run([sys.executable, "-c", SNIP % m], capture_output=True, text=True, cwd=ROOT)+ n, hub = r.stdout.split()+ if int(n) or int(hub):+ print(f"INTERP interp_mods={n:<4} hub={hub} {m}")+PY+```++Cross-package import-statement counts (the `core → pipe_operators` style numbers) come from an `ast` walk resolving relative imports against the importing module's package, counting one per `Import` / `ImportFrom` whose target's second path segment differs from the source's. The hub-layering guard already carries a correct implementation of that graph — prefer extending `hub_layering_guard.py` over re-deriving it if any of this becomes a permanent check.diff --git a/wip/refactoring/review-follow-ups.md b/wip/refactoring/review-follow-ups.mdnew file mode 100644index 000000000..c9cc7fddc--- /dev/null+++ b/wip/refactoring/review-follow-ups.md@@ -0,0 +1,288 @@+# Review follow-ups — assessed and ready to implement++The three items the modularity track's review rounds recorded but did not fix. Each was **re-verified against the tree on 2026-07-28 at `7ddb77f87`** before being written down here; every claim below is measured, and the commands that produced it are inline so a new session can re-take them rather than trust them.++**Where implemented:** branch `refactor/Modularity-4`, on top of the merged PR #1067. All three are independent of each other and of the release-gated cross-repo sweep — except **FU-1**, which had to land *before* the sweep ships the `MthdsParserError` rename to its consumers.++**Stable IDs:** cite these as **FU-1**, **FU-2**, **FU-3**. They supersede the unnumbered bullets in the tracker's "Follow-ups from the review" section, which points here.++| id | one line | verdict | size | status |+| --- | --- | --- | --- | --- |+| [FU-1](#fu-1--nothing-flags-an-error-class-rename-and-it-is-a-wire-break) | Nothing flags an error-class rename, and it is a wire break | still true — **do this first** | small | ✅ **DONE** |+| [FU-2](#fu-2--the-img-gen-neutrality-guard-is-weaker-than-its-comment-and-its-recorded-remedy-is-wrong) | The img-gen neutrality guard overclaims; its recorded remedy rests on a false measurement | still true, **remedy corrected here** | two small edits | ✅ **DONE** |+| [FU-3](#fu-3--the-bookkeeping-files-a-bulk-rewrite-breaks-are-still-ungated) | The bookkeeping files a bulk rewrite breaks are still ungated | gate absent, artifacts currently clean | small, do half | ✅ **DONE** |++---++## FU-1 — Nothing flags an error-class rename, and it is a wire break++> ✅ **DONE** — see [what shipped](#what-shipped) at the end of this section.++### Verified still true++`pipelex/base_exceptions.py:595` builds the report identity straight off the class:++```python+report = ErrorReport(+ error_type=type(self).__name__,+ ...+)+```++`error_type` **is** the Python class name, with no indirection. Consumers branch on that string, so a rename does not break their build — they silently fall through to a generic error branch. All four consumer sites confirmed live and still switching on the **retired** name:++| repo | site | shape |+| --- | --- | --- |+| `mthds-starter-js` | `src/lib/errors.ts:176` | `case "PipelexInterpreterError":` |+| `pipelex-starter-js` | `src/lib/errors.ts:257` | `case "PipelexInterpreterError":` |+| `vscode-pipelex` | `editors/vscode/src/pipelex/__tests__/cliValidationBackend.test.ts:99` | `error_type: 'PipelexInterpreterError'` |+| `playroom` | `src/app/api/graph/route.ts:119` | `message.includes("PipelexInterpreterError")` |++The `redirect_maps` workaround is at `mkdocs.yml:60`, with a comment naming this exact rename. It fixes the docs URI; it does nothing for the four sites above.++### What the original item did not say, and it changes the cost++**`title` and `type_uri` are already decoupled.** Both read a `_declared_*` class attribute via `cls.__dict__` (inheritance deliberately bypassed) — `base_exceptions.py:532` and `:547`, added during M1's review round to fix the `"Mthds parser"` brand defect. Measured today: error classes discoverable through `iter_pipelex_error_subclasses()` = **294**; carrying a `_declared_title` = **31**; carrying a `_declared_type_uri` = **0**.++So of the three identity fields on every `ErrorReport`, the two that are *presentation* have an override hatch, and the one that is the **machine contract** does not. That asymmetry is backwards, and it is also why the fix is cheap.++### Recommendation — do the cheap half now, defer the design change++**Do: a golden snapshot of `(error_type, title, type_uri)` for every `PipelexError` subclass.**++The complaint is *"nothing in the repo flags it"*. A snapshot closes exactly that, needs no change to the error model, and needs no matching spec/conformance edit. Every future rename then lands as a reviewable diff on a committed file instead of a silent fallthrough in four TypeScript repos.++Everything needed already exists:++- **The enumerator:** `iter_pipelex_error_subclasses()` in `pipelex/errors/error_pages_generator.py:130`. It force-loads deferred-import error modules first and filters synthetic/fixture subclasses, so it is the population the docs and the wire agree on. Do **not** hand-roll a `__subclasses__()` walk — `tests/unit/pipelex/errors/test_error_class_location_convention.py:141` documents why (a naked walk is green for the wrong reason).+- **The precedent and the home:** `tests/unit/pipelex/errors/`, alongside the location-convention test that already consumes the same helper.+- **The one-class version to generalize:** `test_mthds_parser_error_identity_is_pinned` (added in M1's review round for `MthdsParserError`).++Shape it as a committed golden file plus a regeneration command, in the style the repo already uses for generated artifacts — not as an inline literal in the test body. A 294-row inline list is the *inventory* shape this track spent four review rounds deleting; a golden file diff is a review artifact, which is the point.++⚠ **Anti-vacuity:** assert the enumerated set is non-empty, in a **non-parametrized** test. If you parametrize over the class list, pytest reports `SKIPPED [1] got empty parameter set` and exits 0 for an empty list — an assertion at the top of a parametrized body is unreachable by construction. This is the F1 defect; see `tests/unit/pipelex/cogt/img_gen/test_img_gen_mapping_neutrality.py` for the worked fix.++**Defer: the `_declared_error_type` refactor.** Mirroring the existing `_declared_title` / `_declared_type_uri` pattern for `error_type` is ~10 lines against code that already exists. But it buys less than it looks like here: the workspace forbids backward compatibility, so it cannot be used to keep `"PipelexInterpreterError"` alive for the four consumers — they must be updated in the sweep either way. Its value is purely forward, making the *next* rename free. Worth doing when a rename is actually wanted; it touches the error model and the agent-CLI JSON envelope, so it needs a matching `docs/specs/` + `conformance/` change (`error_type` appears in `docs/specs/pipelex-mthds-protocol.md`, `pipelex-hosted-envelope.md`, `mthds-agent-cli.md`, `hook-lint-pipeline.md`).++### Ordering++Land the snapshot **before** the release-gated cross-repo sweep. The sweep is what actually ships `MthdsParserError` to those four consumers, and the snapshot is what makes the next such rename visible at the moment it is made rather than at the moment something breaks in a different repo.++### What shipped++Re-verification held on both counts before starting: `error_type=type(self).__name__` is still at `base_exceptions.py:595`, and all four consumer sites still switch on `"PipelexInterpreterError"` (plus two test files in the starter repos that the original survey did not list — `mthds-starter-js/src/lib/errors.test.ts:145` and `pipelex-starter-js/src/lib/errors.test.ts:170`). The cheap half was done as recommended; the `_declared_error_type` refactor stays deferred.++| file | role |+| --- | --- |+| `pipelex/errors/error_identity_snapshot.py` | pure renderer — `iter_error_identity_rows()` + `render_error_identity_snapshot()`, population from `iter_pipelex_error_subclasses()` |+| `pipelex/cli/dev_cli/commands/generate_error_identity_cmd.py` | `pipelex-dev generate-error-identity`, owns the repo-relative output path |+| `tests/data/errors/error_identity.txt` | the committed golden — a preamble, then one `error_type \| title \| type_uri` row per class |+| `tests/unit/pipelex/errors/test_error_identity_snapshot.py` | the gate |+| `Makefile` | `make generate-error-identity`, alias `make gei` |++Decisions taken, and why:++- **Pytest is the gate; there is no `check-error-identity` command.** The doc asked for "a committed golden file plus a regeneration command"; a second freshness command wired into `make check` would duplicate what the test already does. The regeneration command exists, the *checking* lives in one place.+- **The renderer takes no Pipelex bootstrap.** `title()` / `type_uri()` read class attributes and a module-level URL constant, and discovery imports error modules by filename — so unlike `generate-error-pages` this runs anywhere, including an environment with no configured backend.+- **The anti-vacuity guard is honoured.** `test_enumerated_identity_set_is_not_empty` is non-parametrized and additionally asserts `PipelexError` itself is present, so the guard is count-free and cannot be skipped into a green run.+- **A third test pins format integrity** — no identity field may contain the `" | "` column separator, which is what keeps the rendering unambiguous.++Negative-tested: rewriting the `MthdsParserError` row to `PipelexInterpreterError` fails the gate with the diff shown inline and the "this is a WIRE BREAK" framing, which is exactly the review artifact the item asked for.++Docs updated in the same change: [Error Model](../../docs/under-the-hood/error-model.md) gains an "identity triple" subsection explaining why `error_type` has no declaration hatch and what the snapshot is for; the kit agent-rules sources (`commands.md`, `codex_commands.md` — `CLAUDE.md` / `AGENTS.md` are *generated* from these, via `make rules`) list the new dev CLI command; `docs/contribute/drift-contracts.md` adds the artifact to the Derived tier and to the never-review-generated-output corollary; CHANGELOG under `[Unreleased] / Added`.++**Still open, deliberately:** the four (six, counting the starter test files) consumer sites are untouched — they are the release-gated cross-repo sweep's job, and the workspace forbids backward compatibility, so there is nothing to ship them early. The snapshot is what makes the *next* rename visible; this one still needs the sweep.++Gates: `make agent-check`, `make drift-check`, and the errors / CLI / kit test slice all green.++---++## FU-2 — The img-gen neutrality guard is weaker than its comment, and its recorded remedy is wrong++> ✅ **DONE** — see [what shipped](#what-shipped-1) at the end of this section.++### Verified still true++Both holes are real, in `tests/unit/pipelex/cogt/img_gen/test_img_gen_mapping_neutrality.py`:++- **(a) Transitive vendor SDKs are unguarded.** `_import_roots` AST-parses only each mapping module's *own* file, and `_CLOSURE_SCRIPT` counts only names starting with `pipelex.providers`. A vendor SDK reached through some other `pipelex.cogt` module passes both checks.+- **(b) The glob under-claims its own coverage.** `_MAPPING_DIR.glob("img_gen_*_mapping.py")` is non-recursive and suffix-keyed, while its comment reads *"so a third taxonomy family is covered the day it lands"*. That holds only for a family landing in that exact directory under that exact name.++### ⚠ The recorded remedy rests on a claim that is false++The tracker's version of this item says:++> Measured clean today — **zero** vendor-SDK imports anywhere in `pipelex/` outside `providers/` — and *that* is the stronger invariant, unguarded and worth a repo-wide test of its own rather than a denylist bolted onto this one.++**That measurement does not hold.** Re-taken 2026-07-28 with an AST walk over `pipelex/` excluding `pipelex/providers/`:++| module | SDK | form |+| --- | --- | --- |+| `pipelex/tools/pdf/pypdfium2_renderer.py:8-10` | `pypdfium2`, `pypdfium2.raw` | **module-level** |+| `pipelex/tools/storage/s3_storage_provider.py` | `botocore.config`, `botocore.exceptions` | deferred |+| `pipelex/tools/storage/gcp_storage_provider.py` | `google.cloud`, `google.api_core.exceptions` | deferred |+| `pipelex/tracing/dynamodb_event_log.py` | `boto3`, `boto3.dynamodb.conditions`, `botocore.exceptions` | deferred |+| `pipelex/reporting/reporting_manager.py:28-29` | `botocore.exceptions` | deferred |++These are legitimate — they are *infrastructure* SDKs, not inference-provider SDKs, and they are exactly the split M2's own review recorded: `providers/storage/` is a registration shim while the implementations live under `pipelex/tools/`. But **a repo-wide "no vendor SDK outside `providers/`" test would be red on day one.** Do not write it.++Reproduce with:++```bash+.venv/bin/python - <<'PY'+import ast, os, sys+VENDOR={"openai","anthropic","google","mistralai","boto3","botocore","fal_client","docling",+ "linkup","huggingface_hub","transformers","azure","portkey_ai","pypdfium2","vertexai"}+for dp,dn,fs in os.walk("pipelex"):+ dn[:]=[d for d in dn if d!="__pycache__"]+ if dp.startswith("pipelex/providers"): continue+ for f in sorted(fs):+ if not f.endswith(".py"): continue+ p=os.path.join(dp,f)+ for n in ast.walk(ast.parse(open(p,encoding="utf-8").read())):+ if isinstance(n,ast.Import): rs=[(a.name.split(".")[0],a.name) for a in n.names]+ elif isinstance(n,ast.ImportFrom) and n.level==0 and n.module: rs=[(n.module.split(".")[0],n.module)]+ else: continue+ for r,full in rs:+ if r in VENDOR: print(f"{p}:{n.lineno} {full}")+PY+```++### The invariant that *is* true and worth pinning++Measured the same day: **`pipelex/cogt/**` imports zero vendor SDKs.** Its only third-party import roots are framework and infrastructure deps — `pydantic`, `httpx`, `instructor`, `opentelemetry`, `polyfactory`, `tenacity`, `rich`, `PIL`, `typing_extensions`, `datamodel_code_generator`. And `cogt → pipelex.providers` is exactly the documented set:++```+pipelex/cogt/config_cogt.py:7-10 → providers.{anthropic,google,mistral,openai}.*_config (4, documented — D-M2-2)+pipelex/cogt/model_backends/backend_factory.py:53 → providers.openai.vertexai_factory (1, deferred, known)+```++### Recommendation — two small edits, no machinery++1. **Soften the glob comment (b)** to what it proves: the glob covers a new family only if it lands in `pipelex/cogt/img_gen/` under the `img_gen_*_mapping.py` name. One line. Do not bind the convention with a test — this track's whole argument was placement over indirection, and F1 is not the place to grow machinery.++2. **Replace the proposed repo-wide test (a) with a golden set of the `cogt → pipelex.providers` statements.** Pin the five above; any new edge fails. It is true today, it is the invariant `docs/contribute/hub-layering.md` → "Known inversions" already documents in prose, and it catches the realistic regression (someone adds a sixth `cogt → vendor` import) — which is precisely the class of defect F1 existed to remove and which **no other gate in the repo can see**, since `pipelex.cogt` and `pipelex.providers` are both runtime-layer and the hub guard is blind to an edge between them by construction.++3. **Correct the false claim** wherever it is recorded, so nobody builds the wrong test later on the strength of it.++The transitive hole (a) is then still technically open — a vendor SDK reached through a third `cogt` module would pass — but it is unreachable while `cogt/` imports no vendor SDK at all, which item 2 pins directly. That is a better trade than a denylist.++### What shipped++Both measurements re-taken before starting, and both held: the vendor-SDK scan still returns the same five infrastructure-SDK modules outside `providers/` (so the recorded remedy is still false), and `cogt`'s third-party roots are still exactly the ten framework/infrastructure packages with the same five `cogt → pipelex.providers` statements.++| file | change |+| --- | --- |+| `tests/unit/pipelex/cogt/test_cogt_dependency_boundaries.py` | new — the two golden sets |+| `tests/unit/pipelex/cogt/img_gen/test_img_gen_mapping_neutrality.py` | glob comment softened to what it proves; header notes where the transitive hole is closed |+| `docs/contribute/hub-layering.md` | "Known inversions" gains the bullet binding the prose list to the test, and the refutation of the repo-wide generalization |+| `CHANGELOG.md` | `[Unreleased] / Added` |++Decisions taken, and why:++- **Two golden sets, not one.** Item 2 asked for the `cogt → pipelex.providers` edges, but that set alone does not close its own closing argument: a bare `import openai` inside a `cogt` module is not a providers edge, so it would pass. The vendor-free claim is pinned as its own assertion — as an **allowlist of third-party import roots**, not a vendor denylist. Same golden-set shape as the edges, no list of vendor names to keep current, and a new framework dependency surfaces for review as one line rather than slipping through a denylist's gaps.+- **Edges are addressed by `source -> target [form]`, never by line number.** Line numbers are pure churn. The **form** (`module-level` / `deferred` / `type-checking`) is carried on purpose: promoting the deferred `vertexai_factory` import to module level is a real change — it is what would put the target in every closure touching `backend_factory` — and a set keyed on the statement alone would not see it.+- **Relative imports are resolved, not skipped.** The sibling neutrality test's helper skips `level > 0`, which is safe there (one directory) but would be a hole here: `from ...providers.openai import x` inside `pipelex/cogt/llm/` resolves to a real edge. Negative-tested with a probe at that exact shape.+- **The glob convention stays unbound by a test.** Item 1 said one line; softening the comment is the whole fix. A naming rule enforced by machinery is the shape this track spent four review rounds deleting, and the unglobbed-mapping worry is answered by the vendor-free assertion instead — an uncovered mapping module still cannot carry an SDK.++Negative-tested by planting a probe module under `pipelex/cogt/` carrying `import openai`, a module-level provider import, a `TYPE_CHECKING` one and a deferred one: both tests fail, all three forms are classified correctly, and the messages name added/removed rows. A second probe under `pipelex/cogt/llm/` confirmed the relative-import resolution.++**On item 3 (correct the false claim).** The tracker section that carried it no longer exists — the claim survives only in the quote block above, where it is already refuted in place. So the correction was put somewhere durable instead: `docs/contribute/hub-layering.md` now states, in the section whose stated job is keeping the document honest, that the repo-wide generalization is false and why. That is where someone would reason their way to the wrong test; `wip/` is archived at track end.++Gates: `make agent-check`, `make drift-check`, `make agent-test` all green.++---++## FU-3 — The bookkeeping files a bulk rewrite breaks are still ungated++> ✅ **DONE** — see [what shipped](#what-shipped-2) at the end of this section.++### Verified: the gate is absent, the artifacts are clean++No sort check and no durations check exist anywhere in `Makefile`, `scripts/` or `tests/` — confirmed by grep across all three. Neither `make check` nor `make agent-check` covers either file.++But both artifacts are healthy right now, so there is no fire:++| artifact | measured 2026-07-28 | verdict |+| --- | --- | --- |+| `subject_grants.toml` | grants present, **0 out-of-order pairs** | the `bc22ba934` re-sort holds |+| `.test_durations` | entries vs live tests collected with `-m ""`; **2 orphan node ids**, **0 dead file paths** | clean |++The two orphans are the `pipe_img_gen` parametrizations keyed on the generated model-set fixture — profile-dependent, already identified as such during F1's third review round, not stale. Live tests carrying no duration entry are expected (tests added since the last `--store-durations` run); pytest-split treats an unknown id as average duration.++So the issue as stated is precisely: **nothing would tell us if it drifted again.** Three instances on the modularity branch, each found by hand well after the fact.++### Recommendation — do the sort check; reshape the durations check before writing it++**Do: the `subject_grants.toml` sort assertion.** It is the one of the three that broke silently and stayed broken across three commits, and it is genuinely trivial — `pipelex/cli/dev_cli/commands/keyword_only_guard.py` already parses the file (`SUBJECT_GRANTS_FILE`, `load_subject_grants()` at `:261`). Add the key-order assertion inside the existing guard so it rides `make check-keyword-only` → `make agent-check` → CI. No new Make target. The invariant is already written down as one in `docs/contribute/keyword-only-arguments.md:37` (*"machine-written and sorted by key"*) — this just enforces what the docs claim.++Note `load_subject_grants()` returns a `dict`, which does not preserve evidence of file order; read the raw text for the key sequence.++**Reshape: gate `.test_durations` on the file path, not the node id.**++A bulk path rewrite breaks **file paths**. Parametrization churn breaks **node ids** and is benign. Asserting `{k.split("::")[0] for k in durations}` all exist on disk is:++- unambiguous — no tolerance policy, no explaining away legitimately-stale parametrizations,+- **green today** (0 dead paths out of 907 distinct files),+- cheap — pure filesystem check, no pytest collection run at all.++Whereas a strict node-id check needs a full unfiltered collection *and* a policy for both current false positives.++⚠ **Two traps for whoever writes it**, both of which cost real time already:++- If you do collect node ids for any reason, run with **`-m ""`**. The marker filter in `addopts` hides a large slice of the suite (mostly `tests/e2e/`), so a naive `--collect-only` reports every e2e entry as an orphan.+- Parse a collect dump with `.splitlines()`, **never `.split()`**. Parametrized ids contain spaces (`[CV Batch-tests/data/graphs/cv_batch.json]`), so whitespace-splitting shreds them into tokens and manufactures hundreds of phantom orphans. I hit this while measuring for this doc — same family as M2's `[a-z_]*` character class, and worse than a rewrite bug, because the verification is what licenses "done".++**Skip the third instance.** The matched triple (guard tuple / closure predicate / `hub-layering.md` snippet) is already mechanically bound by tests as of M1c; only the design doc's fourth copy is unasserted, and that lives in `wip/`, which is archived at track end.++### What shipped++Both measurements re-taken before starting, and both held: no sort or durations check exists in `Makefile` / `scripts/` / `tests/` (the only `.test_durations` mentions are the regeneration target's own comment and two CI workflow comments), and both artifacts are still clean — 1757 grants with **0 out-of-order pairs**, 9242 duration entries across 907 distinct files with **0 dead paths**. Both halves were done, the durations one in the reshaped form the item prescribed.++| file | role |+| --- | --- |+| `pipelex/cli/dev_cli/commands/keyword_only_guard.py` | `ViolationKind.UNSORTED_GRANT` + `find_unsorted_grants()` — the registry-order rule |+| `pipelex/cli/dev_cli/commands/check_keyword_only_cmd.py` | folds the registry-order violations into the full-scan gate |+| `tests/unit/pipelex/cli/dev/test_subject_grant_registry.py` | `TestSubjectGrantRegistryOrder` |+| `tests/unit/repo/test_test_durations_paths.py` | the `.test_durations` file-path gate |+| `docs/contribute/keyword-only-arguments.md`, `Makefile`, `CHANGELOG.md` | docs |++Decisions taken, and why:++- **The order rule reads the raw text, and cross-checks the scan against the parser.** The item warned that `load_subject_grants()` returns a `dict`, which is not evidence of file order. It is worth being precise about *why*, because the shortcut is tempting: CPython dicts do preserve insertion order and `tomllib` does insert in document order, so reading order off the parsed dict would in fact work today — it would just be resting on undocumented behaviour of a parser for a format that declares table order insignificant. So the scan is a line-anchored regex over table headers. That opens its own hole (a multi-line rationale can carry a line that looks like a header), closed by asserting the scanned key set equals the parsed key set and raising `SubjectGrantRegistryError` when it does not. An entry the scan cannot see must fail loudly, not silently drop out of the rule's domain — the FU-1 anti-vacuity concern in a different costume.+- **Registry order is a full-scan rule, wired at the command layer, not in `collect_all_violations`.** Two reasons. It is a whole-file property, so the per-file `PostToolUse` hook cannot see it — exactly the boundary `dead-grant` already sits on. And `collect_all_violations` is filesystem-pure with respect to the registry (its callers pass `grants` in, and its tests run from a `tmp_path` with no `subject_grants.toml` at all); making it read the registry off disk would have broken four existing tests for no gain.+- **No re-sorting fixer.** `--fix` rewrites signatures; the registry has exactly one writer, the `subject-grant` command, and the guard module is stdlib-only by design (the writer needs tomlkit). The remedy is stated instead: re-record any grant, which rewrites the whole file sorted.+- **The durations gate is on the file path only, and not parametrized.** Per the item. The two known orphan node ids are profile-dependent parametrizations, and a node-id gate would need a full unfiltered collection plus a tolerance policy for them; the path gate needs neither, and it is the one that catches a bulk rewrite. Anti-vacuity is a non-parametrized "the file is committed and not empty" test, plus a shape assertion that every key really is `<path.py>::<test>` — without which "every extracted path exists" could pass over keys that are not paths at all.+- **Both traps in the item were avoided by not collecting node ids at all** — no `-m ""` run, no collect dump to parse, so neither the marker-filter nor the `.split()` trap is reachable. That is a third argument for the path gate the item did not make: the cheap check is also the one with no way to mis-measure.++Negative-tested, all four: swapping two adjacent registry entries fails with the offending key, the registry line number, and the entry it sorts before; a multi-line rationale carrying a phantom `["…"]` header fails with the scan/parser count mismatch; a `.test_durations` entry under a moved-away path fails naming the dead path; a non-node-id key fails the shape assertion. Both real artifacts restored clean afterwards (`git diff --stat` empty).++Docs updated in the same change: `docs/contribute/keyword-only-arguments.md` in five places (the kinds table, the order paragraph under "Staleness is symmetric", the hook bullet, the auto-fix paragraph — which listed only `grant-param-mismatch` as never-rewritten and silently omitted `dead-grant` — and a pointer after the top-of-page rule list, since that list is scoped to *signatures* and registry order is not a signature property); the `store-test-durations` comment in the `Makefile` names its new gate; CHANGELOG under `[Unreleased] / Added`. The `keyword-only-convention` drift contract was reviewed and acked, with its dogfood-log entry.++**Noticed, not fixed:** `make check-test-badge` is red on this branch — badge 9146 vs 9241 collected. It was already off by 88 before this change (7 tests added here), the badge is refreshed at release time by the release skill, and its CI job only runs on PRs into `main`. Bumping it mid-branch would just make it stale differently before the release.++---++## Re-verify before starting++Numbers above are dated, not eternal. Re-take them first — the *shape* (zero vs non-zero, present vs absent) is the criterion, not the absolute count.++```bash+# FU-1 — is error_type still the bare class name? are the four consumers still on the old string?+git grep -n "error_type=type(self).__name__" -- pipelex/base_exceptions.py+cd .. && /usr/bin/grep -rn "PipelexInterpreterError" \+ mthds-starter-js/src pipelex-starter-js/src vscode-pipelex/editors playroom/src 2>/dev/null++# FU-2 — the vendor-SDK scan above, plus the cogt edges+git grep -n "pipelex\.providers" -- pipelex/cogt/++# FU-3 — do the gates exist? are the artifacts still clean?+git grep -n "test_durations\|sorted" -- Makefile | head+.venv/bin/python -c "+import json,pathlib+d=json.load(open('.test_durations'))+dead=[f for f in {k.split('::')[0] for k in d} if not pathlib.Path(f).exists()]+print('dead duration file paths:',len(dead))"+```++⚠ Use `git grep` or `/usr/bin/grep` for any completeness sweep — this shell's `grep` is a ugrep wrapper that honours `.gitignore`, so from the workspace root it silently skips every sibling repo and returns a false clean.