Repository navigation
v0.118.0
[v0.118.0] - 2026-11-25
Added
- A self-hosted API server hands back what it stores,
POST /v1/resolve-storage-url/bulkandGET /v1/storage/{key}: the server serves the hosted platform's bulk resolve contract for its own storage, field for field, so the long texts, generated images and received files a run hands back aspipelex-storage://references load and download through both SDKs and every client built on them, where a bare server answered a 404. UnderAUTH_MODE=jwta caller resolves only references under its ownuser_id, and one under another scope is refused on its item asauth.forbiddenwith the requirementread_scope_under_caller, while a deployment that identifies no caller resolves any reference that parses; a reference that does not parse is refused on its item aspipelex.storage.uri_invalid, and each resolved link is the server's own signed download route, which needs no bearer token, starts withPUBLIC_BASE_URLwhen it is set, expires afterSTORAGE_LINK_TTL_SECONDS(fifteen minutes by default, at most seven days), and answers a bad or expired signature with a 403auth.forbiddenwhose requirement issigned_storage_linkand an address holding no file with a 404 under the new codepipelex.storage.object_missing. The download route serves a validated bare media type, atype/subtypewithout parameters that it derives itself from the type the storage kept, or, for the local and in-memory storage, which keep none, from the name the object was stored under, the type the resolve route reports. Neither route is mounted when the server trusts forwarded identity (TRUST_FORWARDED_IDENTITY_HEADERS=true), where the host's platform serves it. Over plainhttp,pipelex-sdkand@pipelex/sdkreleases up to 0.69.x (0.69.5 being the latest) refuse the link unless the caller opts in withallow_http=True/allowHttp: true, and from 0.70.0 both SDKs accept a plain-httplink on the client's own configured origin without the flag. - A router can refuse a
PipeBatchbefore its first item starts,PipeRouterProtocol.check_batch_fitsandPipeBatchTooWideError: aPipeBatchasks its router once, after it knows its item count and before it records its fan-out or starts a branch, whether the batch fits, handing it the very job its first branch then dispatches; the default body answers yes, so in-process runs are unchanged, and a durable router may refuse a batch whose branches would pass what its run's history holds by raisingPipeBatchTooWideErrorfrompipelex.pipe_controllers.exceptions. The error takes the batch's figures as keyword arguments, the estimated bytes and events, those left, the largest item count that fits and, for a batch stopped during its fan-out, the items already started, builds its message from them, and fails thePipeBatchasinput.too_largewhoseinputis the batched list,sizeits item count andlimitthe largest count that fits, withheld when not even one item fits.
Changed
- A signed link of the API server stays valid for at most seven days (Breaking):
BLOB_UPLOAD_URL_TTL_SECONDSandSTORAGE_LINK_TTL_SECONDSare capped at 604800 seconds, as an S3 presigned URL is, and the server refuses to start when either is set above the cap, naming the variable, where a larger upload lifetime used to be accepted and could make every link fail. LINK_SIGNING_KEYreplacesBLOB_UPLOAD_SIGNING_KEY(Breaking): the API server signs its upload targets and its download links with one key, each kind of link under a purpose of its own, so a deployment of several instances or several worker processes (uvicorn --workers N, or a host that setsWEB_CONCURRENCY) that setBLOB_UPLOAD_SIGNING_KEYsetsLINK_SIGNING_KEYinstead; unset, each process still draws its own key.
Fixed
- The local storage provider reads a key naming no regular file as a missing file: in every read,
load_with_metadata,load_head,load_sizeandload_metadata, a key naming a directory, a path through a file, or a segment longer than the filesystem holds raisesStorageFileNotFoundErrorinstead ofStorageLocalErroror a rawOSError. The check reads the path's status itself, so a permission the filesystem refuses raisesStorageLocalErroron every supported Python, where from Python 3.14Path.is_file()would have read it as a missing file.
What's Changed
- fix/Bare-runner-storage-resolve · L-261125-ae2d4a by @lchoquel in #1617
- feature/Batch-history-budget · L-261120-5a7b9d by @lchoquel in #1618
- Release v0.118.0 by @lchoquel in #1619
Full Changelog: v0.117.0...v0.118.0