Repository navigation
v0.122.0
[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,aggregateandexamples, and a concept refiningNumbermay state itsunit, 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 typecontract_fact_invalid, itsfact,reasonandfield_pathcarried as parameters, under the codemethod.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-structurescodegen target writes (asAnnotated[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 asmethod.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 asinput.invalid; the input-form descriptors state every fact their kind has a member for. Apatternis searched with theregexengine 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 ascontract_fact_invalid. A refusal quotes a long value cut short with its length. - Choice options with words: a
choicesoption may be a table{ value, label, description, tone }, the tone one ofpositive,caution,negativeandneutral, and a table carryingvaluealone normalizes to its string. A table without a value, with an empty value, sharing its value or its label with another option, or achoiceslist with no option is refused; a plain option list that repeats a value or holds an empty one only warns, aschoice_option_dubiouswithfield_pathandreason. - 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 carrychoices, which make its descriptor anenum. Facts on a slot of no value class are refused with the reasonnot_value_slot, and besidechoicesa slot takes no length, pattern, format or examples. activity,output_filenameand outcome tables: a pipe may state itsactivity, 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 anoutput_filenametemplate, which counts as reading the inputs it names and must guard every optional one; aPipeConditionoutcome or itsdefault_outcomemay be a table{ pipe, label, description, tone }, each label unique within the condition.- Produced files take the name
output_filenamebuilds: when an operator statingoutput_filenamehas 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 itsfilename, the name a download andpipelex run --save-main-stuffuse: 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
activitybeside itsdescription, 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 itsexecution_data, asselected_outcome_label,selected_outcome_descriptionandselected_outcome_tone. - The result line of a run: a manifest's
result_lineis rendered against the main pipe's output at the end of a run that starts there, else the line is derived from the output'sverdictfield, and the line rides the run's output asPipeOutput.result_line: on the API's run response, across the runtime bridge, inpipelex-agent run's output file and--with-memoryenvelope, and inresult_line.txtinpipelex 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, sooutput.itemsis 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_lineandexamplesare validated against the method: a result line that does not parse or reads anything butoutputismethod.package_invalidwith the reasonresult_line_invalid; an example naming no file of the tree, orinputs.json, ismethod.resource_missingwith the reasonnot_in_tree; an example file that is not a set of flat inputs for the main pipe ismethod.package_invalidwith the reasonexample_invalidand its path. A manifest breaking one of the format's own rules now reports the format's reason, such asresult_line_without_main_pipe, in place ofmanifest_invalid. - Example inputs are listed where a method is described:
pipelex-agent inputsadds the manifest'sexamplesto its envelope when it describes the manifest's main pipe, andPOST /v1/pipe-iolists them asexampleswhen 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
unitandaggregate, and an enum descriptor carriesoptions, the label, description and tone of each option, when at least one option has words. - The
roleandparthints and six new intent words: a slot'shintsmay name itsrole(subject,context,guidance,reference,setting), a field's itspart(title,summary,verdict,metric,body,evidence,detail), andintentgainscode,identifier,question,photo,screenshotandscan. 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.0andpipelex-sdk==0.72.0(Breaking): the exact pins move frommthds==0.28.0andpipelex-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_invalidwith itsreasonand the warningmethod.choice_option_dubious, and aMETHODS.tomldeclaring an exact9.0.0or a~9.1.0now warns that the engine does not satisfy it while>=9.2.0does not.pipelex-sdk's own breaking changes since 0.69.0 reach anyone importingpipelex_sdkbeside pipelex: its form descriptors are typed more closely and carryunit,aggregateandoptions,fetch_artifact,load_stored_textsanddownload_artifactstake a client stating itsorigin_url, andpipelex-sdk run --inputs-templatewrites aJSONinput as a bare object. PipeDocGenrefusesfilenamebesideoutput_filename(Breaking): the two would name one file twice, so a step carrying both is refused as a schema violation; keepoutput_filename, the standard's key, orfilename, which also names the stored file.- An empty
choiceslist is refused (Breaking):choices = []was accepted and now fails ascontract_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
- feature/Meaning-in-the-engine · L-261128-8cf579 by @lchoquel in #1629
- feature/Foreign-raises-baseline · L-261128-8007d7 by @lchoquel in #1633
- Release v0.122.0 by @lchoquel in #1632
Full Changelog: v0.121.1...v0.122.0