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.
Release v0.47.0
Louis Choquelfb91068512b7
diff --git a/.test_durations b/.test_durationsindex 8d347c5ec..3797e8d50 100644--- a/.test_durations+++ b/.test_durations@@ -1789,6 +1789,12 @@"tests/unit/pipelex/cli/dev/test_check_keyword_only_cmd_fix.py::TestCheckKeywordOnlyCmdFix::test_nothing_to_fix_verbose_prints_success_panel": 0.0019,"tests/unit/pipelex/cli/dev/test_check_keyword_only_cmd_fix.py::TestCheckKeywordOnlyCmdFix::test_unfixable_reports_but_does_not_gate": 0.0055,"tests/unit/pipelex/cli/dev/test_check_keyword_only_cmd_fix.py::TestCheckKeywordOnlyCmdFix::test_unsorted_registry_is_reported_instead_of_nothing_to_fix": 0.0056,+ "tests/unit/pipelex/cli/dev/test_config_sync_exclusions.py::TestConfigSyncExclusions::test_a_copy_the_user_named_themselves_is_not_excluded": 1.3245,+ "tests/unit/pipelex/cli/dev/test_config_sync_exclusions.py::TestConfigSyncExclusions::test_a_migrated_config_directory_reads_as_in_sync": 0.0225,+ "tests/unit/pipelex/cli/dev/test_config_sync_exclusions.py::TestConfigSyncExclusions::test_a_real_backup_name_is_excluded": 0.0183,+ "tests/unit/pipelex/cli/dev/test_config_sync_exclusions.py::TestConfigSyncExclusions::test_a_real_rescue_name_is_excluded": 1.3132,+ "tests/unit/pipelex/cli/dev/test_config_sync_exclusions.py::TestConfigSyncExclusions::test_every_file_a_real_walk_can_back_up_is_excluded": 0.0167,+ "tests/unit/pipelex/cli/dev/test_config_sync_exclusions.py::TestConfigSyncExclusions::test_the_config_directory_gitignore_is_excluded": 1.4037,"tests/unit/pipelex/cli/dev/test_drift_ack_cmd.py::TestDriftAckCmd::test_ack_file_is_auto_staged": 0.4957,"tests/unit/pipelex/cli/dev/test_drift_ack_cmd.py::TestDriftAckCmd::test_ack_permitted_with_dirty_tree_elsewhere": 0.5375,"tests/unit/pipelex/cli/dev/test_drift_ack_cmd.py::TestDriftAckCmd::test_ack_round_trip_then_check_green": 1.3361,@@ -2692,6 +2698,7 @@"tests/unit/pipelex/codegen/test_artifact_paths.py::TestArtifactPaths::test_traversal_cannot_write_outside_output_root": 0.0029,"tests/unit/pipelex/codegen/test_artifact_paths.py::TestArtifactPaths::test_valid_nested_artifact_stays_beneath_root": 0.0037,"tests/unit/pipelex/codegen/test_check.py::TestCheck::test_deleted_file_is_missing_drift": 4.4052,+ "tests/unit/pipelex/codegen/test_check.py::TestCheck::test_drifts_are_ordered_locked_first_then_orphans_each_by_path": 0.0238,"tests/unit/pipelex/codegen/test_check.py::TestCheck::test_freshly_generated_is_current": 0.0873,"tests/unit/pipelex/codegen/test_check.py::TestCheck::test_hand_edit_below_stamp_is_hand_edited_drift": 0.0061,"tests/unit/pipelex/codegen/test_check.py::TestCheck::test_malformed_stamp_options_are_hand_edited_drift": 0.0066,@@ -2702,6 +2709,7 @@"tests/unit/pipelex/codegen/test_check.py::TestCheck::test_orphan_scan_prunes_vendor_directories": 0.0051,"tests/unit/pipelex/codegen/test_check.py::TestCheck::test_stale_stamped_file_not_in_lock_is_orphan": 0.005,"tests/unit/pipelex/codegen/test_check.py::TestCheck::test_stripped_stamp_is_hand_edited_drift": 0.0041,+ "tests/unit/pipelex/codegen/test_check.py::TestCheck::test_uncommented_line_injected_into_the_header_is_hand_edited_drift": 1.3367,"tests/unit/pipelex/codegen/test_check.py::TestCheck::test_unstamped_sibling_file_is_ignored": 0.0058,"tests/unit/pipelex/codegen/test_crate_encoding.py::TestCrateEncoding::test_both_encodings_carry_the_crate_fingerprint": 0.8635,"tests/unit/pipelex/codegen/test_crate_encoding.py::TestCrateEncoding::test_both_encodings_round_trip_to_the_same_logical_crate": 0.0041,@@ -2712,13 +2720,16 @@"tests/unit/pipelex/codegen/test_description_escaping.py::TestDescriptionEscaping::test_python_descriptions_cannot_escape_docstrings[python-pydantic]": 0.7232,"tests/unit/pipelex/codegen/test_description_escaping.py::TestDescriptionEscaping::test_python_descriptions_cannot_escape_docstrings[python-structures]": 0.0057,"tests/unit/pipelex/codegen/test_description_escaping.py::TestDescriptionEscaping::test_typescript_descriptions_cannot_escape_jsdoc": 0.0747,+ "tests/unit/pipelex/codegen/test_emission.py::TestEmission::test_a_stamped_file_whose_header_was_tampered_is_an_orphan_the_regenerator_refuses_to_reclaim": 0.0217,"tests/unit/pipelex/codegen/test_emission.py::TestEmission::test_body_is_preserved_below_the_stamp": 0.0021,"tests/unit/pipelex/codegen/test_emission.py::TestEmission::test_delisted_stamped_file_is_pruned_and_delocked": 0.0039,"tests/unit/pipelex/codegen/test_emission.py::TestEmission::test_first_write_refuses_unowned_destination_without_partial_writes": 0.0049,"tests/unit/pipelex/codegen/test_emission.py::TestEmission::test_first_write_stamps_every_file_and_writes_the_lock": 0.8888,"tests/unit/pipelex/codegen/test_emission.py::TestEmission::test_pruning_never_touches_an_unstamped_file": 0.0043,"tests/unit/pipelex/codegen/test_emission.py::TestEmission::test_pure_build_and_disk_write_agree_byte_for_byte": 0.0028,+ "tests/unit/pipelex/codegen/test_emission.py::TestEmission::test_regeneration_over_a_lock_written_before_the_version_field_relocks_it_once": 0.2328,"tests/unit/pipelex/codegen/test_emission.py::TestEmission::test_regeneration_recovers_from_a_malformed_previous_lock": 0.0869,+ "tests/unit/pipelex/codegen/test_emission.py::TestEmission::test_regeneration_replaces_a_lock_written_by_a_newer_codegen": 1.4023,"tests/unit/pipelex/codegen/test_emission.py::TestEmission::test_rewriting_identical_input_is_all_unchanged": 0.003,"tests/unit/pipelex/codegen/test_emitted_artifacts_are_lint_clean.py::TestEmittedArtifactsAreLintClean::test_crates_that_use_no_seeded_import_are_lint_clean[python-pydantic-emit_python_pydantic-all_opaque_crate]": 0.1366,"tests/unit/pipelex/codegen/test_emitted_artifacts_are_lint_clean.py::TestEmittedArtifactsAreLintClean::test_crates_that_use_no_seeded_import_are_lint_clean[python-pydantic-emit_python_pydantic-refines_native_only_crate]": 0.1774,@@ -2747,11 +2758,22 @@"tests/unit/pipelex/codegen/test_emitted_artifacts_are_lint_clean.py::TestEmittedArtifactsAreLintClean::test_import_block_is_format_stable_past_the_explode_width[merged-names-cross-the-width]": 0.0887,"tests/unit/pipelex/codegen/test_emitted_artifacts_are_lint_clean.py::TestEmittedArtifactsAreLintClean::test_import_block_is_format_stable_past_the_explode_width[one-name-crosses-the-width]": 0.1195,"tests/unit/pipelex/codegen/test_emitted_artifacts_are_lint_clean.py::TestEmittedArtifactsAreLintClean::test_natives_only_crate_emits_a_lint_clean_structures_module": 0.1333,+ "tests/unit/pipelex/codegen/test_lock.py::TestLock::test_a_legacy_unversioned_lock_is_refused_once_the_format_moves_on": 1.3517,+ "tests/unit/pipelex/codegen/test_lock.py::TestLock::test_a_lock_version_that_is_not_a_known_version_is_refused[\"two\"]": 1.3165,+ "tests/unit/pipelex/codegen/test_lock.py::TestLock::test_a_lock_version_that_is_not_a_known_version_is_refused[-1]": 0.0011,+ "tests/unit/pipelex/codegen/test_lock.py::TestLock::test_a_lock_version_that_is_not_a_known_version_is_refused[0]": 0.0008,+ "tests/unit/pipelex/codegen/test_lock.py::TestLock::test_a_lock_version_that_is_not_a_known_version_is_refused[1.5]": 0.0014,+ "tests/unit/pipelex/codegen/test_lock.py::TestLock::test_a_lock_version_that_is_not_a_known_version_is_refused[true]": 0.0178,+ "tests/unit/pipelex/codegen/test_lock.py::TestLock::test_a_lock_written_before_the_version_field_loads_as_version_one": 0.0219,+ "tests/unit/pipelex/codegen/test_lock.py::TestLock::test_a_newer_lock_version_is_refused_even_when_it_carries_unknown_keys": 1.2992,+ "tests/unit/pipelex/codegen/test_lock.py::TestLock::test_a_newer_lock_version_is_refused_with_upgrade_guidance": 0.0194,"tests/unit/pipelex/codegen/test_lock.py::TestLock::test_build_sorts_artifacts_by_path": 0.7411,"tests/unit/pipelex/codegen/test_lock.py::TestLock::test_encode_then_load_round_trips": 0.0021,+ "tests/unit/pipelex/codegen/test_lock.py::TestLock::test_encoded_lock_declares_its_format_version_first": 0.0014,"tests/unit/pipelex/codegen/test_lock.py::TestLock::test_load_absent_lock_is_none": 0.0007,"tests/unit/pipelex/codegen/test_lock.py::TestLock::test_malformed_lock_raises": 0.0024,"tests/unit/pipelex/codegen/test_lock.py::TestLock::test_non_utf8_lock_raises_clean_error_not_a_crash": 0.0012,+ "tests/unit/pipelex/codegen/test_lock.py::TestLock::test_round_trip_preserves_the_format_version": 1.3409,"tests/unit/pipelex/codegen/test_lock.py::TestLock::test_unreadable_lock_raises_clean_error": 0.1071,"tests/unit/pipelex/codegen/test_naming.py::TestNaming::test_python_class_name_bare_when_unique": 0.0008,"tests/unit/pipelex/codegen/test_naming.py::TestNaming::test_python_class_name_qualified_on_collision": 0.0007,@@ -2834,12 +2856,23 @@"tests/unit/pipelex/codegen/test_resolved_concepts.py::TestResolvedConcepts::test_refines_native_keeps_base_ref": 0.0023,"tests/unit/pipelex/codegen/test_resolved_concepts.py::TestResolvedConcepts::test_structureless_concept_is_opaque_with_a_reason": 0.0006,"tests/unit/pipelex/codegen/test_resolved_concepts.py::TestResolvedConcepts::test_unresolved_refinement_is_opaque": 0.2154,+ "tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_a_header_value_carrying_a_unicode_line_boundary_is_rejected[\\u2028]": 1.3301,+ "tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_a_header_value_carrying_a_unicode_line_boundary_is_rejected[\\u2029]": 0.0173,+ "tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_a_header_value_carrying_a_unicode_line_boundary_is_rejected[\\x85]": 0.2309,+ "tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_blank_line_inside_the_header_is_rejected": 0.2771,"tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_comment_prefix_by_suffix": 0.0007,+ "tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_commented_unknown_field_still_parses": 1.3379,"tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_content_hash_covers_only_the_body_not_the_stamp": 0.0016,+ "tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_non_standard_json_constants_in_options_are_rejected[{\"a\": 1, \"b\": NaN}]": 0.001,+ "tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_non_standard_json_constants_in_options_are_rejected[{\"x\": -Infinity}]": 1.2941,+ "tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_non_standard_json_constants_in_options_are_rejected[{\"x\": Infinity}]": 0.2545,+ "tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_non_standard_json_constants_in_options_are_rejected[{\"x\": NaN}]": 0.0156,"tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_pipe_ref_and_options_survive_the_round_trip": 0.001,"tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_round_trip_preserves_body_and_fields": 0.987,+ "tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_standard_options_json_still_parses": 0.0166,"tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_tampering_below_the_stamp_breaks_the_recomputed_hash": 0.0004,"tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_ts_uses_double_slash_comment_prefix": 0.0012,+ "tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_uncommented_line_inside_the_header_is_rejected": 0.2041,"tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_unstampable_file_type_raises": 0.1391,"tests/unit/pipelex/codegen/test_stamp.py::TestStamp::test_unstamped_text_parses_to_none": 0.0006,"tests/unit/pipelex/codegen/test_ts_zod_emitter.py::TestTsZodEmitter::test_binder_validates_per_concept_over_the_types_file": 0.0009,@@ -9058,10 +9091,14 @@"tests/unit/pipelex/tools/misc/test_diff.py::TestDiff::test_has_diff_dirs_file_only_in_left": 0.0015,"tests/unit/pipelex/tools/misc/test_diff.py::TestDiff::test_has_diff_dirs_file_only_in_right": 0.0018,"tests/unit/pipelex/tools/misc/test_diff.py::TestDiff::test_has_diff_dirs_no_differences": 0.8745,+ "tests/unit/pipelex/tools/misc/test_diff.py::TestDiff::test_has_diff_dirs_pattern_excluded_file_only_in_left": 1.3236,+ "tests/unit/pipelex/tools/misc/test_diff.py::TestDiff::test_has_diff_dirs_pattern_exclusion_reaches_subdirectories": 0.0034,+ "tests/unit/pipelex/tools/misc/test_diff.py::TestDiff::test_has_diff_dirs_pattern_leaves_unmatched_file_visible": 0.0224,"tests/unit/pipelex/tools/misc/test_diff.py::TestDiff::test_has_diff_dirs_recursive": 0.0045,"tests/unit/pipelex/tools/misc/test_diff.py::TestDiff::test_make_diff_dirs_pretty_accepts_string_paths": 0.0061,"tests/unit/pipelex/tools/misc/test_diff.py::TestDiff::test_make_diff_dirs_pretty_binary_file": 0.0019,"tests/unit/pipelex/tools/misc/test_diff.py::TestDiff::test_make_diff_dirs_pretty_no_differences": 0.0023,+ "tests/unit/pipelex/tools/misc/test_diff.py::TestDiff::test_make_diff_dirs_pretty_omits_pattern_excluded_file": 1.3596,"tests/unit/pipelex/tools/misc/test_diff.py::TestDiff::test_make_diff_dirs_pretty_recursive": 0.0063,"tests/unit/pipelex/tools/misc/test_diff.py::TestDiff::test_make_diff_dirs_pretty_shows_update_direction": 0.2344,"tests/unit/pipelex/tools/misc/test_diff.py::TestDiff::test_make_diff_dirs_pretty_with_differences": 0.0042,@@ -9198,6 +9235,10 @@"tests/unit/pipelex/tools/misc/test_mirror_dir.py::TestMirrorDir::test_handles_directory_to_file_flip": 0.0033,"tests/unit/pipelex/tools/misc/test_mirror_dir.py::TestMirrorDir::test_idempotent_and_symmetric_with_has_diff_dirs": 0.008,"tests/unit/pipelex/tools/misc/test_mirror_dir.py::TestMirrorDir::test_nested_excluded_dir_is_preserved": 0.0025,+ "tests/unit/pipelex/tools/misc/test_mirror_dir.py::TestMirrorDir::test_pattern_excluded_file_is_not_copied": 0.2079,+ "tests/unit/pipelex/tools/misc/test_mirror_dir.py::TestMirrorDir::test_pattern_excluded_file_target_only_is_preserved": 0.2212,+ "tests/unit/pipelex/tools/misc/test_mirror_dir.py::TestMirrorDir::test_pattern_exclusion_is_case_sensitive": 0.0226,+ "tests/unit/pipelex/tools/misc/test_mirror_dir.py::TestMirrorDir::test_pattern_exclusion_reaches_nested_directories": 1.338,"tests/unit/pipelex/tools/misc/test_mirror_dir.py::TestMirrorDir::test_raises_when_source_is_a_file": 0.0021,"tests/unit/pipelex/tools/misc/test_mirror_dir.py::TestMirrorDir::test_raises_when_source_missing": 0.0033,"tests/unit/pipelex/tools/misc/test_mirror_dir.py::TestMirrorDir::test_recursion_preserves_structure": 0.0065,@@ -9248,6 +9289,10 @@"tests/unit/pipelex/tools/misc/test_reject_bare_str_or_path.py::TestRejectBareStrOrPath::test_public_sequence_consumers_reject_bare_string[resolve_library_dirs]": 0.0008,"tests/unit/pipelex/tools/misc/test_reject_bare_str_or_path.py::TestRejectBareStrOrPath::test_rejects_bare_str_or_path[/fake/mylib]": 1.0044,"tests/unit/pipelex/tools/misc/test_reject_bare_str_or_path.py::TestRejectBareStrOrPath::test_rejects_bare_str_or_path[bad_value1]": 0.0005,+ "tests/unit/pipelex/tools/misc/test_save_text_to_path.py::TestSaveTextToPath::test_carriage_returns_in_the_text_survive_verbatim": 0.0218,+ "tests/unit/pipelex/tools/misc/test_save_text_to_path.py::TestSaveTextToPath::test_newlines_are_written_as_lf": 1.3443,+ "tests/unit/pipelex/tools/misc/test_save_text_to_path.py::TestSaveTextToPath::test_round_trip_through_the_matching_reader": 0.274,+ "tests/unit/pipelex/tools/misc/test_save_text_to_path.py::TestSaveTextToPath::test_the_lf_guarantee_is_handed_to_the_writer": 0.2158,"tests/unit/pipelex/tools/misc/test_semver.py::TestSemver::test_parse_version_invalid[1.0.0.0]": 0.0017,"tests/unit/pipelex/tools/misc/test_semver.py::TestSemver::test_parse_version_invalid[]": 0.0008,"tests/unit/pipelex/tools/misc/test_semver.py::TestSemver::test_parse_version_invalid[abc]": 0.0004,diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5506ca63b..2d25feda9 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,10 +1,12 @@# Changelog-## [Unreleased]+## [v0.47.0] - 2026-08-19### Added- **`codegen.lock` now declares its format version, so the format can grow without breaking every reader:** the lock is a cross-language interchange format — this CLI writes it, other implementations of the offline check read it — and it validated strictly with no version field at all, so the day it gained any key every consumer pinned to an older reader would have failed CI with an opaque "unknown key" error instead of a drift verdict. Each lock now opens with `lock_version = 1`; a reader refuses a version it does not know and names which side to upgrade, and it reads the version *before* the key set, so a future lock is diagnosed by its version rather than by whichever new key it happens to carry first. A lock written before the field existed is version 1 by definition and needs no migration, but every regeneration rewrites the lock once to add the key — that one-line diff is the change consumers will see. The stamp header stays deliberately unversioned, since it already ignores commented fields it does not recognise.+- **Line endings are pinned to LF in the git index and on checkout, on every platform:** this repo carries a lot of generated-but-committed text — `CLAUDE.md` and `AGENTS.md`, `subject_grants.toml`, the drift acks, `.test_durations`, the error-identity snapshot, the generated error pages, the migration goldens, the gateway model references — and each is produced by a writer that passes no explicit `newline`, so on Windows Python translated every `\n` to CRLF and the whole set churned in version control with no change of content. No gate would have caught it: they all compare with universal-newline reads, which fold CRLF back to LF before the comparison. A `.gitattributes` carrying `* text=auto eol=lf` closes that class for tracked files whichever writer produced them. `text=auto` leaves git to tell text from binary, so images and other binaries are untouched, and no tracked file held CRLF when this landed — it introduces no renormalisation diff, it pins the invariant. The complementary writer-by-writer fix is the structural half and is tracked separately.+- **Documentation:** `docs/under-the-hood/codegen-projections.md` now covers the strict stamp-header rules, the JSON conformance the `options` payload must meet, the policy for evolving the lock format under `lock_version`, and the cross-platform line-ending guarantee.### Fixeddiff --git a/pyproject.toml b/pyproject.tomlindex d9cf011b6..79e54cd50 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[project]name = "pipelex"-version = "0.46.4"+version = "0.47.0"description = "Execute composable AI methods declared in the MTHDS open standard"authors = [{ name = "Evotis S.A.S.", email = "[email protected]" }]maintainers = [{ name = "Pipelex staff", email = "[email protected]" }]diff --git a/uv.lock b/uv.lockindex 36710baf2..7f4da850d 100644--- a/uv.lock+++ b/uv.lock@@ -3303,7 +3303,7 @@ wheels = [[[package]]name = "pipelex"-version = "0.46.4"+version = "0.47.0"source = { editable = "." }dependencies = [{ name = "aiofiles" },