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.
Configuration reshape: one scheme for the root (pipelex-config@2) (#1111)
Louis Choquel61c4786b6eaf
diff --git a/.drift/acks/cli-docs.toml b/.drift/acks/cli-docs.tomlindex 79a78f50f..efafae729 100644--- a/.drift/acks/cli-docs.toml+++ b/.drift/acks/cli-docs.toml@@ -1,8 +1,8 @@contract = "cli-docs"-digest = "sha256:61a24bbc7b269beabac81b4d4b01d693e78c19acb26f1617b654d942eb98822f"-reviewed_by = "Louis Choquel"-reviewed_at = "2026-08-16T23:26:20Z"-rationale = "Third trigger on this branch, from the PR #1115 review: the PowerShell line of the doctor's manual-fix guidance was the one platform example still interpolating a credential variable name without rich.markup.escape, and now goes through it like its three siblings. Presentation only — no command, flag, output format, finding value or structured field moved, and neither review target mentions the platform examples, so both were read and neither is stale."+digest = "sha256:1f527dbd72ff687de022ec7c8a7340ac386615487ce1405cec8f630f2a0ea6f2"+reviewed_by = "Claude (Opus 5)"+reviewed_at = "2026-08-17T06:56:06Z"+rationale = "Merging dev into the configuration-reshape branch; the trigger diff is PR 1115's would_write tri-state in agent_output.py and error_handlers.py plus the doctor's remaining Rich escaping. Both review targets arrived rewritten in the same change, so the review was to re-derive their claims from the code rather than to read them against each other. The field set agent-cli.md enumerates for the migration object - remedy, would_write, needs_attention, plans - is exactly what MigrationErrorBlock declares under extra=forbid, so nothing else can appear; its 'present when and only when the scan found something' holds because the builder in core/validation.py returns None on an empty or failed scan; and would_write is any(plan.did_change), which is also what makes the doctor's out_of_date row a promise the file gets rewritten. Re-derived both enumerated finding sets from the enums rather than from the table: TelemetryConfigFinding and PendingMigrationsFinding match the members agent-cli.md and the agent-CLI contract doc list, with nothing left over. Checked migrate.md's quantified claim that nothing will ever suggest deleting an out-of-date file and starting over: it survives and is now stronger, because the new would_write false branch points at the dry run and hand-correction while the start-over line remains only on the no-block path, where the file is wrong rather than old. docs/tools/cli/index.md still has no doctor page. The escaping half is presentation - no flag, stream, format, structured field or exit code moved. No doc change needed."[trigger_files]"pipelex/cli/__init__.py" = "blob:8b137891791fe96927ad78e64b0aad7bded08bdc"@@ -11,7 +11,7 @@ rationale = "Third trigger on this branch, from the PR #1115 review: the PowerSh"pipelex/cli/agent_cli/_agent_cli.py" = "blob:60b5e959906fc806153ff11332bb9cb56752c5c6""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_cli_factory.py" = "blob:6529ed4e6b52407723fdd2fbbdfe8969dea207bd""pipelex/cli/agent_cli/commands/agent_output.py" = "blob:19cb8df5cf764c85aeaf91d24ce13b26607fff1c""pipelex/cli/agent_cli/commands/bundle_path_resolver.py" = "blob:30339c5d91048f4e67312d5691ed9a65d57472e0""pipelex/cli/agent_cli/commands/check_model_cmd.py" = "blob:f4bdc5f3732b067e397dde384b511f436f95e526"@@ -39,7 +39,7 @@ rationale = "Third trigger on this branch, from the PR #1115 review: the PowerSh"pipelex/cli/agent_cli/commands/plxt_passthrough.py" = "blob:22a4666dbd179a68b86cb340cdb9dbe207c8c1e1""pipelex/cli/agent_cli/commands/run/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391""pipelex/cli/agent_cli/commands/run/_output_helpers.py" = "blob:40ed1700e0d5e86d7696eadd7f9887baeb8059f6"-"pipelex/cli/agent_cli/commands/run/_run_core.py" = "blob:cf54e9147a433c0da8b19ef2ab9f5bd2d67a2570"+"pipelex/cli/agent_cli/commands/run/_run_core.py" = "blob:71847c81c0fd1986f73c117c7b358ea4a20d5d5d""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:78edc9a2fb9a27f4449d51a0a4f7012fde43ce1f"@@ -82,13 +82,13 @@ rationale = "Third trigger on this branch, from the PR #1115 review: the PowerSh"pipelex/cli/commands/codegen/inputs_cmd.py" = "blob:20738a9e42f0e5ef7ffc489093348af3cb4643a0""pipelex/cli/commands/codegen/types_cmd.py" = "blob:b7c9c7a3664c9fbe66f9b4c3c5ebf9ea1322445c""pipelex/cli/commands/crate_loading.py" = "blob:3d7d651931ecf1a15a3e2d72411b3212b55d74ef"-"pipelex/cli/commands/doctor_cmd.py" = "blob:0802df0148d1f880f3b244ebb339fd4419ec528d"+"pipelex/cli/commands/doctor_cmd.py" = "blob:fec9beb92a82bb492ea123a52bf10d568ba3bfa2""pipelex/cli/commands/fix/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"-"pipelex/cli/commands/fix/_diff_sandbox.py" = "blob:2113f7e7ffd373177a3104ce5b5dfb7f657dd186"+"pipelex/cli/commands/fix/_diff_sandbox.py" = "blob:5ce264f5b0ab4ff4172f4d8789450916947f5c0e""pipelex/cli/commands/fix/_fix_core.py" = "blob:8f6a187a0fb42c498629b177753d81620800b0da""pipelex/cli/commands/fix/app.py" = "blob:6f019930e8e3e0043ee46d87493ba4602eb33a76""pipelex/cli/commands/fix/bundle_cmd.py" = "blob:427364cc453957dfe0cec879f019050329c13b3c"-"pipelex/cli/commands/graph_cmd.py" = "blob:7433b3ca88e0052ef43ee360e0994f22d7bddb8e"+"pipelex/cli/commands/graph_cmd.py" = "blob:aa3649ca4ee3d4c9084236f0c3f6b1072803df46""pipelex/cli/commands/init/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391""pipelex/cli/commands/init/backends.py" = "blob:1618d4f7f16c6d5a814680b17185501fade9f3fd""pipelex/cli/commands/init/command.py" = "blob:21c700c66b9c608e14e6bb373c40d37c241ea509"@@ -106,12 +106,12 @@ rationale = "Third trigger on this branch, from the PR #1115 review: the PowerSh"pipelex/cli/commands/login/__init__.py" = "blob:e69de29bb2d1d6434b8b29ae775ad8c2e48c5391""pipelex/cli/commands/login/command.py" = "blob:ace1db9879626cc1722adaac12761aadaa6b24ed""pipelex/cli/commands/migrate_cmd.py" = "blob:be405b6310ad28be02f7a17c9abe2a37629845a3"-"pipelex/cli/commands/plugins_cmd.py" = "blob:190a58e16c9e28069fc162555ec0ab24ffd92e9d"+"pipelex/cli/commands/plugins_cmd.py" = "blob:9657b713c3650ff4a929e92ae68af453d896393e""pipelex/cli/commands/resolve_cmd.py" = "blob:2928a0e26eab7983367a59a78533f6618817feba""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:bde638fe3075dd9d8ebe6e306f427583904717ec"+"pipelex/cli/commands/run/_run_core.py" = "blob:71434e5eb9dc512a89f582d7f897a5a121b20eec""pipelex/cli/commands/run/app.py" = "blob:a7090b0ff6bf2f1d47827fa27d2a138096a2e148""pipelex/cli/commands/run/bundle_cmd.py" = "blob:cb420bf4879c863d64c5e20ed535c42732b720a2""pipelex/cli/commands/run/exceptions.py" = "blob:e9552226e597922b6ac0757f7b52eb880a2e1472"diff --git a/.drift/acks/config-docs.toml b/.drift/acks/config-docs.tomlindex ab38ac097..eb58b317c 100644--- a/.drift/acks/config-docs.toml+++ b/.drift/acks/config-docs.toml@@ -1,21 +1,21 @@contract = "config-docs"-digest = "sha256:9de76c70a5219d0073dacc6b93f3336c9ee9e9d37b798ca2dc025c97b03c19d5"+digest = "sha256:820c272d92e41c21d884f2a1daee775e689282ee51f176a99fa40ea3d47f86e3"reviewed_by = "Louis Choquel"-reviewed_at = "2026-08-16T22:14:43Z"-rationale = "The contract definition itself changed: its review list now carries pipelex/migration/ledgers/ and the two modules holding the four validators that narrow a configuration value domain (KitConfig._validate_targets, DryRunConfig.validate_image_urls, ImgGenConfig.validate_quality_mapping, LLMConfig.validate_effort_to_budget_mapping), which R8 established the fingerprint projection cannot see. No trigger file moved, so this is the first read of the new targets rather than a review of a change: the three ledgers are legal and convergent and the three surfaces are accounted for (make cl, make cmig both green), and none of the four validators narrowed anything in this change, so no unsafe entry with declared_narrowed_paths is owed. docs/configuration/ is unaffected - no key, default or file moved."+reviewed_at = "2026-08-17T08:49:54Z"+rationale = "Re-ack after the review round on the first push. One trigger file moved, config_surface.py, and it carries a real fix rather than a wording change: _is_within resolved the whole path before taking its parent, so a pipelex.toml symlinked out to a dotfiles repository resolved to a parent outside the walk and was told pipelex migrate could not reach it, when the walk enumerates the link by iterdir and writes straight through. It now resolves the parent and not the file, which keeps the reason the resolve was there - a config_dir reaching the same directory by another spelling - and drops the question it was accidentally answering. Pinned by a new symlink test in test_boot_tolerance.py, mutation-tested by reverting the expression. Asked the contract's own question again and the answer is unchanged: no config model moved, configs.py and config_cogt.py are untouched, no ledger moved, so no unsafe entry carrying declared_narrowed_paths is owed, and make cl stays green. On the docs half, this is a correction to which files the warning names, not to what a migration may do, so the note added to docs/configuration/index.md at the previous ack is still accurate as written - it says the walk is the global and project directories and that a file loaded from elsewhere is yours to update, which is exactly what the fixed predicate now decides correctly."[trigger_files]-"pipelex/cogt/config_cogt.py" = "blob:ee1ee2d0c1474dcef5e07690268de37ae3ff0987"+"pipelex/cogt/config_cogt.py" = "blob:02f71cb4a6b01aebda59c2e31f262ef9c865e17b""pipelex/cogt/img_gen/img_gen_job_components.py" = "blob:084985080413fd8d6c3b1b9b0747020cb0161858"-"pipelex/pipelex.toml" = "blob:abaf4f65f3096a4625dad8c6887431e952cc4734"+"pipelex/pipelex.toml" = "blob:ce9fd8469393d7c6ee6195447b4e2810653a473e""pipelex/system/configuration/__init__.py" = "blob:8b137891791fe96927ad78e64b0aad7bded08bdc""pipelex/system/configuration/config_check.py" = "blob:efa78599c08e5e003d975cc54978ea5d267214a0"-"pipelex/system/configuration/config_loader.py" = "blob:f5fe59571d4d6677d9a715bc97269afbc6d636a2"+"pipelex/system/configuration/config_loader.py" = "blob:fadc4557422f0c93335446a854d9883b3cceaf8c""pipelex/system/configuration/config_model.py" = "blob:83b29dc6e93393c9b98c4353636caf0135c80339""pipelex/system/configuration/config_root.py" = "blob:c7d43851270912d17413cfc6a511247d3c7cc160"-"pipelex/system/configuration/config_surface.py" = "blob:4144700093b2469d07b15bc0a2845fc2aa2b2900"-"pipelex/system/configuration/configs.py" = "blob:d53cdf2dd2f78efd53b51f1f6c89605f9dd4e5d8"-"pipelex/system/configuration/pipe_func_config.py" = "blob:df1cbd3698d51c96d8fa8a8c6fdf1c6be57e5771"+"pipelex/system/configuration/config_surface.py" = "blob:0ab49a3bf69f55d5ab0930665ab98e14547c9b4a"+"pipelex/system/configuration/configs.py" = "blob:60f346ba1205b762d4b6cff63494b0b34171e6ad"+"pipelex/system/configuration/pipe_func_config.py" = "blob:dc8890e914fbcdb611147e42eaa0cd87b32288a5""pipelex/system/telemetry/telemetry_config.py" = "blob:7070951a6d3e4c10cb7d59822ce168c6590c53be""pipelex/tools/aws/aws_config.py" = "blob:c1aeafeae08d3921464db33795f11a29ff3892ba"-"pipelex/tools/log/log_config.py" = "blob:7b6d032ffea29d6ce60e8af7106f2d935bc18348"+"pipelex/tools/log/log_config.py" = "blob:d15fffd2fc438e09bf21a356ea911527933cb13a"diff --git a/.drift/acks/hub-layering-convention.toml b/.drift/acks/hub-layering-convention.tomlindex 3b22ed043..9e1ef3471 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:820a8c39f4defbb59e919745a9d040794d65ebe3566027ca1b8fadc9c8780953"+digest = "sha256:28bbb28a72966c425d409154d0ae3c8c07bdff6e1ce01e0e0a7fb3b5897d94f7"reviewed_by = "Louis Choquel"-reviewed_at = "2026-08-16T16:17:00Z"-rationale = "Boot tolerance put a kernel-layer module (system/configuration/config_surface.py) one deferred import away from pipelex.migration, whose engine imports pipeline.fixes.applier on purpose. Reviewing the page against that turned up a real staleness the change did not cause: pipelex.migration is a top-level package in NEITHER column of the accounting sentence, so it read as checked while being unpoliced -- the exact failure the same paragraph warns about. Added it, and explained rather than asserted its side, because it is the interesting case: it never reaches interpreter_hub, so declaring it kernel-layer would PASS the guard and be this page's own first known inversion all over again. Measured the rest instead of eyeballing it: a module-level engine import in config_surface keeps check-hub-layering green and turns nine closure-test entry points red, which is this page's lint-vs-property claim reproduced, so that claim needed no edit. The two hub partition tables are untouched by this milestone -- runtime_hub gained no symbol, only a rerouted call inside setup_config."+reviewed_at = "2026-08-17T08:18:22Z"+rationale = "The trigger is runtime_hub.py, and the change is reset_boot_state releasing the isolated-execution probe: a body and a docstring, with no accessor added, renamed or removed. Re-derived the partition table rather than reading it - enumerated every public module-level function in pipelex/runtime_hub.py by AST and checked each against docs/contribute/hub-layering.md, and every one is named there, so the table is still complete and the probe's accessor is_in_isolated_execution keeps its existing reporting row. The page specifies the boundary and the accessor partition and says nothing about what a teardown releases, so the release reaches no sentence in it. No doc change needed."[trigger_files]"pipelex/cli/dev_cli/commands/hub_layering_guard.py" = "blob:2dbadcbab7d44364a7b5f1d16268b23b26700a00""pipelex/interpreter_hub.py" = "blob:b8c35e37814f0e94c3bf1c364b06a98d0c22ee93"-"pipelex/runtime_hub.py" = "blob:75e5f79bad4104617a32f2fe64d1493b0cfd4cb5"+"pipelex/runtime_hub.py" = "blob:498312f15921753263a4ad3475c9da5eefb8e4ba"diff --git a/.drift/acks/pipelex-kernel-docs.toml b/.drift/acks/pipelex-kernel-docs.tomlindex 9813ea9be..049ddaef6 100644--- a/.drift/acks/pipelex-kernel-docs.toml+++ b/.drift/acks/pipelex-kernel-docs.toml@@ -1,8 +1,8 @@contract = "pipelex-kernel-docs"-digest = "sha256:886b9c7bd23bc22fe9ecda51a962df1876b6fd221dc3f35c7fb53433d394ee78"+digest = "sha256:1d3cb4f0179a7920d265896a67b35c339b04b96cdb4efdcbc8d409e03e9fbdcb"reviewed_by = "Louis Choquel"-reviewed_at = "2026-08-14T13:30:46Z"-rationale = "Merge of dev into fix/Keyless-dry-run. The one trigger change is llm_ops.py taking on concrete_llm_model_handle from the per-node usage work, resolved against this branch having already deleted derive_templating_style; the conflict resolution kept both facts. Reviewed the page and found one real staleness, which dev's own ack had passed over: the Gates row claimed the boot-contract test runs every kernel entry point except the resolve_*_setting helpers, but concrete_llm_model_handle reads the deck too and has no arm in that test, so the stated sole exception was wrong the moment the function landed. Fixed the row to name the deck-reading helpers as a class rather than a count, and fixed the test docstring that row derives from, so the two agree. The module table now lists concrete_llm_model_handle and templating_style_ops with resolve_templating_style, checked against every public function in pipelex/kernel/. Nothing else on the page moved."+reviewed_at = "2026-08-15T16:00:59Z"+rationale = "The three kernel modules changed only where they read the config tree: img_gen_ops reads inference.img_gen.img_gen_param_defaults and inference.img_gen.img_gen_job, llm_ops reads inference.llm, templating_style_ops reads inference.templating.default_templating_style. Four lines, all reads, no signature, no entry point, no gate, no new function. Reviewed pipelex-kernel.md against them: the page specifies the kernel's callable surface for programmatic callers, and it names config addresses nowhere, so nothing on it went stale. Checked the module table still lists every public function in pipelex/kernel/ and that the Gates row's deck-reading-helpers wording is untouched by this change. No doc change needed."[trigger_files]"pipelex/kernel/__init__.py" = "blob:c4f1b0fe2ccc17db9110733f71b612f4ac1ba4ce"@@ -13,10 +13,10 @@ rationale = "Merge of dev into fix/Keyless-dry-run. The one trigger change is ll"pipelex/kernel/extract_results.py" = "blob:79405a56760f3d4b483660d76441fff95f58c64d""pipelex/kernel/func_ops.py" = "blob:97c68c977ddc260c9b36b7eda5f4c7964e956a27""pipelex/kernel/func_results.py" = "blob:a7425a0ddc21571f23c53b92f5d7559ffdd08b71"-"pipelex/kernel/img_gen_ops.py" = "blob:b22869bee7dfbb624e3c406a0631969fc8695b7c"+"pipelex/kernel/img_gen_ops.py" = "blob:01988c6f086929e4f745500d82054d7a5e3592de""pipelex/kernel/img_gen_prompt.py" = "blob:e4f72040561929aa0d96ad5f00b1c4af652d3f77""pipelex/kernel/img_gen_results.py" = "blob:46b4ca11c70d906ae6d58ce66461f9b3414f1bfa"-"pipelex/kernel/llm_ops.py" = "blob:ea67c4083d4fef0587964d6f22e90d4f47394aa7"+"pipelex/kernel/llm_ops.py" = "blob:ec93c42dd6d0af4142981f060ce3f9656072ba7a""pipelex/kernel/llm_prompt_content.py" = "blob:82c34283dacd2bfd9a2c263915e744736d399875""pipelex/kernel/llm_results.py" = "blob:6e3b8a2878b5bb284ece5fac10262fb59ac2029d""pipelex/kernel/memory_ops.py" = "blob:f6a5745e804ac08f19c70f1beb1f78baf50d51cd"@@ -24,5 +24,5 @@ rationale = "Merge of dev into fix/Keyless-dry-run. The one trigger change is ll"pipelex/kernel/prompt_references.py" = "blob:03ec9ef67ae84f141d072ca2d2c3ef888549ccc0""pipelex/kernel/search_ops.py" = "blob:ed0a8c7953aca1e38de852d0ddef11731b819539""pipelex/kernel/search_results.py" = "blob:101b70dc96cc5ee1721c9f6b1cb725a5ca78ff70"-"pipelex/kernel/templating_style_ops.py" = "blob:9995afde9e1943d325fcaf85182d598ab944cff6"+"pipelex/kernel/templating_style_ops.py" = "blob:395473806d600dfc4f124c07f2afebb951fc086b""tests/unit/pipelex/kernel/test_kernel_boot_contract.py" = "blob:2cbcb3924b1291d741133f8b1e9538622d06a721"diff --git a/.pipelex/pipelex.toml b/.pipelex/pipelex.tomlindex a508997f6..3f0a0525d 100644--- a/.pipelex/pipelex.toml+++ b/.pipelex/pipelex.toml@@ -10,9 +10,15 @@# - All values below are set to their defaults - modify them as needed# - The values here will override the defaults from the Pipelex package#+# The three top-level sections mirror the layers of the runtime:+# - [runtime] process-scoped infrastructure: storage, secrets, logging, tracing, plugins+# - [inference] the model-calling seam: model deck, LLM, image generation, extraction+# - [interpreter] library-scoped method machinery: parsing, pipe runs, pipeline execution+## Finding Available Settings:# - See the full default configuration in: pipelex/pipelex.toml (in the Pipelex package)-# - See the configuration structure classes in: pipelex/config.py and pipelex/cogt/config_cogt.py+# - See the configuration structure classes in: pipelex/system/configuration/configs.py+# and pipelex/cogt/config_cogt.py## Common customizations include:# - Logging levels and behavior@@ -26,69 +32,11 @@#####################################################################################################-####################################################################################################-# Pipeline Execution Config-####################################################################################################--[pipelex.pipeline_execution_config]-# Set to false to disable conversion of incoming data URLs to pipelex-storage:// URIs-is_normalize_data_urls_to_storage = true-# Set to false to disable generation of execution graphs-is_generate_graph = true-# Set to false to stop emitting usage (cost) tracing events-is_generate_usage = true--# Bounded fan-out concurrency for PipeBatch: at most this many branches run at once.-# Set max_concurrency = "unbounded" to disable the bound.-max_concurrency = 8--[pipelex.pipeline_execution_config.graph_config.data_inclusion]-# Control what data is included in graph outputs-stuff_json_content = true-stuff_text_content = true-stuff_html_content = true-error_stack_traces = true-pipe_and_concept_registry = true--[pipelex.pipeline_execution_config.graph_config.graphs_inclusion]-# Control which graph outputs are generated-graphspec_json = true-mermaidflow_mmd = true-mermaidflow_html = true-reactflow_html = true--[pipelex.pipeline_execution_config.graph_config.reactflow_config]-# Customize ReactFlow graph rendering-edge_type = "bezier" # Options: "bezier", "smoothstep", "step", "straight"-nodesep = 50 # Horizontal spacing between nodes-ranksep = 30 # Vertical spacing between ranks/levels-initial_zoom = 1.0 # Initial zoom level (1.0 = 100%)-pan_to_top = true # Pan to show top of graph on load--[pipelex.pipeline_execution_config.graph_config.reactflow_config.style]-theme = "dark"-palette = "dracula"--####################################################################################################-# Tracing Config (event log for distributed tracing across workers)-####################################################################################################--[pipelex.tracing_config]-is_enabled = true-backend = "ndjson"--[pipelex.tracing_config.ndjson]-traces_dir = ".pipelex/traces"--[pipelex.tracing_config.dynamodb]-table_name = ""-region = ""-##################################################################################################### Storage Config####################################################################################################-[pipelex.storage_config]+[runtime.storage]# Whether to fetch remote HTTP URLs and store them locallyis_fetch_remote_content_enabled = true# Whether to upload local file paths to storage and replace with pipelex-storage:// URIs@@ -96,23 +44,23 @@ is_upload_local_content_enabled = true# Storage method: "local", "in_memory", "s3", or "gcp"method = "local"-[pipelex.storage_config.local]+[runtime.storage.local]# Local storage settingsuri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"local_storage_path = ".pipelex/storage"-[pipelex.storage_config.in_memory]+[runtime.storage.in_memory]# In-memory storage settingsuri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"-[pipelex.storage_config.s3]+[runtime.storage.s3]# AWS S3 storage settings (requires boto3: `uv pip install "pipelex[s3]"`)uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"bucket_name = ""region = ""signed_urls_lifespan_seconds = 3600 # Set to "disabled" for public URLs-[pipelex.storage_config.gcp]+[runtime.storage.gcp]# Google Cloud Storage settings (requires google-cloud-storage: `uv pip install "pipelex[gcp-storage]"`)uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"bucket_name = ""@@ -123,48 +71,16 @@ signed_urls_lifespan_seconds = 3600 # Set to "disabled# Secrets Config####################################################################################################-[pipelex.secrets_config]+[runtime.secrets]# Secrets provider method: "env" (built-in, reads secrets from environment variables).# An external pipelex-secrets-<backend> plugin can add its own method (e.g. "vault").method = "env"-####################################################################################################-# Scan Config-####################################################################################################--[pipelex.scan_config]-# Directories to exclude when scanning for pipeline files-excluded_dirs = [- ".venv",- "venv",- "env",- ".env",- "virtualenv",- ".virtualenv",- ".git",- "__pycache__",- ".pytest_cache",- ".mypy_cache",- ".ruff_cache",- "node_modules",- "results",-]--####################################################################################################-# Builder Config-####################################################################################################--[pipelex.builder_config]-# Settings for generated pipelines-default_output_dir = "."-default_bundle_file_name = "bundle"-default_directory_base_name = "pipeline"-##################################################################################################### Log Config####################################################################################################-[pipelex.log_config]+[runtime.log]# Default logging level: "DEBUG", "INFO", "WARNING", "ERROR"default_log_level = "INFO"# Log output target: "stdout" or "stderr"@@ -181,7 +97,7 @@ console_log_target = "stderr"# envelope.console_print_target = "stdout"-[pipelex.log_config.package_log_levels]+[runtime.log.package_log_levels]# Log levels for specific packages (use "-" instead of "." in package names)pipelex = "INFO"@@ -189,7 +105,7 @@ pipelex = "INFO"# Reporting Config####################################################################################################-[pipelex.reporting_config]+[runtime.reporting]# Cost reporting settingsis_log_costs_to_console = trueis_generate_cost_report_file_enabled = false@@ -199,31 +115,121 @@ cost_report_extension = "csv"cost_report_unit_scale = 1.0####################################################################################################-# Cogt (Cognitive Tools) Config+# Tracing Config (event log for distributed tracing across workers)####################################################################################################-[cogt.model_deck_config]+[runtime.tracing]+is_enabled = true+backend = "ndjson"++[runtime.tracing.ndjson]+traces_dir = ".pipelex/traces"++[runtime.tracing.dynamodb]+table_name = ""+region = ""++####################################################################################################+# Plugins+####################################################################################################++[runtime.plugins]+# Names of discovered plugins to skip at startup (a denylist). Discovery is the+# source of truth for which plugins are present; this only turns one off.+disabled = []++####################################################################################################+# Inference Config (model deck, LLM, image generation, extraction)+####################################################################################################++[inference.model_deck]# Model fallback behavior: if true, uses secondary model options when primary failsis_model_fallback_enabled = true# Reaction to missing presets: "raise", "log", or "none"missing_presets_reaction = "log"-[cogt.llm_config]+[inference.llm]# Enable dumping of LLM inputs/outputs for debuggingis_dump_text_prompts_enabled = falseis_dump_response_text_enabled = false-[cogt.llm_config.instructor_config]+[inference.llm.instructor]# Enable dumping of structured content generation details for debuggingis_dump_kwargs_enabled = falseis_dump_response_enabled = falseis_dump_error_enabled = false####################################################################################################-# Plugins+# Scan Config####################################################################################################-[plugins]-# Names of discovered plugins to skip at startup (a denylist). Discovery is the-# source of truth for which plugins are present; this only turns one off.-disabled = []+[interpreter.scan]+# Directories to exclude when scanning for pipeline files+excluded_dirs = [+ ".venv",+ "venv",+ "env",+ ".env",+ "virtualenv",+ ".virtualenv",+ ".git",+ "__pycache__",+ ".pytest_cache",+ ".mypy_cache",+ ".ruff_cache",+ "node_modules",+ "results",+]++####################################################################################################+# Builder Config+####################################################################################################++[interpreter.builder]+# Settings for generated pipelines+default_output_dir = "."+default_bundle_file_name = "bundle"+default_directory_base_name = "pipeline"++####################################################################################################+# Pipeline Execution Config+####################################################################################################++[interpreter.pipeline_execution]+# Set to false to disable conversion of incoming data URLs to pipelex-storage:// URIs+is_normalize_data_urls_to_storage = true+# Set to false to disable generation of execution graphs+is_generate_graph = true+# Set to false to stop emitting usage (cost) tracing events+is_generate_usage = true++# Bounded fan-out concurrency for PipeBatch: at most this many branches run at once.+# Set max_concurrency = "unbounded" to disable the bound.+max_concurrency = 8++[interpreter.pipeline_execution.graph.data_inclusion]+# Control what data is included in graph outputs+stuff_json_content = true+stuff_text_content = true+stuff_html_content = true+error_stack_traces = true+pipe_and_concept_registry = true++[interpreter.pipeline_execution.graph.graphs_inclusion]+# Control which graph outputs are generated+graphspec_json = true+mermaidflow_mmd = true+mermaidflow_html = true+reactflow_html = true++[interpreter.pipeline_execution.graph.reactflow]+# Customize ReactFlow graph rendering+edge_type = "bezier" # Options: "bezier", "smoothstep", "step", "straight"+nodesep = 50 # Horizontal spacing between nodes+ranksep = 30 # Vertical spacing between ranks/levels+initial_zoom = 1.0 # Initial zoom level (1.0 = 100%)+pan_to_top = true # Pan to show top of graph on load++[interpreter.pipeline_execution.graph.reactflow.style]+theme = "dark"+palette = "dracula"diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 9c8b2404a..d62dded54 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,7 +6,7 @@- **A configuration that will not load now says whether it is wrong or merely old**: A validation error is raised against the merged configuration and carries no provenance — it names a key, not which file put it there, and certainly not whether that key was correct last month. When a configuration surface's model refuses, the error now also carries a dry-run scan of that surface over the same directories `pipelex migrate` walks: a structured `migration` block naming the remedy, whether that remedy would actually rewrite anything, whether anything there is a person's to resolve rather than the tool's, and the plan per file — the same shape `pipelex-agent migrate --dry-run --format json` emits, so an agent that parses one has already parsed the other. `error_domain` deliberately stays `config`: it is a closed cross-repo enum and the agent-hook specification routes anything else to BLOCK, so a stale configuration reported under a new domain would stop an agent instead of telling it what to run. Consumers branch on the block's presence — absent means the failure is not staleness — and then on `would_write`, because presence means the migration history has something to *say* about these files and not that a command repairs them: a block whose only finding is a path no entry explains, or an entry blocked before anything applied, has nothing to run, and naming the remedy there would send a reader to a run that writes nothing and leaves the same error standing. Every surface points that reader at `pipelex migrate --dry-run` instead, where the diagnosis is. The message gains a paragraph naming the files and the next move. No value read from a user's file appears in the block, which is the third of the three channels that rule covers. A caller validating something that is not a configuration surface — a `.mthds` bundle, a backend file, a model deck — names no surface and pays for no walk.-- **A configuration file the ledger can explain no longer stops the boot**: A schema change used to leave every machine in the field with a boot that died on `extra="forbid"`, naming a key the user never chose to have. When a configuration surface fails to validate, its ledger is now replayed over the same files **in memory** and the result validated again; a boot that succeeds says so in a warning naming the files and the `pipelex migrate` remedy, and nothing is written — a tolerated boot leaves the file and its directory exactly as it found them, which is why the warning keeps coming back until the command is run. Tolerance widens what starts and never what is accepted: the re-validation is what decides, so material an `unsafe` entry is about still fails the boot because the model still refuses it. Anything that goes wrong inside the retry makes it decline rather than replace the error the user already has — theirs names the key to fix. A healthy configuration pays nothing: it reads no ledger, re-parses no document, and does not even import the migration engine, which is deferred for a second reason too, since the applier lives in the interpreter layer and the configuration loaders sit in the kernel layer that must not load it. The telemetry configuration is the surface this reaches today, because it carries the only entry the package ships.+- **A configuration file the ledger can explain no longer stops the boot**: A schema change used to leave every machine in the field with a boot that died on `extra="forbid"`, naming a key the user never chose to have. When a configuration surface fails to validate, its ledger is now replayed over the same files **in memory** and the result validated again; a boot that succeeds says so in a warning naming the files and, for each of them the command would actually reach, the `pipelex migrate` remedy. The retry replays whatever the loader merged, so a file loaded through `Pipelex.make(config_dir=…)` from outside the two directories `migrate` walks is named instead as the caller's to update where it lives, rather than pointed at a command that would then report nothing to do. Nothing is written either way — a tolerated boot leaves the file and its directory exactly as it found them, which is why the warning keeps coming back until the command is run. Tolerance widens what starts and never what is accepted: the re-validation is what decides, so material an `unsafe` entry is about still fails the boot because the model still refuses it. Anything that goes wrong inside the retry makes it decline rather than replace the error the user already has — theirs names the key to fix. A healthy configuration pays nothing: it reads no ledger, re-parses no document, and does not even import the migration engine, which is deferred for a second reason too, since the applier lives in the interpreter layer and the configuration loaders sit in the kernel layer that must not load it. This release is where it matters most: the configuration reshape gives `pipelex.toml` its first ledger entry, so the file every boot reads is the one tolerance carries forward on every machine that upgrades.- **`pipelex migrate` and `pipelex-agent migrate`**: The migration engine now has commands, so a configuration that predates the installed pipelex can be repaired instead of re-initialized. Both walk the global `~/.pipelex/` and the project `.pipelex/` — those two directories only, and not recursively, because a subdirectory such as `inference/backends/` holds a different kind of file and one of them (`pipelex_gateway.toml`) matches the main configuration's tier glob exactly. Neither command boots: a broken configuration is the reason to reach for them, so they use the ledger, the applier and the filesystem and nothing else, and a test hands them a configuration that cannot load to keep it that way. The human command plans, shows the plan and asks; the machine one writes only with `--yes`, since it cannot ask, and passing `--dry-run` and `--yes` together is refused rather than resolved. Its answer is structured, and `needs_attention` is the verdict — *this run left something a person has to decide*, deliberately not *did anything get written* — with the exit code and the Markdown rendering as presentation. Every file rewritten is backed up beside itself first, and no value read from a user's file appears in either command's output or in the structured plan.- **A migration now names what it cannot explain about a file**: A file *newer* than the running pipelex — an override migrated on one branch, then an older branch checked out — breaks the boot while a replay finds nothing to do, because every operation's source is absent. That silence beside a dead boot is the failure the migration project exists to remove, so every plan now carries an `unexplained[]` listing the paths of the migrated document that the current schema does not know and no ledger entry accounts for, each with the two readings the tool cannot tell apart: a typo, or a file written by a newer pipelex. This is the one part of a migration that needs the configuration model — the question goes to the surface's fingerprint, the same projection the coverage gate diffs, so the replay engine stays model-free. The document it reads is the one the run leaves behind rather than the one it found, which is what keeps every key the ledger is about to repair out of the list, and a path a *blocked* entry is about is left to that entry, which reports it by name with its own guidance. A key the user chose is never rendered: beneath an open mapping a typo is reported at `queues.*.retries`, naming only the segment the schema does not know.- **A configuration file may now be refused for declaring a schema version its ledger no longer reaches**: `min_supported_schema_version` had no reader, which left the floor a comment. A migration now reads the reserved `[meta] schema_version` — exactly as tolerantly as the configuration loader strips it, so a malformed declaration is no declaration — and refuses a file below the floor by name (`unsupported_schema_version`), writing nothing. Without it, a ledger whose oldest entries had been squashed away would run over a file older than them, change nothing, and report it clean, because the applier skips an operation whose target is absent.@@ -28,16 +28,15 @@### Changed+- **The configuration root is reshaped along the layers of the runtime (Breaking)**: `pipelex.toml` had no scheme at the top — a grab-bag (`[pipelex]`), a codename (`[cogt]`), the plugin system's own table (`[plugins]`), a rename-hint table (`[migration]`) and a stray `session_id`. It now has one, and it is the split the code already had: `[runtime]` for process-scoped infrastructure (storage, secrets, logging, cloud credentials, reporting, tracing, observation, the plugin denylist), `[inference]` for the model-calling seam (the model deck, LLM, image generation, extraction, plus the default templating style and the shape of dry-run mocks), `[interpreter]` for library-scoped method machinery (MTHDS parsing, pipe runs, pipe functions, pipeline execution, scanning, the builder), and `[kit]` for the dev tooling. The redundant `_config` suffix is dropped from every key at every depth, so `[pipelex.log_config.rich_log_config]` is `[runtime.log.rich_log]` and `[cogt.llm_config.instructor_config]` is `[inference.llm.instructor]`. Class names keep their suffix — the redundancy was in the key, not the type. Every setting keeps its value; only its address changes, and the packaged defaults are now written in order so no root table is split across the file. **Migration:** run `pipelex migrate` after upgrading — the change ships as ledger entry `pipelex-config@2`, which rewrites `~/.pipelex/` and every project `.pipelex/` file in place. Three things are dropped rather than moved: `[migration.migration_maps.*]` (renames are ledger entries now, so the old-to-new name hints in validation errors go away, `.mthds` hints included), `session_id` (process state on the config object that nothing in `pipelex` read), and `plugins.boot_orchestrator`, which becomes a boot argument only — pass `--orchestrator` or `Pipelex.setup(boot_orchestrator=...)`, and read it back at run time from the `runtime_hub` accessor rather than off the config. Code reading the config tree moves with the keys: `get_config().pipelex.storage_config` is `get_config().runtime.storage`, and so on.- **The migration ledger contract is published, and a config-model change now owes it a review**: `docs/migration-ledger.md` was written ahead of the engine it specifies and shipped built-but-unlisted; the commands it describes exist, so it joins the documentation navigation beside the other contributor contracts and loses its status banner. Alongside it, the `config-docs` drift contract's review list gains the migration ledgers and the two modules holding the four validators that narrow a configuration value domain — a narrowing expressed in a validator is invisible to the fingerprint projection the coverage gate reads, so no derived check can ever demand the ledger entry it owes, and a review obligation is the only place that can land. The migration goldens are deliberately not in that list: they are generator output, and their staleness is already `check-migration-schemas`' business.- **Writing a migration entry is a skill, and a release checks one was written**: `.claude/skills/add-migration/` is the only thing that writes a ledger — it derives the entry from what the coverage gate refused rather than from a reading of the diff, bumps the surface's schema version, regenerates the goldens, and adds the changelog bullet. `/release` gains step 3b before the version bump: `make check-migration-schemas` does not run in `make agent-check`, so an unaccounted schema change would otherwise reach a release unseen; the step blocks on it, sends a failure to `add-migration`, and confirms a `**Migration:**` changelog bullet and a correct `introduced_in` for every new breaking entry.-- **A stale telemetry configuration is migrated instead of thrown away**: `telemetry.toml` failing to load used to get one answer everywhere — *the format has changed, run `pipelex init telemetry`* — written for the flat pre-`[custom_posthog]` file and then shown for every other way a file can fail. That command writes a fresh file, so on the very case it named it discarded the PostHog key, the Langfuse credentials and the OTLP exporters that the shipped `telemetry-config@2` entry carries forward. The telemetry loader now raises through the same reporting path as every other configuration surface, so its error carries the structured `migration` block and the human CLI, the agent envelope and `pipelex doctor` all say whether the file is *old*, *wrong*, or reported on by a migration that would not repair it — rather than each holding a hardcoded remedy. `TelemetryConfigError` is a `PipelexConfigError`, which is where its `error_domain = config` now comes from — its entry in the agent CLI's domain table is gone as redundant. The `doctor` telemetry row carries a structured `finding` (`healthy`, `not_found`, `unparseable`, `out_of_date`, `invalid`) that every caller branches on, and `out_of_date` is a promise the migration would rewrite that file, so a file it would only report on is `invalid` and keeps the dry run's pointer; writing a fresh file is offered for a missing file only, and regeneration is described as what it is, a way to start over that discards the file. The telemetry models stayed in `telemetry_config.py` and the loader moved into a new `telemetry_loader.py` beside it, because the loader's failure path reaches the migration registry and the registry imports every configuration model.-- **The fingerprint records the bounds a file actually meets, and the enumerated spellings where an operation can reach them**: A bound in a field's own metadata *binds* — pydantic applies it on top of whatever a union member declares — so the two sources are now merged separately and intersected instead of pooled and widened; a field whose own `Field(le=6)` was the real ceiling used to be recorded as `le=100` because a member said so, and a later tightening of that ceiling then read as a change to an already-looser one. Enumerated members beneath an open mapping are now recorded only on the wildcard record, whose own value is the enumerated one: recording them on the container as well made the coverage gate demand a remap of a table value, a demand no operation could satisfy. Every other container is still descended into, since a `list[enum]` has no child record — and there the gate now names `unsafe` as the only remedy rather than crediting a remap that would skip on every run. One golden moved with it: the duplicated member set on `pipelex.log_config.package_log_levels`.+- **The fingerprint records the bounds a file actually meets, and the enumerated spellings where an operation can reach them**: A bound in a field's own metadata *binds* — pydantic applies it on top of whatever a union member declares — so the two sources are now merged separately and intersected instead of pooled and widened; a field whose own `Field(le=6)` was the real ceiling used to be recorded as `le=100` because a member said so, and a later tightening of that ceiling then read as a change to an already-looser one. Enumerated members beneath an open mapping are now recorded only on the wildcard record, whose own value is the enumerated one: recording them on the container as well made the coverage gate demand a remap of a table value, a demand no operation could satisfy. Every other container is still descended into, since a `list[enum]` has no child record — and there the gate now names `unsafe` as the only remedy rather than crediting a remap that would skip on every run. One golden moved with it: the duplicated member set on `runtime.log.package_log_levels`.- **The narrowing relation stopped crying wolf on four shapes**: A container whose argument widened (`list[int]` → `list[int | str]`) is read structurally instead of as one opaque string; `int` is absorbed by `float`, which accepts every integer in strict validation as well as lax; `enum` and `literal` absorb each other, because they are two renderings of one thing and what moved between two member *sets* is reported by the enumerated-spelling half; and over an integral type `gt=n` and `ge=n+1` are folded to the same bound, so swapping one spelling for the other stops reading as a tightening. Each was a false breaking verdict on a schema no user's file can tell apart, and the remedy the gate named — bump the version, write an `unsafe` entry — was work with no beneficiary.- **`make up-migration-schemas` left `make up`, and refuses to erase a removal**: Every other regenerator in that aggregate rewrites a derived artifact from a live source, so running them out of habit is harmless; the head fingerprint golden is the proof obligation the coverage gate compares against, and rewriting it after deleting a field erases the very removal the gate exists to catch. It is now run on purpose, and it stops before overwriting a head golden recording a path, an enumerated spelling or a value domain the models no longer have. The refusal names both readings — a real removal wants a bump and an entry; a golden that merely predates a change to the fingerprint format wants the new `make umigf` — because the code cannot tell them apart.-- **The fix applier moves and renames a table whole even when a descendant is written in several places**: A `[a.b]` … `[a.c]` … `[a.b.d]` layout stores `a.b` as several chunks under one key, and tomlkit's own header-cache invalidation walks the merged dict facade — one chunk per key — so renaming or moving `a` used to leave the later chunks rendering under the old name: the file came out split between the old name and the new, with an `applied` verdict. The applier now refreshes every chunk beneath a renamed or moved table, so the file re-parses to the same value under the new path, in the original order. This reaches every caller of the applier, the `.mthds` fix loop included.-- **Templating style is now an authoring decision (Breaking)**: How a pipe's inputs are tagged into a prompt is declared on the pipe — `templating_style` on `PipeLLM`, either a bare tag-style string (`"xml"`, `"ticks"`, `"square_brackets"`, `"no_tag"`) or a full `{ tag_style, text_format }` table — with a single runtime default for everything that declares nothing (`[pipelex.templating_config].default_templating_style`, shipped as `xml`). It is no longer derived from model metadata, so the same method renders the same prompt shape on every model. **Every prompt rendered for an OpenAI-family model changes shape, from back-tick fences to XML tags.** `PipelexKernel.llm_text` and `llm_object` take the same optional argument.+- **Templating style is now an authoring decision (Breaking)**: How a pipe's inputs are tagged into a prompt is declared on the pipe — `templating_style` on `PipeLLM`, either a bare tag-style string (`"xml"`, `"ticks"`, `"square_brackets"`, `"no_tag"`) or a full `{ tag_style, text_format }` table — with a single runtime default for everything that declares nothing (`[inference.templating].default_templating_style`, shipped as `xml`). It is no longer derived from model metadata, so the same method renders the same prompt shape on every model. **Every prompt rendered for an OpenAI-family model changes shape, from back-tick fences to XML tags.** `PipelexKernel.llm_text` and `llm_object` take the same optional argument.- **Compose, image-generation, search and structuring prompts follow the same default (Breaking)**: These paths previously rendered style-less, which the Jinja2 filters silently absorbed as triple-backticks and plain text. They now resolve the same runtime default as the LLM path. Any template of yours that uses `| tag` — including `PipeCompose` templates and construct-mode template fields — changes shape accordingly, whichever model family you run on.- **Templating filters are strict**: The `tag`, `format` and `with_images` Jinja2 filters no longer fall back to a built-in style when the rendering context carries none; a missing tag style or text format raises `Jinja2ContextError`. Every prompt-rendering entry point now supplies a resolved style, so a missing one is a bug rather than a shape nobody chose. An explicit filter argument (`| format("markdown")`) is unaffected, and an unknown format name is now reported as a template error instead of a bare `ValueError`.- **Reasoning budgets are worker-owned**: The thinking-budget lookup is keyed by a family constant on the worker class rather than read from the model spec's `prompting_target`. Behavior is unchanged; the budget maps keep their `anthropic` and `gemini` keys.@@ -61,7 +60,7 @@### Removed-- **`prompting_target` (Breaking)**: Gone from `LLMSetting`, `InferenceModelSpec`, `InferenceModelSpecBlueprint` and every backend TOML, along with the `PromptingTarget` enum and the per-target style map (`[pipelex.prompting_config]` and its `prompting_styles` sub-table, replaced by `[pipelex.templating_config]`). **Migration:** delete every `prompting_target` line from your own `.pipelex/inference/backends/*.toml` — backend files are read strictly, so a surviving one fails the boot. Check `portkey.toml` in particular: the key appears in `[defaults]` *and* on individual model entries, and a surviving per-model one is rejected by name as an unknown, non-header key.+- **`prompting_target` (Breaking)**: Gone from `LLMSetting`, `InferenceModelSpec`, `InferenceModelSpecBlueprint` and every backend TOML, along with the `PromptingTarget` enum and the per-target style map (`[pipelex.prompting_config]` and its `prompting_styles` sub-table, replaced by `[inference.templating]`). **Migration:** delete every `prompting_target` line from your own `.pipelex/inference/backends/*.toml` — backend files are read strictly, so a surviving one fails the boot. Check `portkey.toml` in particular: the key appears in `[defaults]` *and* on individual model entries, and a surviving per-model one is rejected by name as an unknown, non-header key.- **`LLMPromptTemplate` and friends**: Removed the unused prompt-template module along with `LLMPromptFactoryAbstract`, `LLMPromptTemplateInputs` and `LLMPromptTemplateInputsError`. Their hardcoded XML+Markdown style predated the configurable one and had no production consumer.## [v0.45.0] - 2026-08-14diff --git a/docs/analytics/data-extraction.md b/docs/analytics/data-extraction.mdindex 8f39f9b0a..dcfb7cb08 100644--- a/docs/analytics/data-extraction.md+++ b/docs/analytics/data-extraction.md@@ -45,7 +45,7 @@ Pass an explicit `storage_dir`: the observer is constructed before `Pipelex.makeOnce registered:- **Location**: Local filesystem in JSONL format-- **Default Directory**: if you omit `storage_dir`, the directory comes from `observer_config.observer_dir` in your Pipelex settings — but that fallback only works once Pipelex is booted, not in the pre-boot construction shown above+- **Default Directory**: if you omit `storage_dir`, the directory comes from `runtime.observer.observer_dir` in your Pipelex settings — but that fallback only works once Pipelex is booted, not in the pre-boot construction shown above- **Files Created**:- `before_run.jsonl` - Pre-execution snapshotsdiff --git a/docs/building-methods/pipes/pipe-controllers/PipeBatch.md b/docs/building-methods/pipes/pipe-controllers/PipeBatch.mdindex 0cf3b83f9..d941a58a9 100644--- a/docs/building-methods/pipes/pipe-controllers/PipeBatch.md+++ b/docs/building-methods/pipes/pipe-controllers/PipeBatch.md@@ -20,7 +20,7 @@ This is the ideal controller for processing collections of documents, images, or## Concurrency-`PipeBatch` does not spawn every branch at once. Branches run in bounded concurrent chunks, capped by the `max_concurrency` setting under `[pipelex.pipeline_execution_config]` (default `8`). This keeps a large batch — one pipe over thousands of items — from overwhelming memory, the asyncio event loop, and provider rate limits.+`PipeBatch` does not spawn every branch at once. Branches run in bounded concurrent chunks, capped by the `max_concurrency` setting under `[interpreter.pipeline_execution]` (default `8`). This keeps a large batch — one pipe over thousands of items — from overwhelming memory, the asyncio event loop, and provider rate limits.To restore unbounded fan-out (every branch started at once), set `max_concurrency = "unbounded"`.diff --git a/docs/building-methods/pipes/pipe-operators/PipeStructure.md b/docs/building-methods/pipes/pipe-operators/PipeStructure.mdindex e586ad197..2d7b7bfa3 100644--- a/docs/building-methods/pipes/pipe-operators/PipeStructure.md+++ b/docs/building-methods/pipes/pipe-operators/PipeStructure.md@@ -16,7 +16,7 @@ Use `PipeStructure` whenever the source of the text is not the LLM call itself3. It picks an LLM setting using the same precedence as `PipeLLM` for object generation: explicit `model` on the pipe → `llm_choice_overrides.for_object` → `llm_choice_defaults.for_object`.4. It calls `make_object` (or `make_object_list` when the output multiplicity is a list) and emits the result as the pipe's output.-`PipeStructure` does not accept user-controlled prompt templates. The structuring prompt lives in `pipelex.toml` under `[cogt.llm_config.generic_templates] structuring_prompt`; the only variable rendered into it is `text`, fed automatically from the declared input.+`PipeStructure` does not accept user-controlled prompt templates. The structuring prompt lives in `pipelex.toml` under `[inference.llm.generic_templates] structuring_prompt`; the only variable rendered into it is `text`, fed automatically from the declared input.## Configurationdiff --git a/docs/building-methods/pipes/run-modes-and-backends.md b/docs/building-methods/pipes/run-modes-and-backends.mdindex 6404f5c84..90f809a16 100644--- a/docs/building-methods/pipes/run-modes-and-backends.md+++ b/docs/building-methods/pipes/run-modes-and-backends.md@@ -22,10 +22,10 @@ Pipelex separates **what the inference leaves do** (the run mode) from **where t| Backend | Trigger | What runs where ||---|---|---|| **Direct** (default) | — | Everything in your process |-| **Temporal** | `--orchestrator temporal`, or config `plugins.boot_orchestrator = "temporal"` | Controllers as child workflows, inference leaves as activities on workers |+| **Temporal** | `--orchestrator temporal`, or `Pipelex.setup(boot_orchestrator="temporal")` | Controllers as child workflows, inference leaves as activities on workers |!!! info "Durable backends are a commercial capability"- The Temporal backend is part of Pipelex's [durable & distributed execution offer](https://pipelex.com/products#durable-execution) — the [Temporal backend](https://pipelex.com/products#temporal) is delivered through the Pipelex platform. The `--orchestrator <name>` flag (and its `plugins.boot_orchestrator` config equivalent) boots the process under the named orchestrator plugin; omit it for in-process execution.+ The Temporal backend is part of Pipelex's [durable & distributed execution offer](https://pipelex.com/products#durable-execution) — the [Temporal backend](https://pipelex.com/products#temporal) is delivered through the Pipelex platform. The `--orchestrator <name>` flag (and its Python equivalent, `Pipelex.setup(boot_orchestrator=...)`) boots the process under the named orchestrator plugin — it is a boot argument, never a `pipelex.toml` setting; omit it for in-process execution.The run mode rides across the wire with every inference job, so the backend never changes *what* a leaf does — only *where* it does it. In particular, when you run a **pipeline** in dry mode on Temporal, the real inference activities are still dispatched and mock **inside** them on the worker. That's by design: it lets you test the entire distribution machinery — dispatch, scheduling, serialization, task-queue routing, cross-worker graph tracing — with zero AI spend and no credentials.diff --git a/docs/building-methods/templating-style.md b/docs/building-methods/templating-style.mdindex 70e4d06f6..800a51324 100644--- a/docs/building-methods/templating-style.md+++ b/docs/building-methods/templating-style.md@@ -49,7 +49,7 @@ There is no third level. The style is never derived from the model, the providerThe shipped default is `xml` with `plain` text, set in `pipelex.toml`:```toml-[pipelex.templating_config]+[inference.templating]default_templating_style = { tag_style = "xml" }```diff --git a/docs/configuration/config-pipeline-validation/dry-run-config.md b/docs/configuration/config-pipeline-validation/dry-run-config.mdindex d6de31f9e..70002983c 100644--- a/docs/configuration/config-pipeline-validation/dry-run-config.md+++ b/docs/configuration/config-pipeline-validation/dry-run-config.md@@ -28,7 +28,7 @@ class DryRunConfig(ConfigModel):## Example Configuration```toml-[pipelex.dry_run_config]+[inference.dry_run]text_gen_truncate_length = 100nb_list_items = 3nb_extract_pages = 2diff --git a/docs/configuration/config-practical/logging-config.md b/docs/configuration/config-practical/logging-config.mdindex 339b0d8e0..c43a2f59c 100644--- a/docs/configuration/config-practical/logging-config.md+++ b/docs/configuration/config-practical/logging-config.md@@ -4,7 +4,7 @@ description: "Fine-tune Pipelex logging levels, Rich console output, and message# Logging Configuration-Configuration section: `[pipelex.log_config]`+Configuration section: `[runtime.log]`## Overview@@ -24,7 +24,7 @@ default_log_level = "INFO"### Package-Specific Log Levels```toml-[pipelex.log_config.package_log_levels]+[runtime.log.package_log_levels]anthropic = "INFO"asyncio = "INFO"botocore = "INFO"@@ -96,7 +96,7 @@ poor_loggers = [## Rich Console Configuration-Configuration section: `[pipelex.log_config.rich_log_config]`+Configuration section: `[runtime.log.rich_log]`### Display Options@@ -145,7 +145,7 @@ keywords_to_hilight = []## Example Configuration```toml-[pipelex.log_config]+[runtime.log]default_log_level = "INFO"log_mode = "rich"is_console_logging_enabled = true@@ -158,12 +158,12 @@ silenced_problem_ids = []generic_poor_logger = "#poor-log"poor_loggers = []-[pipelex.log_config.package_log_levels]+[runtime.log.package_log_levels]pipelex = "INFO"openai = "WARNING"anthropic = "INFO"-[pipelex.log_config.rich_log_config]+[runtime.log.rich_log]is_show_time = falseis_show_level = trueis_link_path_enabled = truediff --git a/docs/configuration/config-practical/pipe-run-config.md b/docs/configuration/config-practical/pipe-run-config.mdindex 46f7fef01..de2a84099 100644--- a/docs/configuration/config-practical/pipe-run-config.md+++ b/docs/configuration/config-practical/pipe-run-config.md@@ -20,7 +20,7 @@ class PipeRunConfig(ConfigModel):## Example Configuration```toml-[pipelex.pipe_run_config]+[interpreter.pipe_run]pipe_stack_limit = 20```diff --git a/docs/configuration/config-practical/reporting-config.md b/docs/configuration/config-practical/reporting-config.mdindex 40ed31125..425149d6a 100644--- a/docs/configuration/config-practical/reporting-config.md+++ b/docs/configuration/config-practical/reporting-config.md@@ -4,7 +4,7 @@ description: "Manage cost reporting for LLM usage, OCR processing, and other ope# Reporting Configuration-Configuration section: `[pipelex.reporting_config]`+Configuration section: `[runtime.reporting]`## Overview@@ -70,7 +70,7 @@ cost_report_unit_scale = 1.0## Example Configuration```toml-[pipelex.reporting_config]+[runtime.reporting]# Enable console logging for developmentis_log_costs_to_console = truediff --git a/docs/configuration/config-technical/aws-config.md b/docs/configuration/config-technical/aws-config.mdindex cc67d631c..8c9388800 100644--- a/docs/configuration/config-technical/aws-config.md+++ b/docs/configuration/config-technical/aws-config.md@@ -4,7 +4,7 @@ description: "Configure AWS authentication for Pipelex — choose between enviro# AWS Configuration-Configuration section: `[pipelex.aws_config]`+Configuration section: `[runtime.aws]`## Overview@@ -13,7 +13,7 @@ The AWS configuration controls how Pipelex authenticates with AWS services. It s## Authentication Methods```toml-[pipelex.aws_config]+[runtime.aws]api_key_method = "env" # or "secret_provider"bedrock_access_variant = "bedrock_token" # or "aws_access"```diff --git a/docs/configuration/config-technical/cogt-config.md b/docs/configuration/config-technical/inference-config.mdsimilarity index 86%rename from docs/configuration/config-technical/cogt-config.mdrename to docs/configuration/config-technical/inference-config.mdindex 1212c3cec..840fc88fa 100644--- a/docs/configuration/config-technical/cogt-config.md+++ b/docs/configuration/config-technical/inference-config.md@@ -1,30 +1,30 @@----description: "Configure cognitive tools in Pipelex — LLM inference, image generation, and OCR extraction settings through TOML configuration."+description: "Configure inference in Pipelex — LLM, image generation, extraction, templating and dry-run settings through TOML configuration."----# Cognitive Tools (Cogt) Configuration+# Inference Configuration-The Cogt configuration manages all cognitive tools in Pipelex, including LLM (Language Models), Image Generation, and OCR (Optical Character Recognition) capabilities.+The `[inference]` section configures everything Pipelex uses to call a model: LLM inference, image generation, document extraction, the model deck, the default templating style, and the shape of dry-run mocks.## Overview```toml-[cogt]+[inference]# Tier 1 transport retry attemptstransport_max_retries = 2-# Main Cogt configuration sections-[cogt.llm_config]-[cogt.img_gen_config]-[cogt.extract_config]+# Main inference configuration sections+[inference.llm]+[inference.img_gen]+[inference.extract]```## Transport Retry-`transport_max_retries` is a top-level `[cogt]` setting that controls how many times an inference SDK client retries a transient transport failure before giving up.+`transport_max_retries` is a top-level `[inference]` setting that controls how many times an inference SDK client retries a transient transport failure before giving up.```toml-[cogt]+[inference]transport_max_retries = 2```@@ -32,14 +32,14 @@ transport_max_retries = 2This is "Tier 1" of the retry model. It is wired uniformly into every inference SDK client factory — Anthropic, OpenAI / Azure OpenAI, the Pipelex Gateway clients, Mistral, and Google — as well as the raw-`httpx` Azure image-generation path, so the retry posture is a deliberate, uniform policy rather than a per-provider SDK default.-It is distinct from `llm_config.schema_reask_max_attempts`, which is `instructor`'s schema re-ask count for structured-output validation failures — a different concern.+It is distinct from `inference.llm.schema_reask_max_attempts`, which is `instructor`'s schema re-ask count for structured-output validation failures — a different concern.## LLM ConfigurationConfiguration for all Language Model interactions:```toml-[cogt.llm_config]+[inference.llm]default_max_images = 100 # Maximum number of images in promptsis_structure_prompt_enabled = trueschema_reask_max_attempts = 3 # instructor schema re-ask attempts, between 1 and 10@@ -58,11 +58,11 @@ When configuring LLM jobs, you can set:Configuration for image generation capabilities:```toml-[cogt.img_gen_config.img_gen_job_config]+[inference.img_gen.img_gen_job]is_sync_mode = false# Default parameters for image generation-[cogt.img_gen_config.img_gen_param_defaults]+[inference.img_gen.img_gen_param_defaults]aspect_ratio = "square" # Options: square, landscape_4_3, landscape_3_2, landscape_16_9, landscape_21_9, landscape_4_1, landscape_8_1,# portrait_3_4, portrait_2_3, portrait_9_16, portrait_9_21, portrait_1_4, portrait_1_8background = "auto" # Options: transparent, opaque, auto@@ -115,7 +115,7 @@ Image generation jobs support these parameters:Configuration for Optical Character Recognition:```toml-[cogt.extract_config]+[inference.extract]default_page_views_dpi = 72```@@ -174,18 +174,18 @@ All model types support the same routing, aliasing, and preset systems.## Example Complete Configuration```toml-[cogt]+[inference]transport_max_retries = 2-[cogt.llm_config]+[inference.llm]default_max_images = 100is_structure_prompt_enabled = trueschema_reask_max_attempts = 3-[cogt.img_gen_config.img_gen_job_config]+[inference.img_gen.img_gen_job]is_sync_mode = false-[cogt.img_gen_config.img_gen_param_defaults]+[inference.img_gen.img_gen_param_defaults]aspect_ratio = "square"background = "auto"quality = "low"@@ -196,7 +196,7 @@ safety_tolerance = 5is_raw = falseseed = "auto"-[cogt.extract_config]+[inference.extract]default_page_views_dpi = 72```diff --git a/docs/configuration/index.md b/docs/configuration/index.mdindex 2a20456dd..ca414c789 100644--- a/docs/configuration/index.md+++ b/docs/configuration/index.md@@ -49,14 +49,17 @@ In addition to the base `pipelex.toml`, Pipelex applies override files from **in## Configuration Structure-The configuration is organized into four main sections:+The configuration is organized into four main sections, which mirror the layers of the runtime:-1. `[pipelex]` - Core Pipelex settings-2. `[cogt]` - Cognitive tools and LLM settings-3. `[plugins]` - Plugin-specific configurations-4. `[migration]` - Retired, and empty of meaning: the rename tables it holds are no longer read by anything. Keeping an out-of-date configuration working is now the job of [`pipelex migrate`](../tools/cli/migrate.md), which repairs your files instead of guessing at an error message. The section stays in place for now because removing a table the configuration model still requires is itself a change your files would have to be migrated through.+1. `[runtime]` - process-scoped infrastructure: storage, secrets, logging, cloud credentials, reporting, tracing, observation, and the plugin denylist+2. `[inference]` - the model-calling seam: the model deck, LLM, image generation, extraction, the default templating style, and dry-run mocks+3. `[interpreter]` - library-scoped method machinery: MTHDS parsing, pipe runs, pipe functions, pipeline execution, source scanning, and the builder+4. `[kit]` - settings for the `pipelex-dev` kit tooling-Each section contains multiple subsections for specific features and functionalities.+Each section contains multiple subsections for specific features and functionalities. A setting's address tells you which layer owns it: `[runtime.*]` applies to any process, whatever it loads; `[interpreter.*]` only means something once a method is loaded.++!!! tip "If your file predates this layout"+ A `pipelex.toml` written against an older layout still boots. Pipelex carries it forward in memory, warns you that it did, and changes nothing on disk; `pipelex doctor` reports the pending migration. `pipelex migrate` is what makes it permanent — it rewrites each file in place and keeps the original beside it as a timestamped `.bak`. Your settings move address, they do not change value. The command walks the global `~/.pipelex/` and your project's `.pipelex/`, so a file you load from somewhere else — through `Pipelex.make(config_dir=…)` — is yours to update where it lives, and the boot warning says so rather than naming a command that would not reach it. See [Migration Ledger](../migration-ledger.md) for what a migration may and may not do to your file.## Configuration Override Systemdiff --git a/docs/contribute/hub-layering.md b/docs/contribute/hub-layering.mdindex c399b42b3..40ecce5f6 100644--- a/docs/contribute/hub-layering.md+++ b/docs/contribute/hub-layering.md@@ -46,6 +46,7 @@ There is deliberately **no** `pipelex.hub`. It was deleted rather than kept as a| content generation | `get_content_generator`, `scoped_content_generator` || reporting | `get_report_delegate`, `is_in_isolated_execution` || run mode | `is_dry_run_forced`, `resolve_run_mode_for_boot` |+| boot orchestrator | `get_boot_orchestrator` || 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` |@@ -194,7 +195,7 @@ Splitting the hub removes the *lookups* that crossed the boundary. It does not m**`JobMetadata` moved to `pipelex/system/`.** It is an argument to essentially every `cogt` call, yet it lived in `pipelex/pipeline/` — which made `cogt → pipeline` the fattest remaining edge and pulled `graph.trace_context` into every closure that touched inference. `JobMetadata`, `JobCategory` and `UnitJobId` now live in `pipelex/system/job_metadata.py`, and `JobMetadataError` moved from `pipeline/exceptions.py` to `pipelex/system/exceptions.py`. `cogt → pipeline` is now **zero statements**.-`TraceContext` moved with it, to `pipelex/system/trace_context.py`: it is the transport `JobMetadata` carries, so leaving it in `graph/` would only have renamed the inversion to `system → graph`. Its one dependency on the graph package — `DataInclusionConfig`, nested under `[...graph_config.data_inclusion]` in the TOML — moved down to `pipelex/system/data_inclusion_config.py`, which `graph_config.py` now imports. The TOML shape is unchanged; only the class's home moved, which is what keeps `trace_context` from re-importing `mermaid_config` and `reactflow_config` through `GraphConfig`.+`TraceContext` moved with it, to `pipelex/system/trace_context.py`: it is the transport `JobMetadata` carries, so leaving it in `graph/` would only have renamed the inversion to `system → graph`. Its one dependency on the graph package — `DataInclusionConfig`, nested under `[...graph.data_inclusion]` in the TOML — moved down to `pipelex/system/data_inclusion_config.py`, which `graph_config.py` now imports. The TOML shape is unchanged; only the class's home moved, which is what keeps `trace_context` from re-importing `mermaid_config` and `reactflow_config` through `GraphConfig`.**The templating primitives moved down into `tools/`.** `TemplateCategory`, `TemplatingStyle`, `TagStyle` and `TextFormat` sat under `cogt/templating/` while eight `tools/jinja2/` and `tools/mermaid/` modules imported them — so `tools`, the intended bottom layer, depended on `cogt`. None of the three modules holding them named anything from `cogt`, so this was pure misfiling:diff --git a/docs/errors/core-unconditional-plugin-disabled-error.md b/docs/errors/core-unconditional-plugin-disabled-error.mdindex 1ad2db2f1..752ae2c50 100644--- a/docs/errors/core-unconditional-plugin-disabled-error.md+++ b/docs/errors/core-unconditional-plugin-disabled-error.md@@ -7,7 +7,7 @@ description: "Reference for the `CoreUnconditionalPluginDisabledError` Pipelex e# Core unconditional plugin disabled-A plugin that core requires unconditionally was named in plugins.disabled.+A plugin that core requires unconditionally was named in ``runtime.plugins.disabled``.| Field | Value ||---|---|diff --git a/docs/features/cloud-storage.md b/docs/features/cloud-storage.mdindex 5bad483d6..c01244942 100644--- a/docs/features/cloud-storage.md+++ b/docs/features/cloud-storage.md@@ -25,6 +25,6 @@ Pipelex can automatically upload generated artifacts — images, extracted pages## Configuration-Storage is configured in `pipelex.toml` under `[pipelex.storage_config]`. Set `method` to `local`, `in_memory`, `s3`, or `gcp`, then provide provider-specific settings such as `bucket_name`, `region`, or `project_id` in the matching subsection.+Storage is configured in `pipelex.toml` under `[runtime.storage]`. Set `method` to `local`, `in_memory`, `s3`, or `gcp`, then provide provider-specific settings such as `bucket_name`, `region`, or `project_id` in the matching subsection.For AWS configuration, see [AWS Configuration](../configuration/config-technical/aws-config.md).diff --git a/docs/features/validation-dry-run.md b/docs/features/validation-dry-run.mdindex 5101f4f9c..d490ae823 100644--- a/docs/features/validation-dry-run.md+++ b/docs/features/validation-dry-run.md@@ -35,7 +35,7 @@ Execute pipelines with mocked LLM responses to test pipeline logic, data flow, a## Allowed-to-Fail Pipes-List specific pipe codes in `pipelex.dry_run_config.allowed_to_fail_pipes` so dry-run validation can tolerate expected failures without failing the overall validation pass.+List specific pipe codes in `inference.dry_run.allowed_to_fail_pipes` so dry-run validation can tolerate expected failures without failing the overall validation pass.## CLI Usagediff --git a/docs/migration-ledger.md b/docs/migration-ledger.mdindex 1be6f3ced..ad7a7c356 100644--- a/docs/migration-ledger.md+++ b/docs/migration-ledger.md@@ -529,7 +529,7 @@ load user files → deep-merge → validate (extra="forbid")→ re-read S's user files with tomlkit→ replay S's ledger in memory, per file (writes nothing; `unsafe` entries are rehearsed, never applied)→ re-merge → re-run the loader's own post-merge step → re-validate- ok → WARNING naming the file and the `pipelex migrate` remedy → boot+ ok → WARNING naming the file and, where the command reaches it, the `pipelex migrate` remedy → bootfails → unsafe entries, CONFLICT, or unexplained paths → validation errorwith error_domain "config" and the `migration` block```@@ -541,6 +541,7 @@ The rules this encodes:- **The retry honours the [schema-version floor](#schema-versions-and-why-every-run-replays-everything).** A file that declares a version below `min_supported_schema_version` is one `pipelex migrate` refuses; the retry declines it through the same predicate rather than carrying it forward under-migrated, and the user's own error — with the `migration` block naming the floor — is what they see.- **The retry never becomes the failure.** Anything that goes wrong inside it — a ledger that will not load, a file that will not parse — makes it decline, and the error the *configuration* produced is what the user sees. Their error names the key to fix; ours would name our packaging. A file that cannot be re-read abandons the whole retry rather than being skipped, because skipping it would drop a layer from the merge and a re-validation that then succeeded would boot on a configuration the user does not have.- **The main configuration's warning waits for the logger.** That configuration is what configures logging, so when its retry succeeds there is no logger yet — the loader parks the warning (`config_manager.take_stale_configuration_warning()`) and the boot emits it right after `log.configure`. The telemetry and service loaders run after that point and warn directly. The warning is the same either way; only *when* it is said moves.+- **The warning names `pipelex migrate` only for a file the command would reach.** The retry replays whatever the loader merged, and a loader pointed at a directory of its own — an embedder's `config_dir=`, or this repository's `tests/pipelex_{run_mode}.toml` — merges files [outside the walk](#the-commands). For those the warning says the file is the caller's to update where it lives, and does not name a command that would then report nothing to do; a load that spans both gets both sentences, each naming its own files. Same rule as [the remedy on a validation error](#every-surface-reports-it-the-same-way-and-none-of-them-says-start-over): *a remedy is named only where it would write*. The walk is `config_manager.existing_config_dirs`, which is also where `config_directories_to_migrate` reads it — one derivation, read from both ends, so a boot cannot promise what the command declines.- **The healthy path is untouched.** The replay runs only on the failure path, so a current configuration never reads a ledger, never re-parses a document, and never even imports the migration engine. (Not "never loads tomlkit": the ordinary configuration read has always imported it. What a healthy boot avoids is the second, DOM-level read.) Replay neutrality is what makes the retry free when it does run.- **One shared helper**, called by each configuration-surface loader — and that helper is also where `[meta] schema_version` is stripped. The strip belongs there and **not** in the generic TOML reader, which also reads `.mthds` files, backend definitions and the kit index, none of which reserve that key.diff --git a/docs/reliability/automatic-retries.md b/docs/reliability/automatic-retries.mdindex 55a2d5417..ab3934d2d 100644--- a/docs/reliability/automatic-retries.md+++ b/docs/reliability/automatic-retries.md@@ -14,7 +14,7 @@ Every inference SDK call retries transient transport failures before giving up.It is controlled by one top-level setting, which you override in your project's `.pipelex/pipelex.toml`:```toml-[cogt]+[inference]transport_max_retries = 2```@@ -32,7 +32,7 @@ When a pipe asks an LLM for a structured object, the model sometimes returns JSOThis is **output shaping, not resilience**. The re-ask happens only on a schema-validation failure — a transport error is *not* re-asked here; it propagates to Tier 1, which is the sole transport-retry layer. The re-ask count is configured separately:```toml-[cogt.llm_config]+[inference.llm]schema_reask_max_attempts = 3 # instructor schema re-ask attempts — distinct from transport_max_retries```@@ -43,7 +43,7 @@ Keep the two settings distinct in your mind: `transport_max_retries` handles a fWhen `PipeBatch` maps a pipe over a large list, it does not spawn every branch at once. Branches run in bounded concurrent chunks, capped by `max_concurrency` (default `8`):```toml-[pipelex.pipeline_execution_config]+[interpreter.pipeline_execution]max_concurrency = 8```diff --git a/docs/reliability/retries-and-resilience.md b/docs/reliability/retries-and-resilience.mdindex edb548507..153acfef0 100644--- a/docs/reliability/retries-and-resilience.md+++ b/docs/reliability/retries-and-resilience.md@@ -54,11 +54,11 @@ This section goes deeper on each piece:| Setting | Location | Default | Controls ||---------|----------|---------|----------|-| `transport_max_retries` | `[cogt]` | `2` | Tier 1 — transport retry attempts per request |-| `schema_reask_max_attempts` | `[cogt.llm_config]` | `3` | `instructor` schema re-ask attempts (structured output) |-| `max_concurrency` | `[pipelex.pipeline_execution_config]` | `8` | `PipeBatch` bounded fan-out (set `"unbounded"` to disable) |+| `transport_max_retries` | `[inference]` | `2` | Tier 1 — transport retry attempts per request |+| `schema_reask_max_attempts` | `[inference.llm]` | `3` | `instructor` schema re-ask attempts (structured output) |+| `max_concurrency` | `[interpreter.pipeline_execution]` | `8` | `PipeBatch` bounded fan-out (set `"unbounded"` to disable) |-Durable execution (Tier 2) is **not** a core configuration toggle. You opt into it by booting the process under an orchestrator plugin — `plugins.boot_orchestrator` (config), `--orchestrator <name>` (CLI), or `Pipelex.make(boot_orchestrator=...)` (Python) — delivered through Pipelex's [durable execution offer](https://pipelex.com/products#durable-execution). See [Durable Execution](durable-execution.md) and [Distributed Execution](../distributed-execution/index.md).+Durable execution (Tier 2) is **not** a core configuration toggle. You opt into it by booting the process under an orchestrator plugin — `--orchestrator <name>` (CLI) or `Pipelex.make(boot_orchestrator=...)` (Python); it is a boot argument, never a `pipelex.toml` setting — delivered through Pipelex's [durable execution offer](https://pipelex.com/products#durable-execution). See [Durable Execution](durable-execution.md) and [Distributed Execution](../distributed-execution/index.md).---@@ -69,4 +69,4 @@ Durable execution (Tier 2) is **not** a core configuration toggle. You opt into- [Durable Execution](durable-execution.md) — when to move to a durable backend, and what it adds- [Distributed Execution](../distributed-execution/index.md) — set up the durable backend (Temporal or Mistral Workflows)- [Error Model](../under-the-hood/error-model.md) — how failures are classified and reported under the hood-- [Cogt Configuration](../configuration/config-technical/cogt-config.md) — the full `[cogt]` reference+- [Inference Configuration](../configuration/config-technical/inference-config.md) — the full `[inference]` referencediff --git a/docs/under-the-hood/error-model.md b/docs/under-the-hood/error-model.mdindex 26c2420f1..745d4f2c4 100644--- a/docs/under-the-hood/error-model.md+++ b/docs/under-the-hood/error-model.md@@ -454,5 +454,5 @@ InferenceErrorCategory.TRANSIENT.is_retryable # True — only TRANSIENT- [Pipe Routing & Execution](./pipe-routing-and-execution.md) — the layer model errors rise through- [Runtime Bridge & Transport](./runtime-bridge-and-transport.md) — the process boundary the error bridge spans (the per-backend error converters live in the host-runtime plugins)-- [Cogt Configuration](../configuration/config-technical/cogt-config.md) — `transport_max_retries` and the Tier 1 retry policy+- [Inference Configuration](../configuration/config-technical/inference-config.md) — `transport_max_retries` and the Tier 1 retry policy- [Agent CLI](../tools/cli/agent-cli.md) — the JSON / markdown error contractdiff --git a/docs/under-the-hood/execution-graph-tracing.md b/docs/under-the-hood/execution-graph-tracing.mdindex 06aa76f13..2dc2ca9c6 100644--- a/docs/under-the-hood/execution-graph-tracing.md+++ b/docs/under-the-hood/execution-graph-tracing.md@@ -280,10 +280,10 @@ with scoped_event_log(InMemoryEventLog()):Semantics:- The override is ContextVar-scoped (mirrors `scoped_pipe_router`), so concurrent runs with separate scopes never cross-contaminate, and the prior value is restored on exit.-- A set override **implies tracing-enabled**: it is honored even when `tracing_config.is_enabled` is `False`, on both the write side and the read side's early-return.+- A set override **implies tracing-enabled**: it is honored even when `runtime.tracing.is_enabled` is `False`, on both the write side and the read side's early-return.- Lifecycle: the read side does not `close()` the scoped instance and the machinery never calls `cleanup()` on it — but the write-side tracer DOES call `close()` on its event log at teardown, before the read side assembles. A scoped event log's `close()` must therefore be idempotent or a no-op (as `InMemoryEventLog`'s is); scoping a backend whose `close()` releases a real resource would break its own assembly read.-This is what lets a graph-producing dry-run trace entirely in memory (no NDJSON file, no DynamoDB round-trip). Both dry-run entrypoints rely on it: `dry_run_pipe_in_process` (`pipelex/pipe_run/dry_run_in_process.py` — the graph arm of protocol `validate` and of the single Temporal validation activity) and `dry_run_pipeline` (`pipelex/pipeline/dry_run_pipeline.py`) itself — these functions exist to produce a graph, so they install their own scoped `InMemoryEventLog` rather than depending on the host having tracing configured (a host with `tracing_config.is_enabled = false`, like pipelex-api's `/validate` in direct mode, still gets its graph). A run that nonetheless finishes without a graph raises the typed `DryRunGraphNotProducedError`.+This is what lets a graph-producing dry-run trace entirely in memory (no NDJSON file, no DynamoDB round-trip). Both dry-run entrypoints rely on it: `dry_run_pipe_in_process` (`pipelex/pipe_run/dry_run_in_process.py` — the graph arm of protocol `validate` and of the single Temporal validation activity) and `dry_run_pipeline` (`pipelex/pipeline/dry_run_pipeline.py`) itself — these functions exist to produce a graph, so they install their own scoped `InMemoryEventLog` rather than depending on the host having tracing configured (a host with `runtime.tracing.is_enabled = false`, like pipelex-api's `/validate` in direct mode, still gets its graph). A run that nonetheless finishes without a graph raises the typed `DryRunGraphNotProducedError`.### TraceContext Propagation@@ -416,16 +416,16 @@ ReactFlow HTML is generated directly from GraphSpec — no intermediate ViewSpec```toml# pipelex.toml (default values)-[pipelex.pipeline_execution_config.graph_config]+[interpreter.pipeline_execution.graph]-[pipelex.pipeline_execution_config.graph_config.data_inclusion]+[interpreter.pipeline_execution.graph.data_inclusion]stuff_json_content = true # Include full serialized datastuff_text_content = true # Include ASCII text representationstuff_html_content = true # Include HTML representationerror_stack_traces = true # Include full stack tracespipe_and_concept_registry = true # Include pipe and concept registries in the GraphSpec-[pipelex.pipeline_execution_config.graph_config.graphs_inclusion]+[interpreter.pipeline_execution.graph.graphs_inclusion]graphspec_json = true # Generate GraphSpec JSONmermaidflow_mmd = true # Generate Mermaid codemermaidflow_html = true # Generate Mermaid HTML@@ -525,7 +525,7 @@ validate_graphspec(graph_spec)| `pipelex/graph/graph_tracer_manager.py` | Singleton manager for tracers || `pipelex/graph/graph_tracer_protocol.py` | Protocol + NoOp implementation || `pipelex/system/trace_context.py` | Serializable tracing context — sits below `graph/` because it rides in every job's metadata |-| `pipelex/system/data_inclusion_config.py` | Data-capture flags carried by the trace context, surfaced in the TOML under `graph_config.data_inclusion` |+| `pipelex/system/data_inclusion_config.py` | Data-capture flags carried by the trace context, surfaced in the TOML under `interpreter.pipeline_execution.graph.data_inclusion` || `pipelex/graph/graph_analysis.py` | Pre-computed graph analysis || `pipelex/graph/graph_factory.py` | Output generation factory || `pipelex/graph/graph_config.py` | Configuration models |diff --git a/docs/under-the-hood/inference-backend-plugins.md b/docs/under-the-hood/inference-backend-plugins.mdindex e64583899..7002ac5e8 100644--- a/docs/under-the-hood/inference-backend-plugins.md+++ b/docs/under-the-hood/inference-backend-plugins.md@@ -192,11 +192,11 @@ The entry point may resolve to a plugin instance or a zero-argument factory. A b### Disabling a discovered plugin-`build_registrar` skips (and logs) any plugin whose `name` appears in the core-owned `plugins.disabled` denylist:+`build_registrar` skips (and logs) any plugin whose `name` appears in the core-owned `runtime.plugins.disabled` denylist:```toml# .pipelex/pipelex.toml-[plugins]+[runtime.plugins]disabled = ["acme"]```@@ -239,7 +239,7 @@ The SPI is a documented, versioned **module/symbol list** gated by `PLUGIN_API_V| a `pipelex.plugins.kernel` plugin registers an interpreter-layer capability | `PluginLayerViolationError` (names the capability and the group to move to) || duplicate `(family, sdk)` | `DuplicateInferenceBackendError` (names both plugins) || duplicate `sdk` model lister | `DuplicateModelListerError` (names both plugins) |-| `name` in `plugins.disabled` but core-unconditional | `CoreUnconditionalPluginDisabledError` |+| `name` in `runtime.plugins.disabled` but core-unconditional | `CoreUnconditionalPluginDisabledError` || entry point raises while loading/registering | `BrokenPluginError` || lookup for an unregistered `(family, sdk)` | `InferenceBackendNotFoundError` ("… Is its plugin installed and enabled?") || optional SDK missing at use | `MissingDependencyError` (package + `pipelex[<extra>]` hint) |@@ -249,8 +249,8 @@ The SPI is a documented, versioned **module/symbol list** gated by `PLUGIN_API_V## Related- [Orchestrator Plugins](orchestrator-plugins.md) — the other per-call seam, riding the same discovery/denylist machinery-- [Storage Provider Plugins](storage-provider-plugins.md) — the config-selected-singleton seam (storage backend by `storage_config.method`)-- [Secrets Provider Plugins](secrets-provider-plugins.md) — the config-selected-singleton seam (secrets backend by `secrets_config.method`)+- [Storage Provider Plugins](storage-provider-plugins.md) — the config-selected-singleton seam (storage backend by `runtime.storage.method`)+- [Secrets Provider Plugins](secrets-provider-plugins.md) — the config-selected-singleton seam (secrets backend by `runtime.secrets.method`)- [Pipe Routing & Execution](pipe-routing-and-execution.md) — where worker construction sits in the run path- [Error Model](error-model.md) — how these errors render and dereference- [Architecture Overview](architecture-overview.md)diff --git a/docs/under-the-hood/orchestrator-plugins.md b/docs/under-the-hood/orchestrator-plugins.mdindex 0dd039264..1889b526c 100644--- a/docs/under-the-hood/orchestrator-plugins.md+++ b/docs/under-the-hood/orchestrator-plugins.md@@ -127,12 +127,12 @@ This is what lets the public `pipelex-api` base be orchestrator-agnostic and sti## Boot-orchestrator plugins: claiming the runtime-Some orchestrators don't just serve a per-call mode — they reconfigure the whole process to run *as* that runtime (a Temporal worker). Such a plugin **claims process-global hub slots**, but only when the core-owned boot gate names it. `plugins.boot_orchestrator == self.name` means "boot this process as a Temporal-default runtime", not "the Temporal plugin is on". The gate is a backend-agnostic name-match — core names no orchestrator, and `register` reads no config file (the rich orchestrator config self-loads inside the thunks):+Some orchestrators don't just serve a per-call mode — they reconfigure the whole process to run *as* that runtime (a Temporal worker). Such a plugin **claims process-global hub slots**, but only when the core-owned boot gate names it. `boot_orchestrator == self.name` means "boot this process as a Temporal-default runtime", not "the Temporal plugin is on". The gate is a backend-agnostic name-match — core names no orchestrator, and `register` reads no config file (the rich orchestrator config self-loads inside the thunks):Not every orchestrator goes this far. A per-call-only plugin — our Mistral Workflows plugin is the minimal example — contributes just its `"mistral-workflows"` orchestrator and claims **no** hub slots: its router is installed per workflow invocation by the workflow body itself, so there is no process-global boot slot to claim and it never participates in the boot gate below. The boot-orchestrator machinery in this section applies only to a plugin that boots the process as its runtime (today, our Temporal plugin).```python-if registrar.config.plugins.boot_orchestrator == self.name:+if registrar.boot_orchestrator == self.name:registrar.claim_content_generator(_make_temporal_content_generator) # a thunk, not an instanceregistrar.claim_task_manager(_setup_temporal_task_manager)registrar.claim_pipe_router(_make_temporal_pipe_router)@@ -147,7 +147,7 @@ Each `claim_*` takes a **thunk** (a zero-arg factory), never a constructed instaThe first four slots swap in the runtime's implementations of core execution services. The fifth, `claim_isolated_execution_probe`, is different in kind: its thunk resolves not a service but an **ambient predicate** (`Callable[[], bool]`) reporting whether the current call runs inside an isolated sub-execution — a Temporal activity — whose side-effecting emissions must not be written into the parent run's replay-deterministic buffer. `ReportingManager` consults it (`hub.is_in_isolated_execution()`) to route an activity-side usage emission to the per-process log instead of the workflow's registered buffer. It exists as a hub slot for the same reason the others do: only a boot-orchestrator plugin whose runtime has a replay/activity split knows how to answer, and core names no such runtime. Unclaimed (any in-process boot), the hub's core default answers "never isolated" — the in-process orchestrator has no such split.-Because the gate is a name-match, `plugins.boot_orchestrator` must name a plugin that actually registered. After discovery, `Pipelex.setup` rejects a `boot_orchestrator` that no registered plugin carries — a typo or a missing plugin (e.g. `--orchestrator temporal` without the Temporal plugin installed) raises `UnknownBootOrchestratorError` instead of silently running in-process: nothing would claim the hub slots, so the process would otherwise fall through to the core defaults and execute on the wrong runtime. The check matches against **plugin names** (the same namespace the gate uses), not the `orchestration_mode` registry — a plugin's name and the token(s) it serves are separate namespaces that *may* differ, even where a shipped plugin keeps them identical (our Temporal plugin is named `temporal` and serves `temporal`). The error names no specific plugin, keeping core decoupled.+Because the gate is a name-match, `boot_orchestrator` must name a plugin that actually registered. After discovery, `Pipelex.setup` rejects a `boot_orchestrator` that no registered plugin carries — a typo or a missing plugin (e.g. `--orchestrator temporal` without the Temporal plugin installed) raises `UnknownBootOrchestratorError` instead of silently running in-process: nothing would claim the hub slots, so the process would otherwise fall through to the core defaults and execute on the wrong runtime. The check matches against **plugin names** (the same namespace the gate uses), not the `orchestration_mode` registry — a plugin's name and the token(s) it serves are separate namespaces that *may* differ, even where a shipped plugin keeps them identical (our Temporal plugin is named `temporal` and serves `temporal`). The error names no specific plugin, keeping core decoupled.### Injection precedence@@ -201,7 +201,7 @@ What an out-of-tree orchestrator imports *is* a contract. The SPI is a documenteOur Temporal plugin — external, closed-source, shipped as its own distribution — is the reference orchestrator plugin. Its `register`:- **always** (regardless of the boot gate): contributes a single `TemporalOrchestrator` registered once under the `"temporal"` token (import-light; `temporalio` is pulled lazily inside `execute`/`start`), the matching `TemporalBundleValidator` under the same token (the worker-dispatched `/validate` arm), and an HTTP error mapper classifying Temporal transport faults. The orchestrator advertises `supports_fire_and_forget = True`; its `execute` awaits completion and reports `make_workflow_id(...)`, its `start` enqueues the workflow and returns a `PipelexPipeDispatchAck` carrying the workflow id;-- **only when `plugins.boot_orchestrator == "temporal"`**: claims the content-generator / task-manager / pipe-router / pipe-run / isolated-execution-probe hub slots with thunks and registers the teardown callback — booting this process as a Temporal-default runtime.+- **only when `boot_orchestrator == "temporal"`**: claims the content-generator / task-manager / pipe-router / pipe-run / isolated-execution-probe hub slots with thunks and registers the teardown callback — booting this process as a Temporal-default runtime.The orchestrator itself 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.@@ -224,4 +224,4 @@ my_runtime = "my_package.my_plugin:MyRuntimePlugin"An interpreter-group plugin is *not* restricted to interpreter-layer capabilities — the cross-check runs one way only. Our own Temporal plugin contributes an orchestrator and an HTTP-error mapper (kernel-tier) from the same `register`, which is why the rule is asymmetric.-Installing the distribution makes the mode available; uninstalling removes it. No core change, no central registration list. A discovered plugin can be quarantined without uninstalling via the `plugins.disabled` denylist (see [Inference Backend Plugins](inference-backend-plugins.md) for the shared discovery/denylist machinery).+Installing the distribution makes the mode available; uninstalling removes it. No core change, no central registration list. A discovered plugin can be quarantined without uninstalling via the `runtime.plugins.disabled` denylist (see [Inference Backend Plugins](inference-backend-plugins.md) for the shared discovery/denylist machinery).diff --git a/docs/under-the-hood/pipe-routing-and-execution.md b/docs/under-the-hood/pipe-routing-and-execution.mdindex 91a16e7a8..9f0697119 100644--- a/docs/under-the-hood/pipe-routing-and-execution.md+++ b/docs/under-the-hood/pipe-routing-and-execution.md@@ -112,11 +112,11 @@ PipeRouter.run(pipe_job)### Router Selection-The router is selected during `Pipelex.setup()` by resolving the hub's `PIPE_ROUTER` slot. A boot-orchestrator plugin (e.g. our closed Temporal plugin) claims that slot in its `register()` when `plugins.boot_orchestrator` names it; otherwise the default in-process router is used:+The router is selected during `Pipelex.setup()` by resolving the hub's `PIPE_ROUTER` slot. A boot-orchestrator plugin (e.g. our closed Temporal plugin) claims that slot in its `register()` when `boot_orchestrator` names it; otherwise the default in-process router is used:```python# A boot-orchestrator plugin swaps in its distributed router when-# plugins.boot_orchestrator == its own name; otherwise this default runs.+# boot_orchestrator == its own name; otherwise this default runs.effective_pipe_router = self._resolve_hub_slot(slot=HubSlot.PIPE_ROUTER,default=lambda: PipeRouter(observer=multi_observer), # Direct, in-processdiff --git a/docs/under-the-hood/reasoning-controls.md b/docs/under-the-hood/reasoning-controls.mdindex 9a02104be..3bce89e39 100644--- a/docs/under-the-hood/reasoning-controls.md+++ b/docs/under-the-hood/reasoning-controls.md@@ -169,10 +169,10 @@ Each provider has an `effort_to_level_map` configured in its provider subconfig### OpenAI (Completions & Responses)-OpenAI models use `thinking_mode = "manual"` and map `ReasoningEffort` to the `reasoning_effort` parameter via `openai_config.effort_to_level_map`:+OpenAI models use `thinking_mode = "manual"` and map `ReasoningEffort` to the `reasoning_effort` parameter via `inference.llm.openai.effort_to_level_map`:```toml-[cogt.llm_config.openai_config.effort_to_level_map]+[inference.llm.openai.effort_to_level_map]none = "none"minimal = "minimal"low = "low"@@ -201,10 +201,10 @@ When reasoning is active, `temperature` is omitted from the SDK call (OpenAI req### Anthropic-Anthropic supports both `manual` and `adaptive` thinking modes. The effort mapping is configured via `anthropic_config.effort_to_level_map`:+Anthropic supports both `manual` and `adaptive` thinking modes. The effort mapping is configured via `inference.llm.anthropic.effort_to_level_map`:```toml-[cogt.llm_config.anthropic_config.effort_to_level_map]+[inference.llm.anthropic.effort_to_level_map]none = "disabled"minimal = "low"low = "low"@@ -224,7 +224,7 @@ max = "max"| `XHIGH` | `"xhigh"` || `MAX` | `"max"` |-Both modes first check `anthropic_config.effort_to_level_map` to gate reasoning. If the map returns `"disabled"` (e.g., for `NONE` effort), thinking is disabled entirely — no `thinking` parameter is sent to the SDK.+Both modes first check `inference.llm.anthropic.effort_to_level_map` to gate reasoning. If the map returns `"disabled"` (e.g., for `NONE` effort), thinking is disabled entirely — no `thinking` parameter is sent to the SDK.**ADAPTIVE mode** uses `{"type": "adaptive"}` with an `OutputConfigParam(effort=...)` where the effort value comes from the level map.@@ -239,10 +239,10 @@ When thinking is active, `temperature` is suppressed (Anthropic requires `temper### Google Gemini-Google models use either `thinking_mode = "manual"` (Gemini 2.5 series) or `thinking_mode = "adaptive"` (Gemini 3 series). Both modes use `google_config.effort_to_level_map` as a gate:+Google models use either `thinking_mode = "manual"` (Gemini 2.5 series) or `thinking_mode = "adaptive"` (Gemini 3 series). Both modes use `inference.llm.google.effort_to_level_map` as a gate:```toml-[cogt.llm_config.google_config.effort_to_level_map]+[inference.llm.google.effort_to_level_map]none = "disabled"minimal = "minimal"low = "low"@@ -286,10 +286,10 @@ Temperature is passed normally to the Google API regardless of reasoning mode.### Mistral-Mistral models use `thinking_mode = "manual"`. The effort mapping is configured via `mistral_config.effort_to_level_map`:+Mistral models use `thinking_mode = "manual"`. The effort mapping is configured via `inference.llm.mistral.effort_to_level_map`:```toml-[cogt.llm_config.mistral_config.effort_to_level_map]+[inference.llm.mistral.effort_to_level_map]none = "disabled"minimal = "reasoning"low = "reasoning"@@ -341,7 +341,7 @@ The level is resolved at runtime via `<ProviderConfig>.get_reasoning_level()` inFor providers that use token budgets (Anthropic MANUAL, Google MANUAL), `ReasoningEffort` is resolved to a token count via the `effort_to_budget_maps` in `pipelex.toml`:```toml-[cogt.llm_config.effort_to_budget_maps.anthropic]+[inference.llm.effort_to_budget_maps.anthropic]none = 0minimal = 512low = 1024@@ -350,7 +350,7 @@ high = 16384xhigh = 32768max = 65536-[cogt.llm_config.effort_to_budget_maps.gemini]+[inference.llm.effort_to_budget_maps.gemini]none = 0minimal = 512low = 1024diff --git a/docs/under-the-hood/secrets-provider-plugins.md b/docs/under-the-hood/secrets-provider-plugins.mdindex 1b997cf23..56711d010 100644--- a/docs/under-the-hood/secrets-provider-plugins.md+++ b/docs/under-the-hood/secrets-provider-plugins.md@@ -5,7 +5,7 @@ description: "How Pipelex selects a secrets backend by config, the keyed-registr# Secrets Provider Plugins-Every credential Pipelex reads — an API key, a service-account file path, a signing secret — is resolved through a single **secrets provider** set on the hub at boot. Which provider that is comes entirely from data: one config field, `secrets_config.method`, names a backend, and a **secrets plugin** is what teaches Pipelex how to build the provider for that method.+Every credential Pipelex reads — an API key, a service-account file path, a signing secret — is resolved through a single **secrets provider** set on the hub at boot. Which provider that is comes entirely from data: one config field, `runtime.secrets.method`, names a backend, and a **secrets plugin** is what teaches Pipelex how to build the provider for that method.Core names no secrets backend by import or by string. The built-in `env` provider (reads secrets from environment variables) is a plugin too — the always-on `SecretsPlugin` — riding the exact same seam an out-of-tree `pipelex-secrets-<backend>` package (Vault, AWS Secrets Manager, GCP Secret Manager, …) would. This page documents that seam, the factory contract a plugin registers, and how to write one.@@ -17,9 +17,9 @@ This is the second application of the mechanism the [storage provider](storage-pThe [inference-backend](inference-backend-plugins.md) and [orchestrator](orchestrator-plugins.md) registries are selected **per call** — a model's `sdk`, a request's `orchestration_mode`. Secrets is not: it is a **process-global singleton selected by its own config key**, independent of the orchestrator. So it rides the same **keyed registry + config-selected singleton** mechanism storage uses:-> Plugins register N provider factories into a registry keyed by an open `method` token. At boot, core reads `secrets_config.method`, looks that token up in the registry, and calls the factory to produce the one provider set on the hub.+> Plugins register N provider factories into a registry keyed by an open `method` token. At boot, core reads `runtime.secrets.method`, looks that token up in the registry, and calls the factory to produce the one provider set on the hub.-This is deliberately **not** a hub slot (those are orchestrator-coupled, claimed only when `boot_orchestrator == plugin.name`). Secrets selection has nothing to do with the orchestrator, so it gets its own registry and its own config key — the sibling of `storage_config.method`.+This is deliberately **not** a hub slot (those are orchestrator-coupled, claimed only when `boot_orchestrator == plugin.name`). Secrets selection has nothing to do with the orchestrator, so it gets its own registry and its own config key — the sibling of `runtime.storage.method`.---@@ -34,11 +34,11 @@ boot (Pipelex.setup)└─ plugin.register(registrar) # side-effect-free└─ registrar.add_secrets_provider(method=…, factory=…)└─ SecretsProviderRegistry(registrar.secrets_providers) # stored on the hub- └─ secrets_provider = registry.get_required(method=secrets_config.method)(secrets_config)+ └─ secrets_provider = registry.get_required(method=runtime.secrets.method)(runtime.secrets)└─ set_secrets_provider(secrets_provider) # the one provider every consumer reads```-There is no `match secrets_config.method:` anywhere in boot — the token set is open, so validation *is* the registry lookup. Adding a backend means registering a factory for its token; nothing in core changes. Every downstream consumer (`get_secret(...)`, telemetry credentials, the storage `gcp` arm, search/extract workers) keeps calling `get_secrets_provider()` and is unaffected by which method was selected.+There is no `match runtime.secrets.method:` anywhere in boot — the token set is open, so validation *is* the registry lookup. Adding a backend means registering a factory for its token; nothing in core changes. Every downstream consumer (`get_secret(...)`, telemetry credentials, the storage `gcp` arm, search/extract workers) keeps calling `get_secrets_provider()` and is unaffected by which method was selected.### Where in boot secrets is resolved@@ -52,7 +52,7 @@ Secrets is resolved **early** — right after plugin discovery, after the gatewa`Pipelex.setup` resolves the secrets provider in this order:1. an explicit `setup(secrets_provider=...)` parameter (test/host injection) — always wins;-2. the config-selected registry factory (`get_required(method=secrets_config.method)(config)`).+2. the config-selected registry factory (`get_required(method=runtime.secrets.method)(config)`).There is no separate core default: the built-in `SecretsPlugin` *is* the default supplier of the `env` method, so an ordinary boot always resolves through step 2.@@ -111,11 +111,11 @@ def _make_env_secrets_provider(config: SecretsProviderConfig) -> SecretsProvider## Selecting a method by config-`secrets_config.method` is an **open `str` token** (Decision S1), not a closed enum. The built-in uses `"env"`; an external `pipelex-secrets-<backend>` plugin registers its own (e.g. `"vault"`). A config naming an external method **parses fine** — the token is stored verbatim and its installability is validated later, at registry lookup:+`runtime.secrets.method` is an **open `str` token** (Decision S1), not a closed enum. The built-in uses `"env"`; an external `pipelex-secrets-<backend>` plugin registers its own (e.g. `"vault"`). A config naming an external method **parses fine** — the token is stored verbatim and its installability is validated later, at registry lookup:```toml# .pipelex/pipelex.toml-[pipelex.secrets_config]+[runtime.secrets]method = "vault" # an out-of-tree provider — selected iff its plugin is installed```@@ -130,10 +130,10 @@ Whether that token names an *installed* provider is validated at **registry look| Condition | Error ||-----------|-------|-| `secrets_config.method` names no registered provider | `UnknownSecretsMethodError` (lists the registered methods) |+| `runtime.secrets.method` names no registered provider | `UnknownSecretsMethodError` (lists the registered methods) || published under the retired `pipelex.plugins` group | `RetiredPluginEntryPointGroupError` (names the plugins and the group each should move to) || two plugins register the same `method` | `DuplicateSecretsProviderError` (names both plugins) |-| `name` (`"secrets"`) in `plugins.disabled` | `CoreUnconditionalPluginDisabledError` |+| `name` (`"secrets"`) in `runtime.plugins.disabled` | `CoreUnconditionalPluginDisabledError` || entry point raises while loading/registering | `BrokenPluginError` || optional SDK missing at use | `MissingDependencyError` (package + `pipelex[<extra>]` hint) |@@ -155,7 +155,7 @@ A third-party secrets plugin is a distribution that:vault_secrets = "pipelex_secrets_vault.plugin:VaultSecretsPlugin"```-Installing the distribution makes the method selectable (`secrets_config.method = "vault"`); uninstalling removes it. No core change, no central registration list — *presence* is the source of truth. A discovered plugin can be quarantined without uninstalling via the `plugins.disabled` denylist (matched against the entry-point name *before* load, so a broken install can still be disabled to recover startup — see [Inference Backend Plugins](inference-backend-plugins.md) for the shared discovery/denylist machinery).+Installing the distribution makes the method selectable (`runtime.secrets.method = "vault"`); uninstalling removes it. No core change, no central registration list — *presence* is the source of truth. A discovered plugin can be quarantined without uninstalling via the `runtime.plugins.disabled` denylist (matched against the entry-point name *before* load, so a broken install can still be disabled to recover startup — see [Inference Backend Plugins](inference-backend-plugins.md) for the shared discovery/denylist machinery).Use `pipelex plugins list` to see every discovered plugin, the entry-point group it was found under, what each contributed, and its denylist state. The **Group** column is the first thing to read when a plugin is missing: a built-in shows `—`, and an external plugin that resolved to the wrong layer shows it there.diff --git a/docs/under-the-hood/storage-provider-plugins.md b/docs/under-the-hood/storage-provider-plugins.mdindex 486be5aa0..4f48d75d2 100644--- a/docs/under-the-hood/storage-provider-plugins.md+++ b/docs/under-the-hood/storage-provider-plugins.md@@ -5,7 +5,7 @@ description: "How Pipelex selects a storage backend by config, the keyed-registr# Storage Provider Plugins-Every asset Pipelex persists — a generated image, an uploaded document, a payload blob — is written through a single **storage provider** set on the hub at boot. Which provider that is comes entirely from data: one config field, `storage_config.method`, names a backend, and a **storage plugin** is what teaches Pipelex how to build the provider for that method.+Every asset Pipelex persists — a generated image, an uploaded document, a payload blob — is written through a single **storage provider** set on the hub at boot. Which provider that is comes entirely from data: one config field, `runtime.storage.method`, names a backend, and a **storage plugin** is what teaches Pipelex how to build the provider for that method.Core names no storage backend by import or by string. The built-in providers (`local`, `in_memory`, `s3`, `gcp`) are a plugin too — the always-on `StoragePlugin` — riding the exact same seam an out-of-tree `pipelex-storage-<backend>` package would. This page documents that seam, the factory contract a plugin registers, and how to write one.@@ -15,9 +15,9 @@ Core names no storage backend by import or by string. The built-in providers (`lThe [inference-backend](inference-backend-plugins.md) and [orchestrator](orchestrator-plugins.md) registries are selected **per call** — a model's `sdk`, a request's `orchestration_mode`. Storage is not: it is a **process-global singleton selected by its own config key**, independent of the orchestrator. So it rides a net-new mechanism the track calls a **keyed registry + config-selected singleton**:-> Plugins register N provider factories into a registry keyed by an open `method` token. At boot, core reads `storage_config.method`, looks that token up in the registry, and calls the factory to produce the one provider set on the hub.+> Plugins register N provider factories into a registry keyed by an open `method` token. At boot, core reads `runtime.storage.method`, looks that token up in the registry, and calls the factory to produce the one provider set on the hub.-This is deliberately **not** a hub slot (those are orchestrator-coupled, claimed only when `boot_orchestrator == plugin.name`). Storage selection has nothing to do with the orchestrator, so it gets its own registry and its own config key. The same mechanism also backs the [secrets provider](secrets-provider-plugins.md) seam (`secrets_config.method`).+This is deliberately **not** a hub slot (those are orchestrator-coupled, claimed only when `boot_orchestrator == plugin.name`). Storage selection has nothing to do with the orchestrator, so it gets its own registry and its own config key. The same mechanism also backs the [secrets provider](secrets-provider-plugins.md) seam (`runtime.secrets.method`).---@@ -32,11 +32,11 @@ boot (Pipelex.setup)└─ plugin.register(registrar) # side-effect-free└─ registrar.add_storage_provider(method=…, factory=…)└─ StorageProviderRegistry(registrar.storage_providers) # stored on the hub- └─ storage_provider = registry.get_required(method=storage_config.method)(storage_config)+ └─ storage_provider = registry.get_required(method=runtime.storage.method)(runtime.storage)└─ set_storage_provider(storage_provider) # the one provider every consumer reads```-There is no `match storage_config.method:` anywhere in boot — the token set is open, so validation *is* the registry lookup. Adding a backend means registering a factory for its token; nothing in core changes. Every downstream consumer (input normalizer, content generator, PDF/image utilities, delivery executor) keeps calling `get_storage_provider()` and is unaffected by which method was selected.+There is no `match runtime.storage.method:` anywhere in boot — the token set is open, so validation *is* the registry lookup. Adding a backend means registering a factory for its token; nothing in core changes. Every downstream consumer (input normalizer, content generator, PDF/image utilities, delivery executor) keeps calling `get_storage_provider()` and is unaffected by which method was selected.The provider is resolved **after** the secrets provider is on the hub, so a factory may perform a hub secrets read at its apply-point (the `gcp` factory does — see below).@@ -45,7 +45,7 @@ The provider is resolved **after** the secrets provider is on the hub, so a fact`Pipelex.setup` resolves the storage provider in this order:1. an explicit `setup(storage_provider=...)` parameter (test/host injection) — always wins;-2. the config-selected registry factory (`get_required(method=storage_config.method)(config)`).+2. the config-selected registry factory (`get_required(method=runtime.storage.method)(config)`).There is no separate core default: the built-in `StoragePlugin` *is* the default supplier of every method, so an ordinary boot always resolves through step 2.@@ -113,11 +113,11 @@ def _make_gcp_storage_provider(config: StorageProviderConfig) -> StorageProvider## Selecting a method by config-`storage_config.method` is an **open `str` token** (Decision D1), not a closed enum. The built-ins use the `StorageMethod` values; an external `pipelex-storage-<backend>` plugin registers its own (e.g. `"azure"`). A config naming an external method **parses fine** — the per-method sub-config validator requires a matching sub-config only for the four built-in tokens and lets any other token through:+`runtime.storage.method` is an **open `str` token** (Decision D1), not a closed enum. The built-ins use the `StorageMethod` values; an external `pipelex-storage-<backend>` plugin registers its own (e.g. `"azure"`). A config naming an external method **parses fine** — the per-method sub-config validator requires a matching sub-config only for the four built-in tokens and lets any other token through:```toml# .pipelex/pipelex.toml-[pipelex.storage_config]+[runtime.storage]method = "azure" # an out-of-tree provider — no built-in sub-config required```@@ -132,10 +132,10 @@ Whether that token names an *installed* provider is validated at **registry look| Condition | Error ||-----------|-------|-| `storage_config.method` names no registered provider | `UnknownStorageMethodError` (lists the registered methods) |+| `runtime.storage.method` names no registered provider | `UnknownStorageMethodError` (lists the registered methods) || published under the retired `pipelex.plugins` group | `RetiredPluginEntryPointGroupError` (names the plugins and the group each should move to) || two plugins register the same `method` | `DuplicateStorageProviderError` (names both plugins) |-| `name` (`"storage"`) in `plugins.disabled` | `CoreUnconditionalPluginDisabledError` |+| `name` (`"storage"`) in `runtime.plugins.disabled` | `CoreUnconditionalPluginDisabledError` || entry point raises while loading/registering | `BrokenPluginError` || optional SDK missing at use | `MissingDependencyError` (package + `pipelex[<extra>]` hint) |@@ -157,7 +157,7 @@ A third-party storage plugin is a distribution that:azure_storage = "pipelex_storage_azure.plugin:AzureStoragePlugin"```-Installing the distribution makes the method selectable (`storage_config.method = "azure"`); uninstalling removes it. No core change, no central registration list — *presence* is the source of truth. A discovered plugin can be quarantined without uninstalling via the `plugins.disabled` denylist (matched against the entry-point name *before* load, so a broken install can still be disabled to recover startup — see [Inference Backend Plugins](inference-backend-plugins.md) for the shared discovery/denylist machinery).+Installing the distribution makes the method selectable (`runtime.storage.method = "azure"`); uninstalling removes it. No core change, no central registration list — *presence* is the source of truth. A discovered plugin can be quarantined without uninstalling via the `runtime.plugins.disabled` denylist (matched against the entry-point name *before* load, so a broken install can still be disabled to recover startup — see [Inference Backend Plugins](inference-backend-plugins.md) for the shared discovery/denylist machinery).Use `pipelex plugins list` to see every discovered plugin, the entry-point group it was found under, what each contributed, and its denylist state. The **Group** column is the first thing to read when a plugin is missing: a built-in shows `—`, and an external plugin that resolved to the wrong layer shows it there.diff --git a/mkdocs.yml b/mkdocs.ymlindex 096152560..2b8f62486 100644--- a/mkdocs.yml+++ b/mkdocs.yml@@ -157,7 +157,9 @@ plugins:'home/7-configuration/config-practical/reporting-config.md': 'configuration/config-practical/reporting-config.md''home/7-configuration/config-practical/telemetry-config.md': 'configuration/config-practical/telemetry-config.md''home/7-configuration/config-technical/aws-config.md': 'configuration/config-technical/aws-config.md'- 'home/7-configuration/config-technical/cogt-config.md': 'configuration/config-technical/cogt-config.md'+ 'home/7-configuration/config-technical/cogt-config.md': 'configuration/config-technical/inference-config.md'+ # Renamed by the configuration reshape: `[cogt]` became `[inference]`, so the page did too.+ 'configuration/config-technical/cogt-config.md': 'configuration/config-technical/inference-config.md''home/7-configuration/config-technical/inference-backend-config.md': 'configuration/config-technical/inference-backend-config.md''home/7-configuration/config-technical/library-config.md': 'configuration/config-technical/library-config.md''home/7-configuration/index.md': 'configuration/index.md'@@ -293,7 +295,7 @@ plugins:- configuration/config-practical/reporting-config.md: "Reporting Configuration"- configuration/config-practical/telemetry-config.md: "Telemetry Configuration"- configuration/config-technical/aws-config.md: "AWS Configuration"- - configuration/config-technical/cogt-config.md: "Cogt Configuration"+ - configuration/config-technical/inference-config.md: "Inference Configuration"- configuration/config-technical/inference-backend-config.md: "LLM Providers & Models Configuration"- configuration/config-technical/library-config.md: "Library Configuration"- tools/plxt.md: "plxt (Formatter & Linter)"@@ -541,7 +543,7 @@ nav:- Telemetry: configuration/config-practical/telemetry-config.md- Technical Configuration:- AWS: configuration/config-technical/aws-config.md- - Cogt: configuration/config-technical/cogt-config.md+ - Inference: configuration/config-technical/inference-config.md- LLM Providers & Models: configuration/config-technical/inference-backend-config.md- Library: configuration/config-technical/library-config.md- Advanced:diff --git a/pipelex/cli/agent_cli/commands/agent_cli_factory.py b/pipelex/cli/agent_cli/commands/agent_cli_factory.pyindex caba5ab95..6529ed4e6 100644--- a/pipelex/cli/agent_cli/commands/agent_cli_factory.py+++ b/pipelex/cli/agent_cli/commands/agent_cli_factory.py@@ -126,9 +126,9 @@ def silence_logging_for_agent_cli() -> None:# without wiping out third-party package levels. Frozen so callers can't mutate it.AGENT_CLI_CONFIG_OVERRIDES: Mapping[str, Any] = MappingProxyType({- "pipelex": MappingProxyType(+ "runtime": MappingProxyType({- "log_config": AGENT_CLI_STDERR_LOG_FIELDS,+ "log": AGENT_CLI_STDERR_LOG_FIELDS,},),}diff --git a/pipelex/cli/agent_cli/commands/run/_run_core.py b/pipelex/cli/agent_cli/commands/run/_run_core.pyindex cf54e9147..71847c81c 100644--- a/pipelex/cli/agent_cli/commands/run/_run_core.py+++ b/pipelex/cli/agent_cli/commands/run/_run_core.py@@ -59,7 +59,7 @@ async def run_pipeline_core("""pipe_run_mode = PipeRunMode.DRY if dry_run else None- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=graph,generate_usage=costs,mock_inputs=mock_inputs or None,@@ -141,7 +141,7 @@ async def run_pipeline_core(# Generate and save graph visualizations if requestedif graph and pipe_output.graph_spec:- graph_config = execution_config.graph_config+ graph_config = execution_config.graph# Enable ReactFlow HTML output and data inclusion for the renderrender_graph_config = graph_config.model_copy(update={diff --git a/pipelex/cli/commands/doctor_cmd.py b/pipelex/cli/commands/doctor_cmd.pyindex 0802df014..fec9beb92 100644--- a/pipelex/cli/commands/doctor_cmd.py+++ b/pipelex/cli/commands/doctor_cmd.py@@ -1043,7 +1043,7 @@ def setup_doctor_runtime(*, log_config_overrides: Mapping[str, Any] | None = Nonconfig_dirs=[config_dir] if config_dir is not None else None,)- log_config = get_config().pipelex.log_config+ log_config = get_config().runtime.logif log_config_overrides is not None:merged = log_config.model_dump()deep_update(merged, updates=log_config_overrides)diff --git a/pipelex/cli/commands/fix/_diff_sandbox.py b/pipelex/cli/commands/fix/_diff_sandbox.pyindex 2113f7e7f..5ce264f5b 100644--- a/pipelex/cli/commands/fix/_diff_sandbox.py+++ b/pipelex/cli/commands/fix/_diff_sandbox.py@@ -32,7 +32,7 @@ def _excluded_copy_entries( # kw-only: ignore - shutil.copytree invokes ignorepreserves them as links instead of copying data from outside the requested root."""excluded_entries: set[str] = set()- excluded_dirs = get_config().pipelex.scan_config.excluded_dirs+ excluded_dirs = get_config().interpreter.scan.excluded_dirscurrent_dir = Path(directory)for name in names:candidate = current_dir / namediff --git a/pipelex/cli/commands/graph_cmd.py b/pipelex/cli/commands/graph_cmd.pyindex 7433b3ca8..aa3649ca4 100644--- a/pipelex/cli/commands/graph_cmd.py+++ b/pipelex/cli/commands/graph_cmd.py@@ -67,7 +67,7 @@ def _do_graph_render(include_mermaidflow = mermaidflow or (not mermaidflow and not reactflow)include_reactflow = reactflow or (not mermaidflow and not reactflow)- base_graph_config = get_config().pipelex.pipeline_execution_config.graph_config+ base_graph_config = get_config().interpreter.pipeline_execution.graphflow_direction = direction or FlowchartDirection.TOP_DOWNsaved_files = asyncio.run(diff --git a/pipelex/cli/commands/plugins_cmd.py b/pipelex/cli/commands/plugins_cmd.pyindex 190a58e16..9657b713c 100644--- a/pipelex/cli/commands/plugins_cmd.py+++ b/pipelex/cli/commands/plugins_cmd.py@@ -17,12 +17,15 @@ def plugins_list_command() -> None:Runs the pure ``build_registrar`` against the loaded config — the samediscovery the runtime uses at boot — so the listing reflects exactly what- would be wired in (and what the ``plugins.disabled`` denylist turns off).+ would be wired in (and what the ``runtime.plugins.disabled`` denylist turns off).++ No boot orchestrator is named: this is a listing, not a boot, so nothing claims a hub slot."""console = get_console()config = config_manager.load_config_validated(config_cls=PipelexConfig)registrar = build_registrar(config=config,+ boot_orchestrator=None,builtin_plugins=BUILTIN_PLUGINS,core_unconditional_plugin_names=CORE_UNCONDITIONAL_PLUGIN_NAMES,entry_point_groups=ENTRY_POINT_GROUPS,diff --git a/pipelex/cli/commands/run/_run_core.py b/pipelex/cli/commands/run/_run_core.pyindex bde638fe3..71434e5eb 100644--- a/pipelex/cli/commands/run/_run_core.py+++ b/pipelex/cli/commands/run/_run_core.py@@ -187,7 +187,7 @@ async def _execute_run(pipe_run_mode = PipeRunMode.DRY if dry_run else None# Build effective execution config with CLI overrides- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=graph,generate_usage=costs,force_include_full_data=graph_full_data,@@ -249,7 +249,7 @@ async def _execute_run(graph_outputs = await generate_graph_outputs(graph_spec=graph_spec,- graph_config=execution_config.graph_config,+ graph_config=execution_config.graph,pipe_code=pipe_code,)diff --git a/pipelex/cli/dev_cli/commands/check_rules_sync_cmd.py b/pipelex/cli/dev_cli/commands/check_rules_sync_cmd.pyindex a1f55adf7..0df310660 100644--- a/pipelex/cli/dev_cli/commands/check_rules_sync_cmd.py+++ b/pipelex/cli/dev_cli/commands/check_rules_sync_cmd.py@@ -30,7 +30,7 @@ def _get_preferred_targets_from_toml() -> list[AgentTarget]:config = load_toml_from_path(str(pipelex_toml))try:- raw_targets = config["pipelex"]["kit_config"]["preferred_agent_targets"]+ raw_targets = config["kit"]["preferred_agent_targets"]parsed_targets = [AgentTarget(item) for item in raw_targets]except (KeyError, ValueError, TypeError):return _DEFAULT_TARGETSdiff --git a/pipelex/cli/dev_cli/commands/kit_cmd.py b/pipelex/cli/dev_cli/commands/kit_cmd.pyindex ddab08970..7f06b21d4 100644--- a/pipelex/cli/dev_cli/commands/kit_cmd.py+++ b/pipelex/cli/dev_cli/commands/kit_cmd.py@@ -41,7 +41,7 @@ def _sync_agent_rules(agent_set = agent_set or loaded_kit_index.agent_rules.default_setconfig = get_config()- preferred_targets: list[AgentTarget] = list(config.pipelex.kit_config.preferred_agent_targets)+ preferred_targets: list[AgentTarget] = list(config.kit.preferred_agent_targets)if targets_filter is not None:unknown = [target for target in targets_filter if target not in preferred_targets]diff --git a/pipelex/cogt/config_cogt.py b/pipelex/cogt/config_cogt.pyindex ee1ee2d0c..02f71cb4a 100644--- a/pipelex/cogt/config_cogt.py+++ b/pipelex/cogt/config_cogt.py@@ -1,5 +1,6 @@from pydantic import Field, field_validator+from pipelex.base_exceptions import PipelexConfigErrorfrom 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 ReasoningEffort@@ -10,17 +11,51 @@ from pipelex.providers.mistral.mistral_config import MistralConfigfrom pipelex.providers.openai.openai_config import OpenAIConfigfrom pipelex.system.configuration.config_model import ConfigModelfrom pipelex.system.exceptions import ConfigValidationError+from pipelex.tools.templating.templating_style import TemplatingStyleclass ExtractConfig(ConfigModel):default_page_views_dpi: int+class TemplatingConfig(ConfigModel):+ """How a pipe's inputs are rendered into its prompt, by default.++ Under ``inference`` because its one reader is the kernel's prompt-rendering seam+ (``pipelex/kernel/templating_style_ops.py``).+ """++ default_templating_style: TemplatingStyle+++class DryRunConfig(ConfigModel):+ """The shape of the mock outputs a dry run substitutes for real inference.++ Four of its five fields configure mock inference outputs, which is why it sits under+ ``inference``; ``allowed_to_fail_pipes`` is read by the interpreter, a downward read+ the layer rule permits.+ """++ text_gen_truncate_length: int+ nb_list_items: int+ nb_extract_pages: int+ image_urls: list[str]+ allowed_to_fail_pipes: list[str] = Field(default_factory=list)++ @field_validator("image_urls", mode="before")+ @classmethod+ def validate_image_urls(cls, value: list[str]) -> list[str]:+ if not value:+ msg = "inference.dry_run.image_urls must be a non-empty list"+ raise PipelexConfigError(msg)+ return value++QualityToStepsMap = dict[str, int]class ImgGenConfig(ConfigModel):- img_gen_job_config: ImgGenJobConfig+ img_gen_job: ImgGenJobConfigimg_gen_param_defaults: ImgGenJobParamsDefaultsquality_to_steps_maps: dict[str, QualityToStepsMap]@@ -70,13 +105,13 @@ EffortToBudgetMap = dict[str, int]class LLMConfig(ConfigModel):- instructor_config: InstructorConfig- openai_config: OpenAIConfig- anthropic_config: AnthropicConfig- google_config: GoogleConfig- mistral_config: MistralConfig+ instructor: InstructorConfig+ openai: OpenAIConfig+ anthropic: AnthropicConfig+ google: GoogleConfig+ mistral: MistralConfig# instructor's schema re-ask budget: the total number of attempts (initial + re-asks) allowed- # when a structured-output call fails schema validation. Distinct from cogt.transport_max_retries,+ # when a structured-output call fails schema validation. Distinct from inference.transport_max_retries,# which is the transport-level retry count, measured as retries beyond the initial attempt.schema_reask_max_attempts: int = Field(ge=1, le=10)is_structure_prompt_enabled: bool@@ -130,15 +165,17 @@ class GatewayTestConfig(ConfigModel):config_id_substitutions: dict[str, str]-class Cogt(ConfigModel):+class InferenceConfig(ConfigModel):# Tier 1 transport retry: the number of times an inference SDK client retries a transient# transport failure (connection error, 408/409/429/5xx, honoring Retry-After) on top of the# initial attempt. Wired explicitly into every SDK client factory so the retry posture is a# deliberate, uniform policy rather than a silently-inherited SDK default. Distinct from- # llm_config.schema_reask_max_attempts, which is instructor's schema re-ask count — a different concern.+ # llm.schema_reask_max_attempts, which is instructor's schema re-ask count — a different concern.transport_max_retries: int = Field(ge=0, le=10)- model_deck_config: ModelDeckConfig- llm_config: LLMConfig- img_gen_config: ImgGenConfig- extract_config: ExtractConfig- gateway_test_config: GatewayTestConfig+ model_deck: ModelDeckConfig+ llm: LLMConfig+ img_gen: ImgGenConfig+ extract: ExtractConfig+ gateway_test: GatewayTestConfig+ templating: TemplatingConfig+ dry_run: DryRunConfigdiff --git a/pipelex/cogt/content_generation/assignment_models.py b/pipelex/cogt/content_generation/assignment_models.pyindex 899d1c201..40ca1a8f2 100644--- a/pipelex/cogt/content_generation/assignment_models.py+++ b/pipelex/cogt/content_generation/assignment_models.py@@ -73,7 +73,7 @@ class ObjectAssignment(BaseModel):object_class_schema: dict[str, Any]llm_assignment_for_object: LLMAssignment# Fixed list size for object-list generation (None = leaf mock falls back to- # `dry_run_config.nb_list_items`). Carried on the assignment so the leaf mock+ # `inference.dry_run.nb_list_items`). Carried on the assignment so the leaf mock# preserves fixed-size list lengths on any backend (eng review D11). ge=0: a negative# count must fail loud at construction, not silently mock an empty list.nb_items: int | None = Field(default=None, ge=0)diff --git a/pipelex/cogt/content_generation/content_generator.py b/pipelex/cogt/content_generation/content_generator.pyindex 39f27c9ad..eada6e155 100644--- a/pipelex/cogt/content_generation/content_generator.py+++ b/pipelex/cogt/content_generation/content_generator.py@@ -141,14 +141,14 @@ class ContentGenerator(ContentGeneratorProtocol):img_gen_job_params: ImgGenJobParams | None = None,img_gen_job_config: ImgGenJobConfig | None = None,) -> ImageContent:- img_gen_config = get_config().cogt.img_gen_config+ img_gen_config = get_config().inference.img_genimg_gen_assignment = ImgGenAssignment(job_metadata=job_metadata,cogt_run_params=cogt_run_params,img_gen_handle=img_gen_handle,img_gen_prompt=img_gen_prompt,img_gen_job_params=img_gen_job_params or img_gen_config.make_default_img_gen_job_params(),- img_gen_job_config=img_gen_job_config or img_gen_config.img_gen_job_config,+ img_gen_job_config=img_gen_job_config or img_gen_config.img_gen_job,nb_images=1,)image_content = await img_gen_single_image_and_store(@@ -171,14 +171,14 @@ class ContentGenerator(ContentGeneratorProtocol):img_gen_job_params: ImgGenJobParams | None = None,img_gen_job_config: ImgGenJobConfig | None = None,) -> list[ImageContent]:- img_gen_config = get_config().cogt.img_gen_config+ img_gen_config = get_config().inference.img_genimg_gen_assignment = ImgGenAssignment(job_metadata=job_metadata,cogt_run_params=cogt_run_params,img_gen_handle=img_gen_handle,img_gen_prompt=img_gen_prompt,img_gen_job_params=img_gen_job_params or img_gen_config.make_default_img_gen_job_params(),- img_gen_job_config=img_gen_job_config or img_gen_config.img_gen_job_config,+ img_gen_job_config=img_gen_job_config or img_gen_config.img_gen_job,nb_images=nb_images,)image_contents = await img_gen_image_list_and_store(@@ -225,7 +225,7 @@ class ContentGenerator(ContentGeneratorProtocol):msg = "PDF URI is required to render page views"raise ValueError(msg)job_params = extract_job_params or ExtractJobParams.make_default_extract_job_params()- page_views_dpi = job_params.page_views_dpi or get_config().cogt.extract_config.default_page_views_dpi+ page_views_dpi = job_params.page_views_dpi or get_config().inference.extract.default_page_views_dpirender_assignment = RenderPageViewsAssignment(job_metadata=job_metadata,cogt_run_params=cogt_run_params,diff --git a/pipelex/cogt/content_generation/dry_mock.py b/pipelex/cogt/content_generation/dry_mock.pyindex 268fa55ef..452a13714 100644--- a/pipelex/cogt/content_generation/dry_mock.py+++ b/pipelex/cogt/content_generation/dry_mock.py@@ -227,7 +227,7 @@ def _nb_list_items(object_assignment: ObjectAssignment) -> int:"""Resolve the object-list mock length: the assignment's fixed ``nb_items`` wins (D11), including 0."""if object_assignment.nb_items is not None:return object_assignment.nb_items- return get_config().pipelex.dry_run_config.nb_list_items+ return get_config().inference.dry_run.nb_list_itemsclass _ReportLLMJobFunc(Protocol):@@ -287,7 +287,7 @@ def _dry_report_func(cogt_run_params: CogtRunParams) -> _ReportLLMJobFunc:def _dry_text_gen_truncate_length() -> int:- return get_config().pipelex.dry_run_config.text_gen_truncate_length+ return get_config().inference.dry_run.text_gen_truncate_lengthdef dry_llm_gen_text(llm_assignment: LLMAssignment) -> str:@@ -365,7 +365,7 @@ def dry_img_gen_image_contents(img_gen_assignment: ImgGenAssignment) -> list[Imatouches the storage provider (eng review D10)."""log.verbose(f"🤡 DRY RUN: img_gen for '{img_gen_assignment.img_gen_handle}'")- image_urls = get_config().pipelex.dry_run_config.image_urls+ image_urls = get_config().inference.dry_run.image_urlsreturn [_dry_image_content(image_url=image_urls[image_index % len(image_urls)], img_gen_assignment=img_gen_assignment)for image_index in range(img_gen_assignment.nb_images)@@ -383,7 +383,7 @@ def dry_extract_page_contents(extract_assignment: ExtractAssignment) -> list[Pagif extract_assignment.extract_input.image_uri:nb_pages = 1else:- nb_pages = get_config().pipelex.dry_run_config.nb_extract_pages+ nb_pages = get_config().inference.dry_run.nb_extract_pagesreturn [PageContent(text_and_images=TextAndImagesContent(@@ -399,19 +399,19 @@ def dry_extract_page_contents(extract_assignment: ExtractAssignment) -> list[Pagdef dry_render_page_views(render_assignment: RenderPageViewsAssignment) -> list[ImageContent]:"""Dry leaf for page-view rendering: URL-only page-view image mocks, no pdf rendering, no storage IO.- Fake URLs come from ``dry_run_config.image_urls`` (validated non-empty) — the single configured+ Fake URLs come from ``inference.dry_run.image_urls`` (validated non-empty) — the single configuredsource of truth for dry fake images, same as the img-gen mock."""log.verbose(f"🤡 DRY RUN: render_page_views for '{render_assignment.job_metadata.pipeline_run_id}'")- nb_pages = get_config().pipelex.dry_run_config.nb_extract_pages- image_urls = get_config().pipelex.dry_run_config.image_urls+ nb_pages = get_config().inference.dry_run.nb_extract_pages+ image_urls = get_config().inference.dry_run.image_urlsreturn [_dry_image_content(image_url=image_urls[page_index % len(image_urls)]) for page_index in range(nb_pages)]def dry_search_gen_sourced_answer(search_assignment: SearchAssignment) -> SearchResultContent:"""Dry leaf for sourced-answer search: polyfactory-built result with mock sources, no provider."""log.verbose(f"🤡 DRY RUN: search_gen_sourced_answer for '{search_assignment.search_handle}'")- nb_sources = get_config().pipelex.dry_run_config.nb_list_items+ nb_sources = get_config().inference.dry_run.nb_list_itemsmock_sources = build_mock_objects(DocumentContent, count=nb_sources)return build_mock_object(SearchResultContent, sources=mock_sources)diff --git a/pipelex/cogt/content_generation/generated_content_factory.py b/pipelex/cogt/content_generation/generated_content_factory.pyindex d530bbee1..ecd6d8125 100644--- a/pipelex/cogt/content_generation/generated_content_factory.py+++ b/pipelex/cogt/content_generation/generated_content_factory.py@@ -59,7 +59,7 @@ class GeneratedContentFactory:extension = "jpg"else:extension = "jpg"- uri_format = get_config().pipelex.storage_config.uri_format+ uri_format = get_config().runtime.storage.uri_formatreturn uri_format.format(primary_id=primary_id, secondary_id=secondary_id, hash=hash_digest, extension=extension)async def _fetch_remote_content(self, url: str) -> bytes:@@ -129,7 +129,7 @@ class GeneratedContentFactory:mime_type = "image/jpeg"public_url: str | None- if is_remote_url and get_config().pipelex.storage_config.is_fetch_remote_content_enabled:+ if is_remote_url and get_config().runtime.storage.is_fetch_remote_content_enabled:try:actual_bytes = await self._fetch_remote_content(url=url)except (httpx.HTTPStatusError, httpx.RequestError) as exc:diff --git a/pipelex/cogt/img_gen/img_gen_args_factory.py b/pipelex/cogt/img_gen/img_gen_args_factory.pyindex 390746f7d..3190d7afc 100644--- a/pipelex/cogt/img_gen/img_gen_args_factory.py+++ b/pipelex/cogt/img_gen/img_gen_args_factory.py@@ -458,21 +458,19 @@ class ImgGenArgsFactory:log.warning(f"Number of inference steps {num_inference_steps} for SDXL Lightning must be one of {acceptable_steps}")num_inference_steps = 4else:- num_inference_steps = get_config().cogt.img_gen_config.get_num_inference_steps(+ num_inference_steps = get_config().inference.img_gen.get_num_inference_steps(model_name="sdxl_lightning", quality=quality or Quality.MEDIUM)args_dict["num_inference_steps"] = num_inference_stepscase InferenceTaxonomy.FLUX:if num_inference_steps is None:- num_inference_steps = get_config().cogt.img_gen_config.get_num_inference_steps(- model_name="flux", quality=quality or Quality.MEDIUM- )+ num_inference_steps = get_config().inference.img_gen.get_num_inference_steps(model_name="flux", quality=quality or Quality.MEDIUM)args_dict["num_inference_steps"] = num_inference_stepsif guidance_scale:args_dict["guidance_scale"] = guidance_scalecase InferenceTaxonomy.QWEN_IMAGE:if num_inference_steps is None:- num_inference_steps = get_config().cogt.img_gen_config.get_num_inference_steps(+ num_inference_steps = get_config().inference.img_gen.get_num_inference_steps(model_name="qwen_image", quality=quality or Quality.MEDIUM)args_dict["num_inference_steps"] = num_inference_stepsdiff --git a/pipelex/cogt/img_gen/img_gen_job_factory.py b/pipelex/cogt/img_gen/img_gen_job_factory.pyindex 86bc0ffc9..976f605dc 100644--- a/pipelex/cogt/img_gen/img_gen_job_factory.py+++ b/pipelex/cogt/img_gen/img_gen_job_factory.py@@ -15,9 +15,9 @@ class ImgGenJobFactory:img_gen_job_params: ImgGenJobParams | None = None,img_gen_job_config: ImgGenJobConfig | None = None,) -> ImgGenJob:- img_gen_config = get_config().cogt.img_gen_config+ img_gen_config = get_config().inference.img_genjob_params = img_gen_job_params or img_gen_config.make_default_img_gen_job_params()- job_config = img_gen_job_config or img_gen_config.img_gen_job_config+ job_config = img_gen_job_config or img_gen_config.img_gen_jobjob_report = ImgGenJobReport()return ImgGenJob(@@ -38,10 +38,10 @@ class ImgGenJobFactory:img_gen_job_params: ImgGenJobParams | None = None,img_gen_job_config: ImgGenJobConfig | None = None,) -> ImgGenJob:- img_gen_config = get_config().cogt.img_gen_config+ img_gen_config = get_config().inference.img_genimg_gen_prompt = ImgGenPrompt(positive_text=positive_text, negative_text=negative_text)job_params = img_gen_job_params or img_gen_config.make_default_img_gen_job_params()- job_config = img_gen_job_config or img_gen_config.img_gen_job_config+ job_config = img_gen_job_config or img_gen_config.img_gen_jobjob_report = ImgGenJobReport()return ImgGenJob(diff --git a/pipelex/cogt/llm/llm_job_components.py b/pipelex/cogt/llm/llm_job_components.pyindex 4a8054a97..210a727db 100644--- a/pipelex/cogt/llm/llm_job_components.py+++ b/pipelex/cogt/llm/llm_job_components.py@@ -43,7 +43,7 @@ class LLMJobParams(BaseModel):class LLMJobConfig(BaseModel):# instructor's schema re-ask budget for one LLM job — total attempts (initial + re-asks).- # Default sourced from cogt.llm_config.schema_reask_max_attempts.+ # Default sourced from inference.llm.schema_reask_max_attempts.schema_reask_max_attempts: int = Field(..., ge=1, le=10)diff --git a/pipelex/cogt/llm/llm_job_factory.py b/pipelex/cogt/llm/llm_job_factory.pyindex 7265e9599..8824b4534 100644--- a/pipelex/cogt/llm/llm_job_factory.py+++ b/pipelex/cogt/llm/llm_job_factory.py@@ -16,7 +16,7 @@ class LLMJobFactory:llm_job_config: LLMJobConfig | None = None,) -> LLMJob:config = get_config()- llm_config = config.cogt.llm_config+ llm_config = config.inference.llmjob_metadata.job_category = JobCategory.LLM_JOBjob_params = llm_job_paramsjob_config = llm_job_config or LLMJobConfig(schema_reask_max_attempts=llm_config.schema_reask_max_attempts)diff --git a/pipelex/cogt/llm/llm_utils.py b/pipelex/cogt/llm/llm_utils.pyindex dfb58532b..abd1fa05e 100644--- a/pipelex/cogt/llm/llm_utils.py+++ b/pipelex/cogt/llm/llm_utils.py@@ -6,8 +6,8 @@ from pipelex.config import get_configdef dump_prompt(llm_prompt: LLMPrompt) -> None:- """Print the prompt for debugging. No-op unless `cogt.llm_config.is_dump_text_prompts_enabled`."""- if not get_config().cogt.llm_config.is_dump_text_prompts_enabled:+ """Print the prompt for debugging. No-op unless `inference.llm.is_dump_text_prompts_enabled`."""+ if not get_config().inference.llm.is_dump_text_prompts_enabled:returnprompt_dump = ""if user_text := llm_prompt.user_text:@@ -24,8 +24,8 @@ def dump_prompt(llm_prompt: LLMPrompt) -> None:def dump_response_from_text_gen(response: Any) -> None:- """Print the LLM response for debugging. No-op unless `cogt.llm_config.is_dump_response_text_enabled`."""- if not get_config().cogt.llm_config.is_dump_response_text_enabled:+ """Print the LLM response for debugging. No-op unless `inference.llm.is_dump_response_text_enabled`."""+ if not get_config().inference.llm.is_dump_response_text_enabled:returnpretty_print(response, title="Response from LLM provider")diff --git a/pipelex/cogt/models/model_manager.py b/pipelex/cogt/models/model_manager.pyindex 55fd76053..95c764b40 100644--- a/pipelex/cogt/models/model_manager.py+++ b/pipelex/cogt/models/model_manager.py@@ -379,7 +379,7 @@ class ModelManager(ModelManagerAbstract):search_waterfalls=model_deck_blueprint.search.waterfalls,search_presets=model_deck_blueprint.search.presets,search_choice_default=model_deck_blueprint.search.choice_default,- model_deck_config=get_config().cogt.model_deck_config,+ model_deck_config=get_config().inference.model_deck,)@overridediff --git a/pipelex/config.py b/pipelex/config.pyindex a47fe3518..b117c3abf 100644--- a/pipelex/config.py+++ b/pipelex/config.py@@ -14,7 +14,7 @@ def get_config() -> PipelexConfig:def get_pipe_func_execution_mode() -> str:"""The selected PipeFunc execution mode in this process (non-raising; defaults to ``direct``).- Read from the optional config (``pipelex.pipe_func_config.execution_mode``) so it is safe to call+ Read from the optional config (``interpreter.pipe_func.execution_mode``) so it is safe to callfrom pydantic validators that may run before the global config is set (e.g. very early boot orisolated unit tests). When no config is set, or it is not a PipelexConfig, the answer is``direct`` — the in-process mode, which keeps the default path byte-identical to the pre-seam@@ -24,7 +24,7 @@ def get_pipe_func_execution_mode() -> str:optional_config = get_optional_config()if not isinstance(optional_config, PipelexConfig):return DIRECT_PIPE_FUNC_EXECUTION_MODE- return optional_config.pipelex.pipe_func_config.execution_mode+ return optional_config.interpreter.pipe_func.execution_modedef is_pipe_func_sandbox_hosted() -> bool:diff --git a/pipelex/graph/graph_config.py b/pipelex/graph/graph_config.pyindex ad853fe15..dc0939a6d 100644--- a/pipelex/graph/graph_config.py+++ b/pipelex/graph/graph_config.py@@ -18,5 +18,5 @@ class GraphConfig(ConfigModel):data_inclusion: DataInclusionConfiggraphs_inclusion: GraphsInclusionConfig- mermaid_config: MermaidRenderingConfig- reactflow_config: ReactFlowRenderingConfig+ mermaid: MermaidRenderingConfig+ reactflow: ReactFlowRenderingConfigdiff --git a/pipelex/graph/graph_factory.py b/pipelex/graph/graph_factory.pyindex 06e74d4c4..dac67c310 100644--- a/pipelex/graph/graph_factory.py+++ b/pipelex/graph/graph_factory.py@@ -85,10 +85,10 @@ async def generate_graph_outputs(graphspec_json = graph_spec.to_json()# Get the mermaid theme from config- mermaid_theme = graph_config.mermaid_config.style.theme+ mermaid_theme = graph_config.mermaid.style.theme# Resolve mermaid direction: explicit override takes priority, then config- effective_direction = direction or graph_config.mermaid_config.direction+ effective_direction = direction or graph_config.mermaid.direction# Generate mermaidflow viewif inclusion.mermaidflow_mmd or inclusion.mermaidflow_html:@@ -115,7 +115,7 @@ async def generate_graph_outputs(# Generate ReactFlow HTMLif inclusion.reactflow_html:- effective_rf_config = graph_config.reactflow_config+ effective_rf_config = graph_config.reactflowif direction is not None:effective_rf_config = effective_rf_config.model_copy(update={"layout_direction": direction})reactflow_html = await generate_reactflow_html_async(diff --git a/pipelex/interpreter_plugins/builtins.py b/pipelex/interpreter_plugins/builtins.pyindex 93b2e3ef5..de218444b 100644--- a/pipelex/interpreter_plugins/builtins.py+++ b/pipelex/interpreter_plugins/builtins.py@@ -31,7 +31,7 @@ INTERPRETER_BUILTIN_PLUGINS: list[PipelexPlugin] = [# 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+# execution modes (``interpreter.pipe_func.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"})diff --git a/pipelex/kernel/img_gen_ops.py b/pipelex/kernel/img_gen_ops.pyindex b22869bee..01988c6f0 100644--- a/pipelex/kernel/img_gen_ops.py+++ b/pipelex/kernel/img_gen_ops.py@@ -79,7 +79,7 @@ def build_img_gen_job_params(`None` — the backend reads an absent seed as "pick one". `0` is a legal seed (`ImgGenJobParams`constrains it with `ge=0`), so it is read as a value rather than as an absence."""- img_gen_param_defaults = get_config().cogt.img_gen_config.img_gen_param_defaults+ img_gen_param_defaults = get_config().inference.img_gen.img_gen_param_defaultsseed_setting = seed if seed is not None else img_gen_param_defaults.seedresolved_seed: int | Noneif isinstance(seed_setting, str):@@ -122,7 +122,7 @@ async def run_img_gen(image is re-validated onto it, because the content generator returns a plain `ImageContent` andthe declared output concept may refine it."""- img_gen_job_config = get_config().cogt.img_gen_config.img_gen_job_config+ img_gen_job_config = get_config().inference.img_gen.img_gen_jobcontent_generator = get_content_generator()content: StuffContentif nb_images > 1:diff --git a/pipelex/kernel/llm_ops.py b/pipelex/kernel/llm_ops.pyindex ea67c4083..ec93c42dd 100644--- a/pipelex/kernel/llm_ops.py+++ b/pipelex/kernel/llm_ops.py@@ -118,7 +118,7 @@ async def derive_structure_prompt(*, output_class: type[StuffContent], templatinfilter, but the template is config-editable, and one that reached this render style-less couldnot use one at all."""- llm_config = get_config().cogt.llm_config+ llm_config = get_config().inference.llmif not llm_config.is_structure_prompt_enabled:return Noneclass_structure = StructurePrinter().get_type_structure(tp=output_class, base_class=StuffContent)diff --git a/pipelex/kernel/templating_style_ops.py b/pipelex/kernel/templating_style_ops.pyindex 9995afde9..395473806 100644--- a/pipelex/kernel/templating_style_ops.py+++ b/pipelex/kernel/templating_style_ops.py@@ -12,4 +12,4 @@ from pipelex.tools.templating.templating_style import TemplatingStyledef resolve_templating_style(*, authored: TemplatingStyle | None) -> TemplatingStyle:"""The style a prompt renders under: the authored one, else the configured default."""- return authored or get_config().pipelex.templating_config.default_templating_style+ return authored or get_config().inference.templating.default_templating_stylediff --git a/pipelex/kit/configs/pipelex.toml b/pipelex/kit/configs/pipelex.tomlindex a508997f6..3f0a0525d 100644--- a/pipelex/kit/configs/pipelex.toml+++ b/pipelex/kit/configs/pipelex.toml@@ -10,9 +10,15 @@# - All values below are set to their defaults - modify them as needed# - The values here will override the defaults from the Pipelex package#+# The three top-level sections mirror the layers of the runtime:+# - [runtime] process-scoped infrastructure: storage, secrets, logging, tracing, plugins+# - [inference] the model-calling seam: model deck, LLM, image generation, extraction+# - [interpreter] library-scoped method machinery: parsing, pipe runs, pipeline execution+## Finding Available Settings:# - See the full default configuration in: pipelex/pipelex.toml (in the Pipelex package)-# - See the configuration structure classes in: pipelex/config.py and pipelex/cogt/config_cogt.py+# - See the configuration structure classes in: pipelex/system/configuration/configs.py+# and pipelex/cogt/config_cogt.py## Common customizations include:# - Logging levels and behavior@@ -26,69 +32,11 @@#####################################################################################################-####################################################################################################-# Pipeline Execution Config-####################################################################################################--[pipelex.pipeline_execution_config]-# Set to false to disable conversion of incoming data URLs to pipelex-storage:// URIs-is_normalize_data_urls_to_storage = true-# Set to false to disable generation of execution graphs-is_generate_graph = true-# Set to false to stop emitting usage (cost) tracing events-is_generate_usage = true--# Bounded fan-out concurrency for PipeBatch: at most this many branches run at once.-# Set max_concurrency = "unbounded" to disable the bound.-max_concurrency = 8--[pipelex.pipeline_execution_config.graph_config.data_inclusion]-# Control what data is included in graph outputs-stuff_json_content = true-stuff_text_content = true-stuff_html_content = true-error_stack_traces = true-pipe_and_concept_registry = true--[pipelex.pipeline_execution_config.graph_config.graphs_inclusion]-# Control which graph outputs are generated-graphspec_json = true-mermaidflow_mmd = true-mermaidflow_html = true-reactflow_html = true--[pipelex.pipeline_execution_config.graph_config.reactflow_config]-# Customize ReactFlow graph rendering-edge_type = "bezier" # Options: "bezier", "smoothstep", "step", "straight"-nodesep = 50 # Horizontal spacing between nodes-ranksep = 30 # Vertical spacing between ranks/levels-initial_zoom = 1.0 # Initial zoom level (1.0 = 100%)-pan_to_top = true # Pan to show top of graph on load--[pipelex.pipeline_execution_config.graph_config.reactflow_config.style]-theme = "dark"-palette = "dracula"--####################################################################################################-# Tracing Config (event log for distributed tracing across workers)-####################################################################################################--[pipelex.tracing_config]-is_enabled = true-backend = "ndjson"--[pipelex.tracing_config.ndjson]-traces_dir = ".pipelex/traces"--[pipelex.tracing_config.dynamodb]-table_name = ""-region = ""-##################################################################################################### Storage Config####################################################################################################-[pipelex.storage_config]+[runtime.storage]# Whether to fetch remote HTTP URLs and store them locallyis_fetch_remote_content_enabled = true# Whether to upload local file paths to storage and replace with pipelex-storage:// URIs@@ -96,23 +44,23 @@ is_upload_local_content_enabled = true# Storage method: "local", "in_memory", "s3", or "gcp"method = "local"-[pipelex.storage_config.local]+[runtime.storage.local]# Local storage settingsuri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"local_storage_path = ".pipelex/storage"-[pipelex.storage_config.in_memory]+[runtime.storage.in_memory]# In-memory storage settingsuri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"-[pipelex.storage_config.s3]+[runtime.storage.s3]# AWS S3 storage settings (requires boto3: `uv pip install "pipelex[s3]"`)uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"bucket_name = ""region = ""signed_urls_lifespan_seconds = 3600 # Set to "disabled" for public URLs-[pipelex.storage_config.gcp]+[runtime.storage.gcp]# Google Cloud Storage settings (requires google-cloud-storage: `uv pip install "pipelex[gcp-storage]"`)uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"bucket_name = ""@@ -123,48 +71,16 @@ signed_urls_lifespan_seconds = 3600 # Set to "disabled# Secrets Config####################################################################################################-[pipelex.secrets_config]+[runtime.secrets]# Secrets provider method: "env" (built-in, reads secrets from environment variables).# An external pipelex-secrets-<backend> plugin can add its own method (e.g. "vault").method = "env"-####################################################################################################-# Scan Config-####################################################################################################--[pipelex.scan_config]-# Directories to exclude when scanning for pipeline files-excluded_dirs = [- ".venv",- "venv",- "env",- ".env",- "virtualenv",- ".virtualenv",- ".git",- "__pycache__",- ".pytest_cache",- ".mypy_cache",- ".ruff_cache",- "node_modules",- "results",-]--####################################################################################################-# Builder Config-####################################################################################################--[pipelex.builder_config]-# Settings for generated pipelines-default_output_dir = "."-default_bundle_file_name = "bundle"-default_directory_base_name = "pipeline"-##################################################################################################### Log Config####################################################################################################-[pipelex.log_config]+[runtime.log]# Default logging level: "DEBUG", "INFO", "WARNING", "ERROR"default_log_level = "INFO"# Log output target: "stdout" or "stderr"@@ -181,7 +97,7 @@ console_log_target = "stderr"# envelope.console_print_target = "stdout"-[pipelex.log_config.package_log_levels]+[runtime.log.package_log_levels]# Log levels for specific packages (use "-" instead of "." in package names)pipelex = "INFO"@@ -189,7 +105,7 @@ pipelex = "INFO"# Reporting Config####################################################################################################-[pipelex.reporting_config]+[runtime.reporting]# Cost reporting settingsis_log_costs_to_console = trueis_generate_cost_report_file_enabled = false@@ -199,31 +115,121 @@ cost_report_extension = "csv"cost_report_unit_scale = 1.0####################################################################################################-# Cogt (Cognitive Tools) Config+# Tracing Config (event log for distributed tracing across workers)####################################################################################################-[cogt.model_deck_config]+[runtime.tracing]+is_enabled = true+backend = "ndjson"++[runtime.tracing.ndjson]+traces_dir = ".pipelex/traces"++[runtime.tracing.dynamodb]+table_name = ""+region = ""++####################################################################################################+# Plugins+####################################################################################################++[runtime.plugins]+# Names of discovered plugins to skip at startup (a denylist). Discovery is the+# source of truth for which plugins are present; this only turns one off.+disabled = []++####################################################################################################+# Inference Config (model deck, LLM, image generation, extraction)+####################################################################################################++[inference.model_deck]# Model fallback behavior: if true, uses secondary model options when primary failsis_model_fallback_enabled = true# Reaction to missing presets: "raise", "log", or "none"missing_presets_reaction = "log"-[cogt.llm_config]+[inference.llm]# Enable dumping of LLM inputs/outputs for debuggingis_dump_text_prompts_enabled = falseis_dump_response_text_enabled = false-[cogt.llm_config.instructor_config]+[inference.llm.instructor]# Enable dumping of structured content generation details for debuggingis_dump_kwargs_enabled = falseis_dump_response_enabled = falseis_dump_error_enabled = false####################################################################################################-# Plugins+# Scan Config####################################################################################################-[plugins]-# Names of discovered plugins to skip at startup (a denylist). Discovery is the-# source of truth for which plugins are present; this only turns one off.-disabled = []+[interpreter.scan]+# Directories to exclude when scanning for pipeline files+excluded_dirs = [+ ".venv",+ "venv",+ "env",+ ".env",+ "virtualenv",+ ".virtualenv",+ ".git",+ "__pycache__",+ ".pytest_cache",+ ".mypy_cache",+ ".ruff_cache",+ "node_modules",+ "results",+]++####################################################################################################+# Builder Config+####################################################################################################++[interpreter.builder]+# Settings for generated pipelines+default_output_dir = "."+default_bundle_file_name = "bundle"+default_directory_base_name = "pipeline"++####################################################################################################+# Pipeline Execution Config+####################################################################################################++[interpreter.pipeline_execution]+# Set to false to disable conversion of incoming data URLs to pipelex-storage:// URIs+is_normalize_data_urls_to_storage = true+# Set to false to disable generation of execution graphs+is_generate_graph = true+# Set to false to stop emitting usage (cost) tracing events+is_generate_usage = true++# Bounded fan-out concurrency for PipeBatch: at most this many branches run at once.+# Set max_concurrency = "unbounded" to disable the bound.+max_concurrency = 8++[interpreter.pipeline_execution.graph.data_inclusion]+# Control what data is included in graph outputs+stuff_json_content = true+stuff_text_content = true+stuff_html_content = true+error_stack_traces = true+pipe_and_concept_registry = true++[interpreter.pipeline_execution.graph.graphs_inclusion]+# Control which graph outputs are generated+graphspec_json = true+mermaidflow_mmd = true+mermaidflow_html = true+reactflow_html = true++[interpreter.pipeline_execution.graph.reactflow]+# Customize ReactFlow graph rendering+edge_type = "bezier" # Options: "bezier", "smoothstep", "step", "straight"+nodesep = 50 # Horizontal spacing between nodes+ranksep = 30 # Vertical spacing between ranks/levels+initial_zoom = 1.0 # Initial zoom level (1.0 = 100%)+pan_to_top = true # Pan to show top of graph on load++[interpreter.pipeline_execution.graph.reactflow.style]+theme = "dark"+palette = "dracula"diff --git a/pipelex/language/mthds_factory.py b/pipelex/language/mthds_factory.pyindex b30dcb274..1fe2137bc 100644--- a/pipelex/language/mthds_factory.py+++ b/pipelex/language/mthds_factory.py@@ -30,7 +30,7 @@ PIPE_CATEGORY_FIELD_KEY = "pipe_category"class MthdsFactory:@classmethoddef _mthds_config(cls) -> MthdsConfig:- return get_config().pipelex.mthds_config+ return get_config().interpreter.mthds@classmethoddef format_tomlkit_string(cls, text: str) -> Any: # Can't type this because of tomlkitdiff --git a/pipelex/libraries/library_utils.py b/pipelex/libraries/library_utils.pyindex 9775f76cc..7fc6f305b 100644--- a/pipelex/libraries/library_utils.py+++ b/pipelex/libraries/library_utils.py@@ -23,7 +23,7 @@ def get_pipelex_mthds_files_from_package() -> list[Path]:def _find_mthds_in_traversable(traversable: Traversable, *, collected: list[Path]) -> None:"""Recursively find .mthds files in a Traversable."""- excluded_dirs = get_config().pipelex.scan_config.excluded_dirs+ excluded_dirs = get_config().interpreter.scan.excluded_dirstry:if not traversable.is_dir():return@@ -75,7 +75,7 @@ def get_pipelex_mthds_files_from_dirs(dirs: set[Path]) -> list[Path]:mthds_files = find_files_in_dir(dir_path=dir_path,pattern=f"*{MTHDS_EXTENSION}",- excluded_dirs=list(get_config().pipelex.scan_config.excluded_dirs),+ excluded_dirs=list(get_config().interpreter.scan.excluded_dirs),force_include_dirs=[str(Path(builder_pkg.__file__).parent)],)diff --git a/pipelex/migration/goldens/pipelex-config/[email protected] b/pipelex/migration/goldens/pipelex-config/[email protected]new file mode 100644index 000000000..ce9fd8469--- /dev/null+++ b/pipelex/migration/goldens/pipelex-config/[email protected]@@ -0,0 +1,432 @@+####################################################################################################+# Runtime — kernel-layer, process-scoped infrastructure (what runtime_hub brokers)+####################################################################################################++[runtime]++[runtime.storage]+is_fetch_remote_content_enabled = true+is_upload_local_content_enabled = true+method = "local" # local, in_memory, s3, gcp++[runtime.storage.local]+uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"+local_storage_path = ".pipelex/storage"++[runtime.storage.in_memory]+uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"++[runtime.storage.s3]+uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"+bucket_name = ""+region = ""+signed_urls_lifespan_seconds = 3600++[runtime.storage.gcp]+uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"+bucket_name = ""+project_id = ""+signed_urls_lifespan_seconds = 3600++[runtime.secrets]+method = "env" # env (built-in); an external plugin may add e.g. vault++####################################################################################################+# Log config+####################################################################################################++[runtime.log]+default_log_level = "INFO"+# console_log_target controls the RichHandler used by the logging system (log.debug/info/...).+# Logs are diagnostics → stderr.+console_log_target = "stderr"+# console_print_target controls the Console returned by get_console(), used for banners,+# deck notices, and the main `pipelex` CLI's data tables (`show backends`, `show models`,+# `which`, `doctor`). Tables are data the user pipes to a file → stdout.+# Note: the agent CLI (`pipelex-agent`) emits its actual JSON/markdown results via bare+# builtin `print(...)` to sys.stdout, bypassing Rich entirely — so this knob does NOT+# affect the agent CLI data channel. The agent CLI factory additionally forces both+# targets to stderr internally to keep its stdout strictly reserved for the success+# envelope (see `_AGENT_CLI_STDERR_CONSOLE_OVERRIDES` in `agent_cli_factory.py`).+console_print_target = "stdout"+is_console_logging_enabled = true++json_logs_indent = 4+presentation_line_width = 120+silenced_problem_ids = ["azure_openai_no_stream_options"]+caller_info_template = "file_line"+is_caller_info_enabled = false++log_mode = "rich"++poor_loggers = []+generic_poor_logger = "#poor-log"++[runtime.log.package_log_levels]+# for logger names, the dots "." have been replaced by "-" to avoid toml parsing issues+# TODO: use quotes to re-enable names with dots+anthropic = "INFO"+asyncio = "INFO"+botocore = "INFO"+botocore-credentials = "WARNING"+google = "INFO"+httpx = "WARNING"+httpcore = "INFO"+openai = "INFO"+instructor = "INFO"+urllib3-connectionpool = "INFO"+urllib3-util-retry = "INFO"++pipelex = "INFO"+++[runtime.log.rich_log]+is_show_time = false+is_show_level = true+is_link_path_enabled = true+is_markup_enabled = true+highlighter_name = "json"+is_rich_tracebacks = true+is_tracebacks_word_wrap = true+is_tracebacks_show_locals = false+tracebacks_suppress = []+keywords_to_hilight = []++[runtime.aws]+api_key_method = "env"+bedrock_access_variant = "aws_access"++[runtime.reporting]+is_log_costs_to_console = true+is_generate_cost_report_file_enabled = false+cost_report_dir_path = "reports"+cost_report_base_name = "cost_report"+cost_report_extension = "csv"+cost_report_unit_scale = 1.0++####################################################################################################+# Tracing config (event log for distributed tracing across workers)+####################################################################################################++[runtime.tracing]+is_enabled = true+backend = "ndjson"++[runtime.tracing.ndjson]+traces_dir = ".pipelex/traces"++[runtime.tracing.dynamodb]+table_name = ""+region = ""++[runtime.observer]+observer_dir = "results/observer"++[runtime.plugins]+# Names of discovered plugins to skip at startup (a denylist). Discovery is the+# source of truth for which plugins are present; this only turns one off.+disabled = []++####################################################################################################+# Inference — the model-calling seam (was [cogt])+####################################################################################################++[inference]+transport_max_retries = 2++[inference.model_deck]+is_model_fallback_enabled = true+missing_presets_reaction = "log"++[inference.llm]+default_max_images = 100+is_structure_prompt_enabled = true+is_dump_text_prompts_enabled = false+is_dump_response_text_enabled = false+schema_reask_max_attempts = 3++[inference.llm.instructor]+is_dump_kwargs_enabled = false+is_dump_response_enabled = false+is_dump_error_enabled = false++[inference.llm.openai.effort_to_level_map]+none = "none"+minimal = "minimal"+low = "low"+medium = "medium"+high = "high"+xhigh = "xhigh"+max = "xhigh"++[inference.llm.anthropic]+structured_output_timeout_seconds = 1200++[inference.llm.anthropic.effort_to_level_map]+none = "disabled"+minimal = "low"+low = "low"+medium = "medium"+high = "high"+xhigh = "xhigh"+max = "max"++[inference.llm.google.effort_to_level_map]+none = "disabled"+minimal = "minimal"+low = "low"+medium = "medium"+high = "high"+xhigh = "high"+max = "high"++[inference.llm.mistral.effort_to_level_map]+none = "disabled"+minimal = "reasoning"+low = "reasoning"+medium = "reasoning"+high = "reasoning"+xhigh = "reasoning"+max = "reasoning"++[inference.llm.effort_to_budget_maps.anthropic]+none = 0 # Required by validator; unreachable at runtime (level map gates NONE as disabled before budget lookup)+minimal = 512+low = 1024+medium = 5000+high = 16384+xhigh = 32768+max = 65536++[inference.llm.effort_to_budget_maps.gemini]+none = 0 # Required by validator; unreachable at runtime (level map gates NONE as disabled before budget lookup)+minimal = 512+low = 1024+medium = 5000+high = 16384+xhigh = 32768+max = 65536++[inference.llm.generic_templates]+output_structure_prompt = """+++---+The instance we want to generate will be for the following class:+{{ class_structure_str }}++DO NOT create information.+If some information is not present for an attribute, output the default value or None according to the attribute definition.+"""++structuring_prompt = """+Read the following text carefully and produce the requested structured output from it.++---+{{ text }}+"""++####################################################################################################+# Image generation config+####################################################################################################++[inference.img_gen.img_gen_job]+is_sync_mode = false++[inference.img_gen.img_gen_param_defaults]+nb_steps = 28 # 28 is a good default for Flux, possible values are [1,2,4,8] for SDXL Lightning+quality = "low"+aspect_ratio = "square" # "square", "landscape_4_3", "landscape_3_2", "landscape_16_9", "landscape_21_9", "landscape_4_1", "landscape_8_1", "portrait_3_4", "portrait_2_3", "portrait_9_16", "portrait_9_21", "portrait_1_4", "portrait_1_8"+guidance_scale = 2.5+background = "auto"+is_moderated = true+safety_tolerance = 5+is_raw = false+seed = "auto"++[inference.img_gen.quality_to_steps_maps]+flux = { "low" = 14, "medium" = 28, "high" = 56 }+sdxl_lightning = { "low" = 2, "medium" = 4, "high" = 8 }+qwen_image = { "low" = 10, "medium" = 20, "high" = 28 }++####################################################################################################+# Extract config+####################################################################################################++[inference.extract]+default_page_views_dpi = 72++####################################################################################################+# Gateway test config+####################################################################################################++[inference.gateway_test.config_id_substitutions]+# this is an empty dict, it's only used by Pipelex staff to override the ¨Pipelex Gateway¨ config+# in order to test new model integrations or debug issues with the Gateway++####################################################################################################+# Templating config+####################################################################################################++[inference.templating]+default_templating_style = { tag_style = "xml" }++####################################################################################################+# Dry run config+####################################################################################################++[inference.dry_run]+text_gen_truncate_length = 256+nb_list_items = 3+nb_extract_pages = 4+allowed_to_fail_pipes = [+ "failing_pipelines.infinite_loop_1", # Loop but only for testing purposes — matched on the namespaced pipe_ref+]+image_urls = [+ "https://storage.googleapis.com/public_test_files_7fa6_4277_9ab/fashion/fashion_photo_1.jpg",+ "https://storage.googleapis.com/public_test_files_7fa6_4277_9ab/fashion/fashion_photo_2.png",+]++####################################################################################################+# Interpreter — library-scoped method machinery (what interpreter_hub brokers)+####################################################################################################++[interpreter]++####################################################################################################+# MTHDS config+####################################################################################################++[interpreter.mthds.inline_tables]+spaces_inside_curly_braces = true++[interpreter.mthds.strings]+prefer_literal = false+force_multiline = false+length_limit_to_multiline = 100+ensure_trailing_newline = true+ensure_leading_blank_line = true++[interpreter.mthds.concepts]+structure_field_ordering = [+ "type",+ "concept_ref",+ "item_type",+ "item_concept_ref",+ "description",+ "choices",+ "required",+]++[interpreter.mthds.pipes]+field_ordering = ["type", "description", "inputs", "output"]++####################################################################################################+# Pipe run config+####################################################################################################++[interpreter.pipe_run]+pipe_stack_limit = 20++####################################################################################################+# PipeFunc config+####################################################################################################++[interpreter.pipe_func]+# PipeFunc execution mode, selected from the PipeFuncExecutorRegistry the plugins populate. "direct"+# (core) imports and runs customer functions in this process; "daytona" (our Daytona sandbox plugin)+# runs them in a remote box. Any non-"direct" mode carries customer PipeFunc code as source text and+# executes it only inside an isolated sandbox, never imported here.+execution_mode = "direct"++####################################################################################################+# Pipeline execution config+####################################################################################################++[interpreter.pipeline_execution]+is_normalize_data_urls_to_storage = true+is_mock_inputs = false+is_generate_graph = true+is_generate_usage = true++# Bounded fan-out concurrency for PipeBatch: at most this many branches run at once.+# A modest default keeps a large workload (one pipe over many items) from overwhelming+# asyncio, memory, and provider rate limits. Set to "unbounded" to disable the bound.+max_concurrency = 8++[interpreter.pipeline_execution.graph]++[interpreter.pipeline_execution.graph.data_inclusion]+stuff_json_content = true+stuff_text_content = true+stuff_html_content = true+error_stack_traces = true+pipe_and_concept_registry = true++[interpreter.pipeline_execution.graph.graphs_inclusion]+graphspec_json = true+mermaidflow_mmd = true+mermaidflow_html = true+reactflow_html = true++[interpreter.pipeline_execution.graph.mermaid]+direction = "left_to_right"+is_include_data_edges = true+is_include_contains_edges = false+is_include_selected_outcome_edges = true+is_show_stuff_codes = false++[interpreter.pipeline_execution.graph.mermaid.style]+theme = "dark"++[interpreter.pipeline_execution.graph.reactflow]+is_use_cdn = true+layout_direction = "left_to_right"+nodesep = 50+ranksep = 30+edge_type = "bezier"+initial_zoom = 1.0+pan_to_top = true+default_title = "Pipelex Graph"+# Forwarded to mthds-ui as `showControllers`: when true, controller pipes (PipeSequence,+# PipeParallel, PipeCondition, PipeBatch) render as grouping containers around their children;+# when false, they collapse out of the graph and edges connect stuff nodes directly.+show_batch_controller = true++[interpreter.pipeline_execution.graph.reactflow.style]+theme = "dark"+palette = "dracula"++[interpreter.scan]+excluded_dirs = [+ ".venv",+ "venv",+ "env",+ ".env",+ "virtualenv",+ ".virtualenv",+ ".git",+ "__pycache__",+ ".pytest_cache",+ ".mypy_cache",+ ".ruff_cache",+ "node_modules",+ "results",+]++[interpreter.builder]+fix_loop_max_attempts = 10+default_output_dir = "."+default_bundle_file_name = "bundle"+default_directory_base_name = "pipeline"++####################################################################################################+# Kit Config+####################################################################################################++[kit]+# Agent rule files to install (used by `pipelex-dev kit rules`)+# Each entry is one of: "cursor", "agents", "claude"+# - "cursor" installs .cursor/rules/*.mdc files (cannot be combined with others)+# - "agents" / "claude" install AGENTS.md / CLAUDE.md respectively — both can be listed together+preferred_agent_targets = ["claude", "agents"]diff --git a/pipelex/migration/goldens/pipelex-config/[email protected] b/pipelex/migration/goldens/pipelex-config/[email protected]new file mode 100644index 000000000..79eb465d6--- /dev/null+++ b/pipelex/migration/goldens/pipelex-config/[email protected]@@ -0,0 +1,1446 @@+{+ "surface_id": "pipelex-config",+ "schema_version": 2,+ "paths": {+ "inference": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.dry_run": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.dry_run.allowed_to_fail_pipes": {+ "value_type": "list[str]",+ "required": false,+ "default": [+ "failing_pipelines.infinite_loop_1"+ ],+ "open_node": false+ },+ "inference.dry_run.image_urls": {+ "value_type": "list[str]",+ "required": true,+ "default": [+ "https://storage.googleapis.com/public_test_files_7fa6_4277_9ab/fashion/fashion_photo_1.jpg",+ "https://storage.googleapis.com/public_test_files_7fa6_4277_9ab/fashion/fashion_photo_2.png"+ ],+ "open_node": false+ },+ "inference.dry_run.nb_extract_pages": {+ "value_type": "int",+ "required": true,+ "default": 4,+ "open_node": false+ },+ "inference.dry_run.nb_list_items": {+ "value_type": "int",+ "required": true,+ "default": 3,+ "open_node": false+ },+ "inference.dry_run.text_gen_truncate_length": {+ "value_type": "int",+ "required": true,+ "default": 256,+ "open_node": false+ },+ "inference.extract": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.extract.default_page_views_dpi": {+ "value_type": "int",+ "required": true,+ "default": 72,+ "open_node": false+ },+ "inference.gateway_test": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.gateway_test.config_id_substitutions": {+ "value_type": "dict[str, str]",+ "required": true,+ "default": {},+ "open_node": true+ },+ "inference.gateway_test.config_id_substitutions.*": {+ "value_type": "str",+ "required": true,+ "open_node": false+ },+ "inference.img_gen": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.img_gen.img_gen_job": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.img_gen.img_gen_job.is_sync_mode": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "inference.img_gen.img_gen_param_defaults": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.img_gen.img_gen_param_defaults.aspect_ratio": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "landscape_16_9",+ "landscape_21_9",+ "landscape_3_2",+ "landscape_4_1",+ "landscape_4_3",+ "landscape_8_1",+ "portrait_1_4",+ "portrait_1_8",+ "portrait_2_3",+ "portrait_3_4",+ "portrait_9_16",+ "portrait_9_21",+ "square"+ ],+ "default": "square",+ "open_node": false+ },+ "inference.img_gen.img_gen_param_defaults.background": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "auto",+ "opaque",+ "transparent"+ ],+ "default": "auto",+ "open_node": false+ },+ "inference.img_gen.img_gen_param_defaults.guidance_scale": {+ "value_type": "float",+ "required": true,+ "default": 2.5,+ "open_node": false,+ "constraints": {+ "gt": 0+ }+ },+ "inference.img_gen.img_gen_param_defaults.is_moderated": {+ "value_type": "bool",+ "required": false,+ "default": true,+ "open_node": false+ },+ "inference.img_gen.img_gen_param_defaults.is_raw": {+ "value_type": "bool",+ "required": false,+ "default": false,+ "open_node": false+ },+ "inference.img_gen.img_gen_param_defaults.nb_steps": {+ "value_type": "int",+ "required": false,+ "default": 28,+ "open_node": false,+ "constraints": {+ "gt": 0+ }+ },+ "inference.img_gen.img_gen_param_defaults.quality": {+ "value_type": "enum",+ "required": false,+ "enum_members": [+ "high",+ "low",+ "medium"+ ],+ "default": "low",+ "open_node": false+ },+ "inference.img_gen.img_gen_param_defaults.safety_tolerance": {+ "value_type": "int",+ "required": true,+ "default": 5,+ "open_node": false,+ "constraints": {+ "ge": 1,+ "le": 6+ }+ },+ "inference.img_gen.img_gen_param_defaults.seed": {+ "value_type": "int | literal",+ "required": true,+ "enum_members": [+ "auto"+ ],+ "default": "auto",+ "open_node": false+ },+ "inference.img_gen.img_gen_param_defaults.size": {+ "value_type": "enum | table",+ "required": false,+ "enum_members": [+ "0.5k",+ "1k",+ "2k",+ "4k"+ ],+ "open_node": false+ },+ "inference.img_gen.quality_to_steps_maps": {+ "value_type": "dict[str, dict[str, int]]",+ "required": true,+ "default": {+ "flux": {+ "low": 14,+ "medium": 28,+ "high": 56+ },+ "sdxl_lightning": {+ "low": 2,+ "medium": 4,+ "high": 8+ },+ "qwen_image": {+ "low": 10,+ "medium": 20,+ "high": 28+ }+ },+ "open_node": true+ },+ "inference.img_gen.quality_to_steps_maps.*": {+ "value_type": "dict[str, int]",+ "required": true,+ "open_node": true+ },+ "inference.img_gen.quality_to_steps_maps.*.*": {+ "value_type": "int",+ "required": true,+ "open_node": false+ },+ "inference.llm": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.llm.anthropic": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.llm.anthropic.effort_to_level_map": {+ "value_type": "dict[str, str]",+ "required": true,+ "default": {+ "none": "disabled",+ "minimal": "low",+ "low": "low",+ "medium": "medium",+ "high": "high",+ "xhigh": "xhigh",+ "max": "max"+ },+ "open_node": true+ },+ "inference.llm.anthropic.effort_to_level_map.*": {+ "value_type": "str",+ "required": true,+ "open_node": false+ },+ "inference.llm.anthropic.structured_output_timeout_seconds": {+ "value_type": "int",+ "required": true,+ "default": 1200,+ "open_node": false+ },+ "inference.llm.default_max_images": {+ "value_type": "int",+ "required": true,+ "default": 100,+ "open_node": false+ },+ "inference.llm.effort_to_budget_maps": {+ "value_type": "dict[str, dict[str, int]]",+ "required": true,+ "default": {+ "anthropic": {+ "none": 0,+ "minimal": 512,+ "low": 1024,+ "medium": 5000,+ "high": 16384,+ "xhigh": 32768,+ "max": 65536+ },+ "gemini": {+ "none": 0,+ "minimal": 512,+ "low": 1024,+ "medium": 5000,+ "high": 16384,+ "xhigh": 32768,+ "max": 65536+ }+ },+ "open_node": true+ },+ "inference.llm.effort_to_budget_maps.*": {+ "value_type": "dict[str, int]",+ "required": true,+ "open_node": true+ },+ "inference.llm.effort_to_budget_maps.*.*": {+ "value_type": "int",+ "required": true,+ "open_node": false+ },+ "inference.llm.generic_templates": {+ "value_type": "dict[str, str]",+ "required": true,+ "default": {+ "output_structure_prompt": "\n\n---\nThe instance we want to generate will be for the following class:\n{{ class_structure_str }}\n\nDO NOT create information.\nIf some information is not present for an attribute, output the default value or None according to the attribute definition.\n",+ "structuring_prompt": "Read the following text carefully and produce the requested structured output from it.\n\n---\n{{ text }}\n"+ },+ "open_node": true+ },+ "inference.llm.generic_templates.*": {+ "value_type": "str",+ "required": true,+ "open_node": false+ },+ "inference.llm.google": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.llm.google.effort_to_level_map": {+ "value_type": "dict[str, str]",+ "required": true,+ "default": {+ "none": "disabled",+ "minimal": "minimal",+ "low": "low",+ "medium": "medium",+ "high": "high",+ "xhigh": "high",+ "max": "high"+ },+ "open_node": true+ },+ "inference.llm.google.effort_to_level_map.*": {+ "value_type": "str",+ "required": true,+ "open_node": false+ },+ "inference.llm.instructor": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.llm.instructor.is_dump_error_enabled": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "inference.llm.instructor.is_dump_kwargs_enabled": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "inference.llm.instructor.is_dump_response_enabled": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "inference.llm.is_dump_response_text_enabled": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "inference.llm.is_dump_text_prompts_enabled": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "inference.llm.is_structure_prompt_enabled": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "inference.llm.mistral": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.llm.mistral.effort_to_level_map": {+ "value_type": "dict[str, str]",+ "required": true,+ "default": {+ "none": "disabled",+ "minimal": "reasoning",+ "low": "reasoning",+ "medium": "reasoning",+ "high": "reasoning",+ "xhigh": "reasoning",+ "max": "reasoning"+ },+ "open_node": true+ },+ "inference.llm.mistral.effort_to_level_map.*": {+ "value_type": "str",+ "required": true,+ "open_node": false+ },+ "inference.llm.openai": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.llm.openai.effort_to_level_map": {+ "value_type": "dict[str, str]",+ "required": true,+ "default": {+ "none": "none",+ "minimal": "minimal",+ "low": "low",+ "medium": "medium",+ "high": "high",+ "xhigh": "xhigh",+ "max": "xhigh"+ },+ "open_node": true+ },+ "inference.llm.openai.effort_to_level_map.*": {+ "value_type": "str",+ "required": true,+ "open_node": false+ },+ "inference.llm.schema_reask_max_attempts": {+ "value_type": "int",+ "required": true,+ "default": 3,+ "open_node": false,+ "constraints": {+ "ge": 1,+ "le": 10+ }+ },+ "inference.model_deck": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.model_deck.is_model_fallback_enabled": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "inference.model_deck.missing_presets_reaction": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "log",+ "none",+ "raise"+ ],+ "default": "log",+ "open_node": false+ },+ "inference.templating": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.templating.default_templating_style": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "inference.templating.default_templating_style.tag_style": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "no_tag",+ "square_brackets",+ "ticks",+ "xml"+ ],+ "default": "xml",+ "open_node": false+ },+ "inference.templating.default_templating_style.text_format": {+ "value_type": "enum",+ "required": false,+ "enum_members": [+ "html",+ "json",+ "markdown",+ "plain"+ ],+ "open_node": false+ },+ "inference.transport_max_retries": {+ "value_type": "int",+ "required": true,+ "default": 2,+ "open_node": false,+ "constraints": {+ "ge": 0,+ "le": 10+ }+ },+ "interpreter": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.builder": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.builder.default_bundle_file_name": {+ "value_type": "str",+ "required": true,+ "default": "bundle",+ "open_node": false+ },+ "interpreter.builder.default_directory_base_name": {+ "value_type": "str",+ "required": true,+ "default": "pipeline",+ "open_node": false+ },+ "interpreter.builder.default_output_dir": {+ "value_type": "str",+ "required": true,+ "default": ".",+ "open_node": false+ },+ "interpreter.builder.fix_loop_max_attempts": {+ "value_type": "int",+ "required": true,+ "default": 10,+ "open_node": false+ },+ "interpreter.mthds": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.mthds.concepts": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.mthds.concepts.structure_field_ordering": {+ "value_type": "list[str]",+ "required": true,+ "default": [+ "type",+ "concept_ref",+ "item_type",+ "item_concept_ref",+ "description",+ "choices",+ "required"+ ],+ "open_node": false+ },+ "interpreter.mthds.inline_tables": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.mthds.inline_tables.spaces_inside_curly_braces": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.mthds.pipes": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.mthds.pipes.field_ordering": {+ "value_type": "list[str]",+ "required": true,+ "default": [+ "type",+ "description",+ "inputs",+ "output"+ ],+ "open_node": false+ },+ "interpreter.mthds.strings": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.mthds.strings.ensure_leading_blank_line": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.mthds.strings.ensure_trailing_newline": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.mthds.strings.force_multiline": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "interpreter.mthds.strings.length_limit_to_multiline": {+ "value_type": "int",+ "required": true,+ "default": 100,+ "open_node": false+ },+ "interpreter.mthds.strings.prefer_literal": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "interpreter.pipe_func": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.pipe_func.execution_mode": {+ "value_type": "str",+ "required": true,+ "default": "direct",+ "open_node": false+ },+ "interpreter.pipe_run": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.pipe_run.pipe_stack_limit": {+ "value_type": "int",+ "required": true,+ "default": 20,+ "open_node": false+ },+ "interpreter.pipeline_execution": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.data_inclusion": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.data_inclusion.error_stack_traces": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.data_inclusion.pipe_and_concept_registry": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.data_inclusion.stuff_html_content": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.data_inclusion.stuff_json_content": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.data_inclusion.stuff_text_content": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.graphs_inclusion": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.graphs_inclusion.graphspec_json": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.graphs_inclusion.mermaidflow_html": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.graphs_inclusion.mermaidflow_mmd": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.graphs_inclusion.reactflow_html": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.mermaid": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.mermaid.direction": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "left_to_right",+ "top_down"+ ],+ "default": "left_to_right",+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.mermaid.is_include_contains_edges": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.mermaid.is_include_data_edges": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.mermaid.is_include_selected_outcome_edges": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.mermaid.is_show_stuff_codes": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.mermaid.style": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.mermaid.style.theme": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "base",+ "dark",+ "default",+ "forest",+ "neutral"+ ],+ "default": "dark",+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.reactflow": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.reactflow.default_title": {+ "value_type": "str",+ "required": true,+ "default": "Pipelex Graph",+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.reactflow.edge_type": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "bezier",+ "smoothstep",+ "step",+ "straight"+ ],+ "default": "bezier",+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.reactflow.initial_zoom": {+ "value_type": "float",+ "required": true,+ "default": 1.0,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.reactflow.is_use_cdn": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.reactflow.layout_direction": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "left_to_right",+ "top_down"+ ],+ "default": "left_to_right",+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.reactflow.nodesep": {+ "value_type": "int",+ "required": true,+ "default": 50,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.reactflow.pan_to_top": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.reactflow.ranksep": {+ "value_type": "int",+ "required": true,+ "default": 30,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.reactflow.show_batch_controller": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.reactflow.style": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.reactflow.style.palette": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "dracula",+ "yellow_blue"+ ],+ "default": "dracula",+ "open_node": false+ },+ "interpreter.pipeline_execution.graph.reactflow.style.theme": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "dark",+ "light",+ "system"+ ],+ "default": "dark",+ "open_node": false+ },+ "interpreter.pipeline_execution.is_generate_graph": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.is_generate_usage": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.is_mock_inputs": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "interpreter.pipeline_execution.is_normalize_data_urls_to_storage": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "interpreter.pipeline_execution.max_concurrency": {+ "value_type": "int | literal",+ "required": true,+ "enum_members": [+ "unbounded"+ ],+ "default": 8,+ "open_node": false,+ "constraints": {+ "ge": 1+ }+ },+ "interpreter.scan": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "interpreter.scan.excluded_dirs": {+ "value_type": "frozenset[str]",+ "required": true,+ "default": [+ ".venv",+ "venv",+ "env",+ ".env",+ "virtualenv",+ ".virtualenv",+ ".git",+ "__pycache__",+ ".pytest_cache",+ ".mypy_cache",+ ".ruff_cache",+ "node_modules",+ "results"+ ],+ "open_node": false+ },+ "kit": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "kit.preferred_agent_targets": {+ "value_type": "list[enum]",+ "required": true,+ "enum_members": [+ "agents",+ "claude",+ "cursor"+ ],+ "default": [+ "claude",+ "agents"+ ],+ "open_node": false+ },+ "runtime": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "runtime.aws": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "runtime.aws.api_key_method": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "env",+ "secret_provider"+ ],+ "default": "env",+ "open_node": false+ },+ "runtime.aws.bedrock_access_variant": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "aws_access",+ "bedrock_token"+ ],+ "default": "aws_access",+ "open_node": false+ },+ "runtime.log": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "runtime.log.caller_info_template": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "file_func",+ "file_line",+ "file_line_func",+ "func",+ "func_line",+ "func_module",+ "func_module_line"+ ],+ "default": "file_line",+ "open_node": false+ },+ "runtime.log.console_log_target": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "file",+ "stderr",+ "stdout"+ ],+ "default": "stderr",+ "open_node": false+ },+ "runtime.log.console_print_target": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "file",+ "stderr",+ "stdout"+ ],+ "default": "stdout",+ "open_node": false+ },+ "runtime.log.default_log_level": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "CRITICAL",+ "DEBUG",+ "DEV",+ "ERROR",+ "INFO",+ "OFF",+ "VERBOSE",+ "WARNING"+ ],+ "default": "INFO",+ "open_node": false+ },+ "runtime.log.generic_poor_logger": {+ "value_type": "str",+ "required": true,+ "default": "#poor-log",+ "open_node": false+ },+ "runtime.log.is_caller_info_enabled": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "runtime.log.is_console_logging_enabled": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "runtime.log.json_logs_indent": {+ "value_type": "int",+ "required": true,+ "default": 4,+ "open_node": false+ },+ "runtime.log.log_mode": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "poor",+ "rich"+ ],+ "default": "rich",+ "open_node": false+ },+ "runtime.log.package_log_levels": {+ "value_type": "dict[str, enum]",+ "required": true,+ "default": {+ "anthropic": "INFO",+ "asyncio": "INFO",+ "botocore": "INFO",+ "botocore-credentials": "WARNING",+ "google": "INFO",+ "httpx": "WARNING",+ "httpcore": "INFO",+ "openai": "INFO",+ "instructor": "INFO",+ "urllib3-connectionpool": "INFO",+ "urllib3-util-retry": "INFO",+ "pipelex": "INFO"+ },+ "open_node": true+ },+ "runtime.log.package_log_levels.*": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "CRITICAL",+ "DEBUG",+ "DEV",+ "ERROR",+ "INFO",+ "OFF",+ "VERBOSE",+ "WARNING"+ ],+ "open_node": false+ },+ "runtime.log.poor_loggers": {+ "value_type": "list[str]",+ "required": true,+ "default": [],+ "open_node": false+ },+ "runtime.log.presentation_line_width": {+ "value_type": "int",+ "required": true,+ "default": 120,+ "open_node": false+ },+ "runtime.log.rich_log": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "runtime.log.rich_log.highlighter_name": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "json",+ "repr"+ ],+ "default": "json",+ "open_node": false+ },+ "runtime.log.rich_log.is_link_path_enabled": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "runtime.log.rich_log.is_markup_enabled": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "runtime.log.rich_log.is_rich_tracebacks": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "runtime.log.rich_log.is_show_level": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "runtime.log.rich_log.is_show_time": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "runtime.log.rich_log.is_tracebacks_show_locals": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "runtime.log.rich_log.is_tracebacks_word_wrap": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "runtime.log.rich_log.keywords_to_hilight": {+ "value_type": "list[str]",+ "required": true,+ "default": [],+ "open_node": false+ },+ "runtime.log.rich_log.tracebacks_suppress": {+ "value_type": "list[str]",+ "required": true,+ "default": [],+ "open_node": false+ },+ "runtime.log.silenced_problem_ids": {+ "value_type": "list[str]",+ "required": true,+ "default": [+ "azure_openai_no_stream_options"+ ],+ "open_node": false+ },+ "runtime.observer": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "runtime.observer.observer_dir": {+ "value_type": "str",+ "required": true,+ "default": "results/observer",+ "open_node": false+ },+ "runtime.plugins": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "runtime.plugins.disabled": {+ "value_type": "list[str]",+ "required": true,+ "default": [],+ "open_node": false+ },+ "runtime.reporting": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "runtime.reporting.cost_report_base_name": {+ "value_type": "str",+ "required": true,+ "default": "cost_report",+ "open_node": false+ },+ "runtime.reporting.cost_report_dir_path": {+ "value_type": "str",+ "required": true,+ "default": "reports",+ "open_node": false+ },+ "runtime.reporting.cost_report_extension": {+ "value_type": "str",+ "required": true,+ "default": "csv",+ "open_node": false+ },+ "runtime.reporting.cost_report_unit_scale": {+ "value_type": "float",+ "required": true,+ "default": 1.0,+ "open_node": false,+ "constraints": {+ "gt": 0+ }+ },+ "runtime.reporting.is_generate_cost_report_file_enabled": {+ "value_type": "bool",+ "required": true,+ "default": false,+ "open_node": false+ },+ "runtime.reporting.is_log_costs_to_console": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "runtime.secrets": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "runtime.secrets.method": {+ "value_type": "str",+ "required": true,+ "default": "env",+ "open_node": false+ },+ "runtime.storage": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "runtime.storage.gcp": {+ "value_type": "table",+ "required": false,+ "open_node": false+ },+ "runtime.storage.gcp.bucket_name": {+ "value_type": "str",+ "required": true,+ "default": "",+ "open_node": false+ },+ "runtime.storage.gcp.project_id": {+ "value_type": "str",+ "required": true,+ "default": "",+ "open_node": false+ },+ "runtime.storage.gcp.signed_urls_lifespan_seconds": {+ "value_type": "int | literal",+ "required": true,+ "enum_members": [+ "disabled"+ ],+ "default": 3600,+ "open_node": false+ },+ "runtime.storage.gcp.uri_format": {+ "value_type": "str",+ "required": true,+ "default": "{primary_id}/{secondary_id}/{hash}.{extension}",+ "open_node": false+ },+ "runtime.storage.in_memory": {+ "value_type": "table",+ "required": false,+ "open_node": false+ },+ "runtime.storage.in_memory.uri_format": {+ "value_type": "str",+ "required": true,+ "default": "{primary_id}/{secondary_id}/{hash}.{extension}",+ "open_node": false+ },+ "runtime.storage.is_fetch_remote_content_enabled": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "runtime.storage.is_upload_local_content_enabled": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "runtime.storage.local": {+ "value_type": "table",+ "required": false,+ "open_node": false+ },+ "runtime.storage.local.local_storage_path": {+ "value_type": "str",+ "required": true,+ "default": ".pipelex/storage",+ "open_node": false+ },+ "runtime.storage.local.uri_format": {+ "value_type": "str",+ "required": true,+ "default": "{primary_id}/{secondary_id}/{hash}.{extension}",+ "open_node": false+ },+ "runtime.storage.method": {+ "value_type": "str",+ "required": true,+ "default": "local",+ "open_node": false+ },+ "runtime.storage.s3": {+ "value_type": "table",+ "required": false,+ "open_node": false+ },+ "runtime.storage.s3.bucket_name": {+ "value_type": "str",+ "required": true,+ "default": "",+ "open_node": false+ },+ "runtime.storage.s3.region": {+ "value_type": "str",+ "required": true,+ "default": "",+ "open_node": false+ },+ "runtime.storage.s3.signed_urls_lifespan_seconds": {+ "value_type": "int | literal",+ "required": true,+ "enum_members": [+ "disabled"+ ],+ "default": 3600,+ "open_node": false+ },+ "runtime.storage.s3.uri_format": {+ "value_type": "str",+ "required": true,+ "default": "{primary_id}/{secondary_id}/{hash}.{extension}",+ "open_node": false+ },+ "runtime.tracing": {+ "value_type": "table",+ "required": true,+ "open_node": false+ },+ "runtime.tracing.backend": {+ "value_type": "enum",+ "required": true,+ "enum_members": [+ "dynamodb",+ "ndjson"+ ],+ "default": "ndjson",+ "open_node": false+ },+ "runtime.tracing.dynamodb": {+ "value_type": "table",+ "required": false,+ "open_node": false+ },+ "runtime.tracing.dynamodb.region": {+ "value_type": "str",+ "required": true,+ "default": "",+ "open_node": false+ },+ "runtime.tracing.dynamodb.table_name": {+ "value_type": "str",+ "required": true,+ "default": "",+ "open_node": false+ },+ "runtime.tracing.is_enabled": {+ "value_type": "bool",+ "required": true,+ "default": true,+ "open_node": false+ },+ "runtime.tracing.ndjson": {+ "value_type": "table",+ "required": false,+ "open_node": false+ },+ "runtime.tracing.ndjson.traces_dir": {+ "value_type": "str",+ "required": true,+ "default": ".pipelex/traces",+ "open_node": false+ }+ }+}diff --git a/pipelex/migration/ledgers/pipelex-config.toml b/pipelex/migration/ledgers/pipelex-config.tomlindex 4317c687d..5e4bf4fe2 100644--- a/pipelex/migration/ledgers/pipelex-config.toml+++ b/pipelex/migration/ledgers/pipelex-config.toml@@ -12,5 +12,286 @@ id = "pipelex-config"title = "The main Pipelex configuration"base_file = "pipelex.toml"tier_glob = "pipelex_*.toml"-current_schema_version = 1+current_schema_version = 2min_supported_schema_version = 0++[[migration]]+id = "pipelex-config@2"+to_schema_version = 2+introduced_in = "0.46.0"+breaking = true+safety = "safe"+title = "The configuration reshape: one scheme for the root"+description = """+The root gets the layers the code already has, instead of a grab-bag (`[pipelex]`), a codename \+(`[cogt]`), a plugin-system table (`[plugins]`), a rename-hint table (`[migration]`) and a stray \+`session_id`. Kernel-layer infrastructure moves under `[runtime]`, the model-calling seam becomes \+`[inference]`, library-scoped method machinery becomes `[interpreter]`, and the dev-tooling section \+becomes `[kit]`. The redundant `_config` suffix is dropped from every key, at every depth. Every \+setting keeps its value; only its address changes.+"""+guidance = """+Values are unchanged — only addresses. Three things do go away, and none of them is recoverable by \+moving it somewhere else:++- Custom `[migration.migration_maps.*]` entries have no equivalent and are dropped. They only ever \+ annotated validation-error messages with old-to-new name hints, and renames are recorded as \+ ledger entries now. The `.mthds` renaming hints go with them until the language surface restores them.+- `session_id`, if you ever pinned it, is dropped: it was process state living on the config object, \+ and nothing in `pipelex` reads it.+- `boot_orchestrator`, if anyone ever wrote it into a file, is dropped because it is a boot \+ argument (`--orchestrator`, or `Pipelex.setup(boot_orchestrator=...)`), not a setting.++A moved section may appear at the end of the migrated file rather than where it was, and a banner \+comment introducing a moved section stays behind, now labelling whatever followed it. Both are \+expected; the file is otherwise untouched.+"""++# --- Kernel-layer infrastructure out of [pipelex], into [runtime] ------------------------------+# Children move out of [pipelex] before [pipelex] itself is renamed, so the rename that follows+# carries only what belongs to the interpreter.++[[migration.ops]]+kind = "move_key"+table_path = ["pipelex"]+key = "storage_config"+new_table_path = ["runtime"]+new_key = "storage"++[[migration.ops]]+kind = "move_key"+table_path = ["pipelex"]+key = "secrets_config"+new_table_path = ["runtime"]+new_key = "secrets"++[[migration.ops]]+kind = "move_key"+table_path = ["pipelex"]+key = "log_config"+new_table_path = ["runtime"]+new_key = "log"++# A rename inside a parent that has already moved: the source path is intermediate by construction,+# which is why op legality is evaluated over the entry's own sequential path state.+[[migration.ops]]+kind = "rename_table_key"+table_path = ["runtime", "log"]+key = "rich_log_config"+new_key = "rich_log"++[[migration.ops]]+kind = "move_key"+table_path = ["pipelex"]+key = "aws_config"+new_table_path = ["runtime"]+new_key = "aws"++[[migration.ops]]+kind = "move_key"+table_path = ["pipelex"]+key = "reporting_config"+new_table_path = ["runtime"]+new_key = "reporting"++[[migration.ops]]+kind = "move_key"+table_path = ["pipelex"]+key = "tracing_config"+new_table_path = ["runtime"]+new_key = "tracing"++[[migration.ops]]+kind = "move_key"+table_path = ["pipelex"]+key = "observer_config"+new_table_path = ["runtime"]+new_key = "observer"++# Before [plugins] moves, so the deleted key's source is a schema-1 path rather than an+# intermediate one. It was never settable in practice, so this skips on every real file.+[[migration.ops]]+kind = "delete_key"+table_path = ["plugins"]+key = "boot_orchestrator"++[[migration.ops]]+kind = "move_key"+table_path = []+key = "plugins"+new_table_path = ["runtime"]+new_key = "plugins"++# --- [cogt] becomes [inference] ----------------------------------------------------------------+# The root rename comes before anything moves *into* [inference]: renaming the root table rewrites+# every `[cogt.*]` header in place, keeping each child where the user put it.++[[migration.ops]]+kind = "rename_table_key"+table_path = []+key = "cogt"+new_key = "inference"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["inference"]+key = "model_deck_config"+new_key = "model_deck"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["inference"]+key = "llm_config"+new_key = "llm"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["inference", "llm"]+key = "instructor_config"+new_key = "instructor"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["inference", "llm"]+key = "openai_config"+new_key = "openai"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["inference", "llm"]+key = "anthropic_config"+new_key = "anthropic"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["inference", "llm"]+key = "google_config"+new_key = "google"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["inference", "llm"]+key = "mistral_config"+new_key = "mistral"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["inference"]+key = "img_gen_config"+new_key = "img_gen"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["inference", "img_gen"]+key = "img_gen_job_config"+new_key = "img_gen_job"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["inference"]+key = "extract_config"+new_key = "extract"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["inference"]+key = "gateway_test_config"+new_key = "gateway_test"++# The two sections whose readers are the kernel's inference seam (ruling R3).++[[migration.ops]]+kind = "move_key"+table_path = ["pipelex"]+key = "templating_config"+new_table_path = ["inference"]+new_key = "templating"++[[migration.ops]]+kind = "move_key"+table_path = ["pipelex"]+key = "dry_run_config"+new_table_path = ["inference"]+new_key = "dry_run"++# --- Dev tooling to the root -------------------------------------------------------------------++[[migration.ops]]+kind = "move_key"+table_path = ["pipelex"]+key = "kit_config"+new_table_path = []+new_key = "kit"++# --- What remains of [pipelex] is the interpreter -----------------------------------------------++[[migration.ops]]+kind = "rename_table_key"+table_path = []+key = "pipelex"+new_key = "interpreter"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["interpreter"]+key = "mthds_config"+new_key = "mthds"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["interpreter"]+key = "pipe_run_config"+new_key = "pipe_run"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["interpreter"]+key = "pipe_func_config"+new_key = "pipe_func"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["interpreter"]+key = "pipeline_execution_config"+new_key = "pipeline_execution"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["interpreter", "pipeline_execution"]+key = "graph_config"+new_key = "graph"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["interpreter", "pipeline_execution", "graph"]+key = "mermaid_config"+new_key = "mermaid"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["interpreter", "pipeline_execution", "graph"]+key = "reactflow_config"+new_key = "reactflow"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["interpreter"]+key = "scan_config"+new_key = "scan"++[[migration.ops]]+kind = "rename_table_key"+table_path = ["interpreter"]+key = "builder_config"+new_key = "builder"++# --- Deletions last ------------------------------------------------------------------------------++[[migration.ops]]+kind = "delete_table"+table_path = ["migration"]++[[migration.ops]]+kind = "delete_key"+table_path = []+key = "session_id"diff --git a/pipelex/migration/run.py b/pipelex/migration/run.pyindex d849db567..0f27e360e 100644--- a/pipelex/migration/run.py+++ b/pipelex/migration/run.py@@ -37,19 +37,14 @@ from pipelex.system.configuration.config_loader import config_managerdef config_directories_to_migrate() -> list[Path]:"""The configuration directories a migration run walks, in tier order, each of which exists.- The global directory comes first and the project one second, which is the order the loader- merges them in and therefore the order a report reads most naturally. A machine with only one- of them is an ordinary machine; a project directory that *is* the global one — a project rooted- at the home directory — is walked once rather than twice.+ **The walk is the loader's own set of configuration directories, and this is the sentence that+ says so.** The derivation lives on `ConfigLoader.existing_config_dirs` rather than here, because+ the loader is also what must decide — at boot, on the failure path, before any part of the+ migration package is reachable from it — whether a stale file it just carried forward is one+ this command would reach. One derivation, read from both ends; a second one would let a boot+ warning name a remedy the walk then declines."""- directories: list[Path] = []- global_dir = config_manager.global_config_dir- if global_dir.is_dir():- directories.append(global_dir)- project_dir = config_manager.project_config_dir- if project_dir is not None and project_dir.resolve() not in {directory.resolve() for directory in directories}:- directories.append(project_dir)- return directories+ return config_manager.existing_config_dirsdef migrate_config_directories(*, config_dirs: list[Path], dry_run: bool) -> MigrationReport:diff --git a/pipelex/observer/local_observer.py b/pipelex/observer/local_observer.pyindex 5df712c96..8c0670315 100644--- a/pipelex/observer/local_observer.py+++ b/pipelex/observer/local_observer.py@@ -16,7 +16,7 @@ class LocalObserverEventType(StrEnum):class LocalObserver(ObserverProtocol):def __init__(self, storage_dir: str | Path | None = None) -> None:- self.storage_dir = Path(storage_dir or get_config().pipelex.observer_config.observer_dir)+ self.storage_dir = Path(storage_dir or get_config().runtime.observer.observer_dir)self.storage_dir.mkdir(parents=True, exist_ok=True)def _write_to_jsonl(self, *, event_type: str, payload: PayloadType) -> None:diff --git a/pipelex/pipe_operators/compose/pipe_compose.py b/pipelex/pipe_operators/compose/pipe_compose.pyindex 2336a0689..2521f4005 100644--- a/pipelex/pipe_operators/compose/pipe_compose.py+++ b/pipelex/pipe_operators/compose/pipe_compose.py@@ -303,7 +303,7 @@ class PipeCompose(PipeOperator[PipeComposeOutput]):raise# Only swallow the error when running with mock inputs (e.g., graph generation).# With real inputs (e.g., pipelex validate), unresolvable paths are real bugs.- if not get_config().pipelex.pipeline_execution_config.is_mock_inputs:+ if not get_config().interpreter.pipeline_execution.is_mock_inputs:raisereturn self._make_mock_construct_output(job_metadata=job_metadata,diff --git a/pipelex/pipe_operators/func/pipe_func_execution_transport.py b/pipelex/pipe_operators/func/pipe_func_execution_transport.pyindex e542d53bb..2c76b00e3 100644--- a/pipelex/pipe_operators/func/pipe_func_execution_transport.py+++ b/pipelex/pipe_operators/func/pipe_func_execution_transport.py@@ -34,9 +34,11 @@ def build_pipe_func_execution_request((transported, workflow) paths make it available through ``get_crate``. Building the request ispure/deterministic, so it is safe to call inside a Temporal workflow before dispatching.- ``timeout_seconds`` is the PipeFunc kill-timeout that rides on the request. Callers pass the- configured ``pipe_func_config.timeout_seconds`` (they live in plugins, outside core's import graph,- so they can read the config without a cycle); it falls back to the module default otherwise.+ ``timeout_seconds`` is the PipeFunc kill-timeout that rides on the request. **The timeout is+ plugin-configured**: core has no key for it — ``[interpreter.pipe_func]`` holds ``execution_mode``+ and nothing else — and each out-of-process executor reads it from its own plugin configuration+ root (our Daytona plugin's ``pipe_func_timeout_seconds``, for one). Callers that have one pass it;+ it falls back to the module default otherwise."""library_id = get_current_library()crate = get_library_manager().get_crate(library_id=library_id)diff --git a/pipelex/pipe_operators/structure/pipe_structure.py b/pipelex/pipe_operators/structure/pipe_structure.pyindex 1414e6ab2..5e4bba0f6 100644--- a/pipelex/pipe_operators/structure/pipe_structure.py+++ b/pipelex/pipe_operators/structure/pipe_structure.py@@ -124,7 +124,7 @@ class PipeStructure(PipeOperator[PipeStructureOutput]):# No authored style on this operator: the structuring prompt takes the runtime default, the# same one an LLM pipe that declares nothing gets.templating_style = resolve_templating_style(authored=None)- llm_config = get_config().cogt.llm_config+ llm_config = get_config().inference.llmstructuring_template = llm_config.get_template(template_name="structuring_prompt")rendered_user_prompt = await render_template(template=structuring_template,diff --git a/pipelex/pipe_run/delivery_executor.py b/pipelex/pipe_run/delivery_executor.pyindex 534e8c876..1a6b9d806 100644--- a/pipelex/pipe_run/delivery_executor.py+++ b/pipelex/pipe_run/delivery_executor.py@@ -272,7 +272,7 @@ class DeliveryExecutor:async def _generate_graph_files(self, graph_spec: Any, *, files: dict[str, ResultFile]) -> None:try:- graph_config = get_config().pipelex.pipeline_execution_config.graph_config+ graph_config = get_config().interpreter.pipeline_execution.graphgraph_outputs = await generate_graph_outputs(graph_spec=graph_spec,graph_config=graph_config,diff --git a/pipelex/pipe_run/dry_run_in_process.py b/pipelex/pipe_run/dry_run_in_process.pyindex ccd9a17a4..3783cb003 100644--- a/pipelex/pipe_run/dry_run_in_process.py+++ b/pipelex/pipe_run/dry_run_in_process.py@@ -105,7 +105,7 @@ async def dry_run_pipe_in_process(pipe: PipeAbstract, *, library_id: str) -> GraRaises:DryRunGraphNotProducedError: If the dry-run completes without producing a graph spec."""- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=True,mock_inputs=True,)@@ -124,7 +124,7 @@ async def dry_run_pipe_in_process(pipe: PipeAbstract, *, library_id: str) -> Gragraph_tracer_manager = GraphTracerManager.get_or_create_instance()trace_context = graph_tracer_manager.open_tracer(graph_id=pipeline_run_id,- data_inclusion=execution_config.graph_config.data_inclusion,+ data_inclusion=execution_config.graph.data_inclusion,pipeline_ref_domain=pipe.domain_code,pipeline_ref_main_pipe=pipe.code,event_log=event_log,diff --git a/pipelex/pipe_run/pipe_run_params.py b/pipelex/pipe_run/pipe_run_params.pyindex baa1f96c9..3184b95db 100644--- a/pipelex/pipe_run/pipe_run_params.py+++ b/pipelex/pipe_run/pipe_run_params.py@@ -148,7 +148,7 @@ class PipeRunParams(BaseModel):# frozen for the same reason as `run_mode`.is_mock_usage: bool = Field(default=False, frozen=True)- # Bounded fan-out for PipeBatch, resolved from `pipeline_execution_config.max_concurrency`+ # Bounded fan-out for PipeBatch, resolved from `interpreter.pipeline_execution.max_concurrency`# once at construction (`PipeRunParamsFactory.make_run_params`). `None` means unbounded —# `gather_bounded`'s own no-bound sentinel, so the field is passed straight through.#diff --git a/pipelex/pipe_run/pipe_run_params_factory.py b/pipelex/pipe_run/pipe_run_params_factory.pyindex c3a12e0cd..5d13a282a 100644--- a/pipelex/pipe_run/pipe_run_params_factory.py+++ b/pipelex/pipe_run/pipe_run_params_factory.py@@ -9,7 +9,7 @@ from pipelex.system.pipe_run_mode import PipeRunModedef resolve_batch_max_concurrency(max_concurrency_setting: int | Literal["unbounded"]) -> int | None:- """Translate the ``pipeline_execution_config.max_concurrency`` setting into a ``gather_bounded`` bound.+ """Translate the ``interpreter.pipeline_execution.max_concurrency`` setting into a ``gather_bounded`` bound.The config exposes the explicit literal ``"unbounded"``; ``gather_bounded`` takes ``None`` for nobound. Any int value is passed through unchanged. Centralizing this guards against passing the@@ -52,13 +52,13 @@ class PipeRunParamsFactory:"""check_mock_usage_requires_dry(run_mode=pipe_run_mode, is_mock_usage=is_mock_usage)pipe_run_mode = resolve_run_mode_for_boot(requested=pipe_run_mode)- config = get_config().pipelex- pipe_stack_limit = pipe_stack_limit or config.pipe_run_config.pipe_stack_limit+ config = get_config().interpreter+ pipe_stack_limit = pipe_stack_limit or config.pipe_run.pipe_stack_limitreturn PipeRunParams(run_mode=pipe_run_mode,is_mock_usage=is_mock_usage,pipe_stack_limit=pipe_stack_limit,- batch_max_concurrency=resolve_batch_max_concurrency(config.pipeline_execution_config.max_concurrency),+ batch_max_concurrency=resolve_batch_max_concurrency(config.pipeline_execution.max_concurrency),output_multiplicity=output_multiplicity,dynamic_output_concept_ref=dynamic_output_concept_ref,batch_params=batch_params,diff --git a/pipelex/pipe_run/tracing_assembly.py b/pipelex/pipe_run/tracing_assembly.pyindex b4d29adee..ce46186ad 100644--- a/pipelex/pipe_run/tracing_assembly.py+++ b/pipelex/pipe_run/tracing_assembly.py@@ -84,7 +84,7 @@ def assemble_tracing(A TracingAssembly carrying whichever artifacts were requested and succeeded."""result = TracingAssembly()- tracing_config = get_config().pipelex.tracing_config+ tracing_config = get_config().runtime.tracing# A scoped override (see hub.scoped_event_log) is the run's transport and implies# tracing-enabled (D1) — it must not be skipped by the is_enabled early-return.event_log_override = get_event_log_override()diff --git a/pipelex/pipelex.py b/pipelex/pipelex.pyindex 3f81620e6..32b67b09d 100644--- a/pipelex/pipelex.py+++ b/pipelex/pipelex.py@@ -149,10 +149,10 @@ class Pipelex(RuntimeBoot):# registry factory. The PipeFunc execution axis is orthogonal to orchestration: a Temporal# worker claims the PIPE_FUNC_EXECUTOR slot to wrap execution in an activity, and inside that# activity resolves the real executor through this same registry by execution_mode. Every- # non-worker boot resolves directly here — pipe_func_config.execution_mode selects the mode+ # non-worker boot resolves directly here — interpreter.pipe_func.execution_mode selects the mode# ("direct" in-process by default; a sandbox mode like "daytona" runs it out-of-process).if pipe_func_executor is None:- pipe_func_config = get_config().pipelex.pipe_func_config+ pipe_func_config = get_config().interpreter.pipe_funcexecution_mode = get_pipe_func_execution_mode()pipe_func_executor = self._resolve_hub_slot(slot=HubSlot.PIPE_FUNC_EXECUTOR,diff --git a/pipelex/pipelex.toml b/pipelex/pipelex.tomlindex abaf4f65f..ce9fd8469 100644--- a/pipelex/pipelex.toml+++ b/pipelex/pipelex.toml@@ -1,73 +1,41 @@+####################################################################################################+# Runtime — kernel-layer, process-scoped infrastructure (what runtime_hub brokers)+####################################################################################################+[runtime]-[pipelex]--[pipelex.storage_config]+[runtime.storage]is_fetch_remote_content_enabled = trueis_upload_local_content_enabled = truemethod = "local" # local, in_memory, s3, gcp-[pipelex.storage_config.local]+[runtime.storage.local]uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"local_storage_path = ".pipelex/storage"-[pipelex.storage_config.in_memory]+[runtime.storage.in_memory]uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"-[pipelex.storage_config.s3]+[runtime.storage.s3]uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"bucket_name = ""region = ""signed_urls_lifespan_seconds = 3600-[pipelex.storage_config.gcp]+[runtime.storage.gcp]uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"bucket_name = ""project_id = ""signed_urls_lifespan_seconds = 3600-[pipelex.secrets_config]+[runtime.secrets]method = "env" # env (built-in); an external plugin may add e.g. vault-[pipelex.observer_config]-observer_dir = "results/observer"--[pipelex.scan_config]-excluded_dirs = [- ".venv",- "venv",- "env",- ".env",- "virtualenv",- ".virtualenv",- ".git",- "__pycache__",- ".pytest_cache",- ".mypy_cache",- ".ruff_cache",- "node_modules",- "results",-]--[pipelex.builder_config]-fix_loop_max_attempts = 10-default_output_dir = "."-default_bundle_file_name = "bundle"-default_directory_base_name = "pipeline"--[pipelex.reporting_config]-is_log_costs_to_console = true-is_generate_cost_report_file_enabled = false-cost_report_dir_path = "reports"-cost_report_base_name = "cost_report"-cost_report_extension = "csv"-cost_report_unit_scale = 1.0-##################################################################################################### Log config####################################################################################################-[pipelex.log_config]+[runtime.log]default_log_level = "INFO"# console_log_target controls the RichHandler used by the logging system (log.debug/info/...).# Logs are diagnostics → stderr.@@ -94,7 +62,7 @@ log_mode = "rich"poor_loggers = []generic_poor_logger = "#poor-log"-[pipelex.log_config.package_log_levels]+[runtime.log.package_log_levels]# for logger names, the dots "." have been replaced by "-" to avoid toml parsing issues# TODO: use quotes to re-enable names with dotsanthropic = "INFO"@@ -112,7 +80,7 @@ urllib3-util-retry = "INFO"pipelex = "INFO"-[pipelex.log_config.rich_log_config]+[runtime.log.rich_log]is_show_time = falseis_show_level = trueis_link_path_enabled = true@@ -124,34 +92,65 @@ is_tracebacks_show_locals = falsetracebacks_suppress = []keywords_to_hilight = []-[pipelex.aws_config]+[runtime.aws]api_key_method = "env"bedrock_access_variant = "aws_access"+[runtime.reporting]+is_log_costs_to_console = true+is_generate_cost_report_file_enabled = false+cost_report_dir_path = "reports"+cost_report_base_name = "cost_report"+cost_report_extension = "csv"+cost_report_unit_scale = 1.0+####################################################################################################-# Cogt inference config+# Tracing config (event log for distributed tracing across workers)####################################################################################################-[cogt]+[runtime.tracing]+is_enabled = true+backend = "ndjson"++[runtime.tracing.ndjson]+traces_dir = ".pipelex/traces"++[runtime.tracing.dynamodb]+table_name = ""+region = ""++[runtime.observer]+observer_dir = "results/observer"++[runtime.plugins]+# Names of discovered plugins to skip at startup (a denylist). Discovery is the+# source of truth for which plugins are present; this only turns one off.+disabled = []++####################################################################################################+# Inference — the model-calling seam (was [cogt])+####################################################################################################++[inference]transport_max_retries = 2-[cogt.model_deck_config]+[inference.model_deck]is_model_fallback_enabled = truemissing_presets_reaction = "log"-[cogt.llm_config]+[inference.llm]default_max_images = 100is_structure_prompt_enabled = trueis_dump_text_prompts_enabled = falseis_dump_response_text_enabled = falseschema_reask_max_attempts = 3-[cogt.llm_config.instructor_config]+[inference.llm.instructor]is_dump_kwargs_enabled = falseis_dump_response_enabled = falseis_dump_error_enabled = false-[cogt.llm_config.openai_config.effort_to_level_map]+[inference.llm.openai.effort_to_level_map]none = "none"minimal = "minimal"low = "low"@@ -160,10 +159,10 @@ high = "high"xhigh = "xhigh"max = "xhigh"-[cogt.llm_config.anthropic_config]+[inference.llm.anthropic]structured_output_timeout_seconds = 1200-[cogt.llm_config.anthropic_config.effort_to_level_map]+[inference.llm.anthropic.effort_to_level_map]none = "disabled"minimal = "low"low = "low"@@ -172,7 +171,7 @@ high = "high"xhigh = "xhigh"max = "max"-[cogt.llm_config.google_config.effort_to_level_map]+[inference.llm.google.effort_to_level_map]none = "disabled"minimal = "minimal"low = "low"@@ -181,7 +180,7 @@ high = "high"xhigh = "high"max = "high"-[cogt.llm_config.mistral_config.effort_to_level_map]+[inference.llm.mistral.effort_to_level_map]none = "disabled"minimal = "reasoning"low = "reasoning"@@ -190,7 +189,7 @@ high = "reasoning"xhigh = "reasoning"max = "reasoning"-[cogt.llm_config.effort_to_budget_maps.anthropic]+[inference.llm.effort_to_budget_maps.anthropic]none = 0 # Required by validator; unreachable at runtime (level map gates NONE as disabled before budget lookup)minimal = 512low = 1024@@ -199,7 +198,7 @@ high = 16384xhigh = 32768max = 65536-[cogt.llm_config.effort_to_budget_maps.gemini]+[inference.llm.effort_to_budget_maps.gemini]none = 0 # Required by validator; unreachable at runtime (level map gates NONE as disabled before budget lookup)minimal = 512low = 1024@@ -208,7 +207,7 @@ high = 16384xhigh = 32768max = 65536-[cogt.llm_config.generic_templates]+[inference.llm.generic_templates]output_structure_prompt = """@@ -231,10 +230,10 @@ Read the following text carefully and produce the requested structured output fr# Image generation config####################################################################################################-[cogt.img_gen_config.img_gen_job_config]+[inference.img_gen.img_gen_job]is_sync_mode = false-[cogt.img_gen_config.img_gen_param_defaults]+[inference.img_gen.img_gen_param_defaults]nb_steps = 28 # 28 is a good default for Flux, possible values are [1,2,4,8] for SDXL Lightningquality = "low"aspect_ratio = "square" # "square", "landscape_4_3", "landscape_3_2", "landscape_16_9", "landscape_21_9", "landscape_4_1", "landscape_8_1", "portrait_3_4", "portrait_2_3", "portrait_9_16", "portrait_9_21", "portrait_1_4", "portrait_1_8"@@ -245,7 +244,7 @@ safety_tolerance = 5is_raw = falseseed = "auto"-[cogt.img_gen_config.quality_to_steps_maps]+[inference.img_gen.quality_to_steps_maps]flux = { "low" = 14, "medium" = 28, "high" = 56 }sdxl_lightning = { "low" = 2, "medium" = 4, "high" = 8 }qwen_image = { "low" = 10, "medium" = 20, "high" = 28 }@@ -254,14 +253,14 @@ qwen_image = { "low" = 10, "medium" = 20, "high" = 28 }# Extract config####################################################################################################-[cogt.extract_config]+[inference.extract]default_page_views_dpi = 72##################################################################################################### Gateway test config####################################################################################################-[cogt.gateway_test_config.config_id_substitutions]+[inference.gateway_test.config_id_substitutions]# this is an empty dict, it's only used by Pipelex staff to override the ¨Pipelex Gateway¨ config# in order to test new model integrations or debug issues with the Gateway@@ -269,21 +268,71 @@ default_page_views_dpi = 72# Templating config####################################################################################################-[pipelex.templating_config]+[inference.templating]default_templating_style = { tag_style = "xml" }+####################################################################################################+# Dry run config+####################################################################################################++[inference.dry_run]+text_gen_truncate_length = 256+nb_list_items = 3+nb_extract_pages = 4+allowed_to_fail_pipes = [+ "failing_pipelines.infinite_loop_1", # Loop but only for testing purposes — matched on the namespaced pipe_ref+]+image_urls = [+ "https://storage.googleapis.com/public_test_files_7fa6_4277_9ab/fashion/fashion_photo_1.jpg",+ "https://storage.googleapis.com/public_test_files_7fa6_4277_9ab/fashion/fashion_photo_2.png",+]++####################################################################################################+# Interpreter — library-scoped method machinery (what interpreter_hub brokers)+####################################################################################################++[interpreter]++####################################################################################################+# MTHDS config+####################################################################################################++[interpreter.mthds.inline_tables]+spaces_inside_curly_braces = true++[interpreter.mthds.strings]+prefer_literal = false+force_multiline = false+length_limit_to_multiline = 100+ensure_trailing_newline = true+ensure_leading_blank_line = true++[interpreter.mthds.concepts]+structure_field_ordering = [+ "type",+ "concept_ref",+ "item_type",+ "item_concept_ref",+ "description",+ "choices",+ "required",+]++[interpreter.mthds.pipes]+field_ordering = ["type", "description", "inputs", "output"]+##################################################################################################### Pipe run config####################################################################################################-[pipelex.pipe_run_config]+[interpreter.pipe_run]pipe_stack_limit = 20##################################################################################################### PipeFunc config####################################################################################################-[pipelex.pipe_func_config]+[interpreter.pipe_func]# PipeFunc execution mode, selected from the PipeFuncExecutorRegistry the plugins populate. "direct"# (core) imports and runs customer functions in this process; "daytona" (our Daytona sandbox plugin)# runs them in a remote box. Any non-"direct" mode carries customer PipeFunc code as source text and@@ -294,7 +343,7 @@ execution_mode = "direct"# Pipeline execution config####################################################################################################-[pipelex.pipeline_execution_config]+[interpreter.pipeline_execution]is_normalize_data_urls_to_storage = trueis_mock_inputs = falseis_generate_graph = true@@ -305,32 +354,32 @@ is_generate_usage = true# asyncio, memory, and provider rate limits. Set to "unbounded" to disable the bound.max_concurrency = 8-[pipelex.pipeline_execution_config.graph_config]+[interpreter.pipeline_execution.graph]-[pipelex.pipeline_execution_config.graph_config.data_inclusion]+[interpreter.pipeline_execution.graph.data_inclusion]stuff_json_content = truestuff_text_content = truestuff_html_content = trueerror_stack_traces = truepipe_and_concept_registry = true-[pipelex.pipeline_execution_config.graph_config.graphs_inclusion]+[interpreter.pipeline_execution.graph.graphs_inclusion]graphspec_json = truemermaidflow_mmd = truemermaidflow_html = truereactflow_html = true-[pipelex.pipeline_execution_config.graph_config.mermaid_config]+[interpreter.pipeline_execution.graph.mermaid]direction = "left_to_right"is_include_data_edges = trueis_include_contains_edges = falseis_include_selected_outcome_edges = trueis_show_stuff_codes = false-[pipelex.pipeline_execution_config.graph_config.mermaid_config.style]+[interpreter.pipeline_execution.graph.mermaid.style]theme = "dark"-[pipelex.pipeline_execution_config.graph_config.reactflow_config]+[interpreter.pipeline_execution.graph.reactflow]is_use_cdn = truelayout_direction = "left_to_right"nodesep = 50@@ -344,109 +393,40 @@ default_title = "Pipelex Graph"# when false, they collapse out of the graph and edges connect stuff nodes directly.show_batch_controller = true-[pipelex.pipeline_execution_config.graph_config.reactflow_config.style]+[interpreter.pipeline_execution.graph.reactflow.style]theme = "dark"palette = "dracula"-####################################################################################################-# Tracing config (event log for distributed tracing across workers)-####################################################################################################--[pipelex.tracing_config]-is_enabled = true-backend = "ndjson"--[pipelex.tracing_config.ndjson]-traces_dir = ".pipelex/traces"--[pipelex.tracing_config.dynamodb]-table_name = ""-region = ""--####################################################################################################-# Dry run config-####################################################################################################--[pipelex.dry_run_config]-text_gen_truncate_length = 256-nb_list_items = 3-nb_extract_pages = 4-allowed_to_fail_pipes = [- "failing_pipelines.infinite_loop_1", # Loop but only for testing purposes — matched on the namespaced pipe_ref-]-image_urls = [- "https://storage.googleapis.com/public_test_files_7fa6_4277_9ab/fashion/fashion_photo_1.jpg",- "https://storage.googleapis.com/public_test_files_7fa6_4277_9ab/fashion/fashion_photo_2.png",-]--####################################################################################################-# MTHDS config-####################################################################################################--[pipelex.mthds_config.inline_tables]-spaces_inside_curly_braces = true--[pipelex.mthds_config.strings]-prefer_literal = false-force_multiline = false-length_limit_to_multiline = 100-ensure_trailing_newline = true-ensure_leading_blank_line = true--[pipelex.mthds_config.concepts]-structure_field_ordering = [- "type",- "concept_ref",- "item_type",- "item_concept_ref",- "description",- "choices",- "required",+[interpreter.scan]+excluded_dirs = [+ ".venv",+ "venv",+ "env",+ ".env",+ "virtualenv",+ ".virtualenv",+ ".git",+ "__pycache__",+ ".pytest_cache",+ ".mypy_cache",+ ".ruff_cache",+ "node_modules",+ "results",]-[pipelex.mthds_config.pipes]-field_ordering = ["type", "description", "inputs", "output"]--####################################################################################################-# Migration config-####################################################################################################--[migration.migration_maps.config]-definition = "description"-ocr_config = "extract_config"-ocr = "extract"-img_gen = "model"-llm_handle = "model"-llm = "model"-llm_to_structure = "model_to_structure"-task_queue = "default_task_queue"--[migration.migration_maps.mthds]-img_gen = "model"-ocr = "model"-llm_handle = "model"-llm = "model"-llm_to_structure = "model_to_structure"-llm_skill = "llm_talent"-img_gen_skill = "img_gen_talent"-extract_skill = "extract_talent"-parallels = "branches"-+[interpreter.builder]+fix_loop_max_attempts = 10+default_output_dir = "."+default_bundle_file_name = "bundle"+default_directory_base_name = "pipeline"##################################################################################################### Kit Config####################################################################################################-[pipelex.kit_config]+[kit]# Agent rule files to install (used by `pipelex-dev kit rules`)# Each entry is one of: "cursor", "agents", "claude"# - "cursor" installs .cursor/rules/*.mdc files (cannot be combined with others)# - "agents" / "claude" install AGENTS.md / CLAUDE.md respectively — both can be listed togetherpreferred_agent_targets = ["claude", "agents"]--[migration.migration_maps.telemetry]--[plugins]-# Names of discovered plugins to skip at startup (a denylist). Discovery is the-# source of truth for which plugins are present; this only turns one off.-disabled = []diff --git a/pipelex/pipeline/bundle_graph_rendering.py b/pipelex/pipeline/bundle_graph_rendering.pyindex f549a2cfc..ed6630eac 100644--- a/pipelex/pipeline/bundle_graph_rendering.py+++ b/pipelex/pipeline/bundle_graph_rendering.py@@ -101,7 +101,7 @@ async def generate_graph_for_bundle("""graph_spec, resolved_pipe_code = await _dry_run_bundle(bundle_path, library_dirs=library_dirs, pipe_code=pipe_code)- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=True,mock_inputs=True,)@@ -122,7 +122,7 @@ async def generate_graph_for_bundle(output_dir = bundle_path.parentsaved_files = await render_graph_from_spec(graph_spec=graph_spec,- graph_config=execution_config.graph_config,+ graph_config=execution_config.graph,include_mermaidflow=include_mermaidflow,include_reactflow=include_reactflow,output_dir=output_dir,@@ -174,11 +174,11 @@ async def generate_view_for_bundle("""graph_spec, resolved_pipe_code = await _dry_run_bundle(bundle_path, library_dirs=library_dirs, pipe_code=pipe_code)- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=True,mock_inputs=True,)- rf_config = execution_config.graph_config.reactflow_config+ rf_config = execution_config.graph.reactfloweffective_direction = direction or rf_config.layout_directionreturn {diff --git a/pipelex/pipeline/bundle_validator.py b/pipelex/pipeline/bundle_validator.pyindex 1becd5c7b..d2fe6d78b 100644--- a/pipelex/pipeline/bundle_validator.py+++ b/pipelex/pipeline/bundle_validator.py@@ -233,7 +233,7 @@ class BundleValidator:# rides on PipeOutput) the sweep accumulates no per-run state on the process-global reporting# manager, so overlapping sweeps (e.g. concurrent `/validate` API requests) cannot collide.# Mock inputs are built by prepare_pipe_job from this DRY + is_mock_inputs config.- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,mock_inputs=True,)@@ -304,7 +304,7 @@ class BundleValidator:A single ``allowed_to_fail`` match on the namespaced ``pipe_ref`` (the dict key). Collect-all,not first-failure-abort: every non-allowed failure is reported in one error."""- allowed_to_fail_pipes = get_config().pipelex.dry_run_config.allowed_to_fail_pipes+ allowed_to_fail_pipes = get_config().inference.dry_run.allowed_to_fail_pipes# Only the failed refs feed logic (the allowed_to_fail match); success/skipped counts are# log-only, so derive them inline rather than accumulating dead lists.diff --git a/pipelex/pipeline/dry_run_pipeline.py b/pipelex/pipeline/dry_run_pipeline.pyindex 6808a56c9..2dabd9013 100644--- a/pipelex/pipeline/dry_run_pipeline.py+++ b/pipelex/pipeline/dry_run_pipeline.py@@ -72,7 +72,7 @@ async def dry_run_pipeline(msg = "Bundle does not declare a main_pipe, cannot generate graph"raise MthdsParserError(msg)- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=True,mock_inputs=True,)diff --git a/pipelex/pipeline/fixes/fix_loop.py b/pipelex/pipeline/fixes/fix_loop.pyindex 0786f4242..2e00f9f80 100644--- a/pipelex/pipeline/fixes/fix_loop.py+++ b/pipelex/pipeline/fixes/fix_loop.py@@ -402,7 +402,7 @@ async def fix_bundle_file(rules may apply (see ``_safe_fixes``); the CLI validates the codes before calling."""if max_iterations is None:- max_iterations = get_config().pipelex.builder_config.fix_loop_max_attempts+ max_iterations = get_config().interpreter.builder.fix_loop_max_attemptsentry_source_path = _absolute_source_path(mthds_file_path)entry_path = entry_source_path.resolve()effective_dirs, _ = resolve_library_dirs(library_dirs)diff --git a/pipelex/pipeline/input_normalizer.py b/pipelex/pipeline/input_normalizer.pyindex 045e3f746..6383f95bd 100644--- a/pipelex/pipeline/input_normalizer.py+++ b/pipelex/pipeline/input_normalizer.py@@ -223,7 +223,7 @@ async def _normalize_url_content(})elif isinstance(resolved_uri, ResolvedLocalPath):- if not get_config().pipelex.storage_config.is_upload_local_content_enabled:+ if not get_config().runtime.storage.is_upload_local_content_enabled:return content# Read local file, detect type, upload to storage. OSError coversdiff --git a/pipelex/pipeline/pipeline_run_setup.py b/pipelex/pipeline/pipeline_run_setup.pyindex 3d34705f7..57a9081c5 100644--- a/pipelex/pipeline/pipeline_run_setup.py+++ b/pipelex/pipeline/pipeline_run_setup.py@@ -220,7 +220,7 @@ async def pipeline_run_setup(# Create the event log when tracing is enabled — it is the shared transport for both graph# (node/edge) events and usage (cost) events.config = get_config()- tracing_config = config.pipelex.tracing_config+ tracing_config = config.runtime.tracing# A scoped override (see hub.scoped_event_log) is the run's transport and implies# tracing-enabled (D1); otherwise build the configured backend when tracing is on.event_log = get_event_log_override()@@ -232,7 +232,7 @@ async def pipeline_run_setup(# the correct values — no post-hoc model_copy. Propagated to child contexts via copy_for_child.trace_context = graph_tracer_manager.open_tracer(graph_id=pipeline_run_id,- data_inclusion=execution_config.graph_config.data_inclusion,+ data_inclusion=execution_config.graph.data_inclusion,pipeline_ref_domain=pipe.domain_code,pipeline_ref_main_pipe=pipe_code,# D5: in costs-only mode (--no-graph --costs) pass event_log=None so the tracer accumulatesdiff --git a/pipelex/pipeline/runner.py b/pipelex/pipeline/runner.pyindex b5d85721d..432395a57 100644--- a/pipelex/pipeline/runner.py+++ b/pipelex/pipeline/runner.py@@ -193,7 +193,7 @@ class PipelexMTHDSProtocol(MTHDSProtocol["PipeOutput"]):created_at = datetime.now(UTC).isoformat()# Use provided config or get default- execution_config = self.execution_config or get_config().pipelex.pipeline_execution_config+ execution_config = self.execution_config or get_config().interpreter.pipeline_execution# Cast inputs: the protocol accepts WorkingMemoryAbstract but pipelex expects WorkingMemorypipelex_inputs: PipelineInputs | WorkingMemory | None = cast("PipelineInputs | WorkingMemory | None", inputs)diff --git a/pipelex/plugins/contract.py b/pipelex/plugins/contract.pyindex 533b44527..34cf6d7ae 100644--- a/pipelex/plugins/contract.py+++ b/pipelex/plugins/contract.py@@ -13,7 +13,7 @@ if TYPE_CHECKING:# HTTP error response).## v3 added ``add_storage_provider`` and ``add_secrets_provider`` — two config-selected,-# process-global provider registries (``storage_config.method`` / ``secrets_config.method`` pick+# process-global provider registries (``runtime.storage.method`` / ``runtime.secrets.method`` pick# the factory at boot). DX-1 batches both menu additions under this single bump so external plugins# re-declare ``targets_api`` only once.#diff --git a/pipelex/plugins/discovery.py b/pipelex/plugins/discovery.pyindex 0c61661aa..c1321d74a 100644--- a/pipelex/plugins/discovery.py+++ b/pipelex/plugins/discovery.py@@ -43,6 +43,7 @@ class GroupedEntryPoint(NamedTuple):def build_registrar(*,config: "PipelexConfig",+ boot_orchestrator: str | None,builtin_plugins: "Sequence[PipelexPlugin]",core_unconditional_plugin_names: frozenset[str],entry_point_groups: "Sequence[PluginGroup]",@@ -53,14 +54,17 @@ def build_registrar(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 theexternal entry points published under ``entry_point_groups``; version-checks each; skips (and- logs) any plugin named in ``config.plugins.disabled`` — externals are denylisted by their+ logs) any plugin named in ``config.runtime.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, a kernel-group plugin reaching the interpreter tier).Args:- config: The fully-resolved config; supplies the ``plugins.disabled`` denylist and is handed- to the registrar for the plugins that read it.+ config: The fully-resolved config; supplies the ``runtime.plugins.disabled`` denylist and is+ handed to the registrar for the plugins that read it.+ boot_orchestrator: The orchestrator plugin this process boots under, or ``None`` for+ in-process execution. A boot argument rather than a setting — no TOML names it — so it+ travels as a parameter and is exposed on the registrar for the slot-claim gate to match.builtin_plugins: The built-ins to discover, in order. Injected rather than imported: somebuilt-ins adapt interpreter-layer ports, and this module is kernel-layer, so importingthe list here would put the method interpreter back into every kernel closure. The@@ -76,8 +80,8 @@ def build_registrar(imported — which is what a kernel-only trust-base claim actually rests on."""_reject_retired_entry_point_group()- registrar = PluginRegistrar(config=config)- disabled = set(config.plugins.disabled)+ registrar = PluginRegistrar(config=config, boot_orchestrator=boot_orchestrator)+ disabled = set(config.runtime.plugins.disabled)# Built-ins are already instantiated, so their name is known up front. They carry no group: they# are filed by layer in-tree, and the caller passes only the halves its layer may run.@@ -145,7 +149,7 @@ def _skip_if_disabled(return Falseif name in core_unconditional_plugin_names:raise CoreUnconditionalPluginDisabledError(plugin_name=name)- log.info(f"Plugin '{name}' is disabled via plugins.disabled; skipping.")+ log.info(f"Plugin '{name}' is disabled via runtime.plugins.disabled; skipping.")registrar.discoveries.append(PluginDiscovery(name=name,@@ -153,7 +157,7 @@ def _skip_if_disabled(status=PluginStatus.DISABLED,targets_api=targets_api,group=group,- detail="disabled via plugins.disabled",+ detail="disabled via runtime.plugins.disabled",))return Truediff --git a/pipelex/plugins/exceptions.py b/pipelex/plugins/exceptions.pyindex 11a6fd892..efe921f56 100644--- a/pipelex/plugins/exceptions.py+++ b/pipelex/plugins/exceptions.py@@ -28,7 +28,7 @@ class InferenceBackendNotFoundError(PluginError):Raised by the family worker factories on a registry-lookup miss — typically amodel whose backend plugin is not installed or was disabled via- ``plugins.disabled``.+ ``runtime.plugins.disabled``."""def __init__(self, *, family: str, sdk: str):@@ -166,11 +166,11 @@ class HubSlotAlreadyClaimedError(PluginError):class CoreUnconditionalPluginDisabledError(PluginError):- """A plugin that core requires unconditionally was named in plugins.disabled."""+ """A plugin that core requires unconditionally was named in ``runtime.plugins.disabled``."""def __init__(self, *, plugin_name: str):self.plugin_name = plugin_name- message = f"Plugin '{plugin_name}' is required by core and cannot be disabled via plugins.disabled. Remove it from the denylist."+ message = f"Plugin '{plugin_name}' is required by core and cannot be disabled via runtime.plugins.disabled. Remove it from the denylist."super().__init__(message)@@ -273,12 +273,12 @@ class BrokenPluginError(PluginError):class UnknownBootOrchestratorError(PluginError):"""An explicit boot orchestrator was requested, but no plugin of that name is registered.- ``plugins.boot_orchestrator`` (set via the CLI ``--orchestrator`` flag or- ``Pipelex.setup(boot_orchestrator=...)``) names the *plugin* this process should boot under:- a boot-orchestrator plugin claims the process-global hub slots iff- ``plugins.boot_orchestrator == its own name``. When no discovered, registered plugin carries- that name — the plugin is not installed, was disabled via ``plugins.disabled``, or the name is- a typo — nothing claims the slots and execution would silently fall back to the in-process core+ The boot orchestrator (a boot argument, set via the CLI ``--orchestrator`` flag or+ ``Pipelex.setup(boot_orchestrator=...)``; never a ``pipelex.toml`` setting) names the *plugin*+ this process should boot under: a boot-orchestrator plugin claims the process-global hub slots+ iff ``boot_orchestrator == its own name``. When no discovered, registered plugin carries that+ name — the plugin is not installed, was disabled via ``runtime.plugins.disabled``, or the name+ is a typo — nothing claims the slots and execution would silently fall back to the in-process coredefaults. We fail loud at boot instead. The message names no specific plugin, so core staysdecoupled from its plugins."""@@ -291,7 +291,7 @@ class UnknownBootOrchestratorError(PluginError):self.requested = requestedmessage = (f"Boot orchestrator '{requested}' was requested, but no plugin named '{requested}' is registered "- "(its plugin may not be installed, may be disabled via plugins.disabled, or the name may be a typo). "+ "(its plugin may not be installed, may be disabled via runtime.plugins.disabled, or the name may be a typo). ""Core provides only in-process execution; booting under a distributed orchestrator requires installing its plugin.")super().__init__(message)@@ -300,10 +300,10 @@ class UnknownBootOrchestratorError(PluginError):class UnknownStorageMethodError(PluginError):"""A configured storage method has no registered provider factory.- ``storage_config.method`` selects a storage provider from the registry the built-in+ ``runtime.storage.method`` selects a storage provider from the registry the built-in``StoragePlugin`` (and any external ``pipelex-storage-<backend>`` plugin) populates. Whenthe token names no registered factory — a typo, or an external provider plugin that is not- installed or was disabled via ``plugins.disabled`` — boot fails loud here rather than+ installed or was disabled via ``runtime.plugins.disabled`` — boot fails loud here rather thanstarting with no storage. The message lists the registered methods so the fix is obvious."""@@ -317,7 +317,7 @@ class UnknownStorageMethodError(PluginError):available = ", ".join(sorted(registered_methods)) or "(none)"message = (f"No storage provider is registered for method '{method}'. Registered methods: {available}. "- "Check storage_config.method, or install/enable the plugin that provides that method."+ "Check runtime.storage.method, or install/enable the plugin that provides that method.")super().__init__(message)@@ -325,10 +325,10 @@ class UnknownStorageMethodError(PluginError):class UnknownPipeFuncExecutionModeError(PluginError):"""A configured PipeFunc execution mode has no registered executor factory.- ``pipe_func_config.execution_mode`` selects a PipeFunc executor from the registry the built-in+ ``interpreter.pipe_func.execution_mode`` selects a PipeFunc executor from the registry the built-in``PipeFuncPlugin`` (``direct``) and any external sandbox plugin (e.g.our Daytona plugin → ``daytona``) populate. When the token names no registered factory —- a typo, or a sandbox-backend plugin that is not installed or was disabled via ``plugins.disabled`` —+ a typo, or a sandbox-backend plugin that is not installed or was disabled via ``runtime.plugins.disabled`` —boot fails loud here rather than starting with no PipeFunc executor. The message lists theregistered modes so the fix is obvious."""@@ -343,7 +343,7 @@ class UnknownPipeFuncExecutionModeError(PluginError):available = ", ".join(sorted(registered_modes)) or "(none)"message = (f"No PipeFunc executor is registered for execution mode '{mode}'. Registered modes: {available}. "- "Check pipe_func_config.execution_mode, or install/enable the plugin that provides that mode."+ "Check interpreter.pipe_func.execution_mode, or install/enable the plugin that provides that mode.")super().__init__(message)@@ -351,10 +351,10 @@ class UnknownPipeFuncExecutionModeError(PluginError):class UnknownSecretsMethodError(PluginError):"""A configured secrets method has no registered provider factory.- ``secrets_config.method`` selects a secrets provider from the registry the built-in+ ``runtime.secrets.method`` selects a secrets provider from the registry the built-in``SecretsPlugin`` (and any external ``pipelex-secrets-<backend>`` plugin) populates. Whenthe token names no registered factory — a typo, or an external provider plugin that is not- installed or was disabled via ``plugins.disabled`` — boot fails loud here rather than+ installed or was disabled via ``runtime.plugins.disabled`` — boot fails loud here rather thanstarting with no secrets provider. The message lists the registered methods so the fix is obvious."""@@ -368,6 +368,6 @@ class UnknownSecretsMethodError(PluginError):available = ", ".join(sorted(registered_methods)) or "(none)"message = (f"No secrets provider is registered for method '{method}'. Registered methods: {available}. "- "Check secrets_config.method, or install/enable the plugin that provides that method."+ "Check runtime.secrets.method, or install/enable the plugin that provides that method.")super().__init__(message)diff --git a/pipelex/plugins/pipe_func_executor_registry.py b/pipelex/plugins/pipe_func_executor_registry.pyindex bf6f3d3a8..25328d218 100644--- a/pipelex/plugins/pipe_func_executor_registry.py+++ b/pipelex/plugins/pipe_func_executor_registry.py@@ -30,7 +30,7 @@ class PipeFuncExecutorRegistry:Keyed by the open ``execution_mode`` token (a ``str``; core owns ``direct``, an external pluginregisters e.g. ``"daytona"``). Built onceat boot from the registrar's accumulated ``pipe_func_executors`` and stored on the hub; core reads- ``pipe_func_config.execution_mode`` and calls the looked-up factory to produce the one executor set+ ``interpreter.pipe_func.execution_mode`` and calls the looked-up factory to produce the one executor seton the hub. This is the config-selected-singleton sibling of ``StorageProviderRegistry`` — thePipeFunc execution axis, orthogonal to the orchestration axis (a ``temporal`` boot still resolvesits executor mode through this registry on the worker side).diff --git a/pipelex/plugins/registrar.py b/pipelex/plugins/registrar.pyindex f0eec1b30..7928a4aef 100644--- a/pipelex/plugins/registrar.py+++ b/pipelex/plugins/registrar.py@@ -145,8 +145,13 @@ class PluginRegistrar:All duplicate detection is fail-loud and names both contributing plugins."""- def __init__(self, *, config: "PipelexConfig"):+ def __init__(self, *, config: "PipelexConfig", boot_orchestrator: str | None = None):self.config = config+ # The orchestrator plugin this process boots under, or ``None``. A boot argument, not a+ # setting: it arrives from ``build_registrar`` rather than off ``config``, so a plugin's+ # ``register`` gates on ``registrar.boot_orchestrator == self.name``. Defaulted so a focused+ # unit test can build a registrar without naming one.+ self.boot_orchestrator = boot_orchestratorself.inference_backends: dict[tuple[InferenceFamily, str], MakeWorkerFn] = {}self.model_listers: dict[str, ListModelsFn] = {}self.orchestrators: dict[OrchestrationMode, OrchestratorProtocol] = {}@@ -242,7 +247,7 @@ class PluginRegistrar:The built-in ``StoragePlugin`` registers the ``local`` / ``in_memory`` / ``s3`` / ``gcp``methods; an external ``pipelex-storage-<backend>`` plugin registers its own token (e.g.- ``"azure"``). Boot reads ``storage_config.method`` and calls the looked-up factory to+ ``"azure"``). Boot reads ``runtime.storage.method`` and calls the looked-up factory toproduce the one storage provider set on the hub. ``factory`` is invoked at that bootapply-point, never here — so a factory may do heavy work (SDK import, a hub secrets read)while ``register`` stays import-light. Fail-loud on a duplicate method, naming both plugins.@@ -263,7 +268,7 @@ class PluginRegistrar:The built-in ``SecretsPlugin`` registers the ``env`` method; an external``pipelex-secrets-<backend>`` plugin registers its own token (e.g. ``"vault"``). Boot reads- ``secrets_config.method`` and calls the looked-up factory to produce the one secrets provider+ ``runtime.secrets.method`` and calls the looked-up factory to produce the one secrets providerset on the hub. ``factory`` is invoked at that boot apply-point, never here — so a factory maydo heavy work (SDK import) while ``register`` stays import-light. Fail-loud on a duplicatemethod, naming both plugins.@@ -284,7 +289,7 @@ class PluginRegistrar:The built-in ``PipeFuncPlugin`` registers ``direct`` (in-process); an external sandbox plugin(e.g. our Daytona plugin) registers its own token- (e.g. ``"daytona"``). Boot reads ``pipe_func_config.execution_mode`` and calls the looked-up+ (e.g. ``"daytona"``). Boot reads ``interpreter.pipe_func.execution_mode`` and calls the looked-upfactory to produce the one PipeFunc executor set on the hub. ``factory`` is invoked at that bootapply-point, never here — so a factory may do heavy work (SDK import, config self-load) while``register`` stays import-light. This is the PipeFunc-execution axis, orthogonal to the@@ -354,7 +359,7 @@ class PluginRegistrar:def registered_plugin_names(self) -> set[str]:"""Names of plugins that discovered and registered successfully.- The authoritative namespace the ``plugins.boot_orchestrator`` gate matches against: a+ The authoritative namespace the ``boot_orchestrator`` gate matches against: aboot-orchestrator plugin claims its hub slots iff ``boot_orchestrator == its own name``.Disabled/broken discoveries are excluded — they never run ``register`` and so never claim aslot, making them invalid boot-orchestrator targets.diff --git a/pipelex/plugins/secrets_provider_registry.py b/pipelex/plugins/secrets_provider_registry.pyindex 16f39ecdc..e17bfa1e8 100644--- a/pipelex/plugins/secrets_provider_registry.py+++ b/pipelex/plugins/secrets_provider_registry.py@@ -16,7 +16,7 @@ class SecretsProviderRegistry:Keyed by the open secrets ``method`` token (a ``str``; the built-in ``SecretsPlugin`` registers``"env"``, an external plugin registers e.g. ``"vault"``). Built once at boot from the registrar's- accumulated ``secrets_providers`` and stored on the hub; core reads ``secrets_config.method`` and+ accumulated ``secrets_providers`` and stored on the hub; core reads ``runtime.secrets.method`` andcalls the looked-up factory to produce the one provider. Mirrors ``StorageProviderRegistry``."""diff --git a/pipelex/plugins/storage_provider_registry.py b/pipelex/plugins/storage_provider_registry.pyindex d49150875..95ca8af14 100644--- a/pipelex/plugins/storage_provider_registry.py+++ b/pipelex/plugins/storage_provider_registry.py@@ -16,7 +16,7 @@ class StorageProviderRegistry:Keyed by the open storage ``method`` token (a ``str``; the built-ins keep the``StorageMethod`` values, an external plugin registers e.g. ``"azure"``). Built once atboot from the registrar's accumulated ``storage_providers`` and stored on the hub; core- reads ``storage_config.method`` and calls the looked-up factory to produce the one provider.+ reads ``runtime.storage.method`` and calls the looked-up factory to produce the one provider."""def __init__(self, storage_providers: dict[str, StorageProviderFactoryFn]):diff --git a/pipelex/providers/anthropic/anthropic_factory.py b/pipelex/providers/anthropic/anthropic_factory.pyindex 0b2c9f01f..2d0f94cc6 100644--- a/pipelex/providers/anthropic/anthropic_factory.py+++ b/pipelex/providers/anthropic/anthropic_factory.py@@ -48,7 +48,7 @@ class AnthropicFactory:# Tier 1 transport retry: set the SDK client's retry budget explicitly from config# instead of inheriting the silent SDK default (anthropic's own DEFAULT_MAX_RETRIES).- transport_max_retries = get_config().cogt.transport_max_retries+ transport_max_retries = get_config().inference.transport_max_retriesmatch sdk_variant:case AnthropicSdkVariant.ANTHROPIC:@@ -58,7 +58,7 @@ class AnthropicFactory:max_retries=transport_max_retries,)case AnthropicSdkVariant.BEDROCK_ANTHROPIC:- aws_config = get_config().pipelex.aws_config+ aws_config = get_config().runtime.awsmatch aws_config.bedrock_access_variant:case BedrockAccessVariant.AWS_ACCESS:aws_access_key_id, aws_secret_access_key, aws_region = aws_config.get_aws_access_keys()diff --git a/pipelex/providers/anthropic/anthropic_llm_worker.py b/pipelex/providers/anthropic/anthropic_llm_worker.pyindex 6092c04f5..1cd7e14ef 100644--- a/pipelex/providers/anthropic/anthropic_llm_worker.py+++ b/pipelex/providers/anthropic/anthropic_llm_worker.py@@ -58,7 +58,7 @@ class _ThinkingParams:class AnthropicLLMWorker(LLMWorkerAbstract):- # Key into cogt.llm_config.effort_to_budget_maps for manual-thinking budget resolution+ # Key into inference.llm.effort_to_budget_maps for manual-thinking budget resolutionreasoning_budget_family: ClassVar[str] = "anthropic"def __init__(@@ -100,7 +100,7 @@ class AnthropicLLMWorker(LLMWorkerAbstract):else:self.instructor_for_objects = from_anthropic(client=sdk_instance)- instructor_config = get_config().cogt.llm_config.instructor_config+ instructor_config = get_config().inference.llm.instructorif instructor_config.is_dump_kwargs_enabled:self.instructor_for_objects.on(hook_name="completion:kwargs", handler=dump_kwargs)if instructor_config.is_dump_response_enabled:@@ -155,7 +155,7 @@ class AnthropicLLMWorker(LLMWorkerAbstract):"""Build thinking params when reasoning_effort is specified."""match thinking_mode:case ThinkingMode.ADAPTIVE:- anthropic_effort = get_config().cogt.llm_config.anthropic_config.get_reasoning_level(effort=effort)+ anthropic_effort = get_config().inference.llm.anthropic.get_reasoning_level(effort=effort)if anthropic_effort is None:# NONE effort means don't enable thinking at allreturn _ThinkingParams(@@ -172,7 +172,7 @@ class AnthropicLLMWorker(LLMWorkerAbstract):suppress_temperature=True,)case ThinkingMode.MANUAL:- anthropic_effort = get_config().cogt.llm_config.anthropic_config.get_reasoning_level(effort=effort)+ anthropic_effort = get_config().inference.llm.anthropic.get_reasoning_level(effort=effort)if anthropic_effort is None:# NONE effort means don't enable thinkingreturn _ThinkingParams(@@ -180,7 +180,7 @@ class AnthropicLLMWorker(LLMWorkerAbstract):output_config=None,suppress_temperature=False,)- budget = get_config().cogt.llm_config.get_reasoning_budget(+ budget = get_config().inference.llm.get_reasoning_budget(family=self.reasoning_budget_family,effort=effort,)@@ -316,7 +316,7 @@ class AnthropicLLMWorker(LLMWorkerAbstract):messages = await AnthropicFactory.make_simple_messages(llm_job=llm_job)# Get Anthropic-specific config for structured output- anthropic_config = get_config().cogt.llm_config.anthropic_config+ anthropic_config = get_config().inference.llm.anthropictimeout_seconds = anthropic_config.structured_output_timeout_seconds# Calculate safe max_tokens based on timeoutdiff --git a/pipelex/providers/azure_rest/azure_img_gen_worker.py b/pipelex/providers/azure_rest/azure_img_gen_worker.pyindex 4bc8841ba..01d4bb6c4 100644--- a/pipelex/providers/azure_rest/azure_img_gen_worker.py+++ b/pipelex/providers/azure_rest/azure_img_gen_worker.py@@ -172,7 +172,7 @@ class AzureImgGenWorker(ImgGenWorkerAbstract):# delivered (connect / pool errors), or Azure rejected it before generating (408 / 429).response = await request_with_transport_retry(send_request=_post_image_request,- max_retries=get_config().cogt.transport_max_retries,+ max_retries=get_config().inference.transport_max_retries,retry_on_ambiguous_failure=False,)except httpx.HTTPStatusError as exc:diff --git a/pipelex/providers/bedrock/bedrock_list.py b/pipelex/providers/bedrock/bedrock_list.pyindex 0805dc3aa..bc9666694 100644--- a/pipelex/providers/bedrock/bedrock_list.py+++ b/pipelex/providers/bedrock/bedrock_list.py@@ -44,7 +44,7 @@ def list_bedrock_models(try:# Get AWS region for display- aws_config = get_config().pipelex.aws_config+ aws_config = get_config().runtime.aws_, _, aws_region = aws_config.get_aws_access_keys()except AwsCredentialsError as exc:msg = f"Error getting AWS credentials for Bedrock: {exc}"diff --git a/pipelex/providers/bedrock/bedrock_llms.py b/pipelex/providers/bedrock/bedrock_llms.pyindex 0d0c9278c..f7943648c 100644--- a/pipelex/providers/bedrock/bedrock_llms.py+++ b/pipelex/providers/bedrock/bedrock_llms.py@@ -26,7 +26,7 @@ def bedrock_list_available_models(MissingDependencyError: If boto3 is not installed"""try:- aws_config = get_config().pipelex.aws_config+ aws_config = get_config().runtime.awsaws_access_key_id, aws_secret_access_key, aws_region = aws_config.get_aws_access_keys()except AwsCredentialsError as exc:msg = f"Error getting AWS credentials for Bedrock: {exc}"diff --git a/pipelex/providers/builtins.py b/pipelex/providers/builtins.pyindex 74c011b4b..d5a0febf8 100644--- a/pipelex/providers/builtins.py+++ b/pipelex/providers/builtins.py@@ -52,10 +52,10 @@ KERNEL_BUILTIN_PLUGINS: list[PipelexPlugin] = [LinkupPlugin(),]-# Kernel-layer built-ins that core requires unconditionally — naming one in ``plugins.disabled`` is a+# Kernel-layer built-ins that core requires unconditionally — naming one in ``runtime.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+# (``runtime.storage.method`` must resolve to a registered factory or boot fails loud); ``secrets``+# supplies the built-in ``env`` secrets backend (``runtime.secrets.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``.diff --git a/pipelex/providers/gateway/gateway_completions_factory.py b/pipelex/providers/gateway/gateway_completions_factory.pyindex 430a1a9ad..0e8742352 100644--- a/pipelex/providers/gateway/gateway_completions_factory.py+++ b/pipelex/providers/gateway/gateway_completions_factory.py@@ -126,7 +126,7 @@ class GatewayCompletionsFactory(OpenAICompletionsFactory):api_key="unused-auth-via-portkey-headers",# Tier 1 transport retry: set explicitly from config rather than inheriting the SDK default,# so a transport_max_retries override applies to the gateway LLM path too (matches PortkeyCompletionsFactory).- max_retries=get_config().cogt.transport_max_retries,+ max_retries=get_config().inference.transport_max_retries,default_headers=createHeaders(api_key=api_key,strict_open_ai_compliance=False,diff --git a/pipelex/providers/gateway/gateway_deck.py b/pipelex/providers/gateway/gateway_deck.pyindex 8a3200a4a..925151a4e 100644--- a/pipelex/providers/gateway/gateway_deck.py+++ b/pipelex/providers/gateway/gateway_deck.py@@ -11,7 +11,7 @@ class GatewayDeck:if not config_id:msg = f"Could not get '{PortkeyHeaderKey.CONFIG}' field from headers"raise GatewayDeckError(msg)- config_id_substitutions = get_config().cogt.gateway_test_config.config_id_substitutions+ config_id_substitutions = get_config().inference.gateway_test.config_id_substitutionsif config_id_substitutions and (substitute := config_id_substitutions.get(config_id)) and substitute != config_id:log.warning(f"Substituting config ID '{config_id}' with '{substitute}'")return substitutediff --git a/pipelex/providers/gateway/gateway_responses_factory.py b/pipelex/providers/gateway/gateway_responses_factory.pyindex 95366132d..89d3e59a0 100644--- a/pipelex/providers/gateway/gateway_responses_factory.py+++ b/pipelex/providers/gateway/gateway_responses_factory.py@@ -44,7 +44,7 @@ class GatewayResponsesFactory(OpenAIResponsesFactory):api_key="unused-auth-via-portkey-headers",# Tier 1 transport retry: set explicitly from config rather than inheriting the SDK default,# so a transport_max_retries override applies to the gateway LLM path too (matches PortkeyResponsesFactory).- max_retries=get_config().cogt.transport_max_retries,+ max_retries=get_config().inference.transport_max_retries,default_headers=createHeaders(api_key=api_key,debug=is_debug_enabled,diff --git a/pipelex/providers/google/google_factory.py b/pipelex/providers/google/google_factory.pyindex 04627d3f0..950d97fbd 100644--- a/pipelex/providers/google/google_factory.py+++ b/pipelex/providers/google/google_factory.py@@ -23,7 +23,7 @@ class GoogleFactory:# Tier 1 transport retry: the Google GenAI SDK does NOT retry transient transport failures# unless retry_options is set. Wire it explicitly from config so it matches the other# SDK-backed workers. HttpRetryOptions.attempts counts the original attempt, hence the +1.- transport_max_retries = get_config().cogt.transport_max_retries+ transport_max_retries = get_config().inference.transport_max_retrieshttp_options = genai_types.HttpOptions(retry_options=genai_types.HttpRetryOptions(attempts=transport_max_retries + 1))return GoogleGenAiClient(api_key=backend.api_key, http_options=http_options)diff --git a/pipelex/providers/google/google_llm_worker.py b/pipelex/providers/google/google_llm_worker.pyindex ff97cee05..c8a468911 100644--- a/pipelex/providers/google/google_llm_worker.py+++ b/pipelex/providers/google/google_llm_worker.py@@ -36,7 +36,7 @@ if TYPE_CHECKING:class GoogleLLMWorker(LLMWorkerAbstract):- # Key into cogt.llm_config.effort_to_budget_maps for manual-thinking budget resolution+ # Key into inference.llm.effort_to_budget_maps for manual-thinking budget resolutionreasoning_budget_family: ClassVar[str] = "gemini"def __init__(@@ -58,7 +58,7 @@ class GoogleLLMWorker(LLMWorkerAbstract):else:self.instructor_for_objects = from_genai(client=sdk_instance, use_async=True)- instructor_config = get_config().cogt.llm_config.instructor_config+ instructor_config = get_config().inference.llm.instructorif instructor_config.is_dump_kwargs_enabled:self.instructor_for_objects.on(hook_name="completion:kwargs", handler=dump_kwargs)if instructor_config.is_dump_response_enabled:@@ -145,11 +145,11 @@ class GoogleLLMWorker(LLMWorkerAbstract):"""Build thinking config when reasoning_effort is specified."""match thinking_mode:case ThinkingMode.MANUAL:- google_level = get_config().cogt.llm_config.google_config.get_reasoning_level(effort=effort)+ google_level = get_config().inference.llm.google.get_reasoning_level(effort=effort)if google_level is None:log.verbose("Google manual thinking disabled (effort mapped to disabled)")return genai_types.ThinkingConfig(thinking_budget=0)- budget = get_config().cogt.llm_config.get_reasoning_budget(+ budget = get_config().inference.llm.get_reasoning_budget(family=self.reasoning_budget_family,effort=effort,)@@ -158,7 +158,7 @@ class GoogleLLMWorker(LLMWorkerAbstract):log.verbose(f"Google manual thinking with thinking_budget={budget} (from effort={effort})")return genai_types.ThinkingConfig(thinking_budget=budget)case ThinkingMode.ADAPTIVE:- thinking_level = get_config().cogt.llm_config.google_config.get_reasoning_level(effort=effort)+ thinking_level = get_config().inference.llm.google.get_reasoning_level(effort=effort)if thinking_level is None:log.verbose("Google adaptive thinking disabled (effort=NONE)")return genai_types.ThinkingConfig(thinking_budget=0)diff --git a/pipelex/providers/mistral/mistral_factory.py b/pipelex/providers/mistral/mistral_factory.pyindex f5b15893e..c93aa09c6 100644--- a/pipelex/providers/mistral/mistral_factory.py+++ b/pipelex/providers/mistral/mistral_factory.py@@ -56,7 +56,7 @@ class MistralFactory:# Note: the Mistral SDK's retry is backoff/time-budget based — it has no attempt-count# knob — so transport_max_retries acts here as an on/off switch (a positive value enables# a bounded-backoff retry of transient transport failures, including connection errors).- transport_max_retries = get_config().cogt.transport_max_retries+ transport_max_retries = get_config().inference.transport_max_retriesretry_config: RetryConfig | None = Noneif transport_max_retries > 0:retry_config = RetryConfig(diff --git a/pipelex/providers/mistral/mistral_llm_worker.py b/pipelex/providers/mistral/mistral_llm_worker.pyindex 335bd20ec..5dc3c68b0 100644--- a/pipelex/providers/mistral/mistral_llm_worker.py+++ b/pipelex/providers/mistral/mistral_llm_worker.py@@ -93,7 +93,7 @@ class MistralLLMWorker(LLMWorkerAbstract):effort = job_params.reasoning_effortmatch thinking_mode:case ThinkingMode.MANUAL:- prompt_mode = get_config().cogt.llm_config.mistral_config.get_reasoning_level(effort=effort)+ prompt_mode = get_config().inference.llm.mistral.get_reasoning_level(effort=effort)if prompt_mode is None:log.verbose("Mistral prompt_mode omitted (reasoning disabled)")return UNSETdiff --git a/pipelex/providers/openai/openai_client_factory.py b/pipelex/providers/openai/openai_client_factory.pyindex 6c19c39f5..ed4857062 100644--- a/pipelex/providers/openai/openai_client_factory.py+++ b/pipelex/providers/openai/openai_client_factory.py@@ -46,7 +46,7 @@ class OpenAIClientFactory:# Tier 1 transport retry: set the SDK client's retry budget explicitly from config# instead of inheriting the silent SDK default (openai's own DEFAULT_MAX_RETRIES).- transport_max_retries = get_config().cogt.transport_max_retries+ transport_max_retries = get_config().inference.transport_max_retriesthe_client: openai.AsyncOpenAImatch sdk_variant:diff --git a/pipelex/providers/openai/openai_completions_llm_worker.py b/pipelex/providers/openai/openai_completions_llm_worker.pyindex 7a7115b4b..582deb8b5 100644--- a/pipelex/providers/openai/openai_completions_llm_worker.py+++ b/pipelex/providers/openai/openai_completions_llm_worker.py@@ -63,7 +63,7 @@ class OpenAICompletionsLLMWorker(LLMWorkerAbstract):else:self.instructor_for_objects = from_openai(client=sdk_instance)- instructor_config = get_config().cogt.llm_config.instructor_config+ instructor_config = get_config().inference.llm.instructorif instructor_config.is_dump_kwargs_enabled:self.instructor_for_objects.on(hook_name="completion:kwargs", handler=dump_kwargs)if instructor_config.is_dump_response_enabled:@@ -100,7 +100,7 @@ class OpenAICompletionsLLMWorker(LLMWorkerAbstract):effort = job_params.reasoning_effortmatch thinking_mode:case ThinkingMode.MANUAL:- openai_effort = get_config().cogt.llm_config.openai_config.get_reasoning_level(effort=effort)+ openai_effort = get_config().inference.llm.openai.get_reasoning_level(effort=effort)log.verbose(f"OpenAI Chat Completions reasoning_effort={openai_effort}")return openai_effortcase ThinkingMode.ADAPTIVE:diff --git a/pipelex/providers/openai/openai_responses_llm_worker.py b/pipelex/providers/openai/openai_responses_llm_worker.pyindex e2b752f48..0a7c65897 100644--- a/pipelex/providers/openai/openai_responses_llm_worker.py+++ b/pipelex/providers/openai/openai_responses_llm_worker.py@@ -66,7 +66,7 @@ class OpenAIResponsesLLMWorker(LLMWorkerAbstract):else:self.instructor_for_objects = from_openai(client=sdk_instance)- instructor_config = get_config().cogt.llm_config.instructor_config+ instructor_config = get_config().inference.llm.instructorif instructor_config.is_dump_kwargs_enabled:self.instructor_for_objects.on(hook_name="completion:kwargs", handler=dump_kwargs)if instructor_config.is_dump_response_enabled:@@ -103,7 +103,7 @@ class OpenAIResponsesLLMWorker(LLMWorkerAbstract):effort = job_params.reasoning_effortmatch thinking_mode:case ThinkingMode.MANUAL:- openai_effort = get_config().cogt.llm_config.openai_config.get_reasoning_level(effort=effort)+ openai_effort = get_config().inference.llm.openai.get_reasoning_level(effort=effort)if openai_effort is None:return Nonelog.verbose(f"OpenAI Responses reasoning effort={openai_effort}")diff --git a/pipelex/providers/portkey/portkey_completions_factory.py b/pipelex/providers/portkey/portkey_completions_factory.pyindex 162351965..0c2cd635a 100644--- a/pipelex/providers/portkey/portkey_completions_factory.py+++ b/pipelex/providers/portkey/portkey_completions_factory.py@@ -116,7 +116,7 @@ class PortkeyCompletionsFactory(OpenAICompletionsFactory):# 2.34.0, so we pass a non-empty placeholder; the gateway ignores it.api_key="unused-auth-via-portkey-headers",# Tier 1 transport retry: set explicitly from config rather than inheriting the SDK default.- max_retries=get_config().cogt.transport_max_retries,+ max_retries=get_config().inference.transport_max_retries,default_headers=createHeaders(api_key=api_key,strict_open_ai_compliance=False,diff --git a/pipelex/providers/portkey/portkey_responses_factory.py b/pipelex/providers/portkey/portkey_responses_factory.pyindex db703183d..bbde9196f 100644--- a/pipelex/providers/portkey/portkey_responses_factory.py+++ b/pipelex/providers/portkey/portkey_responses_factory.py@@ -43,7 +43,7 @@ class PortkeyResponsesFactory(OpenAIResponsesFactory):# 2.34.0, so we pass a non-empty placeholder; the gateway ignores it.api_key="unused-auth-via-portkey-headers",# Tier 1 transport retry: set explicitly from config rather than inheriting the SDK default.- max_retries=get_config().cogt.transport_max_retries,+ max_retries=get_config().inference.transport_max_retries,default_headers=createHeaders(api_key=api_key,debug=is_debug_enabled,diff --git a/pipelex/providers/secrets/secrets_plugin.py b/pipelex/providers/secrets/secrets_plugin.pyindex bb41e8096..233e41320 100644--- a/pipelex/providers/secrets/secrets_plugin.py+++ b/pipelex/providers/secrets/secrets_plugin.py@@ -14,7 +14,7 @@ class SecretsPlugin:Core-unconditional: secrets is required infra, so this plugin cannot be disabled into a bootwith no secrets provider (see ``KERNEL_CORE_UNCONDITIONAL_PLUGIN_NAMES``). It registers the one built-in- ``env`` method; ``secrets_config.method`` selects which factory boot invokes. Importing this module+ ``env`` method; ``runtime.secrets.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/storage_plugin.py b/pipelex/providers/storage/storage_plugin.pyindex 1fe698c8d..87046e954 100644--- a/pipelex/providers/storage/storage_plugin.py+++ b/pipelex/providers/storage/storage_plugin.py@@ -65,7 +65,7 @@ class StoragePlugin:Core-unconditional: storage is required infra, so this plugin cannot be disabled into aboot with no storage (see ``KERNEL_CORE_UNCONDITIONAL_PLUGIN_NAMES``). It registers one factory per- built-in method; ``storage_config.method`` selects which one boot invokes. Importing this+ built-in method; ``runtime.storage.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/reporting/cost_report_renderer.py b/pipelex/reporting/cost_report_renderer.pyindex cb34d84f1..b4f5355c1 100644--- a/pipelex/reporting/cost_report_renderer.py+++ b/pipelex/reporting/cost_report_renderer.py@@ -35,8 +35,8 @@ def render_run_cost_report(gating on cost alone would wrongly hide them. The two channels follow D6, each applied only when costsare on:- - console (Rich table): gated by ``reporting_config.is_log_costs_to_console``- - CSV file: gated by ``reporting_config.is_generate_cost_report_file_enabled``+ - console (Rich table): gated by ``runtime.reporting.is_log_costs_to_console``+ - CSV file: gated by ``runtime.reporting.is_generate_cost_report_file_enabled``A cost-report failure never fails an otherwise-successful run: the aggregation, the CSV directory/pathsetup, and the render all run inside one try, so ``OSError`` (directory create / CSV write),@@ -51,7 +51,7 @@ def render_run_cost_report(if not is_generate_costs or not tokens_usages:return- reporting_config = get_config().pipelex.reporting_config+ reporting_config = get_config().runtime.reportingprint_to_console = reporting_config.is_log_costs_to_consoleis_csv_enabled = reporting_config.is_generate_cost_report_file_enabledif not (print_to_console or is_csv_enabled):diff --git a/pipelex/reporting/reporting_manager.py b/pipelex/reporting/reporting_manager.pyindex b45cc11a2..2d2824b82 100644--- a/pipelex/reporting/reporting_manager.py+++ b/pipelex/reporting/reporting_manager.py@@ -276,7 +276,7 @@ class ReportingManager(ReportingProtocol):backend's emit-time infra failures (see ``_EMIT_BEST_EFFORT_EXCEPTIONS``).Other exceptions propagate."""- tracing_config = get_config().pipelex.tracing_config+ tracing_config = get_config().runtime.tracingif not tracing_config.is_enabled:returndiff --git a/pipelex/runtime_boot.py b/pipelex/runtime_boot.pyindex 52f54f2e3..e6d305448 100644--- a/pipelex/runtime_boot.py+++ b/pipelex/runtime_boot.py@@ -203,7 +203,7 @@ class RuntimeBoot(metaclass=MetaSingleton):config_dirs=[config_dir] if config_dir is not None else None,)- log_config = get_config().pipelex.log_config+ log_config = get_config().runtime.logself.runtime_hub.set_console_print_target(target=log_config.console_print_target)log.configure(log_config=log_config)log.verbose("Logs are configured")@@ -293,12 +293,6 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.msg = f"The base setup method does not support any additional arguments: {kwargs}"raise PipelexSetupError(msg)- # Boot this process under the named orchestrator plugin, when explicitly provided.- # The matching boot-orchestrator plugin (e.g. Temporal) claims the hub slots in its- # register() iff plugins.boot_orchestrator == its own name; any other value is in-process.- if boot_orchestrator is not None:- get_config().plugins.boot_orchestrator = boot_orchestrator-# --- Pipelex Service and Telemetry --------------------------------------------------# Check if Pipelex Gateway is enabled@@ -379,6 +373,7 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.# applied at their ordered apply-points in later phases.plugin_registrar = build_registrar(config=get_config(),+ boot_orchestrator=boot_orchestrator,builtin_plugins=KERNEL_BUILTIN_PLUGINS if builtin_plugins is None else builtin_plugins,core_unconditional_plugin_names=(KERNEL_CORE_UNCONDITIONAL_PLUGIN_NAMES if core_unconditional_plugin_names is None else core_unconditional_plugin_names@@ -387,7 +382,7 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.)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+ # name (CLI --orchestrator / setup(boot_orchestrator=...)) is matched against registered# plugin names — the same namespace the slot-claim gate uses (boot_orchestrator == plugin.name).# When no plugin of that name registered (not installed, disabled, or a typo) nothing claims the# hub slots, so without this guard the run would silently execute in-process instead of under the@@ -403,9 +398,8 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.# ``PIPE_FUNC_EXECUTOR``, all applied in ``Pipelex.setup``). What closed it is the entry-point# group split: the layer signal that remedy needed is now carried by the plugin's own# declaration.- requested_boot_orchestrator = get_config().plugins.boot_orchestrator- if requested_boot_orchestrator is not None and requested_boot_orchestrator not in plugin_registrar.registered_plugin_names:- raise UnknownBootOrchestratorError(requested=requested_boot_orchestrator)+ if boot_orchestrator is not None and boot_orchestrator not in plugin_registrar.registered_plugin_names:+ raise UnknownBootOrchestratorError(requested=boot_orchestrator)# Secrets provider precedence: explicit setup() param > config-selected registry factory.# The built-in SecretsPlugin supplies the "env" method, so there is no separate core default.@@ -413,7 +407,7 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.secrets_provider_registry = SecretsProviderRegistry(plugin_registrar.secrets_providers)self.runtime_hub.set_secrets_provider_registry(secrets_provider_registry)if secrets_provider is None:- secrets_config = get_config().pipelex.secrets_config+ secrets_config = get_config().runtime.secretssecrets_provider = secrets_provider_registry.get_required(method=secrets_config.method)(secrets_config)# Disable Pipelex telemetry when:@@ -539,7 +533,7 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.# The built-in StoragePlugin supplies every method, so there is no separate core default.# Resolves here (after secrets is on the hub) so the GCP factory's secret read works.if storage_provider is None:- storage_config = get_config().pipelex.storage_config+ storage_config = get_config().runtime.storagestorage_provider = storage_provider_registry.get_required(method=storage_config.method)(storage_config)self.runtime_hub.set_storage_provider(storage_provider)@@ -550,6 +544,13 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.# dispatch activities and mock inside them, so `needs_inference` plays no role in picking the# generator. Its other boot roles (gateway/model setup, credentials, telemetry) are unchanged.self.runtime_hub.set_dry_run_forced(is_forced=not needs_inference)+ # The orchestrator plugin this process booted under, recorded as boot-scoped hub state rather+ # than written into the config object — nothing in a pipelex.toml names an orchestrator, and+ # routing a boot argument through the config would make it look settable. The slot-claim *gate*+ # does not read this: a plugin's register() matched `registrar.boot_orchestrator` back at+ # discovery, and the unknown-name guard above reads the argument. What reads it is run-time+ # code asking whether it owns the process, so it must be set before the thunks below run.+ self.runtime_hub.set_boot_orchestrator(boot_orchestrator=boot_orchestrator)# Injection precedence (codex C8): explicit setup() param > plugin slot-claim thunk > core default.# A boot-orchestrator plugin (Temporal worker) claims the CONTENT_GENERATOR slot; its thunk runs# only here, never at register, so booting a non-worker process imports no host-runtime SDK.@@ -696,10 +697,11 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.log.verbose(f"{PACKAGE_NAME} version {PACKAGE_VERSION} teardown done (except config & logs)")finally:- # The runtime hub releases its process-global config. ``class_registry_scoping`` is reset here+ # The runtime hub releases its process-global config and boot-scoped flags. ``class_registry_scoping``+ # is reset here# too: the interpreter half installs the resolver at boot, so releasing it belongs to whichever# teardown runs — and on a kernel-only boot nothing installed it, where the reset is a no-op.- self.runtime_hub.reset_config()+ self.runtime_hub.reset_boot_state()class_registry_scoping.reset()# The same three ``_release_after_failed_boot`` releases, deliberately kept identical: these are# the ones that *poison* the next boot rather than merely dangle, so they must not sit above a@@ -742,8 +744,8 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.A failed boot must release the process-global singletons it acquired, not just the singletonregistration — otherwise they leak and poison the next boot in the same process. ``setup()``establishes these progressively (logging + hub config in ``__init__``, the ``KajsonManager``- class registry, the template registries) and may mutate config (e.g.- ``plugins.boot_orchestrator``); failing partway skips ``teardown()``, the normal release point.+ class registry, the template registries) and sets boot-scoped hub state (e.g. the boot+ orchestrator); failing partway skips ``teardown()``, the normal release point.It exists rather than calling ``teardown()`` because that path reads ``self.inference_manager``(and, on the interpreter half, ``self.pipeline_manager``) unguarded, and both are assigned@@ -751,7 +753,7 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.deliberate: guarding them would let a half-built teardown look successful.It releases a **subset** of what ``teardown()`` does, and the subset is chosen: everything that- would otherwise *poison the next boot* is here — the hub config, the class-registry scoping, the+ would otherwise *poison the next boot* is here — the hub config and its boot-scoped flags, the class-registry scoping, the``KajsonManager``, the template registries, the telemetry singleton and the ``MetaSingleton``registration. What is deliberately absent is ``sdk_client_manager``, ``reporting_delegate``,``func_registry``, ``inference_manager`` and ``class_registry``. The first three leave resources@@ -770,7 +772,7 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.already stood its runtime up, and only the plugin knows what that cost. Our Temporal plugin'sthunk registers its own process-global singletons and installs a sandbox predicate — it does notyet start a poller, which is a property of that thunk today and not of the slot. A failure- anywhere after that thunk — the ``pipe_func_config.execution_mode`` lookup raising on an unregistered mode is the+ anywhere after that thunk — the ``interpreter.pipe_func.execution_mode`` lookup raising on an unregistered mode is themost reachable one, since it is a plain config error — would otherwise leak it, because nothingelse on this path calls the callbacks. Not a hypothetical widened by the boot split: the thunkused to run *after* the pipe-func executor resolution, ``pipeline_manager.setup()`` and the@@ -815,7 +817,7 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.# (2) an injected telemetry manager is unbounded code; its exception surface cannot# be enumerated, and the releases below must happen regardless.log.error(f"Telemetry teardown failed while releasing a failed boot: {telemetry_exc}")- self.runtime_hub.reset_config()+ self.runtime_hub.reset_boot_state()class_registry_scoping.reset()KajsonManager.teardown()TemplateLoader.reset()diff --git a/pipelex/runtime_hub.py b/pipelex/runtime_hub.pyindex 75e5f79ba..498312f15 100644--- a/pipelex/runtime_hub.py+++ b/pipelex/runtime_hub.py@@ -108,6 +108,12 @@ class RuntimeHub:# review D4): the backend still picks inline vs in-workflow on its own; the leaf mocks.# Consumed by ``PipeRunParamsFactory.make_run_params`` (the single writer of run_mode).self._is_dry_run_forced: bool = False+ # The orchestrator plugin this process booted under, when one was named (CLI ``--orchestrator``+ # / ``Pipelex.setup(boot_orchestrator=...)``). Boot-scoped state rather than a configuration+ # value: it is never written in a TOML, and a boot argument stored on the config object would+ # be a side channel. A boot-orchestrator plugin claims the process-global hub slots in its+ # ``register`` iff this equals its own name; ``None`` leaves execution in-process.+ self._boot_orchestrator: str | None = None# Ambient probe claimed by a boot-orchestrator plugin (ISOLATED_EXECUTION_PROBE): True when# the current call runs inside an isolated sub-execution (a Temporal activity) whose emissions# must bypass the parent run's registered buffer. Core default never isolated (see@@ -165,9 +171,31 @@ class RuntimeHub:returnself._config = config- def reset_config(self) -> None:- """Reset the global configuration instance and the config manager."""+ def reset_boot_state(self) -> None:+ """Release the process-global state a boot established: the config, the logs, and the boot-scoped flags.++ Called from both teardown paths — the normal ``_teardown_runtime`` and ``_release_after_failed_boot``+ — which is why the boot-scoped flags are cleared *here* rather than at either call site: a second+ hand-maintained release list is exactly what drifts.++ The flags are boot arguments, not configuration, so nothing reloads them: ``setup()`` writes both+ unconditionally on the way up, and without this a torn-down process answers ``get_boot_orchestrator()``+ with the previous boot's orchestrator (and ``is_dry_run_forced()`` with the previous boot's keyless+ verdict) while no boot is active at all.++ The isolated-execution probe is released for the same reason and needs it slightly more, because+ it is the one of the three a boot writes **conditionally** — only when a plugin claims+ ``HubSlot.ISOLATED_EXECUTION_PROBE`` in ``RuntimeBoot.setup``. A boot that claims nothing+ therefore *inherits* rather than overwrites, so the release is what a fresh ``RuntimeHub`` per+ boot would otherwise be the only thing providing. What this closes is the window both teardown+ paths open: between teardown and the next boot ``get_runtime_hub()`` still hands out the dead+ hub, and ``is_in_isolated_execution()`` is a module-level accessor (``ReportingManager`` reads+ it) that would answer with the torn-down boot's runtime split.+ """self._config = None+ self._is_dry_run_forced = False+ self._boot_orchestrator = None+ self._isolated_execution_probe = _never_in_isolated_executionlog.reset()def set_console_print_target(self, target: ConsoleTarget):@@ -233,6 +261,12 @@ class RuntimeHub:def is_dry_run_forced(self) -> bool:return self._is_dry_run_forced+ def set_boot_orchestrator(self, *, boot_orchestrator: str | None) -> None:+ self._boot_orchestrator = boot_orchestrator++ def get_boot_orchestrator(self) -> str | None:+ return self._boot_orchestrator+def set_isolated_execution_probe(self, probe: Callable[[], bool]) -> None:self._isolated_execution_probe = probe@@ -530,6 +564,16 @@ def is_dry_run_forced() -> bool:return get_runtime_hub().is_dry_run_forced()+def get_boot_orchestrator() -> str | None:+ """The orchestrator plugin this process booted under, or ``None`` for in-process execution.++ The read side of a boot argument, not of a setting: nothing in a ``pipelex.toml`` names it.+ A boot-orchestrator plugin gates its slot claim on ``boot_orchestrator == its own name``, and+ reads it back here at run time when it needs to know whether it owns the process.+ """+ return get_runtime_hub().get_boot_orchestrator()++def resolve_run_mode_for_boot(*, requested: PipeRunMode) -> PipeRunMode:"""Apply the keyless-boot forced-DRY flag to a requested run mode (eng review D4).@@ -577,7 +621,7 @@ def scoped_event_log(event_log: "EventLogProtocol") -> Generator[None, None, Nonbackend via ``make_event_log``, so emit and assemble share the SAME instance — whichis what makes a plain in-memory event log usable for graph assembly (no externalstore bridges the two sides). A set override implies tracing-enabled: it is honored- even when ``tracing_config.is_enabled`` is False.+ even when ``runtime.tracing.is_enabled`` is False.Lifecycle: the machinery never calls ``cleanup`` on the instance and the read side doesnot ``close`` it — but the write-side tracer DOES call ``close()`` on its event log atdiff --git a/pipelex/system/configuration/config_loader.py b/pipelex/system/configuration/config_loader.pyindex f5fe59571..fadc45574 100644--- a/pipelex/system/configuration/config_loader.py+++ b/pipelex/system/configuration/config_loader.py@@ -126,6 +126,30 @@ class ConfigLoader:return project_configreturn None+ @property+ def existing_config_dirs(self) -> list[Path]:+ """The user's configuration directories that exist on this machine, in tier order.++ The global directory comes first and the project one second, which is the order the load+ merges them in. A project directory that *is* the global one — a project rooted at the home+ directory — is listed once rather than twice.++ This is the loader's own answer to "where does this machine keep its configuration", and it+ is deliberately the only answer there is: `pipelex migrate`'s walk is exactly this set (see+ `pipelex.migration.run.config_directories_to_migrate`, which reads it), and the stale-boot+ warning decides whether it may name that command by asking whether the stale file is under+ one of these. Two derivations of "the configuration directories" would let a boot promise a+ remedy the command then declines.+ """+ directories: list[Path] = []+ global_dir = self.global_config_dir+ if global_dir.is_dir():+ directories.append(global_dir)+ project_dir = self.project_config_dir+ if project_dir is not None and project_dir.resolve() not in {directory.resolve() for directory in directories}:+ directories.append(project_dir)+ return directories+@propertydef pipelex_config_dir(self) -> Path:"""Get the effective config directory (project if exists, else global).@@ -459,7 +483,7 @@ class ConfigLoader:config = config_cls.model_validate(config_dict)except CONFIG_REFUSED:return None- self._stale_warning = stale_configuration_warning(plans=replayed.plans)+ self._stale_warning = stale_configuration_warning(plans=replayed.plans, walked_dirs=self.existing_config_dirs)return configdiff --git a/pipelex/system/configuration/config_surface.py b/pipelex/system/configuration/config_surface.pyindex 414470009..0ab49a3bf 100644--- a/pipelex/system/configuration/config_surface.py+++ b/pipelex/system/configuration/config_surface.py@@ -183,20 +183,67 @@ def replay_surface_files_in_memory(*, surface_id: str, paths: Sequence[Path]) ->return ReplayedSurface(config_dict=merged, plans=plans)-def stale_configuration_warning(*, plans: Sequence[MigrationPlan]) -> str:+def _is_within(*, path: Path, directories: Sequence[Path]) -> bool:+ """Whether a file sits directly in one of these directories.++ Directly, not underneath: the walk is not recursive, so a file in a subdirectory of a+ configuration directory is as far out of `pipelex migrate`'s reach as one on the other side of+ the disk.++ **The parent is resolved; the file is not**, and that asymmetry is the whole of it. Resolving+ the *directory* is what the walk itself effectively does — a caller's `config_dir=` may be the+ global directory reached by a symlink or a relative path, and the same directory under two+ spellings must not read as two different places. Resolving the *file* would answer a different+ question: a `pipelex.toml` symlinked out to a dotfiles repository — chezmoi, stow, yadm all do+ this — would resolve to a parent outside the walk and be told the command cannot reach it,+ when the walk enumerates the link by `iterdir` and writes straight through it. Where the file+ *points* is not where the command looks for it.+ """+ try:+ parent = path.parent.resolve()+ except OSError:+ return False+ return any(parent == directory.resolve() for directory in directories)+++def _quoted_files(*, plans: Sequence[MigrationPlan]) -> str:+ return ", ".join(f"'{plan.file_path}'" for plan in plans)+++def stale_configuration_warning(*, plans: Sequence[MigrationPlan], walked_dirs: Sequence[Path]) -> str:"""What a boot says when it carried a stale configuration forward in memory rather than dying.Names the files and the remedy, and takes everything else it says from the ledger — the samerule the migration report obeys, because a boot warning is read in the same places a report isand a value read from a user's file has no business in either.++ **`pipelex migrate` is named only for a file it would reach**, which is what `walked_dirs` is+ for. Boot tolerance replays exactly the files the loader merged, and a loader pointed at a+ directory of its own — `Pipelex.make(config_dir=…)`, or this repository's own+ `tests/pipelex_{run_mode}.toml` — merges files the command's fixed walk will never touch. A+ warning that closed on "run `pipelex migrate`" there would name, on every boot, a command that+ then reports nothing to do. The same rule as the migration report's: a remedy is named only+ where it would write. Pass the walk (`config_manager.existing_config_dirs`); an embedder's+ directory is theirs to update, and `--config-dir` is deliberately not the answer."""stale = [plan for plan in plans if not plan.is_clean]- files = ", ".join(f"'{plan.file_path}'" for plan in stale)+ in_reach = [plan for plan in stale if _is_within(path=plan.file_path, directories=walked_dirs)]+ out_of_reach = [plan for plan in stale if not _is_within(path=plan.file_path, directories=walked_dirs)]carried = sorted({step.title for plan in stale for step in plan.steps})- sentences = [f"Your configuration is out of date, and pipelex read it as if it had been migrated: {files}."]+ sentences = [f"Your configuration is out of date, and pipelex read it as if it had been migrated: {_quoted_files(plans=stale)}."]if carried:sentences.append(f"What the ledger carried forward: {'; '.join(carried)}.")if any(plan.blocked for plan in stale):- sentences.append("Some of what these files need cannot be applied for you — `pipelex migrate` reports it.")- sentences.append("Nothing was written: run `pipelex migrate` to bring the files up to date.")+ blocked_note = "Some of what these files need cannot be applied for you"+ sentences.append(f"{blocked_note} — `pipelex migrate` reports it." if in_reach else f"{blocked_note}.")+ sentences.append("Nothing was written.")+ if in_reach:+ subject = _quoted_files(plans=in_reach) if out_of_reach else "the files"+ sentences.append(f"Run `pipelex migrate` to bring {subject} up to date.")+ if out_of_reach:+ sentences.append(+ f"`pipelex migrate` does not reach {_quoted_files(plans=out_of_reach)} — "+ f"{'that file is' if len(out_of_reach) == 1 else 'those files are'} yours to update where "+ f"{'it lives' if len(out_of_reach) == 1 else 'they live'}."+ )return " ".join(sentences)diff --git a/pipelex/system/configuration/configs.py b/pipelex/system/configuration/configs.pyindex d53cdf2dd..60f346ba1 100644--- a/pipelex/system/configuration/configs.py+++ b/pipelex/system/configuration/configs.py@@ -1,11 +1,9 @@from enum import StrEnumfrom typing import Annotated, Literal, Self-import shortuuidfrom pydantic import Field, field_validator, model_validator-from pipelex.base_exceptions import PipelexConfigError-from pipelex.cogt.config_cogt import Cogt+from pipelex.cogt.config_cogt import InferenceConfigfrom pipelex.graph.graph_config import GraphConfigfrom pipelex.language.mthds_config import MthdsConfigfrom pipelex.system.configuration.config_model import ConfigModel@@ -15,7 +13,6 @@ from pipelex.tools.aws.aws_config import AwsConfigfrom pipelex.tools.log.log_config import LogConfigfrom pipelex.tools.secrets.secrets_config import SecretsProviderConfigfrom pipelex.tools.storage.storage_config import StorageConfig-from pipelex.tools.templating.templating_style import TemplatingStyleclass ConfigPaths:@@ -60,26 +57,6 @@ class PipeRunConfig(ConfigModel):pipe_stack_limit: int-class DryRunConfig(ConfigModel):- text_gen_truncate_length: int- nb_list_items: int- nb_extract_pages: int- image_urls: list[str]- allowed_to_fail_pipes: list[str] = Field(default_factory=list)-- @field_validator("image_urls", mode="before")- @classmethod- def validate_image_urls(cls, value: list[str]) -> list[str]:- if not value:- msg = "dry_run_config.image_urls must be a non-empty list"- raise PipelexConfigError(msg)- return value---class TemplatingConfig(ConfigModel):- default_templating_style: TemplatingStyle--class ReportingConfig(ConfigModel):is_log_costs_to_console: boolis_generate_cost_report_file_enabled: bool@@ -137,7 +114,7 @@ class PipelineExecutionConfig(ConfigModel):is_mock_inputs: boolis_generate_graph: boolis_generate_usage: bool- graph_config: GraphConfig+ graph: GraphConfig# Bounded fan-out concurrency for PipeBatch (the in-process backpressure pillar, short of a durable execution backend).# An integer caps the number of branches executed at once; the literal "unbounded" disables the bound.@@ -156,7 +133,7 @@ class PipelineExecutionConfig(ConfigModel):Args:generate_graph: If not None, overrides is_generate_graph (graph node/edge events + GraphSpec assembly).generate_usage: If not None, overrides is_generate_usage (emit usage/cost tracing events).- force_include_full_data: If not None, overrides all graph_config.data_inclusion flags+ force_include_full_data: If not None, overrides all graph.data_inclusion flags(stuff_json_content, stuff_text_content, stuff_html_content, error_stack_traces).mock_inputs: If not None, overrides is_mock_inputs. When True, generates mockdata for missing required inputs (for dry-run validation).@@ -176,7 +153,7 @@ class PipelineExecutionConfig(ConfigModel):updates["is_mock_inputs"] = mock_inputsif force_include_full_data is not None:- new_data_inclusion = self.graph_config.data_inclusion.model_copy(+ new_data_inclusion = self.graph.data_inclusion.model_copy(update={"stuff_json_content": force_include_full_data,"stuff_text_content": force_include_full_data,@@ -184,69 +161,55 @@ class PipelineExecutionConfig(ConfigModel):"error_stack_traces": force_include_full_data,})- updates["graph_config"] = self.graph_config.model_copy(update={"data_inclusion": new_data_inclusion})+ updates["graph"] = self.graph.model_copy(update={"data_inclusion": new_data_inclusion})if updates:return self.model_copy(update=updates)return self-class Pipelex(ConfigModel):- storage_config: StorageConfig- secrets_config: SecretsProviderConfig- log_config: LogConfig- aws_config: AwsConfig-- templating_config: TemplatingConfig- mthds_config: MthdsConfig-- dry_run_config: DryRunConfig- pipe_run_config: PipeRunConfig- pipe_func_config: PipeFuncConfig- pipeline_execution_config: PipelineExecutionConfig- reporting_config: ReportingConfig- tracing_config: TracingConfig- observer_config: ObserverConfig- scan_config: ScanConfig- builder_config: BuilderConfig- kit_config: KitConfig-+class PluginsConfig(ConfigModel):+ # Names of discovered plugins to skip at startup (a denylist; discovery is the+ # source of truth for presence). Denylisting a plugin core requires+ # unconditionally is a startup error. There is intentionally no allowlist.+ disabled: list[str]-class MigrationConfig(ConfigModel):- """Dead, and deliberately still here.- The hand-maintained rename tables that once let a validation error guess "you probably mean- the new name for this". The migration ledger answers that question properly now — from the- entries that actually performed the renames, per file rather than per word — so nothing reads- these any more.+class RuntimeConfig(ConfigModel):+ """Kernel-layer, process-scoped infrastructure — what ``runtime_hub`` brokers.- The field stays because deleting it is a schema change: `pipelex.toml` ships a `[migration]`- table and `extra="forbid"` would refuse every user file still carrying one. The configuration- reshape's ledger entry is what removes both halves at once, which is what keeps the reshape a- single schema bump rather than two.+ The machinery present at execution time whatever is loaded, per+ ``docs/contribute/hub-layering.md``: storage, secrets, logging, cloud credentials,+ reporting, tracing, observation, and the plugin system's own denylist."""- migration_maps: dict[str, dict[str, str]]+ storage: StorageConfig+ secrets: SecretsProviderConfig+ log: LogConfig+ aws: AwsConfig+ reporting: ReportingConfig+ tracing: TracingConfig+ observer: ObserverConfig+ plugins: PluginsConfig-class PluginsConfig(ConfigModel):- # Names of discovered plugins to skip at startup (a denylist; discovery is the- # source of truth for presence). Denylisting a plugin core requires- # unconditionally is a startup error. There is intentionally no allowlist.- disabled: list[str]+class InterpreterConfig(ConfigModel):+ """Library-scoped method machinery — what ``interpreter_hub`` brokers.- # Boot *this process* under the orchestrator plugin of this name. A boot-orchestrator- # plugin (e.g. the Temporal plugin) claims the process-global hub slots in its- # ``register`` iff ``plugins.boot_orchestrator == <its own name>``; any other value- # (or ``None``) leaves execution in-process. Core names no orchestrator — the gate is- # a plain name match, set programmatically (CLI ``--orchestrator`` / ``Pipelex.setup``),- # not from ``pipelex.toml``. Optional, so it stays absent from the TOML defaults.- boot_orchestrator: str | None = None+ Everything that only means something once ``.mthds`` content is loaded: parsing,+ pipe execution parameters, pipeline orchestration, source discovery and authoring.+ """++ mthds: MthdsConfig+ pipe_run: PipeRunConfig+ pipe_func: PipeFuncConfig+ pipeline_execution: PipelineExecutionConfig+ scan: ScanConfig+ builder: BuilderConfigclass PipelexConfig(ConfigRoot):- session_id: str = shortuuid.uuid()- cogt: Cogt- pipelex: Pipelex- plugins: PluginsConfig- migration: MigrationConfig+ runtime: RuntimeConfig+ inference: InferenceConfig+ interpreter: InterpreterConfig+ kit: KitConfigdiff --git a/pipelex/system/configuration/pipe_func_config.py b/pipelex/system/configuration/pipe_func_config.pyindex df1cbd369..dc8890e91 100644--- a/pipelex/system/configuration/pipe_func_config.py+++ b/pipelex/system/configuration/pipe_func_config.py@@ -5,7 +5,7 @@ from pipelex.system.configuration.config_model import ConfigModelclass PipeFuncConfig(ConfigModel):# Which PipeFunc execution mode this process runs, selected from the PipeFuncExecutorRegistry the- # plugins populate (the config-selected-singleton seam, sibling of storage_config.method). An open+ # plugins populate (the config-selected-singleton seam, sibling of runtime.storage.method). An open# string token: "direct" (core, in-process — imports and runs the customer function here) is the# default; "daytona" (our Daytona sandbox plugin) runs it out-of-process. Any non-"direct" mode is a remote/sandbox# backend: library loading captures the customer .py source as text (onto the crate) instead ofdiff --git a/pipelex/system/data_inclusion_config.py b/pipelex/system/data_inclusion_config.pyindex 35d147fea..e2cc4e177 100644--- a/pipelex/system/data_inclusion_config.py+++ b/pipelex/system/data_inclusion_config.py@@ -2,10 +2,10 @@Lives below both ``graph`` and ``tracing`` because it rides in every job's``TraceContext`` — the transport that reaches the inference layer — while the-TOML nests it under ``[...graph_config.data_inclusion]``, which is where an+TOML nests it under ``[...graph.data_inclusion]``, which is where anoperator expects to tune it. Keeping the class here is what lets:mod:`pipelex.system.trace_context` stay independent of the graph rendering-configs (``mermaid_config`` / ``reactflow_config``) that ``GraphConfig`` pulls in.+config modules (``mermaid_config`` / ``reactflow_config``) that ``GraphConfig`` imports."""from pipelex.system.configuration.config_model import ConfigModeldiff --git a/pipelex/system/pipelex_service/pipelex_service_config.py b/pipelex/system/pipelex_service/pipelex_service_config.pyindex be2c5cafc..a62d66ac1 100644--- a/pipelex/system/pipelex_service/pipelex_service_config.py+++ b/pipelex/system/pipelex_service/pipelex_service_config.py@@ -71,7 +71,7 @@ def _service_config_the_ledger_can_explain(*, config_path: Path) -> PipelexServiservice_config = PipelexServiceConfig.model_validate(replayed.config_dict)except ValidationError:return None- log.warning(stale_configuration_warning(plans=replayed.plans))+ log.warning(stale_configuration_warning(plans=replayed.plans, walked_dirs=config_manager.existing_config_dirs))return service_configdiff --git a/pipelex/system/registries/class_registry_utils.py b/pipelex/system/registries/class_registry_utils.pyindex 72e97b58b..e8e99ed73 100644--- a/pipelex/system/registries/class_registry_utils.py+++ b/pipelex/system/registries/class_registry_utils.py@@ -62,7 +62,7 @@ class ClassRegistryUtils:dir_path=folder_path,pattern="*.py",is_recursive=is_recursive,- excluded_dirs=list(get_config().pipelex.scan_config.excluded_dirs)+ excluded_dirs=list(get_config().interpreter.scan.excluded_dirs)+ [str(force_exclude_dir) for force_exclude_dir in (force_exclude_dirs or [])],)@@ -104,7 +104,7 @@ class ClassRegistryUtils:dir_path=folder_path,pattern="*.py",is_recursive=is_recursive,- excluded_dirs=list(get_config().pipelex.scan_config.excluded_dirs),+ excluded_dirs=list(get_config().interpreter.scan.excluded_dirs),force_include_dirs=[str(force_include_dir) for force_include_dir in force_include_dirs] if force_include_dirs is not None else None,)diff --git a/pipelex/system/registries/func_registry_utils.py b/pipelex/system/registries/func_registry_utils.pyindex b6d7374ef..cf197cb04 100644--- a/pipelex/system/registries/func_registry_utils.py+++ b/pipelex/system/registries/func_registry_utils.py@@ -102,7 +102,7 @@ class FuncRegistryUtils:dir_path=folder_path,pattern="*.py",is_recursive=is_recursive,- excluded_dirs=list(get_config().pipelex.scan_config.excluded_dirs),+ excluded_dirs=list(get_config().interpreter.scan.excluded_dirs),force_include_dirs=[str(force_include_dir) for force_include_dir in force_include_dirs] if force_include_dirs is not None else None,)@@ -139,7 +139,7 @@ class FuncRegistryUtils:dir_path=folder_path,pattern="*.py",is_recursive=is_recursive,- excluded_dirs=list(get_config().pipelex.scan_config.excluded_dirs),+ excluded_dirs=list(get_config().interpreter.scan.excluded_dirs),)sources: dict[str, str] = {}diff --git a/pipelex/system/telemetry/telemetry_loader.py b/pipelex/system/telemetry/telemetry_loader.pyindex 0a4a1f8e0..9289a9510 100644--- a/pipelex/system/telemetry/telemetry_loader.py+++ b/pipelex/system/telemetry/telemetry_loader.py@@ -142,5 +142,5 @@ def _telemetry_config_the_ledger_can_explain(telemetry_config = TelemetryConfig.model_validate(substituted)except (UnknownVarPrefixError, ValidationError):return None- log.warning(stale_configuration_warning(plans=replayed.plans))+ log.warning(stale_configuration_warning(plans=replayed.plans, walked_dirs=config_manager.existing_config_dirs))return telemetry_configdiff --git a/pipelex/tools/log/log.py b/pipelex/tools/log/log.pyindex 6b510b15c..599861801 100644--- a/pipelex/tools/log/log.py+++ b/pipelex/tools/log/log.py@@ -107,7 +107,7 @@ class Log:self._log_config_instance = log_config- self.rich_handler = log_config.rich_log_config.make_rich_handler(target=log_config.console_log_target)+ self.rich_handler = log_config.rich_log.make_rich_handler(target=log_config.console_log_target)self.rich_handler.setFormatter(EmojiLogFormatter())# Configure the root loggerdiff --git a/pipelex/tools/log/log_config.py b/pipelex/tools/log/log_config.pyindex 7b6d032ff..d15fffd2f 100644--- a/pipelex/tools/log/log_config.py+++ b/pipelex/tools/log/log_config.py@@ -117,7 +117,7 @@ class LogConfig(ConfigModel):silenced_problem_ids: list[str]- rich_log_config: RichLogConfig+ rich_log: RichLogConfig# logger name to use for safe logging without fancy features like code filepath and stuffgeneric_poor_logger: strdiff --git a/tests/e2e/agent_cli/test_stdout_is_clean_json.py b/tests/e2e/agent_cli/test_stdout_is_clean_json.pyindex 9b513a91b..987b2a825 100644--- a/tests/e2e/agent_cli/test_stdout_is_clean_json.py+++ b/tests/e2e/agent_cli/test_stdout_is_clean_json.py@@ -43,7 +43,7 @@ if TYPE_CHECKING:def _set_package_log_level(pipelex_toml_path: Path, *, package_name: str, level: str) -> None:- """Set ``<package_name> = "<level>"`` inside ``[pipelex.log_config.package_log_levels]``.+ """Set ``<package_name> = "<level>"`` inside ``[runtime.log.package_log_levels]``.Uses the project's ``tomlkit``-based helpers (the same pair ``init_cmd`` relieson) to parse-edit-dump the file. This handles every edge case the previous@@ -53,7 +53,7 @@ def _set_package_log_level(pipelex_toml_path: Path, *, package_name: str, level:config loader."""doc = load_toml_with_tomlkit(pipelex_toml_path)- doc["pipelex"]["log_config"]["package_log_levels"][package_name] = level # type: ignore[index]+ doc["runtime"]["log"]["package_log_levels"][package_name] = level # type: ignore[index]save_toml_to_path(doc, path=pipelex_toml_path)@@ -94,7 +94,7 @@ def _assert_stderr_is_clean_or_structured_envelope(stderr: str) -> None:def _set_console_targets(pipelex_toml_path: Path, *, log_target: str, print_target: str) -> None:"""Rewrite ``console_log_target`` and ``console_print_target`` directly under- ``[pipelex.log_config]`` to the given values.+ ``[runtime.log]`` to the given values.Used by the adversarial defense-in-depth test to simulate a user who overrides bothtargets to ``"stdout"`` in their ``~/.pipelex/pipelex.toml``. The agent CLI must keep@@ -111,7 +111,7 @@ def _set_console_targets(pipelex_toml_path: Path, *, log_target: str, print_targfor index, line in enumerate(lines):stripped = line.strip()if stripped.startswith("[") and stripped.endswith("]"):- in_target_section = stripped == "[pipelex.log_config]"+ in_target_section = stripped == "[runtime.log]"continueif not in_target_section:continue@@ -122,10 +122,10 @@ def _set_console_targets(pipelex_toml_path: Path, *, log_target: str, print_targlines[index] = f'console_print_target = "{print_target}"\n'print_target_rewritten = Trueif not log_target_rewritten:- msg = f"Could not find 'console_log_target = ...' under [pipelex.log_config] in {pipelex_toml_path}"+ msg = f"Could not find 'console_log_target = ...' under [runtime.log] in {pipelex_toml_path}"raise AssertionError(msg)if not print_target_rewritten:- msg = f"Could not find 'console_print_target = ...' under [pipelex.log_config] in {pipelex_toml_path}"+ msg = f"Could not find 'console_print_target = ...' under [runtime.log] in {pipelex_toml_path}"raise AssertionError(msg)pipelex_toml_path.write_text("".join(lines), encoding="utf-8")diff --git a/tests/e2e/pipelex/cli/test_migrate_commands.py b/tests/e2e/pipelex/cli/test_migrate_commands.pyindex a6b3f2545..f0fe0de32 100644--- a/tests/e2e/pipelex/cli/test_migrate_commands.py+++ b/tests/e2e/pipelex/cli/test_migrate_commands.py@@ -12,6 +12,15 @@ migrates it is the one the package ships. Nothing about this test is synthetic eit runs on, which is what makes the state it starts from a real one: a flat ``telemetry.toml``fails ``TelemetryConfig``'s ``extra="forbid"`` today, in the field.+**Two surfaces are planted here, and the second one is the whole main configuration.**+``telemetry-config`` is the small specimen — one flat document, nested — and it is what most of+this module runs on because it is cheap and it shipped first. ``pipelex-config@2``, the+configuration reshape, is the other size of thing: it renames the root tables of the file every+boot reads, so the machine it migrates is every existing installation. Its fixture is+``goldens/pipelex-config/[email protected]`` — the packaged ``pipelex.toml`` as it stood at schema 1+— plus a hand-written project tier, and ``TestAPreReshapeMachine`` is where they meet the two+binaries.+**Boot tolerance is why that machine boots at all.** Such a machine used to die at boot; it nowstarts, carries the file forward in memory, and warns a person that it did. So the boot probe hereno longer measures "broken, then fixed" — it asserts the machine boots on *both* sides of every@@ -33,8 +42,10 @@ import subprocess # noqa: S404 - invokes the real pipelex binaries for E2E covefrom typing import TYPE_CHECKING, Anyfrom pipelex.migration.backup import existing_backups_of-from pipelex.migration.goldens import pre_history_document_path+from pipelex.migration.goldens import defaults_golden_path, pre_history_document_pathfrom pipelex.migration.ledger import packaged_migration_dir+from pipelex.migration.surfaces import build_config_surface_registry+from pipelex.system.configuration.config_surface import PIPELEX_CONFIG_SURFACE_ID, TELEMETRY_CONFIG_SURFACE_IDfrom pipelex.tools.misc.toml_utils import load_toml_from_pathfrom tests.e2e.agent_cli.conftest import REPO_ROOT@@ -44,7 +55,7 @@ if TYPE_CHECKING:PIPELEX_BIN = REPO_ROOT / ".venv" / "bin" / "pipelex"PIPELEX_AGENT_BIN = REPO_ROOT / ".venv" / "bin" / "pipelex-agent"-TELEMETRY_SURFACE_ID = "telemetry-config"+PROJECT_DIR_NAME = "workspace"# A tier file of the flat era, as a user would have written one: a couple of overrides on top of# the global file, not the whole census the golden carries.@@ -54,13 +65,73 @@ telemetry_mode = "off"host = "https://project.example.invalid""""+# The same idea one surface up: a project tier of the pre-reshape era. Modelled on a real machine's+# `pipelex_override.toml` — its table headers, with every value invented, because a checked-in+# fixture must carry none of a person's. The handful of tables is deliberate and it is what makes+# this a fair specimen: each one leaves `[pipelex]` by a different route (two `move_key`s, the root+# rename, and a rename inside what that rename leaves behind), so a tier file exercises four of the+# entry's operation shapes without being a second census.+OLD_SHAPE_PROJECT_PIPELEX_OVERRIDE = """\+# This project keeps its own bucket and turns the logs up.+[pipelex.log_config]+default_log_level = "DEBUG"++[pipelex.log_config.package_log_levels]+pipelex = "DEBUG"++[pipelex.storage_config]+method = "s3"++[pipelex.storage_config.s3]+bucket_name = "example-project-bucket"+region = "eu-west-3"++[pipelex.builder_config]+default_output_dir = "build"+"""+def _old_shape_telemetry_document() -> str:"""The flat pre-history document the shipped entry is about, read from the package."""- path = pre_history_document_path(migration_dir=packaged_migration_dir(), surface_id=TELEMETRY_SURFACE_ID, schema_version=2)+ path = pre_history_document_path(migration_dir=packaged_migration_dir(), surface_id=TELEMETRY_CONFIG_SURFACE_ID, schema_version=2)+ return path.read_text(encoding="utf-8")+++def _pre_reshape_pipelex_config_document() -> str:+ """The whole main configuration in its pre-reshape shape, read from the package.++ `[email protected]` is the packaged `pipelex.toml` as it stood at schema 1 — the document the+ reshape entry was authored against — so it names every path the entry touches and nothing it+ does not. Read live rather than transcribed here, for the same reason the telemetry fixture is:+ a transcribed one would eventually describe a shape the shipped ledger no longer migrates, and+ would go on passing.+ """+ path = defaults_golden_path(migration_dir=packaged_migration_dir(), surface_id=PIPELEX_CONFIG_SURFACE_ID, schema_version=1)return path.read_text(encoding="utf-8")+def _todays_pipelex_config_document() -> dict[str, Any]:+ """What the package's own `pipelex.toml` says now — the shape a migration has to land on.++ Read through the surface rather than by path, so this tracks wherever the packaged document+ lives, and read as the live file rather than as `[email protected]`: the golden is a snapshot of+ this, and comparing against the snapshot would leave a gap exactly the width of a stale one.+ """+ registry = build_config_surface_registry()+ return registry.surface_for_id(surface_id=PIPELEX_CONFIG_SURFACE_ID).read_defaults_document()+++def _project_config_dir(*, hermetic_home: Path) -> Path:+ """The `.pipelex/` of a project rooted inside the hermetic HOME, created if it is not there.++ `exist_ok`, because a machine can be behind on more than one surface at once and the plantings+ that make it so are separate functions that both need this directory.+ """+ config_dir = hermetic_home / PROJECT_DIR_NAME / ".pipelex"+ config_dir.mkdir(parents=True, exist_ok=True)+ return config_dir++def _plant_a_stale_machine(*, hermetic_home: Path) -> tuple[Path, Path, Path]:"""A machine with an old-shape file in the global directory and another in a project.@@ -74,12 +145,27 @@ def _plant_a_stale_machine(*, hermetic_home: Path) -> tuple[Path, Path, Path]:global_file = hermetic_home / ".pipelex" / "telemetry.toml"global_file.write_text(_old_shape_telemetry_document(), encoding="utf-8")- project_dir = hermetic_home / "workspace"- project_config_dir = project_dir / ".pipelex"- project_config_dir.mkdir(parents=True)- project_file = project_config_dir / "telemetry_override.toml"+ project_file = _project_config_dir(hermetic_home=hermetic_home) / "telemetry_override.toml"project_file.write_text(OLD_SHAPE_PROJECT_OVERRIDE, encoding="utf-8")- return project_dir, global_file, project_file+ return hermetic_home / PROJECT_DIR_NAME, global_file, project_file+++def _plant_a_pre_reshape_machine(*, hermetic_home: Path) -> tuple[Path, Path, Path]:+ """The same two tiers, one surface up: a main configuration written before the reshape.++ The global file **replaces** what `hermetic_home` seeded there, which is the current kit+ template — a machine that had already been migrated would prove nothing. The project tier is a+ `pipelex_override.toml`, claimed by the surface's `pipelex_*.toml` glob and merged by the+ loader, so a run that reached only the base file would come back visibly short.++ Returns the project directory, the global file and the project file.+ """+ global_file = hermetic_home / ".pipelex" / "pipelex.toml"+ global_file.write_text(_pre_reshape_pipelex_config_document(), encoding="utf-8")++ project_file = _project_config_dir(hermetic_home=hermetic_home) / "pipelex_override.toml"+ project_file.write_text(OLD_SHAPE_PROJECT_PIPELEX_OVERRIDE, encoding="utf-8")+ return hermetic_home / PROJECT_DIR_NAME, global_file, project_filedef _run(*, args: list[str], env: dict[str, str], cwd: Path, answers: str | None = None) -> subprocess.CompletedProcess[str]:@@ -265,6 +351,220 @@ class TestTheAgentMigrateLoop:assert json.loads(refused.stderr)["error_type"] == "ArgumentError"+class TestAPreReshapeMachine:+ """The machine this release actually meets: a main configuration written before the reshape.++ Everything above is planted on `telemetry-config`, whose entry nests one flat document — a+ small change, and one that shipped before the reshape did. `pipelex-config@2` is the other+ size of thing. It renames the root tables of the file every boot reads, so the machine it+ migrates is not a corner case but every installation that predates this release, and the two+ tiers planted here are the two a real one has: the global `~/.pipelex/pipelex.toml` an install+ left behind, and a project's `pipelex_override.toml` beside it.++ Until this class the entry was proved by the engine's own goldens and by nothing else. What is+ added is the rest of the chain — the walk, the filesystem, the backup, the binary a person+ types — and the property that only the whole chain can show: a boot that carries the old shape+ forward in memory, a command that then writes it, and a boot that has nothing left to carry.+ """++ def test_the_human_command_carries_a_pre_reshape_machine_onto_todays_shape(+ self,+ hermetic_home: Path,+ offline_subprocess_env: dict[str, str],+ ) -> None:+ """The whole loop through `pipelex migrate`, with the strong assertion on the global file.++ Migrated, it says exactly what the package's own `pipelex.toml` says today.+ `make check-migration-schemas` already proves the *engine* turns `defaults@1` into+ `defaults@2`; what is proved here is that the *command* does — walking two directories,+ reading a user's file off a disk, writing it back and leaving the original beside it —+ which no golden can show.++ Semantically, not byte for byte, and the entry's own guidance says why: a moved section may+ land at the end of the migrated file rather than where it was, and a banner comment+ introducing one stays behind. What the migration keeps is settings, not layout.+ """+ project_dir, global_file, project_file = _plant_a_pre_reshape_machine(hermetic_home=hermetic_home)+ originals = {path: path.read_text(encoding="utf-8") for path in (global_file, project_file)}++ _assert_boots(env=offline_subprocess_env, cwd=project_dir)++ migrated = _run(args=[str(PIPELEX_BIN), "--no-logo", "migrate", "--yes"], env=offline_subprocess_env, cwd=project_dir)++ assert migrated.returncode == 0, migrated.stdout + migrated.stderr+ report = migrated.stdout + migrated.stderr+ assert str(global_file) in report+ assert str(project_file) in report++ assert load_toml_from_path(path=global_file) == _todays_pipelex_config_document()+ # The tier keeps its four settings and nothing else — a migration that had quietly folded+ # the package defaults into a user's override would satisfy the assertion above and ruin+ # the layering, since an override is read as "only these, on top of whatever is beneath".+ assert load_toml_from_path(path=project_file) == {+ "runtime": {+ "log": {"default_log_level": "DEBUG", "package_log_levels": {"pipelex": "DEBUG"}},+ "storage": {"method": "s3", "s3": {"bucket_name": "example-project-bucket", "region": "eu-west-3"}},+ },+ "interpreter": {"builder": {"default_output_dir": "build"}},+ }++ for path, original in originals.items():+ backups = existing_backups_of(path=path)+ assert len(backups) == 1, f"expected exactly one backup of {path}, found {backups}"+ assert backups[0].read_text(encoding="utf-8") == original++ _assert_boots(env=offline_subprocess_env, cwd=project_dir)++ def test_the_agent_loop_plans_the_reshape_then_applies_it(+ self,+ hermetic_home: Path,+ offline_subprocess_env: dict[str, str],+ ) -> None:+ """The same machine through the other binary, where the plan is a document rather than prose.++ The entry is named per file rather than once for the run, and both files name it: a tier+ migrates on its own terms, and a plan that summarized the run would leave a consumer unable+ to tell which of its files a given step was about.+ """+ project_dir, global_file, project_file = _plant_a_pre_reshape_machine(hermetic_home=hermetic_home)++ planned = _run(+ args=[str(PIPELEX_AGENT_BIN), "migrate", "--dry-run", "--format", "json"],+ env=offline_subprocess_env,+ cwd=project_dir,+ )+ assert planned.returncode == 0, planned.stderr+ plan: dict[str, Any] = json.loads(planned.stdout)++ assert plan["applied"] is False+ assert plan["is_clean"] is False+ assert plan["needs_attention"] is False, "every path in a pre-reshape file is one the entry explains"+ assert plan["summary"]["files_changed"] == 2+ assert plan["summary"]["files_written"] == 0+ stepped = {plan_dict["file_path"]: [step["title"] for step in plan_dict["steps"]] for plan_dict in plan["plans"] if plan_dict["steps"]}+ assert stepped == {+ str(global_file): ["The configuration reshape: one scheme for the root"],+ str(project_file): ["The configuration reshape: one scheme for the root"],+ }+ assert existing_backups_of(path=global_file) == [], "a plan is not a write"++ applied = _run(args=[str(PIPELEX_AGENT_BIN), "migrate", "--yes", "--format", "json"], env=offline_subprocess_env, cwd=project_dir)+ assert applied.returncode == 0, applied.stderr+ outcome: dict[str, Any] = json.loads(applied.stdout)++ assert outcome["applied"] is True+ assert outcome["summary"]["files_written"] == 2+ written = {plan_dict["file_path"] for plan_dict in outcome["plans"] if plan_dict["was_written"]}+ assert written == {str(global_file), str(project_file)}++ _assert_boots(env=offline_subprocess_env, cwd=project_dir)++ def test_one_run_migrates_every_surface_the_machine_is_behind_on(+ self,+ hermetic_home: Path,+ offline_subprocess_env: dict[str, str],+ ) -> None:+ """A machine upgrading across this release is behind on two surfaces, not one.++ Nothing else in this module puts two ledgers in one run, and the run is where they could+ interfere: the walk claims each file for exactly one surface, and a file claimed for the+ wrong one would either be reported clean or be handed a ledger with nothing to say about+ it. Four files written, from two directories, under two entries.+ """+ _plant_a_stale_machine(hermetic_home=hermetic_home)+ project_dir, _, _ = _plant_a_pre_reshape_machine(hermetic_home=hermetic_home)++ applied = _run(args=[str(PIPELEX_AGENT_BIN), "migrate", "--yes", "--format", "json"], env=offline_subprocess_env, cwd=project_dir)++ assert applied.returncode == 0, applied.stderr+ outcome: dict[str, Any] = json.loads(applied.stdout)+ assert outcome["summary"]["files_written"] == 4+ assert outcome["needs_attention"] is False++ _assert_boots(env=offline_subprocess_env, cwd=project_dir)++ settled = _run(+ args=[str(PIPELEX_AGENT_BIN), "migrate", "--dry-run", "--format", "json"],+ env=offline_subprocess_env,+ cwd=project_dir,+ )+ assert json.loads(settled.stdout)["is_clean"] is True++ def test_no_value_from_a_pre_reshape_file_is_rendered_while_it_is_moved(+ self,+ hermetic_home: Path,+ offline_subprocess_env: dict[str, str],+ ) -> None:+ """The contract's mechanical rule again, on the entry that moves the most.++ The planted value is a bucket name rather than a credential, because the main configuration+ holds no credentials — secrets reach it through the environment. It is still exactly what+ must not leave the machine: private infrastructure, in the file a person pastes into an+ issue when a boot goes wrong. It rides a `move_key` the reshape performs, so the run+ demonstrably read it, wrote it under its new address, and never said it.+ """+ planted = "s3-prod-eu-pipelex-artifacts-must-never-be-rendered"+ project_dir, _, project_file = _plant_a_pre_reshape_machine(hermetic_home=hermetic_home)+ project_file.write_text(OLD_SHAPE_PROJECT_PIPELEX_OVERRIDE.replace("example-project-bucket", planted), encoding="utf-8")++ channels = [+ _run(args=[str(PIPELEX_BIN), "--no-logo", "migrate", "--dry-run"], env=offline_subprocess_env, cwd=project_dir),+ _run(+ args=[str(PIPELEX_AGENT_BIN), "migrate", "--dry-run", "--format", "json"],+ env=offline_subprocess_env,+ cwd=project_dir,+ ),+ _run(+ args=[str(PIPELEX_AGENT_BIN), "migrate", "--dry-run", "--format", "markdown"],+ env=offline_subprocess_env,+ cwd=project_dir,+ ),+ _run(args=[str(PIPELEX_BIN), "--no-logo", "migrate", "--yes"], env=offline_subprocess_env, cwd=project_dir),+ ]+ for channel in channels:+ assert planted not in channel.stdout+ assert planted not in channel.stderr++ assert load_toml_from_path(path=project_file)["runtime"]["storage"]["s3"]["bucket_name"] == planted++ def test_a_pre_reshape_file_the_entry_only_half_explains_reports_both_halves(+ self,+ hermetic_home: Path,+ offline_subprocess_env: dict[str, str],+ ) -> None:+ """Old *and* wrong: the boot fails, and the block says which part the command can take.++ This is the machine a person actually writes to support about, and it is the one where the+ two halves of the report have to coexist — the reshape is pending on this file *and* it+ holds a key no entry explains. A block that reported only the second would read as "your+ configuration is broken", when most of what is wrong with it is a command away.+ """+ planted = "phc_L1VE_pre_reshape_key_that_must_never_be_rendered"+ _plant_a_pre_reshape_machine(hermetic_home=hermetic_home)+ global_file = hermetic_home / ".pipelex" / "pipelex.toml"+ # At the top of the document, so the key lands at the root rather than inside whichever+ # table happens to be last — and the root is where no ledger operation would remove it.+ global_file.write_text(f'posthog_project_key = "{planted}"\n{global_file.read_text(encoding="utf-8")}', encoding="utf-8")++ boot = _boot(env=offline_subprocess_env, cwd=hermetic_home)++ assert boot.returncode != 0, "a file the ledger cannot fully explain still fails the boot"+ assert boot.stderr.count('"error": true') == 1, boot.stderr+ envelope: dict[str, Any] = json.loads(boot.stderr)+ assert envelope["error_type"] == "PipelexConfigError"+ assert envelope["error_domain"] == "config"++ block: dict[str, Any] = envelope["migration"]+ assert block["remedy"] == "pipelex migrate"+ assert block["needs_attention"] is True+ assert [step["title"] for plan in block["plans"] for step in plan["steps"]] == ["The configuration reshape: one scheme for the root"]+ assert [found["path"] for plan in block["plans"] for found in plan["unexplained"]] == ["posthog_project_key"]++ assert planted not in boot.stdout+ assert planted not in boot.stderr+ assert planted in global_file.read_text(encoding="utf-8"), "nothing was written, so the value is still there"++class TestTheBootstrapPath:"""The property that makes this command reachable at all: it runs when nothing else does.diff --git a/tests/e2e/pipelex/graph/test_graph_renderers_from_json.py b/tests/e2e/pipelex/graph/test_graph_renderers_from_json.pyindex caacf1089..6d1ad8e83 100644--- a/tests/e2e/pipelex/graph/test_graph_renderers_from_json.py+++ b/tests/e2e/pipelex/graph/test_graph_renderers_from_json.py@@ -38,7 +38,7 @@ class TestGraphRenderersFromJson:def _get_graph_config_with_data(self):"""Get a graph config with all stuff data inclusion flags enabled."""- base_graph_config = get_config().pipelex.pipeline_execution_config.graph_config+ base_graph_config = get_config().interpreter.pipeline_execution.graphnew_data_inclusion = base_graph_config.data_inclusion.model_copy(update={"stuff_json_content": True,@@ -104,7 +104,7 @@ class TestGraphRenderersFromJson:# Generate ReactFlow HTML directly from GraphSpecreactflow_html = await generate_reactflow_html_async(graph_spec,- config=graph_config.reactflow_config,+ config=graph_config.reactflow,title=f"ReactFlow: {topic}",)reactflow_path = output_dir / "reactflow.html"diff --git a/tests/e2e/pipelex/graph/test_graph_with_full_data.py b/tests/e2e/pipelex/graph/test_graph_with_full_data.pyindex bded7d1f1..0f9cf7dc6 100644--- a/tests/e2e/pipelex/graph/test_graph_with_full_data.py+++ b/tests/e2e/pipelex/graph/test_graph_with_full_data.py@@ -39,7 +39,7 @@ def _get_next_output_folder() -> Path:async def _save_graph_outputs(graph_spec: GraphSpec, output_dir: Path) -> dict[str, int]:"""Save all graph outputs and return stats about stuff_data collection."""# Get graph config with ALL stuff data formats enabled for interactive rendering- base_graph_config = get_config().pipelex.pipeline_execution_config.graph_config+ base_graph_config = get_config().interpreter.pipeline_execution.graphnew_data_inclusion = base_graph_config.data_inclusion.model_copy(update={"stuff_json_content": True,@@ -50,7 +50,7 @@ async def _save_graph_outputs(graph_spec: GraphSpec, output_dir: Path) -> dict[sgraph_config = base_graph_config.model_copy(update={"data_inclusion": new_data_inclusion})# Get theme from config- mermaid_theme = graph_config.mermaid_config.style.theme+ mermaid_theme = graph_config.mermaid.style.theme# Save graph.jsongraph_json_path = output_dir / "graph.json"@@ -106,7 +106,7 @@ class TestGraphWithFullData:4. Verifies interactive rendering works with the captured data"""# Build effective config with graph tracing and full data capture enabled- exec_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ exec_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=True,force_include_full_data=True,)@@ -257,7 +257,7 @@ class TestGraphWithFullData:)# Generate ReactFlow HTML- rf_config = get_config().pipelex.pipeline_execution_config.graph_config.reactflow_config+ rf_config = get_config().interpreter.pipeline_execution.graph.reactflowreactflow_html = await generate_reactflow_html_async(graph_spec, config=rf_config, title="Graph: cv_job_matcher")reactflow_path = output_dir / "reactflow.html"reactflow_path.write_text(reactflow_html, encoding="utf-8")diff --git a/tests/e2e/pipelex/graph/test_mermaid_from_json.py b/tests/e2e/pipelex/graph/test_mermaid_from_json.pyindex b3455288a..b2ef02011 100644--- a/tests/e2e/pipelex/graph/test_mermaid_from_json.py+++ b/tests/e2e/pipelex/graph/test_mermaid_from_json.py@@ -37,7 +37,7 @@ class TestMermaidFromJson:def _get_graph_config_with_data(self):"""Get a graph config with stuff data inclusion enabled."""- base_graph_config = get_config().pipelex.pipeline_execution_config.graph_config+ base_graph_config = get_config().interpreter.pipeline_execution.graphnew_data_inclusion = base_graph_config.data_inclusion.model_copy(update={"stuff_json_content": True})return base_graph_config.model_copy(update={"data_inclusion": new_data_inclusion})diff --git a/tests/e2e/pipelex/graph/test_reactflow_from_json.py b/tests/e2e/pipelex/graph/test_reactflow_from_json.pyindex dedd0e664..6600b963f 100644--- a/tests/e2e/pipelex/graph/test_reactflow_from_json.py+++ b/tests/e2e/pipelex/graph/test_reactflow_from_json.py@@ -56,7 +56,7 @@ class TestReactFlowFromJson:assert len(graph_spec.edges) > 0# Generate ReactFlow HTML directly from GraphSpec- rf_config = get_config().pipelex.pipeline_execution_config.graph_config.reactflow_config+ rf_config = get_config().interpreter.pipeline_execution.graph.reactflowreactflow_html = await generate_reactflow_html_async(graph_spec, config=rf_config, title=f"Graph: {topic}")# Save outputs to TEST_OUTPUTS_DIR@@ -97,7 +97,7 @@ class TestReactFlowFromJson:graph_spec = GraphSpec.model_validate_json(json_str)# Generate ReactFlow HTML- rf_config = get_config().pipelex.pipeline_execution_config.graph_config.reactflow_config+ rf_config = get_config().interpreter.pipeline_execution.graph.reactflowreactflow_html = await generate_reactflow_html_async(graph_spec, config=rf_config, title="Test Graph")# Verify GraphSpec is embeddeddiff --git a/tests/e2e/pipelex/pipes/optionals/test_lift_parity_dry_live.py b/tests/e2e/pipelex/pipes/optionals/test_lift_parity_dry_live.pyindex 8725ed7ed..acad55a81 100644--- a/tests/e2e/pipelex/pipes/optionals/test_lift_parity_dry_live.py+++ b/tests/e2e/pipelex/pipes/optionals/test_lift_parity_dry_live.py@@ -29,7 +29,7 @@ class TestLiftedChainDryLiveParity:seeding), yields identical ledgers (keys, kinds, producing pipes) and identical skippedgraph nodes with the same skip reasons."""- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(generate_graph=True)+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=True)live_runner = PipelexMTHDSProtocol(library_dirs=[str(_FIXTURE_DIR)], execution_config=execution_config)live_response = await live_runner.execute(pipe_code="opar_flow", inputs={})diff --git a/tests/e2e/pipelex/pipes/optionals/test_optionals_showcase_mthds.py b/tests/e2e/pipelex/pipes/optionals/test_optionals_showcase_mthds.pyindex 2cc2cf437..fb68d7d59 100644--- a/tests/e2e/pipelex/pipes/optionals/test_optionals_showcase_mthds.py+++ b/tests/e2e/pipelex/pipes/optionals/test_optionals_showcase_mthds.py@@ -56,7 +56,7 @@ class TestOptionalsShowcaseE2E:the `continue` arm, and the absorbing sink still delivers the main output — with the graphmarking the lifted pipes as skipped."""- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(generate_graph=True)+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=True)runner = PipelexMTHDSProtocol(library_dirs=[str(_FIXTURE_DIR)], execution_config=execution_config)response = await runner.execute(pipe_code="oshow_main_flow", inputs={"contract": "a clean contract"})diff --git a/tests/e2e/pipelex/pipes/pipe_controller/pipe_batch/test_pipe_batch_graph.py b/tests/e2e/pipelex/pipes/pipe_controller/pipe_batch/test_pipe_batch_graph.pyindex 91cda50c8..07f883299 100644--- a/tests/e2e/pipelex/pipes/pipe_controller/pipe_batch/test_pipe_batch_graph.py+++ b/tests/e2e/pipelex/pipes/pipe_controller/pipe_batch/test_pipe_batch_graph.py@@ -43,7 +43,7 @@ class TestPipeBatchGraph:4. Saves the GraphSpec for inspection"""# Build effective config with graph tracing enabled- exec_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ exec_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=True,force_include_full_data=False,)@@ -166,15 +166,15 @@ class TestPipeBatchGraph:No fancy assertions - just generate the outputs like CLI does."""# Build config with graph tracing and all graph outputs enabled- base_config = get_config().pipelex.pipeline_execution_config+ base_config = get_config().interpreter.pipeline_executionexec_config = base_config.with_execution_overrides(generate_graph=True,force_include_full_data=False,)# Enable all graph outputs- graph_config = exec_config.graph_config.model_copy(+ graph_config = exec_config.graph.model_copy(update={- "graphs_inclusion": exec_config.graph_config.graphs_inclusion.model_copy(+ "graphs_inclusion": exec_config.graph.graphs_inclusion.model_copy(update={"graphspec_json": True,"mermaidflow_html": True,@@ -183,7 +183,7 @@ class TestPipeBatchGraph:)})- exec_config = exec_config.model_copy(update={"graph_config": graph_config})+ exec_config = exec_config.model_copy(update={"graph": graph_config})# Run joke batch pipelinerunner = PipelexMTHDSProtocol(diff --git a/tests/e2e/pipelex/pipes/pipe_controller/pipe_parallel/test_pipe_parallel_graph.py b/tests/e2e/pipelex/pipes/pipe_controller/pipe_parallel/test_pipe_parallel_graph.pyindex da5a7c728..f0065897a 100644--- a/tests/e2e/pipelex/pipes/pipe_controller/pipe_parallel/test_pipe_parallel_graph.py+++ b/tests/e2e/pipelex/pipes/pipe_controller/pipe_parallel/test_pipe_parallel_graph.py@@ -45,14 +45,14 @@ class TestPipeParallelGraph:Expected: DATA edges flow from PipeParallel to combine_summaries (not from sub-pipes)."""# Build config with graph tracing and all graph outputs enabled- base_config = get_config().pipelex.pipeline_execution_config+ base_config = get_config().interpreter.pipeline_executionexec_config = base_config.with_execution_overrides(generate_graph=True,force_include_full_data=False,)- graph_config = exec_config.graph_config.model_copy(+ graph_config = exec_config.graph.model_copy(update={- "graphs_inclusion": exec_config.graph_config.graphs_inclusion.model_copy(+ "graphs_inclusion": exec_config.graph.graphs_inclusion.model_copy(update={"graphspec_json": True,"mermaidflow_html": True,@@ -61,7 +61,7 @@ class TestPipeParallelGraph:)})- exec_config = exec_config.model_copy(update={"graph_config": graph_config})+ exec_config = exec_config.model_copy(update={"graph": graph_config})# Run pipeline with input textrunner = PipelexMTHDSProtocol(@@ -185,14 +185,14 @@ class TestPipeParallelGraph:- pg3_sequence: 3-branch PipeParallel with selective downstream consumption (1 branch unused)"""# Build config with graph tracing- base_config = get_config().pipelex.pipeline_execution_config+ base_config = get_config().interpreter.pipeline_executionexec_config = base_config.with_execution_overrides(generate_graph=True,force_include_full_data=False,)- graph_config = exec_config.graph_config.model_copy(+ graph_config = exec_config.graph.model_copy(update={- "graphs_inclusion": exec_config.graph_config.graphs_inclusion.model_copy(+ "graphs_inclusion": exec_config.graph.graphs_inclusion.model_copy(update={"graphspec_json": True,"reactflow_html": True,@@ -200,7 +200,7 @@ class TestPipeParallelGraph:)})- exec_config = exec_config.model_copy(update={"graph_config": graph_config})+ exec_config = exec_config.model_copy(update={"graph": graph_config})# Run pipelinerunner = PipelexMTHDSProtocol(diff --git a/tests/e2e/pipelex/pipes/smart_inputs/test_smart_inputs_files_dry_run.py b/tests/e2e/pipelex/pipes/smart_inputs/test_smart_inputs_files_dry_run.pyindex 4ba6a2f8f..c770f32bd 100644--- a/tests/e2e/pipelex/pipes/smart_inputs/test_smart_inputs_files_dry_run.py+++ b/tests/e2e/pipelex/pipes/smart_inputs/test_smart_inputs_files_dry_run.py@@ -34,7 +34,7 @@ def _no_normalize_config() -> "PipelineExecutionConfig":path stays a filesystem path (normalization would otherwise rewrite it to a pipelex-storage URI— a legitimate downstream step, but it would obscure exactly the resolution this test pins)."""- return get_config().pipelex.pipeline_execution_config.model_copy(update={"is_normalize_data_urls_to_storage": False})+ return get_config().interpreter.pipeline_execution.model_copy(update={"is_normalize_data_urls_to_storage": False})@pytest.mark.asyncio(loop_scope="class")diff --git a/tests/integration/pipelex/cogt/content_generation/test_leaf_dry_object_mocks.py b/tests/integration/pipelex/cogt/content_generation/test_leaf_dry_object_mocks.pyindex 2407505f9..9997d788a 100644--- a/tests/integration/pipelex/cogt/content_generation/test_leaf_dry_object_mocks.py+++ b/tests/integration/pipelex/cogt/content_generation/test_leaf_dry_object_mocks.py@@ -6,7 +6,7 @@ class (pre-flight decision 2), exercising real datamodel-code-generator codegen.- a representative ``StructuredContent`` mocks into a valid instance of the original class(the object-mock fidelity pin mandated by pre-flight decision 2);- ``nb_items`` carried on ``ObjectAssignment`` controls the dry list length, falling back to- ``dry_run_config.nb_list_items`` (eng review D11);+ ``inference.dry_run.nb_list_items`` (eng review D11);- the structured-search dry leaf splits the same way the object leaf does: at the boundary it returns adict built from the schema rebuild, where a dropped invariant surfaces as ``DryRunObjectFidelityError``(eng review D6); in-process it mocks the caller's real class, where that invariant is present at build@@ -143,10 +143,10 @@ class TestLeafDryObjectMocks:assert first_item_pipe_code == "mock_main"async def test_dry_object_list_defaults_to_config_length(self) -> None:- """Without nb_items the dry list falls back to dry_run_config.nb_list_items."""+ """Without nb_items the dry list falls back to inference.dry_run.nb_list_items."""mocks = dry_llm_gen_object_list(_dry_object_assignment(RepresentativeInvoiceLine))- assert len(mocks) == get_config().pipelex.dry_run_config.nb_list_items+ assert len(mocks) == get_config().inference.dry_run.nb_list_itemsasync def test_generator_dry_object_list_keeps_fixed_length(self, job_metadata: JobMetadata, content_generator: ContentGeneratorProtocol) -> None:"""End-to-end through ContentGenerator: a fixed nb_items survives down to the dry leaf (D11 regression)."""diff --git a/tests/integration/pipelex/fixtures/generator_fixtures.py b/tests/integration/pipelex/fixtures/generator_fixtures.pyindex 697cd2234..a4acfe0f5 100644--- a/tests/integration/pipelex/fixtures/generator_fixtures.py+++ b/tests/integration/pipelex/fixtures/generator_fixtures.py@@ -20,7 +20,7 @@ def generated_content_factory(tmp_path: Path) -> GeneratedContentFactory:Applies test overrides for bucket names and signed URL lifespans."""- storage_provider_config = get_config().pipelex.storage_config+ storage_provider_config = get_config().runtime.storagematch storage_provider_config.method:case StorageMethod.S3:assert storage_provider_config.s3 is not Nonediff --git a/tests/integration/pipelex/kernel/test_usage_parity.py b/tests/integration/pipelex/kernel/test_usage_parity.pyindex 518ff8b83..b3f43eae0 100644--- a/tests/integration/pipelex/kernel/test_usage_parity.py+++ b/tests/integration/pipelex/kernel/test_usage_parity.py@@ -88,12 +88,12 @@ class TestKernelUsageParity:return [make_tokens_usage_record(tokens_usage) for tokens_usage in tokens_usages]async def _run_through_the_interpreter(self, mocker: MockerFixture, traces_dir: str) -> list[TokensUsageRecord]:- tracing_config = get_config().pipelex.tracing_config+ tracing_config = get_config().runtime.tracingmocker.patch.object(tracing_config, "is_enabled", True)mocker.patch.object(tracing_config, "backend", TracingBackend.NDJSON)mocker.patch.object(tracing_config, "ndjson", NdjsonTracingConfig(traces_dir=traces_dir))- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,generate_usage=True,)@@ -115,7 +115,7 @@ class TestKernelUsageParity:event_log = InMemoryEventLog()trace_context = TraceContext(graph_id="kernel-usage-parity",- data_inclusion=get_config().pipelex.pipeline_execution_config.graph_config.data_inclusion,+ data_inclusion=get_config().interpreter.pipeline_execution.graph.data_inclusion,emit_graph_events=False,emit_usage_events=True,)diff --git a/tests/integration/pipelex/kit/test_sync_agent_rules_cleanup.py b/tests/integration/pipelex/kit/test_sync_agent_rules_cleanup.pyindex 923acfec2..c40e834e3 100644--- a/tests/integration/pipelex/kit/test_sync_agent_rules_cleanup.py+++ b/tests/integration/pipelex/kit/test_sync_agent_rules_cleanup.py@@ -27,7 +27,7 @@ class TestSyncAgentRulesCleanup:claude_path.write_text("# CLAUDE\n", encoding="utf-8")fake_config = mocker.MagicMock()- fake_config.pipelex.kit_config.preferred_agent_targets = [AgentTarget.CLAUDE, AgentTarget.AGENTS]+ fake_config.kit.preferred_agent_targets = [AgentTarget.CLAUDE, AgentTarget.AGENTS]mocker.patch.object(kit_cmd, "get_config", return_value=fake_config)kit_cmd._sync_agent_rules( # noqa: SLF001 # pyright: ignore[reportPrivateUsage]diff --git a/tests/integration/pipelex/libraries/test_hosted_pipe_func_load.py b/tests/integration/pipelex/libraries/test_hosted_pipe_func_load.pyindex 251ea60fb..b06532822 100644--- a/tests/integration/pipelex/libraries/test_hosted_pipe_func_load.py+++ b/tests/integration/pipelex/libraries/test_hosted_pipe_func_load.py@@ -46,7 +46,7 @@ def sandbox_hosted_mode() -> Generator[None, None, None]:plugin, so this open-core test uses a neutral ``"sandbox"`` token — it only flips the hosted flag(the executor already on the hub is never re-resolved here), so no registered mode is needed."""- pipe_func_config = get_config().pipelex.pipe_func_config+ pipe_func_config = get_config().interpreter.pipe_funcprevious = pipe_func_config.execution_modepipe_func_config.execution_mode = "sandbox"try:diff --git a/tests/integration/pipelex/pipeline/test_cost_report_rendering.py b/tests/integration/pipelex/pipeline/test_cost_report_rendering.pyindex 26c24284e..3ae4d4681 100644--- a/tests/integration/pipelex/pipeline/test_cost_report_rendering.py+++ b/tests/integration/pipelex/pipeline/test_cost_report_rendering.py@@ -77,13 +77,13 @@ def _free_model_usage(job_metadata: JobMetadata) -> LLMTokensUsage:@pytest.mark.asyncio(loop_scope="class")class TestCostReportRendering:def _enable_ndjson_tracing(self, mocker: MockerFixture, traces_dir: str) -> None:- cfg = get_config().pipelex.tracing_config+ cfg = get_config().runtime.tracingmocker.patch.object(cfg, "is_enabled", True)mocker.patch.object(cfg, "backend", TracingBackend.NDJSON)mocker.patch.object(cfg, "ndjson", NdjsonTracingConfig(traces_dir=traces_dir))def _config(self, *, generate_usage: bool) -> PipelineExecutionConfig:- return get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ return get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,generate_usage=generate_usage,mock_inputs=True,@@ -96,7 +96,7 @@ class TestCostReportRendering:async def test_renders_correct_non_zero_totals(self, mocker: MockerFixture, job_metadata: JobMetadata) -> None:"""Hand-built usage: the console channel renders the model, totals, and total cost."""- reporting_config = get_config().pipelex.reporting_config+ reporting_config = get_config().runtime.reportingmocker.patch.object(reporting_config, "is_log_costs_to_console", True)mocker.patch.object(reporting_config, "is_generate_cost_report_file_enabled", False)console = _recording_console()@@ -113,7 +113,7 @@ class TestCostReportRendering:"""A free/zero-price model with real tokens IS rendered (token counts shown, cost 0.0000) — NOTsuppressed like a dry run. Gating on zero cost alone would wrongly hide a real local-model run."""- reporting_config = get_config().pipelex.reporting_config+ reporting_config = get_config().runtime.reportingmocker.patch.object(reporting_config, "is_log_costs_to_console", True)mocker.patch.object(reporting_config, "is_generate_cost_report_file_enabled", False)console = _recording_console()@@ -129,7 +129,7 @@ class TestCostReportRendering:async def test_csv_channel_writes_file(self, mocker: MockerFixture, job_metadata: JobMetadata, tmp_path: Path) -> None:"""The CSV channel writes a populated report file under the configured directory."""- reporting_config = get_config().pipelex.reporting_config+ reporting_config = get_config().runtime.reportingmocker.patch.object(reporting_config, "is_log_costs_to_console", False)mocker.patch.object(reporting_config, "is_generate_cost_report_file_enabled", True)mocker.patch.object(reporting_config, "cost_report_dir_path", str(tmp_path))@@ -147,7 +147,7 @@ class TestCostReportRendering:a free model with real tokens would still render."""self._enable_ndjson_tracing(mocker, str(tmp_path_factory.mktemp("traces_render")))- reporting_config = get_config().pipelex.reporting_config+ reporting_config = get_config().runtime.reportingmocker.patch.object(reporting_config, "is_log_costs_to_console", True)mocker.patch.object(reporting_config, "is_generate_cost_report_file_enabled", False)console = _recording_console()@@ -169,7 +169,7 @@ class TestCostReportRendering:async def test_no_costs_renders_nothing(self, tmp_path_factory: pytest.TempPathFactory, mocker: MockerFixture) -> None:"""--no-costs assembles no usage, so the renderer prints nothing."""self._enable_ndjson_tracing(mocker, str(tmp_path_factory.mktemp("traces_no_costs")))- reporting_config = get_config().pipelex.reporting_config+ reporting_config = get_config().runtime.reportingmocker.patch.object(reporting_config, "is_log_costs_to_console", True)console = _recording_console()mocker.patch("pipelex.cogt.usage.cost_registry.get_console", return_value=console)diff --git a/tests/integration/pipelex/pipeline/test_direct_tracing_assembly.py b/tests/integration/pipelex/pipeline/test_direct_tracing_assembly.pyindex 64d4a9c8c..6bef2add5 100644--- a/tests/integration/pipelex/pipeline/test_direct_tracing_assembly.py+++ b/tests/integration/pipelex/pipeline/test_direct_tracing_assembly.py@@ -45,7 +45,7 @@ prompt = "Echo the $subject as a topic"def _config(*, generate_graph: bool, generate_usage: bool, full_data: bool = False) -> PipelineExecutionConfig:- return get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ return get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=generate_graph,generate_usage=generate_usage,mock_inputs=True,@@ -56,7 +56,7 @@ def _config(*, generate_graph: bool, generate_usage: bool, full_data: bool = Fal@pytest.mark.asyncio(loop_scope="class")class TestDirectTracingAssembly:def _enable_ndjson_tracing(self, mocker: MockerFixture, traces_dir: str) -> None:- cfg = get_config().pipelex.tracing_config+ cfg = get_config().runtime.tracingmocker.patch.object(cfg, "is_enabled", True)mocker.patch.object(cfg, "backend", TracingBackend.NDJSON)mocker.patch.object(cfg, "ndjson", NdjsonTracingConfig(traces_dir=traces_dir))diff --git a/tests/integration/pipelex/pipeline/test_dry_run_pipeline_graph.py b/tests/integration/pipelex/pipeline/test_dry_run_pipeline_graph.pyindex e293d7f7c..2f588c873 100644--- a/tests/integration/pipelex/pipeline/test_dry_run_pipeline_graph.py+++ b/tests/integration/pipelex/pipeline/test_dry_run_pipeline_graph.py@@ -2,7 +2,7 @@``dry_run_pipeline`` explicitly requests a graph (``generate_graph=True``), so producing it mustnot depend on the host's ``tracing_config`` — the validation host that surfaced this (pipelex-api-in direct mode) ships ``tracing_config.is_enabled = false``, which used to leave the tracer with+in direct mode) ships ``runtime.tracing.is_enabled = false``, which used to leave the tracer withno transport and the run with ``graph_spec=None``. The function now installs a scoped in-memoryevent log around the run, so:@@ -54,7 +54,7 @@ class TestDryRunPipelineGraphTransport:async def test_graph_produced_with_tracing_disabled(self, mocker: MockerFixture) -> None:"""The pipelex-api regression: tracing off must not mean graph off."""- mocker.patch.object(get_config().pipelex.tracing_config, "is_enabled", False)+ mocker.patch.object(get_config().runtime.tracing, "is_enabled", False)self._forbid_event_log_factory(mocker)graph_spec, pipe_code = await dry_run_pipeline(mthds_contents=[_DRY_RUN_GRAPH_MTHDS])@@ -69,7 +69,7 @@ class TestDryRunPipelineGraphTransport:async def test_scoped_log_takes_priority_over_enabled_backend(self, tmp_path_factory: pytest.TempPathFactory, mocker: MockerFixture) -> None:"""With tracing enabled, the scoped in-memory log still owns the run — no trace files written."""- cfg = get_config().pipelex.tracing_config+ cfg = get_config().runtime.tracingtraces_dir = tmp_path_factory.mktemp("dry_run_pipeline_traces")mocker.patch.object(cfg, "is_enabled", True)mocker.patch.object(cfg, "backend", TracingBackend.NDJSON)@@ -83,7 +83,7 @@ class TestDryRunPipelineGraphTransport:async def test_explicit_pipe_code_without_main_pipe_produces_graph(self, mocker: MockerFixture) -> None:"""An explicit graph target removes the main_pipe requirement for graph generation."""- mocker.patch.object(get_config().pipelex.tracing_config, "is_enabled", False)+ mocker.patch.object(get_config().runtime.tracing, "is_enabled", False)self._forbid_event_log_factory(mocker)graph_spec, pipe_code = await dry_run_pipeline(diff --git a/tests/integration/pipelex/pipeline/test_entry_concept_scope.py b/tests/integration/pipelex/pipeline/test_entry_concept_scope.pyindex 509ddbeed..c8367f551 100644--- a/tests/integration/pipelex/pipeline/test_entry_concept_scope.py+++ b/tests/integration/pipelex/pipeline/test_entry_concept_scope.py@@ -44,7 +44,7 @@ refines = "Text"@pytest.mark.asyncio(loop_scope="class")class TestEntryConceptScope:async def test_bare_envelope_concept_resolves_to_the_entry_pipe_domain(self) -> None:- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,mock_inputs=False,)diff --git a/tests/integration/pipelex/pipeline/test_execution_seams.py b/tests/integration/pipelex/pipeline/test_execution_seams.pyindex 4f8a4014f..6b76e0187 100644--- a/tests/integration/pipelex/pipeline/test_execution_seams.py+++ b/tests/integration/pipelex/pipeline/test_execution_seams.py@@ -40,7 +40,7 @@ prompt = "Echo the $subject as a topic"def _dry_mock_config() -> PipelineExecutionConfig:- return get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ return get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,mock_inputs=True,)@@ -177,7 +177,7 @@ class TestExecutionSeams:normalize_spy = mocker.spy(execution_seams_module, "normalize_data_urls_to_storage")normalize_config = (get_config()- .pipelex.pipeline_execution_config.with_execution_overrides(+ .interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,mock_inputs=False,)diff --git a/tests/integration/pipelex/pipeline/test_mock_usage_direct.py b/tests/integration/pipelex/pipeline/test_mock_usage_direct.pyindex 572feab27..7dc3af75b 100644--- a/tests/integration/pipelex/pipeline/test_mock_usage_direct.py+++ b/tests/integration/pipelex/pipeline/test_mock_usage_direct.py@@ -61,14 +61,14 @@ def _recording_console() -> Console:@pytest.mark.asyncio(loop_scope="class")class TestMockUsageDirect:def _enable_ndjson_tracing(self, mocker: MockerFixture, traces_dir: str) -> None:- cfg = get_config().pipelex.tracing_config+ cfg = get_config().runtime.tracingmocker.patch.object(cfg, "is_enabled", True)mocker.patch.object(cfg, "backend", TracingBackend.NDJSON)mocker.patch.object(cfg, "ndjson", NdjsonTracingConfig(traces_dir=traces_dir))def _config(self) -> PipelineExecutionConfig:# Costs on (default) so usage assembles; mock_inputs fills the `subject` input for the dry run.- return get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ return get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,generate_usage=True,mock_inputs=True,@@ -118,7 +118,7 @@ class TestMockUsageDirect:"""The end-of-run cost report RENDERS for an is_mock_usage run (non-suppressed), under the sentinel model."""self._enable_ndjson_tracing(mocker, str(tmp_path_factory.mktemp("traces_mock_render")))mocker.patch("pipelex.cogt.content_generation.llm_generate.get_llm_worker")- reporting_config = get_config().pipelex.reporting_config+ reporting_config = get_config().runtime.reportingmocker.patch.object(reporting_config, "is_log_costs_to_console", True)mocker.patch.object(reporting_config, "is_generate_cost_report_file_enabled", False)console = _recording_console()diff --git a/tests/integration/pipelex/pipeline/test_optional_method_inputs.py b/tests/integration/pipelex/pipeline/test_optional_method_inputs.pyindex 4892b17ab..6d8ddabbf 100644--- a/tests/integration/pipelex/pipeline/test_optional_method_inputs.py+++ b/tests/integration/pipelex/pipeline/test_optional_method_inputs.py@@ -61,7 +61,7 @@ class TestOptionalMethodInputs:"""prepare_pipe_job seeds a not-provided absence record for each omitted `?` input."""library_id = load_empty_library()pipe = _make_method_pipe()- execution_config = get_config().pipelex.pipeline_execution_config+ execution_config = get_config().interpreter.pipeline_executionpipe_job = await prepare_pipe_job(pipe=pipe,@@ -91,7 +91,7 @@ class TestOptionalMethodInputs:async def test_provided_optional_input_leaves_no_record(self, load_empty_library: Callable[[], str]):library_id = load_empty_library()pipe = _make_method_pipe()- execution_config = get_config().pipelex.pipeline_execution_config+ execution_config = get_config().interpreter.pipeline_executionpipe_job = await prepare_pipe_job(pipe=pipe,@@ -115,7 +115,7 @@ class TestOptionalMethodInputs:"""library_id = load_empty_library()pipe = _make_method_pipe()- execution_config = get_config().pipelex.pipeline_execution_config+ execution_config = get_config().interpreter.pipeline_executionchained_memory = WorkingMemoryFactory.make_from_single_stuff(StuffFactory.make_from_str("penalties", name="topic"))upstream_record = AbsenceRecord(@@ -167,7 +167,7 @@ class TestOptionalMethodInputs:"""Dry-run mock seeding stays all-present (D6): optional inputs get mocks, no records."""library_id = load_empty_library()pipe = _make_method_pipe()- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,mock_inputs=True,)diff --git a/tests/integration/pipelex/pipeline/test_pipeline_run_id_resubmission.py b/tests/integration/pipelex/pipeline/test_pipeline_run_id_resubmission.pyindex 6db1714be..eec1156a2 100644--- a/tests/integration/pipelex/pipeline/test_pipeline_run_id_resubmission.py+++ b/tests/integration/pipelex/pipeline/test_pipeline_run_id_resubmission.py@@ -66,7 +66,7 @@ prompt = "Echo the $subject as a topic"def _dry_mock_config() -> PipelineExecutionConfig:- return get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ return get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,mock_inputs=True,)@@ -171,7 +171,7 @@ class TestPipelineRunIdResubmission:``PipeRun.run``'s close_tracer handling."""explicit_run_id = "resubmission-teardown-raise-run-id"- graph_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ graph_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=True,mock_inputs=True,)diff --git a/tests/integration/pipelex/pipeline/test_pipeline_run_setup_characterization.py b/tests/integration/pipelex/pipeline/test_pipeline_run_setup_characterization.pyindex 00515c006..da5031c58 100644--- a/tests/integration/pipelex/pipeline/test_pipeline_run_setup_characterization.py+++ b/tests/integration/pipelex/pipeline/test_pipeline_run_setup_characterization.py@@ -90,14 +90,14 @@ prompt = "Echo the $subject as a topic"def _dry_mock_config() -> PipelineExecutionConfig:- return get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ return get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,mock_inputs=True,)def _no_mock_config() -> PipelineExecutionConfig:- return get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ return get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,mock_inputs=False,)@@ -222,7 +222,7 @@ class TestPipelineRunSetupCharacterization:# registered during the run), then assert the ReportingManager carries NO per-run state afterward:# the registry concept no longer exists, and the event-log context was cleared on the success path.traces_dir = str(tmp_path_factory.mktemp("char_no_leak"))- tracing_config = get_config().pipelex.tracing_config+ tracing_config = get_config().runtime.tracingmocker.patch.object(tracing_config, "is_enabled", True)mocker.patch.object(tracing_config, "backend", TracingBackend.NDJSON)mocker.patch.object(tracing_config, "ndjson", NdjsonTracingConfig(traces_dir=traces_dir))@@ -231,7 +231,7 @@ class TestPipelineRunSetupCharacterization:# The registry attribute is gone for good — the leak cannot recur.assert not hasattr(delegate, "_usage_registries")- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,generate_usage=True,mock_inputs=True,diff --git a/tests/integration/pipelex/pipeline/test_pipeline_run_setup_emit_gates.py b/tests/integration/pipelex/pipeline/test_pipeline_run_setup_emit_gates.pyindex 41bf64ea1..55fe9e287 100644--- a/tests/integration/pipelex/pipeline/test_pipeline_run_setup_emit_gates.py+++ b/tests/integration/pipelex/pipeline/test_pipeline_run_setup_emit_gates.py@@ -45,7 +45,7 @@ prompt = "Echo the $subject as a topic"def _config(*, generate_graph: bool, generate_usage: bool) -> PipelineExecutionConfig:- return get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ return get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=generate_graph,generate_usage=generate_usage,mock_inputs=True,@@ -69,7 +69,7 @@ def _cleanup(pipeline_run_id: str, library_id: str) -> None:@pytest.mark.asyncio(loop_scope="class")class TestPipelineRunSetupEmitGates:def _enable_ndjson_tracing(self, mocker: MockerFixture, traces_dir: str) -> None:- cfg = get_config().pipelex.tracing_config+ cfg = get_config().runtime.tracingmocker.patch.object(cfg, "is_enabled", True)mocker.patch.object(cfg, "backend", TracingBackend.NDJSON)mocker.patch.object(cfg, "ndjson", NdjsonTracingConfig(traces_dir=traces_dir))diff --git a/tests/integration/pipelex/pipeline/test_pipeline_run_setup_request_id.py b/tests/integration/pipelex/pipeline/test_pipeline_run_setup_request_id.pyindex d1a967131..930005603 100644--- a/tests/integration/pipelex/pipeline/test_pipeline_run_setup_request_id.py+++ b/tests/integration/pipelex/pipeline/test_pipeline_run_setup_request_id.py@@ -36,7 +36,7 @@ prompt = "Echo the $subject as a topic"class TestPipelineRunSetupRequestId:async def test_request_id_threads_onto_job_metadata(self) -> None:"""``pipeline_run_setup(..., request_id=...)`` puts the value on ``job_metadata.request_id``."""- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,)pipe_job, _, _ = await pipeline_run_setup(@@ -49,7 +49,7 @@ class TestPipelineRunSetupRequestId:async def test_request_id_absent_defaults_to_none(self) -> None:"""Omitting ``request_id`` leaves ``job_metadata.request_id`` as ``None``."""- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,)pipe_job, _, _ = await pipeline_run_setup(diff --git a/tests/integration/pipelex/pipeline/test_runner_library_lifecycle.py b/tests/integration/pipelex/pipeline/test_runner_library_lifecycle.pyindex 89862bd83..c012a0f26 100644--- a/tests/integration/pipelex/pipeline/test_runner_library_lifecycle.py+++ b/tests/integration/pipelex/pipeline/test_runner_library_lifecycle.py@@ -58,7 +58,7 @@ prompt = "Echo the $subject as a topic"def _dry_mock_config() -> PipelineExecutionConfig:- return get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ return get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=False,mock_inputs=True,)diff --git a/tests/integration/pipelex/pipeline/test_scoped_in_memory_tracing.py b/tests/integration/pipelex/pipeline/test_scoped_in_memory_tracing.pyindex 11368e066..f0a671958 100644--- a/tests/integration/pipelex/pipeline/test_scoped_in_memory_tracing.py+++ b/tests/integration/pipelex/pipeline/test_scoped_in_memory_tracing.py@@ -6,7 +6,7 @@ A dry-run-with-graph executed under ``with scoped_event_log(InMemoryEventLog())`- write NO NDJSON file and touch NO configured backend (the factory is never called —the scoped instance is the single transport);- emit and assemble against the SAME instance (the fix for the two-instance problem);-- assemble the graph even when ``tracing_config.is_enabled`` is False — a set override+- assemble the graph even when ``runtime.tracing.is_enabled`` is False — a set overrideimplies tracing-enabled (decision D1);- keep concurrently-scoped runs isolated from each other."""@@ -54,7 +54,7 @@ class TestScopedInMemoryTracing:mocker.patch("pipelex.pipe_run.tracing_assembly.make_event_log", side_effect=factory_error)async def _run_dry_with_graph(self) -> PipeOutput:- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=True,mock_inputs=True,)@@ -66,7 +66,7 @@ class TestScopedInMemoryTracing:"""With NDJSON tracing configured, the scoped log wins: graph assembles in memory, zero file I/O."""traces_dir = tmp_path / "traces"traces_dir.mkdir()- cfg = get_config().pipelex.tracing_config+ cfg = get_config().runtime.tracingmocker.patch.object(cfg, "is_enabled", True)mocker.patch.object(cfg, "backend", TracingBackend.NDJSON)mocker.patch.object(cfg, "ndjson", NdjsonTracingConfig(traces_dir=str(traces_dir)))@@ -95,7 +95,7 @@ class TestScopedInMemoryTracing:async def test_override_implies_enabled_when_tracing_disabled(self, mocker: MockerFixture) -> None:"""D1 regression: is_enabled=False + scoped override → the GraphSpec still assembles in memory."""- cfg = get_config().pipelex.tracing_config+ cfg = get_config().runtime.tracingmocker.patch.object(cfg, "is_enabled", False)self._forbid_event_log_factory(mocker)@@ -109,7 +109,7 @@ class TestScopedInMemoryTracing:async def test_concurrent_scoped_runs_do_not_cross_contaminate(self, mocker: MockerFixture) -> None:"""Two concurrently-scoped runs each trace into their own log, with no shared/merged events."""- cfg = get_config().pipelex.tracing_config+ cfg = get_config().runtime.tracingmocker.patch.object(cfg, "is_enabled", False)self._forbid_event_log_factory(mocker)diff --git a/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_branch_dispatch.py b/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_branch_dispatch.pyindex 4e1e779b5..9a381a86d 100644--- a/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_branch_dispatch.py+++ b/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_branch_dispatch.py@@ -155,7 +155,7 @@ class TestPipeBatchBranchDispatch:monkeypatch.setattr(pipe_batch_module, "gather_bounded", _spying_gather_bounded)- execution_config = get_config().pipelex.pipeline_execution_config+ execution_config = get_config().interpreter.pipeline_executionoriginal_setting = execution_config.max_concurrencytry:execution_config.max_concurrency = 2diff --git a/tests/integration/pipelex/pipes/optionals/test_absent_main_output_surfaces.py b/tests/integration/pipelex/pipes/optionals/test_absent_main_output_surfaces.pyindex f4ecb05b7..eeec35af5 100644--- a/tests/integration/pipelex/pipes/optionals/test_absent_main_output_surfaces.py+++ b/tests/integration/pipelex/pipes/optionals/test_absent_main_output_surfaces.py@@ -76,7 +76,7 @@ class TestAbsentMainOutputSurfaces:"""Omitting the optional input lifts the whole chain: the execute response is a successnaming the declared slot, the ledger chains provenance, and the graph marks skips."""- execution_config = get_config().pipelex.pipeline_execution_config.with_execution_overrides(generate_graph=True)+ execution_config = get_config().interpreter.pipeline_execution.with_execution_overrides(generate_graph=True)runner = PipelexMTHDSProtocol(execution_config=execution_config)response = await runner.execute(mthds_contents=[_BUNDLE], inputs={})diff --git a/tests/integration/pipelex/pipes/optionals/test_lift_sequence.py b/tests/integration/pipelex/pipes/optionals/test_lift_sequence.pyindex f5dc7bcc8..60c03cad0 100644--- a/tests/integration/pipelex/pipes/optionals/test_lift_sequence.py+++ b/tests/integration/pipelex/pipes/optionals/test_lift_sequence.py@@ -251,7 +251,7 @@ class TestLiftSequence:pipe_job = await prepare_pipe_job(pipe=sequence,library_id=library_id,- execution_config=get_config().pipelex.pipeline_execution_config,+ execution_config=get_config().interpreter.pipeline_execution,pipe_run_mode=PipeRunMode.LIVE,pipeline_run_id="test-optional-boundary-seeding",user_id="pytest",diff --git a/tests/integration/pipelex/plugins/test_secrets_external_plugin.py b/tests/integration/pipelex/plugins/test_secrets_external_plugin.pyindex bd24ca4a0..c484ff5bc 100644--- a/tests/integration/pipelex/plugins/test_secrets_external_plugin.py+++ b/tests/integration/pipelex/plugins/test_secrets_external_plugin.py@@ -4,7 +4,7 @@ and the storage↔secrets ordering guard.The built-in ``env`` method is the default and is selected onto the hub by an ordinary boot; anexplicit ``setup(secrets_provider=...)`` still wins ahead of registry selection; a fake externalmethod token discovered through a ``pipelex.plugins.kernel`` entry point is selectable via-``secrets_config.method``. The final test is the ordering guard: with a non-env secrets method AND+``runtime.secrets.method``. The final test is the ordering guard: with a non-env secrets method AND``gcp`` storage, storage's gcp factory reads the config-selected secrets provider from the hub —proving secrets is resolved and set on the hub before storage selection runs."""@@ -127,7 +127,7 @@ class TestSecretsExternalPlugin:Pipelex.make(integration_mode=_test_integration_mode(),needs_inference=False,- config_overrides={"pipelex": {"secrets_config": {"method": EXTERNAL_SECRETS_METHOD}}},+ config_overrides={"runtime": {"secrets": {"method": EXTERNAL_SECRETS_METHOD}}},)assert get_secrets_provider_registry().has(method=EXTERNAL_SECRETS_METHOD)@@ -145,9 +145,9 @@ class TestSecretsExternalPlugin:integration_mode=_test_integration_mode(),needs_inference=False,config_overrides={- "pipelex": {- "secrets_config": {"method": EXTERNAL_SECRETS_METHOD},- "storage_config": {"method": "gcp", "gcp": {"bucket_name": "test-bucket", "project_id": "test-project"}},+ "runtime": {+ "secrets": {"method": EXTERNAL_SECRETS_METHOD},+ "storage": {"method": "gcp", "gcp": {"bucket_name": "test-bucket", "project_id": "test-project"}},}},)diff --git a/tests/integration/pipelex/plugins/test_storage_external_plugin.py b/tests/integration/pipelex/plugins/test_storage_external_plugin.pyindex ac5d2e7dc..30919a53c 100644--- a/tests/integration/pipelex/plugins/test_storage_external_plugin.py+++ b/tests/integration/pipelex/plugins/test_storage_external_plugin.py@@ -1,5 +1,5 @@"""End-to-end: an out-of-tree storage plugin discovered through a ``pipelex.plugins.kernel`` entry point is-selectable via ``storage_config.method`` and lands on the hub.+selectable via ``runtime.storage.method`` and lands on the hub.This exercises the whole discovery → selection → hub chain the built-in providers ride, with a fakeexternal method token: a fake entry point loads a plugin registering ``method="test_mem"``, the boot@@ -96,7 +96,7 @@ class TestStorageExternalPlugin:Pipelex.make(integration_mode=_test_integration_mode(),needs_inference=False,- config_overrides={"pipelex": {"storage_config": {"method": EXTERNAL_STORAGE_METHOD}}},+ config_overrides={"runtime": {"storage": {"method": EXTERNAL_STORAGE_METHOD}}},)assert get_storage_provider_registry().has(method=EXTERNAL_STORAGE_METHOD)diff --git a/tests/integration/pipelex/system/test_boot_orchestrator_validation.py b/tests/integration/pipelex/system/test_boot_orchestrator_validation.pyindex 1f1f57cbf..9b64d2087 100644--- a/tests/integration/pipelex/system/test_boot_orchestrator_validation.py+++ b/tests/integration/pipelex/system/test_boot_orchestrator_validation.py@@ -16,6 +16,7 @@ import pytestfrom pipelex.pipelex import Pipelexfrom pipelex.plugins.exceptions import UnknownBootOrchestratorError+from pipelex.runtime_hub import get_boot_orchestratorfrom pipelex.system.runtime import IntegrationMode, runtime_manager@@ -44,3 +45,10 @@ class TestBootOrchestratorValidation:# so booting under it is the in-process default — and must not be rejected.Pipelex.make(integration_mode=_test_integration_mode(), needs_inference=False, boot_orchestrator="direct")assert Pipelex.is_fully_booted()+ # The accepted name must also reach the hub. `boot_orchestrator` stopped being a config+ # field and became boot-scoped hub state, so `get_boot_orchestrator()` is the only way+ # run-time code (our Temporal plugin asking whether it owns the process) can read it back.+ # Nothing in this repo reads it yet, which is exactly why the write needs pinning here:+ # without this assertion, deleting the `set_boot_orchestrator` call in `RuntimeBoot.setup`+ # leaves the whole suite green and hands every downstream reader a silent ``None``.+ assert get_boot_orchestrator() == "direct"diff --git a/tests/integration/pipelex/system/test_keyless_boot_forced_dry.py b/tests/integration/pipelex/system/test_keyless_boot_forced_dry.pyindex ec246f102..252cee5cc 100644--- a/tests/integration/pipelex/system/test_keyless_boot_forced_dry.py+++ b/tests/integration/pipelex/system/test_keyless_boot_forced_dry.py@@ -75,7 +75,7 @@ class TestKeylessBootForcedDry:pipe_job = await prepare_pipe_job(pipe=pipe,library_id=library_id,- execution_config=get_config().pipelex.pipeline_execution_config,+ execution_config=get_config().interpreter.pipeline_execution,pipe_run_mode=PipeRunMode.LIVE,pipeline_run_id="keyless_forced_dry_run",user_id="test-user",diff --git a/tests/integration/pipelex/tools/aws/test_aws.py b/tests/integration/pipelex/tools/aws/test_aws.pyindex 1dd460242..221b17e4d 100644--- a/tests/integration/pipelex/tools/aws/test_aws.py+++ b/tests/integration/pipelex/tools/aws/test_aws.py@@ -15,7 +15,7 @@ def aws_key_method(request: pytest.FixtureRequest) -> AwsKeyMethod:@pytest.mark.gha_disabled@pytest.mark.codex_disableddef test_get_aws_access_keys(aws_key_method: AwsKeyMethod):- aws_config = get_config().pipelex.aws_config+ aws_config = get_config().runtime.awsaws_access_key_id, aws_secret_access_key, aws_region = aws_config.get_aws_access_keys_with_method(api_key_method=aws_key_method)assert aws_access_key_idassert aws_secret_access_keydiff --git a/tests/integration/pipelex/tools/storage/conftest.py b/tests/integration/pipelex/tools/storage/conftest.pyindex 187869c81..e0dd0de2d 100644--- a/tests/integration/pipelex/tools/storage/conftest.py+++ b/tests/integration/pipelex/tools/storage/conftest.py@@ -176,7 +176,7 @@ def storage_provider(@pytest.fixturedef uri_format(storage_method: StorageMethodLiteral) -> str:"""Get the URI format for the given storage method from the config."""- storage_config = get_config().pipelex.storage_config+ storage_config = get_config().runtime.storagematch storage_method:case "local":assert storage_config.local is not None@@ -211,7 +211,7 @@ def mock_fetch_remote_content_enabled(mocker: MockerFixture) -> None:"""original_config = get_config()mocker.patch.object(- original_config.pipelex.storage_config,+ original_config.runtime.storage,"is_fetch_remote_content_enabled",True,)@@ -226,7 +226,7 @@ def mock_fetch_remote_content_disabled(mocker: MockerFixture) -> None:"""original_config = get_config()mocker.patch.object(- original_config.pipelex.storage_config,+ original_config.runtime.storage,"is_fetch_remote_content_enabled",False,)@@ -241,7 +241,7 @@ def mock_upload_local_content_enabled(mocker: MockerFixture) -> None:"""original_config = get_config()mocker.patch.object(- original_config.pipelex.storage_config,+ original_config.runtime.storage,"is_upload_local_content_enabled",True,)@@ -256,7 +256,7 @@ def mock_upload_local_content_disabled(mocker: MockerFixture) -> None:"""original_config = get_config()mocker.patch.object(- original_config.pipelex.storage_config,+ original_config.runtime.storage,"is_upload_local_content_enabled",False,)diff --git a/tests/integration/pipelex/tools/storage/test_storage_config.py b/tests/integration/pipelex/tools/storage/test_storage_config.pyindex e76b666fb..e53cb82a6 100644--- a/tests/integration/pipelex/tools/storage/test_storage_config.py+++ b/tests/integration/pipelex/tools/storage/test_storage_config.py@@ -7,7 +7,7 @@ class TestStorageConfigIntegration:def test_config_has_local_uri_format(self) -> None:"""Test that local storage config has uri_format defined."""- storage_config = get_config().pipelex.storage_config+ storage_config = get_config().runtime.storageassert storage_config.local is not Noneassert storage_config.local.uri_format is not Noneassert "{primary_id}" in storage_config.local.uri_format@@ -17,7 +17,7 @@ class TestStorageConfigIntegration:def test_config_has_in_memory_uri_format(self) -> None:"""Test that in-memory storage config has uri_format defined."""- storage_config = get_config().pipelex.storage_config+ storage_config = get_config().runtime.storageassert storage_config.in_memory is not Noneassert storage_config.in_memory.uri_format is not Noneassert "{primary_id}" in storage_config.in_memory.uri_format@@ -27,7 +27,7 @@ class TestStorageConfigIntegration:def test_uri_format_property_returns_correct_format_for_local(self) -> None:"""Test that the uri_format property returns the correct format when method is local."""- storage_config = get_config().pipelex.storage_config+ storage_config = get_config().runtime.storagematch storage_config.method:case StorageMethod.LOCAL:assert storage_config.local is not Nonediff --git a/tests/pipelex_unit_test.toml b/tests/pipelex_unit_test.tomlindex f39e6446b..651a5fbae 100644--- a/tests/pipelex_unit_test.toml+++ b/tests/pipelex_unit_test.toml@@ -1,7 +1,7 @@-[pipelex.storage_config]+[runtime.storage]method = "local"-[cogt.model_deck_config]+[inference.model_deck]# Allow tests to run with restrictive routing profiles that don't support all presetsmissing_presets_reaction = "none"diff --git a/tests/unit/pipelex/cli/agent_cli/test_run_core_inputs_base_dir.py b/tests/unit/pipelex/cli/agent_cli/test_run_core_inputs_base_dir.pyindex e8ea50a26..a3cfef24e 100644--- a/tests/unit/pipelex/cli/agent_cli/test_run_core_inputs_base_dir.py+++ b/tests/unit/pipelex/cli/agent_cli/test_run_core_inputs_base_dir.py@@ -25,7 +25,7 @@ class TestRunCoreInputsBaseDir:@pytest.fixturedef config_mock(self, mocker: MockerFixture) -> Any:fake_config = mocker.MagicMock()- fake_config.pipelex.pipeline_execution_config.with_execution_overrides.return_value = mocker.MagicMock()+ fake_config.interpreter.pipeline_execution.with_execution_overrides.return_value = mocker.MagicMock()mocker.patch(f"{RUN_CORE_MODULE}.get_config", return_value=fake_config)return fake_configdiff --git a/tests/unit/pipelex/cli/test_agent_cli_factory_init_overrides.py b/tests/unit/pipelex/cli/test_agent_cli_factory_init_overrides.pyindex 0d87021e7..f3719d282 100644--- a/tests/unit/pipelex/cli/test_agent_cli_factory_init_overrides.py+++ b/tests/unit/pipelex/cli/test_agent_cli_factory_init_overrides.py@@ -1,6 +1,6 @@"""Tests for init-time log suppression via config_overrides in the agent CLI factory.-Regression guard: a user TOML with ``[pipelex.log_config.package_log_levels] pipelex =+Regression guard: a user TOML with ``[runtime.log.package_log_levels] pipelex ="DEBUG"`` used to leak setup-time logs (e.g. ``telemetry_factory.py``'s``log.debug("Telemetry is disabled...")``, ``validation_error_categorizer.py``'s``log.warning``) onto stderr — corrupting the JSON error envelope that downstream agent@@ -86,7 +86,7 @@ class TestAgentCliFactoryInitOverrides:make_pipelex_for_agent_cli()config_overrides = mock_make.call_args.kwargs["config_overrides"]- log_config_overrides = config_overrides["pipelex"]["log_config"]+ log_config_overrides = config_overrides["runtime"]["log"]assert log_config_overrides["default_log_level"] is LogLevel.OFFassert log_config_overrides["package_log_levels"]["pipelex"] is LogLevel.OFFassert log_config_overrides["console_log_target"] is ConsoleTarget.STDERRdiff --git a/tests/unit/pipelex/cli/test_check_rules_sync_cmd.py b/tests/unit/pipelex/cli/test_check_rules_sync_cmd.pyindex 99bce85f5..9ccdb9929 100644--- a/tests/unit/pipelex/cli/test_check_rules_sync_cmd.py+++ b/tests/unit/pipelex/cli/test_check_rules_sync_cmd.py@@ -33,20 +33,20 @@ class TestGetPreferredTargetsFromToml:("toml_body", "expected"),[(- '[pipelex.kit_config]\npreferred_agent_targets = ["claude", "agents"]\n',+ '[kit]\npreferred_agent_targets = ["claude", "agents"]\n',[AgentTarget.CLAUDE, AgentTarget.AGENTS],),(- '[pipelex.kit_config]\npreferred_agent_targets = ["cursor"]\n',+ '[kit]\npreferred_agent_targets = ["cursor"]\n',[AgentTarget.CURSOR],),# Empty list must NOT silently disable the sync check —# it should fall back to defaults.- ("[pipelex.kit_config]\npreferred_agent_targets = []\n", _DEFAULT_TARGETS),+ ("[kit]\npreferred_agent_targets = []\n", _DEFAULT_TARGETS),# Unknown value triggers ValueError → fallback.- ('[pipelex.kit_config]\npreferred_agent_targets = ["unknown"]\n', _DEFAULT_TARGETS),+ ('[kit]\npreferred_agent_targets = ["unknown"]\n', _DEFAULT_TARGETS),# Missing key triggers KeyError → fallback.- ("[pipelex.kit_config]\n", _DEFAULT_TARGETS),+ ("[kit]\n", _DEFAULT_TARGETS),],)def test_parses_toml_targets_with_safe_fallbacks(diff --git a/tests/unit/pipelex/cli/test_doctor_config_checks.py b/tests/unit/pipelex/cli/test_doctor_config_checks.pyindex e1f1f31b9..f178ff5ff 100644--- a/tests/unit/pipelex/cli/test_doctor_config_checks.py+++ b/tests/unit/pipelex/cli/test_doctor_config_checks.py@@ -103,7 +103,7 @@ class TestDoctorConfigChecks:def test_check_config_files_validation_error(self, mocker: MockerFixture, tmp_path: Path) -> None:"""A pydantic ValidationError on the merged config produces the migration-aware report."""- (tmp_path / "pipelex.toml").write_text("[pipelex]\n", encoding="utf-8")+ (tmp_path / "pipelex.toml").write_text("[runtime]\n", encoding="utf-8")mocker.patch("pipelex.cli.commands.doctor_cmd.init_config", return_value=0)mocker.patch.object(config_manager, "load_config", return_value={})mocker.patch.object(PipelexConfig, "model_validate", side_effect=_make_validation_error())@@ -124,7 +124,7 @@ class TestDoctorConfigChecks:fake_home = tmp_path / "home"global_dir = fake_home / ".pipelex"global_dir.mkdir(parents=True)- (global_dir / "pipelex.toml").write_text("[pipelex]\n", encoding="utf-8")+ (global_dir / "pipelex.toml").write_text("[runtime]\n", encoding="utf-8")project_root = tmp_path / "project"(project_root / ".git").mkdir(parents=True)(project_root / ".pipelex").mkdir()@@ -142,7 +142,7 @@ class TestDoctorConfigChecks:def test_check_config_files_config_validation_error_with_cause(self, mocker: MockerFixture, tmp_path: Path) -> None:"""A ConfigValidationError wrapping a ValidationError recovers the original report."""- (tmp_path / "pipelex.toml").write_text("[pipelex]\n", encoding="utf-8")+ (tmp_path / "pipelex.toml").write_text("[runtime]\n", encoding="utf-8")mocker.patch("pipelex.cli.commands.doctor_cmd.init_config", return_value=0)wrapped_error = ConfigValidationError("wrapped")wrapped_error.__cause__ = _make_validation_error()@@ -156,7 +156,7 @@ class TestDoctorConfigChecks:def test_check_config_files_config_validation_error_without_cause(self, mocker: MockerFixture, tmp_path: Path) -> None:"""A ConfigValidationError without an underlying ValidationError uses its own message."""- (tmp_path / "pipelex.toml").write_text("[pipelex]\n", encoding="utf-8")+ (tmp_path / "pipelex.toml").write_text("[runtime]\n", encoding="utf-8")mocker.patch("pipelex.cli.commands.doctor_cmd.init_config", return_value=0)mocker.patch.object(config_manager, "load_config", side_effect=ConfigValidationError("plain failure"))@@ -183,7 +183,7 @@ class TestDoctorConfigChecks:def test_check_config_files_os_error(self, mocker: MockerFixture, tmp_path: Path) -> None:"""An OSError while loading the config is reported as a load error."""- (tmp_path / "pipelex.toml").write_text("[pipelex]\n", encoding="utf-8")+ (tmp_path / "pipelex.toml").write_text("[runtime]\n", encoding="utf-8")mocker.patch("pipelex.cli.commands.doctor_cmd.init_config", return_value=0)mocker.patch.object(config_manager, "load_config", side_effect=OSError("permission denied"))diff --git a/tests/unit/pipelex/cli/test_run_core_execution.py b/tests/unit/pipelex/cli/test_run_core_execution.pyindex bff27f461..75a237645 100644--- a/tests/unit/pipelex/cli/test_run_core_execution.py+++ b/tests/unit/pipelex/cli/test_run_core_execution.py@@ -63,7 +63,7 @@ class TestRunCoreExecution:@pytest.fixturedef config_mock(self, mocker: MockerFixture) -> Any:fake_config = mocker.MagicMock()- fake_config.pipelex.pipeline_execution_config.with_execution_overrides.return_value = mocker.MagicMock()+ fake_config.interpreter.pipeline_execution.with_execution_overrides.return_value = mocker.MagicMock()mocker.patch("pipelex.cli.commands.run._run_core.get_config", return_value=fake_config)return fake_configdiff --git a/tests/unit/pipelex/cli/test_traceback_flag_run_core.py b/tests/unit/pipelex/cli/test_traceback_flag_run_core.pyindex d94fa1f30..2f2e4ab94 100644--- a/tests/unit/pipelex/cli/test_traceback_flag_run_core.py+++ b/tests/unit/pipelex/cli/test_traceback_flag_run_core.py@@ -60,7 +60,7 @@ class TestTracebackFlagInExecuteRunInnerExcepts:# Patch get_config to provide a minimal execution configmock_config = mocker.MagicMock()- mock_config.pipelex.pipeline_execution_config.with_execution_overrides.return_value = mocker.MagicMock()+ mock_config.interpreter.pipeline_execution.with_execution_overrides.return_value = mocker.MagicMock()mocker.patch("pipelex.cli.commands.run._run_core.get_config", return_value=mock_config)ctx = click.Context(click.Command("run"), obj={"traceback": True})diff --git a/tests/unit/pipelex/cogt/content_generation/test_extract_generate_dry_branch.py b/tests/unit/pipelex/cogt/content_generation/test_extract_generate_dry_branch.pyindex fe6bace32..e0fba4563 100644--- a/tests/unit/pipelex/cogt/content_generation/test_extract_generate_dry_branch.py+++ b/tests/unit/pipelex/cogt/content_generation/test_extract_generate_dry_branch.py@@ -43,7 +43,7 @@ class TestExtractGenerateDryBranch:worker_spy.assert_not_called()factory.make_page_contents.assert_not_called()- assert len(page_contents) == get_config().pipelex.dry_run_config.nb_extract_pages+ assert len(page_contents) == get_config().inference.dry_run.nb_extract_pagesfor page_content in page_contents:assert page_content.text_and_images.text is not Noneassert page_content.text_and_images.text.text.startswith("DRY RUN:")diff --git a/tests/unit/pipelex/cogt/content_generation/test_render_generate_dry_branch.py b/tests/unit/pipelex/cogt/content_generation/test_render_generate_dry_branch.pyindex 2c3cf34c8..d1bba83ff 100644--- a/tests/unit/pipelex/cogt/content_generation/test_render_generate_dry_branch.py+++ b/tests/unit/pipelex/cogt/content_generation/test_render_generate_dry_branch.py@@ -35,7 +35,7 @@ class TestRenderGenerateDryBranch:)factory.make_image_content.assert_not_called()- assert len(page_views) == get_config().pipelex.dry_run_config.nb_extract_pages+ assert len(page_views) == get_config().inference.dry_run.nb_extract_pagesassert all(page_view.url for page_view in page_views)@pytest.mark.asynciodiff --git a/tests/unit/pipelex/cogt/content_generation/test_search_generate_dry_branch.py b/tests/unit/pipelex/cogt/content_generation/test_search_generate_dry_branch.pyindex b60597912..a52a54fc0 100644--- a/tests/unit/pipelex/cogt/content_generation/test_search_generate_dry_branch.py+++ b/tests/unit/pipelex/cogt/content_generation/test_search_generate_dry_branch.py@@ -37,7 +37,7 @@ class TestSearchGenerateDryBranch:deck_spy.assert_not_called()assert isinstance(result, SearchResultContent)- assert len(result.sources) == get_config().pipelex.dry_run_config.nb_list_items+ assert len(result.sources) == get_config().inference.dry_run.nb_list_items@pytest.mark.asyncioasync def test_live_resolves_worker(self, mocker: MockerFixture) -> None: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 71bf7ded5..41606c79e 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@@ -36,7 +36,7 @@ class TestImgGenArgsInferenceSafety:)assert result == {"num_inference_steps": nb_steps}- mock_config.cogt.img_gen_config.get_num_inference_steps.assert_not_called()+ mock_config.inference.img_gen.get_num_inference_steps.assert_not_called()@pytest.mark.parametrize("nb_steps", [3, 5, 16])def test_sdxl_lightning_coerces_invalid_steps_to_four(self, mocker: MockerFixture, nb_steps: int) -> None:@@ -64,7 +64,7 @@ class TestImgGenArgsInferenceSafety:def test_sdxl_lightning_none_steps_uses_config_lookup(self, mocker: MockerFixture, quality: Quality | None, expected_quality: Quality) -> None:"""SDXL Lightning derives missing steps from the config, defaulting quality to MEDIUM."""mock_config = mocker.MagicMock()- mock_config.cogt.img_gen_config.get_num_inference_steps.return_value = 8+ mock_config.inference.img_gen.get_num_inference_steps.return_value = 8mocker.patch("pipelex.cogt.img_gen.img_gen_args_factory.get_config", return_value=mock_config)result = ImgGenArgsFactory.make_args_from_inference(@@ -76,7 +76,7 @@ class TestImgGenArgsInferenceSafety:)assert result == {"num_inference_steps": 8}- mock_config.cogt.img_gen_config.get_num_inference_steps.assert_called_once_with(+ mock_config.inference.img_gen.get_num_inference_steps.assert_called_once_with(model_name="sdxl_lightning",quality=expected_quality,)@@ -111,7 +111,7 @@ class TestImgGenArgsInferenceSafety:)assert result == expected_args- mock_config.cogt.img_gen_config.get_num_inference_steps.assert_not_called()+ mock_config.inference.img_gen.get_num_inference_steps.assert_not_called()@pytest.mark.parametrize(("inference_taxonomy", "expected_model_name"),@@ -128,7 +128,7 @@ class TestImgGenArgsInferenceSafety:) -> None:"""Flux and Qwen derive missing steps from the config using their own model_name key."""mock_config = mocker.MagicMock()- mock_config.cogt.img_gen_config.get_num_inference_steps.return_value = 12+ mock_config.inference.img_gen.get_num_inference_steps.return_value = 12mocker.patch("pipelex.cogt.img_gen.img_gen_args_factory.get_config", return_value=mock_config)result = ImgGenArgsFactory.make_args_from_inference(@@ -140,7 +140,7 @@ class TestImgGenArgsInferenceSafety:)assert result == {"num_inference_steps": 12}- mock_config.cogt.img_gen_config.get_num_inference_steps.assert_called_once_with(+ mock_config.inference.img_gen.get_num_inference_steps.assert_called_once_with(model_name=expected_model_name,quality=Quality.LOW,)diff --git a/tests/unit/pipelex/cogt/llm/test_llm_config_reasoning.py b/tests/unit/pipelex/cogt/llm/test_llm_config_reasoning.pyindex 568a75b15..7d4e9c8c0 100644--- a/tests/unit/pipelex/cogt/llm/test_llm_config_reasoning.py+++ b/tests/unit/pipelex/cogt/llm/test_llm_config_reasoning.py@@ -62,18 +62,18 @@ def _make_llm_config("""Helper to build a minimal LLMConfig for testing."""maps: dict[str, dict[str, int]] = _DEFAULT_EFFORT_TO_BUDGET_MAPS if effort_to_budget_maps is None else effort_to_budget_mapsreturn LLMConfig(- instructor_config={ # type: ignore[arg-type]+ instructor={ # type: ignore[arg-type]"is_dump_kwargs_enabled": False,"is_dump_response_enabled": False,"is_dump_error_enabled": False,},- openai_config={"effort_to_level_map": openai_level_map or _DEFAULT_OPENAI_LEVEL_MAP}, # type: ignore[arg-type]- anthropic_config={ # type: ignore[arg-type]+ openai={"effort_to_level_map": openai_level_map or _DEFAULT_OPENAI_LEVEL_MAP}, # type: ignore[arg-type]+ anthropic={ # type: ignore[arg-type]"structured_output_timeout_seconds": 1200,"effort_to_level_map": anthropic_level_map or _DEFAULT_ANTHROPIC_LEVEL_MAP,},- google_config={"effort_to_level_map": google_level_map or _DEFAULT_GOOGLE_LEVEL_MAP}, # type: ignore[arg-type]- mistral_config={"effort_to_level_map": mistral_level_map or _DEFAULT_MISTRAL_LEVEL_MAP}, # type: ignore[arg-type]+ google={"effort_to_level_map": google_level_map or _DEFAULT_GOOGLE_LEVEL_MAP}, # type: ignore[arg-type]+ mistral={"effort_to_level_map": mistral_level_map or _DEFAULT_MISTRAL_LEVEL_MAP}, # type: ignore[arg-type]schema_reask_max_attempts=schema_reask_max_attempts,is_structure_prompt_enabled=True,default_max_images=100,@@ -161,61 +161,61 @@ class TestLLMConfigReasoning:def test_get_reasoning_level_openai_high(self):"""OpenAI HIGH maps to 'high'."""config = _make_llm_config()- assert config.openai_config.get_reasoning_level(ReasoningEffort.HIGH) == "high"+ assert config.openai.get_reasoning_level(ReasoningEffort.HIGH) == "high"def test_get_reasoning_level_openai_none_returns_string(self):"""OpenAI NONE returns 'none' (a valid API value), not None."""config = _make_llm_config()- result = config.openai_config.get_reasoning_level(ReasoningEffort.NONE)+ result = config.openai.get_reasoning_level(ReasoningEffort.NONE)assert result == "none"def test_get_reasoning_level_openai_max_returns_xhigh(self):"""OpenAI MAX maps to 'xhigh'."""config = _make_llm_config()- assert config.openai_config.get_reasoning_level(ReasoningEffort.MAX) == "xhigh"+ assert config.openai.get_reasoning_level(ReasoningEffort.MAX) == "xhigh"def test_get_reasoning_level_anthropic_disabled(self):"""Anthropic NONE returns None (disabled)."""config = _make_llm_config()- assert config.anthropic_config.get_reasoning_level(ReasoningEffort.NONE) is None+ assert config.anthropic.get_reasoning_level(ReasoningEffort.NONE) is Nonedef test_get_reasoning_level_anthropic_high(self):"""Anthropic HIGH maps to 'high'."""config = _make_llm_config()- assert config.anthropic_config.get_reasoning_level(ReasoningEffort.HIGH) == "high"+ assert config.anthropic.get_reasoning_level(ReasoningEffort.HIGH) == "high"def test_get_reasoning_level_google_disabled(self):"""Google NONE returns None (disabled)."""config = _make_llm_config()- assert config.google_config.get_reasoning_level(ReasoningEffort.NONE) is None+ assert config.google.get_reasoning_level(ReasoningEffort.NONE) is Nonedef test_get_reasoning_level_mistral_reasoning(self):"""Mistral HIGH maps to 'reasoning'."""config = _make_llm_config()- assert config.mistral_config.get_reasoning_level(ReasoningEffort.HIGH) == "reasoning"+ assert config.mistral.get_reasoning_level(ReasoningEffort.HIGH) == "reasoning"def test_get_reasoning_level_mistral_disabled(self):"""Mistral NONE returns None (disabled)."""config = _make_llm_config()- assert config.mistral_config.get_reasoning_level(ReasoningEffort.NONE) is None+ assert config.mistral.get_reasoning_level(ReasoningEffort.NONE) is Nonedef test_level_validator_missing_effort_raises(self):"""Level map missing some effort keys should raise ConfigValidationError."""incomplete_level_map = {"none": "none", "low": "low", "medium": "medium"}with pytest.raises(ConfigValidationError, match="Missing reasoning effort levels"):LLMConfig(- instructor_config={ # type: ignore[arg-type]+ instructor={ # type: ignore[arg-type]"is_dump_kwargs_enabled": False,"is_dump_response_enabled": False,"is_dump_error_enabled": False,},- openai_config={"effort_to_level_map": incomplete_level_map}, # type: ignore[arg-type]- anthropic_config={ # type: ignore[arg-type]+ openai={"effort_to_level_map": incomplete_level_map}, # type: ignore[arg-type]+ anthropic={ # type: ignore[arg-type]"structured_output_timeout_seconds": 1200,"effort_to_level_map": _DEFAULT_ANTHROPIC_LEVEL_MAP,},- google_config={"effort_to_level_map": _DEFAULT_GOOGLE_LEVEL_MAP}, # type: ignore[arg-type]- mistral_config={"effort_to_level_map": _DEFAULT_MISTRAL_LEVEL_MAP}, # type: ignore[arg-type]+ google={"effort_to_level_map": _DEFAULT_GOOGLE_LEVEL_MAP}, # type: ignore[arg-type]+ mistral={"effort_to_level_map": _DEFAULT_MISTRAL_LEVEL_MAP}, # type: ignore[arg-type]schema_reask_max_attempts=3,is_structure_prompt_enabled=True,default_max_images=100,@@ -239,18 +239,18 @@ class TestLLMConfigReasoning:}with pytest.raises(ConfigValidationError, match="Invalid reasoning effort levels"):LLMConfig(- instructor_config={ # type: ignore[arg-type]+ instructor={ # type: ignore[arg-type]"is_dump_kwargs_enabled": False,"is_dump_response_enabled": False,"is_dump_error_enabled": False,},- openai_config={"effort_to_level_map": invalid_level_map}, # type: ignore[arg-type]- anthropic_config={ # type: ignore[arg-type]+ openai={"effort_to_level_map": invalid_level_map}, # type: ignore[arg-type]+ anthropic={ # type: ignore[arg-type]"structured_output_timeout_seconds": 1200,"effort_to_level_map": _DEFAULT_ANTHROPIC_LEVEL_MAP,},- google_config={"effort_to_level_map": _DEFAULT_GOOGLE_LEVEL_MAP}, # type: ignore[arg-type]- mistral_config={"effort_to_level_map": _DEFAULT_MISTRAL_LEVEL_MAP}, # type: ignore[arg-type]+ google={"effort_to_level_map": _DEFAULT_GOOGLE_LEVEL_MAP}, # type: ignore[arg-type]+ mistral={"effort_to_level_map": _DEFAULT_MISTRAL_LEVEL_MAP}, # type: ignore[arg-type]schema_reask_max_attempts=3,is_structure_prompt_enabled=True,default_max_images=100,@@ -302,6 +302,6 @@ class TestLLMConfigReasoning:google_level_map=all_disabled_map,mistral_level_map=all_disabled_map,)- assert config.anthropic_config.get_reasoning_level(ReasoningEffort.HIGH) is None- assert config.google_config.get_reasoning_level(ReasoningEffort.HIGH) is None- assert config.mistral_config.get_reasoning_level(ReasoningEffort.HIGH) is None+ assert config.anthropic.get_reasoning_level(ReasoningEffort.HIGH) is None+ assert config.google.get_reasoning_level(ReasoningEffort.HIGH) is None+ assert config.mistral.get_reasoning_level(ReasoningEffort.HIGH) is Nonediff --git a/tests/unit/pipelex/core/test_validation_report.py b/tests/unit/pipelex/core/test_validation_report.pyindex d8cf1631c..2197bf360 100644--- a/tests/unit/pipelex/core/test_validation_report.py+++ b/tests/unit/pipelex/core/test_validation_report.py@@ -151,7 +151,7 @@ class TestWhatTheScanFinds:def test_only_the_surface_that_refused_is_scanned(self, machine: Path) -> None:"""A stale `telemetry.toml` is not an answer to a `pipelex.toml` that would not load."""machine.joinpath("telemetry.toml").write_text(_old_shape_telemetry_document(), encoding="utf-8")- machine.joinpath("pipelex.toml").write_text("[pipelex]\n", encoding="utf-8")+ machine.joinpath("pipelex.toml").write_text("[runtime]\n", encoding="utf-8")report = report_validation_error(validation_error=_make_validation_error(), surface_id=PIPELEX_CONFIG_SURFACE_ID)diff --git a/tests/unit/pipelex/graph/conftest.py b/tests/unit/pipelex/graph/conftest.pyindex 82869fe46..7bb838763 100644--- a/tests/unit/pipelex/graph/conftest.py+++ b/tests/unit/pipelex/graph/conftest.py@@ -93,7 +93,7 @@ def make_graph_config(Returns:A GraphConfig configured for testing."""- default_graph_config = get_config().pipelex.pipeline_execution_config.graph_config+ default_graph_config = get_config().interpreter.pipeline_execution.graphreturn default_graph_config.model_copy(update={"data_inclusion": default_graph_config.data_inclusion.model_copy(diff --git a/tests/unit/pipelex/graph/test_reactflow_html.py b/tests/unit/pipelex/graph/test_reactflow_html.pyindex 5d48e2174..9a6dd168b 100644--- a/tests/unit/pipelex/graph/test_reactflow_html.py+++ b/tests/unit/pipelex/graph/test_reactflow_html.py@@ -13,7 +13,7 @@ class TestReactFlowHtml:"""Tests for generate_reactflow_html function."""def _rf_config(self) -> ReactFlowRenderingConfig:- return get_config().pipelex.pipeline_execution_config.graph_config.reactflow_config+ return get_config().interpreter.pipeline_execution.graph.reactflowdef _empty_graphspec(self) -> GraphSpec:return GraphSpec(diff --git a/tests/unit/pipelex/graph/test_smoke_html_render.py b/tests/unit/pipelex/graph/test_smoke_html_render.pyindex 8b1a23a6f..31259ae92 100644--- a/tests/unit/pipelex/graph/test_smoke_html_render.py+++ b/tests/unit/pipelex/graph/test_smoke_html_render.py@@ -17,7 +17,7 @@ class TestSmokeHtmlRender:nodes=[node],edges=[],)- config = get_config().pipelex.pipeline_execution_config.graph_config.reactflow_config+ config = get_config().interpreter.pipeline_execution.graph.reactflowhtml = generate_reactflow_html(graph, config=config)diff --git a/tests/unit/pipelex/kernel/test_templating_style_ops.py b/tests/unit/pipelex/kernel/test_templating_style_ops.pyindex 49ea52be9..662f0e84d 100644--- a/tests/unit/pipelex/kernel/test_templating_style_ops.py+++ b/tests/unit/pipelex/kernel/test_templating_style_ops.py@@ -10,7 +10,7 @@ class TestResolveTemplatingStyle:def test_none_resolves_to_config_default(self):"""Totality: with nothing authored, the resolver returns the config default — never None."""resolved = resolve_templating_style(authored=None)- assert resolved == get_config().pipelex.templating_config.default_templating_style+ assert resolved == get_config().inference.templating.default_templating_styledef test_house_default_is_xml_plain(self):"""Pins the shipped default declared in pipelex.toml: xml tags, plain text format."""diff --git a/tests/unit/pipelex/migration/test_migration_run.py b/tests/unit/pipelex/migration/test_migration_run.pyindex fa613a0f6..75a225e56 100644--- a/tests/unit/pipelex/migration/test_migration_run.py+++ b/tests/unit/pipelex/migration/test_migration_run.py@@ -20,7 +20,19 @@ from pipelex.system.configuration.config_surface import declared_schema_versionfrom tests.unit.pipelex.migration.conftest import EntryBuilder, LedgerBuilder, SurfaceBuilderfrom tests.unit.pipelex.migration.test_runner import MOMENT-CONFIG_LOADER = "pipelex.migration.run.config_manager"+CONFIG_LOADER_CLASS = "pipelex.system.configuration.config_loader.ConfigLoader"+++def pretend_config_dirs(mocker: MockerFixture, *, global_dir: Path, project_dir: Path | None) -> None:+ """Put the loader's two directory properties where the test wants them.++ The properties are patched on the class rather than the `config_manager` singleton being+ replaced wholesale, and that is the point: the walk *is* `ConfigLoader.existing_config_dirs`+ (`config_directories_to_migrate` reads it and does nothing else), so a mocked-out loader would+ leave the derivation and its one caller both untested.+ """+ mocker.patch(f"{CONFIG_LOADER_CLASS}.global_config_dir", new_callable=mocker.PropertyMock, return_value=global_dir)+ mocker.patch(f"{CONFIG_LOADER_CLASS}.project_config_dir", new_callable=mocker.PropertyMock, return_value=project_dir)class TestWhichDirectoriesAreWalked:@@ -29,22 +41,19 @@ class TestWhichDirectoriesAreWalked:project_dir = tmp_path / "project" / ".pipelex"global_dir.mkdir(parents=True)project_dir.mkdir(parents=True)- mocker.patch(CONFIG_LOADER).global_config_dir = global_dir- mocker.patch(f"{CONFIG_LOADER}.project_config_dir", project_dir)+ pretend_config_dirs(mocker, global_dir=global_dir, project_dir=project_dir)assert config_directories_to_migrate() == [global_dir, project_dir]def test_a_machine_with_no_project_directory_is_an_ordinary_machine(self, tmp_path: Path, mocker: MockerFixture) -> None:global_dir = tmp_path / "home" / ".pipelex"global_dir.mkdir(parents=True)- mocker.patch(CONFIG_LOADER).global_config_dir = global_dir- mocker.patch(f"{CONFIG_LOADER}.project_config_dir", None)+ pretend_config_dirs(mocker, global_dir=global_dir, project_dir=None)assert config_directories_to_migrate() == [global_dir]def test_a_global_directory_that_does_not_exist_is_skipped(self, tmp_path: Path, mocker: MockerFixture) -> None:- mocker.patch(CONFIG_LOADER).global_config_dir = tmp_path / "nowhere" / ".pipelex"- mocker.patch(f"{CONFIG_LOADER}.project_config_dir", None)+ pretend_config_dirs(mocker, global_dir=tmp_path / "nowhere" / ".pipelex", project_dir=None)assert config_directories_to_migrate() == []@@ -56,11 +65,29 @@ class TestWhichDirectoriesAreWalked:"""shared_dir = tmp_path / ".pipelex"shared_dir.mkdir(parents=True)- mocker.patch(CONFIG_LOADER).global_config_dir = shared_dir- mocker.patch(f"{CONFIG_LOADER}.project_config_dir", shared_dir)+ pretend_config_dirs(mocker, global_dir=shared_dir, project_dir=shared_dir)assert config_directories_to_migrate() == [shared_dir]+ def test_the_walk_is_read_from_the_loader_rather_than_derived_here(self, tmp_path: Path, mocker: MockerFixture) -> None:+ """One derivation, read from both ends.++ `stale_configuration_warning` names `pipelex migrate` only for a file under one of these+ directories, and it asks `ConfigLoader.existing_config_dirs`. If this command derived the+ walk a second time, a boot could promise a remedy the command then declines — the defect+ the delegation exists to make impossible.++ A sentinel rather than a comparison against the property itself: comparing the two would+ pass however this function were written, since both sides would come from the same patched+ directories. Patching the property to a directory neither of them could compute is what+ makes a second derivation fail here.+ """+ sentinel = tmp_path / "a-directory-no-derivation-would-produce"+ sentinel.mkdir()+ mocker.patch(f"{CONFIG_LOADER_CLASS}.existing_config_dirs", new_callable=mocker.PropertyMock, return_value=[sentinel])++ assert config_directories_to_migrate() == [sentinel]+class TestTheWalkIsNotRecursive:"""A subdirectory of a configuration directory holds a different kind of thing.diff --git a/tests/unit/pipelex/observer/test_local_observer.py b/tests/unit/pipelex/observer/test_local_observer.pyindex bdc6379cf..75ea98f08 100644--- a/tests/unit/pipelex/observer/test_local_observer.py+++ b/tests/unit/pipelex/observer/test_local_observer.py@@ -47,7 +47,7 @@ class TestLocalObserver:async def test_constructor_default_dir_comes_from_config(self, mocker: MockerFixture, tmp_path: Path) -> None:"""Without an explicit storage_dir, the directory comes from the observer config."""default_dir = tmp_path / "configured" / "observer"- config_stub = SimpleNamespace(pipelex=SimpleNamespace(observer_config=SimpleNamespace(observer_dir=str(default_dir))))+ config_stub = SimpleNamespace(runtime=SimpleNamespace(observer=SimpleNamespace(observer_dir=str(default_dir))))get_config_mock = mocker.patch(f"{MODULE}.get_config", return_value=config_stub)observer = LocalObserver()diff --git a/tests/unit/pipelex/pipe_operators/pipe_func/test_direct_executor_workdir.py b/tests/unit/pipelex/pipe_operators/pipe_func/test_direct_executor_workdir.pyindex 36aedc440..4d423dc00 100644--- a/tests/unit/pipelex/pipe_operators/pipe_func/test_direct_executor_workdir.py+++ b/tests/unit/pipelex/pipe_operators/pipe_func/test_direct_executor_workdir.py@@ -114,7 +114,7 @@ class TestDirectExecutorWorkdir:"""# Build a real crate from the .mthds (hosted mode: the loader tolerates the yet-unregistered# function), then attach ONLY the PipeFunc source — deliberately NO structures/ source.- pipe_func_config = get_config().pipelex.pipe_func_config+ pipe_func_config = get_config().interpreter.pipe_funcprevious_mode = pipe_func_config.execution_modepipe_func_config.execution_mode = "local_sandbox"library_manager = get_library_manager()diff --git a/tests/unit/pipelex/pipe_run/test_batch_max_concurrency.py b/tests/unit/pipelex/pipe_run/test_batch_max_concurrency.pyindex f8d6d2e9a..f7875d188 100644--- a/tests/unit/pipelex/pipe_run/test_batch_max_concurrency.py+++ b/tests/unit/pipelex/pipe_run/test_batch_max_concurrency.py@@ -57,7 +57,7 @@ class TestBatchMaxConcurrency:PipeRunParams.model_validate({"run_mode": PipeRunMode.DRY, "pipe_stack_limit": 20})def test_factory_freezes_the_live_config_value(self) -> None:- execution_config = get_config().pipelex.pipeline_execution_config+ execution_config = get_config().interpreter.pipeline_executionexpected = resolve_batch_max_concurrency(execution_config.max_concurrency)run_params = PipeRunParamsFactory.make_run_params(pipe_run_mode=PipeRunMode.DRY)@@ -66,7 +66,7 @@ class TestBatchMaxConcurrency:def test_later_config_change_does_not_reach_existing_run_params(self) -> None:"""The whole point: params built before a config edit keep the bound they were born with."""- execution_config = get_config().pipelex.pipeline_execution_config+ execution_config = get_config().interpreter.pipeline_executionoriginal_setting = execution_config.max_concurrencytry:execution_config.max_concurrency = 3diff --git a/tests/unit/pipelex/pipe_run/test_tracing_assembly.py b/tests/unit/pipelex/pipe_run/test_tracing_assembly.pyindex 07dff22f8..d5323e76d 100644--- a/tests/unit/pipelex/pipe_run/test_tracing_assembly.py+++ b/tests/unit/pipelex/pipe_run/test_tracing_assembly.py@@ -44,11 +44,11 @@ def _make_usage_event(pipeline_run_id: str, node_id: str) -> UsageReportEvent:class TestTracingAssembly:def _enable_tracing(self, mocker: MockerFixture) -> None:mock_config = mocker.patch(f"{_MODULE}.get_config")- mock_config.return_value.pipelex.tracing_config.is_enabled = True+ mock_config.return_value.runtime.tracing.is_enabled = Truedef _disable_tracing(self, mocker: MockerFixture) -> None:mock_config = mocker.patch(f"{_MODULE}.get_config")- mock_config.return_value.pipelex.tracing_config.is_enabled = False+ mock_config.return_value.runtime.tracing.is_enabled = Falsedef test_returns_empty_when_tracing_disabled(self, mocker: MockerFixture) -> None:self._disable_tracing(mocker)diff --git a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py b/tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.pyindex df898d5c1..05b5c85b8 100644--- a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py+++ b/tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py@@ -50,6 +50,15 @@ _PACKAGED_DEFAULTS = Path("pipelex/pipelex.toml")_KIT_TEMPLATE = Path("pipelex/kit/configs/pipelex.toml")_ARRAY_OF_TABLES_FILE = Path("pipelex/kit/configs/plxt.toml")+# The out-of-order specimen. The packaged defaults used to be written out of order — `[pipelex]` and+# `[migration]` each split into several chunks — and the proxy tests below were written against them.+# The configuration reshape (`pipelex-config@2`) rewrote that file in order, so the live document+# produces no proxy at all and can no longer witness the behaviour. Its schema-1 golden can: it is a+# byte copy of the pre-reshape file, and every golden below the chain's head is frozen, so this+# specimen keeps the shape permanently. Reaching for it here is deliberate — the alternative, a+# hand-written fixture, would drift from the document these tests exist to characterize.+_OUT_OF_ORDER_SPECIMEN = Path("pipelex/migration/goldens/pipelex-config/[email protected]")+_ABSENT_KEY = "key_that_no_configuration_file_declares"@@ -86,6 +95,21 @@ def _table_paths(node: object, prefix: list[str]) -> list[list[str]]:return collected+def _move_storage_under_a_fresh_root(toml_doc: TOMLDocument) -> None:+ """Move ``runtime.storage`` to ``relocated.storage``, creating the destination root as it goes.++ The two placement tests need a move whose destination parent does *not* already exist, which is+ the case that makes tomlkit append at the end of the document. ``relocated`` is a name no+ configuration surface uses, so it can never collide with a real section.+ """+ runtime_table = _as_mapping(toml_doc["runtime"])+ moved = runtime_table["storage"]+ del runtime_table["storage"]+ created_parent = tomlkit.table()+ created_parent["storage"] = moved+ toml_doc["relocated"] = created_parent++def _probe_reachability(*, toml_doc: TOMLDocument, table_path: list[str]) -> str | None:"""Ask the applier whether it can reach ``table_path``, without changing the document.@@ -148,7 +172,7 @@ class TestFixApplierConfigSurfaceShapes:toml_doc=toml_doc,ops=[RenameTableKeyOp(- table_path=["cogt", "img_gen_config", "quality_to_steps_maps", "flux"],+ table_path=["inference", "img_gen", "quality_to_steps_maps", "flux"],key="low",new_key="lowest",)@@ -252,15 +276,21 @@ class TestFixApplierConfigSurfaceShapes:assert detail is not Noneassert "not found in table" in detail- def test_packaged_defaults_produce_out_of_order_proxies(self) -> None:- """The packaged document is written out of order, so two of its root tables are proxies.+ def test_the_specimen_produces_out_of_order_proxies_and_the_live_defaults_do_not(self) -> None:+ """The specimen is written out of order, so two of its root tables are proxies; the live file is not.- This is the premise of every proxy test below; if a reordering of ``pipelex.toml`` ever makes- it false, those tests stop measuring what they claim to.+ The first half is the premise of every proxy test below; if the specimen ever stops+ witnessing the shape, those tests stop measuring what they claim to. The second half pins+ what the configuration reshape delivered (ruling R6): the packaged defaults are written in+ order now, so no root table of the document users actually read is a proxy."""- toml_doc = _parse(_PACKAGED_DEFAULTS)- proxy_roots = [str(key) for key in toml_doc if type(toml_doc[key]).__name__ == "OutOfOrderTableProxy"]- assert proxy_roots == ["pipelex", "migration"]+ specimen = _parse(_OUT_OF_ORDER_SPECIMEN)+ specimen_proxies = [str(key) for key in specimen if type(specimen[key]).__name__ == "OutOfOrderTableProxy"]+ assert specimen_proxies == ["pipelex", "migration"]++ live = _parse(_PACKAGED_DEFAULTS)+ live_proxies = [str(key) for key in live if type(live[key]).__name__ == "OutOfOrderTableProxy"]+ assert live_proxies == []@pytest.mark.parametrize("table_path",@@ -272,7 +302,7 @@ class TestFixApplierConfigSurfaceShapes:)def test_delete_table_removes_every_chunk_of_an_out_of_order_table(self, table_path: list[str]) -> None:"""``delete_table`` removes all of an out-of-order table, leaving no orphaned header behind."""- toml_doc = _parse(_PACKAGED_DEFAULTS)+ toml_doc = _parse(_OUT_OF_ORDER_SPECIMEN)applications = apply_fix_ops(toml_doc=toml_doc, ops=[DeleteTableOp(table_path=table_path)])assert [application.outcome for application in applications] == [FixOpOutcome.APPLIED]rendered = _dumps(toml_doc)@@ -286,9 +316,11 @@ class TestFixApplierConfigSurfaceShapes:This is the configuration reshape's hardest shape (``[pipelex]`` becomes ``[interpreter]``)and it goes through ``Container._replace``, a tomlkit internal — so this test is the tripwire.+ It runs the reshape's own op over the pre-reshape specimen, which is the document that op+ was actually authored against."""- toml_doc = _parse(_PACKAGED_DEFAULTS)- original = _parse(_PACKAGED_DEFAULTS)+ toml_doc = _parse(_OUT_OF_ORDER_SPECIMEN)+ original = _parse(_OUT_OF_ORDER_SPECIMEN)applications = apply_fix_ops(toml_doc=toml_doc, ops=[RenameTableKeyOp(table_path=[], key="pipelex", new_key="interpreter")])assert [application.outcome for application in applications] == [FixOpOutcome.APPLIED]rendered = _dumps(toml_doc)@@ -358,7 +390,7 @@ class TestFixApplierConfigSurfaceShapes:every run, so an entry that has already been applied must be a byte-level no-op."""rename_op = RenameTableKeyOp(table_path=[], key="cogt", new_key="inference")- toml_doc = _parse(_PACKAGED_DEFAULTS)+ toml_doc = _parse(_OUT_OF_ORDER_SPECIMEN)apply_fix_ops(toml_doc=toml_doc, ops=[rename_op])once = _dumps(toml_doc)@@ -379,7 +411,7 @@ class TestFixApplierConfigSurfaceShapes:to create a destination section."""toml_doc = _parse(_PACKAGED_DEFAULTS)- applications = apply_fix_ops(toml_doc=toml_doc, ops=[EnsureTableOp(table_path=["pipelex", "freshly_ensured"])])+ applications = apply_fix_ops(toml_doc=toml_doc, ops=[EnsureTableOp(table_path=["interpreter", "freshly_ensured"])])assert [application.outcome for application in applications] == [FixOpOutcome.APPLIED]assert "freshly_ensured = {}" in _dumps(toml_doc)@@ -390,17 +422,12 @@ class TestFixApplierConfigSurfaceShapes:migration contract has to state, because a migrated file will not look like the original."""toml_doc = _parse(_KIT_TEMPLATE)- pipelex_table = _as_mapping(toml_doc["pipelex"])- moved = pipelex_table["storage_config"]- del pipelex_table["storage_config"]- created_parent = tomlkit.table()- created_parent["storage"] = moved- toml_doc["runtime"] = created_parent+ _move_storage_under_a_fresh_root(toml_doc)rendered_lines = _dumps(toml_doc).splitlines()- header_indexes = [index for index, line in enumerate(rendered_lines) if line.startswith("[runtime.storage]")]+ header_indexes = [index for index, line in enumerate(rendered_lines) if line.startswith("[relocated.storage]")]assert len(header_indexes) == 1- remaining_headers = [line for line in rendered_lines[header_indexes[0] :] if line.startswith("[") and not line.startswith("[runtime")]+ remaining_headers = [line for line in rendered_lines[header_indexes[0] :] if line.startswith("[") and not line.startswith("[relocated")]assert remaining_headers == []def test_moved_table_leaves_its_banner_comment_behind(self) -> None:@@ -415,17 +442,12 @@ class TestFixApplierConfigSurfaceShapes:banner = "# Storage Config"source_lines = _dumps(toml_doc).splitlines()banner_index = source_lines.index(banner)- assert source_lines[banner_index + 2 : banner_index + 4] == ["", "[pipelex.storage_config]"]+ assert source_lines[banner_index + 2 : banner_index + 4] == ["", "[runtime.storage]"]- pipelex_table = _as_mapping(toml_doc["pipelex"])- moved = pipelex_table["storage_config"]- del pipelex_table["storage_config"]- created_parent = tomlkit.table()- created_parent["storage"] = moved- toml_doc["runtime"] = created_parent+ _move_storage_under_a_fresh_root(toml_doc)migrated_lines = _dumps(toml_doc).splitlines()migrated_banner_index = migrated_lines.index(banner)- assert migrated_lines[migrated_banner_index + 2] != "[runtime.storage]"- destination_index = migrated_lines.index("[runtime.storage]")+ assert migrated_lines[migrated_banner_index + 2] != "[relocated.storage]"+ destination_index = migrated_lines.index("[relocated.storage]")assert banner not in migrated_lines[destination_index - 3 : destination_index]diff --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 30c81528c..5272b5dc8 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@@ -567,7 +567,7 @@ class TestFixLoopMultiFileScoping:bundle_path = tmp_path / "scoping.mthds"bundle_path.write_text(_MINIMAL_MTHDS, encoding="utf-8")fake_config = mocker.MagicMock()- fake_config.pipelex.builder_config.fix_loop_max_attempts = 1+ fake_config.interpreter.builder.fix_loop_max_attempts = 1mocker.patch("pipelex.pipeline.fixes.fix_loop.get_config", return_value=fake_config)# The error persists past the single allowed apply round: the loop must run exactly one# round then take its final-validation verdict and bail on max_iterations.diff --git a/tests/unit/pipelex/pipeline/test_bundle_graph_rendering_generate_graph.py b/tests/unit/pipelex/pipeline/test_bundle_graph_rendering_generate_graph.pyindex fa310edaf..d7203af54 100644--- a/tests/unit/pipelex/pipeline/test_bundle_graph_rendering_generate_graph.py+++ b/tests/unit/pipelex/pipeline/test_bundle_graph_rendering_generate_graph.py@@ -49,7 +49,7 @@ class TestGenerateGraphForBundle:execution_config_mock = mocker.MagicMock()config_mock = mocker.MagicMock()- config_mock.pipelex.pipeline_execution_config.with_execution_overrides.return_value = execution_config_mock+ config_mock.interpreter.pipeline_execution.with_execution_overrides.return_value = execution_config_mockmocker.patch(f"{BUNDLE_GRAPH_RENDERING_MODULE}.get_config", return_value=config_mock)mock_render = mocker.patch(@@ -94,8 +94,8 @@ class TestGenerateGraphForBundle:render_kwargs = mocks["mock_render"].call_args.kwargsassert render_kwargs["include_mermaidflow"] is expected_mermaidflowassert render_kwargs["include_reactflow"] is expected_reactflow- assert render_kwargs["graph_config"] is mocks["execution_config_mock"].graph_config- overrides_kwargs = mocks["config_mock"].pipelex.pipeline_execution_config.with_execution_overrides.call_args.kwargs+ assert render_kwargs["graph_config"] is mocks["execution_config_mock"].graph+ overrides_kwargs = mocks["config_mock"].interpreter.pipeline_execution.with_execution_overrides.call_args.kwargsassert overrides_kwargs == {"generate_graph": True, "mock_inputs": True}async def test_rename_branch_sanitizes_traversal_name(diff --git a/tests/unit/pipelex/pipeline/test_bundle_graph_rendering_generate_view.py b/tests/unit/pipelex/pipeline/test_bundle_graph_rendering_generate_view.pyindex 681cbd014..ec686011b 100644--- a/tests/unit/pipelex/pipeline/test_bundle_graph_rendering_generate_view.py+++ b/tests/unit/pipelex/pipeline/test_bundle_graph_rendering_generate_view.py@@ -42,9 +42,9 @@ class TestGenerateViewForBundle:)execution_config_mock = mocker.MagicMock()- execution_config_mock.graph_config.reactflow_config.layout_direction = config_layout_direction+ execution_config_mock.graph.reactflow.layout_direction = config_layout_directionconfig_mock = mocker.MagicMock()- config_mock.pipelex.pipeline_execution_config.with_execution_overrides.return_value = execution_config_mock+ config_mock.interpreter.pipeline_execution.with_execution_overrides.return_value = execution_config_mockmocker.patch(f"{BUNDLE_GRAPH_RENDERING_MODULE}.get_config", return_value=config_mock)return bundle_path, graph_spec_mock, dry_run_mockdiff --git a/tests/unit/pipelex/pipeline/test_bundle_validator.py b/tests/unit/pipelex/pipeline/test_bundle_validator.pyindex bee9f49af..cc8bcb413 100644--- a/tests/unit/pipelex/pipeline/test_bundle_validator.py+++ b/tests/unit/pipelex/pipeline/test_bundle_validator.py@@ -42,7 +42,7 @@ class TestBundleValidator:"""telemetry_manager = mocker.patch("pipelex.pipeline.bundle_validator.get_telemetry_manager").return_valuemock_get_config = mocker.patch("pipelex.pipeline.bundle_validator.get_config")- mock_get_config.return_value.pipelex.dry_run_config.allowed_to_fail_pipes = allowed_to_fail or []+ mock_get_config.return_value.inference.dry_run.allowed_to_fail_pipes = allowed_to_fail or []prepare_mock = mocker.patch("pipelex.pipeline.bundle_validator.prepare_pipe_job")prepare_mock.return_value = mocker.MagicMock(name="pipe_job")pipe_run = mocker.MagicMock(name="pipe_run")diff --git a/tests/unit/pipelex/pipeline/test_input_normalizer.py b/tests/unit/pipelex/pipeline/test_input_normalizer.pyindex fc8f6489f..7e2e265b0 100644--- a/tests/unit/pipelex/pipeline/test_input_normalizer.py+++ b/tests/unit/pipelex/pipeline/test_input_normalizer.py@@ -39,7 +39,7 @@ def _patch_storage_and_config(mocker: MockerFixture) -> None:)mocker.patch("pipelex.pipeline.input_normalizer.get_config",- return_value=mocker.Mock(pipelex=mocker.Mock(storage_config=mocker.Mock(is_upload_local_content_enabled=True))),+ return_value=mocker.Mock(runtime=mocker.Mock(storage=mocker.Mock(is_upload_local_content_enabled=True))),)diff --git a/tests/unit/pipelex/plugins/test_bundle_validator_registry.py b/tests/unit/pipelex/plugins/test_bundle_validator_registry.pyindex 6ad1e32ea..b101590eb 100644--- a/tests/unit/pipelex/plugins/test_bundle_validator_registry.py+++ b/tests/unit/pipelex/plugins/test_bundle_validator_registry.py@@ -42,7 +42,7 @@ class _FakeBundleValidator:def _make_registrar() -> PluginRegistrar:- return PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(plugins=SimpleNamespace(disabled=[]))))+ return PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(runtime=SimpleNamespace(plugins=SimpleNamespace(disabled=[])))))class TestBundleValidatorRegistry:diff --git a/tests/unit/pipelex/plugins/test_http_error_mapper_seam.py b/tests/unit/pipelex/plugins/test_http_error_mapper_seam.pyindex b2660e5d3..c9c0aa463 100644--- a/tests/unit/pipelex/plugins/test_http_error_mapper_seam.py+++ b/tests/unit/pipelex/plugins/test_http_error_mapper_seam.py@@ -21,7 +21,7 @@ class _FakeTransportError(Exception):def _make_registrar() -> PluginRegistrar:- return PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(plugins=SimpleNamespace(disabled=[]))))+ return PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(runtime=SimpleNamespace(plugins=SimpleNamespace(disabled=[])))))def _to_report(exc: Exception) -> ErrorReport:diff --git a/tests/unit/pipelex/plugins/test_import_light_boot.py b/tests/unit/pipelex/plugins/test_import_light_boot.pyindex 50e32d220..2b8129f07 100644--- a/tests/unit/pipelex/plugins/test_import_light_boot.py+++ b/tests/unit/pipelex/plugins/test_import_light_boot.py@@ -58,9 +58,10 @@ _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=[]))+ config = SimpleNamespace(runtime=SimpleNamespace(plugins=SimpleNamespace(disabled=[])))registrar = discovery.build_registrar(config=config,+ boot_orchestrator=None,builtin_plugins=BUILTIN_PLUGINS,core_unconditional_plugin_names=CORE_UNCONDITIONAL_PLUGIN_NAMES,entry_point_groups=ENTRY_POINT_GROUPS,diff --git a/tests/unit/pipelex/plugins/test_installed_plugin_group_isolation.py b/tests/unit/pipelex/plugins/test_installed_plugin_group_isolation.pyindex abd9412bd..e70ecd7ad 100644--- a/tests/unit/pipelex/plugins/test_installed_plugin_group_isolation.py+++ b/tests/unit/pipelex/plugins/test_installed_plugin_group_isolation.py@@ -96,7 +96,8 @@ _DISCOVERY_SCRIPT = textwrap.dedent(raise SystemExit(2)both = build_registrar(- config=SimpleNamespace(plugins=SimpleNamespace(disabled=[])),+ config=SimpleNamespace(runtime=SimpleNamespace(plugins=SimpleNamespace(disabled=[]))),+ boot_orchestrator=None,builtin_plugins=[],core_unconditional_plugin_names=frozenset(),entry_point_groups=(PluginGroup.KERNEL, PluginGroup.INTERPRETER),diff --git a/tests/unit/pipelex/plugins/test_pipe_func_executor_registry.py b/tests/unit/pipelex/plugins/test_pipe_func_executor_registry.pyindex 50eedd7a4..7ae1edcf4 100644--- a/tests/unit/pipelex/plugins/test_pipe_func_executor_registry.py+++ b/tests/unit/pipelex/plugins/test_pipe_func_executor_registry.py@@ -29,7 +29,7 @@ if TYPE_CHECKING:def _make_registrar() -> PluginRegistrar:- return PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(plugins=SimpleNamespace(disabled=[]))))+ return PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(runtime=SimpleNamespace(plugins=SimpleNamespace(disabled=[])))))def _fake_factory(_config: PipeFuncConfig) -> PipeFuncExecutorProtocol:diff --git a/tests/unit/pipelex/plugins/test_plugin_discovery.py b/tests/unit/pipelex/plugins/test_plugin_discovery.pyindex 305637b8a..36e121153 100644--- a/tests/unit/pipelex/plugins/test_plugin_discovery.py+++ b/tests/unit/pipelex/plugins/test_plugin_discovery.py@@ -1,6 +1,6 @@"""Contract-conformance tests for plugin discovery: protocol satisfaction, fail-loudconflict/version policy, the side-effect-free (idempotent) register invariant, and the-plugins.disabled denylist.+runtime.plugins.disabled denylist."""from __future__ import annotations@@ -49,10 +49,10 @@ def _noop_make_worker(**_kwargs: object) -> InferenceWorkerAbstract:def _fake_config(disabled: list[str]) -> PipelexConfig:- # Discovery reads ``config.plugins.disabled`` to apply the denylist. No builtin's+ # Discovery reads ``config.runtime.plugins.disabled`` to apply the denylist. No builtin's# register() reads config: Temporal — the only plugin that did, via ``temporal.is_enabled``# — now ships as our external Temporal plugin.- return cast("PipelexConfig", SimpleNamespace(plugins=SimpleNamespace(disabled=disabled)))+ return cast("PipelexConfig", SimpleNamespace(runtime=SimpleNamespace(plugins=SimpleNamespace(disabled=disabled))))class _InferencePlugin:@@ -109,6 +109,7 @@ def _build_registrar_with(mocker.patch(f"{DISCOVERY_MODULE}._external_entry_points", return_value=[])return build_registrar(config=_fake_config(disabled or []),+ boot_orchestrator=None,builtin_plugins=cast("Sequence[PipelexPlugin]", plugins),core_unconditional_plugin_names=core_unconditional,entry_point_groups=BOTH_GROUPS,@@ -200,12 +201,16 @@ class TestPluginDiscovery:mocker.patch(f"{DISCOVERY_MODULE}._external_entry_points", return_value=[grouped])with pytest.raises(BrokenPluginError) as exc_info:build_registrar(- config=_fake_config([]), builtin_plugins=[], core_unconditional_plugin_names=NO_CORE_UNCONDITIONAL, entry_point_groups=BOTH_GROUPS+ config=_fake_config([]),+ boot_orchestrator=None,+ builtin_plugins=[],+ core_unconditional_plugin_names=NO_CORE_UNCONDITIONAL,+ entry_point_groups=BOTH_GROUPS,)assert "bad_ep" in str(exc_info.value)def test_disabled_broken_external_entry_point_is_skipped_before_load(self, mocker: MockerFixture) -> None:- """A broken external entry point listed in plugins.disabled is skipped by its entry-point name+ """A broken external entry point listed in runtime.plugins.disabled is skipped by its entry-point name*before* load(), so the denylist can recover from a bad installed plugin instead of raising BrokenPluginError."""@@ -218,7 +223,11 @@ class TestPluginDiscovery:mocker.patch(f"{DISCOVERY_MODULE}._external_entry_points", return_value=[grouped])registrar = build_registrar(- config=_fake_config(["bad_ep"]), builtin_plugins=[], core_unconditional_plugin_names=NO_CORE_UNCONDITIONAL, entry_point_groups=BOTH_GROUPS+ config=_fake_config(["bad_ep"]),+ boot_orchestrator=None,+ builtin_plugins=[],+ core_unconditional_plugin_names=NO_CORE_UNCONDITIONAL,+ entry_point_groups=BOTH_GROUPS,)disabled_discovery = next(discovery for discovery in registrar.discoveries if discovery.name == "bad_ep")@@ -247,6 +256,7 @@ class TestPluginDiscovery:with pytest.raises(CoreUnconditionalPluginDisabledError) as exc_info:build_registrar(config=_fake_config([plugin_name]),+ boot_orchestrator=None,builtin_plugins=BUILTIN_PLUGINS,core_unconditional_plugin_names=CORE_UNCONDITIONAL_PLUGIN_NAMES,entry_point_groups=BOTH_GROUPS,@@ -259,6 +269,7 @@ class TestPluginDiscovery:registrar = build_registrar(config=_fake_config([]),+ boot_orchestrator=None,builtin_plugins=BUILTIN_PLUGINS,core_unconditional_plugin_names=CORE_UNCONDITIONAL_PLUGIN_NAMES,entry_point_groups=BOTH_GROUPS,diff --git a/tests/unit/pipelex/plugins/test_plugin_group_split.py b/tests/unit/pipelex/plugins/test_plugin_group_split.pyindex 75fa9b260..9bcc34a65 100644--- a/tests/unit/pipelex/plugins/test_plugin_group_split.py+++ b/tests/unit/pipelex/plugins/test_plugin_group_split.py@@ -58,7 +58,7 @@ def _noop_make_worker(**_kwargs: object) -> InferenceWorkerAbstract:def _fake_config() -> PipelexConfig:- return cast("PipelexConfig", SimpleNamespace(plugins=SimpleNamespace(disabled=[])))+ return cast("PipelexConfig", SimpleNamespace(runtime=SimpleNamespace(plugins=SimpleNamespace(disabled=[]))))class _ContributingPlugin:@@ -114,6 +114,7 @@ def _discover(mocker.patch("importlib.metadata.entry_points", side_effect=_installed)return build_registrar(config=_fake_config(),+ boot_orchestrator=None,builtin_plugins=cast("Sequence[PipelexPlugin]", builtins),core_unconditional_plugin_names=frozenset(),entry_point_groups=groups,@@ -247,6 +248,7 @@ class TestPluginGroupSplit:mocker.patch("importlib.metadata.entry_points", side_effect=_record)build_registrar(config=_fake_config(),+ boot_orchestrator=None,builtin_plugins=[],core_unconditional_plugin_names=frozenset(),entry_point_groups=(PluginGroup.KERNEL,),diff --git a/tests/unit/pipelex/plugins/test_registered_plugin_names.py b/tests/unit/pipelex/plugins/test_registered_plugin_names.pyindex c4a9b910c..52baa52cb 100644--- a/tests/unit/pipelex/plugins/test_registered_plugin_names.py+++ b/tests/unit/pipelex/plugins/test_registered_plugin_names.py@@ -1,5 +1,5 @@"""The ``PluginRegistrar.registered_plugin_names`` accessor — the namespace the-``plugins.boot_orchestrator`` gate validates against. Only ``REGISTERED`` discoveries count;+``boot_orchestrator`` gate validates against. Only ``REGISTERED`` discoveries count;``DISABLED`` / ``BROKEN`` ones never ran ``register`` and so could never claim a hub slot, makingthem invalid boot-orchestrator targets."""@@ -16,7 +16,7 @@ if TYPE_CHECKING:def _registrar() -> PluginRegistrar:- return PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(plugins=SimpleNamespace(disabled=[]))))+ return PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(runtime=SimpleNamespace(plugins=SimpleNamespace(disabled=[])))))class TestRegisteredPluginNames:diff --git a/tests/unit/pipelex/plugins/test_secrets_provider_registry.py b/tests/unit/pipelex/plugins/test_secrets_provider_registry.pyindex bc09d6501..c9ce6bfd1 100644--- a/tests/unit/pipelex/plugins/test_secrets_provider_registry.py+++ b/tests/unit/pipelex/plugins/test_secrets_provider_registry.py@@ -26,7 +26,7 @@ if TYPE_CHECKING:def _make_registrar() -> PluginRegistrar:- return PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(plugins=SimpleNamespace(disabled=[]))))+ return PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(runtime=SimpleNamespace(plugins=SimpleNamespace(disabled=[])))))def _fake_factory(_config: SecretsProviderConfig) -> SecretsProviderAbstract:diff --git a/tests/unit/pipelex/plugins/test_storage_provider_registry.py b/tests/unit/pipelex/plugins/test_storage_provider_registry.pyindex 839c5dc53..6aeb78c14 100644--- a/tests/unit/pipelex/plugins/test_storage_provider_registry.py+++ b/tests/unit/pipelex/plugins/test_storage_provider_registry.py@@ -26,7 +26,7 @@ if TYPE_CHECKING:def _make_registrar() -> PluginRegistrar:- return PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(plugins=SimpleNamespace(disabled=[]))))+ return PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(runtime=SimpleNamespace(plugins=SimpleNamespace(disabled=[])))))def _fake_factory(_config: StorageProviderConfig) -> StorageProviderAbstract:diff --git a/tests/unit/pipelex/providers/anthropic/test_anthropic_reasoning.py b/tests/unit/pipelex/providers/anthropic/test_anthropic_reasoning.pyindex c3420e538..8db9f7856 100644--- a/tests/unit/pipelex/providers/anthropic/test_anthropic_reasoning.py+++ b/tests/unit/pipelex/providers/anthropic/test_anthropic_reasoning.py@@ -31,12 +31,12 @@ def _make_worker(mocker: MockerFixture, thinking_mode: ThinkingMode) -> Anthropidef _mock_config(mocker: MockerFixture, budget_mock: object | None = None) -> None:"""Mock get_config() with a real anthropic_config and an optional get_reasoning_budget mock."""anthropic_config = AnthropicConfig(structured_output_timeout_seconds=1200, effort_to_level_map=_ANTHROPIC_LEVEL_MAP)- llm_config = mocker.MagicMock(anthropic_config=anthropic_config)+ llm_config = mocker.MagicMock(anthropic=anthropic_config)if budget_mock is not None:llm_config.get_reasoning_budget = budget_mockmocker.patch("pipelex.providers.anthropic.anthropic_llm_worker.get_config",- return_value=mocker.MagicMock(cogt=mocker.MagicMock(llm_config=llm_config)),+ return_value=mocker.MagicMock(inference=mocker.MagicMock(llm=llm_config)),)diff --git a/tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py b/tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.pyindex 95b02e4da..d11dab43e 100644--- a/tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py+++ b/tests/unit/pipelex/providers/anthropic/test_anthropic_worker_object_error_handling.py@@ -88,7 +88,7 @@ def _make_worker(mocker: MockerFixture) -> AnthropicLLMWorker: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+ config_mock.inference.llm.anthropic.structured_output_timeout_seconds = 1200mocker.patch("pipelex.providers.anthropic.anthropic_llm_worker.get_config", return_value=config_mock)mocker.patch("pipelex.providers.anthropic.anthropic_llm_worker.AnthropicFactory.make_simple_messages",diff --git a/tests/unit/pipelex/providers/gateway/test_gateway_completions_client.py b/tests/unit/pipelex/providers/gateway/test_gateway_completions_client.pyindex 88d7afc17..f3b048af7 100644--- a/tests/unit/pipelex/providers/gateway/test_gateway_completions_client.py+++ b/tests/unit/pipelex/providers/gateway/test_gateway_completions_client.py@@ -30,7 +30,7 @@ def _patch_gateway_accessors(mocker.patch(f"{_FACTORY_NAMESPACE}.GatewayFactory.get_endpoint", return_value=endpoint)mocker.patch(f"{_FACTORY_NAMESPACE}.GatewayFactory.get_api_key", return_value=api_key)config = mocker.MagicMock()- config.cogt.transport_max_retries = 2+ config.inference.transport_max_retries = 2mocker.patch(f"{_FACTORY_NAMESPACE}.get_config", return_value=config)diff --git a/tests/unit/pipelex/providers/google/test_google_reasoning.py b/tests/unit/pipelex/providers/google/test_google_reasoning.pyindex 283fcbb6a..1d9119835 100644--- a/tests/unit/pipelex/providers/google/test_google_reasoning.py+++ b/tests/unit/pipelex/providers/google/test_google_reasoning.py@@ -35,9 +35,9 @@ def _mock_config_for_adaptive(mocker: MockerFixture) -> None:mocker.patch("pipelex.providers.google.google_llm_worker.get_config",return_value=mocker.MagicMock(- cogt=mocker.MagicMock(- llm_config=mocker.MagicMock(- google_config=google_config,+ inference=mocker.MagicMock(+ llm=mocker.MagicMock(+ google=google_config,),),),@@ -71,10 +71,10 @@ class TestGoogleReasoning:mocker.patch("pipelex.providers.google.google_llm_worker.get_config",return_value=mocker.MagicMock(- cogt=mocker.MagicMock(- llm_config=mocker.MagicMock(+ inference=mocker.MagicMock(+ llm=mocker.MagicMock(get_reasoning_budget=budget_mock,- google_config=google_config,+ google=google_config,),),),@@ -117,9 +117,9 @@ class TestGoogleReasoning:mocker.patch("pipelex.providers.google.google_llm_worker.get_config",return_value=mocker.MagicMock(- cogt=mocker.MagicMock(- llm_config=mocker.MagicMock(- google_config=google_config,+ inference=mocker.MagicMock(+ llm=mocker.MagicMock(+ google=google_config,),),),@@ -190,10 +190,10 @@ class TestGoogleReasoning:mocker.patch("pipelex.providers.google.google_llm_worker.get_config",return_value=mocker.MagicMock(- cogt=mocker.MagicMock(- llm_config=mocker.MagicMock(+ inference=mocker.MagicMock(+ llm=mocker.MagicMock(get_reasoning_budget=mocker.MagicMock(return_value=16384),- google_config=google_config,+ google=google_config,),),),diff --git a/tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py b/tests/unit/pipelex/providers/mistral/test_mistral_reasoning.pyindex 52ea1dc33..9b7a022ff 100644--- a/tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py+++ b/tests/unit/pipelex/providers/mistral/test_mistral_reasoning.py@@ -35,9 +35,9 @@ def _mock_config(mocker: MockerFixture) -> None:mocker.patch("pipelex.providers.mistral.mistral_llm_worker.get_config",return_value=mocker.MagicMock(- cogt=mocker.MagicMock(- llm_config=mocker.MagicMock(- mistral_config=mistral_config,+ inference=mocker.MagicMock(+ llm=mocker.MagicMock(+ mistral=mistral_config,),),),diff --git a/tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py b/tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.pyindex a55489547..7493de4a6 100644--- a/tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py+++ b/tests/unit/pipelex/providers/openai/test_openai_completions_reasoning.py@@ -35,9 +35,9 @@ def _mock_config(mocker: MockerFixture) -> None:mocker.patch("pipelex.providers.openai.openai_completions_llm_worker.get_config",return_value=mocker.MagicMock(- cogt=mocker.MagicMock(- llm_config=mocker.MagicMock(- openai_config=openai_config,+ inference=mocker.MagicMock(+ llm=mocker.MagicMock(+ openai=openai_config,),),),diff --git a/tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py b/tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.pyindex a6f2a79e7..33647cbf7 100644--- a/tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py+++ b/tests/unit/pipelex/providers/openai/test_openai_responses_reasoning.py@@ -35,9 +35,9 @@ def _mock_config(mocker: MockerFixture) -> None:mocker.patch("pipelex.providers.openai.openai_responses_llm_worker.get_config",return_value=mocker.MagicMock(- cogt=mocker.MagicMock(- llm_config=mocker.MagicMock(- openai_config=openai_config,+ inference=mocker.MagicMock(+ llm=mocker.MagicMock(+ openai=openai_config,),),),diff --git a/tests/unit/pipelex/providers/secrets/test_secrets_plugin.py b/tests/unit/pipelex/providers/secrets/test_secrets_plugin.pyindex 2798424f4..c29d48cc4 100644--- a/tests/unit/pipelex/providers/secrets/test_secrets_plugin.py+++ b/tests/unit/pipelex/providers/secrets/test_secrets_plugin.py@@ -23,7 +23,7 @@ if TYPE_CHECKING:def _build_secrets_registry() -> SecretsProviderRegistry:- registrar = PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(plugins=SimpleNamespace(disabled=[]))))+ registrar = PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(runtime=SimpleNamespace(plugins=SimpleNamespace(disabled=[])))))SecretsPlugin().register(registrar)return SecretsProviderRegistry(registrar.secrets_providers)@@ -35,7 +35,7 @@ class TestSecretsPlugin:assert plugin.name == "secrets"assert plugin.targets_api == PLUGIN_API_VERSION- registrar = PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(plugins=SimpleNamespace(disabled=[]))))+ registrar = PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(runtime=SimpleNamespace(plugins=SimpleNamespace(disabled=[])))))discovery = registrar.begin_plugin(name="secrets", origin=PluginOrigin.BUILTIN, targets_api=PLUGIN_API_VERSION, group=None)plugin.register(registrar)diff --git a/tests/unit/pipelex/providers/storage/test_storage_plugin.py b/tests/unit/pipelex/providers/storage/test_storage_plugin.pyindex f68940d08..5b161d93c 100644--- a/tests/unit/pipelex/providers/storage/test_storage_plugin.py+++ b/tests/unit/pipelex/providers/storage/test_storage_plugin.py@@ -50,7 +50,7 @@ class _FakeSecretsProvider:def _build_storage_registry() -> StorageProviderRegistry:- registrar = PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(plugins=SimpleNamespace(disabled=[]))))+ registrar = PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(runtime=SimpleNamespace(plugins=SimpleNamespace(disabled=[])))))StoragePlugin().register(registrar)return StorageProviderRegistry(registrar.storage_providers)@@ -62,7 +62,7 @@ class TestStoragePlugin:assert plugin.name == "storage"assert plugin.targets_api == PLUGIN_API_VERSION- registrar = PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(plugins=SimpleNamespace(disabled=[]))))+ registrar = PluginRegistrar(config=cast("PipelexConfig", SimpleNamespace(runtime=SimpleNamespace(plugins=SimpleNamespace(disabled=[])))))discovery = registrar.begin_plugin(name="storage", origin=PluginOrigin.BUILTIN, targets_api=PLUGIN_API_VERSION, group=None)plugin.register(registrar)diff --git a/tests/unit/pipelex/providers/test_transport_retry_wiring.py b/tests/unit/pipelex/providers/test_transport_retry_wiring.pyindex 6c1bcec3e..1b8f3bafc 100644--- a/tests/unit/pipelex/providers/test_transport_retry_wiring.py+++ b/tests/unit/pipelex/providers/test_transport_retry_wiring.py@@ -1,6 +1,6 @@"""Construction tests for Tier 1 transport-retry wiring in the SDK client factories.-Each inference client factory must pass the configured ``cogt.transport_max_retries`` explicitly+Each inference client factory must pass the configured ``inference.transport_max_retries`` explicitlyto the SDK client it builds, rather than inheriting the SDK's silent default. These tests patchthe SDK client constructor and assert the factory hands it the configured retry budget — they donot exercise SDK retry over the network.@@ -27,7 +27,7 @@ if TYPE_CHECKING:def _config_with(mocker: MockerFixture, transport_max_retries: int) -> object:config = mocker.MagicMock()- config.cogt.transport_max_retries = transport_max_retries+ config.inference.transport_max_retries = transport_max_retriesreturn configdiff --git a/tests/unit/pipelex/reporting/test_cost_report_renderer.py b/tests/unit/pipelex/reporting/test_cost_report_renderer.pyindex 66a89917f..ce358e9ca 100644--- a/tests/unit/pipelex/reporting/test_cost_report_renderer.py+++ b/tests/unit/pipelex/reporting/test_cost_report_renderer.py@@ -55,7 +55,7 @@ def _free_model_usage(job_metadata: JobMetadata) -> LLMTokensUsage:class TestRenderRunCostReport:def _set_channels(self, mocker: MockerFixture, *, console: bool, csv: bool, csv_dir: Path | None = None) -> None:- reporting_config = get_config().pipelex.reporting_config+ reporting_config = get_config().runtime.reportingmocker.patch.object(reporting_config, "is_log_costs_to_console", console)mocker.patch.object(reporting_config, "is_generate_cost_report_file_enabled", csv)if csv_dir is not None:diff --git a/tests/unit/pipelex/reporting/test_emit_runner_fallback.py b/tests/unit/pipelex/reporting/test_emit_runner_fallback.pyindex 4b8313bb0..c92d6b614 100644--- a/tests/unit/pipelex/reporting/test_emit_runner_fallback.py+++ b/tests/unit/pipelex/reporting/test_emit_runner_fallback.py@@ -102,7 +102,7 @@ def _reset_activity_event_log_state() -> Any: # pyright: ignore[reportUnusedFundef _enable_ndjson_tracing(mocker: MockerFixture, traces_dir: Path) -> None:"""Patch the live tracing config to enabled NDJSON pointing at traces_dir."""- cfg = get_config().pipelex.tracing_config+ cfg = get_config().runtime.tracingmocker.patch.object(cfg, "is_enabled", True)mocker.patch.object(cfg, "backend", TracingBackend.NDJSON)mocker.patch.object(cfg, "ndjson", NdjsonTracingConfig(traces_dir=str(traces_dir)))@@ -197,7 +197,7 @@ class TestEmitRunnerFallback:construct their own backend, generating two writer_ids and racing on the file."""_enable_ndjson_tracing(mocker, tmp_path)- cfg = get_config().pipelex.tracing_config+ cfg = get_config().runtime.tracingnb_threads = 16barrier = threading.Barrier(nb_threads)@@ -228,8 +228,8 @@ class TestEmitRunnerFallback:tmp_path: Path,mocker: MockerFixture,) -> None:- """When tracing_config.is_enabled=False, the fallback returns without writing any file."""- cfg = get_config().pipelex.tracing_config+ """When runtime.tracing.is_enabled=False, the fallback returns without writing any file."""+ cfg = get_config().runtime.tracingmocker.patch.object(cfg, "is_enabled", False)manager = ReportingManager()diff --git a/tests/unit/pipelex/reporting/test_emit_runner_fallback_non_llm.py b/tests/unit/pipelex/reporting/test_emit_runner_fallback_non_llm.pyindex 5cd5550b4..3ce24415b 100644--- a/tests/unit/pipelex/reporting/test_emit_runner_fallback_non_llm.py+++ b/tests/unit/pipelex/reporting/test_emit_runner_fallback_non_llm.py@@ -61,7 +61,7 @@ def _reset_activity_event_log_state() -> object: # pyright: ignore[reportUnuseddef _enable_ndjson_tracing(mocker: MockerFixture, traces_dir: Path) -> None:- cfg = get_config().pipelex.tracing_config+ cfg = get_config().runtime.tracingmocker.patch.object(cfg, "is_enabled", True)mocker.patch.object(cfg, "backend", TracingBackend.NDJSON)mocker.patch.object(cfg, "ndjson", NdjsonTracingConfig(traces_dir=str(traces_dir)))diff --git a/tests/unit/pipelex/reporting/test_emit_usage_event_gating.py b/tests/unit/pipelex/reporting/test_emit_usage_event_gating.pyindex 2547086a9..03ef1a5f4 100644--- a/tests/unit/pipelex/reporting/test_emit_usage_event_gating.py+++ b/tests/unit/pipelex/reporting/test_emit_usage_event_gating.py@@ -76,7 +76,7 @@ def _make_trace_context(graph_id: str, *, emit_usage_events: bool, emit_graph_evdef _enable_ndjson_tracing(mocker: MockerFixture, traces_dir: Path) -> None:- cfg = get_config().pipelex.tracing_config+ cfg = get_config().runtime.tracingmocker.patch.object(cfg, "is_enabled", True)mocker.patch.object(cfg, "backend", TracingBackend.NDJSON)mocker.patch.object(cfg, "ndjson", NdjsonTracingConfig(traces_dir=str(traces_dir)))diff --git a/tests/unit/pipelex/reporting/test_render_cost_report_for_output.py b/tests/unit/pipelex/reporting/test_render_cost_report_for_output.pyindex b6eecd7aa..301bd7a54 100644--- a/tests/unit/pipelex/reporting/test_render_cost_report_for_output.py+++ b/tests/unit/pipelex/reporting/test_render_cost_report_for_output.py@@ -31,7 +31,7 @@ def _usage(job_metadata: JobMetadata) -> LLMTokensUsage:class TestRenderCostReportForOutput:def _enable_channels(self, mocker: MockerFixture) -> None:- reporting_config = get_config().pipelex.reporting_config+ reporting_config = get_config().runtime.reportingmocker.patch.object(reporting_config, "is_log_costs_to_console", True)mocker.patch.object(reporting_config, "is_generate_cost_report_file_enabled", False)diff --git a/tests/unit/pipelex/reporting/test_reporting_event_emission.py b/tests/unit/pipelex/reporting/test_reporting_event_emission.pyindex cad0f0b02..cd2488c34 100644--- a/tests/unit/pipelex/reporting/test_reporting_event_emission.py+++ b/tests/unit/pipelex/reporting/test_reporting_event_emission.py@@ -318,13 +318,13 @@ class TestReportingEventEmission:def test_no_emit_when_no_event_log_set_and_no_fallback_yet(self, mocker: MockerFixture) -> None:"""Pin the tracing-disabled silent baseline.- When set_event_log is never called and tracing_config.is_enabled=False,+ When set_event_log is never called and runtime.tracing.is_enabled=False,report_inference_job must not write any event anywhere — even after thePhase 2 fallback lands. The fallback path is only allowed to engage whentracing is enabled."""# Force tracing to disabled regardless of process config.- mocker.patch.object(get_config().pipelex.tracing_config, "is_enabled", False)+ mocker.patch.object(get_config().runtime.tracing, "is_enabled", False)manager = ReportingManager()manager.setup()diff --git a/tests/unit/pipelex/system/configuration/test_boot_tolerance.py b/tests/unit/pipelex/system/configuration/test_boot_tolerance.pyindex 43523a4cd..9b9b1a373 100644--- a/tests/unit/pipelex/system/configuration/test_boot_tolerance.py+++ b/tests/unit/pipelex/system/configuration/test_boot_tolerance.py@@ -54,6 +54,8 @@ from pipelex.tools.secrets.env_secrets_provider import EnvSecretsProviderif TYPE_CHECKING:from pytest_mock import MockerFixture+ from pipelex.migration.plan import MigrationPlan+def old_shape_telemetry_document() -> str:"""The flat pre-`[custom_posthog]` document the shipped entry is about, read from the package."""@@ -210,13 +212,13 @@ class TestTheRetryHonoursTheSchemaVersionFloor:"""OPS = (- '[[migration.ops]]\nkind = "rename_table_key"\ntable_path = ["pipelex", "log_config"]\n'+ '[[migration.ops]]\nkind = "rename_table_key"\ntable_path = ["runtime", "log"]\n''key = "old_default_log_level"\nnew_key = "default_log_level"\n')def _stale_file(self, *, directory: Path, declared: int) -> Path:stale = directory / "pipelex.toml"- stale.write_text(f'[meta]\nschema_version = {declared}\n\n[pipelex.log_config]\nold_default_log_level = "DEBUG"\n', encoding="utf-8")+ stale.write_text(f'[meta]\nschema_version = {declared}\n\n[runtime.log]\nold_default_log_level = "DEBUG"\n', encoding="utf-8")return staledef test_a_file_declaring_a_version_below_the_floor_declines_the_retry(self, tmp_path: Path, synthetic_migration_dir: Path) -> None:@@ -245,7 +247,7 @@ class TestTheRetryHonoursTheSchemaVersionFloor:replayed = replay_surface_files_in_memory(surface_id=PIPELEX_CONFIG_SURFACE_ID, paths=[stale])assert replayed is not None- assert replayed.config_dict["pipelex"]["log_config"]["default_log_level"] == "DEBUG"+ assert replayed.config_dict["runtime"]["log"]["default_log_level"] == "DEBUG"def test_the_loader_then_raises_the_users_own_error(self, fake_dirs: tuple[Path, Path], synthetic_migration_dir: Path) -> None:"""Which names the stale key — and whose `migration` block is where the floor gets reported."""@@ -264,13 +266,18 @@ class TestTheRetryHonoursTheSchemaVersionFloor:class TestWhatTheWarningSays:- def test_it_names_the_file_and_the_remedy(self, tmp_path: Path) -> None:- stale = tmp_path / "telemetry.toml"- stale.write_text(old_shape_telemetry_document(), encoding="utf-8")+ @staticmethod+ def _stale_telemetry_plans(*, directory: Path, body: str | None = None) -> tuple[Path, list[MigrationPlan]]:+ stale = directory / "telemetry.toml"+ stale.write_text(body if body is not None else old_shape_telemetry_document(), encoding="utf-8")replayed = replay_surface_files_in_memory(surface_id=TELEMETRY_CONFIG_SURFACE_ID, paths=[stale])assert replayed is not None+ return stale, replayed.plans- warning = stale_configuration_warning(plans=replayed.plans)+ def test_it_names_the_file_and_the_remedy(self, tmp_path: Path) -> None:+ stale, plans = self._stale_telemetry_plans(directory=tmp_path)++ warning = stale_configuration_warning(plans=plans, walked_dirs=[tmp_path])assert str(stale) in warningassert "pipelex migrate" in warning@@ -280,16 +287,87 @@ class TestWhatTheWarningSays:"""Ledger text only, the same rule the migration report obeys — a boot warning is read inthe same places a report is, and a user's own values have no business in either."""- stale = tmp_path / "telemetry.toml"- stale.write_text('telemetry_mode = "off"\nproject_api_key = "phc_a_secret_the_user_owns"\n', encoding="utf-8")- replayed = replay_surface_files_in_memory(surface_id=TELEMETRY_CONFIG_SURFACE_ID, paths=[stale])- assert replayed is not None+ _, plans = self._stale_telemetry_plans(directory=tmp_path, body='telemetry_mode = "off"\nproject_api_key = "phc_a_secret_the_user_owns"\n')- warning = stale_configuration_warning(plans=replayed.plans)+ warning = stale_configuration_warning(plans=plans, walked_dirs=[tmp_path])assert "Nest the flat telemetry settings under [custom_posthog]" in warningassert "phc_a_secret_the_user_owns" not in warning+ def test_a_file_outside_the_walk_is_not_offered_the_command(self, tmp_path: Path) -> None:+ """`Pipelex.make(config_dir=…)` outside the two walked directories is the live case.++ Boot tolerance replays whatever the loader merged, so it reaches such a file; `pipelex+ migrate`'s walk is fixed and never will. Naming the command there would promise, on every+ boot, a remedy that then reports nothing to do — the same rule the migration report obeys:+ a remedy is named only where it would write.+ """+ embedder_dir = tmp_path / "embedder"+ embedder_dir.mkdir()+ stale, plans = self._stale_telemetry_plans(directory=embedder_dir)++ warning = stale_configuration_warning(plans=plans, walked_dirs=[tmp_path / "global", tmp_path / "project"])++ assert str(stale) in warning+ assert "Nothing was written" in warning+ assert "does not reach" in warning+ assert "yours to update where it lives" in warning+ assert "Run `pipelex migrate`" not in warning++ def test_a_walk_of_one_file_in_and_one_out_names_each_side(self, tmp_path: Path) -> None:+ """The mixed case is reachable, and a single closing sentence would be wrong for one of them.++ A load merges tiers from several directories at once — under unit testing it also merges+ this repository's own `tests/pipelex_{run_mode}.toml`, which is outside the walk by design.+ So the warning splits the files rather than picking one verb for all of them.+ """+ walked = tmp_path / "walked"+ walked.mkdir()+ outside = tmp_path / "outside"+ outside.mkdir()+ inside_file, inside_plans = self._stale_telemetry_plans(directory=walked)+ outside_file, outside_plans = self._stale_telemetry_plans(directory=outside)++ warning = stale_configuration_warning(plans=inside_plans + outside_plans, walked_dirs=[walked])++ assert f"Run `pipelex migrate` to bring '{inside_file}' up to date." in warning+ assert f"`pipelex migrate` does not reach '{outside_file}' — that file is yours to update where it lives." in warning++ def test_the_walk_is_not_recursive_so_a_subdirectory_is_out_of_reach(self, tmp_path: Path) -> None:+ """`.pipelex/inference/backends/` is the specimen the walk deliberately skips."""+ nested = tmp_path / "inference" / "backends"+ nested.mkdir(parents=True)+ _, plans = self._stale_telemetry_plans(directory=nested)++ warning = stale_configuration_warning(plans=plans, walked_dirs=[tmp_path])++ assert "does not reach" in warning+ assert "Run `pipelex migrate`" not in warning++ def test_a_file_symlinked_out_of_a_walked_directory_is_still_in_reach(self, tmp_path: Path) -> None:+ """Where the file points is not where the command looks for it.++ A `telemetry.toml` symlinked out to a dotfiles repository — chezmoi, stow and yadm all do+ this — is enumerated by the walk's `iterdir` like any other entry and written straight+ through, so the remedy applies to it. Resolving the file rather than its directory would+ move its parent outside the walk and tell the user to go and edit it by hand, which is both+ wrong and the advice most likely to be followed, since the target really is somewhere else.+ """+ walked = tmp_path / "walked"+ walked.mkdir()+ elsewhere = tmp_path / "dotfiles"+ elsewhere.mkdir()+ target, _ = self._stale_telemetry_plans(directory=elsewhere)+ link = walked / "telemetry.toml"+ link.symlink_to(target)++ replayed = replay_surface_files_in_memory(surface_id=TELEMETRY_CONFIG_SURFACE_ID, paths=[link])+ assert replayed is not None+ warning = stale_configuration_warning(plans=replayed.plans, walked_dirs=[walked])++ assert "Run `pipelex migrate` to bring the files up to date." in warning+ assert "does not reach" not in warning+class TestTheTelemetryLoader:"""The one surface whose shipped ledger already carries a real entry."""@@ -388,21 +466,55 @@ class TestTheMainConfigurationLoader:migration_dir=synthetic_migration_dir,surface_id=PIPELEX_CONFIG_SURFACE_ID,base_file="pipelex.toml",- ops_body='[[migration.ops]]\nkind = "rename_table_key"\ntable_path = ["pipelex", "log_config"]\n'+ ops_body='[[migration.ops]]\nkind = "rename_table_key"\ntable_path = ["runtime", "log"]\n''key = "old_default_log_level"\nnew_key = "default_log_level"\n',)- (global_dir / "pipelex.toml").write_text('[pipelex.log_config]\nold_default_log_level = "DEBUG"\n', encoding="utf-8")+ (global_dir / "pipelex.toml").write_text('[runtime.log]\nold_default_log_level = "DEBUG"\n', encoding="utf-8")mocker.patch.object(log, "log_dispatch", LogDispatch())loader = ConfigLoader()config = loader.load_config_validated(config_cls=PipelexConfig)- assert config.pipelex.log_config.default_log_level is LogLevel.DEBUG+ assert config.runtime.log.default_log_level is LogLevel.DEBUGparked = loader.take_stale_configuration_warning()assert parked is not Noneassert "pipelex migrate" in parkedassert loader.take_stale_configuration_warning() is None, "a warning is emitted once"+ def test_the_warning_reads_the_walk_off_the_loader_rather_than_deriving_its_own(+ self,+ fake_dirs: tuple[Path, Path],+ synthetic_migration_dir: Path,+ mocker: MockerFixture,+ ) -> None:+ """The other end of the one derivation `pipelex migrate`'s walk also reads.++ Patched to walk nothing, the loader must decline to name the command for the very file it+ just carried forward. A second derivation living here would keep naming it — and that is+ precisely the disagreement the shared property exists to make impossible, in the direction+ that matters, since a boot promising a remedy the command declines is the one a user acts+ on.+ """+ global_dir, _ = fake_dirs+ write_synthetic_ledger(+ migration_dir=synthetic_migration_dir,+ surface_id=PIPELEX_CONFIG_SURFACE_ID,+ base_file="pipelex.toml",+ ops_body='[[migration.ops]]\nkind = "rename_table_key"\ntable_path = ["runtime", "log"]\n'+ 'key = "old_default_log_level"\nnew_key = "default_log_level"\n',+ )+ (global_dir / "pipelex.toml").write_text('[runtime.log]\nold_default_log_level = "DEBUG"\n', encoding="utf-8")+ mocker.patch.object(log, "log_dispatch", LogDispatch())+ mocker.patch.object(ConfigLoader, "existing_config_dirs", new_callable=mocker.PropertyMock, return_value=[])+ loader = ConfigLoader()++ loader.load_config_validated(config_cls=PipelexConfig)++ parked = loader.take_stale_configuration_warning()+ assert parked is not None+ assert "does not reach" in parked+ assert "Run `pipelex migrate`" not in parked+@pytest.mark.usefixtures("fake_dirs")def test_a_healthy_configuration_parks_no_warning(self) -> None:loader = ConfigLoader()@@ -424,17 +536,17 @@ class TestTheMainConfigurationLoader:migration_dir=synthetic_migration_dir,surface_id=PIPELEX_CONFIG_SURFACE_ID,base_file="pipelex.toml",- ops_body='[[migration.ops]]\nkind = "rename_table_key"\ntable_path = ["pipelex", "log_config"]\n'+ ops_body='[[migration.ops]]\nkind = "rename_table_key"\ntable_path = ["runtime", "log"]\n''key = "old_default_log_level"\nnew_key = "default_log_level"\n',)- (global_dir / "pipelex.toml").write_text('[pipelex.log_config]\nold_default_log_level = "DEBUG"\n', encoding="utf-8")+ (global_dir / "pipelex.toml").write_text('[runtime.log]\nold_default_log_level = "DEBUG"\n', encoding="utf-8")config = ConfigLoader().load_config_validated(config_cls=PipelexConfig,- extra_overrides={"pipelex": {"log_config": {"default_log_level": "WARNING"}}},+ extra_overrides={"runtime": {"log": {"default_log_level": "WARNING"}}},)- assert config.pipelex.log_config.default_log_level is LogLevel.WARNING+ assert config.runtime.log.default_log_level is LogLevel.WARNING@pytest.mark.usefixtures("fake_dirs", "synthetic_migration_dir")def test_a_configuration_the_ledger_cannot_explain_still_raises_the_users_own_error(self) -> None:diff --git a/tests/unit/pipelex/system/test_pipelex_check_initialization.py b/tests/unit/pipelex/system/test_pipelex_check_initialization.pyindex 546665d6b..3433649c9 100644--- a/tests/unit/pipelex/system/test_pipelex_check_initialization.py+++ b/tests/unit/pipelex/system/test_pipelex_check_initialization.py@@ -27,7 +27,7 @@ class TestPipelexCheckInitialization:inference_dir = config_dir / "inference"inference_dir.mkdir(parents=True)if config_files:- (config_dir / CONFIG_NAME).write_text("[pipelex]\n")+ (config_dir / CONFIG_NAME).write_text("[runtime]\n")(config_dir / PLXT_CONFIG_NAME).write_text("[plxt]\n")return config_dirdiff --git a/tests/unit/pipelex/test_runtime_boot_config_dir.py b/tests/unit/pipelex/test_runtime_boot_config_dir.pyindex 559edfb44..e8976155d 100644--- a/tests/unit/pipelex/test_runtime_boot_config_dir.py+++ b/tests/unit/pipelex/test_runtime_boot_config_dir.py@@ -31,7 +31,7 @@ def _test_integration_mode() -> IntegrationMode:class TestConfigDirReachesTheConfigLoader:def test_an_explicit_config_dir_is_what_gets_loaded(self, tmp_path: Path) -> None:# WARNING is quieter than the INFO default, never noisier — this boot configures logging.- (tmp_path / "pipelex.toml").write_text('[pipelex.log_config]\ndefault_log_level = "WARNING"\n')+ (tmp_path / "pipelex.toml").write_text('[runtime.log]\ndefault_log_level = "WARNING"\n')Pipelex.teardown_if_needed()try:@@ -45,7 +45,7 @@ class TestConfigDirReachesTheConfigLoader:config_dir=tmp_path,)try:- assert get_config().pipelex.log_config.default_log_level == "WARNING"+ assert get_config().runtime.log.default_log_level == "WARNING"finally:runtime_boot.teardown()finally:diff --git a/tests/unit/pipelex/test_runtime_boot_releases_boot_scoped_state.py b/tests/unit/pipelex/test_runtime_boot_releases_boot_scoped_state.pynew file mode 100644index 000000000..1f20a2103--- /dev/null+++ b/tests/unit/pipelex/test_runtime_boot_releases_boot_scoped_state.py@@ -0,0 +1,72 @@+"""Boot-scoped hub state must not outlive the boot that set it.++`is_dry_run_forced` and `boot_orchestrator` are boot *arguments* parked on the hub, not configuration:+nothing reloads them, and `setup()` writes both unconditionally on the way up. So the only thing that+can clear them is teardown — and teardown does not discard the hub itself (`set_runtime_hub` overwrites+a `ClassVar` with no reset counterpart, so `get_runtime_hub()` keeps handing out the torn-down hub).+Without an explicit release, a process that has torn down still answers `is_dry_run_forced()` with the+previous boot's keyless verdict and `get_boot_orchestrator()` with the previous boot's orchestrator,+while no boot is active at all.++The isolated-execution probe is the third piece of that state and the one written *conditionally* —+only a boot-orchestrator plugin claiming `HubSlot.ISOLATED_EXECUTION_PROBE` installs one — so a boot+that claims nothing inherits rather than overwrites, and only the release stands between a torn-down+Temporal worker's replay/activity split and the next thing to ask `is_in_isolated_execution()`.+"""++from pipelex.pipelex import Pipelex+from pipelex.runtime_hub import get_boot_orchestrator, get_runtime_hub, is_dry_run_forced, is_in_isolated_execution+from pipelex.system.runtime import IntegrationMode, runtime_manager+++class TestTeardownReleasesBootScopedHubState:+ def test_teardown_clears_the_flags_a_boot_set(self) -> None:+ Pipelex.teardown_if_needed()+ try:+ Pipelex.make(+ integration_mode=IntegrationMode.CI if runtime_manager.is_ci_testing else IntegrationMode.PYTEST,+ needs_inference=False,+ )+ # A keyless boot is what sets `is_dry_run_forced`. The orchestrator is set by hand rather+ # than through `make(boot_orchestrator=...)`, which would need that plugin installed to get+ # past the unknown-name guard; what is under test is the release, not the guard.+ get_runtime_hub().set_boot_orchestrator(boot_orchestrator="temporal")+ assert is_dry_run_forced() is True, "the keyless boot did not force dry run — the premise is gone"++ Pipelex.teardown_if_needed()++ assert is_dry_run_forced() is False, (+ "teardown left `is_dry_run_forced` set — anything asking before the next boot re-establishes "+ "it is told every run is forced to DRY by a boot that no longer exists"+ )+ assert get_boot_orchestrator() is None, (+ "teardown left the orchestrator name on the hub — run-time code asking whether it owns the process would be answered by a dead boot"+ )+ finally:+ Pipelex.teardown_if_needed()++ def test_teardown_releases_the_isolated_execution_probe(self) -> None:+ """The probe a plugin installs is boot-scoped too, and it is installed conditionally.++ Set by hand rather than by claiming the slot, which would need the plugin installed; what is+ under test is the release, not the claim. `ReportingManager` reads the module-level accessor+ to decide whether a usage emission goes to the per-process log instead of the registered+ buffer, so a probe surviving its boot mis-routes usage attribution for whatever asks next.+ """+ Pipelex.teardown_if_needed()+ try:+ Pipelex.make(+ integration_mode=IntegrationMode.CI if runtime_manager.is_ci_testing else IntegrationMode.PYTEST,+ needs_inference=False,+ )+ get_runtime_hub().set_isolated_execution_probe(lambda: True)+ assert is_in_isolated_execution() is True, "the probe was not installed — the premise is gone"++ Pipelex.teardown_if_needed()++ assert is_in_isolated_execution() is False, (+ "teardown left the plugin's probe on the hub — a later caller is told it runs inside an "+ "isolated sub-execution of a boot that no longer exists"+ )+ finally:+ Pipelex.teardown_if_needed()diff --git a/tests/unit/pipelex/tools/test_class_registry_utils.py b/tests/unit/pipelex/tools/test_class_registry_utils.pyindex d4f0c7d25..b186ecd90 100644--- a/tests/unit/pipelex/tools/test_class_registry_utils.py+++ b/tests/unit/pipelex/tools/test_class_registry_utils.py@@ -45,7 +45,7 @@ class TestClassRegistryUtilsUnit:"""Unit test for registering classes from a folder using mocks."""# Mock get_config to return excluded_dirsmock_config = mocker.MagicMock()- mock_config.pipelex.scan_config.excluded_dirs = ["__pycache__", ".git"]+ mock_config.interpreter.scan.excluded_dirs = ["__pycache__", ".git"]mocker.patch("pipelex.system.registries.class_registry_utils.get_config", return_value=mock_config)# Mock the file finding and registrationdiff --git a/tests/unit/pipelex/tools/test_log_config_defaults.py b/tests/unit/pipelex/tools/test_log_config_defaults.pyindex 4d6e571c4..e56fe97a1 100644--- a/tests/unit/pipelex/tools/test_log_config_defaults.py+++ b/tests/unit/pipelex/tools/test_log_config_defaults.py@@ -62,7 +62,7 @@ class TestShippedConsoleTargets:with toml_path.open("rb") as toml_file:raw_config: dict[str, Any] = tomli.load(toml_file)- log_config_section = raw_config["pipelex"]["log_config"]+ log_config_section = raw_config["runtime"]["log"]log_target_raw = log_config_section.get("console_log_target")print_target_raw = log_config_section.get("console_print_target")diff --git a/tests/unit/pipelex/tools/test_log_idempotence.py b/tests/unit/pipelex/tools/test_log_idempotence.pyindex fe866a446..7ba9ddbc8 100644--- a/tests/unit/pipelex/tools/test_log_idempotence.py+++ b/tests/unit/pipelex/tools/test_log_idempotence.py@@ -31,7 +31,7 @@ def log_config() -> LogConfig:loader = ConfigLoader()config_dict = load_toml_from_path(loader.pipelex_root_dir / "pipelex.toml")- return LogConfig.model_validate(config_dict["pipelex"]["log_config"])+ return LogConfig.model_validate(config_dict["runtime"]["log"])@pytest.fixturediff --git a/wip/drift-contracts/dogfood-log.md b/wip/drift-contracts/dogfood-log.mdindex 671d4d492..6a42939bd 100644--- a/wip/drift-contracts/dogfood-log.md+++ b/wip/drift-contracts/dogfood-log.md@@ -100,3 +100,16 @@ The surviving finding is real and small: the table under "What a programmatic ca- **2026-08-15 · rogue-extra-headers guard · no contract opened, and one should have had a stake** — The change rewrote how `InferenceBackendLibrary.load` (`pipelex/cogt/model_backends/backend_library.py`) treats a per-model key of a backend TOML: an unknown key used to become an outbound HTTP header unconditionally, and now it must be header-shaped or the load fails. That is a user-facing configuration rule — it decides what a line in `.pipelex/inference/backends/*.toml` means and what error the author gets — and it was undocumented until this change wrote it into `docs/configuration/config-technical/inference-backend-config.md`. No contract fired: `backend_library.py`, `model_spec_factory.py` and the new `model_spec_keys.py` are in no contract's trigger set (`config-docs` watches the `ConfigModel` tree, `pipelex.toml`, and a handful of named submodel modules — the shape of `pipelex.toml`, not the shape of the backend files it points at).Same finding as the 2026-08-14 `config-docs` scope-miss, from the other direction. There, the doc lived outside the review target; here, the code lives outside the trigger set. Both come from the same gap between what the contract says and what it watches: its `description` says *user-facing configuration docs must track the config model and the shipped defaults*, and the backend TOMLs **are** shipped defaults — `pipelex/kit/configs/inference/backends/*.toml` ships in the package, mirrored by the `.pipelex/inference/backends/*.toml` overrides — yet the only shipped default in the trigger set is `pipelex/pipelex.toml`. So the description promises more than the triggers deliver, and it is the backend TOMLs, the configuration surface a user edits most and the only one that sends strings to third parties, that fall through. They are a second config schema, defined by `InferenceModelSpecBlueprint` / `InferenceBackendBlueprint` and the loader's reclassification rules, and nothing declares that schema owes anything to `docs/configuration/`. Recorded, not acted on, per the pilot's bias: the candidate is a trigger for `pipelex/cogt/model_backends/{backend_library,model_spec_factory,backend_factory,model_spec_keys}.py` (and, by the description's own words, the shipped backend TOMLs under `pipelex/kit/configs/inference/`) on `config-docs`, or a sibling `backend-config-docs` contract with `inference-backend-config.md` as its review target — small either way, and worth deciding at verdict time together with the scope-miss above rather than one at a time.++- **2026-08-16 · config-docs · real-catch, from the verify command rather than from the review** — Merging `dev` into `feature/Reshape` reopened all three contracts below at once, since the merge is the first time the configuration reshape and PR #1114's boot tolerance sit in one tree. The documentation review itself came out clean, and honestly so: `docs/configuration/index.md`'s four-main-sections claim was re-derived by enumerating the top-level tables of `pipelex/pipelex.toml`, every TOML section header quoted anywhere under `docs/configuration/` was checked against that file, and a grep for every spelling the reshape retired returns nothing across the directory. What was stale was **code**, and the contract's `make tb` verify command is what said so: three tests in `test_boot_tolerance.py` build a synthetic ledger that renames a key under `[pipelex.log_config]`, a table the reshape had just deleted, so the replay produced a document `PipelexConfig` refuses with *extra forbidden field 'pipelex'* — and two of the three then asserted on `config.pipelex.log_config`, an attribute that no longer exists. Fixed to `[runtime.log]` in the same change.+ The transferable part is what the verifier is *for*. A drift contract's stated job is to make a human read a document, and the review here would have passed with an honest "nothing stale" while the branch was red. `config-docs` is the one contract in the manifest carrying a verify command, and it is carrying it for exactly this: the contract watches the config model, and the config model is a thing whose staleness shows up in a boot rather than in a page. A verify command is not a formality attached to the ack — it is the half of the obligation that checks the artifact the prose is *about*, which is the same lesson the 2026-08-14 entry above draws about checking claims against reality instead of against another document. Worth carrying into the verdict discussion: the two contracts below have no verify command, and it is not obvious they should — `make check-hub-layering` already runs in `agent-check`, so wiring it here would only move an existing gate earlier.++- **2026-08-16 · cli-docs · clean-pass** — Same merge. The reshape half of the trigger diff moves no flag, output stream, format or exit code: it rewrites the configuration addresses the CLI reads (`runtime.log` in the agent-CLI override map, `interpreter.pipeline_execution` in both run cores and the graph command, `interpreter.scan` in the fix sandbox) and one docstring naming the plugin denylist. Grepped both review targets for every retired address and root table and got no hits at all, which is the structural reason this contract keeps passing on reshape commits: `docs/tools/cli/` and the agent-CLI contract doc document commands and their two output streams, not configuration keys, so a change that only moves keys cannot make them stale. PR #1114's half is documented where it put it, in the new `migrate.md`, which came through the merge untouched.++- **2026-08-16 · hub-layering-convention · clean-pass** — Same merge, and the one contract whose trigger diff genuinely touches its target's subject matter: `runtime_hub` gained `set_boot_orchestrator` / `get_boot_orchestrator` from the reshape and had `setup_config` rerouted through `load_config_validated` by #1114. Re-derived the accessor partition table from the module — every public module-level function AST-listed out of `pipelex/runtime_hub.py`, each checked against the table — and it is complete, boot-orchestrator row included, because the reshape branch had already added it. Re-derived the "every top-level package accounted for" claim the same way, by enumerating the packages under `pipelex/` rather than reading the sentence: each is named either in the kernel-layer declaration and its follow-on paragraph or in the list of what `runtime_hub` may not import. The `reset_config` → `reset_boot_state` rename reaches no sentence, since the page names accessors and that is not one. Nothing stale.++- **2026-08-17 · config-docs · clean-pass, and the first read of the review list the contract just grew** — Merging `dev` into `feature/Reshape` again, one round later. No trigger file moved at all: what opened the contract is **its own definition**, which arrived from `dev` carrying the migration ledgers and the two validator modules as new review targets. `dev` had already recorded a first read of those targets — on `dev`'s tree, where `pipelex-config` has no `@2` entry — so the read that matters is this one, on the branch that carries the reshape. The question the new targets exist to ask was answered from the code at all four live sites: diffing `configs.py` and `config_cogt.py` across the whole branch shows the reshape changed exactly one thing in any of the four validators, the error-message string `dry_run_config.image_urls` → `inference.dry_run.image_urls`, with the non-empty rule untouched and the other three bodies unchanged. Then the enums the three mapping validators gate on, since a removed member is a narrowing no annotation records: `Quality`, `ReasoningEffort` and `AgentTarget` are member-identical between the branch base and HEAD. So no `unsafe` entry with `declared_narrowed_paths` is owed, matching both live ledger entries being `safe`.+ The transferable part is that **a contract-definition change is a review obligation in its own right, and it lands on whichever branch reads it first**. The previous entry's lesson was that the verify command checks the artifact the prose is about; this one is the same idea one level up — widening a review list creates a debt that each branch pays against its own tree, and `dev`'s payment does not discharge the branch's. It cost one targeted diff and one enum comparison, which is proportionate. Worth noting for the verdict: this is the *second* consecutive `config-docs` opening on this branch where `docs/configuration/` itself was clean, and the value came entirely from the non-doc targets — the review list widening is earning its place, the documentation half is not.++- **2026-08-17 · cli-docs · clean-pass** — Same merge. The trigger diff is PR #1115's `would_write` tri-state in `agent_output.py` and `error_handlers.py` plus the doctor's remaining Rich escaping, and both review targets arrived **rewritten in the same change** — which is the interesting case, because reading a freshly-updated doc against the change that updated it is exactly the two-documents-agreeing trap. So every claim was re-derived from the code instead: the field set `agent-cli.md` enumerates for the migration object is exactly what `MigrationErrorBlock` declares under `extra="forbid"`, its "present when and only when the scan found something" holds because the builder returns `None` on an empty or failed scan, and `would_write` is `any(plan.did_change)`. Both enumerated finding sets came from the enums rather than the table. The one claim worth the trouble was `migrate.md`'s quantified *nothing will ever suggest deleting an out-of-date file and starting over* — a set claim that could only have rotted by omission, and it survives, because the new false branch points at the dry run while the start-over line stayed on the no-block path where the file is wrong rather than old.+ Verdict signal: this contract now has a run of clean-passes, but the mechanism differs each time and the last two were not free — a doc that arrives pre-updated still needs its claims checked against the code, and that is not something a derived check could do.diff --git a/wip/reshape/pr-1111-review-notes.md b/wip/reshape/pr-1111-review-notes.mdnew file mode 100644index 000000000..483fdac90--- /dev/null+++ b/wip/reshape/pr-1111-review-notes.md@@ -0,0 +1,110 @@+# PR #1111 review — deferred items++Items surfaced while triaging the review threads on PR #1111 (configuration reshape, `pipelex-config@2`) that were deliberately **not** acted on. Each needs a decision rather than a drive-by fix.++## 1. `pipe_func_config.timeout_seconds` names a config address that does not exist++**Reporter:** found by the sweep, not by a bot.+**File:** `pipelex/pipe_operators/func/pipe_func_execution_transport.py:38`++The docstring reads:++> `timeout_seconds` is the PipeFunc kill-timeout that rides on the request. Callers pass the configured `pipe_func_config.timeout_seconds` (they live in plugins, outside core's import graph, so they can read the config without a cycle); it falls back to the module default otherwise.++`pipe_func_config` is a retired root, so on its face this belongs with the rest of the sweep. It was left alone because the mechanical correction would make things worse: core's `PipeFuncConfig` (`pipelex/system/configuration/pipe_func_config.py`) holds only `execution_mode`, and `[interpreter.pipe_func]` in `pipelex/pipelex.toml` holds only `execution_mode` too. There is no `timeout_seconds` anywhere in core. Rewriting the root to `interpreter.pipe_func.timeout_seconds` would assert a core address that does not exist, which is a worse failure than a stale one — a reader would go looking for a key they can never find.++The docstring itself says the callers "live in plugins, outside core's import graph", so the key is plugin-supplied.++**Open question:** does our Daytona plugin extend the `[interpreter.pipe_func]` table with its own `timeout_seconds`, or does it own a separate config root? If it extends the table, the fix is the mechanical one. If it owns a separate root, the sentence should name that root instead, or stop naming an address at all and just say the timeout is plugin-configured. Not answerable from open core.++**Thread:** none — this one was not reported; it surfaced from sweeping the class.++**Resolved at S7.** The open question was answered by reading the plugin: our Daytona plugin owns a separate root, `daytona.toml` → `pipe_func_timeout_seconds` on `config_daytona.py`, and does **not** extend `[interpreter.pipe_func]`, which still holds `execution_mode` and nothing else. So the mechanical correction would indeed have asserted an address no reader could find. The docstring now says the timeout is plugin-configured, names our Daytona plugin's key as one instance rather than as the contract, and stops naming a core address altogether.++## 2. Should `reset_boot_state` also release the isolated-execution probe?++**Reporter:** greptile (P1), on `pipelex/runtime_hub.py:183-185`.+**Thread:** https://github.com/Pipelex/pipelex/pull/1111 — replied and resolved as a false positive.++Greptile claimed that a probe installed by a boot-orchestrator plugin survives teardown on the reusable runtime hub, so a later in-process boot routes usage events through the runner fallback instead of its registered event-log context, corrupting usage attribution. That specific failure cannot occur, for two independent reasons:++- The hub is not reused across boots. `RuntimeBoot.__init__` constructs a fresh `RuntimeHub()` and installs it (`pipelex/runtime_boot.py:184-185`), and every boot goes through construction, so a later boot always starts from the `_never_in_isolated_execution` default. The plugin registrar is rebuilt per boot too, so the slot claim is re-derived rather than inherited.+- In the one window that does exist — post-teardown, pre-next-boot, where `get_runtime_hub()` still hands out the dead hub — the probe's only production reader (`pipelex/reporting/reporting_manager.py:199`) first consults `_event_log_contexts`, which `ReportingManager.teardown()` clears. With no registered context the emission takes the runner fallback anyway, which is the same branch a stale probe would have forced.++**What is still open** is a hygiene question, not a bug. After the earlier follow-up commit ("Review follow-up: stale config paths, and boot-scoped state that outlived its boot"), `reset_boot_state` releases `_config`, `_is_dry_run_forced` and `_boot_orchestrator`, and its docstring says it releases "the process-global state a boot established". The probe is now the one boot-established hub attribute left out.++The argument for adding `self._isolated_execution_probe = _never_in_isolated_execution` is that consistency: a reader auditing the method should not have to re-derive why one attribute is absent.++The argument against is that the docstring's justification would stop being true. It says the flags are boot arguments that "`setup()` writes both unconditionally on the way up" — and that is precisely the difference. The probe is written *conditionally*, only when an orchestrator plugin claims the slot (`pipelex/runtime_boot.py:596-598`), and unlike `is_dry_run_forced()` and `get_boot_orchestrator()` it has no module-level accessor that outside code calls between boots. Adding the line means also rewriting the docstring to explain a release that guards against a hub-reuse pattern the code forbids.++**Decision needed:** add the line and generalise the docstring, or leave it out and add one sentence to the docstring saying explicitly why the probe is not in the list. Doing nothing leaves the asymmetry unexplained, which is the weakest of the three.++**Resolved at S7 — the line was added, and the docstring says why.** Half of the argument against did not survive checking: the probe **does** have a module-level accessor that outside code calls, `is_in_isolated_execution`, and `ReportingManager` is what reads it. What is left of the argument — that the probe is written *conditionally*, only when a plugin claims `HubSlot.ISOLATED_EXECUTION_PROBE` in `RuntimeBoot.setup` — turns out to argue the other way: a boot that claims nothing *inherits* rather than overwrites, so the release is what a fresh `RuntimeHub` per boot would otherwise be the only thing providing. The docstring now records both, and a second test in `tests/unit/pipelex/test_runtime_boot_releases_boot_scoped_state.py` pins the release. The greptile finding itself stays a false positive: the failure it described still cannot happen, for the two reasons above.++## 3. Nothing mechanically guards the "stale config path in a string" class++**Reporter:** none — an observation from doing this triage.++This one bug class has now produced three rounds of fixes on this single PR:++- the original reshape commit moved the keys;+- the first review round swept `plugins.disabled` → `runtime.plugins.disabled` and three exception docstrings;+- this round swept the `*_config` roots that the previous round left in the message bodies three lines below those same docstrings, plus roughly twice as many more sites across the plugin seam, the reporting and dry-run paths, the reasoning-controls doc page, and several test docstrings.++Every one of these is invisible to pyright, mypy, ruff and the whole test suite, because a config address inside a string literal, a comment or a Markdown sentence is just text. The migration ledger already knows, as data, every path that was retired and what it became (`pipelex/migration/ledgers/pipelex-config.toml` plus the `fingerprint@N` goldens). A check that greps source strings, comments and docs for a retired root and fails when one is named would therefore have the answer key already available — it would not need a hand-maintained list.++**Open question:** is that worth building? Points in favour: the ledger makes it nearly free to keep correct, it is exactly the kind of gate the repo already likes (`check-keyword-only`, `check-migration-schemas`, the drift contracts), and this class will recur on every future config reshape. Points against: it needs a real allowlist for the legitimate collisions — module filenames (`log_config.py`, `aws_config.py`, the per-provider `*_config.py`), genuine attributes (`deck.model_deck_config.is_model_fallback_enabled`), local variables that share the name (`storage_config = get_config().runtime.storage`), the migrator's own fixtures and goldens, and intentional historical prose in the changelog and the `# was [cogt]` markers. Get that allowlist wrong and the gate is noise.++**A fourth review round supplied the first measured false positive of the manual sweep, which is direct evidence for the allowlist half of that question.** The sweep had rewritten a sentence in `pipelex/system/data_inclusion_config.py` that names the graph rendering *module* names `mermaid_config` / `reactflow_config` — modules `pipelex/graph/graph_config.py` still imports and that the reshape never touched — into the field names `mermaid` / `reactflow`. The tell was that the identical sentence in `docs/contribute/hub-layering.md` had been swept correctly, so source and docs had silently diverged. Reverted in that round. A mechanical gate would have flagged the same sentence, so the module-filename allowlist entry is not hypothetical: it is required on day one, and it has to cover a module name appearing in prose, not just an import statement.++Designing it is a decision, not a review fix, so it is recorded here rather than attempted.++## 4. Our Temporal plugin reads `boot_orchestrator` from a field that no longer exists++**Reporter:** found by the fourth review round while checking what depends on the demoted field.+**File:** `pipelex-server/temporal/pipelex_temporal/temporal_activation.py:19` (sibling repo, not this one).++`boot_orchestrator` stopped being a config field and became a boot argument plus boot-scoped hub state. That site still reads `get_config().plugins.boot_orchestrator`.++**This is the one downstream site in the whole cross-repo sweep whose fix is not a path rename**, and it is worth calling out because a mechanical `plugins.` → `runtime.plugins.` pass produces the wrong answer here. The field was deleted, not moved; the correct fix is `from pipelex.runtime_hub import get_boot_orchestrator` and calling it. Every other downstream hit found so far — `content_generator_in_workflow.py`, `act_pipe_func.py`, the tracing tests, the `pipelex-api` / cookbook / cocode TOMLs, `pipelex-mistral-workflows` — is a straight rename.++The one piece of good news is that it fails loudly rather than silently: `plugins` is not a root field on `PipelexConfig` any more, so the read raises `AttributeError` at import-activation time instead of quietly returning a default.++**Action:** this belongs in the release-gated cross-repo sweep, flagged as manual. There is now an in-repo test pinning the write end of that seam (`tests/integration/pipelex/system/test_boot_orchestrator_validation.py` asserts `get_boot_orchestrator()` returns the accepted name), so the reader has something to trust.++## 5. A backend TOML matches the `pipelex-config` tier glob and is claimed by nothing++**Reporter:** found by the fourth review round while checking surface claiming.+**File:** `.pipelex/inference/backends/pipelex_gateway.toml`.++It matches the `pipelex-config` surface's tier glob `pipelex_*.toml`, but it is a backend definition, not a config root. `pipelex_service.toml` is safe from the same glob for a reason that does not apply here — filenames claim before globs, and it is a `base_file` for its own surface — whereas nothing claims this one first.++Nothing on this branch is affected: `files_by_surface_in_directory` does not exist here, so no directory walk consults the glob yet.++**Action:** this is a concrete, named specimen for S6's `pipelex migrate` directory walk. Whatever S6 builds for the walk should be tested against this exact file rather than a synthetic one.++## 6. `introduced_in` is a forward-written version with no validator behind it++**Reporter:** found by the fourth review round.+**File:** `pipelex/migration/ledgers/pipelex-config.toml`.++The `pipelex-config@2` entry declares `introduced_in = "0.46.0"` while `pyproject.toml` is on `0.45.0`. That is deliberate — the entry ships in a future release — and it is consistent with the changelog's forward-written `pipelex migrate` line, which Louis already ruled to keep.++The point worth recording is that **nothing checks it**. `MigrationEntry.introduced_in`, in `pipelex/migration/ledger.py`, is typed as a bare `str`, so any value parses, and no gate compares it to the package version at any point.++**Action:** re-check this at release time. If the release lands on a number other than `0.46.0`, the field is silently wrong. A cheap release-time assertion (the head entry's `introduced_in` must equal the version being cut, or be unreleased) would close it permanently, but that is a decision for the release session, not this PR.++## 7. The committed error pages under `docs/errors/` are gated by nothing++**Reporter:** found by the fourth review round — `docs/errors/core-unconditional-plugin-disabled-error.md` had shipped stale.++The commit "Review follow-up: the rest of the retired config roots, in strings and prose" added double-backticks to the `CoreUnconditionalPluginDisabledError` docstring. The generated page kept the un-backticked sentence, through three review rounds and a green full suite.++Nothing catches it, and the two halves of the generated-error-docs system are gated asymmetrically:++- the identity snapshot (`tests/data/errors/error_identity.txt`, `make gei`) has a real gate — `tests/unit/pipelex/errors/test_error_identity_snapshot.py` compares the committed file to a fresh generation and fails on drift;+- the pages (`docs/errors/`, `make gep`) have none. Every test in `tests/unit/pipelex/errors/test_error_pages_generator.py` writes to `tmp_path`, and `make docs-check` *runs* the generator as a build dependency — so it rewrites the pages in the working tree, builds green, and never compares them against what is committed.++The consequence is broader than a forgotten new class: **editing the docstring of an existing error class silently leaves its committed page stale**, and no gate anywhere — lint, full test suite, or CI — will say so. The page was regenerated in the fourth round, but the gap remains.++**Open question:** add a snapshot-style test for the pages, mirroring the identity snapshot (generate to a temp dir, compare against `docs/errors/`, fail on drift)? The complication is the `<!-- pipelex:authored -->` marker: pages a maintainer has claimed are preserved across runs, so the comparison has to skip them, and the test would need to encode that rule rather than compare the directory wholesale.diff --git a/wip/reshape/reshape-map.html b/wip/reshape/reshape-map.htmlnew file mode 100644index 000000000..2cccd4725--- /dev/null+++ b/wip/reshape/reshape-map.html@@ -0,0 +1,954 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>The Configuration Reshape</title>+<style>+:root {+ --paper: #f6f7f8;+ --surface: #ffffff;+ --sunken: #eef1f3;+ --ink: #141a20;+ --ink-soft: #5a6672;+ --ink-faint: #8592a0;+ --rule: #dce1e6;+ --rule-strong: #c3ccd4;++ --runtime: #0d6a78;+ --inference: #9c5a0c;+ --interpreter: #4a4bab;+ --kit: #5d7080;+ --gone: #a8323f;++ --runtime-wash: rgba(13, 106, 120, 0.10);+ --inference-wash: rgba(156, 90, 12, 0.10);+ --interpreter-wash: rgba(74, 75, 171, 0.10);+ --kit-wash: rgba(93, 112, 128, 0.10);+ --gone-wash: rgba(168, 50, 63, 0.10);++ --ribbon-op: 0.42;++ --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", "DejaVu Sans Mono", Consolas, monospace;+ --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;+}++@media (prefers-color-scheme: dark) {+ :root:not([data-theme="light"]) {+ --paper: #0f1317;+ --surface: #161c22;+ --sunken: #1b232a;+ --ink: #e5eaee;+ --ink-soft: #97a4b0;+ --ink-faint: #6d7c89;+ --rule: #262f38;+ --rule-strong: #35414c;++ --runtime: #3fb8c8;+ --inference: #e2a24c;+ --interpreter: #9295ec;+ --kit: #94a5b4;+ --gone: #f0737f;++ --runtime-wash: rgba(63, 184, 200, 0.13);+ --inference-wash: rgba(226, 162, 76, 0.13);+ --interpreter-wash: rgba(146, 149, 236, 0.13);+ --kit-wash: rgba(148, 165, 180, 0.13);+ --gone-wash: rgba(240, 115, 127, 0.13);++ --ribbon-op: 0.36;+ }+}++:root[data-theme="dark"] {+ --paper: #0f1317;+ --surface: #161c22;+ --sunken: #1b232a;+ --ink: #e5eaee;+ --ink-soft: #97a4b0;+ --ink-faint: #6d7c89;+ --rule: #262f38;+ --rule-strong: #35414c;++ --runtime: #3fb8c8;+ --inference: #e2a24c;+ --interpreter: #9295ec;+ --kit: #94a5b4;+ --gone: #f0737f;++ --runtime-wash: rgba(63, 184, 200, 0.13);+ --inference-wash: rgba(226, 162, 76, 0.13);+ --interpreter-wash: rgba(146, 149, 236, 0.13);+ --kit-wash: rgba(148, 165, 180, 0.13);+ --gone-wash: rgba(240, 115, 127, 0.13);++ --ribbon-op: 0.36;+}++* { box-sizing: border-box; }++body {+ margin: 0;+ background: var(--paper);+ color: var(--ink);+ font-family: var(--serif);+ font-size: 17px;+ line-height: 1.62;+ -webkit-font-smoothing: antialiased;+}++.wrap {+ max-width: 1180px;+ margin: 0 auto;+ padding: 0 28px 120px;+}++.col {+ max-width: 68ch;+}++p { margin: 0 0 1.05em; }+p + p { margin-top: -0.15em; }++a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }+a:focus-visible, .legend-item:focus-visible { outline: 2px solid var(--interpreter); outline-offset: 3px; }++code, .mono { font-family: var(--mono); }++code {+ font-size: 0.86em;+ background: var(--sunken);+ padding: 0.1em 0.36em;+ border-radius: 2px;+ white-space: nowrap;+}++/* ---------- masthead ---------- */++.masthead {+ border-bottom: 1px solid var(--rule-strong);+ padding: 64px 0 34px;+ margin-bottom: 52px;+}++.eyebrow {+ font-family: var(--mono);+ font-size: 11.5px;+ letter-spacing: 0.14em;+ text-transform: uppercase;+ color: var(--ink-faint);+ margin: 0 0 20px;+}++h1 {+ font-family: var(--mono);+ font-size: clamp(30px, 5.4vw, 50px);+ font-weight: 600;+ letter-spacing: -0.028em;+ line-height: 1.05;+ margin: 0 0 22px;+ text-wrap: balance;+}++.standfirst {+ font-size: 20px;+ line-height: 1.5;+ color: var(--ink-soft);+ max-width: 60ch;+ margin: 0 0 30px;+}++.meta {+ display: flex;+ flex-wrap: wrap;+ gap: 8px 26px;+ font-family: var(--mono);+ font-size: 12px;+ color: var(--ink-faint);+}+.meta b { font-weight: 600; color: var(--ink-soft); }++/* ---------- sections ---------- */++section { margin: 0 0 76px; }++h2 {+ font-family: var(--mono);+ font-size: 13px;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ color: var(--ink-soft);+ margin: 0 0 6px;+ padding-bottom: 10px;+ border-bottom: 1px solid var(--rule);+}++h3 {+ font-family: var(--mono);+ font-size: 19px;+ font-weight: 600;+ letter-spacing: -0.015em;+ margin: 30px 0 12px;+ text-wrap: balance;+}++h2 + h3 { margin-top: 24px; }++/* ---------- figures ---------- */++figure {+ margin: 34px 0 0;+ padding: 0;+}++.fig-frame {+ background: var(--surface);+ border: 1px solid var(--rule);+ border-radius: 3px;+ padding: 20px 18px 12px;+ overflow-x: auto;+}++figure svg {+ display: block;+ width: 100%;+ height: auto;+}++figcaption {+ font-size: 14.5px;+ line-height: 1.55;+ color: var(--ink-soft);+ margin-top: 14px;+ max-width: 78ch;+}+figcaption b { color: var(--ink); font-weight: 600; }++.svg-title { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; }+.svg-node { font-family: var(--mono); font-size: 14px; font-weight: 600; }+.svg-sub { font-family: var(--mono); font-size: 11px; }+.svg-lab { font-family: var(--mono); font-size: 11px; }+.rib-label {+ font-family: var(--mono);+ font-size: 11px;+ font-weight: 600;+ paint-order: stroke;+ stroke: var(--surface);+ stroke-width: 3.5px;+ stroke-linejoin: round;+}++.c-runtime { color: var(--runtime); }+.c-inference { color: var(--inference); }+.c-interpreter { color: var(--interpreter); }+.c-kit { color: var(--kit); }+.c-gone { color: var(--gone); }++.f-runtime { fill: var(--runtime); }+.f-inference { fill: var(--inference); }+.f-interpreter { fill: var(--interpreter); }+.f-kit { fill: var(--kit); }+.f-gone { fill: var(--gone); }+.f-ink { fill: var(--ink); }+.f-soft { fill: var(--ink-soft); }+.f-faint { fill: var(--ink-faint); }+.f-surface { fill: var(--surface); }++.s-ink { stroke: var(--ink); }+.s-soft { stroke: var(--ink-soft); }+.s-rule { stroke: var(--rule-strong); }+.s-gone { stroke: var(--gone); }++.ribbon { opacity: var(--ribbon-op); }++/* ---------- legend ---------- */++.legend {+ display: flex;+ flex-wrap: wrap;+ gap: 6px 22px;+ margin: 18px 0 0;+ padding: 0;+ list-style: none;+ font-family: var(--mono);+ font-size: 12px;+ color: var(--ink-soft);+}+.legend li { display: flex; align-items: center; gap: 8px; }+.swatch { width: 11px; height: 11px; border-radius: 2px; flex: none; }++/* ---------- tables ---------- */++.table-scroll { overflow-x: auto; margin-top: 26px; }++table {+ border-collapse: collapse;+ width: 100%;+ min-width: 660px;+ font-size: 14px;+}++th {+ font-family: var(--mono);+ font-size: 11px;+ font-weight: 600;+ letter-spacing: 0.1em;+ text-transform: uppercase;+ color: var(--ink-faint);+ text-align: left;+ padding: 0 14px 9px 0;+ border-bottom: 1px solid var(--rule-strong);+ white-space: nowrap;+}++td {+ padding: 9px 14px 9px 0;+ border-bottom: 1px solid var(--rule);+ vertical-align: top;+}++tbody tr:last-child td { border-bottom: 1px solid var(--rule-strong); }++.addr { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }+.addr-old { color: var(--ink-soft); }+.note { font-size: 13px; color: var(--ink-soft); font-family: var(--serif); }++.grp td {+ padding-top: 22px;+ border-bottom: none;+ font-family: var(--mono);+ font-size: 11px;+ letter-spacing: 0.1em;+ text-transform: uppercase;+ color: var(--ink-faint);+}+tbody tr.grp:first-child td { padding-top: 8px; }++.tag {+ display: inline-block;+ font-family: var(--mono);+ font-size: 10.5px;+ font-weight: 600;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ padding: 2px 7px;+ border-radius: 2px;+ white-space: nowrap;+}+.tag-runtime { color: var(--runtime); background: var(--runtime-wash); }+.tag-inference { color: var(--inference); background: var(--inference-wash); }+.tag-interpreter { color: var(--interpreter); background: var(--interpreter-wash); }+.tag-kit { color: var(--kit); background: var(--kit-wash); }+.tag-gone { color: var(--gone); background: var(--gone-wash); }++/* ---------- panels ---------- */++.panel {+ background: var(--surface);+ border: 1px solid var(--rule);+ border-radius: 3px;+ padding: 20px 22px;+ margin-top: 26px;+}++.panel h4 {+ font-family: var(--mono);+ font-size: 12px;+ font-weight: 600;+ letter-spacing: 0.1em;+ text-transform: uppercase;+ color: var(--ink-faint);+ margin: 0 0 10px;+}++.panel p:last-child { margin-bottom: 0; }++.rail {+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));+ gap: 1px;+ background: var(--rule);+ border: 1px solid var(--rule);+ border-radius: 3px;+ margin-top: 26px;+ overflow: hidden;+}++.rail > div {+ background: var(--surface);+ padding: 18px 20px;+}++.rail dt {+ font-family: var(--mono);+ font-size: 12.5px;+ font-weight: 600;+ margin-bottom: 8px;+}++.rail dd {+ margin: 0;+ font-size: 14.5px;+ line-height: 1.5;+ color: var(--ink-soft);+}++.count {+ font-family: var(--mono);+ font-size: 34px;+ font-weight: 600;+ letter-spacing: -0.03em;+ line-height: 1;+ display: block;+ margin-bottom: 10px;+}++ul.plain { padding-left: 1.15em; margin: 0 0 1em; }+ul.plain li { margin-bottom: 0.4em; }++.ops {+ font-family: var(--mono);+ font-size: 12.5px;+ line-height: 1.85;+ background: var(--surface);+ border: 1px solid var(--rule);+ border-radius: 3px;+ padding: 18px 20px;+ margin-top: 26px;+ overflow-x: auto;+ white-space: pre;+ color: var(--ink-soft);+}+.ops b { color: var(--ink); font-weight: 600; }++.footer {+ border-top: 1px solid var(--rule-strong);+ padding-top: 22px;+ margin-top: 84px;+ font-family: var(--mono);+ font-size: 12px;+ color: var(--ink-faint);+ line-height: 1.8;+}++@media (max-width: 640px) {+ body { font-size: 16px; }+ .wrap { padding: 0 18px 80px; }+ .masthead { padding-top: 40px; }+}++@media (prefers-reduced-motion: no-preference) {+ html { scroll-behavior: smooth; }+}+</style>+</head>+<body>+<div class="wrap">++<header class="masthead">+ <p class="eyebrow">Migrator v3 · Lane R · session S4</p>+ <h1>The Configuration Reshape</h1>+ <p class="standfirst">Twenty-six things live at the root of <code>PipelexConfig</code> today under three different organizing principles. This is what they become, why, and in what order the migration touches them.</p>+ <div class="meta">+ <span><b>ledger entry</b> pipelex-config@2</span>+ <span><b>base</b> dev @ 052b9df06</span>+ <span><b>ops</b> 37</span>+ <span><b>normative source</b> <workspace-root>/wip/migrator-3/reshape.md</span>+ </div>+</header>++<section class="col">+ <h2>What this changes</h2>+ <h3>One address change, no value changes</h3>+ <p>The reshape rewrites <code>PipelexConfig</code> and the TOML it validates so the root carries <em>one</em> scheme — the layers the code already has — instead of the five unrelated entries it carries now. Every setting keeps its value. Only its address moves.</p>+ <p>The axis is not invented for the occasion. <code>docs/contribute/hub-layering.md</code> already names a <strong>kernel layer</strong> (brokered by <code>runtime_hub</code>) and an <strong>interpreter layer</strong> (brokered by <code>interpreter_hub</code>), and <code>pipelex/kernel/</code> already holds operator-execution semantics callable on a <code>RuntimeBoot</code>-only process. The configuration is the last surface that still says “one blob” while the code says two layers plus an inference seam.</p>+ <p>It ships as a Migrator ledger entry, so every user’s <code>~/.pipelex/pipelex.toml</code> migrates in place rather than breaking. The <code>_config</code> suffix is dropped in the same pass at every depth, because each read site is touched exactly once either way.</p>+</section>++<section>+ <h2>The map</h2>++ <div class="col">+ <h3>Where all 26 root entries go</h3>+ <p>Ribbon width is the number of configuration sections carried. The left column is in the order the fields actually appear on <code>PipelexConfig</code>; the crossings are the finding, not a drawing artifact.</p>+ </div>++ <figure>+ <div class="fig-frame">+ <svg viewBox="0 0 1120 650" role="img" aria-label="Sankey diagram: session_id, cogt, pipelex, plugins and migration at the config root redistribute into runtime, inference, interpreter, kit, and three deletions.">+ <text class="svg-title f-faint" x="20" y="26">TODAY — PipelexConfig root</text>+ <text class="svg-title f-faint" x="930" y="26">AFTER — pipelex-config@2</text>++ <!-- ribbons -->+ <g class="ribbon">+ <path class="f-gone" d="M210,48 C555,48 555,550 900,550 L900,568 C555,568 555,66 210,66 Z"/>+ <path class="f-inference" d="M210,88 C555,88 555,214 900,214 L900,322 C555,322 555,196 210,196 Z"/>+ <path class="f-runtime" d="M210,218 C555,218 555,48 900,48 L900,174 C555,174 555,344 210,344 Z"/>+ <path class="f-inference" d="M210,344 C555,344 555,322 900,322 L900,358 C555,358 555,380 210,380 Z"/>+ <path class="f-interpreter" d="M210,380 C555,380 555,380 900,380 L900,488 C555,488 555,488 210,488 Z"/>+ <path class="f-kit" d="M210,488 C555,488 555,510 900,510 L900,528 C555,528 555,506 210,506 Z"/>+ <path class="f-runtime" d="M210,528 C555,528 555,174 900,174 L900,192 C555,192 555,546 210,546 Z"/>+ <path class="f-gone" d="M210,546 C555,546 555,568 900,568 L900,586 C555,586 555,564 210,564 Z"/>+ <path class="f-gone" d="M210,586 C555,586 555,586 900,586 L900,604 C555,604 555,604 210,604 Z"/>+ </g>++ <!-- left nodes -->+ <rect class="f-gone" x="190" y="48" width="20" height="18"/>+ <rect class="f-inference" x="190" y="88" width="20" height="108"/>+ <rect class="f-ink" x="190" y="218" width="20" height="288"/>+ <rect class="f-runtime" x="190" y="528" width="20" height="18"/>+ <rect class="f-gone" x="190" y="546" width="20" height="18"/>+ <rect class="f-gone" x="190" y="586" width="20" height="18"/>++ <text class="svg-node f-ink" x="182" y="53" text-anchor="end">session_id</text>+ <text class="svg-sub f-faint" x="182" y="67" text-anchor="end">root scalar</text>++ <text class="svg-node f-ink" x="182" y="138" text-anchor="end">[cogt]</text>+ <text class="svg-sub f-faint" x="182" y="153" text-anchor="end">6 sections · a codename</text>++ <text class="svg-node f-ink" x="182" y="356" text-anchor="end">[pipelex]</text>+ <text class="svg-sub f-faint" x="182" y="371" text-anchor="end">16 sections · a grab-bag</text>++ <text class="svg-node f-ink" x="182" y="542" text-anchor="end">[plugins]</text>+ <text class="svg-sub f-faint" x="182" y="557" text-anchor="end">2 keys</text>++ <text class="svg-node f-ink" x="182" y="597" text-anchor="end">[migration]</text>+ <text class="svg-sub f-faint" x="182" y="611" text-anchor="end">retiring</text>++ <!-- per-ribbon source labels -->+ <text class="rib-label f-gone" x="224" y="61">deleted</text>+ <text class="rib-label f-inference" x="224" y="146">6 → inference</text>+ <text class="rib-label f-runtime" x="224" y="285">7 → runtime</text>+ <text class="rib-label f-inference" x="224" y="366">2 → inference</text>+ <text class="rib-label f-interpreter" x="224" y="438">6 → interpreter</text>+ <text class="rib-label f-kit" x="224" y="501">1 → kit</text>+ <text class="rib-label f-runtime" x="224" y="541">disabled</text>+ <text class="rib-label f-gone" x="224" y="559">boot_orchestrator</text>+ <text class="rib-label f-gone" x="224" y="599">migration_maps</text>++ <!-- right nodes -->+ <rect class="f-runtime" x="900" y="48" width="20" height="144"/>+ <rect class="f-inference" x="900" y="214" width="20" height="144"/>+ <rect class="f-interpreter" x="900" y="380" width="20" height="108"/>+ <rect class="f-kit" x="900" y="510" width="20" height="18"/>+ <rect class="f-gone" x="900" y="550" width="20" height="54"/>++ <text class="svg-node f-runtime" x="932" y="114">[runtime]</text>+ <text class="svg-sub f-faint" x="932" y="129">kernel layer · 8</text>++ <text class="svg-node f-inference" x="932" y="281">[inference]</text>+ <text class="svg-sub f-faint" x="932" y="296">kernel layer, the seam · 8</text>++ <text class="svg-node f-interpreter" x="932" y="430">[interpreter]</text>+ <text class="svg-sub f-faint" x="932" y="445">interpreter layer · 6</text>++ <text class="svg-node f-kit" x="932" y="516">[kit]</text>+ <text class="svg-sub f-faint" x="932" y="531">dev tooling · 1</text>++ <text class="svg-node f-gone" x="932" y="573">deleted</text>+ <text class="svg-sub f-faint" x="932" y="588">no equivalent · 3</text>+ </svg>+ </div>+ <figcaption><b>The two long sweeps are the argument.</b> <code>session_id</code> sits first on the config root and travels to nothing; <code>plugins.disabled</code> sits second-to-last and belongs at the top with the rest of the kernel-layer infrastructure. And <code>[pipelex]</code> is not one thing — it is four groups that were never distinguished, which is why it fans into every destination on the board.</figcaption>+ </figure>++ <ul class="legend">+ <li><span class="swatch" style="background: var(--runtime)"></span> runtime — kernel-layer infrastructure</li>+ <li><span class="swatch" style="background: var(--inference)"></span> inference — the model seam</li>+ <li><span class="swatch" style="background: var(--interpreter)"></span> interpreter — method machinery</li>+ <li><span class="swatch" style="background: var(--kit)"></span> kit — dev tooling, neither layer</li>+ <li><span class="swatch" style="background: var(--gone)"></span> deleted</li>+ </ul>+</section>++<section>+ <h2>Why these three names</h2>++ <div class="col">+ <h3>The layer axis already exists in the code</h3>+ <p>Ruling R3 placed the four ambiguous sections by measuring which layer actually reads them, and the census settled every one. A read <em>downward</em> — the interpreter reading kernel configuration — is permitted, so it never forces a section upward.</p>+ </div>++ <figure>+ <div class="fig-frame">+ <svg viewBox="0 0 1120 360" role="img" aria-label="Layer diagram: the interpreter layer sits above the kernel layer, which contains runtime and inference. Downward reads are permitted; two upward reads are recorded inversions.">+ <!-- interpreter layer -->+ <rect class="f-interpreter" x="60" y="40" width="700" height="86" opacity="0.10" rx="3"/>+ <rect x="60" y="40" width="700" height="86" rx="3" fill="none" stroke="var(--interpreter)" stroke-width="1.25"/>+ <text class="svg-node f-interpreter" x="80" y="70">[interpreter]</text>+ <text class="svg-sub f-soft" x="80" y="90">mthds · pipe_run · pipe_func · pipeline_execution (→ graph) · scan · builder</text>+ <text class="svg-sub f-faint" x="80" y="110">library-scoped method machinery — what interpreter_hub brokers</text>++ <!-- kernel layer -->+ <rect x="60" y="176" width="700" height="150" rx="3" fill="none" stroke="var(--rule-strong)" stroke-width="1.25" stroke-dasharray="4 3"/>+ <text class="svg-lab f-faint" x="80" y="196">KERNEL LAYER — what runtime_hub brokers, present whatever is loaded</text>++ <rect class="f-runtime" x="80" y="208" width="330" height="100" opacity="0.10" rx="3"/>+ <rect x="80" y="208" width="330" height="100" rx="3" fill="none" stroke="var(--runtime)" stroke-width="1.25"/>+ <text class="svg-node f-runtime" x="98" y="234">[runtime]</text>+ <text class="svg-sub f-soft" x="98" y="254">storage · secrets · log · aws</text>+ <text class="svg-sub f-soft" x="98" y="270">reporting · tracing · observer · plugins</text>+ <text class="svg-sub f-faint" x="98" y="292">process-scoped infrastructure</text>++ <rect class="f-inference" x="430" y="208" width="310" height="100" opacity="0.10" rx="3"/>+ <rect x="430" y="208" width="310" height="100" rx="3" fill="none" stroke="var(--inference)" stroke-width="1.25"/>+ <text class="svg-node f-inference" x="448" y="234">[inference]</text>+ <text class="svg-sub f-soft" x="448" y="254">model_deck · llm · img_gen · extract</text>+ <text class="svg-sub f-soft" x="448" y="270">gateway_test · templating · dry_run</text>+ <text class="svg-sub f-faint" x="448" y="292">the model seam — was [cogt]</text>++ <!-- kit, outside -->+ <rect class="f-kit" x="810" y="208" width="250" height="100" opacity="0.10" rx="3"/>+ <rect x="810" y="208" width="250" height="100" rx="3" fill="none" stroke="var(--kit)" stroke-width="1.25" stroke-dasharray="4 3"/>+ <text class="svg-node f-kit" x="828" y="234">[kit]</text>+ <text class="svg-sub f-soft" x="828" y="256">preferred_agent_targets</text>+ <text class="svg-sub f-faint" x="828" y="278">read only by two pipelex-dev</text>+ <text class="svg-sub f-faint" x="828" y="292">commands — neither layer</text>++ <!-- permitted downward read -->+ <path d="M180,126 L180,172" fill="none" stroke="var(--ink-soft)" stroke-width="1.5" marker-end="url(#ah-soft)"/>+ <text class="svg-lab f-soft" x="192" y="146">permitted: reads downward</text>+ <text class="svg-lab f-faint" x="192" y="162">e.g. bundle_validator reads inference.dry_run</text>++ <!-- recorded inversion upward -->+ <path d="M640,172 L640,130" fill="none" stroke="var(--gone)" stroke-width="1.5" stroke-dasharray="5 3" marker-end="url(#ah-gone)"/>+ <text class="svg-lab f-gone" x="652" y="146">recorded inversion, not fixed by the reshape:</text>+ <text class="svg-lab f-faint" x="652" y="162">kernel-layer readers of interpreter.scan and interpreter.pipe_func</text>++ <defs>+ <marker id="ah-soft" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="var(--ink-soft)"/>+ </marker>+ <marker id="ah-gone" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="var(--gone)"/>+ </marker>+ <marker id="ah-ink" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="var(--ink)"/>+ </marker>+ </defs>+ </svg>+ </div>+ <figcaption>The reshape makes the two inversions <b>visible</b> rather than fixing them — <code>get_pipe_func_execution_mode</code> in <code>config.py</code> and the kernel-layer registry helpers that read <code>scan</code>. Visible is the honest state to hand to the layering work; fixing them is that work.</figcaption>+ </figure>+</section>++<section>+ <h2>Section by section</h2>++ <div class="col">+ <h3>Every address, old and new</h3>+ <p>Grouped by where each section lives today. The <code>_config</code> suffix goes at every depth (R2), so a nested key such as <code>graph_config.mermaid_config</code> becomes <code>graph.mermaid</code>.</p>+ </div>++ <div class="table-scroll">+ <table>+ <thead>+ <tr>+ <th>Today</th>+ <th>Becomes</th>+ <th>Destination</th>+ <th>Note</th>+ </tr>+ </thead>+ <tbody>+ <tr class="grp"><td colspan="4">from <span class="mono">[pipelex]</span> — the grab-bag, 16 sections</td></tr>+ <tr><td class="addr addr-old">pipelex.storage_config</td><td class="addr c-runtime">runtime.storage</td><td><span class="tag tag-runtime">runtime</span></td><td class="note">with <span class="mono">.local / .in_memory / .s3 / .gcp</span></td></tr>+ <tr><td class="addr addr-old">pipelex.secrets_config</td><td class="addr c-runtime">runtime.secrets</td><td><span class="tag tag-runtime">runtime</span></td><td class="note"></td></tr>+ <tr><td class="addr addr-old">pipelex.log_config</td><td class="addr c-runtime">runtime.log</td><td><span class="tag tag-runtime">runtime</span></td><td class="note"><span class="mono">rich_log_config → rich_log</span></td></tr>+ <tr><td class="addr addr-old">pipelex.aws_config</td><td class="addr c-runtime">runtime.aws</td><td><span class="tag tag-runtime">runtime</span></td><td class="note"></td></tr>+ <tr><td class="addr addr-old">pipelex.reporting_config</td><td class="addr c-runtime">runtime.reporting</td><td><span class="tag tag-runtime">runtime</span></td><td class="note"></td></tr>+ <tr><td class="addr addr-old">pipelex.tracing_config</td><td class="addr c-runtime">runtime.tracing</td><td><span class="tag tag-runtime">runtime</span></td><td class="note">second most-read section workspace-wide</td></tr>+ <tr><td class="addr addr-old">pipelex.observer_config</td><td class="addr c-runtime">runtime.observer</td><td><span class="tag tag-runtime">runtime</span></td><td class="note"></td></tr>+ <tr><td class="addr addr-old">pipelex.templating_config</td><td class="addr c-inference">inference.templating</td><td><span class="tag tag-inference">inference</span></td><td class="note">R3 — its only reader is the kernel’s prompt-rendering seam</td></tr>+ <tr><td class="addr addr-old">pipelex.dry_run_config</td><td class="addr c-inference">inference.dry_run</td><td><span class="tag tag-inference">inference</span></td><td class="note">R3 — four of five fields configure mock inference output</td></tr>+ <tr><td class="addr addr-old">pipelex.mthds_config</td><td class="addr c-interpreter">interpreter.mthds</td><td><span class="tag tag-interpreter">interpreter</span></td><td class="note"></td></tr>+ <tr><td class="addr addr-old">pipelex.pipe_run_config</td><td class="addr c-interpreter">interpreter.pipe_run</td><td><span class="tag tag-interpreter">interpreter</span></td><td class="note"></td></tr>+ <tr><td class="addr addr-old">pipelex.pipe_func_config</td><td class="addr c-interpreter">interpreter.pipe_func</td><td><span class="tag tag-interpreter">interpreter</span></td><td class="note">R3 — kernel-layer reader is a recorded inversion</td></tr>+ <tr><td class="addr addr-old">pipelex.pipeline_execution_config</td><td class="addr c-interpreter">interpreter.pipeline_execution</td><td><span class="tag tag-interpreter">interpreter</span></td><td class="note">most-read section workspace-wide; <span class="mono">graph_config → graph</span> stays nested</td></tr>+ <tr><td class="addr addr-old">pipelex.scan_config</td><td class="addr c-interpreter">interpreter.scan</td><td><span class="tag tag-interpreter">interpreter</span></td><td class="note">R3 — kernel-layer readers are a recorded inversion</td></tr>+ <tr><td class="addr addr-old">pipelex.builder_config</td><td class="addr c-interpreter">interpreter.builder</td><td><span class="tag tag-interpreter">interpreter</span></td><td class="note"></td></tr>+ <tr><td class="addr addr-old">pipelex.kit_config</td><td class="addr c-kit">kit</td><td><span class="tag tag-kit">kit</span></td><td class="note">R3 — to the root; nothing in the package proper reads it</td></tr>++ <tr class="grp"><td colspan="4">from <span class="mono">[cogt]</span> — renamed whole, every child follows</td></tr>+ <tr><td class="addr addr-old">cogt.transport_max_retries</td><td class="addr c-inference">inference.transport_max_retries</td><td><span class="tag tag-inference">inference</span></td><td class="note">scalar</td></tr>+ <tr><td class="addr addr-old">cogt.model_deck_config</td><td class="addr c-inference">inference.model_deck</td><td><span class="tag tag-inference">inference</span></td><td class="note"></td></tr>+ <tr><td class="addr addr-old">cogt.llm_config</td><td class="addr c-inference">inference.llm</td><td><span class="tag tag-inference">inference</span></td><td class="note"><span class="mono">instructor_config</span> and the four vendor sections drop the suffix too</td></tr>+ <tr><td class="addr addr-old">cogt.img_gen_config</td><td class="addr c-inference">inference.img_gen</td><td><span class="tag tag-inference">inference</span></td><td class="note"><span class="mono">img_gen_job_config → img_gen_job</span></td></tr>+ <tr><td class="addr addr-old">cogt.extract_config</td><td class="addr c-inference">inference.extract</td><td><span class="tag tag-inference">inference</span></td><td class="note"></td></tr>+ <tr><td class="addr addr-old">cogt.gateway_test_config</td><td class="addr c-inference">inference.gateway_test</td><td><span class="tag tag-inference">inference</span></td><td class="note"></td></tr>++ <tr class="grp"><td colspan="4">from <span class="mono">[plugins]</span>, <span class="mono">[migration]</span> and the root</td></tr>+ <tr><td class="addr addr-old">plugins.disabled</td><td class="addr c-runtime">runtime.plugins.disabled</td><td><span class="tag tag-runtime">runtime</span></td><td class="note">all that remains of the table</td></tr>+ <tr><td class="addr addr-old">plugins.boot_orchestrator</td><td class="addr c-gone">—</td><td><span class="tag tag-gone">deleted</span></td><td class="note">R5 — becomes a boot argument</td></tr>+ <tr><td class="addr addr-old">migration.migration_maps</td><td class="addr c-gone">—</td><td><span class="tag tag-gone">deleted</span></td><td class="note">the Migrator ledger supersedes it</td></tr>+ <tr><td class="addr addr-old">session_id</td><td class="addr c-gone">—</td><td><span class="tag tag-gone">deleted</span></td><td class="note">R4 — no replacement accessor in <span class="mono">pipelex</span></td></tr>+ </tbody>+ </table>+ </div>+</section>++<section>+ <h2>The three deletions</h2>++ <div class="col">+ <p>Two of these were never configuration at all — they were process state and a boot argument that happened to live on the config object. Neither is set in any TOML anywhere in the workspace, so both <code>delete_key</code> ops skip on every real file and exist only to account for a schema path.</p>+ </div>++ <div class="rail">+ <div>+ <dt class="c-gone">session_id</dt>+ <dd>Process state on the config object since the initial commit, and <code>extra="forbid"</code> let a user pin it from TOML by accident. Nothing in <code>pipelex/pipelex/</code> reads it. Its one chain ends at a Temporal search attribute that is disabled in every deployed environment and queried by nothing. The plugin will mint its own per-process id; <code>JobMetadata.session_id</code> stays as its wire carrier.</dd>+ </div>+ <div>+ <dt class="c-gone">plugins.boot_orchestrator</dt>+ <dd>Set in no TOML anywhere. <code>RuntimeBoot.setup</code> writes the <em>argument</em> into the config object and the plugin gate reads it straight back — the config was being used as a side channel. It becomes boot-scoped state on <code>RuntimeHub</code> with an accessor (the precedent is <code>is_dry_run_forced</code>) plus a <code>build_registrar</code> parameter.</dd>+ </div>+ <div>+ <dt class="c-gone">[migration]</dt>+ <dd>One field, <code>migration_maps</code>, whose only consumer annotated validation errors with renaming hints. Migrator’s own ledger supersedes it. The <code>.mthds</code> renaming hints are an accepted loss, recorded, until the language-surface project restores them.</dd>+ </div>+ </div>+</section>++<section>+ <h2>The file itself</h2>++ <div class="col">+ <h3>Two tables are interleaved today</h3>+ <p>The packaged defaults file is physically out of order: <code>[pipelex]</code> is split across three spans and <code>[migration]</code> across two, which is what makes both resolve to a tomlkit <code>OutOfOrderTableProxy</code>. Ruling R6 rewrites the file in order — a content edit of a reference document, not a schema change, since the transform comparator is path-based.</p>+ </div>++ <figure>+ <div class="fig-frame">+ <svg viewBox="0 0 1120 420" role="img" aria-label="The packaged pipelex.toml today reads as seven spans in which the pipelex table appears three times and migration twice; after the reshape it is four contiguous blocks.">+ <text class="svg-title f-faint" x="140" y="30">TODAY — pipelex/pipelex.toml, 7 spans</text>+ <text class="svg-title f-faint" x="700" y="30">AFTER — 4 contiguous blocks</text>++ <!-- today: 7 spans, equal blocks -->+ <g>+ <rect x="140" y="46" width="230" height="44" rx="2" fill="var(--ink)" opacity="0.10"/>+ <rect x="140" y="46" width="4" height="44" fill="var(--ink)"/>+ <text class="svg-node f-ink" x="158" y="66">[pipelex]</text>+ <text class="svg-sub f-faint" x="158" y="82">lines 3–134 · span 1 of 3</text>++ <rect x="140" y="94" width="230" height="44" rx="2" fill="var(--inference)" opacity="0.12"/>+ <rect x="140" y="94" width="4" height="44" fill="var(--inference)"/>+ <text class="svg-node f-inference" x="158" y="114">[cogt]</text>+ <text class="svg-sub f-faint" x="158" y="130">lines 135–271</text>++ <rect x="140" y="142" width="230" height="44" rx="2" fill="var(--ink)" opacity="0.10"/>+ <rect x="140" y="142" width="4" height="44" fill="var(--ink)"/>+ <text class="svg-node f-ink" x="158" y="162">[pipelex]</text>+ <text class="svg-sub f-faint" x="158" y="178">lines 272–413 · span 2 of 3</text>++ <rect x="140" y="190" width="230" height="44" rx="2" fill="var(--gone)" opacity="0.12"/>+ <rect x="140" y="190" width="4" height="44" fill="var(--gone)"/>+ <text class="svg-node f-gone" x="158" y="210">[migration]</text>+ <text class="svg-sub f-faint" x="158" y="226">lines 414–439 · span 1 of 2</text>++ <rect x="140" y="238" width="230" height="44" rx="2" fill="var(--ink)" opacity="0.10"/>+ <rect x="140" y="238" width="4" height="44" fill="var(--ink)"/>+ <text class="svg-node f-ink" x="158" y="258">[pipelex]</text>+ <text class="svg-sub f-faint" x="158" y="274">lines 440–446 · span 3 of 3</text>++ <rect x="140" y="286" width="230" height="44" rx="2" fill="var(--gone)" opacity="0.12"/>+ <rect x="140" y="286" width="4" height="44" fill="var(--gone)"/>+ <text class="svg-node f-gone" x="158" y="306">[migration]</text>+ <text class="svg-sub f-faint" x="158" y="322">lines 447–448 · span 2 of 2</text>++ <rect x="140" y="334" width="230" height="44" rx="2" fill="var(--runtime)" opacity="0.12"/>+ <rect x="140" y="334" width="4" height="44" fill="var(--runtime)"/>+ <text class="svg-node f-runtime" x="158" y="354">[plugins]</text>+ <text class="svg-sub f-faint" x="158" y="370">lines 449–452</text>+ </g>++ <!-- brace annotations -->+ <path d="M382,46 L394,46 L394,282 L382,282" fill="none" stroke="var(--ink-soft)" stroke-width="1.25"/>+ <text class="svg-lab f-soft" x="402" y="158">two OutOfOrderTableProxy</text>+ <text class="svg-lab f-faint" x="402" y="174">objects the migrator would</text>+ <text class="svg-lab f-faint" x="402" y="190">otherwise have to reason about</text>++ <path d="M578,218 L680,218" fill="none" stroke="var(--ink)" stroke-width="1.5" marker-end="url(#ah-ink2)"/>+ <text class="svg-lab f-soft" x="560" y="200">rewritten in order (R6)</text>++ <!-- after: 4 contiguous blocks -->+ <g>+ <rect x="700" y="46" width="240" height="78" rx="2" fill="var(--runtime)" opacity="0.12"/>+ <rect x="700" y="46" width="4" height="78" fill="var(--runtime)"/>+ <text class="svg-node f-runtime" x="718" y="72">[runtime]</text>+ <text class="svg-sub f-faint" x="718" y="90">storage, secrets, log, aws,</text>+ <text class="svg-sub f-faint" x="718" y="106">reporting, tracing, observer, plugins</text>++ <rect x="700" y="128" width="240" height="78" rx="2" fill="var(--inference)" opacity="0.12"/>+ <rect x="700" y="128" width="4" height="78" fill="var(--inference)"/>+ <text class="svg-node f-inference" x="718" y="154">[inference]</text>+ <text class="svg-sub f-faint" x="718" y="172">model_deck, llm, img_gen, extract,</text>+ <text class="svg-sub f-faint" x="718" y="188">gateway_test, templating, dry_run</text>++ <rect x="700" y="210" width="240" height="78" rx="2" fill="var(--interpreter)" opacity="0.12"/>+ <rect x="700" y="210" width="4" height="78" fill="var(--interpreter)"/>+ <text class="svg-node f-interpreter" x="718" y="236">[interpreter]</text>+ <text class="svg-sub f-faint" x="718" y="254">mthds, pipe_run, pipe_func,</text>+ <text class="svg-sub f-faint" x="718" y="270">pipeline_execution, scan, builder</text>++ <rect x="700" y="292" width="240" height="78" rx="2" fill="var(--kit)" opacity="0.12"/>+ <rect x="700" y="292" width="4" height="78" fill="var(--kit)"/>+ <text class="svg-node f-kit" x="718" y="318">[kit]</text>+ <text class="svg-sub f-faint" x="718" y="336">preferred_agent_targets</text>+ </g>++ <text class="svg-lab f-faint" x="960" y="72">one scheme,</text>+ <text class="svg-lab f-faint" x="960" y="88">read top to bottom</text>++ <defs>+ <marker id="ah-ink2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="var(--ink)"/>+ </marker>+ </defs>+ </svg>+ </div>+ <figcaption>Blocks are spans, not to scale — the message is the repetition. Line numbers are real, measured on <code>dev</code> at <code>052b9df06</code>. The kit template that seeds every user’s <code>~/.pipelex/pipelex.toml</code> carries only <span class="mono">[pipelex.*]</span>, <span class="mono">[cogt.*]</span> and <span class="mono">[plugins]</span> sections, so <b>every installation exercises the full set of moves</b>. The migration is not an edge case; it is the common case.</figcaption>+ </figure>+</section>++<section>+ <h2>The ledger entry</h2>++ <div class="col">+ <h3>37 ops, and the order is load-bearing</h3>+ <p>Children move <em>out</em> of <code>[pipelex]</code> before <code>[pipelex]</code> is renamed. <code>[cogt]</code> is renamed before anything moves <em>into</em> <code>[inference]</code>. A parent is renamed before the suffix renames inside it, so a root rename keeps every child in place in the user’s file. A <code>delete_key</code> whose source sits inside a table that later moves comes first, so its source is still a schema-1 path. Whole-table deletions go last.</p>+ </div>++ <div class="ops"><b> 1.</b> move_key pipelex.storage_config → runtime.storage+<b> 2.</b> move_key pipelex.secrets_config → runtime.secrets+<b> 3.</b> move_key pipelex.log_config → runtime.log+<b> 4.</b> rename runtime.log.rich_log_config → rich_log+<b> 5.</b> move_key pipelex.aws_config → runtime.aws+<b> 6.</b> move_key pipelex.reporting_config → runtime.reporting+<b> 7.</b> move_key pipelex.tracing_config → runtime.tracing+<b> 8.</b> move_key pipelex.observer_config → runtime.observer+<b> 9.</b> delete_key plugins.boot_orchestrator <span class="c-gone">R5 — before the move; always skips</span>+<b>10.</b> move_key plugins → runtime.plugins+<b>11.</b> rename cogt → inference <span class="c-inference">every [cogt.*] header follows</span>+<b>12.</b> rename inference.model_deck_config → model_deck+<b>13.</b> rename inference.llm_config → llm+<b>14.</b> rename inference.llm.instructor_config → instructor+<b>15.</b> rename inference.llm.openai_config → openai+<b>16.</b> rename inference.llm.anthropic_config → anthropic+<b>17.</b> rename inference.llm.google_config → google+<b>18.</b> rename inference.llm.mistral_config → mistral+<b>19.</b> rename inference.img_gen_config → img_gen+<b>20.</b> rename inference.img_gen.img_gen_job_config → img_gen_job+<b>21.</b> rename inference.extract_config → extract+<b>22.</b> rename inference.gateway_test_config → gateway_test+<b>23.</b> move_key pipelex.templating_config → inference.templating+<b>24.</b> move_key pipelex.dry_run_config → inference.dry_run+<b>25.</b> move_key pipelex.kit_config → kit+<b>26.</b> rename pipelex → interpreter+<b>27.</b> rename interpreter.mthds_config → mthds+<b>28.</b> rename interpreter.pipe_run_config → pipe_run+<b>29.</b> rename interpreter.pipe_func_config → pipe_func+<b>30.</b> rename interpreter.pipeline_execution_config → pipeline_execution+<b>31.</b> rename interpreter.pipeline_execution.graph_config → graph+<b>32.</b> rename interpreter.pipeline_execution.graph.mermaid_config → mermaid+<b>33.</b> rename interpreter.pipeline_execution.graph.reactflow_config → reactflow+<b>34.</b> rename interpreter.scan_config → scan+<b>35.</b> rename interpreter.builder_config → builder+<b>36.</b> delete_table migration <span class="c-gone">the parent goes with its one field</span>+<b>37.</b> delete_key session_id <span class="c-gone">R4</span></div>++ <div class="col">+ <h3>The consequence nobody had written down</h3>+ <p>Because the ops chain, a nested rename under a moved parent always has an intermediate address at one end — whichever way you order it. Rename the child first and the <em>destination</em> is intermediate; move the parent first and the <em>source</em> is.</p>+ </div>++ <figure>+ <div class="fig-frame">+ <svg viewBox="0 0 1120 220" role="img" aria-label="An address passes through an intermediate state that belongs to neither fingerprint: cogt.llm_config.instructor_config becomes inference.llm_config.instructor_config after op 11, then inference.llm.instructor after ops 13 and 14.">+ <rect x="30" y="60" width="300" height="60" rx="3" fill="var(--sunken)" stroke="var(--rule-strong)" stroke-width="1"/>+ <text class="svg-lab f-ink" x="46" y="88">cogt.llm_config.instructor_config</text>+ <text class="svg-sub f-runtime" x="46" y="107">in fingerprint@1</text>++ <path d="M340,90 L400,90" fill="none" stroke="var(--ink-soft)" stroke-width="1.5" marker-end="url(#ah-soft2)"/>+ <text class="svg-lab f-soft" x="344" y="78">op 11</text>++ <rect x="410" y="60" width="310" height="60" rx="3" fill="var(--gone-wash)" stroke="var(--gone)" stroke-width="1.25" stroke-dasharray="4 3"/>+ <text class="svg-lab f-ink" x="426" y="88">inference.llm_config.instructor_config</text>+ <text class="svg-sub f-gone" x="426" y="107">in neither fingerprint</text>++ <path d="M730,90 L790,90" fill="none" stroke="var(--ink-soft)" stroke-width="1.5" marker-end="url(#ah-soft2)"/>+ <text class="svg-lab f-soft" x="734" y="78">ops 13, 14</text>++ <rect x="800" y="60" width="290" height="60" rx="3" fill="var(--sunken)" stroke="var(--rule-strong)" stroke-width="1"/>+ <text class="svg-lab f-ink" x="816" y="88">inference.llm.instructor</text>+ <text class="svg-sub f-interpreter" x="816" y="107">in fingerprint@2</text>++ <path d="M565,132 L565,166" fill="none" stroke="var(--gone)" stroke-width="1.25" marker-end="url(#ah-gone2)"/>+ <text class="svg-lab f-gone" x="565" y="186" text-anchor="middle">so op legality and the destination cross-check must be walked over the entry’s sequential path state,</text>+ <text class="svg-lab f-faint" x="565" y="202" text-anchor="middle">not against fingerprint@1 and fingerprint@2 alone</text>++ <defs>+ <marker id="ah-soft2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="var(--ink-soft)"/>+ </marker>+ <marker id="ah-gone2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="var(--gone)"/>+ </marker>+ </defs>+ </svg>+ </div>+ <figcaption>Found by writing the entry down at session S3, and folded into the Phase 0 contract and the Phase 1 coverage check. It changes no op above — the alternative ordering (one op per leaf section, every source a schema-1 path) cannot avoid the intermediate ends either.</figcaption>+ </figure>+</section>++<section>+ <h2>What catches a mistake</h2>++ <div class="col">+ <p>A 37-op entry written by hand needs more than review. Three checks read it from different ends, and each is red at authoring time on the branch — not at a user’s boot.</p>+ </div>++ <div class="rail">+ <div>+ <dt>Coverage</dt>+ <dd>Every removed path is the source of some op, and every destination is an added path of <code>fingerprint@2</code>. Catches an unaccounted removal and a misspelled destination with the same test — they are the same defect seen from either end.</dd>+ </div>+ <div>+ <dt>Convergence</dt>+ <dd>Replays the entry over the <em>new</em> packaged defaults and the <em>new</em> kit template. It must apply nothing. A migration that still finds work to do on an already-migrated file is not finished.</dd>+ </div>+ <div>+ <dt>Transform golden</dt>+ <dd>Applies the entry to <code>defaults@1</code> and demands exactly the paths of <code>defaults@2</code>. Renaming <code>pipelex</code> before its runtime children moved out, or deleting <code>boot_orchestrator</code> after <code>plugins</code> moved, is red here.</dd>+ </div>+ <div>+ <dt>The type checker</dt>+ <dd>Field names equal TOML keys with no aliases, so every one of the ~145 package read sites that is missed is a pyright error. The two shapes it cannot see — raw-dict TOML reads and inline-TOML test fixtures — get a hand pass.</dd>+ </div>+ </div>+</section>++<section>+ <h2>How it ships</h2>++ <div class="col">+ <h3>The reshape cannot land alone</h3>+ <p>A user whose <code>~/.pipelex/pipelex.toml</code> is in the old shape needs two things to exist before the new shape reaches PyPI: a boot that tolerates the old file with a warning instead of failing, and a <code>pipelex migrate</code> that rewrites it. Both are Migrator Phase 3. Releases have run every one to three days lately, so “it will not be cut into a release” is not a plan.</p>+ <p>Enforcement is by ordering, plus two tripwires: this branch’s pull request is titled <code>MERGE AFTER Migrator Phase 3 — …</code>, and Phase 3 adds a step to <code>/release</code> that refuses a moved schema without its ledger entry.</p>+ </div>++ <div class="panel">+ <h4>Read next</h4>+ <p><code><workspace-root>/wip/migrator-3/reshape.md</code> is the normative source for everything on this page — the census with its per-section reader measurements, the full rulings R1–R7 with the reasoning that was in front of Louis, what the reshape explicitly does <em>not</em> do, and the downstream repo sweep. <code><workspace-root>/wip/migrator-3/sequencing.md</code> orders the sessions; this branch is S4.</p>+ </div>+</section>++<footer class="footer">+ Reading aid for session S4 · drawn against <span class="mono">dev @ 052b9df06</span> · line numbers and field lists measured from <span class="mono">pipelex/pipelex.toml</span>, <span class="mono">system/configuration/configs.py</span> and <span class="mono">cogt/config_cogt.py</span> on 2026-08-15.<br>+ Not normative. Where this page and <span class="mono">reshape.md</span> disagree, <span class="mono">reshape.md</span> is right.+</footer>++</div>+</body>+</html>diff --git a/wip/reshape/s7-progress.md b/wip/reshape/s7-progress.mdnew file mode 100644index 000000000..5ea33773d--- /dev/null+++ b/wip/reshape/s7-progress.md@@ -0,0 +1,86 @@+# S7 — landing the pair: progress in `_reshape/`++The `_reshape/` half of [S7](../../../wip/migrator-3/sequencing.md#s7--land-the-pair-louis-go-twice-merge-and-release), tracked as it is built. The release half runs in `pipelex/` on `dev` and is not this document's subject. Everything below is committed and pushed; what is left of S7 is the merge, and that is Louis' go.++## Where it stands++| # | Item | State |+|---|---|---|+| 1 | The final join — re-check, not a join | ✅ `dev` has not moved |+| 2 | The out-of-walk warning text (#1114 review §1) | ✅ built, tested, documented |+| 3 | `add-migration` re-derive, compared op for op | ✅ done — the two agree |+| 4 | The two Phase-3 end-to-end tests on **old-shape** fixtures | ✅ built, mutation-tested |+| 5 | The two #1111 review items | ✅ both built |+| 6 | `make check` + `make agent-test` | ✅ both green |+| 7 | Mark #1111 ready, retitle, **(Louis go)**, merge | ✅ ready + retitled — ⏳ **the merge is Louis'** |++## 1 — the final join is a re-check++Verified 2026-08-17: `git rev-list --left-right --count origin/dev...HEAD` reads `0 11` against `origin/dev` = `6264de0fd`, the tree is clean, and #1111 reads `MERGEABLE` / `CLEAN` at head `a93c5caad`, still a draft. So the fourth join was the final one. Every S7 precondition re-verified: both `migrate_cmd.py` modules and `.claude/skills/add-migration/SKILL.md` resolve on `dev`, `/release` carries step 3b, and the only remote `release/` branch is the merged `origin/release/v0.45.0`. **Re-run the fetch before merging** — `dev` cuts a release every one to three days, and if it has moved the verb is `git merge origin/dev`, never `rebase`.++## 2 — the warning names `pipelex migrate` only where it would write++`stale_configuration_warning` now takes `walked_dirs` and splits its stale files into the ones `pipelex migrate` would reach and the ones it would not, closing #1114 review §1. A file outside the walk gets "…is yours to update where it lives" instead of a command that would report nothing to do; a load spanning both gets both sentences, each naming its own files; the blocked-material sentence drops the command name when nothing is in reach. Same rule as part 3's ruling on the validation error — *a remedy is named only where it would write*. `--config-dir` was deliberately **not** added, per the review's own reasoning.++**The one design decision worth knowing.** The walk had to become readable from the loader, and it could not be imported: `config_loader → migration.run → config_loader` is a two-node cycle, and pyright's `reportImportCycles` counts a function-level edge exactly like a module-level one, so a deferred import is not a way out. The derivation therefore moved **down** onto `ConfigLoader.existing_config_dirs`, and `migration.run.config_directories_to_migrate()` now reads it and does nothing else. One derivation, read from both ends — which is the property that keeps a boot from promising a remedy the command declines. The three loaders each pass `config_manager.existing_config_dirs`.++Tests are in `tests/unit/pipelex/system/configuration/test_boot_tolerance.py::TestWhatTheWarningSays` (out-of-walk, the mixed case, the walk-is-not-recursive specimen, and the symlinked file below) and each was mutation-tested. `tests/unit/pipelex/migration/test_migration_run.py::TestWhichDirectoriesAreWalked` was rewritten to patch the loader's two directory *properties* rather than replace the `config_manager` singleton — with the singleton mocked out, the delegation and the derivation would both go untested. `docs/migration-ledger.md` → "Boot tolerance" carries the rule; the changelog's boot-tolerance bullet was amended rather than given a new one, the feature being unreleased.++**Both ends of "one derivation" are now pinned by a sentinel, and the first attempt was not.** The review caught it: `assert config_directories_to_migrate() == config_manager.existing_config_dirs` is a tautology, since the function *is* that expression and both sides came from the same patched properties — it would have passed just as well over a second derivation, which is the only thing it was there to forbid. Each end now patches `ConfigLoader.existing_config_dirs` to a value neither end could compute and asserts the answer is that value: the migrate side must return the sentinel directory, and the loader side, walking nothing, must decline to name the command for the very file it just carried forward. Both mutation-tested by re-deriving the walk locally at each end.++**One real bug came out of the same review, and it is a common setup rather than a corner.** `_is_within` resolved the whole path before taking its parent, so a `pipelex.toml` **symlinked out to a dotfiles repository** — chezmoi, stow and yadm all do this — landed on the target's directory and was told `pipelex migrate` could not reach it. The walk enumerates the link by `iterdir` and writes straight through it, so the command reaches it perfectly well; the warning was sending the user to hand-edit a file the tool would have fixed. The fix is to resolve the *parent* and not the file (`path.parent.resolve()`), which keeps the reason the resolve was there — a `config_dir=` reaching the same directory by another spelling — and drops the question it was accidentally answering, namely where the file points.++## 3 — the re-derive, and what it proved++The entry was re-derived **blind to the ledger** and compared to the hand-authored one. Method: roll `pipelex-config.toml` back to `current_schema_version = 1` with the entry removed, delete the `@2` goldens, run `make cmig` to see the gate refuse — it does, with `removal_needs_a_bump` naming every removed path — then reconstruct the old→new path mapping from `fingerprint@1` versus the live fingerprint by subtree-shape matching plus a parent/child affinity fixpoint, and compare that mapping against the one `walk_entry` induces from the entry. The script is `derive.py` under the job scratch directory; it is a one-off, not a checked-in gate. The ledger and goldens were restored **by file copy, never `git checkout`**, and `cl` + `cmig` are green again with both files unmodified.++**Result: no disagreement.** 192 of the 200 moves were derived independently and every one is identical to the entry's. Deletions match exactly: `[migration]` and its three descendants, `plugins.boot_orchestrator`, `session_id` — precisely the three things the entry's `guidance` says go away, and the R4/R5 rulings. No dead ops, no occupied destinations, and no removed path left in place.++**The eight the derivation could not decide are not decisions the entry makes**, which is the finding worth keeping. A fingerprint is a *type* projection, so two `bool` leaves under one table, or a `list[str]` in two places, are indistinguishable in it — that is why `plugins.disabled` and five booleans came back undecidable. But the entry's 37 operations name **only tables**, with exactly two exceptions, both `delete_key` on the two retired scalars (`plugins.boot_orchestrator`, `session_id`). Every leaf travels with its parent table, name intact, so the entry contains no per-leaf assignment that could be got wrong. The ambiguity is a property of reconstructing a rename map from a type projection, not a gap in the entry — and it is one more instance of the rule this project has met before: *a type projection cannot decide schema membership*.++## 4 — the end-to-end tests on a pre-reshape machine++`tests/e2e/pipelex/cli/test_migrate_commands.py` gains `TestAPreReshapeMachine`, and the entry that the reshape adds now has an end-to-end proof it never had: it was proved by the engine's own goldens and by nothing else. The rest of the chain is what the class adds — the walk, the filesystem, the backup, the binary a person types.++**The fixture is `goldens/pipelex-config/[email protected]`, read live from the package.** ⏸ C's correction retired the recipe the charter carried (`git show 052b9df06:.pipelex/pipelex_override.toml` cannot work — the file is gitignored), and neither remaining candidate is as good as this one: `defaults@1` *is* the packaged `pipelex.toml` as it stood at schema 1, the very document the entry was authored against, so it names every path the entry touches and nothing it does not. Read live rather than transcribed, for the same reason the telemetry fixture is: a transcribed one would eventually describe a shape the ledger no longer migrates and would go on passing. The project tier beside it is hand-written from the table headers of this machine's `~/.pipelex/pipelex_override.toml.pre-reshape.bak` with **every value invented** — that file is personal, and a checked-in fixture carries none of a person's values.++Five tests, both loops:++- **the human loop** — boots stale, `pipelex migrate --yes`, both files named in the report, one backup each holding the original, boots clean. Its strong assertion is that the migrated global file says *exactly what the package's own `pipelex.toml` says today*, compared semantically because the entry's guidance says layout moves; `cmig` proves the engine does that, and this proves the command does.+- **the agent loop** — the JSON plan names the entry per file rather than once for the run, writes nothing and leaves no backup, then the apply writes both.+- **two surfaces in one run** — the only place two ledgers meet, which is where a misclaimed file would either be reported clean or handed a ledger with nothing to say about it. Four files written, then clean.+- **no user value rendered** — a bucket name planted in the tier, across the human CLI, the JSON plan, the Markdown plan and the apply. A bucket name rather than a credential because the main configuration holds none, secrets arriving through the environment; it is still private infrastructure in the file a person pastes into an issue.+- **old *and* wrong** — a pre-reshape file carrying a key no entry explains. The boot fails, in one envelope, and the block reports both halves: the reshape is pending on this file, and one path is a person's.++**Mutation-tested.** Pointing the fixture at `defaults@2` (a machine already migrated) reddens four of the five; the fifth is the value test, whose subject is the tier, correctly unaffected. Adding one key to "today's document" reddens the semantic comparison, so it is not comparing something to itself.++**Why a new class rather than a rewrite of the two telemetry tests.** The charter says "point the two end-to-end tests at old-shape fixtures", and the two it means are the human and agent loops — both are covered here. Rewriting them in place would have cost the coverage they already carry: `telemetry-config@2` is a *pre-history* entry against a hand-authored flat document, a different shape of change from a root rename, and it is the only entry of that kind in the tree.++## 5 — the two #1111 review items++**`pipe_func_execution_transport.py`** no longer names `pipe_func_config.timeout_seconds`. Verified 2026-08-16 that our Daytona plugin owns its own root (`daytona.toml` → `pipe_func_timeout_seconds`) and does not extend `[interpreter.pipe_func]`, which holds `execution_mode` and nothing else — so the honest sentence is that the timeout is plugin-configured, and the docstring now says that rather than asserting a core address no reader could ever find.++**`RuntimeHub.reset_boot_state` now releases the isolated-execution probe**, and the docstring says why. Of the three options in the note, "leave the asymmetry unexplained" was the weakest and the other two were a real choice; releasing it wins because the probe *is* process-global state a boot established, and it is the one of the three written **conditionally** — only a plugin claiming `HubSlot.ISOLATED_EXECUTION_PROBE` installs one — so a boot that claims nothing inherits rather than overwrites. The note's argument against rested on the probe having no module-level accessor; it does (`is_in_isolated_execution`, read by `ReportingManager`), so that half did not survive checking. Pinned by a second test in `tests/unit/pipelex/test_runtime_boot_releases_boot_scoped_state.py`, mutation-tested.++## 6 — the gates, and the one doc a drift review turned up++`make check` is green end to end, `check-migration-schemas` included, and `make agent-check` is green with both drift contracts re-acked. Two contracts opened on this session's changes and each was reviewed rather than waved through:++- **`hub-layering-convention`**, on `runtime_hub.py`. The partition table was re-derived rather than read — every public module-level function enumerated from the module by AST and checked against the page — and it is still complete; the probe release adds no accessor and the page says nothing about what a teardown releases, so no sentence in it moved.+- **`config-docs`**, on `config_loader.py` and `config_surface.py`. The contract's own question is whether anything narrowed a value domain the fingerprint cannot record, and the answer is no by construction: neither trigger touches a config model, and no ledger moved.++That second review did turn up one genuinely stale page, in the direction the contract exists to catch. **`docs/configuration/index.md` documents the merge order and the new four-section layout and said nothing about a file written against the old one** — and this branch is what makes that a user's problem, because `pipelex-config@2` is the surface's first entry ever, so from this release every existing installation's own `pipelex.toml` is the file that goes out of date. The page now carries a short note on the tolerant boot, the doctor row, `pipelex migrate` and its timestamped backup, and the out-of-walk rule for a `config_dir` load, linking the Migration Ledger page — which lives in the contributor nav and had no path from the configuration section at all.++## 7 — where the pull request stands, and what is left++The branch is pushed as two commits on top of the fourth join — the work, then the answer to the review round on it — with `make check` and `make agent-test` green before the first and `make agent-check` plus the affected suites green before the second. **#1111 is out of draft and retitled** — the `MERGE AFTER Migrator Phase 3 —` prefix is gone, because the condition it named holds: parts 1, 2 and 3 are all merged on `dev` as #1113, #1114 and #1115. Its description no longer opens with the embargo; it opens with the embargo being lifted, and carries a short section on what the final pass added. `dev` was re-fetched immediately before the push and has not moved from `6264de0fd`, so the branch is still 0 behind and the final join stayed a re-check.++**The review round on that push is triaged and answered.** Every check is green, cubic's included, and it left four findings, all of them acted on: the symlink bug in `_is_within` (P2, a real one — §2 above), the tautological delegation assertion (§2 above), an unqualified module path in `pr-1111-review-notes.md`, converted to name the field rather than a line number so it cannot go stale again, and this document's own sections being out of numeric order.++**What is left in S7 is not this venue's.** The merge is Louis' go. Then `/release` runs in `pipelex/` on `dev` — a minor bump, with step 3b firing on the `pipelex-config@2` entry — and then the first machine, whose first line is restoring this laptop's two `*.pre-reshape.bak` files under their live names, or the run finds nothing to migrate and proves nothing.++## Related++- The runbook: [`wip/migrator-3/sequencing.md`](../../../wip/migrator-3/sequencing.md) § S7, and ⏸ C above it for the four corrections it folded in.+- The #1111 review deferrals: [`pr-1111-review-notes.md`](./pr-1111-review-notes.md) — items 1 and 2 are the ones S7 owns and both are now done; 3, 4, 5, 6 and 7 have their own homes.+- The #1114 review deferrals: `wip/migrator-pr-1114-review-followups.md` on `dev` — §1 is the one S7 owns, and it is done.