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.
feature/Relicense-elv2 · L-260914-356386 — LICENSE, pyproject, README, docs (#1199)
Louis Choquelaa6196de720a
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8e2c5f909..679362fa7 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,10 @@## [Unreleased]+### Changed++- **License (Breaking)**: `pipelex` is now licensed under the Elastic License 2.0 (ELv2) instead of MIT, and the package metadata declares the SPDX expression `Elastic-2.0` in place of the MIT license classifier, which makes hatchling 1.27 or later a requirement for building from source; every earlier version, up to and including v0.57.0, stays under MIT. ELv2 is source-available: you may embed `pipelex` in your own products, including services you offer to others whose features run your methods, and in your internal tools, while its main limitation rules out hosting a service that runs methods for others, whether they send the methods or pick them from a catalog. `LICENSE` carries the full terms, including its conditions on notices and redistribution, and the [License](license.md) page on docs.pipelex.com explains how Pipelex reads them.+### Security- **Docs site built on mkdocs-material 9.7.7**: the `docs` extra now requires `mkdocs-material>=9.7.7`, which closes a DOM XSS in the theme's search suggestions (GHSA-xvg9-69gf-fjrf) that the published site shipped. The pull-request documentation check now builds from `uv.lock` like the deploy does, instead of from its own hand-pinned theme versions.diff --git a/LICENSE b/LICENSEindex db5bb8b16..455bf8ae6 100644--- a/LICENSE+++ b/LICENSE@@ -1,21 +1,95 @@-MIT License--Copyright (c) 2025 Evotis S.A.S.--Permission is hereby granted, free of charge, to any person obtaining a copy-of this software and associated documentation files (the "Software"), to deal-in the Software without restriction, including without limitation the rights-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell-copies of the Software, and to permit persons to whom the Software is-furnished to do so, subject to the following conditions:--The above copyright notice and this permission notice shall be included in all-copies or substantial portions of the Software.--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE-SOFTWARE.+Copyright (c) 2025-2026 Evotis S.A.S.++Elastic License 2.0++URL: https://www.elastic.co/licensing/elastic-license++## Acceptance++By using the software, you agree to all of the terms and conditions below.++## Copyright License++The licensor grants you a non-exclusive, royalty-free, worldwide,+non-sublicensable, non-transferable license to use, copy, distribute, make+available, and prepare derivative works of the software, in each case subject to+the limitations and conditions below.++## Limitations++You may not provide the software to third parties as a hosted or managed+service, where the service provides users with access to any substantial set of+the features or functionality of the software.++You may not move, change, disable, or circumvent the license key functionality+in the software, and you may not remove or obscure any functionality in the+software that is protected by the license key.++You may not alter, remove, or obscure any licensing, copyright, or other notices+of the licensor in the software. Any use of the licensor’s trademarks is subject+to applicable law.++## Patents++The licensor grants you a license, under any patent claims the licensor can+license, or becomes able to license, to make, have made, use, sell, offer for+sale, import and have imported the software, in each case subject to the+limitations and conditions in this license. This license does not cover any+patent claims that you cause to be infringed by modifications or additions to+the software. If you or your company make any written claim that the software+infringes or contributes to infringement of any patent, your patent license for+the software granted under these terms ends immediately. If your company makes+such a claim, your patent license ends immediately for work on behalf of your+company.++## Notices++You must ensure that anyone who gets a copy of any part of the software from you+also gets a copy of these terms.++If you modify the software, you must include in any modified copies of the+software prominent notices stating that you have modified the software.++## No Other Rights++These terms do not imply any licenses other than those expressly granted in+these terms.++## Termination++If you use the software in violation of these terms, such use is not licensed,+and your licenses will automatically terminate. If the licensor provides you+with a notice of your violation, and you cease all violation of this license no+later than 30 days after you receive that notice, your licenses will be+reinstated retroactively. However, if you violate these terms after such+reinstatement, any additional violation of these terms will cause your licenses+to terminate automatically and permanently.++## No Liability++*As far as the law allows, the software comes as is, without any warranty or+condition, and the licensor will not be liable to you for any damages arising+out of these terms or the use or nature of the software, under any kind of+legal claim.*++## Definitions++The **licensor** is the entity offering these terms, and the **software** is the+software the licensor makes available under these terms, including any portion+of it.++**you** refers to the individual or entity agreeing to these terms.++**your company** is any legal entity, sole proprietorship, or other kind of+organization that you work for, plus all organizations that have control over,+are under the control of, or are under common control with that+organization. **control** means ownership of substantially all the assets of an+entity, or the power to direct its management and policies by vote, contract, or+otherwise. Control can be direct or indirect.++**your licenses** are all the licenses granted to you for the software under+these terms.++**use** means anything you do with the software requiring one of your licenses.++**trademark** means trademarks, service marks, and similar rights.diff --git a/README.md b/README.mdindex 0451108e9..fe2aa06b0 100644--- a/README.md+++ b/README.md@@ -19,7 +19,7 @@ Each step is explicit, each output is structured, and every run is repeatable.</<br/><p align="center">- <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="MIT License"></a>+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-Elastic--2.0-blue.svg" alt="Elastic License 2.0"></a><a href="https://github.com/Pipelex/pipelex/tree/main/tests"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Pipelex/pipelex/main/.badges/tests.json" alt="Tests"></a><a href="https://pypi.org/project/pipelex/"><img src="https://img.shields.io/pypi/v/pipelex?logo=pypi&logoColor=white&color=blue&style=flat-square"alt="PyPI – latest release"></a>@@ -471,7 +471,7 @@ The same `.mthds` file runs from multiple execution targets:## Use Pipelex from TypeScript-For Node, Next.js, or any TypeScript app, call a Pipelex API server via the [`mthds`](https://www.npmjs.com/package/mthds) npm SDK (source: [`mthds-js`](https://github.com/mthds-ai/mthds-js)). Self-host the open-source [`pipelex-api`](https://github.com/Pipelex/pipelex-api) and point the SDK at your instance. A Pipelex-hosted runner at `api.pipelex.com` is also available in private beta — [join the waitlist](https://go.pipelex.com/waitlist).+For Node, Next.js, or any TypeScript app, call a Pipelex API server via the [`mthds`](https://www.npmjs.com/package/mthds) npm SDK (source: [`mthds-js`](https://github.com/mthds-ai/mthds-js)). Self-host the source-available [`pipelex-api`](https://github.com/Pipelex/pipelex-api) and point the SDK at your instance. A Pipelex-hosted runner at `api.pipelex.com` is also available in private beta — [join the waitlist](https://go.pipelex.com/waitlist).```bashnpm install mthds@@ -546,7 +546,7 @@ uv pip install "pipelex[anthropic,google,google-genai,mistralai,bedrock,fal,link## License-This project is licensed under the [MIT license](LICENSE). Runtime dependencies are distributed under their own licenses via PyPI.+This project is licensed under the Elastic License 2.0 (ELv2); see [LICENSE](LICENSE) for the terms, and the [license page](https://docs.pipelex.com/latest/license/) for how Pipelex reads them. Runtime dependencies are distributed under their own licenses via PyPI.---diff --git a/docs/CODE_OF_CONDUCT.md b/docs/CODE_OF_CONDUCT.mdindex c23868222..daa3f3a7a 100644--- a/docs/CODE_OF_CONDUCT.md+++ b/docs/CODE_OF_CONDUCT.md@@ -1,6 +1,6 @@---title: Code of Conduct-description: "Code of conduct for the Pipelex open-source community — guidelines for respectful collaboration and contribution."+description: "Code of conduct for the Pipelex community — guidelines for respectful collaboration and contribution."-----8<-- "CODE_OF_CONDUCT.md"\ No newline at end of filediff --git a/docs/contributing.md b/docs/contributing.mdindex f4d1e3437..1cae9c295 100644--- a/docs/contributing.md+++ b/docs/contributing.md@@ -1,6 +1,6 @@---title: Contributing to Pipelex-description: "Contribute to Pipelex — guidelines for reporting issues, submitting pull requests, and developing the open-source AI methods runtime."+description: "Contribute to Pipelex — guidelines for reporting issues, submitting pull requests, and developing the source-available AI methods runtime."-----8<-- "CONTRIBUTING.md"diff --git a/docs/license.md b/docs/license.mdindex fdf562b5d..10748bc65 100644--- a/docs/license.md+++ b/docs/license.md@@ -1,12 +1,60 @@---title: License-description: "Pipelex license — MIT-licensed open-source runtime for the Methods standard, maintained by Evotis S.A.S."+description: "How Pipelex reads its source-available license, the Elastic License 2.0, above all its limitation on hosted services — followed by the license in full."hide:- feedback---# License-```+## How we read the Elastic License 2.0++This section explains how we, the maintainers of Pipelex, read the license, so that you can tell whether your use is fine. The license itself follows, in full, [at the end of this page](#full-text-of-the-elastic-license-20).++### What does the license cover?++The Elastic License 2.0 is a source-available license: you may use, copy, distribute, modify and build on the software, within the limitations and conditions it sets. It applies to `pipelex` (the Python runtime), `pipelex-api` (the runner API server) and `@pipelex/mcp` (the MCP server), for every version released after 2026-09-14. Every earlier version of them stays under the MIT license it was released with.++The other Pipelex repositories, such as the SDKs, the starters and the plugins, keep their own licenses, and so does the MTHDS language standard.++### What can I do with Pipelex?++Nearly everything you would want to. For instance, all of these uses are fine:++- Embedding `pipelex` in your own product, including a service you offer to others whose features run your methods behind the scenes, such as a contract-review product that runs your methods on the documents its customers upload.+- Using Pipelex in your internal tools.+- Running `pipelex-api` or the MCP server for your own team or company, on your own infrastructure or in your own cloud account.++### What is not allowed?++One thing: using our software to host a service that runs any method for anyone. For instance, these uses are not allowed:++- Offering third parties a hosted API or runner that executes methods, whether they send the methods themselves or pick them from a catalog you make available.+- Offering third parties a remote MCP server through which they run the methods of their choice, their own or a catalog's.+- Offering a managed "Pipelex as a service", where your customers get Pipelex itself, operated by you.++The difference from the uses above is what your customers come for. In your own product, they come for what the product does, and your methods are how it does it: the customers of a contract-review product get their contracts reviewed, however many methods run behind it. In a service that runs methods, whether sent to it or picked from a catalog, running methods is what they come for, and what they get is Pipelex itself.++This is how the license says it:++> You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.++### What else does the license ask of me?++- You must not remove, alter or obscure the licensing, copyright or other notices in the software.+- Anyone who gets a copy of any part of the software from you must also get a copy of the license.+- If you modify the software, your modified copies must carry prominent notices saying that you modified it.++The license text below, which each project ships as its `LICENSE` file, gives the exact terms.++### What is this page?++Apart from the license text at its end, this page is an explanation of how Pipelex reads the Elastic License 2.0. It does not modify the license, add to it or grant any rights of its own: the license, as written in `LICENSE`, governs. If you have a question about your use, write to [[email protected]](mailto:[email protected]).++## Full text of the Elastic License 2.0++<div class="license-text" markdown>+--8<-- "LICENSE"-```\ No newline at end of file++</div>diff --git a/docs/root-index.html b/docs/root-index.htmlindex 94d702522..881af48ba 100644--- a/docs/root-index.html+++ b/docs/root-index.html@@ -5,9 +5,9 @@<meta http-equiv="refresh" content="0;url=/latest/"><link rel="canonical" href="https://__SITE_DOMAIN__/latest/"><title>Pipelex — Build & Run AI Methods</title>-<meta name="description" content="Pipelex is an open-source library and CLI for building and running executable AI methods. Methods are reusable, typed AI procedures declared in MTHDS and executed across 60+ models.">+<meta name="description" content="Pipelex is a source-available library and CLI for building and running executable AI methods. Methods are reusable, typed AI procedures declared in MTHDS and executed across 60+ models."><meta property="og:title" content="Pipelex — Build & Run AI Methods">-<meta property="og:description" content="Pipelex is an open-source library and CLI for building and running executable AI methods. Methods are reusable, typed AI procedures declared in MTHDS and executed across 60+ models.">+<meta property="og:description" content="Pipelex is a source-available library and CLI for building and running executable AI methods. Methods are reusable, typed AI procedures declared in MTHDS and executed across 60+ models."><meta property="og:url" content="https://__SITE_DOMAIN__/latest/"><meta property="og:type" content="website"><style>diff --git a/docs/stylesheets/general.css b/docs/stylesheets/general.cssindex d27cdb046..578647593 100644--- a/docs/stylesheets/general.css+++ b/docs/stylesheets/general.css@@ -12,6 +12,9 @@.equal-width { width: 100%; max-width: 300px; display: inline-block; }pre code { white-space: pre-wrap !important; word-wrap: break-word; overflow-wrap: break-word; }+/* License page: the verbatim license text, set apart from our reading of it */+.md-typeset .license-text { border-left: 0.2rem solid var(--md-default-fg-color--lightest); padding-left: 1rem; }+/* --- Sidebar width — widen to fit longer nav labels without wrapping --- */.md-sidebar { width: 13rem; }.md-sidebar .md-sidebar__inner { padding-right: 4px; }diff --git a/docs/under-the-hood/orchestrator-plugins.md b/docs/under-the-hood/orchestrator-plugins.mdindex 2638eabf8..ed7616cf4 100644--- a/docs/under-the-hood/orchestrator-plugins.md+++ b/docs/under-the-hood/orchestrator-plugins.md@@ -7,7 +7,7 @@ description: "How Pipelex dispatches a pipe run by orchestration mode through thA pipe a host runtime invokes through the runtime bridge runs along **two orthogonal axes**:-- **`orchestration_mode`** — *which* orchestrator runs the pipe. An **open string token**, not a closed enum: core owns only `"direct"` (in-process); every other token is contributed by the plugin that owns its orchestrator — [`"temporal"`](https://pipelex.com/products#temporal) (durable, on a Temporal worker fleet) by our Temporal plugin, [`"mistral-workflows"`](https://pipelex.com/products#mistral-workflows) (decomposed into Mistral Workflows primitives) by our Mistral Workflows plugin. Neither is built into the open-source `pipelex` core: both ship as external, closed-source host-runtime backends, distributed privately rather than on PyPI as part of Pipelex's [workflow-orchestration offer](https://pipelex.com/products#durable-execution).+- **`orchestration_mode`** — *which* orchestrator runs the pipe. An **open string token**, not a closed enum: core owns only `"direct"` (in-process); every other token is contributed by the plugin that owns its orchestrator — [`"temporal"`](https://pipelex.com/products#temporal) (durable, on a Temporal worker fleet) by our Temporal plugin, [`"mistral-workflows"`](https://pipelex.com/products#mistral-workflows) (decomposed into Mistral Workflows primitives) by our Mistral Workflows plugin. Neither is built into the source-available `pipelex` core: both ship as external, closed-source host-runtime backends, distributed privately rather than on PyPI as part of Pipelex's [workflow-orchestration offer](https://pipelex.com/products#durable-execution).- **`delivery`** — *whether the caller waits*. A **closed** core `DeliveryMode` enum (`BLOCKING` / `FIRE_AND_FORGET`) on the wire input, set by the endpoint, never received from a caller. On the SPI it is expressed as *which method* the endpoint calls — `execute` (blocking) or `start` (fire-and-forget) — so each return type is truthful on its own; `supports_fire_and_forget` advertises whether an orchestrator can do genuine async.An **orchestrator** is what knows how to run a pipe under one token. Core names no orchestrator by import or by string. The bridge resolves the orchestrator for the requested token from a registry (keyed by the token `str`) and calls its `execute` — `"direct"` is contributed by a core plugin, `"temporal"` by our Temporal plugin, `"mistral-workflows"` by our external Mistral Workflows plugin. A lookup miss raises a generic `MissingOrchestratorError` that names no orchestrator. This page documents that seam, the **Orchestrator SPI** a host-runtime plugin compiles against, and how the Temporal plugin is wired.diff --git a/docs/under-the-hood/runtime-bridge-and-transport.md b/docs/under-the-hood/runtime-bridge-and-transport.mdindex f77e32748..b4178fdac 100644--- a/docs/under-the-hood/runtime-bridge-and-transport.md+++ b/docs/under-the-hood/runtime-bridge-and-transport.md@@ -131,7 +131,7 @@ The class-registry accessor and its library scoping (`pipelex/runtime_hub.py`, `## Where open core ends-The boundary types and the host-agnostic helpers are **open** (MIT, in the `pipelex` distribution):+The boundary types and the host-agnostic helpers are **open** (source-available under the Elastic License 2.0, in the `pipelex` distribution):| Concern | Open core (`pipelex`) ||---|---|diff --git a/docs/viewpoint/viewpoint.md b/docs/viewpoint/viewpoint.mdindex aca3ada53..3bb18050a 100644--- a/docs/viewpoint/viewpoint.md+++ b/docs/viewpoint/viewpoint.md@@ -98,7 +98,7 @@ MIT-licensed. Designed for portability. The method outlives any vendor or model## Pipelex: The Reference Runtime-Pipelex is the open-source reference runtime for the MTHDS standard. It reads, validates, and executes `.mthds` files, and ships as a runtime, CLI, Claude Code plugin, cookbook, and documentation.+Pipelex is the source-available reference runtime for the MTHDS standard. It reads, validates, and executes `.mthds` files, and ships as a runtime, CLI, Claude Code plugin, cookbook, and documentation.[github.com/Pipelex/pipelex](https://github.com/Pipelex/pipelex) | [docs.pipelex.com](https://docs.pipelex.com)diff --git a/mkdocs.yml b/mkdocs.ymlindex 865411eef..f6a571797 100644--- a/mkdocs.yml+++ b/mkdocs.yml@@ -4,7 +4,7 @@ site_name: Pipelex Documentation# already contains /latest/, mike produces broken double paths like /latest/0.20.9/page/.# Canonical URLs are forced to /latest/ via a template override in docs/overrides/main.html.site_url: https://docs.pipelex.com/-site_description: "Official documentation for Pipelex, an open-source library/CLI for building and running executable AI methods."+site_description: "Official documentation for Pipelex, a source-available library/CLI for building and running executable AI methods."docs_dir: docsrepo_url: "https://github.com/Pipelex/pipelex"repo_name: "Pipelex on GitHub"diff --git a/pipelex/system/storage_scope.py b/pipelex/system/storage_scope.pyindex 2f2232f1e..75a8ea15b 100644--- a/pipelex/system/storage_scope.py+++ b/pipelex/system/storage_scope.py@@ -10,7 +10,7 @@ The hosted Pipelex platform fills it with `<org_id>/<method_id>/<run_id>`, butnothing here knows or checks that — a single-user deployment can pass`<user_id>/<run_id>` and a local one passes just `<run_id>`. Threading thehost's own concepts through the transport instead was considered and rejected:-`method_id` is a hosted catalog concept with no meaning in an MIT-licensed+`method_id` is a hosted catalog concept with no meaning in a source-availableruntime, and `uri_format`'s placeholder set is closed by design.**Why the validation is here rather than at the call sites.** The value reachesdiff --git a/pyproject.toml b/pyproject.tomlindex 09a5b71d6..c4a2e5d76 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,8 @@ version = "0.57.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]" }]-license = "MIT"+license = "Elastic-2.0"+license-files = ["LICENSE"]readme = "README.md"requires-python = ">=3.11,<3.15"classifiers = [@@ -14,7 +15,6 @@ classifiers = ["Programming Language :: Python :: 3.13","Programming Language :: Python :: 3.14","Operating System :: OS Independent",- "License :: OSI Approved :: MIT License",]dependencies = [@@ -143,7 +143,7 @@ pipelex-agent = "pipelex.cli.agent_cli._agent_cli:app"pipelex-dev = "pipelex.cli.dev_cli._dev_cli:app"[build-system]-requires = ["hatchling"]+requires = ["hatchling>=1.27"]build-backend = "hatchling.build"[tool.mypy]