Repository navigation
v0.117.0
[v0.117.0] - 2026-11-25
Added
max_declared_item_counton the API's run, validation and method routes:/v1/execute,/v1/start,/v1/validate,/v1/resolve,/v1/codegenand/v1/pipe-iotake an optional maximum on the items a method may declare for one slot, which raises the deployment's for that request alone and never lowers it, the larger of the two being in force, and a run carries it to every process that runs a part of it;PipelexMTHDSProtocol,pipeline_run_setup,validate_bundles_in_processandPipelexKernel.maketake it asmax_declared_item_count, andRunMetadatacarries it. The field is a strict integer, sotrueor"5"is a422rather than read as 1 or 5, and it may not pass the new[interpreter.method_limits] max_declared_item_count_ceiling, 1,000 by default: a request's maximum comes from public JSON, so by default no caller can raise its own limit, and a deployment behind a trusted front that sets each request's maximum raises the ceiling. A maximum above it is a422request.invalidnaming the field on the API, and aRunParameterErrorat the library's entry points; the deployment's own maximum may not pass it either.- A budget of mock items per dry run,
[interpreter.method_limits] max_dry_run_mock_items, 100,000 by default: every dry-run mock builder, and a dryPipeCompose's rendered output, adds what it builds to one tally per in-process validation or per in-process dry run, its mock inputs and its pipes together, shared by a batch's concurrent branches; a distributed dry run counts each worker activity against a budget of its own. A dry run that would pass it is refused with the newpipelex.deployment.dry_run_mock_budget_exceeded(DryRunMockBudgetError), naming the budget. The per-slot maximum left the sum and the products of the slots unbounded, such as a batch overText[1000]whose branch outputsText[1000].
Changed
BundleValidatorProtocol.validate_bundlestakesmax_declared_item_count(Breaking): a bundle validator receives the request's maximum declared item count,Nonewhen the request states none, and a validator dispatching to a worker hands it tovalidate_bundles_in_processthere, so the worker validates under the request's maximum rather than its own configuration.
Fixed
- A declared item count is bounded: a method declaring more items for one slot than
[interpreter.method_limits] max_declared_item_countallows, 1,000 by default, withConcept[N]on an input or an output or a controller step'snb_output, in its own bundles or in a dependency package it loads, is refused at load withpipelex.deployment.declared_count_over_limit, naming the slot, the count and the maximum, instead of making a validation's dry run build one mock item per declared item; the dry run's mock builders refuse a fixed count past the same maximum, also in a worker's activity, which reads the run's maximum from its job's metadata, and the parser refuses a count written with more than nine significant digits, leading zeros of any length aside. The length the dry run chooses itself for a variable list,Concept[], is shortened to the maximum rather than refused, so a method declaring no count stays valid under a low maximum. - A run's
output_multiplicityis bounded: a run asking for more outputs than the maximum declared item count in force is refused before it starts withpipelex.deployment.declared_count_over_limit, a422on the API, instead of asking a model for that many items. - A provider refusing a file as over its size limit is the caller's
input.too_large: a provider's 400, or another 4xx a gateway relays, refusing a file, an image or a request payload as too large in its own words (Anthropic's "The file exceeds the maximum allowed size.", its per-image "image exceeds 5 MB maximum" and itsrequest_too_large, Gemini's "Request payload size exceeds the limit") read asruntime.unexpected, our defect, and told the caller to contact support; it now readsinput.too_large, answered 422, with advice that the request built from the inputs exceeds the provider's size limit and that the inputs should be made smaller or split. A bare 413, which already readinput.too_large, gives the same advice, and a web page too large to fetch points at a smaller page.
What's Changed
- feature/File-too-large-refusal-code · L-261124-9761c8 — file-too-large 400 read as our error by @lchoquel in #1613
- chore/Retire-duplicate-tests · L-261123-7ccf87 by @lchoquel in #1614
- fix/Declared-count-ceiling · L-260930-381d1f by @lchoquel in #1615
- Release v0.117.0 by @lchoquel in #1616
Full Changelog: v0.116.0...v0.117.0