Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

feature/Stale-replay-breaks-kernel · L-261004-1961f1 (#1333)

Louis Choquele4b9f533fc11
diff --git a/.drift/acks/config-docs.toml b/.drift/acks/config-docs.toml
index fc1f132fd..502520901 100644
--- a/.drift/acks/config-docs.toml
+++ b/.drift/acks/config-docs.toml
@@ -1,8 +1,8 @@
contract = "config-docs"
-digest = "sha256:4afa250507bfc6d06733cf7fe19b4f1f692cdbb3621a3ddb726c05b84f82f9df"
+digest = "sha256:70f9df825a1d92ab7415fd91a975870de55ca44afd9ba13de4f728d701d88e9c"
reviewed_by = "Claude (Opus 5.5)"
-reviewed_at = "2026-10-04T14:07:00Z"
-rationale = "clean-pass: against dev, the trigger change is telemetry_config.py losing PipelexGatewayTelemetryConfig and the pipelex_gateway field; the telemetry-config ledger drops the section, telemetry-config.md documents only the user-owned streams and custom_portkey, logging-config.md lists gateway_api_key as a secret name which log_redaction.py still redacts, and configs.py and config_cogt.py carry no gateway telemetry field. The gateway sections of inference-backend-config.md remain with the docs rewrite item, as the branch's earlier ack said."
+reviewed_at = "2026-10-04T20:43:40Z"
+rationale = "clean-pass: the only trigger change is the comment above the deferred engine import in config_surface.py (the engine and its applier are now kernel-layer, so the deferral only keeps the healthy path untouched); grep of docs/configuration for applier, pipeline.fixes and kernel finds nothing it affects, and configs.py, config_cogt.py and the ledgers are untouched."
[trigger_files]
"pipelex/cogt/config_cogt.py" = "blob:02f71cb4a6b01aebda59c2e31f262ef9c865e17b"
@@ -16,7 +16,7 @@ rationale = "clean-pass: against dev, the trigger change is telemetry_config.py
"pipelex/system/configuration/config_loader.py" = "blob:b1940ff11d9be7f9b8e113ec564d041ec53bb0ce"
"pipelex/system/configuration/config_model.py" = "blob:83b29dc6e93393c9b98c4353636caf0135c80339"
"pipelex/system/configuration/config_root.py" = "blob:c7d43851270912d17413cfc6a511247d3c7cc160"
-"pipelex/system/configuration/config_surface.py" = "blob:96f685656a3f4355e8a073e8bf6184e020fea8f5"
+"pipelex/system/configuration/config_surface.py" = "blob:67e6e2be84c2f064cacf833ee8ba22184144dc96"
"pipelex/system/configuration/configs.py" = "blob:3cb65cf9c3d34aef0baf92b62d8bd63e5c69d4eb"
"pipelex/system/configuration/pipe_func_config.py" = "blob:dc8890e914fbcdb611147e42eaa0cd87b32288a5"
"pipelex/system/telemetry/telemetry_config.py" = "blob:068a785d97a2d52ee43e82e723cd944b8b6601bc"
diff --git a/.drift/acks/hub-layering-convention.toml b/.drift/acks/hub-layering-convention.toml
index c0ebf3581..a75cf6999 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:35e4a1027244f3cc4546249c0a3b4d3937ceb5a10a20b74c536b2cc72439ea6a"
-reviewed_by = "Louis Choquel"
-reviewed_at = "2026-10-04T18:44:31Z"
-rationale = "real-catch: runtime_hub.py gained get_optional_service_error_vocabulary and its setter, the plugins' service error codes frozen at boot; hub-layering.md's plugin-registries row and its sentence on what RuntimeBoot.setup installs on the RuntimeHub now name it."
+digest = "sha256:0d04191133ff7766daf3182784f868d2da5a724f655b9d23428a3634ec97e8d3"
+reviewed_by = "Claude (Opus 5.5)"
+reviewed_at = "2026-10-04T20:43:02Z"
+rationale = "real-catch: the guard now declares pipelex.fix_ops and pipelex.migration; hub-layering.md's declared-package list, the paragraph that called declaring migration an overreach, and a new known inversion now say so. Re-deriving the 'every top-level package accounted for' claim from ls pipelex/ found pipelex.methods unaccounted for; measured it (structures_check imports pipelex.codegen, loading interpreter modules without reaching the hub) and added it to both the doc and the guard's note."
[trigger_files]
-"pipelex/cli/dev_cli/commands/hub_layering_guard.py" = "blob:2dbadcbab7d44364a7b5f1d16268b23b26700a00"
+"pipelex/cli/dev_cli/commands/hub_layering_guard.py" = "blob:fe10deb00e0d30f300352a0696258ab108668e3c"
"pipelex/interpreter_hub.py" = "blob:327e75d0fbb5bdf46f6cbf06024f83840f0106d0"
"pipelex/runtime_hub.py" = "blob:05f84b9604b9f904e7df96d222b8856123ce9e91"
diff --git a/.test_durations b/.test_durations
index 762382c63..d95a2c5e8 100644
--- a/.test_durations
+++ b/.test_durations
@@ -8769,163 +8769,163 @@
"tests/unit/pipelex/pipeline/fixes/test_blueprint_fix_planner.py::TestBlueprintFixPlanner::test_strip_namespace_source_is_threaded": 0.1225,
"tests/unit/pipelex/pipeline/fixes/test_blueprint_fix_planner.py::TestBlueprintFixPlanner::test_uncategorized_error_type_yields_none": 0.0004,
"tests/unit/pipelex/pipeline/fixes/test_blueprint_fix_planner.py::TestBlueprintFixPlanner::test_unstrippable_syntax_error_yields_none": 0.0009,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier.py::TestFixApplier::test_apply_twice_is_idempotent": 0.0021,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier.py::TestFixApplier::test_delete_key_missing_is_skipped": 0.0028,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier.py::TestFixApplier::test_delete_key_removes_key_preserving_rest": 0.0024,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier.py::TestFixApplier::test_delete_table_on_scalar_leaf_is_skipped": 0.0021,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier.py::TestFixApplier::test_delete_table_removes_whole_table": 0.0019,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier.py::TestFixApplier::test_missing_table_path_is_skipped_not_raised": 0.002,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier.py::TestFixApplier::test_serialize_and_format_raises_on_syntax_diagnostic": 0.1365,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier.py::TestFixApplier::test_set_key_matches_golden_bytes": 0.8394,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier.py::TestFixApplier::test_set_output_on_whole_pipe_inline_table_survives_format": 0.0011,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_a_deleted_key_drops_the_comment_above_it_and_keeps_its_neighbours": 0.0006,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_a_deleted_table_drops_its_own_banner_and_keeps_the_next_one": 0.0009,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_a_move_without_any_comment_around_it_is_unchanged_from_before": 0.0014,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_a_moved_key_takes_the_comment_above_it_and_lands_before_the_destinations_trailing_banner": 0.0008,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_a_moved_table_takes_its_banner_and_leaves_the_next_banner_behind": 0.831,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_a_moved_table_with_a_sub_table_leaves_the_next_banner_where_it_was": 0.0016,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_a_table_moved_into_an_existing_parent_does_not_steal_the_parents_trailing_banner": 0.0013,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a banner glued to the first header travels, and gets the blank line tomlkit gives an appended table]": 0.0019,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a comment glued to the file's first key travels with the key]": 0.0007,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a created intermediate parent under an existing one carries the banner above the outermost created header]": 0.0018,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a deeper dotted assignment climbs through every header-less parent to its banner]": 0.0016,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a dotted assignment at the root is introduced by what sits above it, since its implicit parent renders no header]": 0.001,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a key inserted before a table's first sub-table takes its comment and leaves the sub-table's note on the sub-table]": 0.0022,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a key moved to the root of a file lands under the preamble, not above it]": 0.0014,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a key set into a table lands before the table's trailing banner, not after it]": 0.0008,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a key set into an out-of-order chunk lands in that chunk, before the next section's banner]": 0.0029,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a lone comment block at the top, set apart by a blank line, is the file's preamble and stays]": 0.0017,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a note at the end of the file stays at the end of the file]": 0.0018,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a preamble stays while the banner below it travels]": 0.0012,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a root key set into a file whose first header carries a banner lands above the banner]": 0.0009,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a table ensured under a table lands before the table's trailing banner, not after it]": 0.002,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a trailing run that already opens on a blank line does not gain a second one from tomlkit's indent]": 0.001,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a wildcard op applies to every match on one document without losing track of positions]": 0.0016,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[an array of tables travels with its banner and leaves the next banner behind]": 0.0023,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[deleting a dotted-assignment key drops the banner above it]": 0.0011,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[deleting the last table of the file takes its banner and the blank line above it]": 0.0008,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[moved into an empty explicit table, the banner sits under that table's header]": 0.0015,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[removing the file's first table from under an implicit parent leaves no blank line at the top]": 0.0017,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[removing the file's first table leaves no blank line at the top]": 0.0014,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[setting an existing key rewrites it in place and moves no comment]": 0.0019,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[the blank line tomlkit adds under an inserted key sits above the note that follows it, not between the note and its header]": 0.0068,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[the first entry of an implicit parent is introduced by what sits above the parent, and no bare [runtime] header appears]": 0.0027,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_the_kit_template_keeps_every_banner_on_its_section_through_a_move": 0.025,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_the_reshape_entry_carries_every_section_banner_with_its_section": 3.2199,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_created_root_parent_lands_at_the_end_of_the_file": 0.0409,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_split_descendant_beneath_a_nested_proxy_still_renames_whole": 0.008,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_split_descendant_beneath_a_root_proxy_still_renames_whole": 0.0012,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_table_whose_descendant_is_split_across_chunks_moves_and_renames_whole[array of tables between the chunks]": 0.0044,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_table_whose_descendant_is_split_across_chunks_moves_and_renames_whole[dotted keys interleaved in one table]": 0.0014,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_table_whose_descendant_is_split_across_chunks_moves_and_renames_whole[grandchild continued after a sibling]": 0.0076,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_table_whose_descendant_is_split_across_chunks_moves_and_renames_whole[same, with an explicit header]": 0.002,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_table_whose_descendant_is_split_across_chunks_moves_and_renames_whole[split two levels down]": 0.005,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_array_of_tables_is_not_addressable": 0.0054,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_delete_table_removes_every_chunk_of_an_out_of_order_table[table-inside-a-proxy]": 0.1178,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_delete_table_removes_every_chunk_of_an_out_of_order_table[the-other-proxy-itself]": 0.0827,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_delete_table_removes_every_chunk_of_an_out_of_order_table[the-proxy-itself]": 0.5728,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_dotted_key_assignment_is_addressable_and_renames": 0.0005,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_ensure_table_emits_an_inline_table": 0.0273,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[.pipelex/pipelex.toml]": 0.0532,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[.pipelex/telemetry.toml]": 0.0065,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[pipelex/kit/configs/pipelex.toml]": 0.0351,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[pipelex/kit/configs/pipelex_service.toml]": 0.0036,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[pipelex/kit/configs/plxt.toml]": 0.0063,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[pipelex/kit/configs/telemetry.project.toml]": 0.0098,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[pipelex/kit/configs/telemetry.toml]": 0.0085,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[pipelex/pipelex.toml]": 0.4997,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[tests/pipelex_unit_test.toml]": 0.0038,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_inline_table_key_renames_in_place": 0.0712,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_moved_table_leaves_its_banner_comment_behind": 0.1114,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_moved_table_takes_its_banner_comment_along": 0.1951,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_quoted_key_containing_a_dot_is_one_path_segment": 0.0007,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[.pipelex/pipelex.toml]": 0.0418,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[.pipelex/telemetry.toml]": 0.0283,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[pipelex/kit/configs/pipelex.toml]": 0.0426,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[pipelex/kit/configs/pipelex_service.toml]": 0.0052,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[pipelex/kit/configs/plxt.toml]": 0.0068,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[pipelex/kit/configs/telemetry.project.toml]": 0.0055,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[pipelex/kit/configs/telemetry.toml]": 0.0103,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[pipelex/pipelex.toml]": 0.0294,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[tests/pipelex_unit_test.toml]": 0.0031,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_rename_is_replay_neutral_once_applied": 0.1094,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_renaming_a_block_table_inserts_no_blank_line": 0.0006,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_renaming_a_dotted_head_at_the_document_root_keeps_it_dotted": 0.0015,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_renaming_a_dotted_head_is_replay_neutral_once_applied": 0.0018,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_renaming_a_dotted_head_keeps_it_dotted_and_leaves_its_siblings_alone": 0.0006,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_renaming_a_dotted_head_onto_a_name_already_taken_is_a_conflict": 0.0005,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_renaming_an_inner_segment_of_a_dotted_key_keeps_the_whole_chain_dotted": 0.0013,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_root_level_proxy_rename_rewrites_every_chunk": 0.2834,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_the_specimen_produces_out_of_order_proxies_and_the_live_defaults_do_not": 0.0988,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[.pipelex/pipelex.toml]": 0.0402,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[.pipelex/telemetry.toml]": 0.0103,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[pipelex/kit/configs/pipelex.toml]": 0.0767,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[pipelex/kit/configs/pipelex_service.toml]": 0.0017,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[pipelex/kit/configs/plxt.toml]": 0.0056,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[pipelex/kit/configs/telemetry.project.toml]": 0.0076,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[pipelex/kit/configs/telemetry.toml]": 0.0073,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[pipelex/pipelex.toml]": 1.2584,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[tests/pipelex_unit_test.toml]": 0.0018,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_inputs_sync.py::TestFixApplierInputsSync::test_block_inputs_diff_matches_golden_bytes": 0.0039,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_inputs_sync.py::TestFixApplierInputsSync::test_dotted_input_key_survives_format": 0.1035,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_inputs_sync.py::TestFixApplierInputsSync::test_explicit_empty_block_keeps_its_comment": 0.0036,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_inputs_sync.py::TestFixApplierInputsSync::test_inline_diff_applied_twice_is_idempotent": 0.0069,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_inputs_sync.py::TestFixApplierInputsSync::test_inline_inputs_diff_matches_golden_bytes": 0.8295,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_inputs_sync.py::TestFixApplierInputsSync::test_missing_inputs_table_created_as_inline_table": 0.0042,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_inputs_sync.py::TestFixApplierInputsSync::test_missing_table_creation_applied_twice_is_idempotent": 0.0021,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_a_wildcard_key_remap_over_an_absent_table_skips": 0.0021,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_a_wildcard_key_remap_skips_over_a_value_that_is_not_a_string": 0.0018,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_a_wildcard_key_remap_that_matches_no_value_skips_without_touching_the_document": 0.0021,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_a_wildcard_key_remaps_every_value_of_the_addressed_table": 0.0055,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_ensure_table_over_a_non_table_key_is_a_conflict": 0.0011,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_ensure_table_with_a_genuinely_missing_parent_still_skips": 0.0891,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_move_key_blocked_by_a_scalar_destination_parent_conflicts": 0.0032,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_move_key_into_a_parent_that_has_to_be_created": 0.935,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_move_key_leaves_untouched_lines_byte_identical": 0.0019,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_move_key_onto_an_occupied_destination_conflicts_and_writes_nothing": 0.0024,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_move_key_replays_to_a_no_op": 0.0042,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_move_key_with_an_absent_source_skips": 0.0036,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_remap_value_detail_never_echoes_the_users_value": 0.0022,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_remap_value_on_a_non_string_skips": 0.0013,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_remap_value_rewrites_only_mapped_values": 0.0075,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_rename_onto_an_occupied_key_is_a_conflict_not_a_skip": 0.0011,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_wildcard_applies_to_every_entry_of_an_open_mapping": 0.0057,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_wildcard_conflict_in_one_entry_wins_over_siblings_and_writes_nothing": 0.002,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_wildcard_over_an_absent_node_skips": 0.0015,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_apply_twice_is_idempotent": 0.0012,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_delete_missing_concept_is_skipped": 0.1519,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_delete_removes_table_and_its_structure_subtable": 0.0023,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_leading_comment_on_deleted_table_goes_with_it": 0.0009,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_leading_comment_on_deleted_table_reflows_onto_successor": 0.0021,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_strip_matches_golden_bytes[native_redecl_dotted-Number]": 0.0017,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_strip_matches_golden_bytes[native_redecl_inline-Text]": 0.0019,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_strip_matches_golden_bytes[native_redecl_table-Text]": 0.9496,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_a_renamed_root_scalar_leaves_neither_name_in_the_documents_own_storage": 0.0008,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_a_renamed_root_table_moves_in_the_documents_own_storage": 0.0008,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_a_renamed_scalar_serializes_correctly_and_reads_back_through_every_accessor": 0.9425,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_addressing_a_renamed_key_again_in_the_same_dom_raises_from_inside_tomlkit[[pipelex]\\nalpha = 1\\n\\n[other]\\nz = 0\\n\\n[pipelex.sub]\\nb = 2\\n-table_path1-alpha-beta]": 0.0017,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_addressing_a_renamed_key_again_in_the_same_dom_raises_from_inside_tomlkit[[reporting]\\noutput_config = { directory = \"out\" }\\nretention = 30\\n-table_path0-retention-keep_days]": 0.0017,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_re_reading_between_operations_is_what_makes_the_sequence_work": 0.0842,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_renaming_a_table_valued_key_keeps_the_dom_consistent": 0.0013,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_the_raw_dict_storage_is_left_stale_by_the_rename": 0.0006,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_apply_twice_is_idempotent": 0.0044,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_applies_on_inline_pipe_table": 0.1017,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_applies_on_interleaved_pipe_sections": 0.0013,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_carries_nested_subtable_across_interleaved_chunks": 0.0049,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_conflicts_on_collision": 0.0021,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_conflicts_on_collision_across_interleaved_sections": 0.0023,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_preserves_position_and_comments": 0.0047,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_skips_on_collision": 0.0028,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_skips_on_collision_across_interleaved_sections": 0.0023,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_skips_when_key_absent": 0.0025,
- "tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_strip_matches_golden_bytes": 0.8364,
- "tests/unit/pipelex/pipeline/fixes/test_fix_file_transaction.py::TestFixFileTransaction::test_cleanup_failure_does_not_mask_commit_failure": 0.0791,
- "tests/unit/pipelex/pipeline/fixes/test_fix_file_transaction.py::TestFixFileTransaction::test_cleanup_failure_reports_committed_outcome": 0.0044,
- "tests/unit/pipelex/pipeline/fixes/test_fix_file_transaction.py::TestFixFileTransaction::test_concurrent_edit_is_not_overwritten": 0.0017,
- "tests/unit/pipelex/pipeline/fixes/test_fix_file_transaction.py::TestFixFileTransaction::test_failed_atomic_replace_preserves_original": 0.0032,
- "tests/unit/pipelex/pipeline/fixes/test_fix_file_transaction.py::TestFixFileTransaction::test_multi_file_replace_failure_rolls_back_prior_targets": 0.0053,
- "tests/unit/pipelex/pipeline/fixes/test_fix_file_transaction.py::TestFixFileTransaction::test_rollback_does_not_overwrite_edit_after_prior_commit": 0.0055,
- "tests/unit/pipelex/pipeline/fixes/test_fix_file_transaction.py::TestFixFileTransaction::test_symlink_retarget_during_validation_is_rejected": 0.7212,
+ "tests/unit/pipelex/fix_ops/test_fix_applier.py::TestFixApplier::test_apply_twice_is_idempotent": 0.0021,
+ "tests/unit/pipelex/fix_ops/test_fix_applier.py::TestFixApplier::test_delete_key_missing_is_skipped": 0.0028,
+ "tests/unit/pipelex/fix_ops/test_fix_applier.py::TestFixApplier::test_delete_key_removes_key_preserving_rest": 0.0024,
+ "tests/unit/pipelex/fix_ops/test_fix_applier.py::TestFixApplier::test_delete_table_on_scalar_leaf_is_skipped": 0.0021,
+ "tests/unit/pipelex/fix_ops/test_fix_applier.py::TestFixApplier::test_delete_table_removes_whole_table": 0.0019,
+ "tests/unit/pipelex/fix_ops/test_fix_applier.py::TestFixApplier::test_missing_table_path_is_skipped_not_raised": 0.002,
+ "tests/unit/pipelex/fix_ops/test_fix_applier.py::TestFixApplier::test_serialize_and_format_raises_on_syntax_diagnostic": 0.1365,
+ "tests/unit/pipelex/fix_ops/test_fix_applier.py::TestFixApplier::test_set_key_matches_golden_bytes": 0.8394,
+ "tests/unit/pipelex/fix_ops/test_fix_applier.py::TestFixApplier::test_set_output_on_whole_pipe_inline_table_survives_format": 0.0011,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_a_deleted_key_drops_the_comment_above_it_and_keeps_its_neighbours": 0.0006,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_a_deleted_table_drops_its_own_banner_and_keeps_the_next_one": 0.0009,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_a_move_without_any_comment_around_it_is_unchanged_from_before": 0.0014,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_a_moved_key_takes_the_comment_above_it_and_lands_before_the_destinations_trailing_banner": 0.0008,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_a_moved_table_takes_its_banner_and_leaves_the_next_banner_behind": 0.831,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_a_moved_table_with_a_sub_table_leaves_the_next_banner_where_it_was": 0.0016,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_a_table_moved_into_an_existing_parent_does_not_steal_the_parents_trailing_banner": 0.0013,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a banner glued to the first header travels, and gets the blank line tomlkit gives an appended table]": 0.0019,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a comment glued to the file's first key travels with the key]": 0.0007,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a created intermediate parent under an existing one carries the banner above the outermost created header]": 0.0018,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a deeper dotted assignment climbs through every header-less parent to its banner]": 0.0016,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a dotted assignment at the root is introduced by what sits above it, since its implicit parent renders no header]": 0.001,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a key inserted before a table's first sub-table takes its comment and leaves the sub-table's note on the sub-table]": 0.0022,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a key moved to the root of a file lands under the preamble, not above it]": 0.0014,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a key set into a table lands before the table's trailing banner, not after it]": 0.0008,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a key set into an out-of-order chunk lands in that chunk, before the next section's banner]": 0.0029,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a lone comment block at the top, set apart by a blank line, is the file's preamble and stays]": 0.0017,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a note at the end of the file stays at the end of the file]": 0.0018,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a preamble stays while the banner below it travels]": 0.0012,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a root key set into a file whose first header carries a banner lands above the banner]": 0.0009,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a table ensured under a table lands before the table's trailing banner, not after it]": 0.002,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a trailing run that already opens on a blank line does not gain a second one from tomlkit's indent]": 0.001,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[a wildcard op applies to every match on one document without losing track of positions]": 0.0016,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[an array of tables travels with its banner and leaves the next banner behind]": 0.0023,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[deleting a dotted-assignment key drops the banner above it]": 0.0011,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[deleting the last table of the file takes its banner and the blank line above it]": 0.0008,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[moved into an empty explicit table, the banner sits under that table's header]": 0.0015,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[removing the file's first table from under an implicit parent leaves no blank line at the top]": 0.0017,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[removing the file's first table leaves no blank line at the top]": 0.0014,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[setting an existing key rewrites it in place and moves no comment]": 0.0019,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[the blank line tomlkit adds under an inserted key sits above the note that follows it, not between the note and its header]": 0.0068,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_edge_shapes[the first entry of an implicit parent is introduced by what sits above the parent, and no bare [runtime] header appears]": 0.0027,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_the_kit_template_keeps_every_banner_on_its_section_through_a_move": 0.025,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py::TestFixApplierCommentFidelity::test_the_reshape_entry_carries_every_section_banner_with_its_section": 3.2199,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_created_root_parent_lands_at_the_end_of_the_file": 0.0409,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_split_descendant_beneath_a_nested_proxy_still_renames_whole": 0.008,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_split_descendant_beneath_a_root_proxy_still_renames_whole": 0.0012,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_table_whose_descendant_is_split_across_chunks_moves_and_renames_whole[array of tables between the chunks]": 0.0044,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_table_whose_descendant_is_split_across_chunks_moves_and_renames_whole[dotted keys interleaved in one table]": 0.0014,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_table_whose_descendant_is_split_across_chunks_moves_and_renames_whole[grandchild continued after a sibling]": 0.0076,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_table_whose_descendant_is_split_across_chunks_moves_and_renames_whole[same, with an explicit header]": 0.002,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_a_table_whose_descendant_is_split_across_chunks_moves_and_renames_whole[split two levels down]": 0.005,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_array_of_tables_is_not_addressable": 0.0054,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_delete_table_removes_every_chunk_of_an_out_of_order_table[table-inside-a-proxy]": 0.1178,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_delete_table_removes_every_chunk_of_an_out_of_order_table[the-other-proxy-itself]": 0.0827,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_delete_table_removes_every_chunk_of_an_out_of_order_table[the-proxy-itself]": 0.5728,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_dotted_key_assignment_is_addressable_and_renames": 0.0005,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_ensure_table_emits_an_inline_table": 0.0273,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[.pipelex/pipelex.toml]": 0.0532,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[.pipelex/telemetry.toml]": 0.0065,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[pipelex/kit/configs/pipelex.toml]": 0.0351,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[pipelex/kit/configs/pipelex_service.toml]": 0.0036,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[pipelex/kit/configs/plxt.toml]": 0.0063,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[pipelex/kit/configs/telemetry.project.toml]": 0.0098,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[pipelex/kit/configs/telemetry.toml]": 0.0085,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[pipelex/pipelex.toml]": 0.4997,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_every_table_is_addressable_by_table_path[tests/pipelex_unit_test.toml]": 0.0038,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_inline_table_key_renames_in_place": 0.0712,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_moved_table_leaves_its_banner_comment_behind": 0.1114,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_moved_table_takes_its_banner_comment_along": 0.1951,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_quoted_key_containing_a_dot_is_one_path_segment": 0.0007,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[.pipelex/pipelex.toml]": 0.0418,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[.pipelex/telemetry.toml]": 0.0283,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[pipelex/kit/configs/pipelex.toml]": 0.0426,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[pipelex/kit/configs/pipelex_service.toml]": 0.0052,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[pipelex/kit/configs/plxt.toml]": 0.0068,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[pipelex/kit/configs/telemetry.project.toml]": 0.0055,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[pipelex/kit/configs/telemetry.toml]": 0.0103,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[pipelex/pipelex.toml]": 0.0294,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_reachability_probing_leaves_the_document_untouched[tests/pipelex_unit_test.toml]": 0.0031,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_rename_is_replay_neutral_once_applied": 0.1094,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_renaming_a_block_table_inserts_no_blank_line": 0.0006,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_renaming_a_dotted_head_at_the_document_root_keeps_it_dotted": 0.0015,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_renaming_a_dotted_head_is_replay_neutral_once_applied": 0.0018,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_renaming_a_dotted_head_keeps_it_dotted_and_leaves_its_siblings_alone": 0.0006,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_renaming_a_dotted_head_onto_a_name_already_taken_is_a_conflict": 0.0005,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_renaming_an_inner_segment_of_a_dotted_key_keeps_the_whole_chain_dotted": 0.0013,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_root_level_proxy_rename_rewrites_every_chunk": 0.2834,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_the_specimen_produces_out_of_order_proxies_and_the_live_defaults_do_not": 0.0988,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[.pipelex/pipelex.toml]": 0.0402,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[.pipelex/telemetry.toml]": 0.0103,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[pipelex/kit/configs/pipelex.toml]": 0.0767,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[pipelex/kit/configs/pipelex_service.toml]": 0.0017,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[pipelex/kit/configs/plxt.toml]": 0.0056,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[pipelex/kit/configs/telemetry.project.toml]": 0.0076,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[pipelex/kit/configs/telemetry.toml]": 0.0073,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[pipelex/pipelex.toml]": 1.2584,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py::TestFixApplierConfigSurfaceShapes::test_untouched_round_trip_is_byte_identical[tests/pipelex_unit_test.toml]": 0.0018,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_inputs_sync.py::TestFixApplierInputsSync::test_block_inputs_diff_matches_golden_bytes": 0.0039,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_inputs_sync.py::TestFixApplierInputsSync::test_dotted_input_key_survives_format": 0.1035,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_inputs_sync.py::TestFixApplierInputsSync::test_explicit_empty_block_keeps_its_comment": 0.0036,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_inputs_sync.py::TestFixApplierInputsSync::test_inline_diff_applied_twice_is_idempotent": 0.0069,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_inputs_sync.py::TestFixApplierInputsSync::test_inline_inputs_diff_matches_golden_bytes": 0.8295,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_inputs_sync.py::TestFixApplierInputsSync::test_missing_inputs_table_created_as_inline_table": 0.0042,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_inputs_sync.py::TestFixApplierInputsSync::test_missing_table_creation_applied_twice_is_idempotent": 0.0021,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_a_wildcard_key_remap_over_an_absent_table_skips": 0.0021,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_a_wildcard_key_remap_skips_over_a_value_that_is_not_a_string": 0.0018,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_a_wildcard_key_remap_that_matches_no_value_skips_without_touching_the_document": 0.0021,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_a_wildcard_key_remaps_every_value_of_the_addressed_table": 0.0055,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_ensure_table_over_a_non_table_key_is_a_conflict": 0.0011,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_ensure_table_with_a_genuinely_missing_parent_still_skips": 0.0891,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_move_key_blocked_by_a_scalar_destination_parent_conflicts": 0.0032,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_move_key_into_a_parent_that_has_to_be_created": 0.935,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_move_key_leaves_untouched_lines_byte_identical": 0.0019,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_move_key_onto_an_occupied_destination_conflicts_and_writes_nothing": 0.0024,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_move_key_replays_to_a_no_op": 0.0042,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_move_key_with_an_absent_source_skips": 0.0036,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_remap_value_detail_never_echoes_the_users_value": 0.0022,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_remap_value_on_a_non_string_skips": 0.0013,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_remap_value_rewrites_only_mapped_values": 0.0075,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_rename_onto_an_occupied_key_is_a_conflict_not_a_skip": 0.0011,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_wildcard_applies_to_every_entry_of_an_open_mapping": 0.0057,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_wildcard_conflict_in_one_entry_wins_over_siblings_and_writes_nothing": 0.002,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py::TestFixApplierMigrationOps::test_wildcard_over_an_absent_node_skips": 0.0015,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_apply_twice_is_idempotent": 0.0012,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_delete_missing_concept_is_skipped": 0.1519,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_delete_removes_table_and_its_structure_subtable": 0.0023,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_leading_comment_on_deleted_table_goes_with_it": 0.0009,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_leading_comment_on_deleted_table_reflows_onto_successor": 0.0021,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_strip_matches_golden_bytes[native_redecl_dotted-Number]": 0.0017,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_strip_matches_golden_bytes[native_redecl_inline-Text]": 0.0019,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_native_concept.py::TestFixApplierNativeConcept::test_strip_matches_golden_bytes[native_redecl_table-Text]": 0.9496,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_a_renamed_root_scalar_leaves_neither_name_in_the_documents_own_storage": 0.0008,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_a_renamed_root_table_moves_in_the_documents_own_storage": 0.0008,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_a_renamed_scalar_serializes_correctly_and_reads_back_through_every_accessor": 0.9425,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_addressing_a_renamed_key_again_in_the_same_dom_raises_from_inside_tomlkit[[pipelex]\\nalpha = 1\\n\\n[other]\\nz = 0\\n\\n[pipelex.sub]\\nb = 2\\n-table_path1-alpha-beta]": 0.0017,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_addressing_a_renamed_key_again_in_the_same_dom_raises_from_inside_tomlkit[[reporting]\\noutput_config = { directory = \"out\" }\\nretention = 30\\n-table_path0-retention-keep_days]": 0.0017,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_re_reading_between_operations_is_what_makes_the_sequence_work": 0.0842,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_renaming_a_table_valued_key_keeps_the_dom_consistent": 0.0013,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_rename_dom_consistency.py::TestRenameDomConsistency::test_the_raw_dict_storage_is_left_stale_by_the_rename": 0.0006,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_apply_twice_is_idempotent": 0.0044,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_applies_on_inline_pipe_table": 0.1017,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_applies_on_interleaved_pipe_sections": 0.0013,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_carries_nested_subtable_across_interleaved_chunks": 0.0049,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_conflicts_on_collision": 0.0021,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_conflicts_on_collision_across_interleaved_sections": 0.0023,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_preserves_position_and_comments": 0.0047,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_skips_on_collision": 0.0028,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_skips_on_collision_across_interleaved_sections": 0.0023,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_rename_skips_when_key_absent": 0.0025,
+ "tests/unit/pipelex/fix_ops/test_fix_applier_strip_namespace.py::TestFixApplierStripNamespace::test_strip_matches_golden_bytes": 0.8364,
+ "tests/unit/pipelex/fix_ops/test_fix_file_transaction.py::TestFixFileTransaction::test_cleanup_failure_does_not_mask_commit_failure": 0.0791,
+ "tests/unit/pipelex/fix_ops/test_fix_file_transaction.py::TestFixFileTransaction::test_cleanup_failure_reports_committed_outcome": 0.0044,
+ "tests/unit/pipelex/fix_ops/test_fix_file_transaction.py::TestFixFileTransaction::test_concurrent_edit_is_not_overwritten": 0.0017,
+ "tests/unit/pipelex/fix_ops/test_fix_file_transaction.py::TestFixFileTransaction::test_failed_atomic_replace_preserves_original": 0.0032,
+ "tests/unit/pipelex/fix_ops/test_fix_file_transaction.py::TestFixFileTransaction::test_multi_file_replace_failure_rolls_back_prior_targets": 0.0053,
+ "tests/unit/pipelex/fix_ops/test_fix_file_transaction.py::TestFixFileTransaction::test_rollback_does_not_overwrite_edit_after_prior_commit": 0.0055,
+ "tests/unit/pipelex/fix_ops/test_fix_file_transaction.py::TestFixFileTransaction::test_symlink_retarget_during_validation_is_rejected": 0.7212,
"tests/unit/pipelex/pipeline/fixes/test_fix_loop_bail.py::TestFixLoopBail::test_repeated_fingerprint_bails_loudly": 0.8123,
"tests/unit/pipelex/pipeline/fixes/test_fix_loop_multi_file_scoping.py::TestFixLoopMultiFileScoping::test_collision_scan_rebuilds_after_each_written_round": 0.0094,
"tests/unit/pipelex/pipeline/fixes/test_fix_loop_multi_file_scoping.py::TestFixLoopMultiFileScoping::test_entry_file_sourced_fix_is_always_writable": 0.0071,
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d90cef2bd..2799203a6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,10 @@
- **The gateway refusal families leave the core classifier (Breaking)**: `GatewayRequestLimit`, `GatewayUnresolvedReference` and `GatewayRoutingRefusal`, the matching properties of `ProviderErrorMetadata` and fields of `ClassificationResult`, and `MANAGED_GATEWAY_BACKEND_NAMES` are removed; a gateway's own codes now reach `ClassificationResult.service_error_code` through the plugin that contributes them, and Portkey's `model_not_allowed_error` is read by `ProviderErrorMetadata.is_model_not_allowed` and `ClassificationResult.is_model_not_allowed`. Errors raised by the hosted-only provider plugin now report the `type` and `title` of their generic family, such as `extract-job-failure-error`, rather than pages and titles of their own.
- **The default extractors are waterfalls**: `@default-extract-document` takes the first of Azure Document Intelligence, Mistral OCR and `pypdfium2-extract-pdf` that an enabled backend serves, and `@default-extract-image` and `@default-premium` the first of the two OCR models, where all three named Azure Document Intelligence, which only the Pipelex Gateway and Pipelex Manifold serve. A `PipeExtract` step naming no model therefore runs on Manifold, on Mistral OCR with your own key, or, for a PDF, on its text layer read locally, which recovers no text from a scanned page; a project's managed `3_extract_deck.toml` takes the new aliases with `pipelex update`.
+### Fixed
+
+- **A kernel-only boot over a stale configuration file stays kernel-only (Breaking)**: the boot-tolerance replay no longer loads interpreter modules into a `RuntimeBoot` process, because the fix-op applier, the file transaction and their errors moved from `pipelex.pipeline` to the new kernel-layer `pipelex.fix_ops` package; import `FixWriteConflictError` and `FixTransactionError` from `pipelex.fix_ops.exceptions`, and the applier and transaction from `pipelex.fix_ops.applier` and `pipelex.fix_ops.file_transaction`.
+
### Removed
- **The builder: `pipelex-agent concept`, `pipelex-agent pipe`, `pipelex build runner` and `pipelex.builder` (Breaking)**: the two agent commands that converted a JSON concept or pipe spec into MTHDS TOML, and `pipelex build runner bundle` and `pipelex build runner method`, which wrote a Python script running a pipe, are gone with the spec layer behind them, `ConceptSpec`, `PipeSpec`, `PipelexBundleSpec` and the `ConceptSpecError`, `PipeSpecError` and `PipelexBundleSpecBlueprintError` classes; write a method in MTHDS directly and check it with `pipelex validate`, and take a runner's typed structures from `pipelex build structures` or `pipelex codegen types --target python-structures`. The `pipelex.builder` package no longer exists: the modules the runtime still uses moved, `pipelex.builder.conventions` to `pipelex.pipeline.default_file_names`, `pipelex.builder.operations.models_ops` to `pipelex.cogt.models.model_listing` and `pipelex.builder.operations.inputs_ops` to `pipelex.pipeline.inputs_template`, and the others are deleted with the helpers only they used, `force_include_dirs` on `pipelex.tools.misc.file_utils.find_files_in_dir` among them, which only forced the builder package into library loading. The `circular_dependency_error` validation error type, which only the spec layer's pipe sorter raised, leaves the `error_type` registry and the API server's OpenAPI schema.
diff --git a/docs/contribute/hub-layering.md b/docs/contribute/hub-layering.md
index 4981f7e9e..5ff4b1045 100644
--- a/docs/contribute/hub-layering.md
+++ b/docs/contribute/hub-layering.md
@@ -243,9 +243,9 @@ make check-hub-layering # alias: make chl
An AST guard (`pipelex-dev check-hub-layering`, core in `pipelex/cli/dev_cli/commands/hub_layering_guard.py`) that runs in `make agent-check`, in the `make check` aggregate, and in CI. It checks three rules over `pipelex/` and `tests/`:
-1. **The layer rule.** A module in the declared kernel layer — `pipelex.cogt`, `pipelex.core`, `pipelex.errors`, `pipelex.graph`, `pipelex.kernel`, `pipelex.observer`, `pipelex.plugins`, `pipelex.providers`, `pipelex.reporting`, `pipelex.system`, `pipelex.test_extras`, `pipelex.tools`, `pipelex.tracing`, plus the `pipelex.runtime_hub` and `pipelex.runtime_boot` modules themselves — may not import `pipelex.interpreter_hub`. The declaration is compliant with an empty exception list, so the guard hard-blocks on **any** violation. Entries are matched exact-or-dotted-prefix, which is why a bare *module* is a legal entry beside the packages: without `pipelex.runtime_hub` spelled out, the module at the centre of the rule would be exempt from it, and without `pipelex.runtime_boot` the kernel layer's own composition root would be — see [Where the boot splits](#where-the-boot-splits). `pipelex.core` was six entries until its interpreter tenants moved out — see [Where core splits](#where-core-splits) for what that enumeration was working around.
+1. **The layer rule.** A module in the declared kernel layer — `pipelex.cogt`, `pipelex.core`, `pipelex.errors`, `pipelex.fix_ops`, `pipelex.graph`, `pipelex.kernel`, `pipelex.migration`, `pipelex.observer`, `pipelex.plugins`, `pipelex.providers`, `pipelex.reporting`, `pipelex.system`, `pipelex.test_extras`, `pipelex.tools`, `pipelex.tracing`, plus the `pipelex.runtime_hub` and `pipelex.runtime_boot` modules themselves — may not import `pipelex.interpreter_hub`. The declaration is compliant with an empty exception list, so the guard hard-blocks on **any** violation. Entries are matched exact-or-dotted-prefix, which is why a bare *module* is a legal entry beside the packages: without `pipelex.runtime_hub` spelled out, the module at the centre of the rule would be exempt from it, and without `pipelex.runtime_boot` the kernel layer's own composition root would be — see [Where the boot splits](#where-the-boot-splits). `pipelex.core` was six entries until its interpreter tenants moved out — see [Where core splits](#where-core-splits) for what that enumeration was working around.
- `graph`, `tracing`, `observer` and `errors` joined the list late, and the delay cost something — see [Known inversions](#known-inversions). They are the run-graph data model with its tracer and renderers, the trace-event assembler feeding it, the run-observation hooks, and the error taxonomy: machinery present at execution time whatever is loaded, which is the kernel layer's own definition. `pipelex.test_extras` is on the list for the same reason: it ships, `runtime_boot.py` imports it at boot, and it measures clean. `pipelex.kernel` is the same rule applied *ahead* of a breach instead of behind one: it was declared in the commit that created the package, because it holds the operator-execution semantics the interpreter's operator classes call into, and a single `interpreter_hub` reach anywhere in it would put the interpreter back into every programmatic caller — the property the package exists to provide. `pipelex.kit` is data files with no module to police; `pipelex.language`, `pipelex.runtime_bridge` and `pipelex.cli` all measure dirty and are interpreter-side by construction. `pipelex.migration` measures dirty too, and it is the one entry where that is worth explaining rather than asserting: it never reaches `interpreter_hub`, so **declaring it would pass the guard** — and would be the overreaching declaration this page's first [known inversion](#known-inversions) is about, because its replay engine imports `pipeline.fixes.applier`, deliberately, so that a configuration migration and an `.mthds` fix apply operations through one applier and one set of transaction primitives. It stays undeclared and interpreter-side, and the kernel layer reaches it the only way it may: `system/configuration/config_surface.py` defers the engine import into the boot-tolerance retry, so a healthy boot loads none of it. That deferral is load-bearing and the lint cannot see it — a module-level import there keeps `make check-hub-layering` green and turns the [closure test](#the-property-the-import-closure-test) red at every kernel-layer entry point that reaches the loaders, which is that test's whole reason for existing. That is every top-level package accounted for — which is the point, because the rule of thumb is that a measured-clean package should be *declared*, not left undeclared: **an undeclared package is not neutral, it is unpoliced.**
+ `graph`, `tracing`, `observer` and `errors` joined the list late, and the delay cost something — see [Known inversions](#known-inversions). They are the run-graph data model with its tracer and renderers, the trace-event assembler feeding it, the run-observation hooks, and the error taxonomy: machinery present at execution time whatever is loaded, which is the kernel layer's own definition. `pipelex.test_extras` is on the list for the same reason: it ships, `runtime_boot.py` imports it at boot, and it measures clean. `pipelex.kernel` is the same rule applied *ahead* of a breach instead of behind one: it was declared in the commit that created the package, because it holds the operator-execution semantics the interpreter's operator classes call into, and a single `interpreter_hub` reach anywhere in it would put the interpreter back into every programmatic caller — the property the package exists to provide. `pipelex.kit` is data files with no module to police; `pipelex.language`, `pipelex.runtime_bridge` and `pipelex.cli` all measure dirty and are interpreter-side by construction. `pipelex.methods` measures dirty as well, without reaching `interpreter_hub`: its structures check reads the stamp the code generator writes, and `pipelex.codegen` is an interpreter package. `pipelex.migration` and `pipelex.fix_ops` are declared because a kernel-layer boot *runs* them: a configuration file that fails validation is replayed through the migration engine in memory before the boot gives up, so the engine is part of every kernel-layer boot that meets a stale file. `fix_ops` holds the applier and the file transaction the engine shares with the `.mthds` fix loop, one applier and one set of transaction primitives for both; it sits below the interpreter layer so that sharing them costs the kernel nothing — see [Known inversions](#known-inversions) for what it cost while they lived under `pipelex.pipeline`. `system/configuration/config_surface.py` still defers the engine import into the boot-tolerance retry, but only so that a healthy boot never loads it, not to keep the layering. That is every top-level package accounted for — which is the point, because the rule of thumb is that a measured-clean package should be *declared*, not left undeclared: **an undeclared package is not neutral, it is unpoliced.**
2. **The dead-module rule.** *No* scanned module may reference `pipelex.hub`. It was deleted rather than aliased so a stale import fails loudly; this closes the one hole in that guarantee.
3. **The transitive rule.** No kernel-layer module may *reach* `pipelex.interpreter_hub` either, through any chain of module-level imports. Rules 1 and 2 are per-file and see one hop; this one resolves the whole module-level import graph of `pipelex/` and does reachability over it, reporting the shortest chain and the line of its first hop. It exists because the one-hop rules missed a live breach for a whole release: four modules of the declared kernel-layer `pipelex.plugins` package reached the interpreter hub through `runtime_bridge`, `pipeline` and `pipe_operators`, and both gates stayed green (see [Known inversions](#known-inversions)). A *direct* import is left to rule 1, which names the more specific remedy, rather than reported twice.
@@ -312,6 +312,8 @@ Named so this document stays honest.
**The one the worked example predicted, found by declaring the package.** `graph/graph_rendering.py` imported `pipeline.dry_run_pipeline` at module level, and importing it pulled in `interpreter_hub` plus ~76 interpreter modules. Every gate stayed green, for a reason worth stating plainly: rules 1 and 3 both filter their candidates through `is_kernel_layer`, and `pipelex.graph` was not declared — so the module had been outside the rules' domain the whole time. This is the `pipelex.plugins` breach again, one level up: not a package whose declaration overreached, but a package with **no** declaration at all. The remedy was placement, as before. The module split along "do I need a loaded method?", which is this boundary's own question: the pure renderer (`GraphFormat`, `render_graph_from_spec`) stayed in `pipelex.graph`, and the bundle-driven half that has to dry-run a method first (`generate_graph_for_bundle`, `generate_view_for_bundle`) became `pipelex.pipeline.bundle_graph_rendering`, next to the `dry_run_pipeline` it exists to wrap. The lesson is the one this page now states under [The rule](#the-rule-make-check-hub-layering): **an undeclared package is not neutral, it is unpoliced** — omitting an entry makes the guard quieter, never louder.
+**The one only a stale file could show.** The configuration-migration engine applied its operations through `pipeline.fixes.applier` and committed them through `pipeline.fixes.file_transaction`, so that `pipelex migrate` and the `.mthds` fix loop share one applier. The configuration loaders reach the engine only from the boot-tolerance retry, and that deferred import was taken to be what kept the kernel clean — it was, on a machine whose files were current. A kernel-layer boot that met a stale file, a retired `[pipelex_gateway]` section in a telemetry override for instance, replayed the ledger and left `pipelex.pipeline`, `pipelex.pipeline.fixes` and `pipelex.pipeline.fixes.applier` in `sys.modules`. Every static gate stayed green, because the engine never reached `interpreter_hub`, and the boot-time closure test passed on every clean machine, because a clean machine never takes the retry. The remedy moved the applier, the file transaction and their two errors to `pipelex/fix_ops/`, declared it and `pipelex.migration` kernel-layer, and added a closure case that boots with a home directory holding a stale file on purpose and requires the boot to have reached the replay. The lesson: **a failure path is part of the closure too**, and a closure test that only ever runs the healthy path measures the machine it runs on.
+
**The one an aggregate module hid.** Five built-in vendor adapters — `providers/{anthropic,bedrock,google,mistral}/*_list.py` — imported `MissingDependencyError` from `pipelex.exceptions` rather than from its definition site in `pipelex.system.exceptions`. `pipelex/exceptions.py` is the *public all-errors aggregate*: it re-exports every interpreter package's exceptions, so importing anything from it loads `pipeline.exceptions` → `validation_errors` → `fixes.planner` and more. Each of those five declared kernel-layer modules therefore loaded 15 interpreter modules. Neither gate could see it: the guard's rules only chase `interpreter_hub`, and the aggregate never reaches it; the closure test's `providers.builtins` entry point does not cover these modules either, because the vendor plugins import them *inside a function*, which hides them from the static import graph and from the aggregator's own closure at once. The fix is the repo's existing rule — *direct full-path imports everywhere*, i.e. import from where the symbol is defined, never from a convenience aggregate — plus one new entry point (`providers.anthropic.anthropic_list`) so the runtime-truth check now covers the shape. The generalizable lesson: **a module that re-exports across layers is a layer boundary with the sign filed off**, and a deferred import will hide it from every static gate you have. Since then the rule is mechanical rather than prose: `tests/unit/pipelex/test_kernel_layer_exceptions_aggregate_gate.py` AST-walks every package declared in `KERNEL_LAYER_PACKAGES` and fails on any import of `pipelex.exceptions` — module-level or function-local, absolute or relative — as well as on any bare string naming it, since an `import_module` argument or a patch target loads the aggregate through a path no import node records. The next aggregate reference in the kernel layer is caught by CI instead of by review. The aggregate itself remains a legitimate public surface for callers *outside* the kernel layer; the ban is scoped to the layer whose closure it would silently widen.
- **`cogt` names four specific vendors, deliberately.** `cogt/config_cogt.py` imports `AnthropicConfig`, `GoogleConfig`, `MistralConfig` and `OpenAIConfig` from their `pipelex/providers/` packages. Both sides are kernel-layer, so this breaches no hub rule — it is a placement inversion: the vendor-neutral engine names four vendors. It is accepted rather than fixed, because the alternative is worse. The main config model is statically typed end-to-end (`system/configuration/configs.py` and the `pipelex.toml` files are structurally synced, and boot fails loud when they disagree), so making vendor config sections plugin-contributed would trade compile-time typing for a dynamic registry — a real loss to buy a cosmetic win. The edge is one-way and shallow: a config class, not a worker.
diff --git a/docs/errors/execution-and-runtime.md b/docs/errors/execution-and-runtime.md
index 8ed82dc00..5154d7282 100644
--- a/docs/errors/execution-and-runtime.md
+++ b/docs/errors/execution-and-runtime.md
@@ -25,8 +25,6 @@ own page. Classes are grouped by subsystem.
## Pipeline execution
-- [`FixTransactionError`](fix-transaction-error.md) — Fix transaction
-- [`FixWriteConflictError`](fix-write-conflict-error.md) — Fix write conflict
- [`PipeExecutionError`](pipe-execution-error.md) — Pipe execution
- [`PipeIOContractError`](pipe-io-contract-error.md) — Pipe IO contract
- [`PipeStackOverflowError`](pipe-stack-overflow-error.md) — Pipe stack overflow
diff --git a/docs/errors/fix-transaction-error.md b/docs/errors/fix-transaction-error.md
index 9b7f8f9a0..8de889624 100644
--- a/docs/errors/fix-transaction-error.md
+++ b/docs/errors/fix-transaction-error.md
@@ -7,7 +7,7 @@ description: "Reference for the `FixTransactionError` Pipelex error class."
# Fix transaction
-An autofix multi-file commit failed and could not be fully rolled back.
+A multi-file commit failed and could not be fully rolled back.
| Field | Value |
|---|---|
@@ -15,7 +15,7 @@ An autofix multi-file commit failed and could not be fully rolled back.
| `title` | Fix transaction |
| `type_uri` | `https://docs.pipelex.com/latest/errors/fix-transaction-error/` |
| `error_domain` | _(inherited from parent)_ |
-| Defined in | `pipelex.pipeline.exceptions` |
+| Defined in | `pipelex.fix_ops.exceptions` |
| Parent class | [`PipelexUnexpectedError`](pipelex-unexpected-error.md) |
[Back to Error Reference](index.md)
diff --git a/docs/errors/fix-write-conflict-error.md b/docs/errors/fix-write-conflict-error.md
index 718ceaffb..c6e116126 100644
--- a/docs/errors/fix-write-conflict-error.md
+++ b/docs/errors/fix-write-conflict-error.md
@@ -7,7 +7,7 @@ description: "Reference for the `FixWriteConflictError` Pipelex error class."
# Fix write conflict
-A bundle changed after autofix read it but before the atomic commit.
+A file changed after a fix or a migration read it but before the atomic commit.
| Field | Value |
|---|---|
@@ -15,7 +15,7 @@ A bundle changed after autofix read it but before the atomic commit.
| `title` | Fix write conflict |
| `type_uri` | `https://docs.pipelex.com/latest/errors/fix-write-conflict-error/` |
| `error_domain` | _(inherited from parent)_ |
-| Defined in | `pipelex.pipeline.exceptions` |
+| Defined in | `pipelex.fix_ops.exceptions` |
| Parent class | [`PipelexError`](pipelex-error.md) |
[Back to Error Reference](index.md)
diff --git a/docs/errors/index.md b/docs/errors/index.md
index 4e88f6eb0..cf99d4329 100644
--- a/docs/errors/index.md
+++ b/docs/errors/index.md
@@ -18,7 +18,7 @@ the error came from:
- [Authoring & language](authoring-and-language.md) — MTHDS parsing, Core language, Pipe operators, Pipe controllers, Pipe signatures, Libraries.
- [Execution & runtime](execution-and-runtime.md) — Pipe execution, Pipeline execution, Runtime bridge, Graph, Tracing.
- [Inference & providers](inference-and-providers.md) — Inference (Cogt), Provider adapters, Plugin system.
-- [Platform & tooling](platform-and-tooling.md) — Base & root errors, Tools, Kit, System & configuration, CLI, Codegen, Methods, Migration.
+- [Platform & tooling](platform-and-tooling.md) — Base & root errors, Tools, Kit, System & configuration, CLI, Codegen, Fix ops, Methods, Migration.
See [Error Model](../under-the-hood/error-model.md) for the underlying contract
and classification rules.
diff --git a/docs/errors/platform-and-tooling.md b/docs/errors/platform-and-tooling.md
index 02005233f..385530a29 100644
--- a/docs/errors/platform-and-tooling.md
+++ b/docs/errors/platform-and-tooling.md
@@ -104,6 +104,11 @@ own page. Classes are grouped by subsystem.
- [`CodegenLockError`](codegen-lock-error.md) — Codegen lock error
- [`CodegenStampError`](codegen-stamp-error.md) — Codegen stamp error
+## Fix ops
+
+- [`FixTransactionError`](fix-transaction-error.md) — Fix transaction
+- [`FixWriteConflictError`](fix-write-conflict-error.md) — Fix write conflict
+
## Methods
- [`MethodDependencyFetchError`](method-dependency-fetch-error.md) — Method dependency fetch
diff --git a/docs/migration-ledger.md b/docs/migration-ledger.md
index 533d19311..da0b6afd0 100644
--- a/docs/migration-ledger.md
+++ b/docs/migration-ledger.md
@@ -561,7 +561,7 @@ The rules this encodes:
> **A surface whose files are independent documents calls the helper once per file.** The helper deep-merges the paths it is given, which is exactly right for a tier stack: `pipelex.toml` beneath `pipelex_local.toml` beneath `pipelex_override.toml` are layers of one configuration, and the thing that has to validate is their merge. Backend definitions are not layers of anything — `openai.toml` and `portkey.toml` are separate documents that happen to share a directory, and merging them would produce a backend nobody has. So that loader passes one path per call and keeps the results apart, and composes one warning covering every file the round recovered.
-> **The migration engine is imported inside the retry, not at the top of the module.** Its applier lives under `pipelex.pipeline` — an interpreter package — while the configuration loaders sit in `runtime_hub`'s import closure, and the kernel layer's property is that importing it loads zero interpreter modules (see [`hub-layering.md`](contribute/hub-layering.md)). A module-level import would break that silently: the layering guard mechanically checks reachability to `interpreter_hub`, which `pipelex.pipeline.fixes.applier` does not have, so nothing would have gone red. The deferred import is also what makes "the healthy path is untouched" literal rather than approximate.
+> **The migration engine is imported inside the retry, not at the top of the module, and that is what makes "the healthy path is untouched" literal rather than approximate.** It is not what keeps the boot inside the kernel layer: the engine and the applier it uses (`pipelex.fix_ops`) are both kernel-layer, because the retry runs inside every kernel-layer boot that meets a stale file, so the replay path must load zero interpreter modules just as the healthy one does (see [`hub-layering.md`](contribute/hub-layering.md)). `tests/unit/pipelex/test_runtime_boot_closure.py` boots over a stale file to hold it to that.
**Boot tolerance does not run the [downgrade diagnosis](#the-downgrade-direction).** On this path the model has already spoken, and pydantic's own extra-field list is both the same answer and a better one — it knows about validators, which a path walk does not. The diagnosis exists for `pipelex migrate`, where nothing validates the file at all. So "unexplained paths still fail the boot" is satisfied by the re-validation failing, and the `migration` block on the error carries the plans.
diff --git a/docs/under-the-hood/error-model.md b/docs/under-the-hood/error-model.md
index ed70181d1..45b9f9dfe 100644
--- a/docs/under-the-hood/error-model.md
+++ b/docs/under-the-hood/error-model.md
@@ -139,7 +139,7 @@ When a validation error has a deterministic remedy, its `ValidationErrorItem` ca
The **fix planner** (`pipelex/pipeline/fixes/planner.py`) translates enriched typed error data into `SuggestedFix` payloads — pure functions keyed strictly on `error_type` + structured fields, never on message strings. Each rule fires only when its enrichment is present (set only at the raise sites that know the correct value), so the same error type raised elsewhere without enrichment is structurally suppressed. The planner runs inside `build_validation_error_items()`, so every consumer of the validation report — CLI, API, MCP — sees fixes with zero extra plumbing.
-Applying fixes is the runtime's job too: the **applier** (`pipelex/pipeline/fixes/applier.py`) mutates a tomlkit DOM in place per op (guarded — an op whose target table is absent is skipped and reported, never raised) and then reflows the whole file to canonical MTHDS style, and the **convergence loop** (`pipelex/pipeline/fixes/fix_loop.py`) runs validate → apply SAFE fixes → re-validate to a fixed point, reporting non-convergence loudly. The user-facing surface is [`pipelex fix bundle`](../tools/cli/fix.md).
+Applying fixes is the runtime's job too: the **applier** (`pipelex/fix_ops/applier.py`) mutates a tomlkit DOM in place per op (guarded — an op whose target table is absent is skipped and reported, never raised) and then reflows the whole file to canonical MTHDS style, and the **convergence loop** (`pipelex/pipeline/fixes/fix_loop.py`) runs validate → apply SAFE fixes → re-validate to a fixed point, reporting non-convergence loudly. The user-facing surface is [`pipelex fix bundle`](../tools/cli/fix.md).
On the hosted API the same payload rides the wire verbatim as `validation_errors[].suggested_fix`; how it appears in HTTP error responses is documented on the API side, in the API server's [Error Responses](../api-server/error-responses.md#suggested-fixes) page.
diff --git a/pipelex/cli/dev_cli/commands/hub_layering_guard.py b/pipelex/cli/dev_cli/commands/hub_layering_guard.py
index 2dbadcbab..fe10deb00 100644
--- a/pipelex/cli/dev_cli/commands/hub_layering_guard.py
+++ b/pipelex/cli/dev_cli/commands/hub_layering_guard.py
@@ -145,8 +145,18 @@ SCAN_ROOTS: tuple[Path, ...] = (SOURCE_ROOT, TESTS_ROOT)
#: caller — the exact property the package exists to provide. Declaring it also enrols it in the
#: `pipelex.exceptions` aggregate gate, whose domain *is* this tuple.
#:
+#: `pipelex.migration` and `pipelex.fix_ops` are declared because a kernel-layer boot *runs* them:
+#: a configuration file that fails validation is replayed through the migration engine in memory
+#: before the boot gives up, so the engine is part of every kernel-layer boot that meets a stale file.
+#: The engine applies its operations through `fix_ops`, the applier and file transaction it shares
+#: with the `.mthds` fix loop; while those lived under `pipelex.pipeline`, a stale file put three
+#: interpreter modules into a kernel-only process and no static gate could see it, because the
+#: engine never reached `interpreter_hub`. Declaring both is what keeps the next such import loud.
+#:
#: `pipelex.kit` is data files with no module to police; `pipelex.language`, `pipelex.runtime_bridge`
-#: and `pipelex.cli` all measure dirty and are interpreter-side by construction. That is every
+#: and `pipelex.cli` all measure dirty and are interpreter-side by construction. `pipelex.methods`
+#: measures dirty as well, without reaching `interpreter_hub`: its structures check reads the stamp
+#: the code generator writes, and `pipelex.codegen` is an interpreter package. That is every
#: top-level package accounted for.
#: That the declaration is a claim rather than a hope is why it is asserted by a test.
#: See the "Where core splits" section of ``docs/contribute/hub-layering.md``.
@@ -154,8 +164,10 @@ KERNEL_LAYER_PACKAGES: tuple[str, ...] = (
"pipelex.cogt",
"pipelex.core",
"pipelex.errors",
+ "pipelex.fix_ops",
"pipelex.graph",
"pipelex.kernel",
+ "pipelex.migration",
"pipelex.observer",
"pipelex.plugins",
"pipelex.providers",
diff --git a/pipelex/fix_ops/__init__.py b/pipelex/fix_ops/__init__.py
new file mode 100644
index 000000000..f37f89b67
--- /dev/null
+++ b/pipelex/fix_ops/__init__.py
@@ -0,0 +1,8 @@
+"""Applying ``FixOp`` patch operations to TOML documents, and committing the result to disk.
+
+Two callers share this package: the ``.mthds`` fix loop (``pipelex.pipeline.fixes``) and the
+configuration-migration engine (``pipelex.migration``). It is kernel-layer, and it sits here rather
+than under either caller for that reason: the migration engine runs inside a kernel-layer boot that
+meets a stale configuration file, so what it applies operations with must load no interpreter module
+(``docs/contribute/hub-layering.md``).
+"""
diff --git a/pipelex/pipeline/fixes/applier.py b/pipelex/fix_ops/applier.py
similarity index 99%
rename from pipelex/pipeline/fixes/applier.py
rename to pipelex/fix_ops/applier.py
index aa4a8dd68..869e753f8 100644
--- a/pipelex/pipeline/fixes/applier.py
+++ b/pipelex/fix_ops/applier.py
@@ -133,7 +133,7 @@ def _rename_key_in_place(*, parent_table: dict[str, Any], key: str, new_key: str
The ``.mthds`` fix path is unaffected because it renames ``[pipe.*]`` tables, which take the
branch tomlkit does keep in step; configuration migration re-reads the document between
operations that applied, for its own reasons, and is unaffected too. Both facts are pinned by
- ``tests/unit/pipelex/pipeline/fixes/test_fix_applier_rename_dom_consistency.py``, which is the
+ ``tests/unit/pipelex/fix_ops/test_fix_applier_rename_dom_consistency.py``, which is the
tripwire if this is ever repaired across every facade.
``_resolve_table`` hands back one of three dict-like shapes, each with its own route to the
diff --git a/pipelex/fix_ops/exceptions.py b/pipelex/fix_ops/exceptions.py
new file mode 100644
index 000000000..c3106db99
--- /dev/null
+++ b/pipelex/fix_ops/exceptions.py
@@ -0,0 +1,9 @@
+from pipelex.base_exceptions import PipelexError, PipelexUnexpectedError
+
+
+class FixWriteConflictError(PipelexError):
+ """A file changed after a fix or a migration read it but before the atomic commit."""
+
+
+class FixTransactionError(PipelexUnexpectedError):
+ """A multi-file commit failed and could not be fully rolled back."""
diff --git a/pipelex/pipeline/fixes/file_transaction.py b/pipelex/fix_ops/file_transaction.py
similarity index 98%
rename from pipelex/pipeline/fixes/file_transaction.py
rename to pipelex/fix_ops/file_transaction.py
index 05af0c001..ae0e6b03a 100644
--- a/pipelex/pipeline/fixes/file_transaction.py
+++ b/pipelex/fix_ops/file_transaction.py
@@ -23,7 +23,7 @@ import tempfile
from pathlib import Path
from typing import NamedTuple
-from pipelex.pipeline.exceptions import FixTransactionError, FixWriteConflictError
+from pipelex.fix_ops.exceptions import FixTransactionError, FixWriteConflictError
class FileSnapshot(NamedTuple):
diff --git a/pipelex/migration/backup.py b/pipelex/migration/backup.py
index 6c7c0a857..77cf45ae7 100644
--- a/pipelex/migration/backup.py
+++ b/pipelex/migration/backup.py
@@ -36,7 +36,7 @@ from datetime import datetime
from pathlib import Path
from typing import NamedTuple
-from pipelex.pipeline.fixes.file_transaction import FileSnapshot, write_staged_file
+from pipelex.fix_ops.file_transaction import FileSnapshot, write_staged_file
BACKUP_INFIX = ".bak."
"""What marks a file as one of our backups. Appended to the whole file name, extension included,
diff --git a/pipelex/migration/engine.py b/pipelex/migration/engine.py
index 7b84e9648..0ea567f6f 100644
--- a/pipelex/migration/engine.py
+++ b/pipelex/migration/engine.py
@@ -10,7 +10,7 @@ that applied, rather than carried as a single long-lived DOM. That is not cautio
measured requirement: tomlkit's position-preserving rename leaves the node's raw `dict` storage
out of step with the body it renders from, so a later operation addressing the renamed key raises
`KeyError` from deep inside the library (see
-`tests/unit/pipelex/pipeline/fixes/test_fix_applier_rename_dom_consistency.py`, which pins the
+`tests/unit/pipelex/fix_ops/test_fix_applier_rename_dom_consistency.py`, which pins the
behaviour). Re-reading is exact — serialization is byte-faithful — and it costs a parse of a few
hundred lines per *applied* operation, which under always-replay is almost never.
@@ -41,12 +41,12 @@ from collections.abc import Sequence
import tomlkit
from pydantic import BaseModel, ConfigDict, Field
+from pipelex.fix_ops.applier import FixOpApplication, apply_fix_ops
from pipelex.migration.documents import document_carries_path, document_paths
from pipelex.migration.ledger import MigrationEntry, MigrationLedger
from pipelex.migration.material import declared_path_spellings, spelling_after_replay, unsafe_op_variants
from pipelex.migration.plan import BlockedEntry, BlockedEntryReason, MigrationStep
from pipelex.migration.safety import MigrationSafety
-from pipelex.pipeline.fixes.applier import FixOpApplication, apply_fix_ops
from pipelex.suggested_fix import MigrationOp
diff --git a/pipelex/migration/runner.py b/pipelex/migration/runner.py
index f4071a96e..4c9ad53ee 100644
--- a/pipelex/migration/runner.py
+++ b/pipelex/migration/runner.py
@@ -20,14 +20,14 @@ from tomlkit import TOMLDocument
from tomlkit.exceptions import TOMLKitError
from pipelex import log
+from pipelex.fix_ops.exceptions import FixTransactionError, FixWriteConflictError
+from pipelex.fix_ops.file_transaction import FileSnapshot, PendingFileUpdate, commit_file_updates, read_file_snapshot
from pipelex.migration.backup import RescuedBackup, WrittenBackup, keep_backup_for_rescue, prune_backups_except, write_backup
from pipelex.migration.diagnosis import diagnose_unexplained_paths
from pipelex.migration.engine import DocumentReplay, replay_ledger_over_text
from pipelex.migration.ledger import MigrationLedger, load_ledger_cached
from pipelex.migration.plan import FileBlockedReason, MigrationPlan, MigrationReport, UnexplainedPath
from pipelex.migration.surfaces import Surface, SurfaceRegistry
-from pipelex.pipeline.exceptions import FixTransactionError, FixWriteConflictError
-from pipelex.pipeline.fixes.file_transaction import FileSnapshot, PendingFileUpdate, commit_file_updates, read_file_snapshot
from pipelex.system.configuration.config_surface import version_declared_below_the_floor
diff --git a/pipelex/pipeline/exceptions.py b/pipelex/pipeline/exceptions.py
index bfd4890a9..57b938d49 100644
--- a/pipelex/pipeline/exceptions.py
+++ b/pipelex/pipeline/exceptions.py
@@ -4,7 +4,7 @@ from typing import NamedTuple, Self, TypeVar
from typing_extensions import override
-from pipelex.base_exceptions import ErrorDomain, ErrorReport, PipelexError, PipelexUnexpectedError, ValidationErrorItem
+from pipelex.base_exceptions import ErrorDomain, ErrorReport, PipelexError, ValidationErrorItem
from pipelex.cogt.inference.error_classification import UserAction, UserActionKind
from pipelex.core.exceptions import (
DryRunFailureErrorData,
@@ -111,14 +111,6 @@ class PipelineManagerAlreadyExistsError(PipelexError):
pass
-class FixWriteConflictError(PipelexError):
- """A bundle changed after autofix read it but before the atomic commit."""
-
-
-class FixTransactionError(PipelexUnexpectedError):
- """An autofix multi-file commit failed and could not be fully rolled back."""
-
-
def _summarize_bundle_validation_message(
*,
blueprint_errors: list[PipelexBundleBlueprintValidationErrorData],
diff --git a/pipelex/pipeline/fixes/fix_loop.py b/pipelex/pipeline/fixes/fix_loop.py
index 305a8a43e..6d0520726 100644
--- a/pipelex/pipeline/fixes/fix_loop.py
+++ b/pipelex/pipeline/fixes/fix_loop.py
@@ -32,19 +32,20 @@ from pydantic import BaseModel, ConfigDict, Field
from pipelex.base_exceptions import ValidationErrorItem
from pipelex.config import get_config
-from pipelex.interpreter_hub import resolve_library_dirs
-from pipelex.libraries.library_utils import get_pipelex_mthds_files_from_dirs
-from pipelex.pipe_machinery.pipe_blueprint import SIGNATURE_ONLY_KEYS
-from pipelex.pipeline.exceptions import FixWriteConflictError, ValidateBundleError
-from pipelex.pipeline.fixes.applicability import is_safe_fix_for_load_scope, is_target_in_write_scope
-from pipelex.pipeline.fixes.applier import apply_fix_ops, serialize_and_format
-from pipelex.pipeline.fixes.file_transaction import (
+from pipelex.fix_ops.applier import apply_fix_ops, serialize_and_format
+from pipelex.fix_ops.exceptions import FixWriteConflictError
+from pipelex.fix_ops.file_transaction import (
FileSnapshot,
PendingFileUpdate,
assert_snapshot_unchanged,
commit_file_updates,
read_file_snapshot,
)
+from pipelex.interpreter_hub import resolve_library_dirs
+from pipelex.libraries.library_utils import get_pipelex_mthds_files_from_dirs
+from pipelex.pipe_machinery.pipe_blueprint import SIGNATURE_ONLY_KEYS
+from pipelex.pipeline.exceptions import ValidateBundleError
+from pipelex.pipeline.fixes.applicability import is_safe_fix_for_load_scope, is_target_in_write_scope
from pipelex.pipeline.validate_bundle import validate_bundle
from pipelex.suggested_fix import DeleteKeyOp, DeleteTableOp, EnsureTableOp, FixOp, MoveKeyOp, RemapValueOp, RenameTableKeyOp, SetKeyOp, SuggestedFix
from pipelex.tools.misc.exceptions import TomlError
diff --git a/pipelex/system/configuration/config_surface.py b/pipelex/system/configuration/config_surface.py
index 96f685656..67e6e2be8 100644
--- a/pipelex/system/configuration/config_surface.py
+++ b/pipelex/system/configuration/config_surface.py
@@ -153,11 +153,11 @@ def replay_surface_files_in_memory(*, surface_id: str, paths: Sequence[Path]) ->
are where it is loud; on a machine in the field the user has a configuration error in front of
them, and replacing it with ours would cost them the only message that names what to fix.
"""
- # Imported here rather than at module level, and the reason is architectural: the engine's
- # applier lives under `pipelex.pipeline`, an interpreter package, while this module sits in
- # `runtime_hub`'s import closure — the kernel layer, which loads zero interpreter modules.
- # Deferring it also makes the contract's "the healthy path is untouched" literal: a boot whose
- # configuration validates never even imports the migration engine.
+ # Imported here rather than at module level so that the contract's "the healthy path is
+ # untouched" is literal: a boot whose configuration validates never even imports the migration
+ # engine. The engine is kernel-layer, like this module, so the deferral is not what keeps the
+ # boot clean of interpreter modules — `test_runtime_boot_closure.py` boots over a stale file to
+ # prove that.
from pipelex.migration.engine import replay_ledger_over_text # ruff: ignore[import-outside-top-level]
try:
diff --git a/subject_grants.toml b/subject_grants.toml
index ba967177b..d359c6907 100644
--- a/subject_grants.toml
+++ b/subject_grants.toml
@@ -3136,6 +3136,46 @@ rationale = "Verb-object: renders the page for the error class; single operand."
param = "by_subsystem"
rationale = "Verb-object: renders the index from the subsystem grouping; single operand."
+["pipelex/fix_ops/applier.py::_as_tomlkit_value"]
+param = "value"
+rationale = "Single-operand conversion of the value."
+
+["pipelex/fix_ops/applier.py::_render_syntax_diagnostic"]
+param = "diagnostic"
+rationale = "Verb-object: renders the diagnostic; single operand."
+
+["pipelex/fix_ops/applier.py::serialize_and_format"]
+param = "toml_doc"
+rationale = "Single-operand serialization of the TOML document."
+
+["pipelex/fix_ops/file_transaction.py::_cleanup_staged_updates"]
+param = "staged_updates"
+rationale = "Verb-object: cleans up the staged updates; single operand."
+
+["pipelex/fix_ops/file_transaction.py::_commit_staged_updates"]
+param = "staged_updates"
+rationale = "Verb-object: commits the staged updates; single operand."
+
+["pipelex/fix_ops/file_transaction.py::_rollback_committed_updates"]
+param = "committed_updates"
+rationale = "Verb-object: rolls back the committed updates; single operand."
+
+["pipelex/fix_ops/file_transaction.py::assert_snapshot_unchanged"]
+param = "snapshot"
+rationale = "Validator: the snapshot is the single operand checked."
+
+["pipelex/fix_ops/file_transaction.py::commit_file_updates"]
+param = "updates"
+rationale = "Verb-object: commits the updates; single operand."
+
+["pipelex/fix_ops/file_transaction.py::read_file_snapshot"]
+param = "path"
+rationale = "Factory from source: reads the snapshot of the file at path."
+
+["pipelex/fix_ops/file_transaction.py::stage_file_update"]
+param = "update"
+rationale = "Verb-object: stages the update; single operand."
+
["pipelex/graph/graph_analysis.py::GraphAnalysis.from_graphspec"]
param = "graph"
rationale = "Factory from source: builds the analysis from the graph spec; single operand."
@@ -4460,46 +4500,6 @@ rationale = "Predicate on the fix; is_single_file is context."
param = "target_path"
rationale = "Predicate on the target path; scope params stay keyword."
-["pipelex/pipeline/fixes/applier.py::_as_tomlkit_value"]
-param = "value"
-rationale = "Single-operand conversion of the value."
-
-["pipelex/pipeline/fixes/applier.py::_render_syntax_diagnostic"]
-param = "diagnostic"
-rationale = "Verb-object: renders the diagnostic; single operand."
-
-["pipelex/pipeline/fixes/applier.py::serialize_and_format"]
-param = "toml_doc"
-rationale = "Single-operand serialization of the TOML document."
-
-["pipelex/pipeline/fixes/file_transaction.py::_cleanup_staged_updates"]
-param = "staged_updates"
-rationale = "Verb-object: cleans up the staged updates; single operand."
-
-["pipelex/pipeline/fixes/file_transaction.py::_commit_staged_updates"]
-param = "staged_updates"
-rationale = "Verb-object: commits the staged updates; single operand."
-
-["pipelex/pipeline/fixes/file_transaction.py::_rollback_committed_updates"]
-param = "committed_updates"
-rationale = "Verb-object: rolls back the committed updates; single operand."
-
-["pipelex/pipeline/fixes/file_transaction.py::assert_snapshot_unchanged"]
-param = "snapshot"
-rationale = "Validator: the snapshot is the single operand checked."
-
-["pipelex/pipeline/fixes/file_transaction.py::commit_file_updates"]
-param = "updates"
-rationale = "Verb-object: commits the updates; single operand."
-
-["pipelex/pipeline/fixes/file_transaction.py::read_file_snapshot"]
-param = "path"
-rationale = "Factory from source: reads the snapshot of the file at path."
-
-["pipelex/pipeline/fixes/file_transaction.py::stage_file_update"]
-param = "update"
-rationale = "Verb-object: stages the update; single operand."
-
["pipelex/pipeline/fixes/fix_loop.py::_absolute_source_path"]
param = "path"
rationale = "Single-operand conversion of the path."
diff --git a/tests/integration/pipelex/pipeline/test_fix_convergence_loop.py b/tests/integration/pipelex/pipeline/test_fix_convergence_loop.py
index f2868da1c..f4f4895ba 100644
--- a/tests/integration/pipelex/pipeline/test_fix_convergence_loop.py
+++ b/tests/integration/pipelex/pipeline/test_fix_convergence_loop.py
@@ -13,7 +13,8 @@ import pytest
import tomlkit
from pytest_mock import MockerFixture
-from pipelex.pipeline.exceptions import FixWriteConflictError, ValidateBundleError
+from pipelex.fix_ops.exceptions import FixWriteConflictError
+from pipelex.pipeline.exceptions import ValidateBundleError
from pipelex.pipeline.fixes import fix_loop
from pipelex.pipeline.fixes.fix_loop import fix_bundle_file
diff --git a/tests/unit/pipelex/cli/dev/test_hub_layering_guard.py b/tests/unit/pipelex/cli/dev/test_hub_layering_guard.py
index 0d42d1c36..01cb8b721 100644
--- a/tests/unit/pipelex/cli/dev/test_hub_layering_guard.py
+++ b/tests/unit/pipelex/cli/dev/test_hub_layering_guard.py
@@ -175,6 +175,23 @@ class TestHubLayeringGuard:
"fail by design. Declare pipelex.runtime_boot instead; that is the half that stays clean."
)
+ def test_the_boot_tolerance_replay_stays_declared(self) -> None:
+ """`pipelex.migration` and `pipelex.fix_ops` must stay declared — a kernel-layer boot runs them.
+
+ A configuration file that fails validation is replayed through the migration engine before the
+ boot gives up, so the engine and the applier it uses are part of the kernel layer's boot on any
+ machine with a stale file. Both used to be interpreter-side: the applier lived under
+ `pipelex.pipeline`, which the engine imported without ever reaching `interpreter_hub`, so every
+ static gate stayed green while a stale file loaded interpreter modules into a kernel-only
+ process. Membership is the whole assertion, for the reason the neighbouring tests give.
+ """
+ for package in ("pipelex.migration", "pipelex.fix_ops"):
+ assert package in KERNEL_LAYER_PACKAGES, (
+ f"{package} runs inside a kernel-layer boot that meets a stale configuration file, and it "
+ "is no longer declared kernel-layer. Undeclared means unchecked, not flagged — restore the "
+ "entry, or move whatever made it dirty to the layer it belongs to."
+ )
+
def test_the_pipelex_kernel_stays_declared(self) -> None:
"""`pipelex.kernel` must stay declared — it is the package the whole extraction exists to keep clean.
diff --git a/tests/unit/pipelex/cli/test_migrate_cmd_summary.py b/tests/unit/pipelex/cli/test_migrate_cmd_summary.py
index 8c9253185..72c438a44 100644
--- a/tests/unit/pipelex/cli/test_migrate_cmd_summary.py
+++ b/tests/unit/pipelex/cli/test_migrate_cmd_summary.py
@@ -20,10 +20,10 @@ from rich.console import Console
from pipelex.cli.commands import migrate_cmd as migrate_cmd_module
from pipelex.cli.commands.migrate_cmd import migrate_cmd
+from pipelex.fix_ops.exceptions import FixTransactionError, FixWriteConflictError
+from pipelex.fix_ops.file_transaction import PendingFileUpdate, commit_file_updates
from pipelex.migration.goldens import pre_history_document_path
from pipelex.migration.ledger import packaged_migration_dir
-from pipelex.pipeline.exceptions import FixTransactionError, FixWriteConflictError
-from pipelex.pipeline.fixes.file_transaction import PendingFileUpdate, commit_file_updates
from pipelex.system.configuration.config_surface import TELEMETRY_CONFIG_SURFACE_ID
from pipelex.system.telemetry.telemetry_config import TELEMETRY_CONFIG_OVERRIDE_FILE_NAME
diff --git a/tests/unit/pipelex/pipeline/fixes/test_fix_applier.py b/tests/unit/pipelex/fix_ops/test_fix_applier.py
similarity index 98%
rename from tests/unit/pipelex/pipeline/fixes/test_fix_applier.py
rename to tests/unit/pipelex/fix_ops/test_fix_applier.py
index 807c3e191..761d06119 100644
--- a/tests/unit/pipelex/pipeline/fixes/test_fix_applier.py
+++ b/tests/unit/pipelex/fix_ops/test_fix_applier.py
@@ -15,7 +15,7 @@ import tomlkit
from pytest_mock import MockerFixture
from pipelex.base_exceptions import PipelexUnexpectedError
-from pipelex.pipeline.fixes.applier import FixOpOutcome, apply_fix_ops, serialize_and_format
+from pipelex.fix_ops.applier import FixOpOutcome, apply_fix_ops, serialize_and_format
from pipelex.suggested_fix import DeleteKeyOp, DeleteTableOp, FixOp, SetKeyOp
_FIXTURE_PATH = Path("tests/data/fixes/sequence_wrong_output.mthds")
@@ -114,7 +114,7 @@ class TestFixApplier:
loudly (never write it out), keeping the diagnostic's message and position for debugging.
"""
mocker.patch(
- "pipelex.pipeline.fixes.applier.format_mthds",
+ "pipelex.fix_ops.applier.format_mthds",
return_value={
"formatted": "broken",
"changed": False,
diff --git a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py b/tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py
similarity index 99%
rename from tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py
rename to tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py
index 548eeb9bc..e713b1249 100644
--- a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py
+++ b/tests/unit/pipelex/fix_ops/test_fix_applier_comment_fidelity.py
@@ -19,9 +19,9 @@ import pytest
import tomlkit
from tomlkit import TOMLDocument
+from pipelex.fix_ops.applier import FixOpOutcome, apply_fix_ops
from pipelex.migration.engine import replay_ledger_over_text
from pipelex.migration.ledger import load_ledger, packaged_migration_dir
-from pipelex.pipeline.fixes.applier import FixOpOutcome, apply_fix_ops
from pipelex.suggested_fix import DeleteKeyOp, DeleteTableOp, EnsureTableOp, FixOp, MoveKeyOp, SetKeyOp
_KIT_TEMPLATE = Path("pipelex/kit/configs/pipelex.toml")
diff --git a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py b/tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py
similarity index 99%
rename from tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py
rename to tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py
index b12db25ec..ad8d9e696 100644
--- a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py
+++ b/tests/unit/pipelex/fix_ops/test_fix_applier_config_surface_shapes.py
@@ -27,7 +27,7 @@ import pytest
import tomlkit
from tomlkit import TOMLDocument
-from pipelex.pipeline.fixes.applier import FixOpOutcome, apply_fix_ops
+from pipelex.fix_ops.applier import FixOpOutcome, apply_fix_ops
from pipelex.suggested_fix import DeleteKeyOp, DeleteTableOp, EnsureTableOp, MoveKeyOp, RenameTableKeyOp
# Every configuration file this repository owns and tracks. The packaged defaults are the complete
diff --git a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_inputs_sync.py b/tests/unit/pipelex/fix_ops/test_fix_applier_inputs_sync.py
similarity index 98%
rename from tests/unit/pipelex/pipeline/fixes/test_fix_applier_inputs_sync.py
rename to tests/unit/pipelex/fix_ops/test_fix_applier_inputs_sync.py
index 8124255e9..f893c2119 100644
--- a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_inputs_sync.py
+++ b/tests/unit/pipelex/fix_ops/test_fix_applier_inputs_sync.py
@@ -12,7 +12,7 @@ from pathlib import Path
import tomlkit
-from pipelex.pipeline.fixes.applier import FixOpOutcome, apply_fix_ops, serialize_and_format
+from pipelex.fix_ops.applier import FixOpOutcome, apply_fix_ops, serialize_and_format
from pipelex.suggested_fix import DeleteKeyOp, EnsureTableOp, FixOp, SetKeyOp
_FIXES_DIR = Path("tests/data/fixes")
diff --git a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py b/tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py
similarity index 99%
rename from tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py
rename to tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py
index e9949e39e..7b1446a23 100644
--- a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py
+++ b/tests/unit/pipelex/fix_ops/test_fix_applier_migration_ops.py
@@ -11,7 +11,7 @@ from typing import Any, cast
import tomlkit
-from pipelex.pipeline.fixes.applier import FixOpOutcome, apply_fix_ops
+from pipelex.fix_ops.applier import FixOpOutcome, apply_fix_ops
from pipelex.suggested_fix import (
DeleteKeyOp,
EnsureTableOp,
diff --git a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_native_concept.py b/tests/unit/pipelex/fix_ops/test_fix_applier_native_concept.py
similarity index 98%
rename from tests/unit/pipelex/pipeline/fixes/test_fix_applier_native_concept.py
rename to tests/unit/pipelex/fix_ops/test_fix_applier_native_concept.py
index 1fd89a5eb..4030880e2 100644
--- a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_native_concept.py
+++ b/tests/unit/pipelex/fix_ops/test_fix_applier_native_concept.py
@@ -13,7 +13,7 @@ from pathlib import Path
import pytest
import tomlkit
-from pipelex.pipeline.fixes.applier import FixOpOutcome, apply_fix_ops, serialize_and_format
+from pipelex.fix_ops.applier import FixOpOutcome, apply_fix_ops, serialize_and_format
from pipelex.suggested_fix import DeleteKeyOp, FixOp
_DATA = Path("tests/data/fixes")
diff --git a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_rename_dom_consistency.py b/tests/unit/pipelex/fix_ops/test_fix_applier_rename_dom_consistency.py
similarity index 99%
rename from tests/unit/pipelex/pipeline/fixes/test_fix_applier_rename_dom_consistency.py
rename to tests/unit/pipelex/fix_ops/test_fix_applier_rename_dom_consistency.py
index 027079f4f..217ab9bf2 100644
--- a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_rename_dom_consistency.py
+++ b/tests/unit/pipelex/fix_ops/test_fix_applier_rename_dom_consistency.py
@@ -26,7 +26,7 @@ import pytest
import tomlkit
from tomlkit import TOMLDocument
-from pipelex.pipeline.fixes.applier import FixOpOutcome, apply_fix_ops
+from pipelex.fix_ops.applier import FixOpOutcome, apply_fix_ops
from pipelex.suggested_fix import DeleteKeyOp, RenameTableKeyOp
FLAT = """\
diff --git a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py b/tests/unit/pipelex/fix_ops/test_fix_applier_strip_namespace.py
similarity index 99%
rename from tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py
rename to tests/unit/pipelex/fix_ops/test_fix_applier_strip_namespace.py
index bffb0b15f..2edfda98e 100644
--- a/tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py
+++ b/tests/unit/pipelex/fix_ops/test_fix_applier_strip_namespace.py
@@ -13,7 +13,7 @@ from typing import Any, cast
import tomlkit
-from pipelex.pipeline.fixes.applier import FixOpOutcome, apply_fix_ops, serialize_and_format
+from pipelex.fix_ops.applier import FixOpOutcome, apply_fix_ops, serialize_and_format
from pipelex.suggested_fix import FixOp, RenameTableKeyOp, SetKeyOp
_DATA = Path("tests/data/fixes")
diff --git a/tests/unit/pipelex/pipeline/fixes/test_fix_file_transaction.py b/tests/unit/pipelex/fix_ops/test_fix_file_transaction.py
similarity index 96%
rename from tests/unit/pipelex/pipeline/fixes/test_fix_file_transaction.py
rename to tests/unit/pipelex/fix_ops/test_fix_file_transaction.py
index 9d53efd5d..c37bcbe9a 100644
--- a/tests/unit/pipelex/pipeline/fixes/test_fix_file_transaction.py
+++ b/tests/unit/pipelex/fix_ops/test_fix_file_transaction.py
@@ -5,8 +5,8 @@ from pathlib import Path
import pytest
from pytest_mock import MockerFixture
-from pipelex.pipeline.exceptions import FixTransactionError, FixWriteConflictError
-from pipelex.pipeline.fixes.file_transaction import (
+from pipelex.fix_ops.exceptions import FixTransactionError, FixWriteConflictError
+from pipelex.fix_ops.file_transaction import (
FileSnapshot,
PendingFileUpdate,
assert_snapshot_unchanged,
@@ -121,7 +121,7 @@ class TestFixFileTransaction:
raise FixWriteConflictError(msg)
assert_snapshot_unchanged(snapshot)
- mocker.patch("pipelex.pipeline.fixes.file_transaction.assert_snapshot_unchanged", new=inject_edit_before_third_commit)
+ mocker.patch("pipelex.fix_ops.file_transaction.assert_snapshot_unchanged", new=inject_edit_before_third_commit)
with pytest.raises(FixTransactionError, match="rollback was incomplete") as exc_info:
commit_file_updates(updates)
diff --git a/tests/unit/pipelex/migration/test_runner.py b/tests/unit/pipelex/migration/test_runner.py
index a5474c58c..23d465255 100644
--- a/tests/unit/pipelex/migration/test_runner.py
+++ b/tests/unit/pipelex/migration/test_runner.py
@@ -13,12 +13,12 @@ from pathlib import Path
from pytest_mock import MockerFixture
+from pipelex.fix_ops.exceptions import FixTransactionError, FixWriteConflictError
+from pipelex.fix_ops.file_transaction import FileSnapshot, PendingFileUpdate, commit_file_updates
from pipelex.migration.backup import WrittenBackup, existing_backups_of, write_backup
from pipelex.migration.plan import FileBlockedReason
from pipelex.migration.runner import migrate_directories, migrate_file
from pipelex.migration.surfaces import SurfaceRegistry
-from pipelex.pipeline.exceptions import FixTransactionError, FixWriteConflictError
-from pipelex.pipeline.fixes.file_transaction import FileSnapshot, PendingFileUpdate, commit_file_updates
from pipelex.suggested_fix import RenameTableKeyOp
from tests.unit.pipelex.migration.conftest import EXAMPLE_SURFACE_ID, EntryBuilder, LedgerBuilder, SurfaceBuilder
diff --git a/tests/unit/pipelex/test_kernel_layer_import_closure.py b/tests/unit/pipelex/test_kernel_layer_import_closure.py
index 762b79fb7..ec6489942 100644
--- a/tests/unit/pipelex/test_kernel_layer_import_closure.py
+++ b/tests/unit/pipelex/test_kernel_layer_import_closure.py
@@ -91,6 +91,9 @@ KERNEL_LAYER_ENTRY_POINTS = [
"pipelex.core.pipes.stuff_spec.stuff_spec_factory",
"pipelex.core.stuffs.stuff_factory",
"pipelex.providers.anthropic.anthropic_list",
+ # The boot-tolerance replay imports the engine; `pipelex migrate` drives the runner.
+ "pipelex.migration.engine",
+ "pipelex.migration.runner",
]
#: The negative control, and the reason it is needed: the detector below is a `textwrap.dedent`
diff --git a/tests/unit/pipelex/test_runtime_boot_closure.py b/tests/unit/pipelex/test_runtime_boot_closure.py
index e476f6a4c..fc3068aab 100644
--- a/tests/unit/pipelex/test_runtime_boot_closure.py
+++ b/tests/unit/pipelex/test_runtime_boot_closure.py
@@ -17,11 +17,20 @@ It is also strictly stronger than the import-closure entry point it complements:
registrar from `KERNEL_BUILTIN_PLUGINS` alone, so `OrchestratorRegistry`, `BundleValidatorRegistry`
and the PipeFunc executor modes are all empty on it — an import-time check cannot notice a boot step
that tries to resolve out of one of them.
+
+A boot that meets a **stale configuration file** takes a path a healthy boot never does: the loader's
+validation fails, and the boot-tolerance retry replays the migration ledger over the file in memory
+(`docs/migration-ledger.md`). That retry imports the migration engine, so the property has to hold on
+it too — and it once did not, because the engine applied its operations through an applier that lived
+under `pipelex.pipeline`. A clean machine cannot see that path, so one case here boots with a home
+directory holding a stale file on purpose.
"""
+import os
import subprocess # ruff: ignore[suspicious-subprocess-import]
import sys
import textwrap
+from pathlib import Path
from tests.unit.pipelex.test_kernel_layer_import_closure import INTERPRETER_PACKAGES
@@ -41,7 +50,8 @@ _BOOTED_RUNTIME_SCRIPT = textwrap.dedent(
from pipelex.runtime_boot import RuntimeBoot
from pipelex.system.runtime import IntegrationMode
- interpreter_packages = frozenset(sys.argv[1:])
+ expects_replay = sys.argv[1] == "expect-replay"
+ interpreter_packages = frozenset(sys.argv[2:])
# An empty set would make the sweep below flag nothing and the test pass vacuously — the same
# guard the import-closure harness carries, for the same reason.
if not interpreter_packages:
@@ -50,6 +60,12 @@ _BOOTED_RUNTIME_SCRIPT = textwrap.dedent(
RuntimeBoot.make(integration_mode=IntegrationMode.PYTEST, needs_inference=False)
+ # A boot over a stale file must actually have taken the replay path, or the sweep below says
+ # nothing about it: the engine is imported only inside the retry.
+ if expects_replay and "pipelex.migration.engine" not in sys.modules:
+ print("the boot never replayed the migration ledger — the stale file was not stale")
+ raise SystemExit(3)
+
offenders = sorted(
name
for name in sys.modules
@@ -99,16 +115,37 @@ _BOOTED_RUNTIME_SCRIPT = textwrap.dedent(
#: import-closure module carries the same control for the same reason (its `DIRTY_ENTRY_POINT`).
CONTROL_PACKAGE_THE_RUNTIME_ALWAYS_LOADS = "cogt"
+#: A telemetry override in the flat format that predates `[custom_posthog]`. Ledger entry
+#: `telemetry-config@2` carries it forward and the surface supports every version from 0, so this
+#: file stays stale-but-recoverable for as long as that ledger exists. It sits in the *global*
+#: directory because the boot always walks it, whatever project the test runs from.
+STALE_TELEMETRY_OVERRIDE = 'telemetry_mode = "off"\n'
+
-def _run_booted_runtime(*, interpreter_packages: "tuple[str, ...]") -> subprocess.CompletedProcess[str]:
- """Boot the kernel layer in a fresh interpreter and return the sweep's verdict."""
+def _run_booted_runtime(
+ *,
+ interpreter_packages: "tuple[str, ...]",
+ stale_home: Path | None = None,
+) -> subprocess.CompletedProcess[str]:
+ """Boot the kernel layer in a fresh interpreter and return the sweep's verdict.
+
+ With `stale_home`, the subprocess runs with that directory as its home (both spellings, so
+ `Path.home()` resolves to it on every platform), and the script additionally requires that the
+ boot went through the migration replay.
+ """
+ env: dict[str, str] | None = None
+ mode = "healthy"
+ if stale_home is not None:
+ env = {**os.environ, "HOME": str(stale_home), "USERPROFILE": str(stale_home)}
+ mode = "expect-replay"
try:
return subprocess.run( # ruff: ignore[subprocess-without-shell-equals-true]
- [sys.executable, "-c", _BOOTED_RUNTIME_SCRIPT, *interpreter_packages],
+ [sys.executable, "-c", _BOOTED_RUNTIME_SCRIPT, mode, *interpreter_packages],
capture_output=True,
text=True,
check=False,
timeout=SUBPROCESS_TIMEOUT_SECONDS,
+ env=env,
)
except subprocess.TimeoutExpired as exc:
message = f"the booted-runtime subprocess did not finish within {SUBPROCESS_TIMEOUT_SECONDS}s"
@@ -138,3 +175,17 @@ class TestBootedKernelLayer:
f"stdout={result.stdout}\nstderr={result.stderr}"
)
assert "runtime boot OK" in result.stdout
+
+ def test_booting_over_a_stale_configuration_file_loads_no_interpreter_module(self, tmp_path: Path) -> None:
+ """The boot-tolerance replay is part of the kernel layer's boot, so it obeys the same property."""
+ global_config_dir = tmp_path / ".pipelex"
+ global_config_dir.mkdir()
+ (global_config_dir / "telemetry_override.toml").write_text(STALE_TELEMETRY_OVERRIDE, encoding="utf-8")
+
+ result = _run_booted_runtime(interpreter_packages=INTERPRETER_PACKAGES, stale_home=tmp_path)
+ assert result.returncode == 0, (
+ "a kernel-layer boot that replays the migration ledger over a stale file must load zero interpreter "
+ "modules. Exit 3 means the boot never reached the replay, so the fixture has stopped being stale.\n"
+ f"stdout={result.stdout}\nstderr={result.stderr}"
+ )
+ assert "runtime boot OK" in result.stdout