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/Deck-aliases-onto-56 · L-260921-d20a89 (#1227)
Louis Choquel62b9a0230638
diff --git a/.pipelex/inference/backends/pipelex_gateway_models.md b/.pipelex/inference/backends/pipelex_gateway_models.mdindex 6b7455ed7..c0acba8cf 100644--- a/.pipelex/inference/backends/pipelex_gateway_models.md+++ b/.pipelex/inference/backends/pipelex_gateway_models.md@@ -293,14 +293,6 @@ For configuration details, see the [documentation](https://docs.pipelex.com/late<td style="text-align:center;background-color:rgba(76,175,80,0.15)">✅</td></tr><tr>-<td>gpt-6-astra</td>-<td style="text-align:center;background-color:rgba(33,150,243,0.15)">✅</td>-<td style="text-align:center;background-color:rgba(33,150,243,0.15)">✅</td>-<td style="text-align:center;background-color:rgba(33,150,243,0.15)">✅</td>-<td style="text-align:center;background-color:rgba(76,175,80,0.15)">✅</td>-<td style="text-align:center;background-color:rgba(76,175,80,0.15)">✅</td>-</tr>-<tr><td>gpt-oss-120b</td><td style="text-align:center;background-color:rgba(33,150,243,0.15)">✅</td><td style="text-align:center;background-color:rgba(33,150,243,0.15)">❌</td>@@ -516,6 +508,6 @@ For configuration details, see the [documentation](https://docs.pipelex.com/late> **AUTO-GENERATED FILE** - Do not edit manually.-> Last updated: 2026-09-20T22:54:34Z+> Last updated: 2026-09-21T10:54:05Z>> Run `pipelex-dev update-gateway-models` or `make ugm` to regenerate.\ No newline at end of filediff --git a/.pipelex/inference/backends/pipelex_gateway_models_plain.md b/.pipelex/inference/backends/pipelex_gateway_models_plain.mdindex 4b3099f81..9ea4543d5 100644--- a/.pipelex/inference/backends/pipelex_gateway_models_plain.md+++ b/.pipelex/inference/backends/pipelex_gateway_models_plain.md@@ -109,9 +109,6 @@ For configuration details, see the [documentation](https://docs.pipelex.com/late- **gpt-5.6-terra**- inputs: text, images, pdf- outputs: text, structured-- **gpt-6-astra**- - inputs: text, images, pdf- - outputs: text, structured- **gpt-oss-120b**- inputs: text- outputs: text, structured@@ -193,6 +190,6 @@ For configuration details, see the [documentation](https://docs.pipelex.com/late> **AUTO-GENERATED FILE** - Do not edit manually.-> Last updated: 2026-09-20T22:54:34Z+> Last updated: 2026-09-21T10:54:05Z>> Run `pipelex-dev update-gateway-models` or `make ugm` to regenerate.\ No newline at end of filediff --git a/.pipelex/inference/deck/.kit_manifest.json b/.pipelex/inference/deck/.kit_manifest.jsonindex c3dd476a5..30faa294f 100644--- a/.pipelex/inference/deck/.kit_manifest.json+++ b/.pipelex/inference/deck/.kit_manifest.json@@ -1,6 +1,6 @@{"files": {- "1_llm_deck.toml": "863f1522135f03333acd5bac41dcd58dfe1dbe4a3875dd8321995d0c60f3db2f",+ "1_llm_deck.toml": "1316c59eb52db62820d313ff92569b736a3f5427ab8c10f495a02b463f37c97a","2_img_gen_deck.toml": "00d570907cee9261882922afebc53556013e46d29419fce4cf189135e2849fd6","3_extract_deck.toml": "560a40bd3254b1be011cfb35340fef6c40d70136e5ddce33a961899f92fd70ba","4_search_deck.toml": "08e3bd1bee0f9f8ed0ffc735a932705392d0ecfbdeefce64c9815d4b2d8d7e22"diff --git a/.pipelex/inference/deck/1_llm_deck.toml b/.pipelex/inference/deck/1_llm_deck.tomlindex 27aa1cdbe..77d234fed 100644--- a/.pipelex/inference/deck/1_llm_deck.toml+++ b/.pipelex/inference/deck/1_llm_deck.toml@@ -22,75 +22,89 @@# LLM Default Choices####################################################################################################+# `default_temperature` is the temperature paired with a model named outside a preset — an alias, a+# waterfall or a bare handle written straight into a pipe, and the `for_text` / `for_object` choices+# below. Every model this deck resolves to fixes its temperature at 1, so any other value here would+# be overridden by the worker and warned about on every single call.+[llm.choice_defaults]-default_temperature = 0.5+default_temperature = 1for_text = "@default-general"for_object = "@default-general"##################################################################################################### LLM Aliases####################################################################################################+#+# The ladder runs over the GPT-5.6 range and nothing else: luna is the cheap tier, terra the+# intermediate one that carries most of the deck, and sol the premium tier. Read an alias as the job+# it names rather than as a model: repointing a tier is a one-line change here, and every preset+# that goes through an alias follows. The four that name a handle outright — `retrieval-cheap`,+# `retrieval-premium`, `engineering-code-cheap` and `engineering-code-cheaper` — do not, and have to+# be repointed with it.[llm.aliases]-best-gpt = "gpt-6-astra"+best-gpt = "gpt-5.6-sol"# Default aliases (first choice from waterfalls)-default-general = "gpt-5.4"-default-premium = "gpt-6-astra"-default-premium-vision = "gpt-6-astra"-default-premium-structured = "gpt-6-astra"-default-large-context-code = "gpt-5.4"-default-large-context-text = "gpt-5.4"-default-small = "gpt-5.4-nano"-default-small-structured = "gpt-5.4-nano"-default-small-vision = "gpt-5.4-nano"-default-small-creative = "gpt-5.4-nano"+default-general = "gpt-5.6-terra"+default-premium = "gpt-5.6-sol"+default-premium-vision = "gpt-5.6-sol"+default-premium-structured = "gpt-5.6-sol"+default-large-context-code = "gpt-5.6-terra"+default-large-context-text = "gpt-5.6-terra"+default-small = "gpt-5.6-luna"+default-small-structured = "gpt-5.6-luna"+default-small-vision = "gpt-5.6-luna"+default-small-creative = "gpt-5.6-luna"##################################################################################################### LLM Presets####################################################################################################-# Every preset on the premium tier carries temperature = 1, because the model that tier resolves to-# fixes its temperature at 1. Declaring anything else would be overridden by the worker and warned-# about on every single call, so the deck states the value the model will actually use. If the-# premium tier ever moves to a model that accepts a temperature, these are the presets to revisit.+# Every preset here carries temperature = 1, because every model this deck resolves to — the whole+# GPT-5.6 range — fixes its temperature at 1. Declaring anything else would be+# overridden by the worker and warned about on every single call, so the deck states the value the+# model will actually use. Presets are therefore distinguished by their model tier and their+# reasoning effort, not by temperature. If a tier ever moves to a model that accepts a temperature,+# these are the presets to revisit.[llm.presets]# Writingwriting-factual = { model = "@default-premium", temperature = 1, description = "Factual writing with high accuracy" }-writing-factual-cheap = { model = "@default-small", temperature = 0.1, description = "Cheap factual writing with high accuracy" }+writing-factual-cheap = { model = "@default-small", temperature = 1, description = "Cheap factual writing with high accuracy" }writing-creative = { model = "@default-premium", temperature = 1, description = "Creative writing with high variability" }-writing-creative-cheap = { model = "@default-small-creative", temperature = 0.9, description = "Cheap creative writing with high variability" }+writing-creative-cheap = { model = "@default-small-creative", temperature = 1, description = "Cheap creative writing with high variability" }# Retrieval-retrieval = { model = "@default-large-context-text", temperature = 0.1, description = "Data retrieval from large text corpora" }-retrieval-cheap = { model = "gpt-5.4-nano", temperature = 0.1, description = "Cheap data retrieval from large text corpora" }-retrieval-premium = { model = "gpt-6-astra", temperature = 1, description = "Premium data retrieval with highest accuracy" }+retrieval = { model = "@default-large-context-text", temperature = 1, description = "Data retrieval from large text corpora" }+retrieval-cheap = { model = "gpt-5.6-luna", temperature = 1, description = "Cheap data retrieval from large text corpora" }+retrieval-premium = { model = "gpt-5.6-terra", temperature = 1, reasoning_effort = "high", description = "Premium data retrieval with highest accuracy" }# Engineeringengineering-structured = { model = "@default-premium-structured", temperature = 1, description = "Structured engineering output (JSON, schemas)" }engineering-code = { model = "@default-premium", temperature = 1, description = "Code generation and analysis" }-engineering-code-cheap = { model = "gpt-5.4", temperature = 0.1, description = "Cheap code generation and analysis" }-engineering-code-cheaper = { model = "gpt-5.4-nano", temperature = 0.1, description = "Cheapest code generation and analysis" }-engineering-codebase-analysis = { model = "@default-premium", temperature = 1, description = "Large codebase analysis" }+engineering-code-cheap = { model = "gpt-5.6-terra", temperature = 1, description = "Cheap code generation and analysis" }+engineering-code-cheaper = { model = "gpt-5.6-luna", temperature = 1, description = "Cheapest code generation and analysis" }+engineering-codebase-analysis = { model = "@default-large-context-code", temperature = 1, description = "Large codebase analysis" }# Visionvision = { model = "@default-premium-vision", temperature = 1, description = "Understanding and interpreting images" }-vision-cheap = { model = "@default-small-vision", temperature = 0.5, description = "Cheap image understanding for simple tasks" }+vision-cheap = { model = "@default-small-vision", temperature = 1, description = "Cheap image understanding for simple tasks" }vision-diagram = { model = "@default-premium-vision", temperature = 1, description = "Diagram and chart interpretation" }vision-table = { model = "@default-premium-vision", temperature = 1, description = "Table extraction from images" }# Image generation promptingimg-gen-prompting = { model = "@default-premium", temperature = 1, description = "Crafting image generation prompts" }-img-gen-prompting-cheap = { model = "@default-small-creative", temperature = 0.5, description = "Cheap image prompt generation" }+img-gen-prompting-cheap = { model = "@default-small-creative", temperature = 1, description = "Cheap image prompt generation" }# Reasoningdeep-analysis = { model = "@default-premium", temperature = 1, reasoning_effort = "high", description = "Deep reasoning and analysis" }quick-reasoning = { model = "@default-premium", temperature = 1, reasoning_effort = "low", description = "Quick reasoning for simple tasks" }# Testing-testing-text = { model = "@default-small", temperature = 0.5, description = "Testing preset for text generation" }-testing-structured = { model = "@default-small-structured", temperature = 0.1, description = "Testing preset for structured output" }-testing-vision = { model = "@default-small-vision", temperature = 0.5, description = "Testing preset for vision tasks" }-testing-vision-structured = { model = "@default-small-vision", temperature = 0.5, description = "Testing preset for structured vision output" }+testing-text = { model = "@default-small", temperature = 1, description = "Testing preset for text generation" }+testing-structured = { model = "@default-small-structured", temperature = 1, description = "Testing preset for structured output" }+testing-vision = { model = "@default-small-vision", temperature = 1, description = "Testing preset for vision tasks" }+testing-vision-structured = { model = "@default-small-vision", temperature = 1, description = "Testing preset for structured vision output" }diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 17f00c049..a59ddb528 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,13 +4,14 @@### Changed-- **The shipped model deck resolves only to models the Pipelex Gateway serves from Azure (Breaking)**: every default alias and preset keeps its name, but the premium tier and `best-gpt` now resolve to `gpt-6-astra`, the general and large-context tiers to `gpt-5.4`, the small tiers to `gpt-5.4-nano`, and image generation's general and premium tiers to `gpt-image-2`. Document extraction was already `azure-document-intelligence` and web search stays on Linkup, which Azure has no equivalent for. `pipelex update` refreshes the numbered deck files and backs up any you edited; a project that wants the previous models keeps them by naming them in `x_custom_llm_deck.toml`, which pipelex never touches.-- **The premium tier's presets declare `temperature = 1` (Breaking)**: `gpt-6-astra` fixes its temperature at 1, so every preset on that tier states that value instead of one the worker would override while warning on every call. `$writing-factual` and `$writing-creative` therefore issue the same call, and `$engineering-structured` runs at temperature 1 — a method that needs a temperature of its own should name a model that accepts one, such as `@default-general`.-- **The shipped Gateway models reference lists the roster the Gateway actually serves**: `backends/pipelex_gateway_models.md` and its plain twin are generated from the served remote config, and they had not been regenerated since July — so they lacked `gpt-6-astra`, which this deck now resolves the entire premium tier and `best-gpt` to, while still advertising the GPT-4.1, o-series and GPT-5.1 to 5.2 generations that v0.61.0 retired. Both files are refreshed, in the kit and in `.pipelex/`, so the reference a user opens to check what their default deck runs on agrees with the deck.+- **The shipped model deck resolves only to models the Pipelex Gateway serves from Azure (Breaking)**: every default alias and preset keeps its name, but the whole language ladder is now the GPT-5.6 range — the premium tier and `best-gpt` resolve to `gpt-5.6-sol`, the general and large-context tiers to `gpt-5.6-terra`, the small tiers to `gpt-5.6-luna` — and image generation's general and premium tiers to `gpt-image-2`; `$engineering-codebase-analysis` reaches its model through `@default-large-context-code`, the alias that names its job, instead of through the premium tier. Document extraction was already `azure-document-intelligence` and web search stays on Linkup, which Azure has no equivalent for. `pipelex update` refreshes the numbered deck files and backs up any you edited; a project that wants the previous models keeps them by naming them in `x_custom_llm_deck.toml`, which pipelex never touches.+- **The shipped deck declares `temperature = 1` throughout (Breaking)**: every model in the GPT-5.6 range fixes its temperature at 1, so every preset states that value instead of one the worker would override while warning on every call, and `[llm.choice_defaults].default_temperature` is 1 for the same reason — it is the temperature paired with an alias, a waterfall or a bare handle named outside a preset, the `for_text` and `for_object` choices every pipe without an explicit model takes among them. Presets are therefore distinguished by their model tier and their reasoning effort alone: `$writing-factual` and `$writing-creative` issue the same call, and `$engineering-structured` runs at temperature 1. A method that needs a temperature of its own writes an inline LLM settings table — `model = { model = "gpt-4o", temperature = 0.8 }` — since a bare handle is paired with the deck-wide default rather than with a value of the author's.+- **The shipped Gateway models reference lists the roster the Gateway actually serves**: `backends/pipelex_gateway_models.md` and its plain twin are generated from the served remote config, and they had not been regenerated since July — so they lacked the GPT-5.6 range this deck now resolves every tier to, while still advertising the GPT-4.1, o-series and GPT-5.1 to 5.2 generations that v0.61.0 retired. Both files are refreshed, in the kit and in `.pipelex/`, so the reference a user opens to check what their default deck runs on agrees with the deck.### Removed- **`best-claude`, `best-gemini` and `best-mistral` are gone from the shipped deck (Breaking)**: an alias naming a provider cannot honestly resolve to a GPT model, and the image deck's `best-gemini` goes with them. A method referencing one fails validation with the usual alias-not-found error; define it in an `x_custom_*` deck file to keep it.+- **GPT-6 Astra is no longer served on the Pipelex Gateway (Breaking)**: `gpt-6-astra` is out of the remote config and out of the shipped Gateway roster, so a method naming it on the Gateway now fails the boot-time membership check. It stays declared on the `azure_openai` and `openai` backends, where a project holding its own key reaches it as before.- **`ModelDeck.final_validate` is removed**: it raised when a preset's temperature differed from its model's fixed temperature, but it had had no caller since 2025-09-17 and its `except` clause could never match the exception its helper raised, so it protected nothing.## [v0.61.0] - 2026-09-20diff --git a/docs/building-methods/configure-ai-llm-to-optimize-methods.md b/docs/building-methods/configure-ai-llm-to-optimize-methods.mdindex d785c8734..126fa938d 100644--- a/docs/building-methods/configure-ai-llm-to-optimize-methods.md+++ b/docs/building-methods/configure-ai-llm-to-optimize-methods.md@@ -27,9 +27,9 @@ An LLM handle can be either:```toml[llm.aliases]-best-gpt = "gpt-6-astra"-default-general = "gpt-5.4"-default-small = "gpt-5.4-nano"+best-gpt = "gpt-5.6-sol"+default-general = "gpt-5.6-terra"+default-small = "gpt-5.6-luna"```The system first looks for direct model names, then checks aliases if no direct match is found. The system handles model routing through backends automatically.@@ -55,7 +55,7 @@ engineering-structured = {retrieval = {model = "@default-large-context-text",- temperature = 0.1+ temperature = 1}```@@ -69,7 +69,7 @@ deep-analysis = { model = "@default-premium", temperature = 1, reasoning_effortquick-reasoning = { model = "@default-premium", temperature = 1, reasoning_effort = "low", description = "Quick reasoning for simple tasks" }```-Both declare `temperature = 1` because the premium tier resolves to a model that fixes its temperature at that value. The deck states the temperature the model will actually use, rather than one the runtime would override on every call.+Both declare `temperature = 1` because every model the shipped deck resolves to fixes its temperature at that value. The deck states the temperature the model will actually use, rather than one the runtime would override on every call. A method that needs a temperature of its own writes an inline LLM settings table, shown below: a bare model name is paired with `[llm.choice_defaults].default_temperature`, which this deck sets to 1, so naming a handle on its own does not give the author control of the temperature.`reasoning_effort` accepts values from `"none"` to `"max"`. For an explicit token budget, use `reasoning_budget` instead (mutually exclusive with `reasoning_effort`). For provider-specific behavior and model examples, see [Reasoning Controls](../under-the-hood/reasoning-controls.md).diff --git a/docs/configuration/config-technical/inference-backend-config.md b/docs/configuration/config-technical/inference-backend-config.mdindex baa2f738b..4f152ae4b 100644--- a/docs/configuration/config-technical/inference-backend-config.md+++ b/docs/configuration/config-technical/inference-backend-config.md@@ -469,13 +469,13 @@ Define user-friendly names that map to model names. Aliases are defined in the d```toml[llm.aliases]# Simple aliases map to a single model-best-gpt = "gpt-6-astra"+best-gpt = "gpt-5.6-sol"# Default aliases (used in presets)-default-general = "gpt-5.4"-default-premium = "gpt-6-astra"-default-large-context-text = "gpt-5.4"-default-small = "gpt-5.4-nano"+default-general = "gpt-5.6-terra"+default-premium = "gpt-5.6-sol"+default-large-context-text = "gpt-5.6-terra"+default-small = "gpt-5.6-luna"```When using aliases in `.mthds` files or other configurations, prefix them with `@`:@@ -491,13 +491,13 @@ Presets combine model selection with optimized parameters for specific tasks. De```toml[llm.presets]-# Writing presets. The premium tier's model fixes its temperature at 1, so these-# declare that value rather than one the worker would override.+# Every model this deck resolves to fixes its temperature at 1, so every preset+# declares that value rather than one the worker would override.writing-factual = { model = "@default-premium", temperature = 1 }writing-creative = { model = "@default-premium", temperature = 1 }# Retrieval-retrieval = { model = "@default-large-context-text", temperature = 0.1 }+retrieval = { model = "@default-large-context-text", temperature = 1 }# Engineeringengineering-structured = { model = "@default-premium-structured", temperature = 1 }@@ -505,7 +505,7 @@ engineering-code = { model = "@default-premium", temperature = 1 }# Visionvision = { model = "@default-premium-vision", temperature = 1 }-vision-cheap = { model = "@default-small-vision", temperature = 0.5 }+vision-cheap = { model = "@default-small-vision", temperature = 1 }vision-diagram = { model = "@default-premium-vision", temperature = 1 }```diff --git a/docs/get-started/configure-ai-providers.md b/docs/get-started/configure-ai-providers.mdindex 418977bcc..cb3e99c3f 100644--- a/docs/get-started/configure-ai-providers.md+++ b/docs/get-started/configure-ai-providers.md@@ -171,7 +171,7 @@ Learn more in our [Inference Backend Configuration](../configuration/config-techThe deck files `pipelex init` installs resolve the language, image-generation and document-extraction defaults to models the Pipelex Gateway serves from Azure, so a fresh install runs inside one provider's scope without you choosing anything:-- **Language models** — the premium tier and `best-gpt` are GPT-6 Astra, the general and large-context tiers are GPT-5.4, and the small tiers are GPT-5.4 nano.+- **Language models** — the whole ladder is the GPT-5.6 range: the premium tier and `best-gpt` are GPT-5.6 Sol, the general and large-context tiers are GPT-5.6 Terra, and the small tiers are GPT-5.6 Luna.- **Image generation** — the general and premium tiers are GPT Image 2, the small tier is GPT Image 1 mini.- **Document extraction** — Azure Document Intelligence. `default-text-from-pdf` and `default-no-inference` are the exception within that family: they read the PDF locally with pypdfium2 and call no model, so they need no key of any kind.diff --git a/pipelex/kit/configs/inference/backends/pipelex_gateway_models.md b/pipelex/kit/configs/inference/backends/pipelex_gateway_models.mdindex 6b7455ed7..c0acba8cf 100644--- a/pipelex/kit/configs/inference/backends/pipelex_gateway_models.md+++ b/pipelex/kit/configs/inference/backends/pipelex_gateway_models.md@@ -293,14 +293,6 @@ For configuration details, see the [documentation](https://docs.pipelex.com/late<td style="text-align:center;background-color:rgba(76,175,80,0.15)">✅</td></tr><tr>-<td>gpt-6-astra</td>-<td style="text-align:center;background-color:rgba(33,150,243,0.15)">✅</td>-<td style="text-align:center;background-color:rgba(33,150,243,0.15)">✅</td>-<td style="text-align:center;background-color:rgba(33,150,243,0.15)">✅</td>-<td style="text-align:center;background-color:rgba(76,175,80,0.15)">✅</td>-<td style="text-align:center;background-color:rgba(76,175,80,0.15)">✅</td>-</tr>-<tr><td>gpt-oss-120b</td><td style="text-align:center;background-color:rgba(33,150,243,0.15)">✅</td><td style="text-align:center;background-color:rgba(33,150,243,0.15)">❌</td>@@ -516,6 +508,6 @@ For configuration details, see the [documentation](https://docs.pipelex.com/late> **AUTO-GENERATED FILE** - Do not edit manually.-> Last updated: 2026-09-20T22:54:34Z+> Last updated: 2026-09-21T10:54:05Z>> Run `pipelex-dev update-gateway-models` or `make ugm` to regenerate.\ No newline at end of filediff --git a/pipelex/kit/configs/inference/backends/pipelex_gateway_models_plain.md b/pipelex/kit/configs/inference/backends/pipelex_gateway_models_plain.mdindex 4b3099f81..9ea4543d5 100644--- a/pipelex/kit/configs/inference/backends/pipelex_gateway_models_plain.md+++ b/pipelex/kit/configs/inference/backends/pipelex_gateway_models_plain.md@@ -109,9 +109,6 @@ For configuration details, see the [documentation](https://docs.pipelex.com/late- **gpt-5.6-terra**- inputs: text, images, pdf- outputs: text, structured-- **gpt-6-astra**- - inputs: text, images, pdf- - outputs: text, structured- **gpt-oss-120b**- inputs: text- outputs: text, structured@@ -193,6 +190,6 @@ For configuration details, see the [documentation](https://docs.pipelex.com/late> **AUTO-GENERATED FILE** - Do not edit manually.-> Last updated: 2026-09-20T22:54:34Z+> Last updated: 2026-09-21T10:54:05Z>> Run `pipelex-dev update-gateway-models` or `make ugm` to regenerate.\ No newline at end of filediff --git a/pipelex/kit/configs/inference/deck/.kit_manifest.json b/pipelex/kit/configs/inference/deck/.kit_manifest.jsonindex c3dd476a5..30faa294f 100644--- a/pipelex/kit/configs/inference/deck/.kit_manifest.json+++ b/pipelex/kit/configs/inference/deck/.kit_manifest.json@@ -1,6 +1,6 @@{"files": {- "1_llm_deck.toml": "863f1522135f03333acd5bac41dcd58dfe1dbe4a3875dd8321995d0c60f3db2f",+ "1_llm_deck.toml": "1316c59eb52db62820d313ff92569b736a3f5427ab8c10f495a02b463f37c97a","2_img_gen_deck.toml": "00d570907cee9261882922afebc53556013e46d29419fce4cf189135e2849fd6","3_extract_deck.toml": "560a40bd3254b1be011cfb35340fef6c40d70136e5ddce33a961899f92fd70ba","4_search_deck.toml": "08e3bd1bee0f9f8ed0ffc735a932705392d0ecfbdeefce64c9815d4b2d8d7e22"diff --git a/pipelex/kit/configs/inference/deck/1_llm_deck.toml b/pipelex/kit/configs/inference/deck/1_llm_deck.tomlindex 27aa1cdbe..77d234fed 100644--- a/pipelex/kit/configs/inference/deck/1_llm_deck.toml+++ b/pipelex/kit/configs/inference/deck/1_llm_deck.toml@@ -22,75 +22,89 @@# LLM Default Choices####################################################################################################+# `default_temperature` is the temperature paired with a model named outside a preset — an alias, a+# waterfall or a bare handle written straight into a pipe, and the `for_text` / `for_object` choices+# below. Every model this deck resolves to fixes its temperature at 1, so any other value here would+# be overridden by the worker and warned about on every single call.+[llm.choice_defaults]-default_temperature = 0.5+default_temperature = 1for_text = "@default-general"for_object = "@default-general"##################################################################################################### LLM Aliases####################################################################################################+#+# The ladder runs over the GPT-5.6 range and nothing else: luna is the cheap tier, terra the+# intermediate one that carries most of the deck, and sol the premium tier. Read an alias as the job+# it names rather than as a model: repointing a tier is a one-line change here, and every preset+# that goes through an alias follows. The four that name a handle outright — `retrieval-cheap`,+# `retrieval-premium`, `engineering-code-cheap` and `engineering-code-cheaper` — do not, and have to+# be repointed with it.[llm.aliases]-best-gpt = "gpt-6-astra"+best-gpt = "gpt-5.6-sol"# Default aliases (first choice from waterfalls)-default-general = "gpt-5.4"-default-premium = "gpt-6-astra"-default-premium-vision = "gpt-6-astra"-default-premium-structured = "gpt-6-astra"-default-large-context-code = "gpt-5.4"-default-large-context-text = "gpt-5.4"-default-small = "gpt-5.4-nano"-default-small-structured = "gpt-5.4-nano"-default-small-vision = "gpt-5.4-nano"-default-small-creative = "gpt-5.4-nano"+default-general = "gpt-5.6-terra"+default-premium = "gpt-5.6-sol"+default-premium-vision = "gpt-5.6-sol"+default-premium-structured = "gpt-5.6-sol"+default-large-context-code = "gpt-5.6-terra"+default-large-context-text = "gpt-5.6-terra"+default-small = "gpt-5.6-luna"+default-small-structured = "gpt-5.6-luna"+default-small-vision = "gpt-5.6-luna"+default-small-creative = "gpt-5.6-luna"##################################################################################################### LLM Presets####################################################################################################-# Every preset on the premium tier carries temperature = 1, because the model that tier resolves to-# fixes its temperature at 1. Declaring anything else would be overridden by the worker and warned-# about on every single call, so the deck states the value the model will actually use. If the-# premium tier ever moves to a model that accepts a temperature, these are the presets to revisit.+# Every preset here carries temperature = 1, because every model this deck resolves to — the whole+# GPT-5.6 range — fixes its temperature at 1. Declaring anything else would be+# overridden by the worker and warned about on every single call, so the deck states the value the+# model will actually use. Presets are therefore distinguished by their model tier and their+# reasoning effort, not by temperature. If a tier ever moves to a model that accepts a temperature,+# these are the presets to revisit.[llm.presets]# Writingwriting-factual = { model = "@default-premium", temperature = 1, description = "Factual writing with high accuracy" }-writing-factual-cheap = { model = "@default-small", temperature = 0.1, description = "Cheap factual writing with high accuracy" }+writing-factual-cheap = { model = "@default-small", temperature = 1, description = "Cheap factual writing with high accuracy" }writing-creative = { model = "@default-premium", temperature = 1, description = "Creative writing with high variability" }-writing-creative-cheap = { model = "@default-small-creative", temperature = 0.9, description = "Cheap creative writing with high variability" }+writing-creative-cheap = { model = "@default-small-creative", temperature = 1, description = "Cheap creative writing with high variability" }# Retrieval-retrieval = { model = "@default-large-context-text", temperature = 0.1, description = "Data retrieval from large text corpora" }-retrieval-cheap = { model = "gpt-5.4-nano", temperature = 0.1, description = "Cheap data retrieval from large text corpora" }-retrieval-premium = { model = "gpt-6-astra", temperature = 1, description = "Premium data retrieval with highest accuracy" }+retrieval = { model = "@default-large-context-text", temperature = 1, description = "Data retrieval from large text corpora" }+retrieval-cheap = { model = "gpt-5.6-luna", temperature = 1, description = "Cheap data retrieval from large text corpora" }+retrieval-premium = { model = "gpt-5.6-terra", temperature = 1, reasoning_effort = "high", description = "Premium data retrieval with highest accuracy" }# Engineeringengineering-structured = { model = "@default-premium-structured", temperature = 1, description = "Structured engineering output (JSON, schemas)" }engineering-code = { model = "@default-premium", temperature = 1, description = "Code generation and analysis" }-engineering-code-cheap = { model = "gpt-5.4", temperature = 0.1, description = "Cheap code generation and analysis" }-engineering-code-cheaper = { model = "gpt-5.4-nano", temperature = 0.1, description = "Cheapest code generation and analysis" }-engineering-codebase-analysis = { model = "@default-premium", temperature = 1, description = "Large codebase analysis" }+engineering-code-cheap = { model = "gpt-5.6-terra", temperature = 1, description = "Cheap code generation and analysis" }+engineering-code-cheaper = { model = "gpt-5.6-luna", temperature = 1, description = "Cheapest code generation and analysis" }+engineering-codebase-analysis = { model = "@default-large-context-code", temperature = 1, description = "Large codebase analysis" }# Visionvision = { model = "@default-premium-vision", temperature = 1, description = "Understanding and interpreting images" }-vision-cheap = { model = "@default-small-vision", temperature = 0.5, description = "Cheap image understanding for simple tasks" }+vision-cheap = { model = "@default-small-vision", temperature = 1, description = "Cheap image understanding for simple tasks" }vision-diagram = { model = "@default-premium-vision", temperature = 1, description = "Diagram and chart interpretation" }vision-table = { model = "@default-premium-vision", temperature = 1, description = "Table extraction from images" }# Image generation promptingimg-gen-prompting = { model = "@default-premium", temperature = 1, description = "Crafting image generation prompts" }-img-gen-prompting-cheap = { model = "@default-small-creative", temperature = 0.5, description = "Cheap image prompt generation" }+img-gen-prompting-cheap = { model = "@default-small-creative", temperature = 1, description = "Cheap image prompt generation" }# Reasoningdeep-analysis = { model = "@default-premium", temperature = 1, reasoning_effort = "high", description = "Deep reasoning and analysis" }quick-reasoning = { model = "@default-premium", temperature = 1, reasoning_effort = "low", description = "Quick reasoning for simple tasks" }# Testing-testing-text = { model = "@default-small", temperature = 0.5, description = "Testing preset for text generation" }-testing-structured = { model = "@default-small-structured", temperature = 0.1, description = "Testing preset for structured output" }-testing-vision = { model = "@default-small-vision", temperature = 0.5, description = "Testing preset for vision tasks" }-testing-vision-structured = { model = "@default-small-vision", temperature = 0.5, description = "Testing preset for structured vision output" }+testing-text = { model = "@default-small", temperature = 1, description = "Testing preset for text generation" }+testing-structured = { model = "@default-small-structured", temperature = 1, description = "Testing preset for structured output" }+testing-vision = { model = "@default-small-vision", temperature = 1, description = "Testing preset for vision tasks" }+testing-vision-structured = { model = "@default-small-vision", temperature = 1, description = "Testing preset for structured vision output" }diff --git a/tests/e2e/data/offline_mode/gateway_known_model/gateway_known_model.mthds b/tests/e2e/data/offline_mode/gateway_known_model/gateway_known_model.mthdsindex 89f5d7650..06373a7f4 100644--- a/tests/e2e/data/offline_mode/gateway_known_model/gateway_known_model.mthds+++ b/tests/e2e/data/offline_mode/gateway_known_model/gateway_known_model.mthds@@ -8,5 +8,5 @@ type = "PipeLLM"description = "Single LLM step using a gateway-listed model handle"inputs = { topic = "Text" }output = "Text"-model = "gpt-5.4-nano"+model = "gpt-5.6-luna"prompt = "Write a single sentence about $topic.text."diff --git a/tests/unit/pipelex/kernel/test_llm_ops_model_resolution.py b/tests/unit/pipelex/kernel/test_llm_ops_model_resolution.pyindex 90fc312e4..6d878b0a1 100644--- a/tests/unit/pipelex/kernel/test_llm_ops_model_resolution.py+++ b/tests/unit/pipelex/kernel/test_llm_ops_model_resolution.py@@ -10,7 +10,7 @@ class TestConcreteLlmModelHandle:"""The reported model must be the same whether or not the pipe actually ran."""def test_an_alias_resolves_in_one_hop(self) -> None:- assert concrete_llm_model_handle("@default-general") == "gpt-5.4"+ assert concrete_llm_model_handle("@default-general") == "gpt-5.6-terra"def test_a_preset_follows_the_chain_past_its_alias(self) -> None:"""The case that made DRY and LIVE disagree: a preset's model is itself an alias."""diff --git a/wip/azure-only-deck/deferred.md b/wip/azure-only-deck/deferred.mdindex 87c8fc788..43adfedc1 100644--- a/wip/azure-only-deck/deferred.md+++ b/wip/azure-only-deck/deferred.md@@ -17,9 +17,9 @@ Both are still part of the documented error surface: `docs/errors/llm-settings-v**To do it**: decide whether the inference-settings validation these two named is coming back in some form. If it is not, delete both classes, regenerate the error identity and the error pages, and note the removed `error_type` values in the changelog as a breaking change for anyone branching on them.-## An offline boot can fail on a remote-config cache that predates `gpt-6-astra`+## An offline boot can fail on a remote-config cache that predates the 2026-09-20 publish-Raised by the Codex adversarial reviewer in round 3 and confirmed by the round's verifier. The cache at `~/.pipelex/cache/remote_config.json` carries `CACHE_SCHEMA_VERSION = 1` (`pipelex/system/pipelex_service/remote_config_cache.py:31`) with no TTL and no keying on the remote-config URL version, so a cache primed before `gpt-6-astra` was published stays valid and is served verbatim. `pipelex update` copies clean-behind deck files with `shutil.copy2` (`pipelex/cli/commands/update_cmd.py:156-159`) and never touches the cache. When the next boot cannot reach the network, `fetch_remote_config` falls back to that cache and returns `source=CACHED` rather than `None`, so `ModelManager._enforce_gateway_model_membership` runs and raises `GatewayUnknownModelError` at `model_manager.py:186` on the promoted handle.+Raised by the Codex adversarial reviewer in round 3 and confirmed by the round's verifier. The cache at `~/.pipelex/cache/remote_config.json` carries `CACHE_SCHEMA_VERSION = 1` (`pipelex/system/pipelex_service/remote_config_cache.py:31`) with no TTL and no keying on the remote-config URL version, so a cache primed before the 2026-09-20 publish stays valid and is served verbatim. **This widened on 2026-09-21**: the follow-up deck change put every tier, the `for_text` and `for_object` choice defaults included, on handles that publish first served, so such a cache now fails the boot outright rather than only on the premium path. `pipelex update` copies clean-behind deck files with `shutil.copy2` (`pipelex/cli/commands/update_cmd.py:156-159`) and never touches the cache. When the next boot cannot reach the network, `fetch_remote_config` falls back to that cache and returns `source=CACHED` rather than `None`, so `ModelManager._enforce_gateway_model_membership` runs and raises `GatewayUnknownModelError` at `model_manager.py:186` on the promoted handle.It was not fixed here because the failure is loud rather than silent: the error names the handle, the backend and the config source, and `handle_gateway_unknown_model_error` prints two remediations, either of which clears it permanently — one online boot, or disabling the gateway backend. It also needs an offline boot and a pre-publication cache together. At round 3's `necessity` bar that is not ship-blocking, but it is the sharpest finding this campaign drew.@@ -27,13 +27,13 @@ It was not fixed here because the failure is loud rather than silent: the error**To do it**: validate a candidate deck against the available cache before applying it, and refuse the update while preserving the current deck when a required handle is unavailable — or serve a fallback handle compatible with older caches. Either way it needs an end-to-end upgrade test built on a cache primed before the deck moved, which the current fixture design cannot express.-## Naming a premium alias directly in a pipe warns on every call+## Naming a premium alias directly in a pipe warns on every call — resolved at the deck layerRaised by the Codex review pass in round 3 and confirmed by the round's verifier. `ModelDeck.get_llm_setting` resolves an alias by pairing its target with the deck-wide default temperature (`pipelex/cogt/models/model_deck.py:322-325`), which the shipped deck sets to 0.5. Because the premium tier now resolves to a model carrying `fixed_temperature = 1`, `_apply_constraints` overrides the value and logs a warning (`pipelex/cogt/llm/llm_worker_abstract.py:358-365`) from the per-job path, with no memoisation — once per call.This is the corner the round-2 pass did not sweep when it set the twelve conflicting presets to temperature 1. The presets are covered; the alias path is not, and the shape is reachable from our own documentation, which teaches `model = "@default-premium"` inside a pipe at `docs/building-methods/pipes/pipe-operators/PipeStructure.md:123`.-**To do it**: decide where the constraint should be applied. Resolving an alias through the target model's `valued_constraints` at deck-build time is the direct fix, but it moves constraint knowledge into the deck layer; the alternative is to keep the override where it is and dedupe the warning per model. The choice belongs with whoever owns the resolution path, not with a deck change.+**Resolved, for this deck**: the follow-up deck change set `[llm.choice_defaults].default_temperature` to 1, so the alias, waterfall and bare-handle paths all pair their target with the value every model in the ladder fixes, and none of them warns. That is a deck fix rather than the resolution-layer one argued for here, and it holds only while every handle the deck names shares one fixed temperature — a deck mixing constrained and unconstrained models would bring the warning straight back, on whichever side of 1 the default falls. **Still open at the resolution layer**: `get_llm_setting` pairs a target with a deck-wide constant and never reads the target's own `valued_constraints` (`pipelex/cogt/models/model_deck.py:325, :337, :350`), and the warning is still emitted per call with no memoisation. Whoever owns that path decides whether to resolve the constraint at deck-build time or dedupe the warning per model.## `check-gateway-models` can never report drift@@ -43,19 +43,19 @@ That is why the listings drifted for months with every gate green, and why round**To do it**: separate the two — either drop the regeneration from `make check` and let the checker speak, or move the checker into `make agent-check` in a form that reads the committed files rather than freshly generated ones.-## Whether large-codebase analysis belongs on the premium tier+## Whether large-codebase analysis belongs on the premium tier — resolvedRaised by the official code review in round 3. `engineering-codebase-analysis` now resolves to `@default-premium` (`gpt-6-astra`, input 10.0 / output 50.0, temperature fixed at 1) where the deck's own `default-large-context-code` alias resolves to `gpt-5.4` (input 2.5 / output 15.0, no fixed temperature) and is reached by no preset, no waterfall and no choice default.The reviewer read this as an unremarked side effect of the sweep, and the verifier refuted that reading: `design.md` decision 4 names the repointing explicitly and `plan.md` Phase 3 repeats it as an instruction, and it was forced, since `best-gemini` is one of the provider-named aliases decision 8 removes. The alias was equally unreachable on `origin/dev`, where the preset reached its model through `@best-gemini`. So the framing is rejected and the design question is what remains: the preset's description is still "Large codebase analysis", the alias exists for exactly that job, and the cost and determinism deltas are real.-**To do it**: decide whether `engineering-codebase-analysis` should name `@default-large-context-code`, and if not, whether that alias should exist at all — an alias nothing reaches is never exercised by the boot-time membership check (`_collect_deck_referenced_handles` walks presets and choice defaults only, by design), so it can rot silently either way.+**Resolved**: the follow-up deck change that moved the ladder onto the GPT-5.6 range repointed `engineering-codebase-analysis` at `@default-large-context-code`, which now resolves to `gpt-5.6-terra` (input 2.0 / output 12.0). The alias is reached by a preset, so the boot-time membership check exercises it and it can no longer rot silently.## Unverified deferrals from round 3These were raised by reviewers and sorted as deferrals without being sent to the verifier, because at the round's bar they would not have been fixed whatever the verdict. Each rests on the reviewer's word alone.-**Unverified — preset descriptions no longer describe distinct presets** (cubic, and independently the official code review). `writing-factual` ("high accuracy") and `writing-creative` ("high variability") both resolve to `@default-premium` at temperature 1 and would issue identical calls; `engineering-structured`, `vision-diagram` and `vision-table` likewise lost the parameter their descriptions imply. These descriptions surface through `check-model` and the docs, so a reader choosing a preset by its description may be misled. The tier move itself was ratified at Checkpoint A, so what is open is whether the descriptions should be rewritten or the presets given distinct targets.+**Unverified — preset descriptions no longer describe distinct presets** (cubic, and independently the official code review). `writing-factual` ("high accuracy") and `writing-creative` ("high variability") both resolve to `@default-premium` at temperature 1 and would issue identical calls; `engineering-structured`, `vision-diagram` and `vision-table` likewise lost the parameter their descriptions imply. These descriptions surface through `check-model` and the docs, so a reader choosing a preset by its description may be misled. The tier move itself was ratified at Checkpoint A, so what is open is whether the descriptions should be rewritten or the presets given distinct targets. **This widened**: the follow-up deck change put every tier on a model that fixes its temperature at 1, so temperature no longer separates any two presets anywhere in the deck — only the model tier and the reasoning effort do. `writing-factual-cheap` and `writing-creative-cheap` now collide the way the premium pair does.**Unverified — the parked variant ships to every install** (cubic). `get_kit_deck_variants_dir` is a public kit API whose only caller is the parity test, and the hatch wheel includes all of `pipelex/`, so `deck_variants/` reaches every install although the README states nothing loads it. Resolving the variants root inside the test, or excluding the directory from the wheel the way `pipelex/cli/dev_cli` is excluded, would keep the runtime surface to what the runtime uses.diff --git a/wip/azure-only-deck/design.md b/wip/azure-only-deck/design.mdindex 888038b67..0251fab35 100644--- a/wip/azure-only-deck/design.md+++ b/wip/azure-only-deck/design.md@@ -1,5 +1,5 @@----status: active+status: landeditem: L-260918-941a99---@@ -78,6 +78,8 @@ The commented waterfall examples in `x_custom_llm_deck.toml` and `x_custom_extra### 10. The premium tier declares `temperature = 1`, because its model fixes it there+> **Superseded on 2026-09-21.** A follow-up change moved the general, large-context and small tiers onto the GPT-5.6 range — `gpt-5.6-terra` for general and large-context, `gpt-5.6-luna` for the small tiers — which is exactly the move this document put out of scope, and it accepted the cost named here. `gpt-6-astra` left the deck entirely in the same follow-up: the premium tier and `best-gpt` are `gpt-5.6-sol`, so the ladder is the GPT-5.6 range and nothing else. Every preset in the deck now declares `temperature = 1`, not only the twelve on the premium tier, and `[llm.choice_defaults].default_temperature` is 1 too, so the alias, waterfall and bare-handle paths stop warning as well. What is written below is the reasoning as it stood when this campaign shipped, and is kept as the record of it.+`gpt-6-astra` carries `valued_constraints = { fixed_temperature = 1 }` on the Azure and OpenAI backends and on both hosted routing profiles. `_apply_constraints` (`pipelex/cogt/llm/llm_worker_abstract.py:338-369`) overrides any other value and logs a warning, once per call, with no memoisation. Today's shipped deck has no preset in that position: `claude-4.8-opus` declares no constraint, and the one fixed-temperature handle it names, `gpt-5.5` behind `best-gpt`, is reached by no preset. This change would put twelve presets there.So the twelve presets that ride the premium tier declare `temperature = 1` — the value the model will use — instead of a value the worker discards. The deck stops asserting something untrue and stops warning on every premium call. What it costs is real and is accepted: `writing-factual` and `writing-creative` now issue the same call, and `engineering-structured` runs structured extraction at temperature 1, `_gen_object` passing the temperature unconditionally on that path. The premium tier has no temperature control until it resolves to a model that accepts one, and `1_llm_deck.toml` says so above its preset table.@@ -91,7 +93,7 @@ The repository already had the validator for exactly this conflict — `ModelDec- **Routing.** The Gateway already serves the OpenAI language and image models from Azure. The deck decides which handles are named, not where a request goes, and nothing about the routing profiles or the remote config changes here.- **Fixed-temperature constraints.** Several gpt-5.x handles carry `fixed_temperature = 1`, `gpt-6-astra` among them, so the premium tier has one. The worker forces the model's value and logs a warning on every call where a preset declares a different one, so the twelve presets on the premium tier declare `temperature = 1` outright rather than a value the deck cannot honour. Decision 10 records that, and what it costs.- **An edition selector.** Declined, see decision 2.-- **The GPT-5.6 generation for the general and small tiers.** `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna` and `gpt-6-astra` joined the Azure backend in pipelex v0.61.0 and the gateway serves them since the remote config published on 2026-09-20. The premium tier takes `gpt-6-astra` (decision 4), but the general and small tiers stay on 5.4. Every 5.6 and 6 handle carries `fixed_temperature = 1`, while `gpt-5.4` and `gpt-5.4-nano` carry no constraint, so keeping those two tiers on 5.4 keeps the temperature of every preset that rides them, which is most of the deck. The premium tier, by contrast, has no fixed-temperature-free option: on Azure every handle above `gpt-5.4` carries the constraint, so taking the flagship means taking it (decision 10).+- **The GPT-5.6 generation for the general and small tiers.** *(Superseded on 2026-09-21 — the follow-up change made this move; see the note under decision 10.)* `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna` and `gpt-6-astra` joined the Azure backend in pipelex v0.61.0 and the gateway serves them since the remote config published on 2026-09-20. The premium tier takes `gpt-6-astra` (decision 4), but the general and small tiers stay on 5.4. Every 5.6 and 6 handle carries `fixed_temperature = 1`, while `gpt-5.4` and `gpt-5.4-nano` carry no constraint, so keeping those two tiers on 5.4 keeps the temperature of every preset that rides them, which is most of the deck. The premium tier, by contrast, has no fixed-temperature-free option: on Azure every handle above `gpt-5.4` carries the constraint, so taking the flagship means taking it (decision 10).## The backend model list moved firstdiff --git a/wip/azure-only-deck/plan.md b/wip/azure-only-deck/plan.mdindex 71a472066..c9b9f88a2 100644--- a/wip/azure-only-deck/plan.md+++ b/wip/azure-only-deck/plan.md@@ -1,5 +1,5 @@----status: active+status: landeditem: L-260918-941a99---