Skip to content

v0.122.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 17:08
9daf366

[v0.122.0] - 2026-11-28

Added

  • Contract facts on fields, input slots and Number concepts: a structure field or an expanded input slot may state minimum, maximum, exclusive_minimum, exclusive_maximum, min_length, max_length, pattern, format, unit, aggregate and examples, and a concept refining Number may state its unit, which its refinements inherit. A fact that does not apply where it is written, contradicts another or is broken by an example or a default is refused with the error type contract_fact_invalid, its fact, reason and field_path carried as parameters, under the code method.contract_fact_invalid.
  • Constraints are enforced and stated wherever the value is: a field's constraints become constraints of its generated structure class, of the class the python-structures codegen target writes (as Annotated[X, ContractFacts({...})], which validates as the runtime class does) and of its JSON Schema, and the dry run's mocks satisfy them, a mock text holding at most 100,000 characters, a mock number keeping an integer bound or example exact, and a pattern the mock generator cannot draw from, such as a conditional, mocked from the field's examples or else reported as method.mock_unsatisfiable; a slot typed by a Number states its facts on every arm of the value's schema, integer and number alike; a slot's facts and options are stated on the value property of its input JSON Schema, and a caller's value breaking them, a text given by URL or stored for its size included, is refused at the run's entry pipe as input.invalid; the input-form descriptors state every fact their kind has a member for. A pattern is searched with the regex engine under a time limit of a tenth of a second, the values a caller sends for one input sharing one second at the input gate, and a value whose search overruns either is refused rather than let through; a pattern whose counted repetitions write out past 10,000 positions is refused as contract_fact_invalid. A refusal quotes a long value cut short with its length.
  • Choice options with words: a choices option may be a table { value, label, description, tone }, the tone one of positive, caution, negative and neutral, and a table carrying value alone normalizes to its string. A table without a value, with an empty value, sharing its value or its label with another option, or a choices list with no option is refused; a plain option list that repeats a value or holds an empty one only warns, as choice_option_dubious with field_path and reason.
  • An input slot's own description and options: an expanded input slot may carry a description, which the input-form descriptor shows in place of the concept's, and a text-valued slot may carry choices, which make its descriptor an enum. Facts on a slot of no value class are refused with the reason not_value_slot, and beside choices a slot takes no length, pattern, format or examples.
  • activity, output_filename and outcome tables: a pipe may state its activity, one line naming what it is doing, never on a signature; an operator whose output is an Image or a Document may name its file with an output_filename template, which counts as reading the inputs it names and must guard every optional one; a PipeCondition outcome or its default_outcome may be a table { pipe, label, description, tone }, each label unique within the condition.
  • Produced files take the name output_filename builds: when an operator stating output_filename has produced its output, the template is rendered once with the pipe's inputs as they were before the step ran, a text stored for its size loaded first, and each Image or Document takes the name built from it as its filename, the name a download and pipelex run --save-main-stuff use: normalized, with separators, reserved and control characters replaced by -, given the extension of the name the runtime would have given it, capped at 255 bytes of UTF-8 without splitting a character, the runtime's own name included when the file falls back to it, and numbered (2), (3) on a plural output's later files. A template that fails to render for any reason, or leaves nothing, keeps the runtime's name with a warning, so naming a file never fails a step, and the stored file is left where it was.
  • Run views read a step's activity and the words of the outcome taken: a graph node carries its pipe's activity beside its description, as does the trace event that starts it, and a condition's node records the label, description and tone of the outcome a live run took in its execution_data, as selected_outcome_label, selected_outcome_description and selected_outcome_tone.
  • The result line of a run: a manifest's result_line is rendered against the main pipe's output at the end of a run that starts there, else the line is derived from the output's verdict field, and the line rides the run's output as PipeOutput.result_line: on the API's run response, across the runtime bridge, in pipelex-agent run's output file and --with-memory envelope, and in result_line.txt in pipelex run's output folder, which also prints it, with its control characters escaped and labelled as from mock values on a dry run, and never saves a main output file under that name. The manifest's line is carried with the main pipe however the method is loaded, from a library directory, a bundle file, submitted contents or a worker's library crate, and joins the crate's fingerprint only when present. The template reads the output's fields before a mapping's own methods, so output.items is the field. A line that fails to render, or whose output is missing, falls back to the derived one and never fails the run.
  • A manifest's result_line and examples are validated against the method: a result line that does not parse or reads anything but output is method.package_invalid with the reason result_line_invalid; an example naming no file of the tree, or inputs.json, is method.resource_missing with the reason not_in_tree; an example file that is not a set of flat inputs for the main pipe is method.package_invalid with the reason example_invalid and its path. A manifest breaking one of the format's own rules now reports the format's reason, such as result_line_without_main_pipe, in place of manifest_invalid.
  • Example inputs are listed where a method is described: pipelex-agent inputs adds the manifest's examples to its envelope when it describes the manifest's main pipe, and POST /v1/pipe-io lists them as examples when it describes the main pipe, and as an empty list for any other pipe.
  • Input-form descriptors state units, aggregates and option words: a number descriptor carries its unit and aggregate, and an enum descriptor carries options, the label, description and tone of each option, when at least one option has words.
  • The role and part hints and six new intent words: a slot's hints may name its role (subject, context, guidance, reference, setting), a field's its part (title, summary, verdict, metric, body, evidence, detail), and intent gains code, identifier, question, photo, screenshot and scan. The hint lints warn on an unknown or inapplicable role or part and on a part held once that two fields claim, and the descriptors carry the merged hints.

Changed

  • The runtime implements MTHDS 9.2.0 on mthds==0.29.0 and pipelex-sdk==0.72.0 (Breaking): the exact pins move from mthds==0.28.0 and pipelex-sdk==0.69.0, so everyone downstream inherits those exact versions. The problems a method's contract facts and choice options raise now carry the standard's codes, method.contract_fact_invalid with its reason and the warning method.choice_option_dubious, and a METHODS.toml declaring an exact 9.0.0 or a ~9.1.0 now warns that the engine does not satisfy it while >=9.2.0 does not. pipelex-sdk's own breaking changes since 0.69.0 reach anyone importing pipelex_sdk beside pipelex: its form descriptors are typed more closely and carry unit, aggregate and options, fetch_artifact, load_stored_texts and download_artifacts take a client stating its origin_url, and pipelex-sdk run --inputs-template writes a JSON input as a bare object.
  • PipeDocGen refuses filename beside output_filename (Breaking): the two would name one file twice, so a step carrying both is refused as a schema violation; keep output_filename, the standard's key, or filename, which also names the stored file.
  • An empty choices list is refused (Breaking): choices = [] was accepted and now fails as contract_fact_invalid, since it offers no option.
  • A pipe's unread-input check counts output_filename: an input that only the file name reads is no longer reported as unused, and one that the file name reads without declaring it is reported as undeclared.

Fixed

What's Changed

Full Changelog: v0.121.1...v0.122.0