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.

Release v0.54.0

Louis Choquel93ae0ba063f0
diff --git a/.badges/tests.json b/.badges/tests.json
index c84151c8b..b6cfdbea2 100644
--- a/.badges/tests.json
+++ b/.badges/tests.json
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"label": "tests",
- "message": "10983",
+ "message": "11020",
"color": "blue",
"cacheSeconds": 300
}
diff --git a/.test_durations b/.test_durations
index 4aa7de521..2a217537c 100644
--- a/.test_durations
+++ b/.test_durations
@@ -622,6 +622,7 @@
"tests/integration/pipelex/pipeline/test_input_form.py::TestBuildInputForm::test_presence_required_and_gating_markers": 0.8272,
"tests/integration/pipelex/pipeline/test_input_form.py::TestBuildInputForm::test_wire_dump_has_no_null_slots": 0.798,
"tests/integration/pipelex/pipeline/test_input_form.py::TestKindAssignmentTable::test_a_field_less_class_is_an_object_with_no_fields": 1.6076,
+ "tests/integration/pipelex/pipeline/test_input_form.py::TestKindAssignmentTable::test_a_fixed_count_of_one_is_ruled_the_same_way_by_every_surface": 1.5655,
"tests/integration/pipelex/pipeline/test_input_form.py::TestKindAssignmentTable::test_an_authored_but_empty_structure_table_is_an_object_with_no_fields": 0.591,
"tests/integration/pipelex/pipeline/test_input_form.py::TestKindAssignmentTable::test_custom_class_reflects_to_object_with_constraints": 0.2528,
"tests/integration/pipelex/pipeline/test_input_form.py::TestKindAssignmentTable::test_fixed_count_of_one_is_a_single_node": 0.4863,
@@ -688,6 +689,7 @@
"tests/integration/pipelex/pipeline/test_scoped_in_memory_tracing.py::TestScopedInMemoryTracing::test_concurrent_scoped_runs_do_not_cross_contaminate": 2.6191,
"tests/integration/pipelex/pipeline/test_scoped_in_memory_tracing.py::TestScopedInMemoryTracing::test_in_memory_graph_same_instance_no_backend": 2.3063,
"tests/integration/pipelex/pipeline/test_scoped_in_memory_tracing.py::TestScopedInMemoryTracing::test_override_implies_enabled_when_tracing_disabled": 1.2599,
+ "tests/integration/pipelex/pipeline/test_sequence_output_enrichment.py::TestSequenceOutputEnrichment::test_a_one_count_step_keeps_the_optional_boundary_in_expected_ref": 0.3539,
"tests/integration/pipelex/pipeline/test_sequence_output_enrichment.py::TestSequenceOutputEnrichment::test_optional_marker_rides_expected_output_ref": 0.1344,
"tests/integration/pipelex/pipeline/test_sequence_output_enrichment.py::TestSequenceOutputEnrichment::test_plural_expected_output_drops_optional_presence_marker": 0.3308,
"tests/integration/pipelex/pipeline/test_sequence_output_enrichment.py::TestSequenceOutputEnrichment::test_sequence_taint_adds_optional_boundary_to_plain_expected_ref": 0.1393,
@@ -795,6 +797,7 @@
"tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_branch_type_validation.py::TestPipeParallelBranchTypeValidation::test_compatible_branch_types_validate_clean": 1.0467,
"tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_branch_type_validation.py::TestPipeParallelBranchTypeValidation::test_incompatible_branch_type_raises": 0.2215,
"tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_final_stuff_code.py::TestPipeParallelFinalStuffCode::test_combined_stuff_carries_requested_final_stuff_code": 3.9448,
+ "tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_output_validation.py::TestPipeParallelOutputValidation::test_a_one_count_plural_branch_is_type_checked": 0.3422,
"tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_output_validation.py::TestPipeParallelOutputValidation::test_accepted_outputs[composite_output-\\ndomain = \"pv_parallel_output\"\\ndescription = \"Static validation fixtures for PipeParallel output\"\\n\\n[concept.PvItem]\\ndescription = \"An item to analyze\"\\n\\n[pipe.pv_branch_tone]\\ntype = \"PipeLLM\"\\ndescription = \"Tone branch\"\\ninputs = { item = \"PvItem\" }\\noutput = \"Text\"\\nprompt = \"Describe the tone of $item\"\\n\\n[pipe.pv_branch_length]\\ntype = \"PipeLLM\"\\ndescription = \"Length branch\"\\ninputs = { item = \"PvItem\" }\\noutput = \"Text\"\\nprompt = \"Describe the length of $item\"\\n\\n[pipe.pv_parallel]\\ntype = \"PipeParallel\"\\ndescription = \"Parallel under test\"\\ninputs = { item = \"PvItem\" }\\noutput = \"Composite\"\\nbranches = [\\n { pipe = \"pv_branch_tone\", result = \"tone_result\" },\\n { pipe = \"pv_branch_length\", result = \"length_result\" },\\n]\\n]": 1.0331,
"tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_output_validation.py::TestPipeParallelOutputValidation::test_accepted_outputs[structured_exact_match-\\ndomain = \"pv_parallel_output\"\\ndescription = \"Static validation fixtures for PipeParallel output\"\\n\\n[concept.PvItem]\\ndescription = \"An item to analyze\"\\n\\n[pipe.pv_branch_tone]\\ntype = \"PipeLLM\"\\ndescription = \"Tone branch\"\\ninputs = { item = \"PvItem\" }\\noutput = \"Text\"\\nprompt = \"Describe the tone of $item\"\\n\\n[pipe.pv_branch_length]\\ntype = \"PipeLLM\"\\ndescription = \"Length branch\"\\ninputs = { item = \"PvItem\" }\\noutput = \"Text\"\\nprompt = \"Describe the length of $item\"\\n\\n[concept.PvCombo]\\ndescription = \"Combined results\"\\n\\n[concept.PvCombo.structure]\\ntone_result = { type = \"text\", description = \"Tone\", required = true }\\nlength_result = { type = \"text\", description = \"Length\", required = true }\\n\\n[pipe.pv_parallel]\\ntype = \"PipeParallel\"\\ndescription = \"Parallel under test\"\\ninputs = { item = \"PvItem\" }\\noutput = \"PvCombo\"\\nbranches = [\\n { pipe = \"pv_branch_tone\", result = \"tone_result\" },\\n { pipe = \"pv_branch_length\", result = \"length_result\" },\\n]\\n]": 0.0556,
"tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_output_validation.py::TestPipeParallelOutputValidation::test_accepted_outputs[structured_with_optional_extra-\\ndomain = \"pv_parallel_output\"\\ndescription = \"Static validation fixtures for PipeParallel output\"\\n\\n[concept.PvItem]\\ndescription = \"An item to analyze\"\\n\\n[pipe.pv_branch_tone]\\ntype = \"PipeLLM\"\\ndescription = \"Tone branch\"\\ninputs = { item = \"PvItem\" }\\noutput = \"Text\"\\nprompt = \"Describe the tone of $item\"\\n\\n[pipe.pv_branch_length]\\ntype = \"PipeLLM\"\\ndescription = \"Length branch\"\\ninputs = { item = \"PvItem\" }\\noutput = \"Text\"\\nprompt = \"Describe the length of $item\"\\n\\n[concept.PvComboLoose]\\ndescription = \"Combined results with an optional extra field\"\\n\\n[concept.PvComboLoose.structure]\\ntone_result = { type = \"text\", description = \"Tone\", required = true }\\nlength_result = { type = \"text\", description = \"Length\", required = true }\\nnotes = { type = \"text\", description = \"Optional notes\", required = false }\\n\\n[pipe.pv_parallel]\\ntype = \"PipeParallel\"\\ndescription = \"Parallel under test\"\\ninputs = { item = \"PvItem\" }\\noutput = \"PvComboLoose\"\\nbranches = [\\n { pipe = \"pv_branch_tone\", result = \"tone_result\" },\\n { pipe = \"pv_branch_length\", result = \"length_result\" },\\n]\\n]": 0.0556,
@@ -970,6 +973,8 @@
"tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_run.py::TestPipeImgGenRun::test_pipe_img_gen_run_input_to_template[img_gen_combo0-coding woman with dragon tatoo-a woman with a dragon tatoo, wearing a tank top, coding in python-None]": 0.6171,
"tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_run.py::TestPipeImgGenRun::test_pipe_img_gen_run_no_inputs[None-coding woman with dragon tatoo-a woman with a dragon tatoo, wearing a tank top, coding in python-None]": 0.0004,
"tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_run.py::TestPipeImgGenRun::test_pipe_img_gen_run_no_inputs[img_gen_combo0-coding woman with dragon tatoo-a woman with a dragon tatoo, wearing a tank top, coding in python-None]": 2.6273,
+ "tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_run.py::TestPipeImgGenRun::test_pipe_img_gen_variable_output_single_override[None]": 0.0002,
+ "tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_run.py::TestPipeImgGenRun::test_pipe_img_gen_variable_output_without_count_rejected[None]": 0.0004,
"tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm.py::TestPipeLLMBasic::test_pipe_llm_attribute_image[stuff0-attribute_paths0]": 1.498,
"tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm.py::TestPipeLLMBasic::test_pipe_llm_attribute_image[stuff1-attribute_paths1]": 1.4519,
"tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm.py::TestPipeLLMBasic::test_pipe_llm_attribute_image[stuff2-attribute_paths2]": 1.3786,
@@ -1046,8 +1051,10 @@
"tests/integration/pipelex/pipes/optionals/test_taint_sequence_validation.py::TestSequenceTaintValidation::test_continue_chain_taints_the_condition_result": 0.0496,
"tests/integration/pipelex/pipes/optionals/test_taint_sequence_validation.py::TestSequenceTaintValidation::test_force_input_terminates_the_taint": 0.0389,
"tests/integration/pipelex/pipes/optionals/test_taint_sequence_validation.py::TestSequenceTaintValidation::test_lifted_parallel_branch_slot_is_tainted": 0.0439,
+ "tests/integration/pipelex/pipes/optionals/test_taint_sequence_validation.py::TestSequenceTaintValidation::test_one_count_step_result_keeps_the_taint": 1.4468,
"tests/integration/pipelex/pipes/optionals/test_taint_sequence_validation.py::TestSequenceTaintValidation::test_optional_sequence_output_accepts_the_taint": 0.0516,
"tests/integration/pipelex/pipes/optionals/test_taint_sequence_validation.py::TestSequenceTaintValidation::test_plain_inputs_produce_no_taint": 0.043,
+ "tests/integration/pipelex/pipes/optionals/test_taint_sequence_validation.py::TestSequenceTaintValidation::test_plural_count_step_result_absorbs_the_taint": 1.4571,
"tests/integration/pipelex/pipes/optionals/test_taint_sequence_validation.py::TestSequenceTaintValidation::test_rewritten_slot_supersedes_the_taint": 0.1545,
"tests/integration/pipelex/pipes/optionals/test_taint_sequence_validation.py::TestSequenceTaintValidation::test_taint_reaching_plain_sequence_output_is_rejected": 0.8961,
"tests/integration/pipelex/pipes/test_bracket_notation_controllers.py::TestBracketNotationInControllers::test_pipe_batch_with_bracket_notation": 0.166,
@@ -1605,6 +1612,9 @@
"tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_force_marker_on_output_rejected[domain.Concept!]": 0.0008,
"tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_malformed_marker_input_syntax_rejected[Text??]": 0.0012,
"tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_malformed_marker_input_syntax_rejected[Text?[]]": 0.1307,
+ "tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_marker_on_count_of_one_input_accepted[Text[1]!]": 0.3287,
+ "tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_marker_on_count_of_one_input_accepted[Text[1]?]": 0.1962,
+ "tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_marker_on_count_of_one_input_accepted[domain.Concept[1]?]": 1.5633,
"tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_marker_on_plural_input_rejected[Text[3]?]": 0.0012,
"tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_marker_on_plural_input_rejected[Text[]!]": 0.0009,
"tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_marker_on_plural_input_rejected[Text[]?]": 0.0007,
@@ -1617,6 +1627,10 @@
"tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_singular_input_markers_accepted[domain.Concept!]": 0.0005,
"tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_singular_input_markers_accepted[domain.Concept?]": 0.0023,
"tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_to_blueprint_passes_markers_through": 0.0003,
+ "tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_zero_count_input_rejected[Text[0]!]": 1.409,
+ "tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_zero_count_input_rejected[Text[0]?]": 0.293,
+ "tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_zero_count_input_rejected[Text[0]]": 0.0187,
+ "tests/unit/pipelex/builder/pipe/test_pipe_spec_presence_markers.py::TestPipeSpecPresenceMarkers::test_zero_count_input_rejected[domain.Concept[0]]": 0.0192,
"tests/unit/pipelex/builder/pipe/test_pipe_spec_union_signature.py::TestPipeSpecUnionDispatch::test_union_dispatches_pipe_llm_unchanged": 0.081,
"tests/unit/pipelex/builder/pipe/test_pipe_spec_union_signature.py::TestPipeSpecUnionDispatch::test_union_dispatches_pipe_signature": 0.9045,
"tests/unit/pipelex/builder/pipe/test_sub_pipe_blueprint.py::TestSubPipeBlueprintConversion::test_sub_pipe_to_core[simple_sub_pipe-sub_pipe_spec0-expected_blueprint0]": 0.8465,
@@ -4858,11 +4872,16 @@
"tests/unit/pipelex/core/memory/input_shaper/test_csv_by_signature.py::TestInputShaperCsvBySignature::test_url_dict_csv_under_declared_list": 0.0052,
"tests/unit/pipelex/core/memory/input_shaper/test_csv_by_signature.py::TestInputShaperCsvBySignature::test_url_dict_with_sibling_keys_stays_record": 0.0061,
"tests/unit/pipelex/core/memory/input_shaper/test_errors.py::TestInputShaperErrors::test_error_case[count-mismatch-list-too-few-shaper_test.Question-2-provided_value6-MultiplicityCountMismatchError-exactly 2]": 0.0614,
+ "tests/unit/pipelex/core/memory/input_shaper/test_errors.py::TestInputShaperErrors::test_error_case[count-mismatch-list-too-few-shaper_test.Question-2-provided_value8-MultiplicityCountMismatchError-exactly 2]": 0.0333,
"tests/unit/pipelex/core/memory/input_shaper/test_errors.py::TestInputShaperErrors::test_error_case[count-mismatch-single-for-two-shaper_test.Question-2-solo-MultiplicityCountMismatchError-exactly 2]": 0.0577,
"tests/unit/pipelex/core/memory/input_shaper/test_errors.py::TestInputShaperErrors::test_error_case[explicit-incompatible-shaper_test.Priority-None-provided_value10-ExplicitConceptIncompatibleError-not compatible]": 0.055,
+ "tests/unit/pipelex/core/memory/input_shaper/test_errors.py::TestInputShaperErrors::test_error_case[explicit-incompatible-shaper_test.Priority-None-provided_value12-ExplicitConceptIncompatibleError-not compatible]": 1.5435,
+ "tests/unit/pipelex/core/memory/input_shaper/test_errors.py::TestInputShaperErrors::test_error_case[list-where-fixed-count-one-shaper_test.Question-1-provided_value6-ListWhereSingularError-single]": 0.3394,
"tests/unit/pipelex/core/memory/input_shaper/test_errors.py::TestInputShaperErrors::test_error_case[list-where-singular-shaper_test.Question-None-provided_value5-ListWhereSingularError-single]": 0.0686,
"tests/unit/pipelex/core/memory/input_shaper/test_errors.py::TestInputShaperErrors::test_error_case[non-iso-date-shaper_test.Deadline-None-March 7, 2026-StructureValidationError-ISO 8601]": 0.0706,
"tests/unit/pipelex/core/memory/input_shaper/test_errors.py::TestInputShaperErrors::test_error_case[null-top-level-native.Text-None-None-NullInputError-null]": 0.0566,
+ "tests/unit/pipelex/core/memory/input_shaper/test_errors.py::TestInputShaperErrors::test_error_case[one-item-list-where-fixed-count-one-shaper_test.Question-1-provided_value7-ListWhereSingularError-single]": 1.5265,
+ "tests/unit/pipelex/core/memory/input_shaper/test_errors.py::TestInputShaperErrors::test_error_case[structure-missing-field-shaper_test.ShaperInvoice-None-provided_value10-StructureValidationError-could not be built]": 0.4253,
"tests/unit/pipelex/core/memory/input_shaper/test_errors.py::TestInputShaperErrors::test_error_case[structure-missing-field-shaper_test.ShaperInvoice-None-provided_value8-StructureValidationError-could not be built]": 0.1045,
"tests/unit/pipelex/core/memory/input_shaper/test_errors.py::TestInputShaperErrors::test_error_case[wrong-bool-for-number-shaper_test.Priority-None-True-WrongScalarKindError-expects a number]": 0.057,
"tests/unit/pipelex/core/memory/input_shaper/test_errors.py::TestInputShaperErrors::test_error_case[wrong-bool-for-text-native.Text-None-True-WrongScalarKindError-expects a string]": 0.0709,
@@ -4896,13 +4915,21 @@
"tests/unit/pipelex/core/memory/input_shaper/test_file_paths.py::TestInputShaperFilePaths::test_remote_and_scheme_urls_untouched[pipelex-storage://objects/photo.jpg]": 0.0059,
"tests/unit/pipelex/core/memory/input_shaper/test_file_paths.py::TestInputShaperFilePaths::test_remote_and_scheme_urls_untouched[s3://bucket/photo.jpg]": 0.003,
"tests/unit/pipelex/core/memory/input_shaper/test_file_paths.py::TestInputShaperFilePaths::test_url_dict_form_not_reresolved_by_shaper": 0.004,
+ "tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[fixed-count-one-is-single-shaper_test.Question-1-solo-shaper_test.Question-expected_content5]": 1.528,
"tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[fixed-count-one-single-shaper_test.Question-1-solo-shaper_test.Question-expected_list_content5]": 0.0617,
+ "tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[fixed-count-two-shaper_test.Question-2-provided_value4-shaper_test.Question-expected_content4]": 0.4321,
"tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[fixed-count-two-shaper_test.Question-2-provided_value4-shaper_test.Question-expected_list_content4]": 0.0545,
+ "tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[variable-list-auto-wrap-single-shaper_test.Question-True-solo-shaper_test.Question-expected_content2]": 1.5381,
"tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[variable-list-auto-wrap-single-shaper_test.Question-True-solo-shaper_test.Question-expected_list_content2]": 0.0678,
+ "tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[variable-list-empty-shaper_test.Question-True-provided_value3-shaper_test.Question-expected_content3]": 0.0433,
"tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[variable-list-empty-shaper_test.Question-True-provided_value3-shaper_test.Question-expected_list_content3]": 0.0701,
+ "tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[variable-list-native-text-native.Text-True-provided_value1-native.Text-expected_content1]": 0.5611,
"tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[variable-list-native-text-native.Text-True-provided_value1-native.Text-expected_list_content1]": 0.1062,
+ "tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[variable-list-of-date-objects-shaper_test.Deadline-True-provided_value7-shaper_test.Deadline-expected_content7]": 0.0547,
"tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[variable-list-of-date-objects-shaper_test.Deadline-True-provided_value7-shaper_test.Deadline-expected_list_content7]": 0.2617,
+ "tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[variable-list-of-dicts-shaper_test.ShaperPerson-True-provided_value6-shaper_test.ShaperPerson-expected_content6]": 0.0162,
"tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[variable-list-of-dicts-shaper_test.ShaperPerson-True-provided_value6-shaper_test.ShaperPerson-expected_list_content6]": 0.0649,
+ "tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[variable-list-refining-shaper_test.Question-True-provided_value0-shaper_test.Question-expected_content0]": 0.3963,
"tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity::test_multiplicity_case[variable-list-refining-shaper_test.Question-True-provided_value0-shaper_test.Question-expected_list_content0]": 1.547,
"tests/unit/pipelex/core/memory/input_shaper/test_provider_injection.py::TestConceptProviderInjection::test_building_a_value_resolves_the_structure_class_through_the_injected_provider": 0.1781,
"tests/unit/pipelex/core/memory/input_shaper/test_provider_injection.py::TestConceptProviderInjection::test_resolve_input_kind_reads_the_injected_provider": 1.3453,
@@ -4973,6 +5000,7 @@
"tests/unit/pipelex/core/memory/test_working_memory_typed_access.py::TestWorkingMemoryTypedAccess::test_simple_access_with_matching_type": 0.0009,
"tests/unit/pipelex/core/memory/test_working_memory_typed_access.py::TestWorkingMemoryTypedAccess::test_simple_access_with_wrong_type": 0.0011,
"tests/unit/pipelex/core/memory/test_working_memory_typed_access.py::TestWorkingMemoryTypedAccess::test_simple_access_without_type": 1.0923,
+ "tests/unit/pipelex/core/pipes/test_concept_multiplicity_formatting.py::TestFormatConceptWithMultiplicity::test_a_fixed_count_of_one_round_trips_to_the_bare_spelling": 1.4214,
"tests/unit/pipelex/core/pipes/test_concept_multiplicity_formatting.py::TestFormatConceptWithMultiplicity::test_format_concept_with_multiplicity[Concept123-2-Concept123[2]]": 0.003,
"tests/unit/pipelex/core/pipes/test_concept_multiplicity_formatting.py::TestFormatConceptWithMultiplicity::test_format_concept_with_multiplicity[ConceptName-None-ConceptName]": 0.0004,
"tests/unit/pipelex/core/pipes/test_concept_multiplicity_formatting.py::TestFormatConceptWithMultiplicity::test_format_concept_with_multiplicity[Document-10-Document[10]]": 0.0004,
@@ -5027,6 +5055,7 @@
"tests/unit/pipelex/core/pipes/test_input_requirements_factory.py::TestMakeInputRequirementsFromString::test_explicit_domain_in_string[accounting-native.Image[3]-native.Image-3]": 0.0486,
"tests/unit/pipelex/core/pipes/test_input_requirements_factory.py::TestMakeInputRequirementsFromString::test_explicit_domain_in_string[my_domain-native.Text-native.Text-None]": 0.0567,
"tests/unit/pipelex/core/pipes/test_input_requirements_factory.py::TestMakeInputRequirementsFromString::test_explicit_domain_in_string[test_domain-native.Document[]-native.Document-True]": 0.2446,
+ "tests/unit/pipelex/core/pipes/test_input_requirements_factory.py::TestMakeInputRequirementsFromString::test_fixed_count_of_one_is_the_single_form": 0.2088,
"tests/unit/pipelex/core/pipes/test_input_requirements_factory.py::TestMakeInputRequirementsFromString::test_fixed_count_with_number_in_brackets[native-native.Document[10]-native.Document-10]": 0.0631,
"tests/unit/pipelex/core/pipes/test_input_requirements_factory.py::TestMakeInputRequirementsFromString::test_fixed_count_with_number_in_brackets[native-native.Image[3]-native.Image-3]": 0.0508,
"tests/unit/pipelex/core/pipes/test_input_requirements_factory.py::TestMakeInputRequirementsFromString::test_fixed_count_with_number_in_brackets[native-native.Text[5]-native.Text-5]": 0.062,
@@ -5057,6 +5086,8 @@
"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_false_is_compatible_with_none": 0.1134,
"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_false_is_not_compatible_with_variable_list": 0.0003,
"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_multiplicity_compatibility[1-1-True]": 0.0005,
+ "tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_multiplicity_compatibility[1-None-True]": 0.2981,
+ "tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_multiplicity_compatibility[1-True-False]": 0.1844,
"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_multiplicity_compatibility[1-True-True]": 0.0008,
"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_multiplicity_compatibility[3-3-True]": 0.0005,
"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_multiplicity_compatibility[3-5-False]": 0.0016,
@@ -5064,6 +5095,7 @@
"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_multiplicity_compatibility[3-True-True]": 0.001,
"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_multiplicity_compatibility[5-5-True]": 0.0005,
"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_multiplicity_compatibility[None-1-False]": 0.0005,
+ "tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_multiplicity_compatibility[None-1-True]": 1.4287,
"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_multiplicity_compatibility[None-3-False]": 0.0009,
"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_multiplicity_compatibility[None-None-True]": 0.9727,
"tests/unit/pipelex/core/pipes/test_is_multiplicity_compatible.py::TestIsMultiplicityCompatible::test_multiplicity_compatibility[None-True-False]": 0.0004,
@@ -5079,6 +5111,7 @@
"tests/unit/pipelex/core/pipes/test_make_variable_multiplicity.py::TestMakeVariableMultiplicity::test_make_variable_multiplicity_all_cases[nb_output=0 (falsy), multiple_output=None -> returns None]": 0.0009,
"tests/unit/pipelex/core/pipes/test_make_variable_multiplicity.py::TestMakeVariableMultiplicity::test_make_variable_multiplicity_all_cases[nb_output=0 (falsy), multiple_output=True -> returns True]": 0.0005,
"tests/unit/pipelex/core/pipes/test_make_variable_multiplicity.py::TestMakeVariableMultiplicity::test_make_variable_multiplicity_all_cases[nb_output=1, multiple_output=True -> returns 1 (nb_output takes precedence)]": 0.0009,
+ "tests/unit/pipelex/core/pipes/test_make_variable_multiplicity.py::TestMakeVariableMultiplicity::test_make_variable_multiplicity_all_cases[nb_output=1, multiple_output=True -> returns None (a count of one is the single form)]": 0.2127,
"tests/unit/pipelex/core/pipes/test_make_variable_multiplicity.py::TestMakeVariableMultiplicity::test_make_variable_multiplicity_all_cases[nb_output=10, multiple_output=None -> returns 10]": 0.001,
"tests/unit/pipelex/core/pipes/test_make_variable_multiplicity.py::TestMakeVariableMultiplicity::test_make_variable_multiplicity_all_cases[nb_output=1000, multiple_output=None -> returns 1000]": 0.0004,
"tests/unit/pipelex/core/pipes/test_make_variable_multiplicity.py::TestMakeVariableMultiplicity::test_make_variable_multiplicity_all_cases[nb_output=3, multiple_output=None -> returns 3]": 1.0425,
@@ -5102,7 +5135,17 @@
"tests/unit/pipelex/core/pipes/test_multiplicity_helpers.py::TestMultiplicityHelpers::test_is_multiple[False-False]": 0.2132,
"tests/unit/pipelex/core/pipes/test_multiplicity_helpers.py::TestMultiplicityHelpers::test_is_multiple[None-False]": 0.2197,
"tests/unit/pipelex/core/pipes/test_multiplicity_helpers.py::TestMultiplicityHelpers::test_is_multiple[True-True]": 1.402,
+ "tests/unit/pipelex/core/pipes/test_multiplicity_helpers.py::TestMultiplicityHelpers::test_normalize[1-None]": 0.0004,
+ "tests/unit/pipelex/core/pipes/test_multiplicity_helpers.py::TestMultiplicityHelpers::test_normalize[10-10]": 0.0181,
+ "tests/unit/pipelex/core/pipes/test_multiplicity_helpers.py::TestMultiplicityHelpers::test_normalize[2-2]": 0.0022,
+ "tests/unit/pipelex/core/pipes/test_multiplicity_helpers.py::TestMultiplicityHelpers::test_normalize[False-False]": 1.3907,
+ "tests/unit/pipelex/core/pipes/test_multiplicity_helpers.py::TestMultiplicityHelpers::test_normalize[None-None]": 0.1805,
+ "tests/unit/pipelex/core/pipes/test_multiplicity_helpers.py::TestMultiplicityHelpers::test_normalize[True-True]": 0.0229,
+ "tests/unit/pipelex/core/pipes/test_multiplicity_helpers.py::TestMultiplicityHelpers::test_normalize_does_not_silently_repair_an_invalid_count": 0.0194,
+ "tests/unit/pipelex/core/pipes/test_multiplicity_helpers.py::TestMultiplicityHelpers::test_normalize_leaves_a_variable_list_alone": 1.399,
"tests/unit/pipelex/core/pipes/test_parse_concept_with_multiplicity.py::TestParseConceptWithMultiplicity::test_concepts_starting_with_underscore": 0.0003,
+ "tests/unit/pipelex/core/pipes/test_parse_concept_with_multiplicity.py::TestParseConceptWithMultiplicity::test_fixed_count_of_one_is_the_single_form": 0.1876,
+ "tests/unit/pipelex/core/pipes/test_parse_concept_with_multiplicity.py::TestParseConceptWithMultiplicity::test_fixed_count_of_one_keeps_its_presence_marker": 0.0209,
"tests/unit/pipelex/core/pipes/test_parse_concept_with_multiplicity.py::TestParseConceptWithMultiplicity::test_invalid_negative_multiplicity": 0.0008,
"tests/unit/pipelex/core/pipes/test_parse_concept_with_multiplicity.py::TestParseConceptWithMultiplicity::test_invalid_presence_marker_syntax[!Text]": 0.0009,
"tests/unit/pipelex/core/pipes/test_parse_concept_with_multiplicity.py::TestParseConceptWithMultiplicity::test_invalid_presence_marker_syntax[!]": 0.1464,
@@ -6367,6 +6410,8 @@
"tests/unit/pipelex/libraries/test_concept_validation_cross_package.py::TestConceptValidationCrossPackageLibrary::test_validate_concept_library_skips_unloaded_dependency": 0.1454,
"tests/unit/pipelex/libraries/test_concept_validation_cross_package.py::TestConceptValidationCrossPackageLibrary::test_validation_static_skips_cross_package_refines": 0.8458,
"tests/unit/pipelex/libraries/test_concept_validation_cross_package.py::TestConceptValidationCrossPackageLibrary::test_validation_static_still_catches_missing_local_refines": 0.0014,
+ "tests/unit/pipelex/libraries/test_contract_match.py::TestContractsMatchPresenceMarkers::test_a_fixed_count_of_one_keeps_its_marker_distinct": 0.0174,
+ "tests/unit/pipelex/libraries/test_contract_match.py::TestContractsMatchPresenceMarkers::test_a_fixed_count_of_one_matches_the_bare_spelling": 1.4182,
"tests/unit/pipelex/libraries/test_contract_match.py::TestContractsMatchPresenceMarkers::test_differing_input_markers_do_not_match[Brief!-Brief?]": 0.0008,
"tests/unit/pipelex/libraries/test_contract_match.py::TestContractsMatchPresenceMarkers::test_differing_input_markers_do_not_match[Brief!-Brief]": 0.0005,
"tests/unit/pipelex/libraries/test_contract_match.py::TestContractsMatchPresenceMarkers::test_differing_input_markers_do_not_match[Brief-Brief?]": 0.0009,
@@ -7249,6 +7294,9 @@
"tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_output_syntax_rejected[!Text]": 0.0684,
"tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_output_syntax_rejected[Text??]": 0.0018,
"tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_malformed_marker_output_syntax_rejected[Text?[]]": 0.001,
+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_marker_on_count_of_one_input_accepted[Text[1]!]": 0.0197,
+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_marker_on_count_of_one_input_accepted[Text[1]?]": 0.1966,
+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_marker_on_count_of_one_input_accepted[domain.Concept[1]?]": 1.387,
"tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_marker_on_plural_input_rejected[Text[3]!]": 0.0012,
"tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_marker_on_plural_input_rejected[Text[3]?]": 0.0011,
"tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_marker_on_plural_input_rejected[Text[]!]": 0.0009,
@@ -7261,6 +7309,10 @@
"tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_singular_input_markers_accepted[Text?]": 0.7624,
"tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_singular_input_markers_accepted[domain.Concept!]": 0.0005,
"tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_singular_input_markers_accepted[domain.Concept?]": 0.0008,
+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_zero_count_input_rejected[Text[0]!]": 0.0157,
+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_zero_count_input_rejected[Text[0]?]": 0.0007,
+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_zero_count_input_rejected[Text[0]]": 0.0014,
+ "tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_presence_markers.py::TestPipeBlueprintPresenceMarkers::test_zero_count_input_rejected[domain.Concept[0]]": 1.4189,
"tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_coercing_signature_tag_to_pipe_type_raises": 0.0004,
"tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_pipe_category_signature_member_removed": 0.0006,
"tests/unit/pipelex/pipe_machinery/test_pipe_blueprint_signature_enums.py::TestPipeSignatureTaxonomyEviction::test_pipe_type_signature_member_removed": 0.0003,
@@ -7636,6 +7688,8 @@
"tests/unit/pipelex/pipe_run/test_pipe_run.py::TestPipeRun::test_run_success_no_delivery_when_none": 0.0042,
"tests/unit/pipelex/pipe_run/test_pipe_run.py::TestPipeRun::test_run_success_with_delivery": 0.8717,
"tests/unit/pipelex/pipe_run/test_pipe_run.py::TestPipeRun::test_run_success_with_tracer_close_oserror_propagates_oserror": 0.0051,
+ "tests/unit/pipelex/pipe_run/test_pipe_run_params.py::TestOutputMultiplicityToApply::test_a_base_count_of_one_is_the_single_form": 0.2174,
+ "tests/unit/pipelex/pipe_run/test_pipe_run_params.py::TestOutputMultiplicityToApply::test_a_requested_count_of_one_forces_the_single_form": 0.0179,
"tests/unit/pipelex/pipe_run/test_pipe_run_params.py::TestOutputMultiplicityToApply::test_complex_scenarios": 0.1084,
"tests/unit/pipelex/pipe_run/test_pipe_run_params.py::TestOutputMultiplicityToApply::test_edge_cases": 0.0003,
"tests/unit/pipelex/pipe_run/test_pipe_run_params.py::TestOutputMultiplicityToApply::test_output_multiplicity_to_apply_all_cases[base=-1, override=None]": 0.0009,
@@ -7648,6 +7702,7 @@
"tests/unit/pipelex/pipe_run/test_pipe_run_params.py::TestOutputMultiplicityToApply::test_output_multiplicity_to_apply_all_cases[base=3, override=False]": 0.0008,
"tests/unit/pipelex/pipe_run/test_pipe_run_params.py::TestOutputMultiplicityToApply::test_output_multiplicity_to_apply_all_cases[base=3, override=None]": 0.0012,
"tests/unit/pipelex/pipe_run/test_pipe_run_params.py::TestOutputMultiplicityToApply::test_output_multiplicity_to_apply_all_cases[base=3, override=True - preserve base count]": 0.0014,
+ "tests/unit/pipelex/pipe_run/test_pipe_run_params.py::TestOutputMultiplicityToApply::test_output_multiplicity_to_apply_all_cases[base=5, override=1 - a requested count of one is a request for the single form]": 0.2106,
"tests/unit/pipelex/pipe_run/test_pipe_run_params.py::TestOutputMultiplicityToApply::test_output_multiplicity_to_apply_all_cases[base=5, override=1 - override takes precedence]": 0.0009,
"tests/unit/pipelex/pipe_run/test_pipe_run_params.py::TestOutputMultiplicityToApply::test_output_multiplicity_to_apply_all_cases[base=5, override=None]": 0.001,
"tests/unit/pipelex/pipe_run/test_pipe_run_params.py::TestOutputMultiplicityToApply::test_output_multiplicity_to_apply_all_cases[base=7, override=True - preserve base count]": 0.0014,
@@ -7964,8 +8019,6 @@
"tests/unit/pipelex/pipeline/test_hint_warnings.py::TestHintLintSilence::test_applicable_hints_produce_no_warning": 0.0006,
"tests/unit/pipelex/pipeline/test_hint_warnings.py::TestHintLintSilence::test_hint_free_crate_produces_no_warning": 0.0004,
"tests/unit/pipelex/pipeline/test_hint_warnings.py::TestHintLintSilence::test_warned_content_stays_in_the_crate": 0.0007,
- "tests/unit/pipelex/pipeline/test_input_form_list_items.py::TestDerivedListItemsAreNameless::test_a_concept_item_is_the_nameless_model_and_keeps_its_payload": 0.4948,
- "tests/unit/pipelex/pipeline/test_input_form_list_items.py::TestDerivedListItemsAreNameless::test_a_scalar_item_is_the_nameless_model": 0.4989,
"tests/unit/pipelex/pipeline/test_input_form_deriver.py::TestInputFormDeriverEscapeHatches::test_chain_ending_at_a_base_absent_from_the_crate_is_unknown": 0.2013,
"tests/unit/pipelex/pipeline/test_input_form_deriver.py::TestInputFormDeriverEscapeHatches::test_concept_absent_from_the_crate_is_unknown_without_a_class": 0.0187,
"tests/unit/pipelex/pipeline/test_input_form_deriver.py::TestInputFormDeriverEscapeHatches::test_cycle_guard_emits_unknown_on_revisit": 0.1974,
@@ -7982,6 +8035,8 @@
"tests/unit/pipelex/pipeline/test_input_form_hints.py::TestStructureFieldHints::test_field_hints_stamped_and_feed_kind": 0.0004,
"tests/unit/pipelex/pipeline/test_input_form_hints.py::TestStructureFieldHints::test_list_field_hints_ride_list_and_item": 0.0003,
"tests/unit/pipelex/pipeline/test_input_form_hints.py::TestStructureFieldHints::test_rating_on_integer_field_rides_without_changing_kind": 0.0004,
+ "tests/unit/pipelex/pipeline/test_input_form_list_items.py::TestDerivedListItemsAreNameless::test_a_concept_item_is_the_nameless_model_and_keeps_its_payload": 0.4948,
+ "tests/unit/pipelex/pipeline/test_input_form_list_items.py::TestDerivedListItemsAreNameless::test_a_scalar_item_is_the_nameless_model": 0.4989,
"tests/unit/pipelex/pipeline/test_input_form_models.py::TestInputFormFieldValidators::test_date_requires_datetime_flag": 0.0004,
"tests/unit/pipelex/pipeline/test_input_form_models.py::TestInputFormFieldValidators::test_enum_requires_choices": 1.4174,
"tests/unit/pipelex/pipeline/test_input_form_models.py::TestInputFormFieldValidators::test_list_requires_item": 0.0006,
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 739fd2bee..f6d14b915 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,22 +1,30 @@
# Changelog
-## [Unreleased]
+## [v0.54.0] - 2026-08-28
### Added
-- **Live conformance check against the standard's native-concepts page**: A new test holds the pinned native-concept set (`pinned_blueprints.py`) to the standard's own `native-concepts.md`, read from the sibling `mthds` checkout — definition for definition and field for field, section and field order included. The dedicated `MTHDS standard conformance` CI workflow checks the standard out beside this repo (unpinned, at its default branch) and runs the check on every pull request, so the day the standard moves a definition this repo goes red instead of a downstream port. A red with no pinned-set change in the PR means the standard moved, not that the PR broke something; the remedy is a dedicated catch-up change.
+- **MTHDS standard conformance CI**: A new test holds the pinned native-concept set (`pinned_blueprints.py`) to the standard's own `native-concepts.md`, read from a sibling `mthds` checkout — definition for definition, field for field, order included. The `mthds-standard-check.yml` workflow checks the standard out at its default branch and runs it on every pull request, so the day the standard moves a definition this repo goes red instead of a downstream port.
+- **`bump-mthds` Claude skill**: A skill (with its `upstream_notes.py` helper) that automates moving the `mthds` dependency: it finds the latest release, re-locks, adapts the engine source to what the release broke, runs the checks and drafts the changelog entry.
### Changed
-- **`Concept[1]` is the single form everywhere, at run time too (Breaking)**: The language says a count of one is not a list — `Concept[1]` declares the same slot as `Concept`, with the count written out — and the contract, the schema render and the input-form descriptor all said so, but the runtime's memory shaper framed a `[1]` slot as a one-item list and the output resolution generated one. A consumer that rendered a form from the descriptor and submitted what it said was therefore refused by the shaper. The count now collapses to the single form at the two parsers and the one factory that build a multiplicity, so the value `1` no longer exists downstream: a `[1]` input takes the value itself and refuses a list exactly as a bare declaration does, a `[1]` output produces one object rather than a `ListContent` of one, a header's `Brief` and a definition's `Brief[1]` are one contract instead of a merge mismatch, and a presence marker beside a count of one (`Concept[1]?`) is accepted on inputs as it already was on outputs. A sequence declaring a plural output whose last step yields a count of one no longer validates — a count of one is the single form, and the single form does not fulfill a list expectation — so `is_multiplicity_compatible` answers `False` where it answered `True`. A run-time `output_multiplicity=1` override now means the single form rather than a one-item list, and a re-rendered ref is canonicalized — `Concept[1]` comes back as `Concept`, the other spelling of the same slot. The rule holds across the layers that restate it: the builder's spec validator accepts `Concept[1]?` inputs exactly as the blueprint does, an image-generation pipe declaring `Image[]` honors a run-time count of one instead of refusing it as unresolved, and the static absence-taint pass classifies a one-count step result as single the way the run path resolves it. A zero count is now refused where it is written — `Concept[0]` inputs fail blueprint and spec validation with "multiplicity must be at least 1", as outputs always did — instead of surfacing later as an uncaught parse error. See [Understanding multiplicity](building-methods/pipes/understanding-multiplicity.md).
-- **`native.Html`'s `css_class` is optional (Breaking)**: Matching MTHDS v0.9.0, `HtmlContent.css_class` is now `str | None = None` and the pinned blueprint no longer marks the field required — an `Html` value is its markup, and the class is presentation a producer states when it has one. Composed HTML no longer fabricates an empty `css_class` to satisfy the model, JSON rendering omits an unset class instead of emitting an empty string, and structured output no longer forces a generating LLM to invent presentation data nobody asked for.
-- **`native.Date` and `native.Html` are `object` nodes in the input-form descriptor (Breaking for descriptor consumers)**: The derivation moves both onto the standard's object arm, deriving `fields` from the pinned definitions like the other structured natives — a `Date` slot is an object with a required `date` and an optional `time` child, an `Html` slot an object with a required `inner_html` and an optional `css_class` — instead of the former `date` and `prose` scalars, which reported shapes the slots' own schemas rejected.
-- **Input-form descriptor conformance fixes (Breaking for descriptor consumers)**: A description-only concept's `refines` now carries the authored chain alone (absent when nothing was authored) instead of a fabricated `native.Text` link the spec forbids reconstructing — text-valuedness still reaches the wire as `kind: "prose"`. And a list's `item` node no longer carries a `name` member: the spec states an item has no authored name, and the index labels entries.
-- **The input-form descriptor and the pipe I/O contracts are typed by the standard now (Breaking for importers)**: The wire models of both artifacts are declared once, by the MTHDS standard's Python client, and Pipelex imports them instead of restating them. `pipelex/pipeline/pipe_io_contracts.py` re-exports `PipeInputContract`, `PipeOutputContract`, `PipeIOContract` and `IOMultiplicity` from `mthds.protocol.pipe_io_contracts`; `pipelex/pipeline/input_form.py` re-exports `FieldKind`, `PipeInputFormDescriptor` and the field models from `mthds.protocol.input_form`; and `pipelex/core/pipes/variable_multiplicity.py` re-exports `PresenceMarker` from the contracts module, since the marker is part of the contract's wire vocabulary. **The wire is unchanged** — every field name, every value, and every absent-versus-null rule is the one the engine already emitted, and the derivation is the same derivation. What moved is which package declares the shape. Importers are affected in three ways: a field descriptor is now one model per kind (`TextField`, `ProseField`, `DateField`, `NumberField`, `BooleanField`, `EnumField`, `DocumentField`, `ImageField`, `ObjectField`, `ListField`, `UnknownField`) under an `InputFormField` union discriminated on `kind`, so a node is narrowed with `isinstance` or a `match` on its class rather than read off a flat model; `FieldKind.is_list` and `FieldKind.is_object` are gone with that narrowing; and the `date` kind's Python attribute is now `datetime`, the name it always had on the wire, rather than `datetime_flag`. Because the engine constructs the standard's own closed shapes, a drift between what it emits and what the standard defines now fails at derivation instead of silently on the wire. See [Input-form descriptor](under-the-hood/input-form-descriptor.md) and [Pipe I/O contracts](under-the-hood/pipe-io-contracts.md).
-- **`PresenceMarker`'s symbol grammar moved off the enum (Breaking)**: The marker enum is the standard's, so the three helpers that are this engine's `.mthds` suffix grammar rather than wire vocabulary became module-level functions in `pipelex/core/pipes/variable_multiplicity.py`: `PresenceMarker.from_symbol(...)` is `presence_from_symbol(symbol=...)`, `marker.symbol` is `presence_symbol(presence=marker)`, and `marker.is_force` is `is_force_presence(presence=marker)`, all keyword-only per this repo's convention. `is_optional` and `is_plain` stay properties on the enum, which the standard declares.
-- **The input-form descriptor's item layer is a type of its own (Breaking for importers)**: The standard now splits the field union in two instead of carrying `name` as an optional slot on one shared base, and `pipelex/pipeline/input_form.py` re-exports both layers. `InputFormField` stays the named union, whose per-kind models (`TextField`, `ObjectField`, …) now require `name: str` rather than admitting `None`; the new `InputFormItem` union is their nameless counterpart (`TextItem`, `ObjectItem`, …), which is what a list's `item` holds and the only shape that position accepts. Two re-exported base classes were renamed with it: `InputFormFieldBase` is now `InputFormItemBase`, and `TextValuedFieldBase` is now `TextValuedItemBase`. **The wire is unchanged** — this engine already stopped emitting `name` on an item; what moved is that the rule is now the shape rather than a convention, so an item built with a name fails at construction and a consumer reading `field.name` gets a `str` with nothing to narrow.
-- **Agent-rule refinement on `TypeAdapter`** (`pipelex/kit/agent_rules/python_standards.md`): the flat ban becomes a scoped one — don't design shapes that need a `TypeAdapter`, but validating into a top-level union or container owned by an external contract (a standard's wire model, a log stream of one-of-many event types) is its sanctioned use, as a module-level singleton. The input-form deriver's list-item conversion is exactly that case and keeps its adapter.
-- **`mthds` is pinned exactly (Breaking for anyone who also depends on `mthds`)**: The dependency moves from a floor to `mthds==0.11.0`, the release carrying that split and the descriptor's coherence rules — a top-level field whose `required` contradicts its presence marker, one pairing `gating: true` with an optional marker, and a wire node spelling absence as an explicit `null` are now rejected at the parse, which gates this engine's emission at derivation time rather than on the wire. Everyone downstream of Pipelex inherits that exact version: a consumer that also depends on `mthds` must move in step with Pipelex rather than take an `mthds` release on its own.
+- **`mthds` is pinned exactly to `==0.11.1`** (previously `>=0.8.2`). Everyone downstream of Pipelex inherits that exact version, so a consumer that also depends on `mthds` must now move in step with Pipelex rather than resolving its own. (Breaking)
+- **Multiplicity `[1]` is strictly singular**: a count of one (e.g. `Concept[1]`) is universally the single form, not a one-item list. A `[1]` input takes the value itself and refuses a list, a `[1]` output produces one object rather than a `ListContent` of one, a re-rendered ref canonicalizes back to `Concept`, and a presence marker beside a count of one (`Concept[1]?`) is accepted on inputs as it already was on outputs. A sequence declaring a plural output whose last step yields one no longer validates, and `Concept[0]` is rejected at parse time with a validation error instead of surfacing later. See [Understanding multiplicity](building-methods/pipes/understanding-multiplicity.md). (Breaking)
+- **`native.Html.css_class` is now optional** (`str | None`), matching MTHDS v0.9.0. An `Html` value is its markup, and the class is presentation a producer states when it has one — composed HTML and JSON rendering no longer fabricate an empty `css_class`, and structured output no longer forces a generating LLM to invent it. (Breaking)
+- **Input-form descriptors and pipe I/O contracts are typed by the standard now**: both artifacts' wire models are imported from `mthds.protocol` instead of being restated here, and re-exported from `pipelex/pipeline/input_form.py` and `pipelex/pipeline/pipe_io_contracts.py`. The wire is unchanged; what moved is which package declares the shape. Importers are affected three ways: a field descriptor is one model per kind (`TextField`, `ObjectField`, …) under an `InputFormField` union discriminated on `kind`, narrowed with `isinstance` or `match` rather than read off a flat model, so `FieldKind.is_list` and `FieldKind.is_object` are gone; the `date` kind's Python attribute is now `datetime`, the name it always had on the wire, rather than `datetime_flag`; and the item layer is a distinct `InputFormItem` union (`TextItem`, `ObjectItem`, …) that structurally forbids the `name` a list item never had, renaming `InputFormFieldBase` to `InputFormItemBase` and `TextValuedFieldBase` to `TextValuedItemBase`. See [Input-form descriptor](under-the-hood/input-form-descriptor.md) and [Pipe I/O contracts](under-the-hood/pipe-io-contracts.md). (Breaking)
+- **`native.Date` and `native.Html` are `object` nodes in the input-form descriptor**, with `fields` derived from their pinned definitions, rather than the former `date` and `prose` scalars — which reported shapes the slots' own schemas rejected. (Breaking)
+- **`PresenceMarker` is imported from the standard**, so the three helpers that are this engine's `.mthds` suffix grammar rather than wire vocabulary became module-level functions in `pipelex/core/pipes/variable_multiplicity.py`: `presence_from_symbol`, `presence_symbol` and `is_force_presence`, all keyword-only. `is_optional` and `is_plain` stay properties on the enum. (Breaking)
+- **Input-form descriptor conformance**: a description-only concept's `refines` now carries only the authored chain and no longer fabricates the `native.Text` link the spec forbids reconstructing — text-valuedness still reaches the wire as `kind: "prose"`.
+- **`TypeAdapter` agent rule refined** (`pipelex/kit/agent_rules/python_standards.md`): the flat ban becomes a scoped one. Don't design shapes that need a `TypeAdapter`, but validating into a top-level union or container owned by an external contract — a standard's wire model, a log stream of one-of-many event types — is its sanctioned use, as a module-level singleton.
+- **Bumped `pyright` to `1.1.411`.** The release narrows `hasattr()` on an `Any` or `type[Any]` operand to `type[object]` instead of leaving it wide, which turned two duck-typed guards into type errors; both now test what they mean — `issubclass(..., BaseModel)` before calling `model_validate`, and `typing.get_origin` instead of reaching for `__origin__`.
+
+### Fixed
+
+- **Input-form field serialization**: `mthds` 0.11.1 drops the `-> dict[str, Any]` return annotation from the wrap serializer every field descriptor shares. Pydantic preferred that annotation over the schema it would generate, so `TextField.model_json_schema(mode="serialization")` and each of its siblings came back as an opaque `{"type": "object", "additionalProperties": true}` — the mode a server generating response-model schemas asks for, so a FastAPI consumer embedding `PipeInputFormDescriptor` published a `kind`-discriminated union whose arms described nothing. The per-kind shapes are back.
+- **Sequence output enrichment**: a sequence step with `nb_output = 1` on an optional boundary no longer drops the optional marker (`?`) during fix planning.
+- **Parallel pipe output validation**: a plural branch with `nb_output = 1` no longer bypasses type checking, which previously let an incompatible singular result through to crash at run time.
+- **Image generation multiplicity**: `PipeImgGen` honors an `output_multiplicity=1` run-time override, generating a single image instead of refusing it as unresolved.
## [v0.53.0] - 2026-08-25
diff --git a/pipelex/pipe_operators/compose/structured_content_composer.py b/pipelex/pipe_operators/compose/structured_content_composer.py
index 199c4f9de..9dbffaf6a 100644
--- a/pipelex/pipe_operators/compose/structured_content_composer.py
+++ b/pipelex/pipe_operators/compose/structured_content_composer.py
@@ -2,7 +2,7 @@ import datetime
import inspect
from typing import Any, NamedTuple, TypeAlias, cast, get_args, get_origin
-from pydantic import ValidationError
+from pydantic import BaseModel, ValidationError
from pipelex import log
from pipelex.cogt.templating.template_rendering import render_template
@@ -733,7 +733,7 @@ class StructuredContentComposer:
log.verbose(f" Item[{idx}]: Validating conversion {actual_type.__name__} -> {expected_type_name}")
item_dict = item.model_dump(exclude_none=False, serialize_as_any=True)
- if hasattr(expected_type, "model_validate"):
+ if inspect.isclass(expected_type) and issubclass(expected_type, BaseModel):
try:
expected_type.model_validate(item_dict)
except ValidationError as exc:
diff --git a/pipelex/system/registries/func_registry.py b/pipelex/system/registries/func_registry.py
index dc3f8ed3e..f0103c217 100644
--- a/pipelex/system/registries/func_registry.py
+++ b/pipelex/system/registries/func_registry.py
@@ -1,7 +1,7 @@
import inspect
import logging
from collections.abc import Callable
-from typing import Any, TypeVar, cast, get_type_hints
+from typing import Any, TypeVar, cast, get_origin, get_type_hints
from pydantic import Field, PrivateAttr, RootModel
from typing_extensions import override
@@ -289,10 +289,9 @@ class FuncRegistry(RootModel[FuncRegistryDict]):
if inspect.isclass(return_type) and issubclass(return_type, StuffContent):
return True
# Handle generic types like ListContent[SomeType]
- if hasattr(return_type, "__origin__"):
- origin = return_type.__origin__
- if inspect.isclass(origin) and issubclass(origin, StuffContent):
- return True
+ origin = get_origin(return_type)
+ if inspect.isclass(origin) and issubclass(origin, StuffContent):
+ return True
except TypeError:
# Handle cases where issubclass fails on generic types
pass
@@ -364,10 +363,9 @@ class FuncRegistry(RootModel[FuncRegistryDict]):
if inspect.isclass(return_type) and issubclass(return_type, StuffContent):
return None # Eligible
# Handle generic types like ListContent[SomeType]
- if hasattr(return_type, "__origin__"):
- origin = return_type.__origin__
- if inspect.isclass(origin) and issubclass(origin, StuffContent):
- return None # Eligible
+ origin = get_origin(return_type)
+ if inspect.isclass(origin) and issubclass(origin, StuffContent):
+ return None # Eligible
except TypeError:
pass
diff --git a/pyproject.toml b/pyproject.toml
index 1ca4b9ef5..4e1e390e7 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "pipelex"
-version = "0.53.0"
+version = "0.54.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]" }]
@@ -31,7 +31,7 @@ dependencies = [
"json2html>=1.3.0",
"kajson==0.7.0",
"markdown>=3.6",
- "mthds==0.11.0",
+ "mthds==0.11.1",
"networkx>=3.4.2",
"openai>=2.0.0",
"opentelemetry-api",
@@ -118,7 +118,7 @@ dev = [
"moto[dynamodb,s3]>=5.0.0",
"mypy==1.19.1",
"pipelex-tools>=0.7.2",
- "pyright==1.1.410",
+ "pyright==1.1.411",
"pylint==4.0.4",
"pytest>=9.0.3",
"pytest-asyncio>=0.24.0",
diff --git a/uv.lock b/uv.lock
index 8788c967a..9582be575 100644
--- a/uv.lock
+++ b/uv.lock
@@ -2552,7 +2552,7 @@ wheels = [
[[package]]
name = "mthds"
-version = "0.11.0"
+version = "0.11.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "httpx" },
@@ -2561,9 +2561,9 @@ dependencies = [
{ name = "tomlkit" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/77/56/56b183589d379effac8af3e319a54907b767e8bd0f2114adacade72a8fde/mthds-0.11.0.tar.gz", hash = "sha256:26bc0fbac97e2ac2b92d7dbde4ef22fc952f3b7f0526987094a8c334b951855e", size = 165653, upload-time = "2026-08-27T12:01:42.887Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/44/9a/93d688320010ad14a31c863c3882fabc2f8637622f69fd8e4aed64a3f2bb/mthds-0.11.1.tar.gz", hash = "sha256:5f52b703835abe9e40a000d76023e2bd29124655c049b1ef9eeab4a8761b6e2c", size = 170790, upload-time = "2026-08-28T11:17:02.146Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/c1/39/df15725a1b461814d92467ec86b702e1211036782561e2bbd7f6e1b45a74/mthds-0.11.0-py3-none-any.whl", hash = "sha256:78897422a4da0b767cd0a0218fb44eba9fb325839085a4227588b52e1214431e", size = 71591, upload-time = "2026-08-27T12:01:41.686Z" },
+ { url = "https://files.pythonhosted.org/packages/e5/1c/74abc1b8b63813c0de69218b003e777cc92a7327d21b90911c10502b2e69/mthds-0.11.1-py3-none-any.whl", hash = "sha256:760cd7d3f7e86b8f962e1d3a4e87e6146b94968b9422ddfc22e006a3fc305ba3", size = 71954, upload-time = "2026-08-28T11:17:00.67Z" },
]
[[package]]
@@ -3303,7 +3303,7 @@ wheels = [
[[package]]
name = "pipelex"
-version = "0.53.0"
+version = "0.54.0"
source = { editable = "." }
dependencies = [
{ name = "aiofiles" },
@@ -3472,7 +3472,7 @@ requires-dist = [
{ name = "mkdocs-meta-manager", marker = "extra == 'docs'", specifier = ">=1.1.0" },
{ name = "mkdocs-redirects", marker = "extra == 'docs'", specifier = "==1.2.2" },
{ name = "moto", extras = ["dynamodb", "s3"], marker = "extra == 'dev'", specifier = ">=5.0.0" },
- { name = "mthds", specifier = "==0.11.0" },
+ { name = "mthds", specifier = "==0.11.1" },
{ name = "mypy", marker = "extra == 'dev'", specifier = "==1.19.1" },
{ name = "networkx", specifier = ">=3.4.2" },
{ name = "openai", specifier = ">=2.0.0" },
@@ -3492,7 +3492,7 @@ requires-dist = [
{ name = "pylint", marker = "extra == 'dev'", specifier = "==4.0.4" },
{ name = "pymdown-extensions", marker = "extra == 'docs'", specifier = ">=10.21.3" },
{ name = "pypdfium2", specifier = ">=4.30.0,!=4.30.1,<5.0.0" },
- { name = "pyright", marker = "extra == 'dev'", specifier = "==1.1.410" },
+ { name = "pyright", marker = "extra == 'dev'", specifier = "==1.1.411" },
{ name = "pytest", marker = "extra == 'dev'", specifier = ">=9.0.3" },
{ name = "pytest-asyncio", marker = "extra == 'dev'", specifier = ">=0.24.0" },
{ name = "pytest-cov", marker = "extra == 'dev'", specifier = ">=6.1.1" },
@@ -4058,15 +4058,15 @@ wheels = [
[[package]]
name = "pyright"
-version = "1.1.410"
+version = "1.1.411"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "nodeenv" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/10/53/e4d8ea1391bd4355231be6f91bf239479aa0014260ed3fb5526eeb12a1f2/pyright-1.1.410.tar.gz", hash = "sha256:07a073b8ba6749826773c1269773efa11b93440d9a6aa60419d9a3172d6dc488", size = 4062013, upload-time = "2026-06-01T17:35:48.894Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/7e/ab/265f7dc69d28113ebba19092e57b075f41543b2ed048429c5f56e2b88eac/pyright-1.1.411.tar.gz", hash = "sha256:d885a0551f2e763b089a02702174e7f4ba77548cddabc972ab86d1f7f1b0f998", size = 4112861, upload-time = "2026-06-25T02:14:06.37Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/d7/33/288b5868fa00846dacf249633719d747893e54aebd196b9968ac1878a5d3/pyright-1.1.410-py3-none-any.whl", hash = "sha256:5e961bed37cacf96b3f7cd7b1da39b350a9239aa2e69138d0e88f728cfaf296c", size = 6082448, upload-time = "2026-06-01T17:35:46.387Z" },
+ { url = "https://files.pythonhosted.org/packages/0a/49/385be530a6a5b78d1cbcd5c2e38debc8959a2fc6bdb716f4e581002979fc/pyright-1.1.411-py3-none-any.whl", hash = "sha256:dc7c72a8e2700c55baa127554040e067041ea53ccfd50bf96308cc4291c7d5d9", size = 6181526, upload-time = "2026-06-25T02:14:04.691Z" },
]
[[package]]