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.
Drift Hunt S2-4: features + the tail — Stage-1 drift fixes + cross-cutting sweeps (#1045)
Louis Choquelcb13e5b33875
diff --git a/AGENTS.md b/AGENTS.mdindex 2e857a7a7..b3bb8327d 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -9,7 +9,7 @@```bashmake agent-check# If the current system doesn't have the `make` command,- # lookup the "agent-check" target in the Makefile and run the commands one by one (targets fix-unused-imports format lint pyright mypy)+ # lookup the "agent-check" target in the Makefile and run the commands one by one (targets fix-unused-imports fix-keyword-only format generate-mthds-schema lint pyright mypy check-keyword-only)```This runs multiple code quality tools:diff --git a/CLAUDE.md b/CLAUDE.mdindex 1fe1572f6..58e6e9da0 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -9,7 +9,7 @@```bashmake agent-check# If the current system doesn't have the `make` command,- # lookup the "agent-check" target in the Makefile and run the commands one by one (targets fix-unused-imports format lint pyright mypy)+ # lookup the "agent-check" target in the Makefile and run the commands one by one (targets fix-unused-imports fix-keyword-only format generate-mthds-schema lint pyright mypy check-keyword-only)```This runs multiple code quality tools:@@ -49,12 +49,12 @@```bashmake agent-test# If the current system doesn't have the `make` command, lookup the "agent-test" target in the Makefile and run the command manually.- # Zero output on success; full output on failure.+ # Heartbeat progress lines while running; full output only on failure.```### When `make agent-test` hangs or fails opaquely- Use **`make agent-test-debug`** (alias: `make atd`). Same suite, but with stale-process cleanup upfront, an outer wall-clock `timeout` so fixture-teardown hangs and xdist worker-replace loops can't run forever, direct file redirect for live progress (`tail -f /tmp/pytest-agent-test-debug.log`), and `-v` so each test name lands in the log as it runs. On failure or timeout it prints the failed tests, the log path, and a grep hint.+ Use **`make agent-test-debug`** (alias: `make atd`). Same suite, but with stale-process cleanup upfront, an outer wall-clock `timeout` so fixture-teardown hangs and xdist worker-replace loops can't run forever, direct file redirect for live progress (`tail -f /tmp/pytest-agent-test-debug.log`), and `-v` so each test name lands in the log as it runs. On failure it prints the failed tests, the log path, and a grep hint; on timeout, the tail of the log and the log path.For the full debugging methodology — clean-state protocol, when to bail to the user, how to grep failures by error class name, when xdist failures are flakes vs real bugs — see [`docs/agents/debugging-hanging-pytest-runs.md`](docs/agents/debugging-hanging-pytest-runs.md).@@ -78,7 +78,7 @@# ormake tp TEST=test_function_name```- Note: Matches names starting with the provided string.+ Note: Matches names containing the provided string (pytest `-k` substring matching).### Running Last Failed Testsdiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 6eafd717e..f45ecba62 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -42,8 +42,8 @@ We are open to contributions in all areas of our core Pipelex library:- Run `make install` to set up virtualenv and dependencies- Copy `.env.example` to `.env` and configure API keys- Use uv for dependency management:- - Runtime deps: `uv pip install <package>`- - Dev deps: `uv pip install --extra dev <package>`+ - Runtime deps: `uv add <package>`+ - Dev deps: `uv add --optional dev <package>`- Keep dependencies alphabetically ordered in pyproject.toml## Pull Request Processdiff --git a/docs/CLAUDE.md b/docs/CLAUDE.mdindex a1d45ae3e..3c4cda5e4 100644--- a/docs/CLAUDE.md+++ b/docs/CLAUDE.md@@ -38,7 +38,7 @@ There must be **NO** `docs/404.md` — a Markdown 404 would be treated as conten## robots.txt: Two Files, Different Purposes- **`docs/robots.txt`** — Lands at `/latest/robots.txt` inside the versioned site. Crawlers ignore it (RFC 9309: only domain-root robots.txt is authoritative). Exists as a courtesy/fallback.-- **`Makefile` `ROOT_ROBOTS_TXT`** — The authoritative robots.txt deployed to domain root by `docs-deploy-root`. Allows only `/latest/` and `/sitemap.xml`, disallows everything else, points sitemap to root `/sitemap.xml` (which contains `/latest/` URLs, generated by `docs-deploy-root` from the `latest/` alias sitemap via sed version-to-`latest` rewrite). **Critical:** `Disallow: /` blocks ALL root paths not explicitly `Allow`ed. The `Sitemap:` directive tells crawlers where the sitemap is but does NOT override `Disallow` — crawlers still need an `Allow:` line to fetch it.+- **`Makefile` `ROOT_ROBOTS_TXT`** — The authoritative robots.txt deployed to domain root by `docs-deploy-root`. Allow-by-default with targeted disallows: it blocks versioned paths (`/0.`), `/pre-release/`, and `/404.html`; everything else — including root-level files like `/llms.txt` — is implicitly allowed (the explicit `Allow:` lines for `/latest/`, `/sitemap.xml`, `/llms.txt`, `/llms-full.txt` just document the intended crawl surface). Points sitemap to root `/sitemap.xml` (which contains `/latest/` URLs, generated by `docs-deploy-root` from the `latest/` alias sitemap via sed version-to-`latest` rewrite).## Deployment (`docs-deploy-root`)@@ -53,6 +53,7 @@ The `docs-deploy-root` Makefile target deploys root assets (`404.html`, `robots.- `redirects` — legacy→current URL path mapping- `meta-manager` — applies `docs/.meta.yml` defaults to all pages- `glightbox` — image lightbox+- `llmstxt-md` — generates `llms.txt` / `llms-full.txt` (LLM-friendly docs index + full content), which `docs-deploy-root` copies from `latest/` to the site root## Sidebar Width@@ -85,7 +86,7 @@ Mike (`mike deploy X.Y.Z latest`) creates two directories on gh-pages: `X.Y.Z/`- Do NOT set `site_url` to include `/latest/` — mike will create double paths like `/latest/X.Y.Z/page/`- Do NOT assume `latest/sitemap.xml` has `/latest/` URLs — mike copies sitemaps verbatim from the version directory without rewriting- Do NOT source the root sitemap from `$(DOCS_VERSION)/` — use `latest/` so pre-release deploys don't overwrite it with pages not served at `/latest/`-- Do NOT add root-level files to `docs-deploy-root` without also adding a corresponding `Allow:` line in `ROOT_ROBOTS_TXT` — `Disallow: /` blocks them from crawlers even if a `Sitemap:` directive references them+- Do NOT flip `ROOT_ROBOTS_TXT` to a deny-by-default `Disallow: /` policy — a `Sitemap:` directive does NOT override `Disallow`, so every root-level asset (`/sitemap.xml`, `/llms.txt`, ...) would silently drop from crawl unless individually `Allow`ed. The shipped policy is allow-by-default with targeted disallows for versioned and non-content paths## Spec vs Blueprint in Documentationdiff --git a/docs/agents/debugging-hanging-pytest-runs.md b/docs/agents/debugging-hanging-pytest-runs.mdindex 1f49df4f5..42547f2db 100644--- a/docs/agents/debugging-hanging-pytest-runs.md+++ b/docs/agents/debugging-hanging-pytest-runs.md@@ -11,7 +11,7 @@## The anti-patterns (concrete, in order)-1. **`make agent-test` is silent on success.** Backgrounding it and waiting for a harness notification gives no progress signal — the output file can stay 0 bytes for many minutes. → No way to tell hung from slow.+1. **`make agent-test` shows liveness, not progress.** Its heartbeat lines (`• agent-test still running (Ns elapsed)`) only prove the process is alive — pytest's own output is buffered to a temp file and shown only on failure, so a hung run looks identical to a slow one. → No way to tell hung from slow.2. **`-q` buffers harder.** It holds output until session-end. Use `-v` for debug runs.diff --git a/docs/analytics/data-extraction.md b/docs/analytics/data-extraction.mdindex 6ce6fae5c..8f39f9b0a 100644--- a/docs/analytics/data-extraction.md+++ b/docs/analytics/data-extraction.md@@ -29,15 +29,28 @@ The observer extracts data at three critical moments during pipe execution:The data extraction location depends on your observer implementation:-### LocalObserver (Default)+### LocalObserver (opt-in)++Pipelex ships a `LocalObserver` that writes each event to JSONL files on the local filesystem, but it is not registered by default: out of the box, setup wires a no-op observer and a telemetry observer, so no JSONL files are written. To enable JSONL extraction, construct a `LocalObserver` and pass it through the `observers` parameter of `Pipelex.make()` (a mapping of name to observer — note that providing it replaces the default observers):++```python+from pipelex.observer.local_observer import LocalObserver+from pipelex.pipelex import Pipelex++Pipelex.make(observers={"local": LocalObserver(storage_dir="results/observer")})+```++Pass an explicit `storage_dir`: the observer is constructed before `Pipelex.make()` boots the runtime, so it cannot read the configured default at that point.++Once registered:- **Location**: Local filesystem in JSONL format-- **Default Directory**: Configured in your Pipelex settings under `observer_config.observer_dir`+- **Default Directory**: if you omit `storage_dir`, the directory comes from `observer_config.observer_dir` in your Pipelex settings — but that fallback only works once Pipelex is booted, not in the pre-boot construction shown above- **Files Created**:- `before_run.jsonl` - Pre-execution snapshots-- `successful_run.jsonl` - Success events and results-- `failing_run.jsonl` - Failure events and error context+- `after_successful_run.jsonl` - Success events and results+- `after_failing_run.jsonl` - Failure events and error context### Custom ObserversYou can implement custom data extraction to:diff --git a/docs/contribute/configuration-defaults-and-overrides.md b/docs/contribute/configuration-defaults-and-overrides.mdindex f24d8cc35..dffa3a6a4 100644--- a/docs/contribute/configuration-defaults-and-overrides.md+++ b/docs/contribute/configuration-defaults-and-overrides.md@@ -21,7 +21,7 @@ The key idea: global personal preferences layer **under** project-specific setti## Where defaults live (Pipelex repository)-- **Default values** (baseline): repo root `pipelex.toml`+- **Default values** (baseline): `pipelex/pipelex.toml`, shipped inside the package- **User-facing templates** copied into `.pipelex/` by the init flow: `pipelex/kit/configs/…`## Merge order (runtime)@@ -48,11 +48,11 @@ Load order:## Where to change things in code- **Config merge logic**: `pipelex/system/configuration/config_loader.py`-- **Override lists** (`local` / `super`): `pipelex/system/configuration/config_root.py`+- **Override file sequences**: `ConfigLoader._override_files_for_dir` and `ConfigLoader._plugin_override_files_for_dir` in that same file## Contributor guidelines for config changes-- If you change **defaults**, update the repo root `pipelex.toml` (and consider whether templates in `pipelex/kit/configs/…` should also be updated).+- If you change **defaults**, update `pipelex/pipelex.toml` (and consider whether templates in `pipelex/kit/configs/…` should also be updated).- If you change **templates**, keep them user-focused and stable; avoid adding internal-only details.- If you change **merge order or override semantics**, treat it as a potentially breaking change and document it (changelog + migration notes if needed).diff --git a/docs/features/cli.md b/docs/features/cli.mdindex 82fad1f44..5539d27bc 100644--- a/docs/features/cli.md+++ b/docs/features/cli.md@@ -38,7 +38,7 @@ Package manifest management is currently exposed through the lowercase `mthds` C## Execution Options- **Dry run** — `--dry-run` executes with mocked LLM responses to test pipeline logic without API calls-- **Mock inputs** — `--mock-inputs` generates synthetic inputs so you can test a pipeline without preparing real data+- **Mock inputs** — `--mock-inputs` generates synthetic inputs so you can test a pipeline without preparing real data (requires `--dry-run`)- **Graph generation** — `--graph`, `--graph-full-data`, `--graph-no-data` for visual execution inspection## Agent CLIdiff --git a/docs/features/concepts.md b/docs/features/concepts.mdindex 9c068aecb..986e941b9 100644--- a/docs/features/concepts.md+++ b/docs/features/concepts.md@@ -22,9 +22,13 @@ Pre-built universal concepts available in every Pipelex project:- **Html** — HTML content- **TextAndImages** — Combined text and image content in a single structure- **Number** — Numeric value+- **YesNo** — The answer to a yes/no question+- **Date** — A calendar date, optionally with a time of day+- **Time** — A time of day, optionally with a UTC offset- **Page** — A single page extracted from a document, with markdown text and optional images- **JSON** — Arbitrary JSON data- **SearchResult** — Web search result with source citations+- **Composite** — A named composition of contents- **Anything** — Universal type that accepts any content## Custom Concepts@@ -33,7 +37,7 @@ Define your own concepts with natural language descriptions and optional structu## Inline Structures-Define structured fields directly in `.mthds` files without writing Python. Inline structures support typed fields (text, integer, boolean, number, list) and nested concepts for complex data shapes — making it possible to build fully structured methods without leaving the MTHDS language.+Define structured fields directly in `.mthds` files without writing Python. Inline structures support typed fields (text, integer, boolean, number, date, datetime, time, list, dict) and nested concepts for complex data shapes — making it possible to build fully structured methods without leaving the MTHDS language.## Python StructuredContent Classesdiff --git a/docs/features/configuration.md b/docs/features/configuration.mdindex ffe5b3b4c..7d0754158 100644--- a/docs/features/configuration.md+++ b/docs/features/configuration.md@@ -13,17 +13,23 @@ Pipelex uses a layered TOML configuration system that lets you define sensible d## Configuration Levels-1. **Base defaults** — Built into Pipelex (`pipelex.toml` in the package)-2. **Global overrides** — `~/.pipelex/pipelex.toml` for user-wide settings-3. **Project overrides** — `{project_root}/.pipelex/pipelex.toml` for project-specific settings-4. **Local overrides** — `pipelex_local.toml` (git-ignored) for machine-specific values-5. **Environment / run-mode-specific** — `pipelex_dev.toml`, `pipelex_prod.toml`, `pipelex_testing.toml`, etc. The environment overlay is selected by the `PIPELEX_ENV` environment variable (accepted values: `local`, `dev`, `staging`, `prod`; defaults to `dev`).+1. **Package defaults** — Built into Pipelex (`pipelex.toml` in the package)+2. **Global tier** — `~/.pipelex/` for user-wide settings: the base `pipelex.toml`, then its override sequence+3. **Project tier** — `{project_root}/.pipelex/` for project-specific settings: the base `pipelex.toml`, then the same override sequence-A final `pipelex_override.toml` file can be used for last-resort overrides.+Within each tier, the base `pipelex.toml` is followed by an override sequence, merged in order (later wins per key):++- `pipelex_local.toml` — git-ignored, for machine-specific values+- `pipelex_{environment}.toml` — e.g. `pipelex_dev.toml`, `pipelex_prod.toml`. The environment is selected by the `PIPELEX_ENV` environment variable (accepted values: `local`, `dev`, `staging`, `prod`; defaults to `dev`).+- `pipelex_{run_mode}.toml` — e.g. `pipelex_unit_test.toml`, `pipelex_ci_test.toml`. The run mode is selected by the `RUN_MODE` environment variable (defaults to `normal`).+- `pipelex_override.toml` — general-purpose overrides+- `pipelex_temporary_override.toml` — last-resort, highest-precedence overrides within the tier++The entire global tier merges before the project tier, so any project-tier file — including the plain project `pipelex.toml` — overrides every global-tier file.## Environment Variables-Use `${VAR_NAME}` syntax in TOML files for dynamic configuration from environment variables and secrets. Supports `${env:VAR}` for environment variables, `${secret:VAR}` for the secrets provider, and fallback chains like `${env:VAR|secret:VAR}`.+Two configuration areas support `${...}` variable substitution in their TOML files: the inference backend configuration (`.pipelex/inference/backends.toml` and the per-backend TOML files under `.pipelex/inference/backends/`) and the telemetry configuration (`.pipelex/telemetry.toml`). In those files, use `${env:VAR}` for environment variables, `${secret:VAR}` for the secrets provider, and fallback chains like `${env:VAR|secret:VAR}`. The `pipelex.toml` layering described above does not perform substitution — a `${env:VAR}` there stays a literal string.## Key Configuration Areasdiff --git a/docs/features/execution-graph.md b/docs/features/execution-graph.mdindex 6e7477c27..f254e660c 100644--- a/docs/features/execution-graph.md+++ b/docs/features/execution-graph.md@@ -9,7 +9,7 @@ Full transparency into pipeline execution with interactive visualizations.## Overview-Every pipeline execution can be visualized as an interactive graph, giving developers full transparency into what happened, in what order, and with what data at each step. Graphs are generated automatically when using the `--graph` flag and open in a browser.+Every pipeline execution can be visualized as an interactive graph, giving developers full transparency into what happened, in what order, and with what data at each step. Running with the `--graph` flag writes the graph outputs (graph spec JSON, Mermaid chart, interactive HTML) to the run's output directory. To render a saved graph spec and open it in your browser, use `pipelex graph render <graph.json> --open`.## Interactive HTML Visualizationdiff --git a/docs/features/image-generation.md b/docs/features/image-generation.mdindex 319fed72e..db499aaee 100644--- a/docs/features/image-generation.md+++ b/docs/features/image-generation.md@@ -15,17 +15,14 @@ PipeImgGen generates images from text prompts using state-of-the-art models. GenVia **Pipelex Gateway**:-- **GPT-Image-1.5** — OpenAI's latest image generation model-- **GPT-Image-1** — OpenAI image generation-- **GPT-Image-1-mini** — Smaller, faster variant for quick generations-- **FLUX-2-pro** — Black Forest Labs' high-quality generation model-- **Nano Banana / Nano Banana Pro / Nano Banana 2** — Google Gemini-based image generation+- **GPT-Image-2 / GPT-Image-1.5 / GPT-Image-1 / GPT-Image-1-mini** — OpenAI image generation models+- **Nano Banana / Nano Banana Pro / Nano Banana 2 / Nano Banana 2 Lite** — Google Gemini-based image generationVia **direct provider SDKs**:- **OpenAI** — Direct OpenAI API for GPT Image models- **Google Gemini** — Native Google image generation-- **fal** — FLUX and other models via the fal platform+- **fal** — FLUX models (Black Forest Labs) and others via the fal platform- **Hugging Face Inference** — Open-source models like qwen-image- **BlackboxAI** — Via completions-based image generation- **Azure REST** — Azure-hosted image generationdiff --git a/docs/features/index.md b/docs/features/index.mdindex 327587b5d..c387e8a81 100644--- a/docs/features/index.md+++ b/docs/features/index.md@@ -25,7 +25,7 @@ This section covers all Pipelex capabilities, organized by area.- **[Pipe Operators](pipe-operators.md)**- The workers that do the actual processing: PipeLLM, PipeExtract, PipeImgGen, PipeSearch, PipeCompose, and PipeFunc.+ The workers that do the actual processing: PipeLLM, PipeStructure, PipeExtract, PipeImgGen, PipeSearch, PipeCompose, and PipeFunc.- **[Pipeline Orchestration](pipeline-orchestration.md)**diff --git a/docs/features/pipe-operators.md b/docs/features/pipe-operators.mdindex 1eb672544..875b3c73c 100644--- a/docs/features/pipe-operators.md+++ b/docs/features/pipe-operators.md@@ -1,6 +1,6 @@---title: "Pipe Operators Overview"-description: "Pipe operators are the building blocks of Pipelex methods: PipeLLM, PipeExtract, PipeImgGen, PipeSearch, PipeCompose, and PipeFunc — each handling a specific type of AI processing."+description: "Pipe operators are the building blocks of Pipelex methods: PipeLLM, PipeStructure, PipeExtract, PipeImgGen, PipeSearch, PipeCompose, and PipeFunc — each handling a specific type of AI processing."---# Pipe Operators@@ -9,7 +9,7 @@ The workers that perform the actual processing in your pipelines.## Overview-Pipe operators are the building blocks of Pipelex methods. Each operator performs a specific type of work: calling an LLM, extracting text from documents, generating images, searching the web, composing data, or running custom code. Operators declare their input and output concepts, and the runtime validates type compatibility at definition time.+Pipe operators are the building blocks of Pipelex methods. Each operator performs a specific type of work: calling an LLM, structuring text into typed data, extracting text from documents, generating images, searching the web, composing data, or running custom code. Operators declare their input and output concepts, and the runtime validates type compatibility at definition time.## PipeLLM@@ -17,6 +17,12 @@ The core operator for LLM interaction. Supports text generation, structured outpSee [PipeLLM reference](../building-methods/pipes/pipe-operators/PipeLLM.md).+## PipeStructure++Turns free-form text into a structured typed concept via a single LLM call. Takes one `Text`-compatible input and produces a typed object (or list of objects) matching the output concept. Use it when the text comes from elsewhere — a PDF extraction, a search result, or an upstream step — and you need typed JSON.++See [PipeStructure reference](../building-methods/pipes/pipe-operators/PipeStructure.md).+## PipeExtractOCR and document extraction from PDFs and images. Supports multiple providers (pypdfium2, Mistral OCR, Azure Document Intelligence, docling, Deepseek-OCR), page rendering, embedded image extraction, and layout analysis. Swap providers by changing configuration, no code changes needed.diff --git a/docs/features/plxt.md b/docs/features/plxt.mdindex f0701dadd..6bdbbab0f 100644--- a/docs/features/plxt.md+++ b/docs/features/plxt.md@@ -21,10 +21,10 @@ A Rust-based formatter and linter for TOML that supports schema-based validation## Linting-Schema-based validation that catches structural and semantic issues beyond basic syntax checking. Detects invalid keys, missing required fields, type mismatches, and MTHDS-specific violations such as unknown pipe operators or invalid concept references.+Schema-based validation that catches structural issues beyond basic syntax checking. Detects invalid keys, missing required fields, type mismatches, and MTHDS-specific violations such as unknown pipe operators. Cross-reference checks, such as resolving concept references, are handled by `pipelex validate`, not `plxt lint`.## CI Integration-Use `plxt fmt --check` to validate formatting without modifying files, and run `plxt lint` separately for schema and semantic checks. Both commands exit with a non-zero code on errors, making them easy to enforce in automated workflows.+Use `plxt fmt --check` to validate formatting without modifying files, and run `plxt lint` separately for schema-based checks. Both commands exit with a non-zero code on errors, making them easy to enforce in automated workflows.For details, see the [plxt reference](../tools/plxt.md).diff --git a/docs/get-started/configure-ai-providers.md b/docs/get-started/configure-ai-providers.mdindex 6a84b88fd..542fe4da4 100644--- a/docs/get-started/configure-ai-providers.md+++ b/docs/get-started/configure-ai-providers.md@@ -91,10 +91,10 @@ When using your own keys, enable the corresponding backends:1. Initialize configuration:```bash- pipelex init config+ pipelex init```-2. Edit `.pipelex/inference/backends.toml`:+2. Edit `~/.pipelex/inference/backends.toml` (or `.pipelex/inference/backends.toml` in your project root if you have a project-local config — the project file fully overrides the global one):```toml[google]@@ -122,8 +122,8 @@ Run AI models locally without any API keys. This is perfect if you:**Ollama** (Recommended):1. Install [Ollama](https://ollama.ai/)-2. Pull a model: `ollama pull llama2`-3. No API key needed! Configure Ollama backend in `.pipelex/inference/backends.toml`+2. Pull a model from Pipelex's Ollama catalog: `ollama pull gemma3:4b`+3. No API key needed! Configure Ollama backend in `~/.pipelex/inference/backends.toml`**Other Local Providers:**@@ -131,7 +131,7 @@ Run AI models locally without any API keys. This is perfect if you:- **LM Studio**: User-friendly local model interface- **llama.cpp**: Lightweight C++ inference-Configure these in `.pipelex/inference/backends.toml`. See our [Inference Backend Configuration](../configuration/config-technical/inference-backend-config.md) for details.+Configure these in `~/.pipelex/inference/backends.toml`. See our [Inference Backend Configuration](../configuration/config-technical/inference-backend-config.md) for details.---@@ -140,25 +140,31 @@ Configure these in `.pipelex/inference/backends.toml`. See our [Inference BackenTo set up Pipelex configuration files, run:```bash-pipelex init config+pipelex init```-This creates a `.pipelex/` directory with:+By default, this creates the global `~/.pipelex/` directory with:```-.pipelex/+~/.pipelex/├── pipelex.toml # Feature flags, logging, cost reporting-├── telemetry.toml # Custom telemetry configuration+├── plxt.toml # MTHDS/TOML formatting and linting configuration+├── telemetry.toml # AI trace destinations (PostHog, Langfuse, OTLP)└── inference/ # LLM configuration and model presets├── backends.toml # Enable/disable model providers+ ├── backends/ # Per-provider model catalogs (anthropic.toml, openai.toml, ...)├── deck/- │ ├── 1_llm_deck.toml # LLM presets and aliases- │ ├── 2_img_gen_deck.toml # Image generation config- │ ├── 3_extract_deck.toml # Document extraction config- │ └── x_custom_llm_deck.toml # Custom waterfalls/overrides+ │ ├── 1_llm_deck.toml # LLM presets and aliases+ │ ├── 2_img_gen_deck.toml # Image generation config+ │ ├── 3_extract_deck.toml # Document extraction config+ │ ├── 4_search_deck.toml # Search config+ │ ├── x_custom_llm_deck.toml # Custom LLM configurations+ │ └── x_custom_extract_deck.toml # Custom extract configurations└── routing_profiles.toml # Model routing configuration```+To keep the configuration inside a project instead, run `pipelex init --local`: it creates the same structure in a `.pipelex/` directory at your project root, which takes precedence over the global `~/.pipelex/`.+Learn more in our [Inference Backend Configuration](../configuration/config-technical/inference-backend-config.md) guide.---diff --git a/docs/get-started/mthds-language-tutorial.md b/docs/get-started/mthds-language-tutorial.mdindex 8c3f48ab2..645b1c606 100644--- a/docs/get-started/mthds-language-tutorial.md+++ b/docs/get-started/mthds-language-tutorial.md@@ -163,7 +163,7 @@ pipelex run bundle using_inputs.mthds -i inputs.jsonKey concepts:- **`inputs = { topic = "Text" }`** — declares what the pipe expects as input-- **`$topic`** — references an input variable in the prompt (as opposed to `@variable` which references data from working memory)+- **`$topic`** — inserts the variable inline, right inside a sentence. The difference from `@variable` is rendering shape, not where the data comes from: `@variable` is the block form — it must sit alone on its own line and inserts the content as a tagged block (which is why `@story_idea` stood on its own line in Step 2) — while `$variable` is the inline form for weaving a value into surrounding text. Both resolve against the pipe's declared inputs- **`@@` and `$$`** — write a literal `@` or `$` without triggering interpolation. Use `@@font-face` or `@@media` inside `<style>` blocks, `$$10` for a literal dollar amount before a word, and so on. The escape is per-occurrence.- **`-i inputs.json`** — provides input data at runtimediff --git a/docs/index.md b/docs/index.mdindex b9ea0cf6b..d26781c77 100644--- a/docs/index.md+++ b/docs/index.md@@ -65,7 +65,7 @@ From here, Pipelex handles model routing across 60+ models, structured output pa- :material-pipe: **[Pipe Operators](./features/pipe-operators.md)**- Six operators that do the work: LLM calls, document extraction, image generation, web search, composition, and custom functions.+ Operators that do the work: LLM calls, text structuring, document extraction, image generation, web search, composition, and custom functions.- :material-sitemap: **[Pipeline Orchestration](./features/pipeline-orchestration.md)**diff --git a/docs/tools/cli/agent-cli.md b/docs/tools/cli/agent-cli.mdindex 6c07d427b..a46899884 100644--- a/docs/tools/cli/agent-cli.md+++ b/docs/tools/cli/agent-cli.md@@ -35,7 +35,7 @@ pipelex-agent run method <NAME> [OPTIONS]- `--inputs`, `-i` - Path to a JSON or TOML inputs file (discriminated by file extension: `.toml` → TOML, everything else → JSON). Inline JSON (a value starting with `{`) stays JSON-only.- `--dry-run` - Dry-run without calling AI providers-- `--mock-inputs` - Use mock inputs+- `--mock-inputs` - Use mock inputs (requires `--dry-run`)- `--graph` / `--no-graph` - Enable/disable execution graph (enabled by default)- `--library-dir`, `-L` - Additional library directory- `--with-memory` - Include full working memory in outputdiff --git a/docs/tools/logging.md b/docs/tools/logging.mdindex a3c58ee67..f1a7bdce6 100644--- a/docs/tools/logging.md+++ b/docs/tools/logging.md@@ -42,7 +42,7 @@ Built-in emoji indicators for different components:- 🌀 Google-related logs- ⚡️ Network connections- *️⃣ JSON processing-- 🧿 Sandbox operations+- 🧿 Poor-log channel (`#poor-log`, the simplified fallback logger)### 3. Caller Information@@ -68,7 +68,7 @@ Smart routing of log messages:- Automatic detection of log origin- Separate handlers for different logging needs-- Sandbox-aware logging behavior+- Configurable rich or poor log modes- Support for poor loggers (simplified logging)## Using the Logger@@ -96,7 +96,7 @@ log.warning("API rate limit approaching", problem_id="rate_limit_warning")log.error("Failed to process", include_exception=True)# Development logging-log.verbose("Testing new feature")+log.dev("Testing new feature")# Verbose logginglog.verbose("Detailed debug information")diff --git a/docs/tools/plxt.md b/docs/tools/plxt.mdindex 6d955b2c5..a7e27a58b 100644--- a/docs/tools/plxt.md+++ b/docs/tools/plxt.md@@ -60,7 +60,7 @@ The `[formatting]` section in `plxt.toml` controls the global formatting behavio| Option | Default | Description ||--------|---------|-------------|-| `align_entries` | `true` | Align consecutive `key = value` entries so `=` signs line up |+| `align_entries` | `false` | Align consecutive `key = value` entries so `=` signs line up || `align_comments` | `true` | Align end-of-line comments on consecutive lines || `array_trailing_comma` | `true` | Add a trailing comma after the last element in multiline arrays || `array_auto_expand` | `true` | Expand arrays to multiple lines when exceeding `column_width` |@@ -85,7 +85,6 @@ include = ["**/*.toml"]include = ["**/*.mthds", "**/*.plx"][rule.formatting]align_entries = true-array_auto_collapse = true# ... more MTHDS/PLX-specific overrides```diff --git a/pipelex/kit/agent_rules/codex_commands.md b/pipelex/kit/agent_rules/codex_commands.mdindex 9a54ae1fc..470bf9673 100644--- a/pipelex/kit/agent_rules/codex_commands.md+++ b/pipelex/kit/agent_rules/codex_commands.md@@ -7,7 +7,7 @@```bashmake agent-check# If the current system doesn't have the `make` command,- # lookup the "agent-check" target in the Makefile and run the commands one by one (targets fix-unused-imports format lint pyright mypy)+ # lookup the "agent-check" target in the Makefile and run the commands one by one (targets fix-unused-imports fix-keyword-only format generate-mthds-schema lint pyright mypy check-keyword-only)```This runs multiple code quality tools:diff --git a/pipelex/kit/agent_rules/commands.md b/pipelex/kit/agent_rules/commands.mdindex 09b899027..61de0f10e 100644--- a/pipelex/kit/agent_rules/commands.md+++ b/pipelex/kit/agent_rules/commands.md@@ -7,7 +7,7 @@```bashmake agent-check# If the current system doesn't have the `make` command,- # lookup the "agent-check" target in the Makefile and run the commands one by one (targets fix-unused-imports format lint pyright mypy)+ # lookup the "agent-check" target in the Makefile and run the commands one by one (targets fix-unused-imports fix-keyword-only format generate-mthds-schema lint pyright mypy check-keyword-only)```This runs multiple code quality tools:@@ -47,12 +47,12 @@```bashmake agent-test# If the current system doesn't have the `make` command, lookup the "agent-test" target in the Makefile and run the command manually.- # Zero output on success; full output on failure.+ # Heartbeat progress lines while running; full output only on failure.```## When `make agent-test` hangs or fails opaquely- Use **`make agent-test-debug`** (alias: `make atd`). Same suite, but with stale-process cleanup upfront, an outer wall-clock `timeout` so fixture-teardown hangs and xdist worker-replace loops can't run forever, direct file redirect for live progress (`tail -f /tmp/pytest-agent-test-debug.log`), and `-v` so each test name lands in the log as it runs. On failure or timeout it prints the failed tests, the log path, and a grep hint.+ Use **`make agent-test-debug`** (alias: `make atd`). Same suite, but with stale-process cleanup upfront, an outer wall-clock `timeout` so fixture-teardown hangs and xdist worker-replace loops can't run forever, direct file redirect for live progress (`tail -f /tmp/pytest-agent-test-debug.log`), and `-v` so each test name lands in the log as it runs. On failure it prints the failed tests, the log path, and a grep hint; on timeout, the tail of the log and the log path.For the full debugging methodology — clean-state protocol, when to bail to the user, how to grep failures by error class name, when xdist failures are flakes vs real bugs — see [`docs/agents/debugging-hanging-pytest-runs.md`](docs/agents/debugging-hanging-pytest-runs.md).@@ -76,7 +76,7 @@# ormake tp TEST=test_function_name```- Note: Matches names starting with the provided string.+ Note: Matches names containing the provided string (pytest `-k` substring matching).## Running Last Failed Tests