Skip to content

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/Wip-to-root · L-260928-8e2ecd (#1307)

Louis Choquel9efd0b3997f4
diff --git a/.claude/skills/drift-review/SKILL.md b/.claude/skills/drift-review/SKILL.md
index 9244f8526..14b110ede 100644
--- a/.claude/skills/drift-review/SKILL.md
+++ b/.claude/skills/drift-review/SKILL.md
@@ -6,15 +6,14 @@ description: >
agent-check` / `make check` aggregates, or the CI lint-drift job) fails with
open contracts, when the user
says "drift check failed", "resolve the drift contract", "ack the drift",
- "run drift plan", or after any change that touches drift trigger files (the
- config model / pipelex.toml, CLI code, the keyword-only guard). Also use when
- recording a drift dogfood observation. Performs the review for real, records
- an honest ack, and logs the dogfood observation the pilot phase depends on.
+ "run drift plan", or after any change that touches a file a contract in
+ drift.toml names as a trigger. Performs the review for real and records an
+ honest ack whose rationale opens with the review's verdict.
---
# Drift Review
-Resolve open drift contracts: review the declared targets against what actually changed, fix staleness, record the ack, log a dogfood observation. Full system reference: `docs/contribute/drift-contracts.md`. The manifest is `drift.toml` at the repo root.
+Resolve open drift contracts: review the declared targets against what actually changed, fix staleness, record the ack with its verdict. Full system reference: `docs/contribute/drift-contracts.md`. The manifest is `drift.toml` at the repo root.
A contract is "open" when tracked files matching its triggers changed (in the git index) since the last recorded review — or the contract definition itself changed, or it never had an ack. The tool proves *that* a review happened; this skill's job is to make the review *genuine*. There is deliberately no bypass anywhere in the system — the legitimate escape is an honest "nothing to update" rationale, which is cheap and auditable.
@@ -45,7 +44,7 @@ Work from the trigger diff to the review targets:
The digest is computed from the **git index**, not the working tree: `git add` the trigger files (and any doc fixes you made). Staging is enough — no commit needed first, and unrelated unstaged changes elsewhere are fine. Take `drift ack`'s warnings about untracked or unstaged-modified matched files seriously: an unstaged edit is invisible to the ack. For a contract with verify commands, a matched unstaged or untracked file is a hard error (the verify run would certify content the digest does not cover) — stage the files, then re-run.
```bash
-make drift-ack CONTRACT=<id> RATIONALE="<honest sentence>" BY="<your identity>"
+make drift-ack CONTRACT=<id> RATIONALE="<verdict>: <honest sentence>" BY="<your identity>"
```
As an agent, always pass `BY` with your **own actual identity** — the model you are actually running as, in the form `BY="Claude (<your model name>)"`. Do not copy a model name from an example or from a previous ack; the reviewer field is audit data and must name who really did the review. Never ack under the human's `git config user.name`. The contract's verify commands run first (no shell, fail-fast); a failure aborts the ack. Fix what the verifier caught — do not look for a bypass; none exists, by design.
@@ -54,31 +53,27 @@ As an agent, always pass `BY` with your **own actual identity** — the model yo
- Bad: `"docs fine"`, `"reviewed"`, `"re-ack after refactor"`
- Bad: `"the page's claim still matches the test's stated exception"` — that is two documents agreeing. Name what you re-derived from the code, so a weak method is visible at write time rather than in the next merge.
-- Good: `"Documented the new activity_queues setting in general-config.md; other config pages unaffected."`
-- Good: `"CLI change is internal plumbing (renamed a private helper); no user-visible surface moved; cli docs and agent-CLI contract doc verified unchanged."`
+- Good: `"real-catch: Documented the new activity_queues setting in general-config.md; other config pages unaffected."`
+- Good: `"clean-pass: CLI change is internal plumbing (renamed a private helper); no user-visible surface moved; cli docs and agent-CLI contract doc verified unchanged."`
### 4. Verify and commit
`make drift-check` must pass. `drift ack` stages the ack file it writes; commit the ack file(s) under `.drift/acks/` **together with the change they cover** — the rationale lands in the PR diff next to the change, which is the audit trail. Never hand-edit files under `.drift/acks/`.
-## Mandatory: log the dogfood observation
+## Mandatory: open the rationale with the verdict
-The drift system is in its pilot phase, and the one question only usage can answer is: **is the ack friction proportionate to the staleness caught?** Every ack must therefore produce one evidence entry — the per-contract keep/narrow/mechanize/drop verdict will be decided from this log.
+The one question only usage can answer about a contract is whether its ack friction is proportionate to the staleness it catches, so every rationale starts with one verdict, followed by a colon — `drift ack` refuses a rationale that does not:
-Append to `wip/drift-contracts/dogfood-log.md` (create it with this header if missing):
+- **real-catch** — the review found actual staleness, and this change fixes it;
+- **clean-pass** — genuinely reviewed, nothing was stale;
+- **friction** — the contract opened on changes that could not have affected its targets.
-```markdown
-# Drift-contracts dogfood log
+The ack file is committed with the change it covers, so `git log -p .drift/acks/` is the evidence from which a contract's keep, narrow, mechanize or drop decision is made. Write nothing anywhere else: there is no log file.
-One entry per ack. Verdicts: **real-catch** (the review found actual staleness), **clean-pass** (genuinely reviewed, nothing was stale), **friction** (the contract opened on changes that could not have affected the targets — candidate for narrowing or mechanizing).
-
-- **YYYY-MM-DD · <contract-id> · <verdict>** — one sentence: what triggered the contract, what the review found.
-```
-
-A `clean-pass` is a fine outcome; a *pattern* of clean-passes on the same contract is signal. When you record `friction`, also say which trigger narrowing would have prevented the false opening.
+A `clean-pass` is a fine outcome; a *pattern* of clean-passes on the same contract is signal. When the verdict is `friction`, say in the rationale which trigger narrowing would have prevented the opening, then file that narrowing in the workspace ledger, owned by `pipelex` (`ledger new --owner pipelex --type task --title "…" --gist "…"`), or note it on the open item that already proposes it. Where there is no ledger, put the proposal in your report to the user.
## Failure modes
- **`drift check` fails on manifest rot** (dead trigger glob, zero-match review target, orphan ack, id/filename mismatch): the manifest itself needs fixing — edit `drift.toml` first (typically a rename left a glob dead), then re-review and re-ack. Editing a contract reopens it; that is expected.
- **A verify command fails:** it caught something real — fix it; the ack stays blocked until the verifier passes.
-- **A contract keeps reopening on edits that cannot affect its targets:** keep recording `friction` entries and propose a trigger narrowing to the user. During the pilot, do not grow the manifest (no new contracts) without the user's explicit say-so — growth follows pain, not tooling enthusiasm.
+- **A contract keeps reopening on edits that cannot affect its targets:** keep recording `friction` in the rationale and file the trigger narrowing as above. Do not grow the manifest (no new contracts) without the user's explicit say-so — growth follows pain, not tooling enthusiasm.
diff --git a/.drift/acks/config-docs.toml b/.drift/acks/config-docs.toml
index d994c1c75..2d3da1921 100644
--- a/.drift/acks/config-docs.toml
+++ b/.drift/acks/config-docs.toml
@@ -1,8 +1,8 @@
contract = "config-docs"
-digest = "sha256:7884ebc7893389b5d54058576d36b731e56da1b3707986aac9b4000547cb040a"
-reviewed_by = "Louis Choquel"
-reviewed_at = "2026-09-29T11:07:53Z"
-rationale = "Widened the triggers to every config submodel that configs.py imports from its own package: network_config.py, new on this branch, plus storage_config.py, secrets_config.py, graph_config.py, mthds_config.py and methods_config.py, which were already missing. None of the five pre-existing files changes content here, so no doc is stale because of them. network_config.py still matches docs/configuration/config-technical/network-config.md: one bool, is_fetch_ssrf_guard_enabled, with its default in pipelex/pipelex.toml. No validator narrows a domain and no migration ledger entry is owed."
+digest = "sha256:05a48390a2fdf7bf2c9aad6905b900118d0b8f17b5d42fd2e534e1966fa89ba7"
+reviewed_by = "Claude (Opus 5.5)"
+reviewed_at = "2026-09-30T10:30:17Z"
+rationale = "clean-pass: the only trigger change is one docstring sentence in pipelex/tools/secrets/secrets_config.py that stops citing a private design label (S4) for the external-provider config passthrough; SecretsConfig's fields, types and defaults are unchanged, so the pages under docs/configuration/, configs.py, config_cogt.py and the migration ledgers need nothing."
[trigger_files]
"pipelex/cogt/config_cogt.py" = "blob:02f71cb4a6b01aebda59c2e31f262ef9c865e17b"
@@ -23,5 +23,5 @@ rationale = "Widened the triggers to every config submodel that configs.py impor
"pipelex/tools/aws/aws_config.py" = "blob:c1aeafeae08d3921464db33795f11a29ff3892ba"
"pipelex/tools/log/log_config.py" = "blob:5b98b3ebe7090fa306cd5253c96812605f0d3dbc"
"pipelex/tools/network/network_config.py" = "blob:e12d1d0e4a40d04859f10a77addeaf8fe2b00414"
-"pipelex/tools/secrets/secrets_config.py" = "blob:5f23e754ed4c5e76e62ea3a8f88fc885a4062551"
+"pipelex/tools/secrets/secrets_config.py" = "blob:cf30aaec1c76c9cabc0531a5b9fe681e153d7024"
"pipelex/tools/storage/storage_config.py" = "blob:3ba0fee5282937e2639d2707ee8ab61aad7bf206"
diff --git a/.gitattributes b/.gitattributes
index 35fe964cd..130f4af87 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -6,8 +6,8 @@
# `newline` argument, so on Windows Python translates every "\n" to CRLF and the whole set churns in version
# control with no change of content. The gates would not notice: they all compare with universal-newline
# reads, which fold CRLF back to LF before the comparison. This file closes that class for tracked files
-# regardless of which writer produced them; see wip/line-endings-writer-sweep.md for the writer-by-writer
-# half, which is the structural fix and is tracked separately.
+# regardless of which writer produced them; the writer-by-writer half, which is the structural fix, is
+# L-260930-c911e7.
#
# `text=auto` leaves git to detect text from binary, so images and other binaries are untouched. No tracked
# file contained CRLF when this landed, so it introduces no renormalisation diff — it pins the invariant.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 09fe1bc67..6e2eb20ef 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -550,7 +550,7 @@
### Added
-- **MTHDS Test Corpus:** Introduced a canonical, tagged set of `.mthds` methods at `pipelex/test_extras/mthds_corpus/`, replacing scattered per-repo fixtures with a single source of truth that ships in the wheel for synchronized cross-repo consumption. Each entry is a directory holding the method, an optional `inputs.json`, and an `entry.toml` declaring what it exercises — `covers`, `tier`, `granularity`, `validity`, and for a deliberately invalid entry the exact wire `error_type` it must produce. The cross-repo contract is the workspace spec `docs/specs/mthds-test-corpus.md`.
+- **MTHDS Test Corpus:** Introduced a canonical, tagged set of `.mthds` methods at `pipelex/test_extras/mthds_corpus/`, replacing scattered per-repo fixtures with a single source of truth that ships in the wheel for synchronized cross-repo consumption. Each entry is a directory holding the method, an optional `inputs.json`, and an `entry.toml` declaring what it exercises — `covers`, `tier`, `granularity`, `validity`, and for a deliberately invalid entry the exact wire `error_type` it must produce. The MTHDS test corpus page of the contributor docs states the cross-repo contract.
- **Corpus Loader API:** Added `iter_entries()` and `get_entry()` in `pipelex.test_extras.mthds_corpus.loader` to fetch fixtures programmatically by tag, execution tier, validity, and granularity instead of by file path.
- **Tag Vocabulary Generation:** Added the `pipelex-dev generate-corpus-vocabulary` CLI command and `Makefile` targets to generate the corpus tag vocabulary (`native.*`, `operator.*`, `controller.*`) directly from runtime registries (`NativeConceptCode`, `PipeType`). The two pipe namespaces come from one registry walk, split by `PipeType.category`, so a pipe kind added later lands in the right namespace with nothing to update. `PipeFunc` is the corpus's first recorded exclusion: it names a Python function the runtime resolves against its function registry at validation time, so no portable entry can declare one.
- **Feature Tag Axis:** Added a hand-maintained `feature.*` tag namespace for language features spanning multiple blueprint fields or lacking a registry (e.g. `feature.multi_file_library`, `feature.optionals`, `feature.smart_inputs`, `feature.structured_output`). Each feature tag is declared in the same change that lands its first covering entry, so the vocabulary never advertises coverage the corpus does not have.
@@ -1146,7 +1146,7 @@
- **Structured validation errors:** Bundle validation failures now emit categorized `validation_errors[]` items with identity locators, so machine consumers can read `error_type` and locators instead of parsing text. Categories: unresolved concept reference (`pipe_validation`/`unresolved_concept` with `pipe_code`, `concept_code`, `field_name`; or `blueprint_validation`/`unresolved_concept` with owning `concept_code`), undefined pipe dependency (`pipe_validation`/`unresolved_pipe_dependency` with `pipe_code` and the new `missing_pipe_code` locator), and unknown pipe type (`blueprint_validation`/`unknown_pipe_type` with `pipe_code`).
- **New error locators and types:** Added the `missing_pipe_code` locator field and the `PipeValidationErrorType` values `unresolved_concept`, `unresolved_pipe_dependency`, and `unknown_pipe_type`.
- **String utilities:** Added `pluralize` and `count_with_noun` to `pipelex.tools.misc.string_utils` for correct CLI output grammar (e.g. "1 pipe" instead of "1 pipe(s)").
-- **Documentation:** Documented the 0/1/2 exit-code policy in `docs/under-the-hood/error-model.md` and added `wip/structured-validation-errors-deferred-findings.md` tracking deferred follow-ups.
+- **Documentation:** Documented the 0/1/2 exit-code policy in `docs/under-the-hood/error-model.md`.
### Changed
@@ -1475,7 +1475,7 @@ This release hardens Pipelex at its edges. The headliners: a full **error-handli
### Added
-- **`@@` and `$$` template escapes.** Authors can opt out of sigil interpolation per occurrence: `@@var` renders as the literal string `@var` (no `{{ ... }}`), and `$$var` renders as the literal `$var`. The escapes are non-overlapping left-to-right (`@@@@var` → `@@var`, two literal `@`s). Use these for any literal `@`/`$` the author needs to keep in the rendered output — most commonly `@@font-face`, `@@namespace`, `@@media` inside CSS `<style>` blocks, or `$$10` for a literal dollar amount. Cross-link: `wip/template-preprocessor-line-bounded-at.md`.
+- **`@@` and `$$` template escapes.** Authors can opt out of sigil interpolation per occurrence: `@@var` renders as the literal string `@var` (no `{{ ... }}`), and `$$var` renders as the literal `$var`. The escapes are non-overlapping left-to-right (`@@@@var` → `@@var`, two literal `@`s). Use these for any literal `@`/`$` the author needs to keep in the rendered output — most commonly `@@font-face`, `@@namespace`, `@@media` inside CSS `<style>` blocks, or `$$10` for a literal dollar amount.
- **`TemplateSigilSyntaxError`** (`pipelex/cogt/templating/template_errors.py`): raised by the preprocessor when a candidate `@`/`@?` sigil is not alone on its line. Pipe blueprints (`PipeLLMBlueprint`, `PipeComposeBlueprint`, `PipeImgGenBlueprint`, `PipeSearchBlueprint`, `TemplateBlueprint`, `ConstructBlueprint`, `pipe_compose_factory`) and the `TemplateBlueprint` validator catch and re-raise as pydantic `ValueError` with pipe-specific context, so the diagnostic surfaces through normal MTHDS validation errors and IDE/`plxt check` diagnostics.
### Fixed
diff --git a/CLAUDE.md b/CLAUDE.md
index 5400ba8cd..98a993e72 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -6,7 +6,7 @@
- **`make agent-check` after every code change, and fix everything it reports.** Its prerequisites are `fix-unused-imports fix-keyword-only format lint pyright mypy check-ledger check-keyword-only check-hub-layering check-rich-imports drift-check`: the import and keyword-only fixers, ruff, pyright, mypy, `plxt` over TOML/MTHDS/PLX, the migration-ledger replay (`cl`), the hub-layering check, the Rich import check (`cri`: Rich is the `cli` extra, so no module outside `pipelex/cli/` imports it at module level or reaches it through a CLI module) and the drift contracts. The drift digest reads the git index, so stage your changes before the check.
- **Keyword-only arguments** (the convention is in the standards and in `docs/contribute/keyword-only-arguments.md`): `make check-keyword-only` (`cko`) is the gate, `make fix-keyword-only` (`fko`) inserts the bare `*` where it can — on ungranted subjects too — and reports the shapes it cannot fix, and `make subject-grant FUNC="<path>::<qualname>" RATIONALE="…"` (`sgr`) grants a positional subject. Grant before `make agent-check`, which runs the fixer.
-- **Drift contracts.** When `make drift-check` reports an open contract: `make drift-plan`, review and fix the stale targets, `git add` the trigger files, then `make drift-ack CONTRACT=<id> RATIONALE="…"`. No bypass flag; "reviewed, no doc change needed" is a legitimate rationale. See `docs/contribute/drift-contracts.md`.
+- **Drift contracts.** When `make drift-check` reports an open contract: `make drift-plan`, review and fix the stale targets, `git add` the trigger files, then `make drift-ack CONTRACT=<id> RATIONALE="<verdict>: …"`, the rationale opening with its verdict, `real-catch`, `clean-pass` or `friction`. No bypass flag; "clean-pass: reviewed, no doc change needed" is a legitimate rationale. See `docs/contribute/drift-contracts.md` and the `/drift-review` skill.
- **`make agent-test` at the end of every coding session.** Heartbeat lines while running, full output only on failure. If it hangs or fails opaquely, `make agent-test-debug` (`atd`) adds stale-process cleanup, an outer timeout and a live log; the methodology is `docs/agents/debugging-hanging-pytest-runs.md`. At intermediate steps in a local setup, running only the relevant tests is fine: `.venv/bin/pytest -x -q tests/unit/path/to/test_module.py`, or `make t TEST=<name>` (pytest `-k` substring matching; `TEST=LF` reruns the last failures). `make tp` / `make test-with-prints` are for a human at a terminal; an agent in the cloud or in a sandbox uses `make agent-test` only.
- **`make test-ts-gates` (`ttg`) after touching anything under `pipelex/codegen/emitters/`, or moving the pinned prettier version.** `make agent-test` does not cover the TypeScript emission: the two gates that read the emitted TypeScript as TypeScript need a node toolchain and skip silently without one. This target provisions a pinned prettier and zod into `.ts-toolchain/` (npm, node >= 22.6) and makes those gates fail instead of skip, as CI does. See `docs/contribute/typescript-emission-gates.md`.
- **`make cleanderived`** when linters or pytest collection get confused after files were erased or moved.
diff --git a/Makefile b/Makefile
index 4fa6602a3..56d22758c 100644
--- a/Makefile
+++ b/Makefile
@@ -421,7 +421,7 @@ dc: drift-check
drift-ack: env
$(call PRINT_TITLE,"Recording drift ack")
@if [ -z "$(CONTRACT)" ] || [ -z "$(RATIONALE)" ]; then \
- echo 'Usage: make drift-ack CONTRACT=<contract-id> RATIONALE="…" [BY=<reviewer>]'; \
+ echo 'Usage: make drift-ack CONTRACT=<contract-id> RATIONALE="<real-catch|clean-pass|friction>: …" [BY=<reviewer>]'; \
exit 1; \
fi
$(VENV_PIPELEX_DEV) drift ack "$(CONTRACT)" --rationale "$(RATIONALE)" $(if $(BY),--by "$(BY)")
diff --git a/TODOS.md b/TODOS.md
deleted file mode 100644
index 948a88c19..000000000
--- a/TODOS.md
+++ /dev/null
@@ -1,98 +0,0 @@
-# Vacuous presence lint — implementation tracker
-
-**Design:** [`wip/full-optional/design.md`](wip/full-optional/design.md) — read it first; this tracker assumes its decisions (entry-pipe scope, descriptor substrate, one composition point, the `input_presence_vacuous` wire name, the hint-lint cap riding along) and does not restate the rationale. Its §9 holds the three decisions, ratified as designed.
-
-## Live state — rewrite this block, never append to it
-
-Record only what the tools cannot re-derive: the SHA a step landed in, a decision and its reason, the exact error a gate printed. Never branch, PR or working-tree status.
-
-- **All phases are closed.** The lint, its composition point, every advisory-bearing channel, the docs and the changelog landed on `feature/Full-optional`; `wip/full-optional/design.md`'s status line names the SHAs. What outlives this tracker is the follow-up: design §8's cross-repo items and the entries in `wip/full-optional/deferred.md`.
-- **What the `validate all` test found (step 2.1's open question):** `_blueprints` IS populated on the `acquire_library` path, so the accessor works and no fallback was needed. `LibraryManager.get_accumulated_blueprints` returns them, `collect_current_library_entry_pipe_refs()` qualifies each bundle's `main_pipe`, and `test_agent_cli_validate_all_warns_on_the_main_pipe` proves it end to end. The transported-crate path (a direct `load_from_crate`, used by the Temporal workflow) accumulates none, which yields the same silence as a batch with no `main_pipe` — stated in the accessor's docstring.
-- **Decisions taken since the design:** §9's three ratified as designed. Beyond them: (a) `build_input_form` gained an optional `qualified_crate` param and `qualify_current_library_crate()` was extracted beside it, so the crate is qualified ONCE per validate instead of twice — the design called this opportunistic and it fell out cleanly, closing that engine-hints deferral; (b) `build_current_library_hint_warnings()` was DELETED rather than kept, since the composition point supersedes it and nothing else called it; (c) the builder's `validate_all` is the one channel left out, recorded with its structural cause in `wip/full-optional/deferred.md`.
-- **Two bugs this lint exposed rather than introduced**, both fixed here under the flag-and-fix rule: `_blueprint_node_for_chain` decided a concept was structured by testing the merged structure table for truthiness while `ConceptFactory` branches on `is not None` (`24520d69f`), and both advisory lints truncated a dotted domain at its first `.` when building the warning locator (`51e0f9d9f`).
-- **Gates:** `make agent-check` and the full `make agent-test` were run green on every pushed SHA of this branch. No local storage override was in place, so the boot tests ran normally throughout.
-- **Decision on the §8 inbox items:** they were written into the workspace-root `wip/inbox/` (`2026-08-25-workspace-input-presence-vacuous-spec-and-conformance.md`, `2026-08-25-pipelex-js-input-presence-vacuous-enum-member.md`, `2026-08-25-pipelex-starter-js-point-shape-to-avoid-at-the-lint.md`) with the frontmatter and `repo/path` evidence the queue contract asks for, and deliberately NOT committed there — that repo carried a large set of staged deletions from an earlier triage that is not this session's to sweep up, and a commit would have dragged them in.
-
-## Standing rules
-
-- **Branch:** `feature/Full-optional` off `dev` — it already carried the design commit when implementation started, so the plan's `feature/Full-optional-lint` was never cut. The PR targets `dev`. The prefix vocabulary is closed and spelled out (`feature/`, never `feat/`).
-- **Tests before code** (red → green) for every rule in the design's decision table; mutation-test a green test by breaking the predicate it guards and watching it go red.
-- **Gates before any push:** `make agent-check` and the full `make agent-test` (never `make test`). If the local `.pipelex/pipelex_override.toml` storage override is still in place, the boot tests it reds are pre-existing — move it aside for the full run.
-- **Docs in the same change**, changelog under `## [Unreleased]` only, no counts, no mention of `wip/` docs in the changelog.
-- **Cross-repo work goes to `../wip/inbox/`** (design §8) at close — never widen this diff into another repo.
-- **Update this tracker as work happens:** tick a box the moment its step is done, append a dated line to the progress log after every commit, gate run, decision and surprise, and rewrite the live-state block the moment it stops being true.
-
-## Phase 1 — the lint itself
-
-Pure, unit-tested, not yet wired anywhere.
-
-- [x] 1.1 Add `PipeValidationErrorType.INPUT_PRESENCE_VACUOUS = "input_presence_vacuous"` with its advisory-only comment beside `OPTIONAL_FORCE_REDUNDANT`; extend the enum's exhaustive `match` properties (`is_controller_input_drift`, `is_inadequate_output`) so pyright stays green; confirm `tests/unit/pipelex/errors/test_validation_error_types.py` picks the member up unchanged.
-- [x] 1.2 Write the unit decision table first, red: `tests/unit/pipelex/pipeline/test_vacuous_presence_warnings.py` over hand-built `PipeInputFormDescriptor`s — one case per row of design §3 (all-optional object warns; one required field is silent; field-less object warns with the variant wording; `?` is silent; variable list silent; fixed-count list silent; every scalar/file kind silent; `unknown` silent), plus: a non-entry pipe with the warning shape is silent, `!` warns and names the marker, output order is by entry pipe ref then authored slot order, and the item shape (category `pipe_validation`, bare `pipe_code`, `domain_code`, `variable_names`, no `concept_code`).
-- [x] 1.3 Implement `pipelex/pipeline/vacuous_presence_warnings.py`: `build_vacuous_presence_warnings(*, input_form, entry_pipe_refs) -> list[ValidationErrorItem]`, the two message variants of design §D7, module docstring stating the rule and the one-level depth.
-- [x] 1.4 Green; mutation-test at least the `gating` read (flip to `required`: the variable-list case must go red) and the `required` scan (drop the empty-fields branch: the field-less case must go red).
-
-## Phase 2 — composition point, entry pipes, every channel
-
-- [x] 2.1 Add the accumulated-blueprints accessor to `LibraryManagerAbstract` / `LibraryManager` (design §D2). Write the `validate all` test first: a library dir holding a bundle with a `main_pipe` whose gating input is all-optional must produce the warning on the `validate all` envelope — this is the test that proves `_blueprints` is populated on the `acquire_library` path; if it is not, record what you found in the live-state block and decide between populating it and deriving entry refs another way before going on.
-- [x] 2.2 Add `pipelex/pipeline/advisory_warnings.py` (design §D6): `build_advisory_warnings(*, taint_analyses, input_form, entry_pipe_refs, qualified_crate)` pure, and `collect_advisory_warnings(*, pipes, entry_pipe_refs)` gathering the ingredients inside the window (taint walk, descriptor, the current library's crate qualified once). A helper that qualifies every bundle's `main_pipe` with `PipeFactory.make_pipe_ref_with_domain` — the spelling `select_primary_blueprint` uses — lives beside it or in `blueprint_selection.py`.
-- [x] 2.3 Hint-lint prerequisite (design §D6): in `hint_warnings.py`, elide interpolated authored tokens beyond a fixed length and cap findings per site with an "and N more" tail; unit-test both in `test_hint_warnings.py`. Extend the existing cap-free tests only where the cap changes their expectation.
-- [x] 2.4 Switch every site to the composition point: `validate_in_process.py` (pure builder, with the `input_form` and taint analyses it already computes and the entry refs from `result.blueprints`); every site in `cli/agent_cli/commands/validate/_validate_core.py` and in `builder/operations/validate_ops.py`; the bare CLI's `_echo_optionality_warnings` becomes `_echo_advisory_warnings`. Remove the direct `build_optionality_warnings` imports at those sites; fix the docstrings in `validation_report.py` and `base_exceptions.py` that name it as the warnings source.
-- [x] 2.5 Integration tests, protocol path (`tests/integration/pipelex/pipeline/test_protocol_validate.py` or a sibling module): entry pipe with a plain all-optional input warns and the report stays valid and runnable; the same input shape on a non-main pipe of the same bundle is silent; a class-backed concept whose pydantic fields all carry defaults warns; a batch with no `main_pipe` is silent; `?` on the same slot is silent; the hint lint still rides beside it.
-- [x] 2.6 Agent-CLI envelope test for `validate bundle` (the warning rides `warnings`, `is_valid` stays true, exit code unchanged) and the markdown rendering shows it under "Warnings"; builder `validate_bundle_content` twin.
-- [x] 2.7 Verify the three presentation surfaces the engine-hints deferral asked to check now that hint lints reach them: agent-CLI JSON and markdown, bare-CLI yellow echo, builder-ops JSON — one fixture with all three families firing at once, asserting family order and item shape.
-
-**CHECKPOINT 1 — after Phase 2.** ✅ Reached. The live-state block above records what the `validate all` test found, the three deviations from the design, and where the gate results live.
-
-## Phase 3 — vocabulary, docs, changelog
-
-- [x] 3.1 `generate_corpus_vocabulary_cmd.py`: add the advisory exclusion for `input_presence_vacuous` (same reason as `optional_force_redundant`); run `make generate-corpus-vocabulary`; confirm the corpus exhaustivity and linter-exclusion gates stay green.
-- [x] 3.2 `docs/building-methods/pipes/understanding-optionality.md`: the `warnings` bullet becomes a short list of the advisory lints (useless `!`, vacuous presence, the intent-hint trio), each with its wire name and one sentence.
-- [x] 3.3 `docs/building-methods/concepts/inline-structures.md`: a note that `required` defaults to `false` in the long form, that the shorthand string field is required, and that an all-optional structure named by a gating method input triggers `input_presence_vacuous` — with the two remedies.
-- [x] 3.4 `docs/under-the-hood/input-form-descriptor.md` § "Required, presence and gating": state that the lint is defined on `gating` and why.
-- [x] 3.5 `docs/tools/cli/agent-cli.md` advisory note: list the three families; delete the sentence saying the hint lints are not wired into the CLI array; keep the single-pipe exclusion.
-- [x] 3.6 `docs/under-the-hood/error-model.md` and `docs/contribute/mthds-test-corpus.md`: the advisory-only registry members are now several; reword the "one has no shape" passages accordingly.
-- [x] 3.7 `CHANGELOG.md` `[Unreleased]`: one **Added** entry for the lint (bold label, a few sentences: what fires, where, the two remedies, entry-pipe scope) and one **Changed** entry for the composition point (every whole-bundle validate channel now carries the same advisory families, the hint lints included, with the message cap). No counts.
-- [x] 3.8 If `docs/specs/` links or a drift contract fire on any touched file, resolve through `make drift-plan` / `make drift-ack` with an honest rationale.
-
-## Phase 4 — gates, PR, follow-ups
-
-- [x] 4.1 `make agent-check` green.
-- [x] 4.2 Full `make agent-test` green (override moved aside if needed); record the run in the progress log.
-- [x] 4.3 Commit and open the PR against `dev`; wait for Greptile and Codex by SHA (`gh pr view --json reviews,comments`), triage with `/review-pr-agents`, reply and resolve threads in the same pass.
-- [x] 4.4 File the inbox items of design §8: `workspace` (protocol spec section + conformance rows and tests), `pipelex-js` (`categorize.ts` member), `pipelex-starter-js` (docs pointer). Each with `repo/path:line` evidence.
-- [x] 4.5 Add a dated status line to `wip/full-optional/design.md` naming the merge SHA, and rewrite the live-state block here for the last time. Do not delete or archive this tracker — that is a separate decision after review.
-
-**CHECKPOINT 2 — after Phase 4.** The work is done when the PR is merged and the inbox items are filed; the release that carries the lint is what unblocks the conformance and corpus-consumer halves, and that version goes in the live-state block when it is cut.
-
-## Progress log
-
-- 2026-08-25 — Design written to `wip/full-optional/design.md` from the inbox request; the three amendments (entry-pipe scope, descriptor substrate, one composition point) recorded as decisions to ratify. No code yet.
-- 2026-08-25 — Phase 1 done. The enum member landed with its advisory comment and all five exhaustive `match` properties extended (the tracker named two; there are five). `build_vacuous_presence_warnings` is pure over `PipeInputFormDescriptor`s and never touches the crate.
-- 2026-08-25 — **Surprise, and a correction to step 1.4's stated expectation.** Flipping the `gating` read to `required` did NOT redden the variable-list case: a `Concept[]` slot is a `list` node, so the `kind != OBJECT` check excludes it before `gating` is ever consulted — and on an object node the deriver computes `gating = required and not (is_list and no item_count)`, which for a non-list kind is exactly `required`. The two reads are therefore indistinguishable on every descriptor the deriver builds today. Added `test_a_non_gating_object_slot_is_silent_even_when_required`, a hand-built object slot with `required=True, gating=False`, which is the only shape that can tell the reads apart; the mutation now reddens it. The `required`-scan mutation (refusing the empty-`fields` case) reddens the field-less test as the tracker predicted.
-- 2026-08-25 — Phase 2 done, CHECKPOINT 1 reached. `advisory_warnings.py` composes the three families in one fixed order (optionality, presence vacuity, hints); `collect_entry_pipe_refs` lives in `blueprint_selection.py` beside the one-main-pipe rule it deliberately differs from. Every warning-assembling site switched — `validate_in_process`, the agent CLI's, the builder's, and the bare CLI's echo (now `_echo_advisory_warnings`). The hint lint gained its payload bounds (`MAX_HINT_FINDINGS_PER_SITE`, `MAX_AUTHORED_TOKEN_LENGTH`), which was D6's stated prerequisite for letting it reach a channel an author invokes casually.
-- 2026-08-25 — **Scope call.** The builder's `validate_all` was left without a `warnings` key. It never had one, and it cannot grow one at the call site: it delegates to `acquire_and_validate`, which tears its library down before returning, so there is no open window left to collect in. Fixing it means reshaping a method several callers share — outside a lint's blast radius. Written up with its remedy in `wip/full-optional/deferred.md`; the same conclusion was already reached in `wip/pr-1026-review-notes.md`.
-- 2026-08-25 — Phase 3 done. Corpus vocabulary regenerated with the advisory exclusion (one added `[error.input_presence_vacuous]` block, nothing reshuffled). Docs updated across the six targets, plus two fixes to things the change made visible: the bare CLI's `docs/tools/cli/validate.md` had never documented its yellow advisory echo at all, and `docs/under-the-hood/error-model.md` plus the `validation_error_types` module docstring still said the registry was a union of THREE enums — stale since `HintLintErrorType` landed.
-- 2026-08-25 — Two gate surprises, both resolved. (1) `make agent-check` ran `fix-keyword-only`, which keyword-only'd `elide_authored_token`'s subject as CLAUDE.md warns it will; taken as-is and the three call sites made keyword, rather than recording a grant. (2) The full `make agent-test` reddened `test_runner_validate_plumbing.py` — it mocks the window-dependent artifact builders by name at the `validate_in_process` namespace so the body runs with no real library, and the new `qualify_current_library_crate` / `build_advisory_warnings` were not in that list. Worth knowing: the OLD hint-lint wrapper was lenient about a missing current library and the new helper is strict, which is what turned an unmocked name into a raise.
-- 2026-08-25 — Both gates green on the full tree: `make agent-check` clean, `make agent-test` all passed.
-- 2026-08-25 — PR #1152 opened against `dev`; all CI checks green. Round one of review triage: Codex raised two P2s, verified empirically by a read-only subagent before either was acted on.
-- 2026-08-25 — **A pre-existing descriptor bug the lint made visible, fixed in `24520d69f`.** Codex was right that the field-less message variant was unreachable, and the cause was worse than reported: `_blueprint_node_for_chain` decided a concept was structured by testing the merged structure table for *truthiness*, while the engine's own `ConceptFactory` branches on `structure is not None`. An authored-but-empty `[concept.X.structure]` — legal MTHDS, backed at run time by a field-less structured model with an empty object schema — therefore fell through to the prose branch, and the descriptor claimed `kind: "prose"` with a `refines` link to `native.Text` nobody authored, contradicting the schema beside it. `_merged_structure` now answers `None` versus `{}`. Both new tests were mutation-checked by restoring the truthiness test and watching them redden.
-- 2026-08-25 — **Codex's second finding declined.** Adding an abstract `get_accumulated_blueprints` does break any external `LibraryManagerAbstract` implementation, but none exists in or outside this repo, `docs/specs/pipelex-transport-boundary.md` forbids consumers reaching library-manager internals, and the suggested `return []` default would silently report zero entry pipes rather than fail loudly. Recorded as breaking in the changelog instead, matching how `build_validation_report`'s required-argument change was handled.
-- 2026-08-25 — Round two: cubic raised ten threads. Seven were acted on in `51e0f9d9f`, two declined with reasons on the thread, one taken half-way. The one that mattered: **a domain is a dotted path** (`is_domain_code_valid` accepts `legal.contracts`), so `pipe_ref.partition(".")` was truncating the warning locator's `domain_code`. Both advisory lints now split through `QualifiedRef.parse` — the optionality lint carried the same bug before this branch and was fixed alongside, per the repo's flag-and-fix-existing-bugs rule.
-- 2026-08-25 — **The 'every channel agrees' claim was overstated and is now narrowed rather than widened.** Two surfaces carry no advisories: the builder's `validate_all` (structural, already deferred) and the bare CLI's single-pipe `validate <PIPE_CODE>`, which makes no bundle-wide claim and which neither lint has anything to say about. The changelog, the CLI reference, the optionality guide and the channel test's docstring now all say so. Declined: dropping the hint-lint assertions from the agent-CLI test (that contract change is the point of this PR) and genericizing the design's §8 cross-repo paths (a follow-up item has to name repo/path to be actionable).
-- 2026-08-25 — A real test leak cubic caught: two channels the advisory test calls directly (`validate_bundle` and `do_validate_all_libraries_and_dry_run`) leave a library current for a caller that does not run under pytest. An autouse fixture now tears down whatever was left and restores the outer binding.
-- 2026-08-25 — All twelve review threads replied to and resolved in the same pass; the three bots re-pinged with their exact trigger phrases.
-- 2026-08-25 — Round three. Greptile came back 5/5 with no blocking failures, and CI went fully green. Codex raised one further P2 and cubic seven more (one P2, six P3).
-- 2026-08-25 — **The empty-structure fix had a twin one layer down, and Codex found it.** `reflect_structure_class` answers `None` for two different situations — a registered class declaring no field, and a field whose annotation it could not map — and `_class_backed_node` treated both as opaque, so a class-backed concept demanding nothing came back `kind: "unknown"` and the object-only guard silenced the lint. The deriver now separates them: zero fields is a reading, not a failure to read. The shared helper keeps its `None` because its other consumer, the native consistency probe, reads that as "structureless by design" — changing it there reddened `Dynamic` and `Composite`, which is how that distinction was found. Declined the other half of the finding: a model whose fields could not be read cannot honestly be told it "declares no required field".
-- 2026-08-25 — cubic's enum-convention point taken: the lint reads `FieldKind.is_object` (a new property mirroring the `is_list` beside it) and the `PresenceMarker.is_force` that already existed, rather than comparing members. Its P2 about `load_empty_library` accumulating one library per call was verified and **declined for this PR** — the fixture is class-scoped and shared by most of the suite, several modules calling it a dozen-plus times, so this is a conftest-level decision rather than a lint's; written up in `deferred.md`.
-- 2026-08-25 — Remaining cubic P3s all applied: the error-model page no longer says the registry is the enums the runtime *raises* (advisory members are never raised) nor that the corpus `error.*` namespace is still to come, and the design doc's status and channel-contract sentences match what actually landed.
-- 2026-08-25 — Round three landed in `f536e7c9e` (the deriver fix and the enum-convention reads) and `a10765d35` (the error-model, design and deferred-doc wording), with `make agent-check` and the full `make agent-test` green on that tree. All eight threads replied to and resolved in the same pass, and the three bots re-pinged.
-- 2026-08-25 — Round four. CI fully green on `a10765d35` and Greptile at six reviews with nothing blocking; cubic raised five more. Three taken: the hardcoded site count in this log dropped rather than corrected (the workspace rule is no counts at all), the design's §9 heading no longer presents settled decisions as pending, and — the one that was a real inaccuracy — `deferred.md` claimed the vacuous lint never comments on a library you merely depend on, which holds on the bundle channels but NOT on `validate all`, where `collect_current_library_entry_pipe_refs()` reads the same accumulated blueprints the hint lint does.
-- 2026-08-25 — **Two round-four P2s declined, both about the integration module's library lifecycle.** One repeats the `load_empty_library` accumulation already deferred. The other asks `_warnings` to restore the outer current-library binding instead of clearing it; verified false — `load_empty_library` captures `prev_library_id` before the class's FIRST `_load` (the `if library_id is None` guard) and restores it at class teardown, so the outer binding survives every intervening clear. What the `finally` clears is the library `validate_bundle` leaves open on success, which is exactly the binding that should not escape the test.
-- 2026-08-25 — Round five, all three taken and all documentation. The design's D2 said "the bare CLI" holds `ValidateBundleResult.blueprints`, which is true of its `validate bundle` and false of its `validate all` — the same distinction round four corrected in `deferred.md`, missed one doc over. The other two were this tracker contradicting its own storage rule: the live-state block recorded PR and branch status, and the header still called §9 pending. The branch deviation moved into the standing rule that named the wrong branch, which is where it belongs.
-- 2026-08-25 — Round six. Codex raised one P2 and it was **declined**: a `@model_validator` can reject the `{}` the descriptor calls satisfiable, which is true, but both offered remedies cost more than the symptom (dropping class-backed coverage, or running author validator code from inside a lint) and the blind spot belongs to `InputFormDeriver.is_required()`, which the form is rendered from — so the lint is reporting what the form will actually do. Recorded in `deferred.md` with the shape a real fix would take.
-- 2026-08-25 — Round seven, and the one real code finding since the descriptor fixes. **Codex caught an ordering bug this PR introduced the conditions for:** the bare CLI's `validate bundle` echoed its advisories AFTER the strict pending-signature gate raised `typer.Exit(1)`, so a bundle with any unimplemented placeholder printed none of them — while its `validate --all` twin, three functions up, deliberately echoes before its equivalent gate and says so in a comment. Moved, with a regression test that was mutation-checked by putting the call back. Note for anyone writing a similar test: `typer.Exit` is `click.exceptions.Exit`, NOT a `SystemExit`, so `pytest.raises(SystemExit)` never fires.
-- 2026-08-25 — cubic's channel over-claim was found for the third time in a third document, so it was swept rather than patched again: `hint_warnings.py` (twice), `pipelex/cli/agent_cli/CLAUDE.md` and `deferred.md` now all say "advisory-bearing" and name the two surfaces that carry none. The live-state block was trimmed once more to obey its own rule — the review-loop narrative moved to this log, and the inbox bullet reads as the decision it is rather than as another repo's working-tree state.
-- 2026-08-25 — Round eight, four cubic findings and all four valid. The one with teeth: **the "single-pipe surfaces carry none" wording was itself an over-claim**, the mirror image of the one round seven swept. `validate_pipe_in_bundle_core` — the `--pipe` slice of `validate bundle` / `validate method` — DOES carry the warnings, because it validates the whole bundle and narrows only the dry run; only bare `validate pipe <code>` omits them. Corrected at the three sites claiming otherwise plus the user-facing `agent-cli.md`. Also added the `validate --all` twin of the round-seven ordering test (mutation-checked the same way: moving that echo behind its gate reddens it), and made `deferred.md` say leaked manager state rather than "memory, not state any assertion can see" — the discarded ids do sit in the manager's bookkeeping until the class ends, even though nothing live is touched. The live-state block lost its "where the work stands" bullet, which restated the checkboxes above it and the bot-review loop below it.
-- 2026-08-25 — Round nine, two Codex findings, both valid and both taken minimally. **A shipped message was literally false:** the field-less variant said "only an empty object fits it", but `StructuredContent` inherits pydantic's default `extra="ignore"`, so `model_validate({'anything': 1})` succeeds and dumps to `{}` — verified in the venv before touching anything. Reworded to "any object satisfies it and none of it is read", which is both true and more useful. Only that branch was touched: the sibling "an empty object satisfies it" is not an exclusivity claim and is true, so the ~8 docs carrying it were left alone. The **one-TestClass-per-module rule** (AGENTS.md) was the other: `test_hint_warnings.py` already held three classes on `dev` and this branch made it four. Codex asked for a new module, which would duplicate the `_lint`/`_crate` helpers AND leave three classes behind — so the payload-bounds tests were merged into `TestHintLintFindings` instead, restoring the module to the count it had on `dev`. Splitting the pre-existing three is a separate refactor, not this PR's.
-- 2026-08-25 — Round ten. One of four taken: the two pending-signature tests raised on any `typer.Exit`, including code 0, while their whole point is the gate that exits **non-zero** — both now assert `exit_code == 1` (mutation-checked against 0). The other three declined and worth recording as a pattern: two were third-round wordsmithing of this tracker's own prose (a standing rule naming the branch, and step 4.3 unticked while the review loop it describes is still running — it is unticked because it is not finished), and one was the **third** pass over the same `deferred.md` paragraph, now asking for speculative effects ("can affect", "not necessarily invisible") on top of the rewording the previous round already made. A deferral note that is accurate does not get more accurate by accumulating hedges.
-- 2026-08-25 — Round eleven, and it corrected the previous round's own fix. Codex pointed out that "any object satisfies it and none of it is read" is only true under pydantic's DEFAULT `extra`: a structure class setting `extra="forbid"` rejects `{"x": 1}`, one setting `extra="allow"` retains and exposes it — both verified in the venv. The descriptor records `fields` only and never the model's extra policy, so the lint cannot speak to it at all. Both drafts had claimed more than the descriptor knows; the message now says "an empty object satisfies it", which is the strongest universally true claim and is the same clause the all-optional variant already used (the two variants are distinguished by their first half). The lesson worth keeping: when a message describes a model the lint only sees through a projection, the safe statement is the one the projection actually supports.
diff --git a/docs/contribute/drift-contracts.md b/docs/contribute/drift-contracts.md
index a814aa6da..62c076c45 100644
--- a/docs/contribute/drift-contracts.md
+++ b/docs/contribute/drift-contracts.md
@@ -22,7 +22,7 @@ Three pieces:
- **`drift.toml`** (repo root, human-authored) declares the contracts: `triggers` (globs over tracked files), optional `exclude`, `review` targets, and optional `verify_commands`.
- **`.drift/acks/<contract-id>.toml`** (tool-written, committed) records the last fulfilled review: a content digest, the reviewer, a timestamp, a rationale, and the per-file trigger snapshot.
-- **`pipelex-dev drift plan|check|ack`** computes obligations, checks them, and records acks. Make wrappers: `make drift-plan`, `make drift-check` (in the `make agent-check` and `make check` aggregates; in CI it currently runs as an **advisory** job that is visible on the PR but does not block merges — it will be promoted to a required check), `make drift-ack CONTRACT=… RATIONALE="…"`.
+- **`pipelex-dev drift plan|check|ack`** computes obligations, checks them, and records acks. Make wrappers: `make drift-plan`, `make drift-check` (in the `make agent-check` and `make check` aggregates, and run in CI as the `Lint (drift-contracts)` job, a required status check on `dev` and `main`), `make drift-ack CONTRACT=… RATIONALE="<verdict>: …"`.
The validity rule is a single equality, with no base ref, no git diff, and no timestamps:
@@ -36,11 +36,11 @@ One view of every surface the contract system touches, from the working tree to
| Surface | What happens there |
|---|---|
-| **Make targets** | `make drift-check` (alias `dc`) is the pass/fail gate; `make drift-plan` (`dp`) is the read-only diagnosis; `make drift-ack CONTRACT=… RATIONALE="…"` (`da`, optional `BY=` for agents) records the review. All three wrap `pipelex-dev drift`. |
+| **Make targets** | `make drift-check` (alias `dc`) is the pass/fail gate; `make drift-plan` (`dp`) is the read-only diagnosis; `make drift-ack CONTRACT=… RATIONALE="<verdict>: …"` (`da`, optional `BY=` for agents) records the review. All three wrap `pipelex-dev drift`. |
| **Quality checks** | `drift-check` runs inside the `make agent-check` and `make check` aggregates, alongside the other repo gates — a local check cannot pass with an open contract or a rotten manifest, so an open contract surfaces before CI. Mind the index: the digest reads staged content, so unstaged trigger edits are invisible to the gate until `git add`. |
| **Commits** | The digest is computed from the **git index**, and `drift ack` stages the ack file it writes — so the ack, the code change, and any doc fix land in the same commit, reviewed as one diff. |
| **Branches / merges** | After a merge, `drift check` recomputes the digest over the merged tree. An ack that was valid on either side but does not cover the merged trigger content fails the check until the merged state is reviewed and re-acked (see [Merges](#merges)). |
-| **PRs / CI** | The `lint-drift` CI job runs `make drift-check` on every PR — currently advisory (visible, not merge-blocking; promotion to a required check is planned). The committed ack file appears in the PR diff, so the reviewer sees the rationale next to the change it covers. |
+| **PRs / CI** | The `lint-drift` CI job (`Lint (drift-contracts)`) runs `make drift-check` on every PR and is a required status check, so an open contract blocks the merge. The committed ack file appears in the PR diff, so the reviewer sees the rationale next to the change it covers. |
The gate acts on *content*, never on *time*: there is no base ref, no diff against a branch, no timestamp freshness — only the digest equality below.
@@ -59,18 +59,18 @@ It prints one Markdown packet per open contract: the description, exactly which
3. **Record the ack:**
```bash
- make drift-ack CONTRACT=config-docs RATIONALE="Documented the new activity_queues setting; other config pages unaffected."
+ make drift-ack CONTRACT=config-docs RATIONALE="real-catch: Documented the new activity_queues setting; other config pages unaffected."
```
This first runs the contract's `verify_commands` (each one `shlex`-split and run without a shell, from the repo root; the first failure aborts the ack), then recomputes the digest from the index, writes the ack file, and stages it — the ack lands in the same index the check reads, so the local gate and the commit you are building agree. If staging the written ack fails (e.g. a locked git index), the ack file is removed rather than left unstaged, so a later `drift check` reports a missing ack instead of a false green.
4. **Commit the ack file together with the change it covers** (it is already staged). The ack surfaces in the PR diff, so the reviewer sees the rationale next to the change — that is the audit trail.
-`reviewed_by` defaults from `git config user.name`; agents pass `BY=<identity>` (e.g. a model name or session URL). The rationale is required and is the on-the-record review decision — write an honest sentence, not "docs fine".
+`reviewed_by` defaults from `git config user.name`; agents pass `BY=<identity>` (e.g. a model name or session URL). The rationale is required and is the on-the-record review decision: it opens with its verdict (`real-catch`, `clean-pass` or `friction`) and a colon, then says honestly what was reviewed, not "docs fine". `drift ack` refuses a rationale that does not open with one of the three, before any verify command runs.
## Why there is no bypass
-`drift ack` has no `--skip-verify`, and `drift check` has no override label. Every escape hatch here is a rubber-stamp invitation, and the legitimate escape already exists: acking with a rationale that says "no doc change needed" is cheap, honest, and auditable. If a contract opens so often that acking feels like ceremony, the contract is mis-scoped — narrow its triggers or mechanize it into a derived check; don't add a bypass.
+`drift ack` has no `--skip-verify`, and `drift check` has no override label. Every escape hatch here is a rubber-stamp invitation, and the legitimate escape already exists: acking with a rationale that says "clean-pass: no doc change needed" is cheap, honest, and auditable. If a contract opens so often that acking feels like ceremony, the contract is mis-scoped — narrow its triggers or mechanize it into a derived check; don't add a bypass.
## Merges
diff --git a/docs/contribute/generate-projection-corpus.md b/docs/contribute/generate-projection-corpus.md
index bdf6b00ce..4071d0310 100644
--- a/docs/contribute/generate-projection-corpus.md
+++ b/docs/contribute/generate-projection-corpus.md
@@ -43,7 +43,7 @@ The classes it declares today:
- `object-native-keeps-envelope` — a native carrying an optional field beside its required one (`native.Date`) renders as an object once the optional field is included, and the shaper's bare-value arm dispatches a native on its scalar kind, so the object form is only re-shapable inside its `{concept, content}` envelope. The projection keeps that envelope; the engine unwraps to a bare scalar, which it can only do because it drops the optional field. A consequence of `optional-field-included`.
- `unknown-empty-object` — an `unknown` node renders as the empty object, because the descriptor withholds the payload shape at that position and a projection that invented one would stop projecting the descriptor. The engine reflects the runtime content class instead and fills a required dict with a sample key/value pair whoever fills the template in has to delete. Reached by `json_obj` inside `native.JSON`, the corpus's first *required* dict; the optional dict fields elsewhere never reach it, because the engine drops those entirely and that is `optional-field-included`.
-Most are `pipelex` defects filed in the workspace ledger rather than differences of taste, and the manifest names the item whose fix would retire each one. Some carry no item, deliberately: `file-leaf-not-expanded` and `unknown-empty-object` are the descriptor's vantage rather than engine bugs, and `object-native-keeps-envelope` is a consequence of `optional-field-included` rather than a defect of its own. The manifest is what records that the corpus knowingly departs from the engine, and why.
+Most are `pipelex` defects rather than differences of taste, and the manifest names the tracked item whose fix would retire each one. Some carry no item, deliberately: `file-leaf-not-expanded` and `unknown-empty-object` are the descriptor's vantage rather than engine bugs, and `object-native-keeps-envelope` is a consequence of `optional-field-included` rather than a defect of its own. The manifest is what records that the corpus knowingly departs from the engine, and why.
### What the gate can and cannot separate
@@ -57,7 +57,7 @@ A fill-in template exists to be filled in and handed back to the runtime, so sur
So every projected template goes straight back through the shaper, assembled exactly as an entry-pipe run assembles it: the pipe's own declared inputs as the signature, its domain as the search scope. Both shapes, both pipes' worth — the explicit template is as much a runnable scaffold as the compact one. The round-trip is offline: the file-ish arms wrap a mock URL without fetching it.
-The verdict follows the same declared-never-discovered discipline as the divergence record, through the `EXPECTED_UNSHAPEABLE` registry in `generate_projection_corpus_cmd.py`, which maps a `(pipe_ref, shape)` to the ledger item tracking the gap:
+The verdict follows the same declared-never-discovered discipline as the divergence record, through the `EXPECTED_UNSHAPEABLE` registry in `generate_projection_corpus_cmd.py`, which maps a `(pipe_ref, shape)` to the tracked item for the gap:
- A refusal **not** in the registry fails the command, naming the pipe, the shape, the error class and the error's first line. This is the mechanism that would have caught both prior escapes at capture time.
- A registry entry whose template **now shapes** fails the command too — *delete the entry, the gap closed* — so a fix retires its declaration deliberately rather than leaving the manifest claiming a defect that no longer exists.
diff --git a/docs/contribute/hub-layering.md b/docs/contribute/hub-layering.md
index b05fc0df8..77b6f3cec 100644
--- a/docs/contribute/hub-layering.md
+++ b/docs/contribute/hub-layering.md
@@ -131,7 +131,7 @@ The data-model half used to reach for `get_concept_library()` / `get_native_conc
**Class resolution is part of that contract, and it took a second pass to get there.** The hub split moved *concept* resolution onto the provider but left *class* resolution ambient one level down, inside `Concept` itself: the model reached `get_class_registry()` to answer "what is my structure class?" and to run the structural half of a compatibility check. A `Concept` is a subclass of the MTHDS-protocol wire model `ConceptAbstract` — pure serializable data — so that coupled a standard-owned wire model to a Pipelex process-global. `ConceptProviderAbstract.get_structure_class` decouples them: a `Concept` carries the class *name* as a plain protocol string, and turning a name into a type is the provider's business, never the model's.
-Be precise about what that buys, because it is easy to overstate. The read is still **ambient** — `ConceptLibrary.get_structure_class` calls `get_class_registry()`, which selects a registry from the current async context rather than from the provider instance (a `ConceptLibrary` holds none; the per-library `ClassRegistry` lives on `Library`). What changed is that the whole tree now has *one* implementation of that read, behind one seam, instead of it happening inside a wire model. Scoping it to the provider's own library is consequently a one-place change — see `wip/inputs/provider-scoped-class-resolution.md` for why nothing needs it yet.
+Be precise about what that buys, because it is easy to overstate. The read is still **ambient** — `ConceptLibrary.get_structure_class` calls `get_class_registry()`, which selects a registry from the current async context rather than from the provider instance (a `ConceptLibrary` holds none; the per-library `ClassRegistry` lives on `Library`). What changed is that the whole tree now has *one* implementation of that read, behind one seam, instead of it happening inside a wire model. Scoping it to the provider's own library is consequently a one-place change, and nothing needs it yet: every provider in the tree is `get_concept_library()`, which reads the same `_library_id` ContextVar as the registry scoping, so the two cannot name different libraries. It becomes needed the day a caller passes a dependency library's `concept_library`, or a library fetched by id, as the provider.
Two shapes fall out of that, and they are the ones to copy:
diff --git a/docs/contribute/mthds-test-corpus.md b/docs/contribute/mthds-test-corpus.md
index 45aca9517..a5116f88c 100644
--- a/docs/contribute/mthds-test-corpus.md
+++ b/docs/contribute/mthds-test-corpus.md
@@ -1,8 +1,8 @@
# The MTHDS Test Corpus
-The MTHDS Test Corpus is one canonical, tagged set of `.mthds` methods that every repo in the workspace draws its language-level fixtures from. It lives at `pipelex/test_extras/mthds_corpus/`, ships in the wheel, and is gated on both sides: the corpus must cover every feature the runtime registers, and each consumer must exercise every entry in the slice it declares.
+The MTHDS Test Corpus is one canonical, tagged set of `.mthds` methods that every repository building on the MTHDS language — this runtime and the tools and services around it — draws its language-level fixtures from. It lives at `pipelex/test_extras/mthds_corpus/`, ships in the wheel, and is gated on both sides: the corpus must cover every feature the runtime registers, and each consumer must exercise every entry in the slice it declares.
-The cross-repo contract — the one other repos are written against — is the workspace-root spec `docs/specs/mthds-test-corpus.md`. This page is the pipelex-side working guide: where things are, how to add an entry, and what each gate is telling you when it goes red.
+This page is both the pipelex-side working guide — where things are, how to add an entry, and what each gate is telling you when it goes red — and the contract other repositories are written against: the entry layout, the `entry.toml` manifest, the closed tag vocabulary with its `fails_at` field, the conformance tiers, and the two ways a consumer reaches the corpus.
!!! note "Why it exists"
@@ -29,7 +29,7 @@ An entry directory holds either exactly one `.mthds` file, or several with a `bu
## Adding an entry
-1. **Pick an ordinary-world subject.** An entry's subject matter is never AI, machine learning, language models, agents, prompting or embeddings, and never MTHDS's own vocabulary either. The corpus *uses* `PipeLLM` constantly; it never *talks about* it. The reason is legibility under failure: an entry exists so a red gate can be narrated in one sentence, and *"the model output the model"* is not a sentence anyone can act on. Train timetables, invoices, recipes, weather observations, shipping manifests all work. The full rule, including the carve-out that lets an invalid entry be named for the defect it triggers, is in the spec.
+1. **Pick an ordinary-world subject.** An entry's subject matter is never AI, machine learning, language models, agents, prompting or embeddings, and never MTHDS's own vocabulary either. The corpus *uses* `PipeLLM` constantly; it never *talks about* it. The reason is legibility under failure: an entry exists so a red gate can be narrated in one sentence, and *"the model output the model"* is not a sentence anyone can act on. Train timetables, invoices, recipes, weather observations, shipping manifests all work. The rule governs what a method reasons about, never the operators it uses: a `PipeLLM` that judges whether a delivery is late is exemplary, one that judges whether a prompt is well engineered is not, and the two run the identical operator. It covers the directory name, `entry.toml`'s `name` and `description`, the bundle's `domain`, its concept and pipe names, its prompt text and `inputs.json`. One carve-out, so nobody "fixes" it later: an *invalid* entry is named and described for the defect it triggers — `invalid_llm_output_cannot_be_image` is a correct name — while its bundle still gets an ordinary-world domain. The rule is enforced at review and has no mechanical gate, deliberately: a keyword denylist was measured against real entries, and it both fired on correct names (an entry is named for the axis it covers, so `operator_structure_opening_hours` is right) and missed real violations whose subject carried no banned word.
2. **Create the directory** under `entries/`, named in `snake_case`, and write the bundle.
@@ -98,7 +98,7 @@ No native concept is excluded — every one of them turned out to support a real
An `error.*` tag that is *not* excluded carries one more field: `fails_at`, either `schema` or `runtime`. It names the earliest layer of checking that rejects a bundle carrying the fault. `schema` means a pass over the raw document's shape already catches it — a section missing a required key, a value outside a closed set — so a JSON-Schema validator, an editor diagnostic, or `plxt lint` reports it without ever interpreting the document. `runtime` means the document has to be *interpreted* to notice: an unresolved reference, an input the flow never supplies, an output whose concept does not fit.
-**The consumer rule is one sentence: a structural sweep expects a diagnostic on an entry exactly when its tag says `fails_at = "schema"`, and expects silence on every other entry.** That is what the field exists for. Before it, a consumer running a schema checker over the corpus had to hardcode which faults it thought were structural — a second, downstream reading of `pipelex`'s own registry, guaranteed to drift from it. Now the corpus being swept carries the answer.
+**The consumer rule is one sentence: a structural sweep expects a diagnostic on an entry exactly when its tag says `fails_at = "schema"`, and expects silence on every other entry.** That is what the field exists for. Never branch on `validity` instead: most invalid entries carry a semantic fault — an unresolved reference, a missing input — that a structural checker cannot see, and the few whose fault it can see are its only probe for a schema that quietly stopped rejecting something. Before it, a consumer running a schema checker over the corpus had to hardcode which faults it thought were structural — a second, downstream reading of `pipelex`'s own registry, guaranteed to drift from it. Now the corpus being swept carries the answer.
A `schema` fault is still rejected by the runtime; the field names where a fault is caught *first*, not who is allowed to catch it. That is why a schema-fault entry declares the same `expected_error` as any other invalid entry — the runtime's diagnostic is what the entry pins. The two spellings line up on purpose, too: `schema` is also `plxt`'s own `error[schema]` diagnostic category, so a consumer branching on the field and a human reading a linter's output use one word for one thing.
@@ -106,6 +106,19 @@ Only non-excluded tags carry it, for the same reason exclusion reasons are measu
**And it stays measured, because this repo consumes it first.** `.pipelex/plxt.toml` excludes the corpus's schema-fault entries from `plxt lint` — they *should* produce a diagnostic, which is the entry's whole point — and lints every other invalid entry like any ordinary `.mthds` file. That exclusion list is not hand-maintained: `tests/unit/pipelex/test_extras/test_mthds_corpus_plxt_exclusions.py` fails when it disagrees with the vocabulary. The config is gated rather than generated because `plxt` is a static binary reading a static file, with nothing to hook a generation step onto — but the loop still closes in the direction that matters. Declare a fault `runtime` when the schema in fact rejects it, and its entry stays linted, so `make plxt-lint` goes red naming it.
+## Conformance tiers
+
+Not every consumer can afford to run every entry, but every consumer can afford something. An entry's `tier` is the cheapest level at which it is meaningful, and a consumer running at a tier runs every entry of that tier or a cheaper one.
+
+| Tier | What it does | pipelex pytest markers |
+|---|---|---|
+| `static` | Parse and validate the bundle | none — runs in the default suite |
+| `dry` | Build the execution graph and run it in dry mode, without inference | none — runs in the default suite |
+| `offline` | Execute for real without inference — deterministic operators only | none — runs in the default suite |
+| `inference` | Execute fully, with live inference calls | `inference`, plus the operator-specific `llm`, `img_gen`, `extract` or `search` |
+
+The tier governs execution, never validation: the entry-validation gate below parses and validates every entry whatever its tier, so an `inference`-tier entry that broke is caught without spending a token.
+
## The gates, and what a red one means
| Gate | Where | Red means |
@@ -135,6 +148,14 @@ for entry in iter_entries(tier=EntryTier.DRY):
The same two calls are how a **consumer outside this repo** reaches the corpus: it ships as package data in the wheel, so anything that already depends on `pipelex` — our own hosted services, most immediately — reads it with no vendored copy and no drift, in lockstep with its pinned version. Paths handed out are real filesystem paths, resolved through `importlib.resources.files`; wheels install unzipped, and a zip-imported distribution is not supported.
+**A consumer that cannot import `pipelex`** — one written in another language, or a suite that must stay independent of the runtime it checks — takes a vendored copy of the slice of entries it declares, refreshed from a released `pipelex`. The corpus carries no version of its own: it versions with the runtime, so a copy is only meaningful relative to a `pipelex` release. Three rules keep such a copy honest:
+
+- **The copy is generated, never authored.** An entry that needs fixing is fixed here, where the vocabulary, exhaustivity and entry-validation gates run, and the copy is refreshed. A copy edited in place is a fork, so a consumer says so where its copy lives.
+- **The consumer discovers entries by recursion over its copy**, never from a hand-kept list, so a newly synced entry is exercised with no wiring change.
+- **The copy feeds a suite that stores no expectations** — a parse, a build, a comparison of two implementations on the same input. A snapshot suite pinning per-entry output would turn every upstream edit into a regeneration in the consumer's repository, for signal the derived checks already carry.
+
+A consumer copies only entry sources and canonical inputs; whatever it generates from an entry stays its own, keyed by entry name.
+
The corpus is the single source for language-level `.mthds` methods in this repo, and this repo's own tests are consumers of it like any other: a growing number of trees under `tests/e2e/pipelex/pipes/` call `get_entry(...)` for their bundle rather than keeping a local copy. `grep -rl mthds_corpus tests/` is the current list — the enumeration is deliberately not written down here, since it moves with every migration.
!!! note "The entries are data, never auto-loaded"
diff --git a/docs/contribute/trace-input-semantics.md b/docs/contribute/trace-input-semantics.md
index a46d64ba4..5a27bd04d 100644
--- a/docs/contribute/trace-input-semantics.md
+++ b/docs/contribute/trace-input-semantics.md
@@ -28,4 +28,4 @@ Use it whenever a change touches the emission chain — the structure blueprint,
.venv/bin/pipelex-dev trace-input-semantics tests/data/input_semantics/probe_bundle.mthds -o /tmp/probe-trace
```
-The harness was built for the S1 input-semantics audit; its measured survival table and findings live with that audit's working documents. The integration test at `tests/integration/pipelex/cli/test_trace_input_semantics_cmd.py` keeps the per-hop capture format honest.
+The harness was built for the S1 input-semantics audit of the input-form program. The integration test at `tests/integration/pipelex/cli/test_trace_input_semantics_cmd.py` keeps the per-hop capture format honest.
diff --git a/docs/migration-ledger.md b/docs/migration-ledger.md
index bedcc8b6d..44e78d0f3 100644
--- a/docs/migration-ledger.md
+++ b/docs/migration-ledger.md
@@ -505,7 +505,7 @@ Two rules govern how an entry appears, and both exist so that a report is never
That is a mechanical rule rather than a list of credential-shaped key names, because such a list is a guess that eventually misses one. The single deliberate exception is the backup file, which contains the user's values by definition and is protected by inheriting the source file's mode rather than the process umask.
-When migration is reported through a validation error, the error keeps `error_domain: "config"` and gains a structured `migration` block carrying the plan, the remedy and the diagnosis. Consumers branch on the presence of that block, never on wording. Following the workspace convention: the structured fields are the contract, and Markdown, exit codes and HTTP statuses are presentation.
+When migration is reported through a validation error, the error keeps `error_domain: "config"` and gains a structured `migration` block carrying the plan, the remedy and the diagnosis. Consumers branch on the presence of that block, never on wording: the structured fields are the contract, and Markdown, exit codes and HTTP statuses are presentation.
## The commands
@@ -527,7 +527,7 @@ Two commands run a migration, and they are the same run with two audiences.
**Neither command boots.** A broken configuration is the reason to reach for `migrate`, so needing a working one would make it useless in exactly the case it exists for. What a migration may use is the ledger, the applier and the filesystem: no configuration load, no model deck, no credentials, no network. That is a property under test rather than an accident, and the test is what keeps a future import from creeping into the list.
-**The structured fields are the contract.** `needs_attention` is the verdict — *this run left something a person has to decide* — and it is deliberately not "did anything get written": a run that migrated every file it found has succeeded, and so has a dry run that found nothing blocked. The exit code (`1` when `needs_attention`, `2` on a contradictory pair of flags) and the rendering are presentation, and follow the workspace convention rather than carrying the verdict.
+**The structured fields are the contract.** `needs_attention` is the verdict — *this run left something a person has to decide* — and it is deliberately not "did anything get written": a run that migrated every file it found has succeeded, and so has a dry run that found nothing blocked. The exit code (`1` when `needs_attention`, `2` on a contradictory pair of flags) and the rendering are presentation, and never carry the verdict.
## Boot tolerance
@@ -691,7 +691,7 @@ Three further rules make that safety net worth the name.
What a backup carries across is the file's **permission bits**, and that is the one deliberate exception to "no value read from a user's file is ever rendered" — a backup contains the user's values by definition, so a `0600` configuration must not acquire a world-readable copy beside it. Ownership, ACLs and extended attributes are **not** carried across the replace, on either the backup or the migrated file: an atomic same-directory replace cannot preserve what the running process has no right to set, and re-attaching an attribute blindly (a quarantine flag, a security label) is a worse guess than leaving it off. The security-relevant bit of a configuration file is its mode.
-A configuration file that is a **symlink** is followed: the file the user means is the one at the end of the link, so the run reads, backs up and replaces *that* file, and the link survives. Replacing the link path instead would put a regular file where the link was and leave the real file unmigrated. The plan keeps naming the path the directory walk found; the backup path shows where the bytes actually went. This is what the `.mthds` fix loop already does with its own targets. The two callers differ on one half, and the difference is deliberate: **a migration's write scope is the resolved target of any file the walk claims**, not the walked directories themselves. The `.mthds` fix loop pairs its resolution with a write-scope check because it is handed a bundle directory and must not write outside it; a configuration directory is a place a user keeps links to files they own, and a dotfiles repository is the ordinary reason one is there. Refusing it would mean the tool declines to migrate exactly the machines whose owner was most deliberate about their configuration. The plan names the walked path and the backup names the resolved one, so a run that followed a link out of the directory says so. The reasoning behind both readings is in `wip/migrator/migrator-write-scope-and-rename-fidelity.md`.
+A configuration file that is a **symlink** is followed: the file the user means is the one at the end of the link, so the run reads, backs up and replaces *that* file, and the link survives. Replacing the link path instead would put a regular file where the link was and leave the real file unmigrated. The plan keeps naming the path the directory walk found; the backup path shows where the bytes actually went. This is what the `.mthds` fix loop already does with its own targets. The two callers differ on one half, and the difference is deliberate: **a migration's write scope is the resolved target of any file the walk claims**, not the walked directories themselves. The `.mthds` fix loop pairs its resolution with a write-scope check because it is handed a bundle directory and must not write outside it; a configuration directory is a place a user keeps links to files they own, and a dotfiles repository is the ordinary reason one is there. Refusing it would mean the tool declines to migrate exactly the machines whose owner was most deliberate about their configuration. The plan names the walked path and the backup names the resolved one, so a run that followed a link out of the directory says so.
### Per-file transactions
diff --git a/docs/under-the-hood/error-model.md b/docs/under-the-hood/error-model.md
index fbe8f83e1..bf2a70862 100644
--- a/docs/under-the-hood/error-model.md
+++ b/docs/under-the-hood/error-model.md
@@ -348,7 +348,7 @@ Everything said above about the request limits holds here too — the code is th
- **One member is not the caller's problem at all.** `pipelex_storage_uri_unsupported` means no bucket is configured, so the deployment does not serve the scheme: no input avoids it, and telling the caller to fix theirs is wrong in kind. It is the family's one `CONFIGURATION` / `CONTACT_SUPPORT` arm, the same call `BODY_LENGTH_REQUIRED` gets among the request limits.
- **`pig-09` is one code for every storage failure but "over its cap", and the advice says so.** On the LLM routes the client is speaking a provider's protocol, so the gateway's `pig-0N` family is the only vocabulary available and it has a single fail-closed slot for "cannot resolve" — no bucket configured, not a storage reference, no such object, an object it cannot read, a type no provider takes, or no way to hand a file to the provider the model resolves to. The message carries the difference; the code does not, so `REFERENCE_UNRESOLVED` defers to the message rather than guessing which it was. The native `/v1/pipelex/*` routes name each cause with its own frozen contract code, which is why the rest of the table is `pipelex_*`.
-`pig-09` also folds in causes that are not the caller's to repair — no bucket configured, and no way to hand a file to the provider the model resolves to — because the LLM routes have one slot for all of them. The native routes name the first of those separately (`pipelex_storage_uri_unsupported`, `CONTACT_SUPPORT`), so the same storage-less deployment reads differently by route. Splitting `pig-09` is a gateway-side change, filed on `pipelex-manifold` as `L-260901-f2b554`.
+`pig-09` also folds in causes that are not the caller's to repair — no bucket configured, and no way to hand a file to the provider the model resolves to — because the LLM routes have one slot for all of them. The native routes name the first of those separately (`pipelex_storage_uri_unsupported`, `CONTACT_SUPPORT`), so the same storage-less deployment reads differently by route. Splitting `pig-09` is a change on the gateway's side.
#### When the model cannot be routed
@@ -385,7 +385,7 @@ Two of the gateway's routing codes are deliberately **not** in the family, becau
Nothing in any of the three families is ever retried, and no two of them overlap: a code names a bound the request exceeded, a reference that could not be resolved, or a request that could not be routed. `pig-09` and `pig-10` are the clearest illustration — the same middleware raises both, one when the object cannot be resolved and one when it is over its cap.
-The gateway's remaining codes belong to no family and classify on their status like anything else. For the storage deadline outcomes (`pig_storage_timeout` at 504, `pig_storage_client_disconnected` at 499) that is the right reading — a timeout is a timeout. For `pig-12` at 400, the LLM routes' "no storage bucket is configured", it is not: it is the operator's fact and reads as a prompt to revise, exactly as `pipelex_storage_uri_unsupported` does not on the native routes. One map entry into `GatewayUnresolvedReference.STORAGE_NOT_SERVED` closes it, filed as `L-260901-0859e8`.
+The gateway's remaining codes belong to no family and classify on their status like anything else. For the storage deadline outcomes (`pig_storage_timeout` at 504, `pig_storage_client_disconnected` at 499) that is the right reading — a timeout is a timeout. For `pig-12` at 400, the LLM routes' "no storage bucket is configured", it is not: it is the operator's fact and reads as a prompt to revise, exactly as `pipelex_storage_uri_unsupported` does not on the native routes. One map entry into `GatewayUnresolvedReference.STORAGE_NOT_SERVED` would close it.
### The `instructor` Unwrap
diff --git a/docs/under-the-hood/input-form-descriptor.md b/docs/under-the-hood/input-form-descriptor.md
index 30e6dbb18..4a79b1e60 100644
--- a/docs/under-the-hood/input-form-descriptor.md
+++ b/docs/under-the-hood/input-form-descriptor.md
@@ -1,6 +1,6 @@
# Input-Form Descriptor
-Every valid `validate` report carries, beside `pipe_io_contracts`, an **input-form descriptor** per pipe: an ordered list of field descriptors a renderer can turn into a fill-in form with no schema heuristics, no hardcoded concept tables, and no description matching. The wire contract is the MTHDS spec `docs/specs/mthds-input-form-descriptor.md` at the workspace root; this page documents Pipelex's reference derivation of it.
+Every valid `validate` report carries, beside `pipe_io_contracts`, an **input-form descriptor** per pipe: an ordered list of field descriptors a renderer can turn into a fill-in form with no schema heuristics, no hardcoded concept tables, and no description matching. The wire contract is the MTHDS standard's [Input-Form Descriptor specification](https://mthds.ai/latest/spec/input-form-descriptor/); this page documents Pipelex's reference derivation of it.
The descriptor exists because the emitted `json_schema` is a *payload* contract, and the projection that produces it loses facts a form needs: which concept a node is, what it refines, whether `!` or plain was authored, a fixed `[N]` count, an authored default, a one-member choice list. The descriptor reports those facts from where they still exist — the authored blueprints — and leaves the payload shape to the schema. It is presentation; it never changes what a caller submits.
diff --git a/docs/under-the-hood/secrets-provider-plugins.md b/docs/under-the-hood/secrets-provider-plugins.md
index 56711d010..0904a9f5a 100644
--- a/docs/under-the-hood/secrets-provider-plugins.md
+++ b/docs/under-the-hood/secrets-provider-plugins.md
@@ -111,7 +111,7 @@ def _make_env_secrets_provider(config: SecretsProviderConfig) -> SecretsProvider
## Selecting a method by config
-`runtime.secrets.method` is an **open `str` token** (Decision S1), not a closed enum. The built-in uses `"env"`; an external `pipelex-secrets-<backend>` plugin registers its own (e.g. `"vault"`). A config naming an external method **parses fine** — the token is stored verbatim and its installability is validated later, at registry lookup:
+`runtime.secrets.method` is an **open `str` token**, not a closed enum. The built-in uses `"env"`; an external `pipelex-secrets-<backend>` plugin registers its own (e.g. `"vault"`). A config naming an external method **parses fine** — the token is stored verbatim and its installability is validated later, at registry lookup:
```toml
# .pipelex/pipelex.toml
@@ -122,7 +122,7 @@ method = "vault" # an out-of-tree provider — selected iff its plugin
Whether that token names an *installed* provider is validated at **registry lookup**, not at parse: an unknown method surfaces as `UnknownSecretsMethodError` at boot, which is the right layer — it lists the registered methods so the fix is obvious.
!!! note "External-provider config surface is a scoped follow-up"
- `SecretsProviderConfig` today carries only `method` — the built-in `env` backend needs no per-method sub-config. An out-of-tree `vault` provider has nowhere to read *its* structured config yet; a generic passthrough for external providers is a captured follow-up (Decision S4), not built speculatively. Until it lands, an external provider reads its own config from the environment or its own file.
+ `SecretsProviderConfig` today carries only `method` — the built-in `env` backend needs no per-method sub-config. An out-of-tree `vault` provider has nowhere to read *its* structured config yet; a generic passthrough for external providers is a possible follow-up, not built speculatively. Until it lands, an external provider reads its own config from the environment or its own file.
---
diff --git a/docs/under-the-hood/storage-provider-plugins.md b/docs/under-the-hood/storage-provider-plugins.md
index d648392e0..dd4f047ac 100644
--- a/docs/under-the-hood/storage-provider-plugins.md
+++ b/docs/under-the-hood/storage-provider-plugins.md
@@ -113,7 +113,7 @@ def _make_gcp_storage_provider(config: StorageProviderConfig) -> StorageProvider
## Selecting a method by config
-`runtime.storage.method` is an **open `str` token** (Decision D1), not a closed enum. The built-ins use the `StorageMethod` values; an external `pipelex-storage-<backend>` plugin registers its own (e.g. `"azure"`). A config naming an external method **parses fine** — the per-method sub-config validator requires a matching sub-config only for the four built-in tokens and lets any other token through:
+`runtime.storage.method` is an **open `str` token**, not a closed enum. The built-ins use the `StorageMethod` values; an external `pipelex-storage-<backend>` plugin registers its own (e.g. `"azure"`). A config naming an external method **parses fine** — the per-method sub-config validator requires a matching sub-config only for the four built-in tokens and lets any other token through:
```toml
# .pipelex/pipelex.toml
@@ -124,7 +124,7 @@ method = "azure" # an out-of-tree provider — no built-in sub-config r
Whether that token names an *installed* provider is validated at **registry lookup**, not at parse: an unknown method surfaces as `UnknownStorageMethodError` at boot, which is the right layer — it lists the registered methods so the fix is obvious.
!!! note "External-provider config surface is a scoped follow-up"
- `StorageProviderConfig` has fixed, typed per-method sub-models, so an out-of-tree `azure` provider has nowhere to read *its* structured config yet. The seam for built-in methods lands first; a generic passthrough sub-config for external providers is a captured follow-up (Decision D3), not built speculatively. Until it lands, an external provider reads its own config from the environment or its own file. **One live gap:** `StorageProviderConfig.uri_format` (read by `GeneratedContentFactory._build_storage_key` on every content store, where it renders the FILENAME only — its placeholders are `{hash}` and `{extension}`, while the prefix `{storage_scope}/generated/` is composed in code so a config cannot omit it) is only defined for the four built-in methods and raises `StorageConfigError` for any other token — so an external provider selects and boots cleanly but a *generated-content store* through it fails until D3 gives external methods a `uri_format`. External providers are therefore usable today for their own direct storage API, not yet as the backing store for generated content.
+ `StorageProviderConfig` has fixed, typed per-method sub-models, so an out-of-tree `azure` provider has nowhere to read *its* structured config yet. The seam for built-in methods lands first; a generic passthrough sub-config for external providers is a possible follow-up, not built speculatively. Until it lands, an external provider reads its own config from the environment or its own file. **One live gap:** `StorageProviderConfig.uri_format` (read by `GeneratedContentFactory._build_storage_key` on every content store, where it renders the FILENAME only — its placeholders are `{hash}` and `{extension}`, while the prefix `{storage_scope}/generated/` is composed in code so a config cannot omit it) is only defined for the four built-in methods and raises `StorageConfigError` for any other token — so an external provider selects and boots cleanly but a *generated-content store* through it fails until every storage method has a `uri_format`. External providers are therefore usable today for their own direct storage API, not yet as the backing store for generated content.
---
diff --git a/drift.toml b/drift.toml
index 211737f4e..fa026846c 100644
--- a/drift.toml
+++ b/drift.toml
@@ -2,10 +2,10 @@
#
# A contract says: when these trigger files change, these review targets must be
# re-examined against the change, and the examination must be recorded with
-# `make drift-ack CONTRACT=<id> RATIONALE="…"`. `make drift-check` gates the local
-# `make check` aggregate and runs as an advisory CI job (to be promoted to a
-# required check — gated, see wip/drift-contracts/phase-3-verdict.md). See
-# docs/contribute/drift-contracts.md for the full workflow.
+# `make drift-ack CONTRACT=<id> RATIONALE="<verdict>: …"`. `make drift-check` gates the local
+# `make agent-check` and `make check` aggregates, and `Lint (drift-contracts)` is a
+# required status check on `dev` and `main`. See docs/contribute/drift-contracts.md
+# for the full workflow.
#
# Keep this manifest small: every contract here must earn its friction. Anything
# mechanizable (regenerate-and-diff, referential integrity) belongs in a derived
diff --git a/pipelex/cli/dev_cli/commands/drift/core.py b/pipelex/cli/dev_cli/commands/drift/core.py
index 7e82069e8..d16b5048f 100644
--- a/pipelex/cli/dev_cli/commands/drift/core.py
+++ b/pipelex/cli/dev_cli/commands/drift/core.py
@@ -159,6 +159,32 @@ def compute_current_digest(contract: DriftContract, *, contract_id: str, staged_
return ContractDigestResult(digest=digest, trigger_files=trigger_files)
+class DriftVerdict(StrEnum):
+ """What a review concluded. Every rationale `drift ack` records opens with one, then a colon."""
+
+ REAL_CATCH = "real-catch"
+ CLEAN_PASS = "clean-pass"
+ FRICTION = "friction"
+
+
+RATIONALE_TEMPLATE = f"<{'|'.join(DriftVerdict)}>: …"
+
+
+def read_rationale_verdict(*, rationale: str) -> DriftVerdict | None:
+ """Return the verdict a rationale opens with, or None when it opens with none.
+
+ A rationale reads `<verdict>: <what was reviewed>`. A verdict with nothing after its
+ colon counts as none: the verdict says how the review ended, not what it looked at.
+ """
+ head, separator, tail = rationale.strip().partition(":")
+ if not separator or not tail.strip():
+ return None
+ try:
+ return DriftVerdict(head)
+ except ValueError:
+ return None
+
+
class DriftIssueKind(StrEnum):
"""Everything `drift check` can flag."""
diff --git a/pipelex/cli/dev_cli/commands/drift/drift_cmd.py b/pipelex/cli/dev_cli/commands/drift/drift_cmd.py
index 535d1de8d..bf98ef0cc 100644
--- a/pipelex/cli/dev_cli/commands/drift/drift_cmd.py
+++ b/pipelex/cli/dev_cli/commands/drift/drift_cmd.py
@@ -17,13 +17,16 @@ import typer
from rich.markup import escape
from pipelex.cli.dev_cli.commands.drift.core import (
+ RATIONALE_TEMPLATE,
ContractPlanPacket,
DriftIssue,
DriftIssueKind,
+ DriftVerdict,
build_plan_packets,
compute_current_digest,
find_issues,
match_files,
+ read_rationale_verdict,
)
from pipelex.cli.dev_cli.commands.drift.exceptions import DriftAckError, DriftError, DriftGitError
from pipelex.cli.dev_cli.commands.drift.git_adapter import (
@@ -132,7 +135,7 @@ def _render_packet_markdown(packet: ContractPlanPacket) -> str:
if packet.contract.verify_commands:
lines.extend(["", "**Verify commands (run by ack):**", ""])
lines.extend(f"- {command}" for command in packet.contract.verify_commands)
- ack_invocation = f'make drift-ack CONTRACT={packet.contract_id} RATIONALE="…"'
+ ack_invocation = f'make drift-ack CONTRACT={packet.contract_id} RATIONALE="{RATIONALE_TEMPLATE}"'
lines.extend(
[
"",
@@ -239,6 +242,13 @@ def drift_ack_cmd(contract_id: str, *, rationale: str, reviewed_by_override: str
if not rationale.strip():
msg = "An ack requires a non-empty --rationale: it is the on-the-record review decision"
raise DriftAckError(msg)
+ if read_rationale_verdict(rationale=rationale) is None:
+ verdicts = ", ".join(f"`{verdict}`" for verdict in DriftVerdict)
+ msg = (
+ f"The --rationale must open with its verdict — one of {verdicts} — then a colon and what was reviewed, "
+ 'e.g. "clean-pass: reviewed the config pages, nothing was stale". Nothing was written'
+ )
+ raise DriftAckError(msg)
reviewed_by = reviewed_by_override or get_git_user_name(resolved_root)
if reviewed_by is None:
msg = "Cannot resolve the reviewer identity: set `git config user.name` or pass --by"
@@ -300,7 +310,14 @@ def check_command(
@drift_app.command("ack", help="Run the contract's verify commands, then record the review ack")
def ack_command(
contract: Annotated[str, typer.Argument(help="Contract id to acknowledge")],
- rationale: Annotated[str, typer.Option("--rationale", "-r", help="The on-the-record review decision (required)")],
+ rationale: Annotated[
+ str,
+ typer.Option(
+ "--rationale",
+ "-r",
+ help="The on-the-record review decision, opening with its verdict: `real-catch: …`, `clean-pass: …` or `friction: …`",
+ ),
+ ],
by: Annotated[str | None, typer.Option("--by", help="Reviewer identity (default: git config user.name)")] = None,
) -> None:
"""Record a fulfilled review for one contract."""
diff --git a/pipelex/cli/dev_cli/commands/trace_input_semantics_cmd.py b/pipelex/cli/dev_cli/commands/trace_input_semantics_cmd.py
index 283800b9f..71cedebbb 100644
--- a/pipelex/cli/dev_cli/commands/trace_input_semantics_cmd.py
+++ b/pipelex/cli/dev_cli/commands/trace_input_semantics_cmd.py
@@ -161,7 +161,7 @@ def _capture_hop2(*, blueprints: list[PipelexBundleBlueprint], output_dir: Path)
captures[concept_ref] = None
continue
# `.py.txt` on purpose: these are evidence artifacts, not code — a bare `.py`
- # extension would drag them into the repo's linters when captured under wip/.
+ # extension would drag them into the repo's linters when the output directory is inside the repository.
relative_path = f"{HOP2_DIR_NAME}/{concept_ref}.py.txt"
source_path = output_dir / relative_path
source_path.parent.mkdir(parents=True, exist_ok=True)
diff --git a/pipelex/cogt/content_generation/search_generate.py b/pipelex/cogt/content_generation/search_generate.py
index 2109b04c7..222acecd9 100644
--- a/pipelex/cogt/content_generation/search_generate.py
+++ b/pipelex/cogt/content_generation/search_generate.py
@@ -5,7 +5,7 @@ serializable ``SearchAssignment`` / ``SearchObjectAssignment``, rebuild the ``Se
worker from the model handle, and run it. The direct ``ContentGenerator`` calls them inline; the Temporal
``act_search_*`` activity calls them inside an activity so the result is recorded in workflow history and
any failure is converted to a terminal ``ApplicationError`` (instead of running inline on the workflow
-loop, which left search failures hanging the submitter — see ``wip/`` brief).
+loop, which left search failures hanging the submitter).
The structured search has two entry points rather than one nullable parameter, because its two arms
genuinely return different things: in-process the caller's class travels down and an instance of it
diff --git a/pipelex/core/memory/input_shaper.py b/pipelex/core/memory/input_shaper.py
index 9895e35c2..785dbd3a5 100644
--- a/pipelex/core/memory/input_shaper.py
+++ b/pipelex/core/memory/input_shaper.py
@@ -13,8 +13,9 @@ This module is the top-down *dispatch*: the actual content building reuses the e
(``StuffContentFactory`` / ``ConceptLibrary.is_compatible`` / the bottom-up ``StuffFactory``). The
new code decides which arm each value takes; it does not invent new content builders.
-See ``wip/inputs/smart-inputs-design.md`` (D1-D11) for the full rationale, and
-``wip/anything-slot/design.md`` (R1-R10) for the ``Anything`` and ``JSON`` arms.
+The D-numbered decisions cited below (D1-D11) are the Smart Inputs design's (L-260930-8fcfbe); the rules they produced
+are documented for callers in ``docs/building-methods/pipes/provide-inputs.md``. The ``Anything`` and
+``JSON`` arms follow the rulings R1-R11 of L-260902-10eb56.
"""
import datetime
@@ -935,7 +936,7 @@ class InputShaper:
path enforces in ``_shape_with_multiplicity``. Without this, a caller handing an explicit
``ListContent`` (or an envelope whose ``content`` is a list) to a singular-declared input would
have it *silently* stored into the singular slot. The singular-under-``[]`` auto-wrap question is
- deliberately left to the caller's literal form (see ``wip/inputs/input-shaper-multiplicity-gaps.md``):
+ deliberately left to the caller's literal form (an open question, L-260930-c32629):
an explicit singular is taken as given, not auto-wrapped.
"""
content = stuff.content
diff --git a/pipelex/kit/agent_rules/commands.md b/pipelex/kit/agent_rules/commands.md
index 32deaead2..5120f3bb7 100644
--- a/pipelex/kit/agent_rules/commands.md
+++ b/pipelex/kit/agent_rules/commands.md
@@ -4,7 +4,7 @@
- **`make agent-check` after every code change, and fix everything it reports.** Its prerequisites are `fix-unused-imports fix-keyword-only format lint pyright mypy check-ledger check-keyword-only check-hub-layering check-rich-imports drift-check`: the import and keyword-only fixers, ruff, pyright, mypy, `plxt` over TOML/MTHDS/PLX, the migration-ledger replay (`cl`), the hub-layering check, the Rich import check (`cri`: Rich is the `cli` extra, so no module outside `pipelex/cli/` imports it at module level or reaches it through a CLI module) and the drift contracts. The drift digest reads the git index, so stage your changes before the check.
- **Keyword-only arguments** (the convention is in the standards and in `docs/contribute/keyword-only-arguments.md`): `make check-keyword-only` (`cko`) is the gate, `make fix-keyword-only` (`fko`) inserts the bare `*` where it can — on ungranted subjects too — and reports the shapes it cannot fix, and `make subject-grant FUNC="<path>::<qualname>" RATIONALE="…"` (`sgr`) grants a positional subject. Grant before `make agent-check`, which runs the fixer.
-- **Drift contracts.** When `make drift-check` reports an open contract: `make drift-plan`, review and fix the stale targets, `git add` the trigger files, then `make drift-ack CONTRACT=<id> RATIONALE="…"`. No bypass flag; "reviewed, no doc change needed" is a legitimate rationale. See `docs/contribute/drift-contracts.md`.
+- **Drift contracts.** When `make drift-check` reports an open contract: `make drift-plan`, review and fix the stale targets, `git add` the trigger files, then `make drift-ack CONTRACT=<id> RATIONALE="<verdict>: …"`, the rationale opening with its verdict, `real-catch`, `clean-pass` or `friction`. No bypass flag; "clean-pass: reviewed, no doc change needed" is a legitimate rationale. See `docs/contribute/drift-contracts.md` and the `/drift-review` skill.
- **`make agent-test` at the end of every coding session.** Heartbeat lines while running, full output only on failure. If it hangs or fails opaquely, `make agent-test-debug` (`atd`) adds stale-process cleanup, an outer timeout and a live log; the methodology is `docs/agents/debugging-hanging-pytest-runs.md`. At intermediate steps in a local setup, running only the relevant tests is fine: `.venv/bin/pytest -x -q tests/unit/path/to/test_module.py`, or `make t TEST=<name>` (pytest `-k` substring matching; `TEST=LF` reruns the last failures). `make tp` / `make test-with-prints` are for a human at a terminal; an agent in the cloud or in a sandbox uses `make agent-test` only.
- **`make test-ts-gates` (`ttg`) after touching anything under `pipelex/codegen/emitters/`, or moving the pinned prettier version.** `make agent-test` does not cover the TypeScript emission: the two gates that read the emitted TypeScript as TypeScript need a node toolchain and skip silently without one. This target provisions a pinned prettier and zod into `.ts-toolchain/` (npm, node >= 22.6) and makes those gates fail instead of skip, as CI does. See `docs/contribute/typescript-emission-gates.md`.
- **`make cleanderived`** when linters or pytest collection get confused after files were erased or moved.
diff --git a/pipelex/libraries/concept/concept_library.py b/pipelex/libraries/concept/concept_library.py
index f94e4018b..25ccac14d 100644
--- a/pipelex/libraries/concept/concept_library.py
+++ b/pipelex/libraries/concept/concept_library.py
@@ -201,8 +201,9 @@ class ConceptLibrary(RootModel[ConceptLibraryRoot], ConceptLibraryAbstract):
"""Resolve a concept string a **human** supplied — an input payload's `concept` field, a CLI argument.
Entry-shaped lookup, the concept twin of `PipeLibrary.get_optional_entry_pipe` — kept a
- deliberate near-copy rather than a shared helper (see
- wip/pipe-refs/entry-affordance-share-vs-duplicate.md). Natives resolve first, per the
+ deliberate near-copy rather than a shared helper: the concept side has steps the pipe side
+ cannot have (natives first, then the scope preference), so a shared helper would carry dead
+ branches. Natives resolve first, per the
standard's own step 1. A fully-specified ref (`domain.Concept`, `alias->domain.Concept`)
is a direct hit or a miss. A bare code prefers `search_scope` — the entry pipe's own
domain, carried as `alias->domain` when the entry pipe came from a dependency package —
diff --git a/pipelex/libraries/pipe/pipe_library.py b/pipelex/libraries/pipe/pipe_library.py
index 4af6476ab..6407cac2c 100644
--- a/pipelex/libraries/pipe/pipe_library.py
+++ b/pipelex/libraries/pipe/pipe_library.py
@@ -70,10 +70,10 @@ class PipeLibrary(RootModel[PipeLibraryRoot], PipeLibraryAbstract):
return pipe
# 2. Cross-package refs. The bare-remainder search below survives the strictness change on
- # purpose (OQ3): the qualification pass leaves `alias->…` refs alone — it cannot know the
+ # purpose: the qualification pass leaves `alias->…` refs alone — it cannot know the
# dependency's domain layout — so removing it would break every `alias->bare_code` ref with
# no canonical spelling to migrate to. It is alias-scoped, so it cannot reach a host pipe;
- # revisit when the packaging design rules on cross-package reference forms.
+ # revisit when the packaging program (L-260827-0f95ca) rules on cross-package reference forms.
if QualifiedRef.has_cross_package_prefix(pipe_code):
alias, remainder = QualifiedRef.split_cross_package_ref(pipe_code)
# Try domain-qualified remainder as direct key
diff --git a/pipelex/migration/fingerprint.py b/pipelex/migration/fingerprint.py
index 8e957a0f4..676890778 100644
--- a/pipelex/migration/fingerprint.py
+++ b/pipelex/migration/fingerprint.py
@@ -479,7 +479,7 @@ def _fold_bound(*, collected: dict[ConstraintKind, int | float], other: dict[Con
correctly means recording bounds per member in the golden; no surface has a union with two
bound-carrying members today, and the alternative that needs no format change — dropping a kind
absent from some pool — cannot tell `gt` from `ge` here and would trade this over-report for a
- silent under-report, which is the worse of the two. See `wip/pr-1113-review-notes.md`.
+ silent under-report, which is the worse of the two.
"""
for kind, value in other.items():
existing = collected.get(kind)
diff --git a/pipelex/pipe_controllers/condition/pipe_condition.py b/pipelex/pipe_controllers/condition/pipe_condition.py
index 5c4a1e680..863a41739 100644
--- a/pipelex/pipe_controllers/condition/pipe_condition.py
+++ b/pipelex/pipe_controllers/condition/pipe_condition.py
@@ -131,8 +131,8 @@ class PipeCondition(PipeController):
@override
def validate_output_static(self):
- # OPTIONAL_OUTPUT_REQUIRED (D5/D6): `continue` resolves the declared output as ABSENT
- # (design §14), so a `continue`-reachable condition must declare its output optional —
+ # OPTIONAL_OUTPUT_REQUIRED (D5/D6 of the Optionals design, L-260930-241424): `continue` resolves the declared output as ABSENT,
+ # so a `continue`-reachable condition must declare its output optional —
# otherwise the no-output path would be invisible to the type system, which is exactly
# the invisible-optional wart this feature removes.
if self._continue_reachable and not self.output.presence.is_optional:
@@ -309,7 +309,7 @@ class PipeCondition(PipeController):
"selected_outcome": str(outcome),
}
- # Handle continue case (design §14, phase 1): `continue` resolves the declared output as
+ # Handle continue case (phase 1): `continue` resolves the declared output as
# ABSENT — a declared-absent record with provenance, memory otherwise unchanged. A previous
# main stuff stays under its own name (the migration idiom: consume it explicitly
# downstream); it no longer passes through as this pipe's output.
diff --git a/pipelex/pipeline/hint_warnings.py b/pipelex/pipeline/hint_warnings.py
index 21be5c758..eda0f667b 100644
--- a/pipelex/pipeline/hint_warnings.py
+++ b/pipelex/pipeline/hint_warnings.py
@@ -63,6 +63,8 @@ def _native_class_value_kind(*, class_name: str) -> HintSiteValueKind:
Mirrors the deriver's `_class_backed_node` lookup: `TextContent` is the native Text payload
(text-valued), `NumberContent` the native Number payload (number-valued). Every other class —
the remaining natives and registered project classes alike — is not a hint-applicable site.
+ One divergence is open (L-260930-173b03): the deriver reflects a registered `RootModel` over a
+ scalar as its root value, which this lookup still classifies as OTHER.
"""
native_code = next((code for code in NativeConceptCode if code.structure_class_name == class_name), None)
match native_code:
@@ -261,9 +263,9 @@ class _HintLinter:
return HintSiteValueKind.TEXT_VALUED
if isinstance(value.structure, str):
# Class-backed: a native class name maps by identity to its native's value kind,
- # mirroring the input-form deriver's judgment for resolvable sites (the known
- # divergences are recorded in wip/engine-hints/deferred.md). Any other registered
- # class is an object payload, hence OTHER.
+ # mirroring the input-form deriver's judgment for resolvable sites. Any other
+ # registered class is classified OTHER, though the deriver reflects a `RootModel`
+ # over a scalar as its root value (L-260930-173b03).
return _native_class_value_kind(class_name=value.structure)
return HintSiteValueKind.OTHER
diff --git a/pipelex/pipeline/input_form.py b/pipelex/pipeline/input_form.py
index 7b732eede..ff8237bf2 100644
--- a/pipelex/pipeline/input_form.py
+++ b/pipelex/pipeline/input_form.py
@@ -783,12 +783,12 @@ def _recast_text_kind(*, node: InputFormField, hints: dict[str, str], to_prose:
def _node_site_kind(node: InputFormField) -> HintSiteValueKind:
"""The node's site value-kind for intent applicability (spec: intent-hints.md, Applicability).
- Recomputed from node facts, mirroring the lint's structural judgment (the known divergences are
- recorded in wip/engine-hints/deferred.md): `number` nodes come only from `integer`/`number`
+ Recomputed from node facts, mirroring the lint's structural judgment: `number` nodes come only from `integer`/`number`
fields and `native.Number` chains, so the kind IS the judgment; `text`/`prose` nodes are
text-valued EXCEPT a time-formatted text (`type = "time"` is neither). A `native.Html` chain
derives an `object` node since the standard put it on the object arm, so it never reaches the
- text-valued case.
+ text-valued case. One divergence is open (L-260930-173b03): a class-backed `RootModel` over a
+ scalar derives its root value's node here, while the lint classifies every non-native class OTHER.
"""
match node:
case NumberField():
diff --git a/pipelex/pipeline/vacuous_presence_warnings.py b/pipelex/pipeline/vacuous_presence_warnings.py
index f01ad9ee8..a1be9673b 100644
--- a/pipelex/pipeline/vacuous_presence_warnings.py
+++ b/pipelex/pipeline/vacuous_presence_warnings.py
@@ -7,7 +7,7 @@ and every consumer that has to *materialise* the input (a form, an API client, a
inventing a meaning. That is what this lint names, on the report's advisory `warnings` array, so it
never flips `is_valid`.
-Two scoping decisions define the rule, both stated in `wip/full-optional/design.md`:
+Two scoping decisions define the rule:
- **Entry pipes only.** The smell exists at the boundary where a caller has to conjure the value —
the bundle's declared `main_pipe`. On an inner pipe the slot is fed by dataflow, and an
@@ -21,7 +21,7 @@ Two scoping decisions define the rule, both stated in `wip/full-optional/design.
restated here.
Nested structures are judged **one level deep**: a required field that is itself an all-optional
-object does not warn in this version (design §7 — the transitive notion's boundary is arguable, and
+object does not warn in this version (the transitive notion's boundary is arguable, and
a lint whose boundary is arguable is a lint that gets ignored).
"""
diff --git a/pipelex/plugins/contract.py b/pipelex/plugins/contract.py
index 49a49e01f..9f6366a3b 100644
--- a/pipelex/plugins/contract.py
+++ b/pipelex/plugins/contract.py
@@ -14,7 +14,7 @@ if TYPE_CHECKING:
#
# v3 added ``add_storage_provider`` and ``add_secrets_provider`` — two config-selected,
# process-global provider registries (``runtime.storage.method`` / ``runtime.secrets.method`` pick
-# the factory at boot). DX-1 batches both menu additions under this single bump so external plugins
+# the factory at boot). Both menu additions were batched under this single bump so external plugins
# re-declare ``targets_api`` only once.
#
# v4 split the single ``pipelex.plugins`` entry-point group into the two ``PluginGroup`` groups
diff --git a/pipelex/system/registries/class_registry_access.py b/pipelex/system/registries/class_registry_access.py
index 9230bf3f6..768ad29d3 100644
--- a/pipelex/system/registries/class_registry_access.py
+++ b/pipelex/system/registries/class_registry_access.py
@@ -39,8 +39,9 @@ own (the per-library `ClassRegistry` lives on `Library`). Today the two cannot d
interpreter hub resolves both the current library and the scoped registry from the same
``_library_id`` ContextVar, and every library the manager holds carries a registry of its own, so a
provider read and a registry read of that one variable land on the same library. Scoping resolution
-to the provider's own library is therefore a one-place change if it is ever needed; see
-``wip/inputs/provider-scoped-class-resolution.md`` for the trip-wires that would make it needed.
+to the provider's own library is therefore a one-place change if it is ever needed, and it becomes
+needed the day a caller passes a provider other than ``get_concept_library()``, such as a dependency
+library's ``concept_library`` or a library fetched by id.
``pipelex.runtime_hub.get_class_registry`` is the public accessor and delegates here; prefer it
everywhere except inside this module's own import closure.
diff --git a/pipelex/tools/secrets/secrets_config.py b/pipelex/tools/secrets/secrets_config.py
index 5f23e754e..cf30aaec1 100644
--- a/pipelex/tools/secrets/secrets_config.py
+++ b/pipelex/tools/secrets/secrets_config.py
@@ -11,7 +11,7 @@ class SecretsProviderConfig(ConfigModel):
(e.g. ``"vault"``). An unknown token is validated at registry lookup (``UnknownSecretsMethodError``
at boot), not at parse — so a config naming an external method still loads, and only the registry
decides what is installable. The built-in ``env`` method needs no per-method sub-config; a future
- external-provider config passthrough is a scoped follow-up (S4).
+ external-provider config passthrough is a possible follow-up, not built speculatively.
"""
method: str = Field(strict=False)
diff --git a/tests/integration/pipelex/cli/test_advisory_warning_channels.py b/tests/integration/pipelex/cli/test_advisory_warning_channels.py
index 4b5e91483..b7064d83f 100644
--- a/tests/integration/pipelex/cli/test_advisory_warning_channels.py
+++ b/tests/integration/pipelex/cli/test_advisory_warning_channels.py
@@ -11,7 +11,7 @@ know which pipes are entry pipes (it holds no `ValidateBundleResult` of its own)
doubles as the proof that the `acquire_library` load path really does accumulate them.
Two surfaces are deliberately absent. The builder's `validate_all` carries no `warnings` key at all
-and never did — see `wip/full-optional/deferred.md`. And the bare CLI's single-pipe `validate
+and never did (L-260930-3f3167). And the bare CLI's single-pipe `validate
<PIPE_CODE>` echoes none of them: it makes no bundle-wide claim, and neither lint has anything to say
about one pipe in isolation (the vacuous lint is scoped to entry pipes, the optionality lint
aggregates across flows).
diff --git a/tests/integration/pipelex/pipe_signature/test_pipe_signature_in_blueprint_union.py b/tests/integration/pipelex/pipe_signature/test_pipe_signature_in_blueprint_union.py
index 80f61d551..2287bf1a0 100644
--- a/tests/integration/pipelex/pipe_signature/test_pipe_signature_in_blueprint_union.py
+++ b/tests/integration/pipelex/pipe_signature/test_pipe_signature_in_blueprint_union.py
@@ -156,8 +156,8 @@ class TestPipeSignatureBlueprintUnion:
"""A typeless section whose keys are all contract-legal but that omits a REQUIRED contract
field (here `output`) is normalized to a signature and then fails the signature's own
required-field validation. The safety invariant holds: it is never silently accepted as a
- mock, and the missing field is named. (Categorizing this bare pydantic residual into a
- structured item is a deferred, pre-existing general gap — see wip/pipe-signature-not-a-type.md.)
+ mock, and the missing field is named. (The categorizer keeps this residual as an item of its
+ own, naming the pipe and the field path.)
"""
with pytest.raises(ValidationError) as exc_info:
PipelexBundleBlueprint.model_validate(
diff --git a/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_continue_delivery.py b/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_continue_delivery.py
index c532e4d46..7a54259b6 100644
--- a/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_continue_delivery.py
+++ b/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_continue_delivery.py
@@ -1,4 +1,4 @@
-"""PipeCondition's `continue` outcome resolves the declared output as ABSENT (design §14, breaking).
+"""PipeCondition's `continue` outcome resolves the declared output as ABSENT (breaking).
Phase-1 semantics: `continue` records a declared-absent AbsenceRecord for the declared output and
returns success — memory otherwise unchanged (a previous main stuff stays under its own name but no
diff --git a/tests/integration/pipelex/pipes/optionals/test_optional_guard_lint.py b/tests/integration/pipelex/pipes/optionals/test_optional_guard_lint.py
index cc97e56da..b2b19cfe7 100644
--- a/tests/integration/pipelex/pipes/optionals/test_optional_guard_lint.py
+++ b/tests/integration/pipelex/pipes/optionals/test_optional_guard_lint.py
@@ -113,7 +113,7 @@ class TestOptionalGuardLint:
assert wrapped.error_type == PipeValidationErrorType.OPTIONAL_INPUT_UNGUARDED
def test_presence_branching_idiom_is_accepted(self, load_empty_library: Callable[[], None]):
- """The design §15 idiom: branch on presence with an `is defined` inline conditional."""
+ """The documented idiom: branch on presence with an `is defined` inline conditional."""
load_empty_library()
condition = PipeFactory[PipeCondition].make_from_blueprint(
domain_code=_DOMAIN_CODE,
diff --git a/tests/unit/pipelex/cli/dev/test_drift_ack_cmd.py b/tests/unit/pipelex/cli/dev/test_drift_ack_cmd.py
index b4ef01b3f..8605581de 100644
--- a/tests/unit/pipelex/cli/dev/test_drift_ack_cmd.py
+++ b/tests/unit/pipelex/cli/dev/test_drift_ack_cmd.py
@@ -9,6 +9,7 @@ from typing import TYPE_CHECKING
import pytest
from typer.testing import CliRunner
+from pipelex.cli.dev_cli.commands.drift.core import DriftVerdict
from pipelex.cli.dev_cli.commands.drift.drift_cmd import drift_ack_cmd, drift_app, drift_check_cmd
from pipelex.cli.dev_cli.commands.drift.exceptions import DriftAckError, DriftGitError
from pipelex.cli.dev_cli.commands.drift.git_adapter import read_staged_files
@@ -51,9 +52,9 @@ class TestDriftAckCmd:
def test_ack_round_trip_then_check_green(self, git_repo: GitRepo, drift_console: Console) -> None:
"""Stage → ack → check green, with a passing verify command in the loop."""
_seed_repo(git_repo, verify_commands=[PASSING_VERIFY])
- drift_ack_cmd("demo-docs", rationale="Initial review, docs match.", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: Initial review, docs match.", repo_root=git_repo.root)
acks = load_all_acks(git_repo.root)
- assert acks["demo-docs"].rationale == "Initial review, docs match."
+ assert acks["demo-docs"].rationale == "clean-pass: Initial review, docs match."
assert acks["demo-docs"].reviewed_by == "Test User"
assert "src/demo.py" in acks["demo-docs"].trigger_files
drift_check_cmd(repo_root=git_repo.root)
@@ -61,7 +62,7 @@ class TestDriftAckCmd:
def test_ack_then_staged_edit_invalidates(self, git_repo: GitRepo) -> None:
_seed_repo(git_repo)
- drift_ack_cmd("demo-docs", rationale="Initial review.", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: Initial review.", repo_root=git_repo.root)
git_repo.write("src/demo.py", content="x = 2\n")
git_repo.add("src/demo.py")
with pytest.raises(SystemExit):
@@ -70,7 +71,7 @@ class TestDriftAckCmd:
def test_verify_failure_aborts_without_writing(self, git_repo: GitRepo, drift_console: Console) -> None:
_seed_repo(git_repo, verify_commands=[FAILING_VERIFY])
with pytest.raises(DriftAckError, match="exit 3"):
- drift_ack_cmd("demo-docs", rationale="Should not be written.", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: Should not be written.", repo_root=git_repo.root)
assert not ack_file_path(git_repo.root, contract_id="demo-docs").exists()
assert "boom output" in drift_console.export_text()
@@ -79,7 +80,7 @@ class TestDriftAckCmd:
second_command = f'{PYTHON} -c \'open("second_ran.txt", "w").write("ran")\''
_seed_repo(git_repo, verify_commands=[FAILING_VERIFY, second_command])
with pytest.raises(DriftAckError):
- drift_ack_cmd("demo-docs", rationale="nope", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: nope", repo_root=git_repo.root)
assert not marker.exists()
def test_empty_rationale_rejected(self, git_repo: GitRepo) -> None:
@@ -87,6 +88,35 @@ class TestDriftAckCmd:
with pytest.raises(DriftAckError, match="rationale"):
drift_ack_cmd("demo-docs", rationale=" ", repo_root=git_repo.root)
+ @pytest.mark.parametrize(
+ "rationale",
+ [
+ "Reviewed the demo docs, nothing stale.",
+ "clean pass: the verdict is misspelt.",
+ "Clean-Pass: the verdict is miscased.",
+ "clean-pass - no colon after the verdict.",
+ "reviewed the docs. clean-pass: the verdict is not first.",
+ "clean-pass:",
+ "clean-pass: ",
+ ],
+ )
+ def test_rationale_without_verdict_rejected_and_nothing_written(self, git_repo: GitRepo, rationale: str) -> None:
+ """The verdict is the only record of how a review ended, so an ack refuses a rationale that does not open with one."""
+ marker = git_repo.root / "verify_ran.txt"
+ marker_command = f'{PYTHON} -c \'open("verify_ran.txt", "w").write("ran")\''
+ _seed_repo(git_repo, verify_commands=[marker_command])
+ with pytest.raises(DriftAckError, match="must open with its verdict"):
+ drift_ack_cmd("demo-docs", rationale=rationale, repo_root=git_repo.root)
+ assert not ack_file_path(git_repo.root, contract_id="demo-docs").exists()
+ assert not marker.exists()
+
+ @pytest.mark.parametrize("verdict", list(DriftVerdict))
+ def test_each_verdict_is_accepted_and_recorded_verbatim(self, git_repo: GitRepo, verdict: DriftVerdict) -> None:
+ _seed_repo(git_repo)
+ rationale = f" {verdict}: reviewed docs/demo.md against src/demo.py. "
+ drift_ack_cmd("demo-docs", rationale=rationale, repo_root=git_repo.root)
+ assert load_all_acks(git_repo.root)["demo-docs"].rationale == rationale
+
def test_missing_rationale_option_rejected_by_cli(self, git_repo: GitRepo, monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.chdir(git_repo.root)
_seed_repo(git_repo)
@@ -96,12 +126,12 @@ class TestDriftAckCmd:
def test_reviewed_by_defaults_from_git_config(self, git_repo: GitRepo) -> None:
_seed_repo(git_repo)
- drift_ack_cmd("demo-docs", rationale="Default reviewer.", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: Default reviewer.", repo_root=git_repo.root)
assert load_all_acks(git_repo.root)["demo-docs"].reviewed_by == "Test User"
def test_by_overrides_git_config(self, git_repo: GitRepo) -> None:
_seed_repo(git_repo)
- drift_ack_cmd("demo-docs", rationale="Agent review.", reviewed_by_override="claude/session-42", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: Agent review.", reviewed_by_override="claude/session-42", repo_root=git_repo.root)
assert load_all_acks(git_repo.root)["demo-docs"].reviewed_by == "claude/session-42"
def test_unset_user_name_without_by_is_hard_error(self, git_repo: GitRepo, monkeypatch: pytest.MonkeyPatch) -> None:
@@ -110,19 +140,19 @@ class TestDriftAckCmd:
monkeypatch.setenv("GIT_CONFIG_SYSTEM", "/dev/null")
git_repo.git("config", "--unset", "user.name")
with pytest.raises(DriftAckError, match="--by"):
- drift_ack_cmd("demo-docs", rationale="No identity.", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: No identity.", repo_root=git_repo.root)
assert not ack_file_path(git_repo.root, contract_id="demo-docs").exists()
def test_unknown_contract_is_hard_error(self, git_repo: GitRepo) -> None:
_seed_repo(git_repo)
with pytest.raises(DriftAckError, match="no-such-contract"):
- drift_ack_cmd("no-such-contract", rationale="nope", repo_root=git_repo.root)
+ drift_ack_cmd("no-such-contract", rationale="clean-pass: nope", repo_root=git_repo.root)
def test_ack_permitted_with_dirty_tree_elsewhere(self, git_repo: GitRepo, drift_console: Console) -> None:
"""A clean tree is not required — only the trigger files' staged state matters."""
_seed_repo(git_repo)
git_repo.write("docs/demo.md", content="# Demo edited, unstaged\n")
- drift_ack_cmd("demo-docs", rationale="Dirty elsewhere is fine.", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: Dirty elsewhere is fine.", repo_root=git_repo.root)
drift_check_cmd(repo_root=git_repo.root)
assert "PASSED" in drift_console.export_text()
@@ -130,7 +160,7 @@ class TestDriftAckCmd:
_seed_repo(git_repo)
staged_oid = read_staged_files(git_repo.root)["src/demo.py"]
git_repo.write("src/demo.py", content="x = 999 # unstaged\n")
- drift_ack_cmd("demo-docs", rationale="Covers staged content only.", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: Covers staged content only.", repo_root=git_repo.root)
output = drift_console.export_text()
assert "unstaged modifications" in output
assert load_all_acks(git_repo.root)["demo-docs"].trigger_files["src/demo.py"] == staged_oid
@@ -138,7 +168,7 @@ class TestDriftAckCmd:
def test_untracked_trigger_file_warns(self, git_repo: GitRepo, drift_console: Console) -> None:
_seed_repo(git_repo)
git_repo.write("src/brand_new.py", content="new = True\n")
- drift_ack_cmd("demo-docs", rationale="Untracked file present.", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: Untracked file present.", repo_root=git_repo.root)
output = drift_console.export_text()
assert "untracked file matches triggers" in output
assert "src/brand_new.py" not in load_all_acks(git_repo.root)["demo-docs"].trigger_files
@@ -146,7 +176,7 @@ class TestDriftAckCmd:
def test_ack_file_is_auto_staged(self, git_repo: GitRepo) -> None:
"""The ack lands in the same index `drift check` reads — no forgot-to-add false green."""
_seed_repo(git_repo)
- drift_ack_cmd("demo-docs", rationale="Initial review.", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: Initial review.", repo_root=git_repo.root)
staged_paths = git_repo.git("diff", "--cached", "--name-only").splitlines()
assert ".drift/acks/demo-docs.toml" in staged_paths
@@ -157,7 +187,7 @@ class TestDriftAckCmd:
_seed_repo(git_repo, verify_commands=[marker_command])
git_repo.write("src/demo.py", content="x = 2 # unstaged\n")
with pytest.raises(DriftAckError, match="verify commands"):
- drift_ack_cmd("demo-docs", rationale="Should not be written.", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: Should not be written.", repo_root=git_repo.root)
assert not ack_file_path(git_repo.root, contract_id="demo-docs").exists()
assert not marker.exists()
@@ -165,7 +195,7 @@ class TestDriftAckCmd:
_seed_repo(git_repo, verify_commands=[PASSING_VERIFY])
git_repo.write("src/brand_new.py", content="new = True\n")
with pytest.raises(DriftAckError, match="verify commands"):
- drift_ack_cmd("demo-docs", rationale="Should not be written.", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: Should not be written.", repo_root=git_repo.root)
assert not ack_file_path(git_repo.root, contract_id="demo-docs").exists()
def test_verify_that_dirties_a_trigger_fails_after_verify(self, git_repo: GitRepo) -> None:
@@ -174,7 +204,7 @@ class TestDriftAckCmd:
_seed_repo(git_repo, verify_commands=[rewrite_trigger])
# The tree is clean before verify (pre-check passes); the verify command then dirties the trigger.
with pytest.raises(DriftAckError, match="verify commands"):
- drift_ack_cmd("demo-docs", rationale="Should not be written.", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: Should not be written.", repo_root=git_repo.root)
assert not ack_file_path(git_repo.root, contract_id="demo-docs").exists()
def test_stage_failure_removes_written_ack(self, git_repo: GitRepo, mocker: MockerFixture) -> None:
@@ -185,7 +215,7 @@ class TestDriftAckCmd:
side_effect=DriftGitError("git index locked"),
)
with pytest.raises(DriftAckError, match="staging"):
- drift_ack_cmd("demo-docs", rationale="Staging will fail.", repo_root=git_repo.root)
+ drift_ack_cmd("demo-docs", rationale="clean-pass: Staging will fail.", repo_root=git_repo.root)
assert not ack_file_path(git_repo.root, contract_id="demo-docs").exists()
with pytest.raises(SystemExit):
drift_check_cmd(repo_root=git_repo.root)
diff --git a/tests/unit/pipelex/cli/dev/test_drift_plan_cmd.py b/tests/unit/pipelex/cli/dev/test_drift_plan_cmd.py
index 8d1439cd6..8b59ba68a 100644
--- a/tests/unit/pipelex/cli/dev/test_drift_plan_cmd.py
+++ b/tests/unit/pipelex/cli/dev/test_drift_plan_cmd.py
@@ -69,12 +69,12 @@ class TestDriftPlanCmd:
assert "- docs/demo.md" in output
def test_ack_invocation_is_exact_and_copy_pasteable(self, git_repo: GitRepo, capfd: pytest.CaptureFixture[str]) -> None:
- """Agents run the emitted make command verbatim — its shape is part of the contract."""
+ """Agents run the emitted make command with only its placeholder filled in — its shape is part of the contract."""
_seed_repo(git_repo)
drift_plan_cmd(repo_root=git_repo.root)
output = capfd.readouterr().out
- assert 'make drift-ack CONTRACT=demo-docs RATIONALE="…"' in output
- assert 'make drift-ack CONTRACT=other-docs RATIONALE="…"' in output
+ assert 'make drift-ack CONTRACT=demo-docs RATIONALE="<real-catch|clean-pass|friction>: …"' in output
+ assert 'make drift-ack CONTRACT=other-docs RATIONALE="<real-catch|clean-pass|friction>: …"' in output
def test_modified_trigger_and_previous_rationale_are_reported(self, git_repo: GitRepo, capfd: pytest.CaptureFixture[str]) -> None:
_seed_repo(git_repo)
diff --git a/tests/unit/pipelex/codegen/test_projection_agrees_with_runtime_base.py b/tests/unit/pipelex/codegen/test_projection_agrees_with_runtime_base.py
index ca889e29d..73e857846 100644
--- a/tests/unit/pipelex/codegen/test_projection_agrees_with_runtime_base.py
+++ b/tests/unit/pipelex/codegen/test_projection_agrees_with_runtime_base.py
@@ -16,7 +16,7 @@ Two shapes sit outside it, both because the crate genuinely cannot see what they
floor): a concept backed by a hand-written Python class, and one refining a target the crate does not
carry (a cross-package base leaves `structureless=True` *with* `base_ref` set, so it lands on the root
rather than on this module's structureless arm). Neither is gated here, and neither is a defect this
-module can settle — see `wip/parity/structureless-concept-with-registered-class.md`.
+module can settle; the first is the open decision L-260930-3074fe.
"""
from pathlib import Path
diff --git a/tests/unit/pipelex/core/memory/input_shaper/test_anything_schema_agreement.py b/tests/unit/pipelex/core/memory/input_shaper/test_anything_schema_agreement.py
index 26b674754..85c4d3d3c 100644
--- a/tests/unit/pipelex/core/memory/input_shaper/test_anything_schema_agreement.py
+++ b/tests/unit/pipelex/core/memory/input_shaper/test_anything_schema_agreement.py
@@ -13,7 +13,7 @@ from tests.unit.pipelex.core.memory.input_shaper.data import build_input_specs
# (multiplicity, provided value) — every JSON type at each declaration, including the ones refused. Two shapes
# are left out because the two sides differ on them by design: a single bare value at `Anything[]`, which the
# shaper wraps into a one-item list, and an `Anything[]` item keyed exactly `concept` and `content`, which R10
-# refuses and the schema does not state (`wip/anything-slot/plan.md` defers it).
+# refuses and the schema does not state (L-260902-10eb56 deferred stating it).
AGREEMENT_CASES: list[tuple[VariableMultiplicity | None, Any]] = [
(None, {}),
(None, {"a": 1}),
diff --git a/tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py b/tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py
index af0a979bc..4af5f35cd 100644
--- a/tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py
+++ b/tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py
@@ -82,7 +82,7 @@ MULTIPLICITY_CASES: list[tuple[str, str, VariableMultiplicity | None, Any, str,
),
# A top-level list of bare date objects (e.g. a TOML `deadlines = [2026-01-01, 2026-02-02]` array
# the loader leaves untouched) shapes element-wise into ListContent[DateContent] under a declared
- # Date-refining `[]` input — the case `case1-bare-date-arm-gap.md` deferred, now closed by the shaper.
+ # Date-refining `[]` input — a shape the bottom-up factory has no arm for, which the shaper builds.
(
"variable-list-of-date-objects",
"shaper_test.Deadline",
diff --git a/tests/unit/pipelex/libraries/test_concept_library_entry_lookup.py b/tests/unit/pipelex/libraries/test_concept_library_entry_lookup.py
index 0b2f96e1a..7280b8b6b 100644
--- a/tests/unit/pipelex/libraries/test_concept_library_entry_lookup.py
+++ b/tests/unit/pipelex/libraries/test_concept_library_entry_lookup.py
@@ -1,7 +1,7 @@
"""The concept entry affordance: how a human-supplied concept string resolves.
-Mirrors the pipe-side entry affordance deliberately without sharing code with it (see
-wip/pipe-refs/entry-affordance-share-vs-duplicate.md). The rows only discriminate against the
+Mirrors the pipe-side entry affordance deliberately without sharing code with it (natives and the
+scope preference have no pipe-side equivalent). The rows only discriminate against the
old crate-wide rule when a sibling domain declares the same code — a single-domain fixture
passes under either rule — so most cases here build the two-domain `alpha`/`beta` fixture.
"""
diff --git a/tests/unit/pipelex/migration/test_surface_directories.py b/tests/unit/pipelex/migration/test_surface_directories.py
index 0854d01be..5c250d345 100644
--- a/tests/unit/pipelex/migration/test_surface_directories.py
+++ b/tests/unit/pipelex/migration/test_surface_directories.py
@@ -23,7 +23,7 @@ BACKENDS = Path("inference") / "backends"
class TestADirectoryIsHalfTheClaim:
@staticmethod
def _registry(build_surface: SurfaceBuilder) -> SurfaceRegistry:
- """The shape the real registry has after S7b: a root family and a subdirectory family."""
+ """The shape the real registry has since the inference-backend surface joined it: a root family and a subdirectory family."""
return SurfaceRegistry(
surfaces=[
build_surface(surface_id="pipelex-config", base_file="pipelex.toml", tier_glob="pipelex_*.toml"),
diff --git a/tests/unit/pipelex/pipeline/test_vacuous_presence_warnings.py b/tests/unit/pipelex/pipeline/test_vacuous_presence_warnings.py
index 27082cfbe..3bb32092b 100644
--- a/tests/unit/pipelex/pipeline/test_vacuous_presence_warnings.py
+++ b/tests/unit/pipelex/pipeline/test_vacuous_presence_warnings.py
@@ -1,6 +1,6 @@
"""The vacuous-presence lint's decision table, over hand-built input-form descriptors.
-One case per row of the design's rule table (`wip/full-optional/design.md` §3): a gating slot whose
+One case per row of the rule's decision table: a gating slot whose
concept declares no required field warns; everything else is silent, and each silence is asserted
here rather than assumed. The descriptors are built by hand — the lint is pure over them, so the
table needs no library window and no crate.
@@ -146,7 +146,7 @@ class TestVacuousPresenceWarnings:
assert _lint(slots=[slot]) == []
def test_fixed_count_list_is_silent(self):
- """`Concept[N]` gates, but the vacuity question is per item — deferred (design §7)."""
+ """`Concept[N]` gates, but the vacuity question is per item, so this version stays silent."""
slot = ListField(
name="opts",
concept_ref=OPTIONS_CONCEPT_REF,
diff --git a/tests/unit/pipelex/tools/test_jinja2_optional_guards.py b/tests/unit/pipelex/tools/test_jinja2_optional_guards.py
index ef79a66e4..55b0df2ba 100644
--- a/tests/unit/pipelex/tools/test_jinja2_optional_guards.py
+++ b/tests/unit/pipelex/tools/test_jinja2_optional_guards.py
@@ -97,7 +97,7 @@ class TestDetectUnguardedOptionalReferences:
assert findings[0].path == "assessment"
def test_expression_category_supported(self):
- """The PipeCondition presence-branching idiom (design §15) lints clean."""
+ """The PipeCondition presence-branching idiom lints clean."""
findings = detect_unguarded_optional_references(
template_category=TemplateCategory.EXPRESSION,
template_source="{{ 'present' if penalty_clause is defined else 'absent' }}",
diff --git a/tests/unit/repo/test_docs_cite_nothing_private.py b/tests/unit/repo/test_docs_cite_nothing_private.py
new file mode 100644
index 000000000..3512e55cf
--- /dev/null
+++ b/tests/unit/repo/test_docs_cite_nothing_private.py
@@ -0,0 +1,87 @@
+"""Guards the published documentation against citations its readers cannot follow.
+
+`docs/` is the MkDocs `docs_dir` published at docs.pipelex.com. A workspace ledger id, a `wip/` path or a
+document at the root of the private workspace (its `docs/specs/`, its ledger, its conventions) means
+something to a contributor with the workspace checked out and nothing to anyone reading the site, so the
+page states the fact in plain words, links a public page that states it, or leaves the pointer out. Ids and
+paths stay welcome in code comments, commit messages and pull request bodies.
+"""
+
+from __future__ import annotations
+
+import re
+from pathlib import Path
+
+#: Anchored on `tests/` by name rather than by a parent count — a depth index is silently wrong from the
+#: workspace root, which holds a sibling `pipelex/` checkout (see `test_hub_layering_guard.py`).
+REPO_ROOT = next(parent for parent in Path(__file__).resolve().parents if parent.name == "tests").parent
+
+DOCS_DIR = REPO_ROOT / "docs"
+
+#: A `pymdownx.snippets` include, whose path resolves against `base_path: .` in `mkdocs.yml`, the repo root.
+#: The file it names is published as part of the page, so it is held to the same rule.
+SNIPPET_INCLUDE_PATTERN = re.compile(r'^\s*--8<--\s+"([^"]+)"')
+
+#: Read on the raw line, so an id is caught inside a URL too.
+PRIVATE_ID_PATTERNS: dict[str, re.Pattern[str]] = {
+ "ledger item id": re.compile(r"\bL-\d{6}-[0-9a-f]{6}\b"),
+ "workspace reference": re.compile(r"\bworkspace[- ](root|ledger|convention)s?\b", re.IGNORECASE),
+}
+
+#: A URL is somebody else's path space (`https://opentelemetry.io/docs/specs/…`), so the path patterns read the
+#: line with its URLs blanked out.
+URL_PATTERN = re.compile(r"\b[a-z][a-z0-9+.-]*://\S+", re.IGNORECASE)
+
+#: A path segment, whether bare, backticked or behind a relative link (`../../wip/`), but not one that merely
+#: ends a longer name (`mthds-wip/`).
+PRIVATE_PATH_PATTERNS: dict[str, re.Pattern[str]] = {
+ "wip/ path": re.compile(r"(?<![\w-])wip/"),
+ # This repository has no docs/specs/, so the path can only name the workspace's.
+ "workspace spec path": re.compile(r"(?<![\w-])docs/specs/"),
+}
+
+TEXT_SUFFIXES = frozenset({".md", ".html", ".css", ".txt", ".yml", ".yaml"})
+
+
+def published_files() -> list[Path]:
+ """Every text file under docs/, plus every file a docs page pulls in with a snippet include."""
+ doc_files = {path for path in DOCS_DIR.rglob("*") if path.is_file() and path.suffix in TEXT_SUFFIXES}
+ included_files: set[Path] = set()
+ for doc_file in doc_files:
+ for line in doc_file.read_text(encoding="utf-8").splitlines():
+ if include := SNIPPET_INCLUDE_PATTERN.match(line):
+ included_files.add(REPO_ROOT / include.group(1))
+ return sorted(doc_files | included_files)
+
+
+def private_references(*, line: str) -> list[str]:
+ """The labels of the private references the line carries."""
+ url_free_line = URL_PATTERN.sub("", line)
+ return [label for label, pattern in PRIVATE_ID_PATTERNS.items() if pattern.search(line)] + [
+ label for label, pattern in PRIVATE_PATH_PATTERNS.items() if pattern.search(url_free_line)
+ ]
+
+
+class TestDocsCiteNothingPrivate:
+ def test_published_docs_cite_nothing_in_the_private_workspace(self) -> None:
+ """Every published page reads without the private workspace: no ledger id, no `wip/` path, no workspace-root document."""
+ doc_files = published_files()
+ assert doc_files, f"no documentation files found under {DOCS_DIR}"
+ offending_lines: list[str] = []
+ for doc_file in doc_files:
+ assert doc_file.is_file(), f"a docs page includes {doc_file.relative_to(REPO_ROOT)}, which does not exist"
+ for line_number, line in enumerate(doc_file.read_text(encoding="utf-8").splitlines(), start=1):
+ offending_lines.extend(
+ f"{doc_file.relative_to(REPO_ROOT)}:{line_number}: {label}: {line.strip()[:160]}" for label in private_references(line=line)
+ )
+ assert not offending_lines, (
+ "docs/ is published on docs.pipelex.com, whose readers cannot open the private workspace: "
+ "state the fact in plain words, link a public page, or drop the pointer.\n" + "\n".join(offending_lines)
+ )
+
+ def test_private_path_patterns_catch_relative_links_and_skip_urls(self) -> None:
+ """A relative link out of docs/ is the likeliest way a page cites the workspace; another site's URL is not a citation."""
+ for cited in ("[d](../../wip/foo.md)", "./wip/x", "`wip/x`", "[s](../../../docs/specs/corpus.md)", "`docs/specs/x.md`"):
+ assert private_references(line=cited), cited
+ for clean in ("mthds-wip/x", "https://opentelemetry.io/docs/specs/semconv/", "https://example.com/wip/y"):
+ assert not private_references(line=clean), clean
diff --git a/wip/S2-DONE.md b/wip/S2-DONE.md
deleted file mode 100644
index 2554ab1e7..000000000
--- a/wip/S2-DONE.md
+++ /dev/null
@@ -1,107 +0,0 @@
-# S2 — Enrich: implementation tracker
-
-Seeded from [`wip/enrich/design.md`](wip/enrich/design.md) §7 (the design stays authoritative for rationale; this file tracks live progress). Milestone branch: `feature/Enrich`.
-
-## Decisions ratified (Phase 0, 2026-08-23, by Louis)
-
-1. **E3 — reject the pair.** A structure field declaring both `required = true` and a `default_value` is a validation error (breaking; mthds spec sentence via inbox; the sole fixture instance moves to `rejected/`).
-2. **E5/E9 — replace, not add.** Input contract `presence: "plain" | "optional" | "force"` **replaces** `optional`; `multiplicity` goes three-valued (`single`/`variable`/`fixed`) with `item_count` exactly when `fixed`, on input and output contracts. Output keeps its two-valued `optional`. Breaking protocol change, spec-first, rides the release cascade.
-3. **Reflected defaults are authored facts.** A pydantic default on a reflected class field reports `required: false` + its `default_value` in the descriptor; `field_info.is_required()` is the single source of truth.
-
-## Phase 0 — ratify and sweep
-
-- [x] Decisions §6 confirmed by Louis (see above)
-- [x] Sweep at head: hopeful extra keys in structure-field tables across fixtures, corpus entries, and cookbook-adjacent test data (E7 fallout list)
-- [x] Sweep at head: `required = true` + `default_value` pairs across the same surfaces (E3 fallout list)
-- [x] Inventory captures that pin emitted schema bytes (codegen/validate parity corpora, conformance captures, characterization tests) so Phase 2 re-baselines are deliberate
-- [x] Record the fixture-fallout list for Phases 1–2 below
-
-### Phase 0 findings
-
-- **Structure-field sweep (2026-08-23, at head of `feature/Enrich`):** parsed every `.mthds`/concept-bearing `.toml` under this worktree, `pipelex-cookbook`, and `pipelex-starter-python`. The ONLY unknown-key carrier is the probe bundle's `constrained_count` (`tests/data/input_semantics/probe_bundle.mthds:61` — extras `minimum`, `maximum`, `examples`, `unit`), and the ONLY `required`+`default_value` pair is the probe bundle's `titled_default` (`probe_bundle.mthds:30`). No fallout anywhere else; both fields are handled by the design's own plan (extras: E7 flip keeps them as deliberate rejected-case material; `titled_default` moves to a `rejected/` fixture in Phase 4).
-- **Schema-byte capture inventory (very thorough sweep):** NOTHING under `tests/` pins schema bytes — every schema assertion is key-presence or single-value, so Phase 2's render changes are test-green without re-baselining (no snapshot framework exists in the repo). The only committed full-schema payloads are the S1 audit captures under `wip/input-semantics/probe/` (hop3 raw schemas, hop4 renders, hop5 contracts), re-baselined by one command: `.venv/bin/pipelex-dev trace-input-semantics tests/data/input_semantics/probe_bundle.mthds -o wip/input-semantics/probe`. Hand edits Phase 2 owes: `docs/tools/cli/build/output.md:161-239` (its example `--format schema` output shows the class-name `title`, no top-level `description`, and a `MyType[5]` array with no `minItems`/`maxItems` — falsified by all three enrichments). Digest surfaces checked (migration fingerprints, crate fingerprints, codegen stamps): none hashes rendered schema. Conformance (sibling repo) pins nothing schema-byte-wise; it becomes relevant only at Phase 3. Natural home for new seam unit tests: `tests/unit/pipelex/core/concepts/test_concept_representation_generator.py`; for integration assertions: `tests/integration/pipelex/cli/test_trace_input_semantics_cmd.py`.
-
-## Phase 1 — loudness (E7, E8)
-
-- [x] E7: `extra="forbid"` on `ConceptStructureBlueprint` (`pipelex/core/concepts/concept_structure_blueprint.py`) — field-table *keys* strict; hint *content* stays lenient (unknown hint keys still warn + preserve)
-- [x] E8: builder writes `default_value`, not `default` (`pipelex/builder/operations/concept_ops.py`)
-- [x] E8: write-then-validate round-trip test for builder-authored defaults (`tests/unit/pipelex/builder/operations/test_concept_spec_to_toml.py` — two existing assertions had pinned the buggy `default` key and were fixed too)
-- [x] Regenerate `mthds_schema.json` — `ConceptStructureBlueprint` now carries `additionalProperties: false` (schema is generated + gitignored; downstream copies sync at release per the filed inbox item)
-- [x] Apply Phase 0 fixture fallout: probe bundle's `constrained_count` lost its hopeful extras (its description string kept byte-identical — it is hashed by the fingerprint pins); the extras live on in the new `tests/data/input_semantics/rejected/unknown_structure_field_key.mthds_invalid`
-- [x] Unit tests: forbid rejection + hint leniency (`tests/unit/pipelex/core/concepts/concept_blueprint/test_concept_structure_blueprint_extra_keys.py`)
-- [x] H2 fingerprint invariant check: `test_fingerprint_pins.py` green with UNCHANGED pins
-- [x] Changelog (Unreleased): E7 breaking (Changed) + E8 fix (Fixed)
-- [x] Deliver + remove inbox item `../wip/inbox/2026-08-21-pipelex-builder-default-key-dropped.md` (deleted; fix, round trip, and forbid all delivered)
-
-**Checkpoint 1** — authoring loop honest, nothing wire-visible changed yet.
-
-- [x] Checkpoint 1: tracker updated, `make agent-check` green, targeted tests green (concepts + builder + fingerprint pins + input-form integration)
-
-### Checkpoint 1 state (for cold start)
-
-Decisions all ratified (§ above). Phase 1 delivered E7+E8 entirely inside: `concept_structure_blueprint.py` (forbid), `concept_ops.py` (key fix), probe bundle + new rejected fixture, three test modules touched. Note for Phase 4: removing `titled_default` from the probe bundle WILL move the pinned hint-free fingerprints in `tests/unit/pipelex/libraries/test_fingerprint_pins.py` — that is a legitimate fixture-content change, not a model leak; the pins must be recomputed then, against the test docstring's usual advice, or the pin test moved onto a stable fixture. The check-mthds PostToolUse hook flags the probe bundle with a stale bundled schema — `plxt lint` with the regenerated `derived/mthds_schema.json` is the authority and passes.
-
-## Phase 2 — schema enrichment (E6, E1-title, E4)
-
-- [x] E6: `_render_schema_representation` (`pipelex/core/concepts/concept.py`) injects the concept's authored description as top-level `description` (no-op for generated classes; authored fact for class-backed; pinned native blueprint description for native direct inputs)
-- [x] E6: docstrings on native content classes lacking one (`TextContent`, `ImageContent`, `DocumentContent`, `PageContent`, `NumberContent`, `HtmlContent`, `YesNoContent`) — pinned description text verbatim; the pinned-consistency test (`tests/unit/pipelex/codegen/test_native_expansion.py`) compares factory descriptions, not docstrings, so no interference
-- [x] E1: top-level `title` becomes the concept ref at the same render seam (nested identity stays descriptor-only; no `$defs` renames)
-- [x] E4: `render_concept_representation` takes real multiplicity (not a boolean) — threaded through `render_stuff_spec`; new helpers `is_multiple_multiplicity` / `fixed_item_count` in `variable_multiplicity.py`; `StuffSpec.is_multiple()` delegates; `runner_code.py` local `_is_multiple` deleted in favor of the shared helper
-- [x] E4: array wrap emits `minItems`/`maxItems` = N when fixed; variable `[]` gets neither bound; `[1]` stays single (no wrap, no bounds)
-- [x] E4: contract memo key normalized to `(concept_ref, is_multiple, fixed_count)` (avoids the `hash(True) == hash(1)` collision between `Concept[]` and `Concept[1]`)
-- [x] Guard: `DocumentContent.url` field-description wording untouched (class gained only a docstring)
-- [x] Probe bundle + trace harness: no extension needed — the existing fixtures already exercise class-backed (`probe_refined.classbacked`), native-direct (`probe_native_inputs`), and fixed-count (`probe_markers.two = Gadget[2]`) inputs; all three enrichments verified present in the regenerated captures
-- [x] Re-baseline the Phase 0-inventoried schema-byte captures: `wip/input-semantics/probe/` regenerated; `docs/tools/cli/build/output.md` schema examples hand-updated (concept-ref title, top-level description, `minItems`/`maxItems`)
-- [x] Unit tests at the render seams: four new tests in `TestSchemaRepresentationWithMultiple` (title/description injection, array identity on items, fixed-count bounds, `[1]` stays single) + `tests/unit/pipelex/core/pipes/test_multiplicity_helpers.py` for the two helpers
-- [x] Changelog (Unreleased): additive schema enrichments
-
-**Checkpoint 2** — the "zero client changes" half complete and measurable.
-
-- [x] Checkpoint 2: tracker updated, checks green
-
-### Checkpoint 2 state (for cold start)
-
-Phase 2 delivered entirely inside: `concept.py` (render seam: multiplicity param + title/description injection + array bounds), `variable_multiplicity.py` (two new helpers), `stuff_spec.py` (delegation + pass-through), `runner_code.py` (shared helper), `pipe_io_contracts.py` (normalized memo key), seven native content classes (docstrings), plus tests, probe re-baseline, and the docs example. Signature change is breaking for direct callers of `render_concept_representation` (`is_multiple` → `multiplicity`) — all in-repo callers and tests updated. Phase 3 recon (from the paused-note, still valid): `PresenceMarker` in `variable_multiplicity.py` is exactly the contract's `presence` vocabulary; contract models to replace are `pipe_io_contracts.py` (`IOMultiplicity`, `PipeInputContract`, `PipeOutputContract`). Note for Phase 4 (unchanged): removing `titled_default` from the probe bundle WILL move the pinned hint-free fingerprints in `test_fingerprint_pins.py` — recompute the pins then.
-
-## Phase 3 — contract reshaping (E5, E9) — protocol change, spec-first
-
-- [x] Spec: `../docs/specs/pipelex-mthds-protocol.md` — `pipe_io_contracts` row, "Optional IO contracts and liftable pipes" section, Verified-by line, and the abridged `ValidReport` example all updated to `presence` / three-valued `multiplicity` + `item_count`
-- [x] Spec: one sentence documenting `json_schema` as pydantic-canonical, single-choice enums as `const` (E10's documentation half) — appended to the `pipe_io_contracts` row
-- [x] Conformance: assertions reshaped in `conformance/tests/pipelex_api/test_validate_optionals.py` — the gate is shape-detected (`presence` absent → skip), so it arms automatically when `pipelex-api` re-pins at the cascade; the fixed-count arm stays pinned in pipelex's own suite (the shared optionals fixture has no `[N]` slot, deliberately not extended)
-- [x] `make check-spec-links` in `conformance/` — green (note: `make agent-check` there also surfaced PRE-EXISTING vendored-corpus drift on `vocabulary.toml` from H2, covered by the filed release-time sync inbox item — not this branch's to fix)
-- [x] Engine: `PipeInputContract.presence` replaces `optional` (reuses `PresenceMarker` — same wire values as the descriptor); input + output gain three-valued `IOMultiplicity` (+`FIXED`) and `item_count` via the new `make_io_multiplicity` projection; output `optional` unchanged
-- [x] Emission threads real multiplicity (retired `IOMultiplicity`'s fixed-reports-as-variable ruling)
-- [x] Tests on the contract fields: `tests/integration/pipelex/pipeline/test_pipe_io_contracts.py` reshaped + new `make_two` fixed-count pipe pinning `fixed`/`item_count=2` on input and output plus the bounded array schema
-- [x] Changelog (Unreleased): breaking protocol reshape
-- [x] Probe hop5 capture re-baselined (same regen command); verified `opt/many/two/forced` report exactly (`optional`,`single`) / (`plain`,`variable`) / (`plain`,`fixed`,2) / (`force`,`single`)
-
-**Checkpoint 3** — the protocol change contained in one reviewable unit.
-
-- [x] Checkpoint 3: tracker updated, checks green (`make check` exit 0; the full suite surfaced ONE stale assertion — `test_trace_input_semantics_cmd.py` still pinned the pre-reshape `inputs.hint.optional` — fixed to `presence`/`multiplicity`; full-suite green rides Phase 4's final gate)
-
-## Phase 4 — semantics and close (E3, reflected defaults)
-
-- [x] E3: model validator on `ConceptStructureBlueprint` rejecting `required = true` + `default_value` (message names both remedies) + unit seam `test_concept_structure_blueprint_required_default.py`
-- [x] E3: generator's accidental branch replaced by an explicit raising invariant (`ConceptStructureGeneratorError`) + unit seam `test_structure_generator_required_default_invariant.py`
-- [x] E3: probe bundle's `titled_default` moved to `rejected/required_with_default.mthds_invalid`; pair-sweep fallout applied (builder fixture `test_data.py` had authored the pair — `age` keeps `required`, drops the default); `test_input_form.py` now pins `motto` (`required: false` beside its default); fingerprint pins legitimately recomputed (fixture-content change, recorded in the pin module's docstring)
-- [x] Reflected defaults: `_with_reflected_constraints` reads `field_info.is_required()` + `field_info.default` (a `None` default is the optionality artifact, never reported); kind-table row via the new `retries` field on `InputFormConstrainedPayload`
-- [x] Descriptor spec touch-up: the "may carry both" sentence retired (`default_value` row now states the rejection), the "Facts over emission accidents" bullet notes the founding case resolved, the Verified-by line follows; the D2 conformance skeleton's fixture + assertions moved with it (`required = true` dropped from its `title` field) — `make check-spec-links` green
-- [x] Survival table updated with before/after closure rows (E3, E4, E5, E6/E1, E7, E9) against regenerated `wip/input-semantics/probe/` captures (`titled_default` gone from all hops)
-- [x] Findings addendum §F: per-entry closure evidence table
-- [x] Roadmap Track S closure bullet: in-engine close now, hosted-wire half at the cascade
-- [x] Changelog (Unreleased): E3 breaking + reflected-defaults ruling (Changed)
-- [x] Cross-repo inbox filings (§8): `2026-08-23-mthds-structure-field-validation-sentences.md`, `2026-08-23-pipelex-js-mirror-schema-enrichments-and-contract-reshape.md`, `2026-08-23-mthds-js-protocol-types-contract-reshape.md`
-- [x] In-repo docs swept: `inline-structures.md` gains the `required` bullet + the pair rule; `under-the-hood/input-form-descriptor.md` constraint paragraph updated (E7 made the "parser drops unknown constraint keys" claim false) + reflected-defaults sentence
-- [x] Final: `make agent-check` + full `make agent-test` green (suite exit 0)
-
-## PR #1149 review loop
-
-- [x] PR created (`feature/Enrich` → `dev`), CI fully green on first push
-- [x] Bot reviews (Greptile + codex): both converged on ONE finding — `item_count: null` for non-fixed multiplicity "violates the contract". REJECTED after verification: the protocol spec, its wire example, and `conformance/tests/pipelex_api/test_validate_optionals.py` all pin `item_count: null` off the fixed arm for `pipe_io_contracts` (the omit-when-absent convention belongs to the input-form descriptor; the two artifacts deliberately differ). Replied with evidence, resolved both threads; the misleading docstring wording disambiguated
-- [x] gstack `/review @TODOS.md` (fresh context): verdict SHIP, no P1. Clear wins applied: spec-layer E3 validator on `ConceptStructureSpec` (same two-remedies message; an authoring agent no longer validates green then dies on its own TOML) + spec-level test; stale `default_value` docstring in `input_form.py` fixed; inline duplicate of `fixed_item_count` in `derive_slot` replaced by the helper; parser-level tests wiring both new `rejected/` fixtures (`test_parser_rejected_structure_fields.py`); `force` presence pinned on the wire contract (`brief = "Text!"`); `Text[1]`→single contract projection + memo-key collision pinned (`make_from_one`); reflected `default_factory` (no fabricated default) and falsy default (`False` survives the None guard) pinned; wire-level `item_count`-always-present pinned in the trace test; changelog extended with the spec-layer half
-- [x] Deferred (review findings short of clear wins): `wip/enrich/deferred.md` — non-serializable reflected default, `_peel_multiplicity` `[1]`-as-list divergence (pre-existing), `_with_reflected_constraints` naming, double multiplicity normalization, mostly-inert `rejected/` corpus audit. Skipped outright: 0/negative-count helper rows (unreachable from bundles)
-- [x] Cross-repo: `../wip/inbox/2026-08-23-mthds-form-contract-reshape.md` filed — `mthds-form` still gates the Run button on the retired input `optional` and lacks the `fixed` multiplicity arm; no reshape item covered it
-
-## Out of scope (per design §9)
-
-Language ceiling (S1 §B) syntax, app-side fixes (M1), corpus widening, `const`→`enum` render rewrite, descriptor wire-model round-trip alias (D4).
diff --git a/wip/anything-slot/design.md b/wip/anything-slot/design.md
deleted file mode 100644
index 9a87f4a3b..000000000
--- a/wip/anything-slot/design.md
+++ /dev/null
@@ -1,244 +0,0 @@
----
-status: landed
-item: L-260902-10eb56
----
-
-# What an `Anything` or `JSON` input slot takes, and how the rest of the shaper's fallback refuses
-
-`native.Anything` is the concept the MTHDS standard defines as the untyped vehicle: structureless by design, "accepts any type". Its published input contract already says so — a permissive JSON Schema and the fill-in template `{"concept": "native.Anything", "content": {}}` — but the input shaper does not honour it. This document verifies the bug, rules on what an `Anything` slot takes and what stuff it produces, and rules jointly on the two sibling items the ledger asked to have decided together.
-
-The same fallback path also breaks `native.JSON` slots, and it refuses everything else it cannot read without naming the slot, which a later report ran into: "one input was a list of plain JSON objects … most likely an Anything or dynamic slot". So the design also gives `JSON` a handler of its own whose compact template is the bare object (R7), and makes the fallback's remaining refusals typed input errors that name the input and its declared concept (R8). It rules on an envelope-shaped item inside an `Anything[]` or `JSON[]` list (R10), and on how the docs teach the choice among the untyped concepts (R11). And because a value that goes in has to come back out, it rules on the wire form of an `Anything` value on the output side too (R9), which is built under its own items rather than here. The build is in `plan.md` beside it.
-
-## Verification
-
-The bug is confirmed on `dev` at `be796a0d8`, and it is wider than filed. Measured through `pipelex.kernel.memory_ops.shape_inputs`, the entry point an entry-pipe run uses, with a `PipeCompose` declaring `inputs = { anything_in = "Anything" }` and a second declaring `inputs = { items = "Anything[]" }`:
-
-```
-== carry (anything_in)
- bare {} REFUSED StuffFactoryError: ... does not have a 'concept' key.
- bare string OK -> concept=native.Text content=TextContent
- bare number REFUSED StuffFactoryError: Unexpected type for stuff_content_or_data: <class 'int'>
- bare float REFUSED StuffFactoryError: Unexpected type for stuff_content_or_data: <class 'float'>
- bare bool REFUSED StuffFactoryError: Unexpected type for stuff_content_or_data: <class 'bool'>
- bare list REFUSED StuffFactoryError: Cannot create Stuff from list of <class 'int'>
- bare dict REFUSED StuffFactoryError: ... does not have a 'concept' key.
- envelope {} REFUSED StuffFactoryError: ... 'Anything' is not compatible with a dict content
- envelope str REFUSED StuffFactoryError: ... 'Anything' is not compatible with native concept 'native.Text', ...
- envelope num REFUSED StuffFactoryError: Unexpected type for content value: <class 'int'>
- envelope list REFUSED StuffFactoryError: Cannot create Stuff from list of <class 'int'> in content
- envelope native.Text REFUSED ExplicitConceptIncompatibleError: ... declares concept 'native.Anything', but you provided a value typed as 'native.Text'
- envelope native.JSON REFUSED ExplicitConceptIncompatibleError: ... typed as 'native.JSON' ...
- envelope Question REFUSED ExplicitConceptIncompatibleError: ... typed as 'anything_probe.Question' ...
-== carry_list (items)
- bare [{}] REFUSED StuffFactoryError: Cannot create Stuff from list of <class 'dict'>
- bare [str] OK -> concept=native.Text content=ListContent
- bare [1,2] REFUSED StuffFactoryError: Cannot create Stuff from list of <class 'int'>
- bare [] REFUSED StuffFactoryError: Cannot create Stuff 'items' from empty list
- envelope [{}] REFUSED ValidationError: 1 validation error for TextContent (raw pydantic, untyped)
-```
-
-Three things the item did not record:
-
-- **A typed envelope is refused too.** `{"concept": "Text", "content": "hi"}`, a `native.JSON` envelope and a user concept are all refused with `ExplicitConceptIncompatibleError`. The cause is `ConceptLibrary.is_compatible(tested=X, wanted=native.Anything)`, which answers `False` for every `X` but `Anything` itself: the declaration tier (`Concept.are_compatible_by_declaration`, `pipelex/core/concepts/concept.py`) has no rule for it, and the class tier bails out because `Anything` declares no class. So the one spelling that names its type explicitly — D6's escape hatch — cannot reach an `Anything` slot at all.
-- **The same compatibility gap refuses a valid bundle at validation time.** A `PipeSequence` declaring `output = "Anything"` over a last step producing `Text` fails to validate: `PipeSequence concept mismatch: the output concept 'native.Text' of the last step 'echo' of sequence pipe 'seq' is not compatible with the output concept 'native.Anything' of the sequence.` (`pipelex/pipe_controllers/sequence/pipe_sequence.py`, the `is_compatible` check in its output validation).
-- **`Anything[]` ignores its multiplicity.** The `DYNAMIC` arm returns before `_shape_with_multiplicity`, so a legal empty list is refused, a fixed count is never checked and a single value is never wrapped — Gap B of `wip/inputs/input-shaper-multiplicity-gaps.md`, still open for both `Dynamic` and `Anything`. The `[{}]` envelope escapes as a raw pydantic `ValidationError`, because Case 2.6 of the bottom-up factory falls back to `TextContent` for an item class it cannot resolve.
-
-The root cause is the one the item names: `resolve_input_kind` sends `Anything` down the `DYNAMIC` arm, which hands the raw value to the bottom-up `StuffFactory`, and that factory infers a concept from the value's shape without consulting the declared one. It has no arm for a number, a boolean, a bare object or a list of non-strings, and its envelope arm looks up `AnythingContent` in the class registry and finds nothing.
-
-**The list-of-objects report, reproduced.** The report pointed at the `DYNAMIC` call in `_shape_one` (`input_shaper.py`, line 188 on `dev` at `d93a24767`) and the bottom-up factory's `Cannot create Stuff from list of <class 'dict'>` (`stuff_factory.py`, line 454), without naming the slot. That is because the refusal names neither the input nor its declared concept. Sending `[{"a": 1}, {"b": 2}]` to every slot kind that reaches the fallback gives the same error at eleven of them: `Anything`, `Anything[]`, `Dynamic`, `Dynamic[]`, `JSON`, `JSON[]`, `Composite[]`, `Html[]`, `TextAndImages[]`, `SearchResult[]` and `Page[]`. A user concept with a structure, `Record[]`, takes the same list. `StuffFactoryError` declares no error domain, so the refusal is not even classified as the caller's input fault.
-
-**A `JSON` slot is broken in both directions.** Measured on the same `dev`:
-
-```
-JSON hi OK concept=native.Text content=TextContent(text='hi')
-JSON ['a', 'b'] OK concept=native.Text content=ListContent(items=[TextContent(text='a'), TextContent(text='b')])
-JSON {'a': 1} REFUSED StuffFactoryError: Trying to create a Stuff 'x' from a dict ... does not have a 'concept' key.
-JSON {'json_obj': {'a': 1}} REFUSED StuffFactoryError: (same)
-JSON 3 REFUSED StuffFactoryError: Unexpected type for stuff_content_or_data: <class 'int'>
-JSON[] hi OK concept=native.Text content=TextContent(text='hi') (not even wrapped into a list)
-```
-
-It refuses every object — the one thing a `JSON` slot is for — and quietly accepts a string as a `native.Text` stuff sitting in a slot the method declared `JSON`. Only the envelope, `{"concept": "native.JSON", "content": {"json_obj": {…}}}`, works today.
-
-**What the runtime already does with an `Anything` stuff.** No arm has to be invented downstream. `PipeBatch` stamps the slot's *declared* concept onto the stuffs it builds — each item stuff takes the input spec's concept and each aggregate takes the batch's output concept (`pipelex/pipe_controllers/batch/pipe_batch.py`, the two `StuffFactory.make_stuff` calls) — so a batch over `Anything[]` already produces stuffs whose concept is `native.Anything` and whose contents are concrete. `PipeParallel` guards `declares_a_structure_class` on a branch stuff's concept for the same reason. Measured by handing the runner a pre-built working memory: a `native.Anything` stuff holding a `JSONContent`, a `TextContent` or a `NumberContent` renders through `$anything_in` as `{"a": 1}`, `hi` and `4.2`, a mixed `ListContent` renders item by item, and every run result serializes.
-
-## Rulings
-
-### R1 — The slot keeps its declared concept; the content is the value's natural content
-
-**A bare value at an `Anything` slot becomes a stuff whose concept is `native.Anything` and whose content is the native content its JSON type names.** Nothing is inferred beyond the JSON type, and nothing is guessed from the value's text.
-
-| Value | Content |
-| --- | --- |
-| string | `TextContent` |
-| number (a boolean is never a number) | `NumberContent` |
-| boolean | `YesNoContent` |
-| object | `JSONContent`, the object as `json_obj` — so the published template `{}` shapes into `JSONContent(json_obj={})` |
-| TOML date or datetime literal (inputs files only) | `DateContent` |
-| TOML time literal (inputs files only) | `TimeContent` |
-| an already-built `StuffContent` object (Python callers) | the explicit arm, as today: its concept is inferred from its class and kept, per R2 and D6 |
-| array | refused at a single slot (R3), shaped element-wise at a plural one |
-| null | refused (R3) |
-| anything else a Python caller hands in | refused as not a JSON value |
-
-A string that looks like a URL is still text. The file-ish reading of D3 belongs to slots that declare `Image` or `Document`, and an `Anything` slot declares nothing of the kind.
-
-Why the declared concept rather than the natural one. Every top-down arm of the shaper already stamps the declared concept (`StuffFactory.make_stuff(concept=declared_concept, …)` at the end of `_shape_one`), and `PipeBatch` does the same for `Anything` today. A stuff has exactly one concept, so inferring `native.Text` or `native.Number` breaks on the first heterogeneous `Anything[]` list, while `native.Anything` over a mixed `ListContent` is exactly what a batch already produces. And the concept a stuff carries at an `Anything` slot should say what the method declared there, not what the shaper guessed: the content class already says what the value concretely is. That last point holds in memory only. On the wire the content class is invisible, which R9 answers.
-
-The invariant this relaxes is "the content is an instance of the concept's structure class". It becomes "…when the concept declares one", which is what `Concept.declares_a_structure_class` exists to say.
-
-### R2 — Every concept satisfies `native.Anything`
-
-**`Concept.are_compatible_by_declaration` answers `True` whenever the wanted concept is `native.Anything`**, right after its two dynamic short-circuits, keyed on `not concept_2.declares_a_structure_class`. The reverse stays `False`: an `Anything` value is not known to be a `Text`, and `strict=True` changes nothing, since the rule sits in the declaration tier.
-
-Consequences, all intended:
-
-- A typed envelope at an `Anything` slot is accepted and **keeps its explicit concept** — D6's "explicit wins when compatible", with `Anything` at the top of the lattice. `{"concept": "Image", "content": {"url": …}}` produces a `native.Image` stuff.
-- A `PipeSequence` whose output is `Anything` validates over any last step.
-- The rule matches the language reference ("Accepts any type") and what `pipelex` already does by special case in controller validation (`pipe_abstract.py`, the `DYNAMIC`/`ANYTHING` carve-outs) and in `PipeCondition`. The implementers' runtime guide in `mthds` narrows it to native concepts; that inconsistency is filed as L-260927-afaf62 for the standard's owner.
-
-The sites that ask `is_compatible` with a wanted concept of `Anything` are the shaper's two compatibility checks and `PipeSequence`'s output check; every other site asks about `Text`, `Html`, `Image`, `Document`, `YesNo`, `Date` or `Time`, which this rule does not touch.
-
-### R3 — Multiplicity is peeled for `Anything` like every typed kind; D2 and D9 hold
-
-`Anything` leaves the `DYNAMIC` short-circuit and takes the path the typed kinds take, `_shape_with_multiplicity`, with a new per-item arm. So:
-
-- `Anything[]` shapes element-wise, and **items may differ in JSON type**. `[]` is a legal empty list, and a single value is wrapped into a one-item list (D2).
-- `Anything[N]` checks the count.
-- An array at a single `Anything` slot is `ListWhereSingularError` (D2), and an item of a plural slot that is itself an array is refused as a wrong kind. A list of lists has no stuff to become.
-- A top-level null is `NullInputError` (D9), whether bare or as an envelope's content, and a null item is refused as a wrong kind.
-
-This closes Gap B of `input-shaper-multiplicity-gaps.md` for `Anything`. `Dynamic` keeps its bottom-up arm; nothing here rules on it.
-
-### R4 — The published schema says what R3 refuses: no array and no null at an element position *(decided with Louis, 2026-09-27)*
-
-**The permissive schema gains one constraint: `{"title": "native.Anything", "description": "…", "not": {"type": ["array", "null"]}}`.** `Anything[]` wraps it exactly as today, so its items exclude arrays and null too, and the standard's rule that a plural schema's items are "exactly what the same concept would carry at single" holds unchanged.
-
-The item asked to close the gap in the shaper rather than narrow the contract to a limitation, and R4 is the one place this design narrows. It is not a limitation of the `Anything` arm, though: D2 (a single slot never holds a list) and D9 (absence is an omitted key, never a null) refuse those two shapes at *every* slot, and every other slot's schema already excludes them — an object schema admits neither an array nor a null. The permissive schema is the one exception on the wire. The standard says a machine consumer validates a payload with `json_schema` and an ordinary validator (`mthds/docs/spec/pipe-io-contracts.md`, Non-Goals), and `mthds-form` does exactly that with ajv, so leaving the schema permissive keeps a gap a client meets as a refused run after its own validation passed.
-
-### R5 — The envelope spellings
-
-- **`{"concept": "native.Anything", "content": v}` at an `Anything` slot is the bare value `v`**, shaped by R1 and R3. This is the spelling both corpus shapes publish, so it is the one the round-trip gate measures.
-- **A typed envelope at an `Anything` slot** builds bottom-up as today and keeps its concept (R2).
-- **An envelope naming `native.Anything` at any other slot** is refused with `ExplicitConceptIncompatibleError` before anything is built: an `Anything` is not known to satisfy anything narrower. Today that case fails inside the factory with an untyped "not compatible with a dict content".
-
-The shaper recognizes the first case by resolving the envelope's concept through the provider it already holds, with the pipe's search scope, and by asking whether that concept declares a structure class. It does not ask the factory, which has no multiplicity awareness.
-
-D6's collision rule is unchanged and matters more here than anywhere: an object whose keys are exactly `concept` and `content` is always read as an envelope. So a raw `Anything` value of that one shape has to be sent inside an `Anything` envelope, `{"concept": "native.Anything", "content": {"concept": …, "content": …}}`, which R5 then shapes as the bare object it holds. The content of an `Anything` envelope is raw data at every depth, the items of a list included, which is what R10 relies on.
-
-### R6 — There is never an `AnythingContent` class; the joint ruling with the sibling items
-
-The item asked for L-260902-9546ef and L-260902-db6d1e to be ruled on together with this one, because introducing an `AnythingContent` class would change what they are. **This design introduces none, and rules that none will be introduced.** A class would have to give the untyped vehicle a shape — a `value` field, at least — and the pinned native definition says `Anything` is structureless and that a consumer must "never invent a shape" (`mthds/docs/spec/native-concepts.md`). It would also flip `declares_a_structure_class` for `Anything`, and with it every structureless arm L-260831-8f7c8c landed: the published schema, the fill-in template and the input-form descriptor's `unknown` node.
-
-So the two siblings keep the fix directions they already state, now settled rather than provisional:
-
-- **L-260902-9546ef** (and L-260926-f7bb28, the same site reached with `Anything[]`, now linked to it): `pipe_llm.py` resolves the output class straight from the registry. The fix routes the lookup through the guard and decides what a `PipeLLM` produces for an `Anything` output; whatever it decides, the refusal it raises is a domained `PipelexError`, never an unregistered class.
-- **L-260902-db6d1e**: `pipelex build runner` refuses an `Anything` input cleanly, since PYTHON has no class to instantiate, and `refines = "Anything"` gets the standalone field-less `StructuredContent` the cross-package arm already builds, which is what codegen already emits.
-
-Neither is widened into this change. They share a principle with it and no code.
-
-### R7 — A `JSON` slot takes a JSON object, top-down
-
-**`native.JSON`, and every concept refining it, gets its own shaper handler instead of the fallback.** `resolve_input_kind` recognizes it by strict compatibility with `native.JSON`, as it does the other matrix natives, so a refining concept is built through its own class.
-
-- **A bare object is the JSON object itself**, stored as `json_obj`: `{"a": 1}` becomes `JSONContent(json_obj={"a": 1})`. This is the reading a caller means, and the one the report needed.
-- **Every bare object is read literally, `{"json_obj": {…}}` included.** That object becomes `JSONContent(json_obj={"json_obj": {…}})`, just as a bare `{"text": "hi"}` at a `Text` slot is not read as a text content. The `json_obj` mapping is the content form, and the content form travels inside the envelope, for `JSON` as for every native. There is no collision rule: one looked necessary only because the compact template taught callers the wrapped form, and the next point changes the template instead.
-- **The compact template shows the bare object.** The engine's light template unwraps `json_obj` the way it unwraps `text` for `Text` and `number` for `Number`, and the reference projection and both mirrors do the same, so `JSON` leaves `OUT_OF_MATRIX_NATIVES`. A developer reading the template for a `JSON` slot sees the object they have, not a Python field name inside an envelope. The corpus's `json_in` compact bytes change in all three repos in the regeneration that already retires the two `EXPECTED_UNSHAPEABLE` entries.
-- **Anything else is refused as a wrong kind**, naming "a JSON object": a string, a number, a boolean. `JSONContent` holds an object only, which the pinned native definition fixes (`json_obj`, a `dict`), so a JSON array is not a `JSON` value either. Whether the standard should widen that was question 4 (L-260927-a8ec06), decided: it stays an object, and this design says "a JSON object" in every doc and error it touches.
-- **Multiplicity is peeled like every typed kind.** `JSON[]` shapes each object in turn, a single object is wrapped, `[]` is legal, and an array at a single `JSON` slot is `ListWhereSingularError`, whose detail already names `JSON[]` as the declaration to change.
-- **The envelope is unchanged**: its content is still `JSONContent`'s field mapping, `{"json_obj": {…}}`, built bottom-up and compatibility-checked as today. The published `json_schema` describes that content form, as it does for every native (`Text`'s is `{"text": …}`), so it does not change either, and neither does codegen's `JSON` type.
-
-The `Anything` handler's object row (R1) and this handler build the same content, so they share the code that turns an object into a `JSONContent`.
-
-### R8 — The fallback's remaining refusals are typed input errors that name the slot
-
-After R1 and R7, the bottom-up fallback still serves `Dynamic`, `Composite`, `Html`, `Page`, `TextAndImages`, `SearchResult`, and any user concept whose content class is not a structured one, such as a refinement of `Html`. It keeps reading a bare value by its own shape; what changes is how it refuses one. **A `StuffFactoryError` raised on that path is re-raised as a `StructureValidationError`** — an `InputShapingError`, `input`-domained and caller-facing — carrying the input name, the declared concept, the expected shape rendered from the signature, and a reason the shaper writes itself: what the value is, and that a slot of this concept reads a bare value by its own shape and has no reading for this one. The factory's own message, with its `typing.Union[…]` spelling of the accepted types, stays on the chain as the cause and out of the text a caller reads.
-
-**The refusal's user action names the fix on the method author's side**: declare the input as `JSON` or `JSON[]` when the value is plain JSON data, or as a concept with a structure. The person who sent a list of plain JSON objects to a `Dynamic[]` slot is usually also the person who declared it, and the declaration is what should change. This mirrors `ListWhereSingularError`, whose detail already says "or declare it as a list ('X[]') in the method". The refusal does not suggest an envelope. An envelope helps only a caller who knows a concept both compatible with the slot and able to hold the value, and at a `Dynamic` slot the obvious one, `Dynamic` itself, silently drops an object's content (L-260927-bea35e).
-
-`StructureValidationError` already has the right message form ("Input 'x' could not be built as 'native.Dynamic': …") and a page of its own, so no new error class and no change to the error identity snapshot are needed. Its `make` hard-codes the user action's detail, so it gains a way to pass this one; its docstring widens to cover this case. The explicit arm's untyped escapes are not part of R8: they are L-260831-1e1a71, which already owns them.
-
-### R9 — On the output side, an `Anything` stuff's content is its plain JSON value *(built under L-260927-da1b09 and L-260927-223013)*
-
-R1 keeps the declared concept and relies on the content class to say what the value is. That holds in memory, but a stuff's wire form carries only `concept` and `content`, and the content is dumped as its class's fields. Measured by dumping a `PipeOutput` holding `native.Anything` stuffs:
-
-```
-string {"concept": "native.Anything", "content": {"text": "hi"}}
-object {"concept": "native.Anything", "content": {"json_obj": {"text": "hi"}}}
-number {"concept": "native.Anything", "content": {"number": 4.2}}
-list {"concept": "native.Anything", "content": {"items": [{"text": "a"}, {"number": 1}, {"json_obj": {"k": 1}}]}}
-```
-
-A consumer can decode that only by guessing Pipelex's content field names, which is exactly the shape-sniffing the projections refuse to do. And once R1 and R5 land, a value changes type between two methods: a bare `"hi"` comes back as `{"text": "hi"}`, and the standard's `--with-memory` chaining feeds that into the next method's `Anything` slot, where R5 reads it as the object `{"text": "hi"}`.
-
-**The public wire form of an `Anything` stuff's content is its plain JSON value**: a `TextContent` is its string, a `NumberContent` its number, a `YesNoContent` its boolean, a `JSONContent` its object, a `DateContent` or `TimeContent` its ISO string, a `ListContent` the array of its items' values. Any other content class, such as a Python caller's `ImageContent` inside an `Anything[]` list, keeps its content form. A date comes back as a string, the one lossy case, since JSON has no date type. This is what the standard already implies, since a stuff's content is "the value, shaped as the concept's structure dictates" and `Anything` has no structure, and L-260927-223013 asks `mthds` to say it outright. The internal serialization (kajson, Temporal payloads) keeps content classes, because the runtime must restore them exactly; only the public projections change.
-
-This is not built here. It changes the run result, the CLI's outputs and what the app and SDKs display, which is its own review, and it has its own test: a round trip through `--with-memory` that must return every R1 value unchanged. L-260927-da1b09 carries it, blocked by this item because its round trip needs R1 and R5.
-
-### R10 — An envelope-shaped item of a bare `Anything[]` or `JSON[]` list is refused
-
-D6's collision rule reads an object whose keys are exactly `concept` and `content` as an envelope, but only at the top of a slot (`InputShaper._is_explicit`). An item of a list reaches `_build_item_content`, which recognizes an already-built `StuffContent` object and nothing else. So under R1 and R7 as first written, `[{"concept": "Image", "content": {…}}, "caption"]` at `Anything[]` would have shaped its first item into a `JSONContent` holding the envelope, silently accepting one spelling with two meanings depending on where it sits.
-
-**Such an item is refused as a wrong kind**, and the message says that one envelope around the whole list is how to type a list. Every other list kind already refuses it: at `Text[]` it is not a string, and at a structured concept's list it fails the structure. Two escapes stay open, both reusing an existing rule. A list of values of one concept travels in one typed envelope around the whole list. A list whose items genuinely are raw objects keyed `concept` and `content` travels inside an `Anything` envelope, whose content is raw data at every depth (R5), or, for `JSON[]`, inside a `JSON` envelope, whose items are content forms.
-
-### R11 — The docs teach one choice among the untyped concepts, and lead with naming the JSON
-
-After this change, three natives mean "no declared structure", each with its own rules: `Anything`, `JSON` and `Dynamic`. The docs so far describe each in its own section, so an author, human or agent, gets no rule for choosing. They get one, in this order:
-
-1. **Data you already have as JSON objects: name it.** A concept that refines `JSON`, such as `concept.Order` with `refines = "JSON"` and a plain-language description, takes the object exactly as the developer has it, with no data model to rebuild (R7 builds it through its own class), while its name and description give an agent or a reader the meaning a bare `JSON` withholds. `tests/e2e/pipelex/pipes/pipe_operators/pipe_llm/pipe_llm_json_concept.mthds` already does it on the output side with `VectorIndex`. Fields come later, when validation is wanted, by turning it into a concept with a structure.
-2. **`JSON` or `JSON[]`** when the data has no name worth giving it. It is a JSON object; a list of them is `JSON[]`.
-3. **`Anything`** when the pipe is generic over its input — it passes a value along or renders it whatever it is. It is not the place to put JSON.
-4. **`Dynamic`** is not recommended for inputs until L-260927-bea35e rules on what its slot holds.
-
-This is the one place where the two aims of the language meet: the developer keeps their JSON as it is, and the method still says what that JSON is.
-
-## Rejected alternatives
-
-- **Infer the natural concept** (`native.Text` for a string, `native.JSON` for an object). It is what the bottom-up path does for a string today, and it has no answer for a heterogeneous `Anything[]`, since one stuff has one concept. It also discards the declaration for a guess, which is exactly what the item objected to.
-- **A real `AnythingContent` class.** Rejected under R6.
-- **Keep the `Anything` schema permissive and document the two refusals instead** (R4's alternative). It narrows nothing, but a client that validates with `json_schema`, as the standard tells it to, would still meet an array or a null refused only when the run starts.
-- **Accept an array at a single `Anything` slot as a `ListContent`.** A single slot holding a list is what D2 exists to prevent, and every controller reads multiplicity through `Stuff.is_list`, so the stuff would be plural wherever it went while its slot says single.
-- **Keep the `DYNAMIC` arm and teach the bottom-up factory about `Anything`.** The factory has no declared concept and no multiplicity to consult. That is the reason the top-down shaper exists.
-- **Treat `JSON` as a structured concept**, so a bare object is the content and must carry `json_obj`. It matches the contract to the letter, but it refuses a plain object, which is what every caller of a `JSON` slot sends and what the report sent.
-- **Keep the envelope in `JSON`'s compact template, and read a bare `{"json_obj": {…}}` as the content.** This was R7's first draft: it spared the corpus and both mirrors a projection change, and the collision rule kept a caller who copied the content out of the envelope from being wrapped twice. But it left every template a developer or an agent reads teaching a Python field name inside an envelope, while the shaper preferred the plain object, and it made one object shape mean two things at one slot. Fixing the template removes the reason for the rule.
-- **A new error class for the fallback's refusal.** It would add a wire `error_type` for a case `StructureValidationError` already describes, and consumers branch on `error_type`.
-- **Suggest an envelope in the fallback's refusal.** R8's first draft did. The advice is generic, the caller rarely knows which concept to name, and at a `Dynamic` slot the obvious one loses data.
-- **Read an envelope-shaped list item as a per-item envelope**, keeping its content. It would match what a Python caller's `StuffContent` item already does, but the item's concept would be dropped, since a list stuff carries one concept, and only `Anything[]` and `JSON[]` would read it while every other list kind refuses it. Per-item envelopes, if wanted, are a feature for every kind.
-- **Carry the content class on the wire beside an `Anything` value** (a type tag), instead of R9's plain value. A tag is a shape the runtime invents for a concept the standard says has none, and a consumer would still need Pipelex's class vocabulary to read it.
-
-## What deliberately does not change
-
-- **The input-form descriptor** still states `Anything` as `unknown` and `JSON` as an object with a `json_obj` field: the descriptor describes the content form, and the compact projection is what unwraps it.
-- **`Anything`'s compact template keeps its envelope**, in the engine's light template and in all three projections, so `InputKind.ANYTHING` joins the `DYNAMIC` arm of `_delighten_entry` in `pipelex/pipe_machinery/rendering/input_renderer.py` and `Anything` stays in `OUT_OF_MATRIX_NATIVES`. Its bare placeholder, `{}`, would read as "send an object", while the envelope names the concept that says any value goes. `JSON` is the one that changes (R7): its light template unwraps `json_obj`, and it leaves `OUT_OF_MATRIX_NATIVES` in `pipelex/cli/dev_cli/commands/projection_reference.py`, `mthds-js/src/protocol/inputs_template.ts` and `mthds-python/mthds/protocol/inputs_template.py` together, so the engine and the projections agree and no divergence class opens.
-- **The comment on `OUT_OF_MATRIX_NATIVES` goes stale in those three places.** It justifies keeping the envelope by saying an input shaper "cannot build" these natives top-down, which after R1 is no longer true of `Anything`. It should say instead that these are the open natives whose compact form keeps the envelope, because a bare value there either has no reading every runtime shares or, for `Anything`, would misstate what the slot takes.
-- **Codegen** still emits `z.unknown()` and `Any` for an `Anything` slot. With R4, that type is wider than the contract by the array and the null; it is a declared imprecision of a structureless concept, which is how codegen already treats all three of them. Its `JSON` type stays `{ json_obj: … }`, the content form, like `{ text: … }` for `Text`.
-- **Prompt attachment** stays a static decision on the declared concept, so an image handed to an `Anything` slot through a typed envelope renders as text in a `PipeLLM` prompt and is not attached. This is the same give-up `Dynamic` has, recorded on L-260901-45becb.
-- **`native.Dynamic`** keeps its bottom-up arm. Its own data-loss bug, found here, is filed separately (below).
-
-## Behaviour changes a caller can see
-
-- A bare string at an `Anything` slot now produces a `native.Anything` stuff holding a `TextContent`, not a `native.Text` stuff. The content, and therefore every rendering of it, is identical, but the working memory, the run output and the graph now report the concept the method declared. `tests/unit/pipelex/core/memory/input_shaper/test_scalar_arms.py` pins the old behaviour (`anything-str-bottom-up`) and changes with it. This goes in the changelog under *Changed*.
-- Every other JSON value, the published template and every typed envelope start being accepted.
-- At a `JSON` slot, a bare object and a list of objects start being accepted, and a bare string, which used to become a `native.Text` stuff in that slot, is now refused as a wrong kind. That refusal is the fix, not a regression, and it goes in the changelog under *Changed* because a caller could have been relying on it.
-- The compact inputs template for a `JSON` slot is now the bare object, in the engine (`pipelex codegen inputs`, the API's template) and in both projections.
-- An item of a bare `Anything[]` or `JSON[]` list that is shaped like an envelope is refused (R10).
-- At the remaining fallback slots, the refusal that used to be an unclassified `StuffFactoryError` is now a `StructureValidationError`: `input`-domained, naming the input and its concept, with a user action naming the declaration to change. A consumer branching on `error_type` sees a new value on this path.
-- Under R4, `PipeInputContract.json_schema` for an `Anything` slot gains the `not` clause, which the shared projection corpus captures, so the committed capture changes in `mthds-js` and `mthds-python` in the same regeneration that retires the two `EXPECTED_UNSHAPEABLE` entries.
-
-## Adjacent findings, filed
-
-- L-260927-bea35e (`pipelex`, bug): a `native.Dynamic` envelope silently drops its object content, because `DynamicContent` declares no fields and inherits `extra="ignore"`. Measured: `{"a": 1, "b": "x"}` shapes into `DynamicContent()`. It now also carries the list half of the report: a bare object or a list of objects at a `Dynamic` slot has no reading at all, which after R8 is a typed refusal rather than an accepted value.
-- L-260927-afaf62 (`mthds`, spec): the runtime guide's pseudo-code admits only native concepts into `Anything`.
-- L-260927-da1b09 (`pipelex`, bug) and L-260927-223013 (`mthds`, spec): R9, the plain-value wire form of an `Anything` stuff's content.
-- L-260927-a8ec06 (`mthds`, decision): question 4, decided and closed — `JSON` stays an object.
-- L-260927-702c56 (`pipelex`, feature): a `.json` or `.jsonl` file reference read into a `JSON[]` slot, the way D11 reads a CSV into a structured list.
-
-## Questions, all decided with Louis on 2026-09-27
-
-1. **R4** — narrow the published schema by D2 and D9, or leave it permissive and document the two refusals. *Decided:* narrow it.
-2. **R7's collision rule.** *Decided:* there is none. Every bare object is read literally, and `JSON`'s compact template becomes the bare object, so no caller learns the wrapped form.
-3. **The corpus pipe.** `scaffold_anything_slot` exists only to isolate a declared gap. *Decided:* fold `anything_in` back into `scaffold_open_natives`, the original intent of L-260902-543ad0, which removes one pipe's files from both mirrors and one entry from `conformance`'s corpus census. Keeping the separate pipe was equally correct and changed fewer files, but a pipe whose only justification is a closed gap would need a new one.
-4. **Should `JSON` hold any JSON value, not only an object?** A question for the standard, filed as L-260927-a8ec06. *Decided:* keep it an object. Widening would make a single `JSON` slot the one position that holds an array, against D2, and every array-shaped payload but a list of lists already has a home.
-5. **`Anything`'s compact template.** *Decided:* it keeps its envelope, because the bare placeholder `{}` would read as "send an object" (see "What deliberately does not change").
-6. **R10's escape.** *Decided:* the content of an `Anything` envelope is raw data at every depth, list items included, so a list of genuine `{concept, content}` objects travels inside one; the alternative, refusing the spelling everywhere and sending such data through a structured concept, was simpler but left a developer's JSON with no way in as it is.
-7. **`Dynamic` in R11.** *Decided:* the docs say `Dynamic` is not recommended for inputs until L-260927-bea35e rules on what its slot holds, rather than leaving it out of the rule while it loses data.
diff --git a/wip/anything-slot/plan.md b/wip/anything-slot/plan.md
deleted file mode 100644
index 81890478c..000000000
--- a/wip/anything-slot/plan.md
+++ /dev/null
@@ -1,252 +0,0 @@
----
-status: landed
-item: L-260902-10eb56
----
-
-# Plan: `Anything` and `JSON` slots take what they declare, and the fallback refuses by name
-
-Builds the rulings in `design.md` beside this file, except R9, which its own items carry. One `pipelex` pull request carries Phases 1 to 5, because the corpus generator's lapse rule fails the moment the shaper accepts the `Anything` template, so the fix and the retirement of its `EXPECTED_UNSHAPEABLE` entries cannot land apart. Phase 6 is the cross-repo half: the shared corpus re-committed in both mirrors together with their projections' `JSON` unwrap (R7), and `conformance`'s corpus census, all from the merged `dev`.
-
-Branch `fix/Anything-slot-shaping`, worktree `_pipelex--anything-slot-shaping`. Work test-first: each phase writes its failing tests before the code.
-
-## Phase 1 — every concept satisfies `native.Anything` (R2)
-
-1. In `Concept.are_compatible_by_declaration` (`pipelex/core/concepts/concept.py`), after the two dynamic short-circuits, return `True` when `not concept_2.declares_a_structure_class`. Update the docstring's list of what the declaration tier decides.
-2. Tests:
- - `tests/unit/pipelex/libraries/test_concept_library_compatibility.py::test_the_structureless_native_concept_is_answered_not_raised` pins `is_compatible(text, anything) is False`; rewrite it to pin the new rule both ways — `Text`, a user concept and `Dynamic` satisfy `Anything`, with and without `strict`, while `Anything` still does not satisfy `Text` — and keep its point that nothing is resolved from the registry.
- - A bundle-level test that a `PipeSequence` declaring `output = "Anything"` over a `Text`-producing last step validates. It fails today with `PipeSequence concept mismatch`. `tests/integration/pipelex/pipeline/test_protocol_validate.py` already holds the `Anything` input verdict test and is the natural home.
-3. Sweep the `is_compatible` callers once more for a site whose wanted concept can be `Anything` and which relied on `False`. The design found only the shaper's two checks and `PipeSequence`'s output check.
-
-## Phase 2 — the `ANYTHING` arm in the input shaper (R1, R3, R5)
-
-All in `pipelex/core/memory/input_shaper.py` unless named otherwise.
-
-1. Add `InputKind.ANYTHING`, `is_structured` `False`. Rewrite the `InputKind` docstring and the module docstring, which name `Anything` as a bottom-up fallback.
-2. `resolve_input_kind`: return `ANYTHING` for a concept that does not declare a structure class, right after the `Dynamic` check and before the ordered natives.
-3. `_shape_one`: `ANYTHING` joins the typed group, so it goes through `_shape_with_multiplicity` and the stuff is stamped with the declared concept.
-4. `_build_item_content`: an `ANYTHING` arm implementing the R1 table, checked in this order — boolean before number, since `bool` is an `int`; `datetime.time`; `datetime.date` (which covers `datetime`); string; object; then a refusal through `_wrong_kind` for a nested list, a null item, an item whose keys are exactly `concept` and `content` (R10, with an `expected_kind` saying that one envelope around the whole list is how to type it) or any non-JSON object, with an `expected_kind` that says what an `Anything` item may be. The R10 check applies to an item of a bare list only: it takes a flag that step 6 clears when the list arrived inside an `Anything` envelope, whose content is raw at every depth. Each accepted value goes through `_make_content` with the matching native concept from the provider, so the injected-provider rule holds and a build failure is a `StructureValidationError`. The object row goes through a helper that Phase 3's `JSON` arm reuses: it takes the object literally, `{"json_obj": {…}}` included.
-5. `_make_content` catches `ValidationError` and `StuffContentFactoryError` only, but `JSONContent`'s validator raises a bare `TypeError` for a Python dict holding a value that is not JSON (`JSONContent(json_obj={"a": object()})` → `TypeError: json_obj is not valid JSON`). Make that a typed refusal, preferably by fixing the validator to raise `ValueError` so pydantic reports it as a `ValidationError`; that covers the `Anything` object row, the `JSON` arm and the `JSON` envelope at once.
-6. `_shape_explicit` (R5): when the value is a `{"concept", "content"}` envelope, resolve its concept through `concept_provider.get_required_entry_concept(…, search_scope=…)` first. If that concept declares no structure class: at an `Anything` slot, shape `content` as a bare value with step 4's R10 flag cleared, since an `Anything` envelope's content is raw at every depth (a `None` content raises `NullInputError`); at any other slot, raise `ExplicitConceptIncompatibleError` before building. Every other explicit form keeps today's path, and the D6 compatibility check now passes for typed envelopes by Phase 1. When the envelope's concept does not resolve, catch the provider's not-found error and fall through to today's path, so the factory reports it exactly as it does now. Cover the nested-envelope escape of the design's R5 with a test: an `Anything` envelope whose content is itself an object keyed `concept` and `content` shapes into a `JSONContent` holding that object.
-7. `pipelex/pipe_machinery/rendering/input_renderer.py`: `InputKind.ANYTHING` joins the `DYNAMIC` arm of `_delighten_entry`, so the engine's light template keeps the envelope (see "What deliberately does not change" in the design).
-8. Tests, in `tests/unit/pipelex/core/memory/input_shaper/`:
- - `test_scalar_arms.py`: `anything-str-bottom-up` pins the old `native.Text` result; replace it with one row per R1 value — string, integer, float, boolean, `{}`, a nested object, `{"json_obj": {…}}` taken literally, a TOML date, datetime and time — each asserting concept `native.Anything` and the exact content.
- - `test_multiplicity.py`: `Anything[]` with a mixed list, `[]`, a single value auto-wrapped, and `Anything[2]` with a wrong count; a list at a single `Anything` slot raising `ListWhereSingularError`; `[{"concept": "Image", "content": {…}}, "caption"]` raising `WrongScalarKindError` whose message says to wrap the whole list (R10).
- - `test_explicit_forms.py`: the `native.Anything` envelope in both spellings of the concept (`Anything`, `native.Anything`) over `{}`, a string, a number and a list at a plural slot; typed envelopes (`Text`, `JSON`, a user concept, `Image`) at an `Anything` slot keeping their concept; an `Anything` envelope at a `Text` slot raising `ExplicitConceptIncompatibleError`; an `Anything` envelope around a list whose item is keyed `concept` and `content`, at `Anything[]`, shaping that item into a `JSONContent` holding it (R10's escape).
- - `test_errors.py`: null envelope content, a null item, a nested list item, a non-JSON Python object, and the non-serializable dict of step 5 — each a typed `InputShapingError`, never a raw exception.
- - `test_provider_injection.py`: `resolve_input_kind` answers `ANYTHING` without resolving any class, on the stub provider that fails on class resolution.
- - `tests/unit/pipelex/pipe_machinery/rendering/test_input_renderer_light.py`: the light template for an `Anything` slot keeps the envelope.
- - Mutation-test the new arm once: break the boolean-before-number order, the D9 check and the R10 check, and watch the matching rows go red.
-
-## Phase 3 — the `JSON` arm and the fallback's typed refusal (R7, R8)
-
-1. Add `InputKind.JSON`, `is_structured` `False`, and `(NativeConceptCode.JSON, InputKind.JSON)` to the ordered natives of `resolve_input_kind`, so `native.JSON` and every concept refining it leave the fallback.
-2. `_shape_one`: `JSON` joins the typed group.
-3. `_build_item_content`, the `JSON` arm: every object goes through Phase 2's object helper, taken literally — `{"json_obj": {…}}` included, since R7 has no collision rule — and built with the *declared* concept so a refining class is honoured; an item of a bare list keyed exactly `concept` and `content` is refused as in the `Anything` arm (R10); anything else is `_wrong_kind` with "a JSON object".
-4. `input_renderer._delighten_entry`: `InputKind.JSON` joins the scalar arm, whose `_unwrap_scalar_content` already turns a single-field content into its value, so the light template for a `JSON` slot is the bare object and for `JSON[]` a list of bare objects. Update both functions' docstrings, which list the scalar fields and say an out-of-matrix value keeps its envelope.
-5. R8, in `_shape_one`'s `DYNAMIC` arm: catch `StuffFactoryError` from the bottom-up factory and raise a `StructureValidationError` from it, with the input name, the declared concept ref, the expected shape, and a reason the shaper writes from `_describe_value(value)`: this concept's slot reads a bare value by its own shape and has no reading for this one. The user action's detail names the fix on the author's side — declare the input as `JSON` or `JSON[]` for plain JSON data, or as a concept with a structure — and suggests no envelope. `StructureValidationError.make` hard-codes its detail, so give it an optional one or add a sibling classmethod on the same class; either keeps the error identity. The factory's message stays on the chain only, so no `typing.Union[…]` reaches a caller. Widen `StructureValidationError`'s docstring (`pipelex/core/memory/exceptions.py`) to cover a value the fallback has no reading for. If the generated error page is built from that docstring, regenerate it with `pipelex-dev generate-error-pages` and review the diff; `generate-error-identity` should report no change, since no class is added or renamed.
-6. Tests:
- - `test_scalar_arms.py`: `JSON` rows — `{"a": 1}`, `{}`, a nested object, and `{"json_obj": {"a": 1}}` taken literally into `JSONContent(json_obj={"json_obj": {"a": 1}})` — and a concept refining `JSON` built through its own class; a string, a number and a boolean raising `WrongScalarKindError`. The string row pins the behaviour change: it used to become `native.Text`.
- - `test_multiplicity.py`: `JSON[]` with the report's value `[{"a": 1}, {"b": 2}]`, a single object wrapped, `[]`, a list at a single `JSON` slot raising `ListWhereSingularError`, an array item refused, an envelope-shaped item refused (R10).
- - `test_explicit_forms.py`: the `JSON` envelope with `{"json_obj": …}` content unchanged; a `JSON` envelope around a list of content forms at `JSON[]`, one of them holding an object keyed `concept` and `content` (R10's escape). If the bottom-up factory cannot build a list inside a `JSON` envelope, record it here and decide at Checkpoint 1 whether R10's `JSON[]` escape needs the fix or a different spelling.
- - `test_errors.py`: R8 at `Dynamic`, `Dynamic[]`, `Composite[]`, `Html[]`, `TextAndImages[]`, `SearchResult[]` and `Page[]` — a `StructureValidationError` whose message names the input and its concept, whose `error_domain` is `input`, whose `__cause__` is the factory's `StuffFactoryError`, whose text holds no `typing.Union`, and whose user action names `JSON[]` and no envelope.
- - **The report's regression test**: one parametrized test sending `[{"a": 1}, {"b": 2}]` to every slot kind the design measured — accepted at `Anything[]`, `JSON[]` and a structured user concept's list, `ListWhereSingularError` at `Anything` and `JSON`, `StructureValidationError` everywhere else — so a `StuffFactoryError` can never again reach a caller from this path.
- - `test_input_renderer_light.py`: the light template for a `JSON` slot is the bare object, for `JSON[]` a list of bare objects, and each shapes back through the shaper into the same content as the explicit template.
-
-**Checkpoint 1** — `make agent-check` clean, the shaper suite and the compatibility suite green, and both probe matrices of `design.md` — the `Anything` matrix and the list-of-objects one — re-run, with every row either accepted as the rulings say or refused with a typed error. Record here what was measured and anything decided on the way, then `/rev`.
-
-*Reached, 2026-09-27.* `make agent-check` is clean and the unit suite is green but for the four projection-corpus tests, which fail on the `JSON` unwrap until Phase 5 changes the reference projection. Both matrices were re-run through `shape_inputs` against a probe bundle, and every row lands as ruled:
-
-```
-== carry (anything_in)
- bare {} / string / 3 / 4.2 / true / {"a": 1} / a TOML date OK native.Anything, JSONContent / TextContent / NumberContent / YesNoContent / JSONContent / DateContent
- bare list, envelope list REFUSED ListWhereSingularError
- envelope {} / str / num OK native.Anything, the same contents as bare
- envelope Text / native.JSON / Question OK each keeps its own concept
-== carry_list (items)
- bare [{}] / ["a"] / [1, 2] / [] / envelope [{}] OK native.Anything, ListContent of the natural contents
-== [{"a": 1}, {"b": 2}] per slot
- Anything, JSON REFUSED ListWhereSingularError
- Anything[], JSON[], Record[] OK
- Dynamic, Dynamic[], Composite[], Html[], TextAndImages[], SearchResult[], Page[]
- REFUSED StructureValidationError "Input 'x' could not be built as 'native.<X>': you provided a list of 2 item(s), …"
-== JSON slot
- "hi", 3 REFUSED WrongScalarKindError "expects a JSON object"
- {"a": 1}, {"json_obj": {"a": 1}} OK JSONContent holding the object literally
-```
-
-Decided on the way:
-
-- **R5's "any other slot" is read through compatibility.** The shaper asks `is_compatible(Anything, declared)` rather than whether the slot is `Anything`, so an `Anything` envelope is also honoured at a `Dynamic` slot, which it satisfies by the dynamic short-circuit, and keeps its concept there (D6, explicit wins when compatible). Everywhere else it is `ExplicitConceptIncompatibleError`, as ruled. A `DictStuff` naming a structureless concept takes the same path as the plain envelope.
-- **R10's check sits in `_shape_list`**, not in the item arm: only a list's items can be envelope-shaped bare values, since a top-level one is an envelope by D6. The flag that clears it inside an `Anything` envelope is `is_raw_data`, threaded through `_shape_with_multiplicity`.
-- **R10's `JSON[]` escape needs no fix**: a `JSON` envelope around a list of content forms builds through the bottom-up factory's Case 2.6 unchanged, pinned by `test_json_envelope_around_a_list_of_content_forms_is_r10s_escape`.
-- **`_make_content` reports the declared concept** in a `StructureValidationError`, since the `Anything` arm builds through a native concept's class. The `JSONContent` validator raises `ValueError` now, and the three `test_json_content_validation.py` tests that pinned the raw `TypeError` pin a `ValidationError`.
-- **R8's refusal is `StructureValidationError.make_for_unreadable_bare_value`**, a sibling of `make`, so the error identity is unchanged.
-- **Mutation-tested**: putting the number check before the boolean one, dropping the null-content check, dropping the R10 check and ignoring its escape flag each turn the matching rows red.
-
-## Phase 4 — the published schema excludes array and null (R4)
-
-1. `Concept.render_structureless_representation`, SCHEMA arm: add `"not": {"type": ["array", "null"]}` to the element schema. The multiplicity wrapper is unchanged, so `Anything[]` items carry it.
-2. Tests: `tests/integration/pipelex/pipeline/test_pipe_io_contracts.py` pins the `Anything`, `Anything[]` and `Anything[2]` schemas; `tests/unit/pipelex/core/pipes/test_stuff_spec.py` pins the structureless render. Add a check that validates the design's accepted and refused values against the rendered schema with `jsonschema`, so the contract and the shaper are shown to agree rather than asserted to.
-
-## Phase 5 — the corpus and the docs
-
-1. `pipelex/cli/dev_cli/commands/generate_projection_corpus_cmd.py`: delete the two `L-260902-10eb56` entries from `EXPECTED_UNSHAPEABLE`, and rewrite the comment above it so it describes the one gap still declared, `L-260830-191719`.
-2. `tests/data/input_semantics/scaffold_bundle.mthds`: fold `anything_in = "Anything"` back into `scaffold_open_natives` (inputs and template), delete `scaffold_anything_slot`, and rewrite the comments above both so they describe the four open natives as they now are (design, question 3).
-3. `pipelex/cli/dev_cli/commands/projection_reference.py`: remove `JSON` from `OUT_OF_MATRIX_NATIVES` and give a `JSON` slot a compact unwrap of `json_obj`, keyed on the native's identity the way the set already is, since its descriptor node is an `object` and `keeps_envelope` answers `True` for every native object node. Reword the set's comment, which says an input shaper cannot build these natives top-down, to the reason in the design's "What deliberately does not change".
-4. Regenerate into a scratch directory with the four-bundle command from `docs/contribute/generate-projection-corpus.md`, in the order it gives, and read the result: no `input_semantics_scaffold` template declared unshapeable, the divergence classes and their site counts unchanged, `json_in`'s compact template the bare object in both formats with the engine and the reference agreeing, and the `anything_in` contract carrying the Phase 4 schema. Record the summary line (pipes, divergences, templates shaping cleanly) here, because the Phase 6 items check their own regeneration against it.
-5. Update the tests that read the scaffold: `tests/integration/pipelex/pipeline/test_input_form.py` where the scaffold's pipes changed, and `tests/unit/pipelex/cli/dev_cli/test_generate_projection_corpus.py`, which compares the manifest's unshapeable list with `EXPECTED_UNSHAPEABLE` and follows by itself.
-6. Docs, each describing the current behaviour with no history:
- - `docs/under-the-hood/pipe-io-contracts.md`, the `native.Anything` section: drop the paragraph saying the shaper has to catch up, and state what the schema admits.
- - `docs/building-methods/pipes/provide-inputs.md`: the admonition that groups `Anything` and `JSON` with the natives read by their own shape. Give each its own sentences — `Anything` takes any JSON value into its natural content and keeps its concept, a typed envelope keeps its own; `JSON` takes a JSON object as it is, or, as `JSON[]`, a list of them, and its template shows the bare object — and say that an item shaped like an envelope is refused in a bare list, and that for the natives still read by their own shape, a value with no reading is refused naming the input and the declaration to change.
- - `docs/building-methods/concepts/native-concepts.md`: the choice among the untyped concepts, in R11's order, as its own section ahead of the per-concept structures — naming the JSON by refining `JSON` first, with a worked `refines = "JSON"` concept taking a plain object as input. The `Anything` section says it is "primarily used as semantic markers"; say what an `Anything` input takes and what an `Anything` output means. The `JSONContent` section says what a `JSON` input takes, and that `JSON` is a JSON object, not any JSON value.
- - `docs/building-methods/concepts/refining-concepts.md`: a pointer to that section, since refining `JSON` is the pattern it recommends for data a developer already has.
- - `docs/errors/structure-validation-error.md`: the case of a value the fallback has no reading for, with changing the input's declaration as the fix.
- - `docs/contribute/generate-projection-corpus.md`: the paragraph on `native.Anything` sitting alone in `scaffold_anything_slot`.
- - `CHANGELOG.md`, under the unreleased section. *Fixed*: the values and typed envelopes an `Anything` slot now accepts, its multiplicity, the `PipeSequence` output; objects and lists of objects at a `JSON` slot; the fallback's refusal now a typed input error naming the input. *Changed*: a bare string at an `Anything` slot now produces a `native.Anything` stuff; a bare string at a `JSON` slot is now refused instead of becoming `native.Text`; the compact inputs template for a `JSON` slot is the bare object; an envelope-shaped item of a bare `Anything[]` or `JSON[]` list is refused; the fallback's refusal carries a new `error_type` and names the declaration to change; and the schema, if Phase 4 ran.
-7. `make agent-check`, including `make drift-check`; follow `docs/contribute/drift-contracts.md` for any contract it opens. Then `make agent-test`, and `make test-ts-gates` only if Phase 4 changed anything the TypeScript gates read.
-
-**Checkpoint 2** — the full suite green, the corpus summary recorded, the docs and changelog written. `/rev`, then the pull request: title `fix/Anything-slot-shaping · L-260902-10eb56`, body ending `Closes L-260902-10eb56`. Tell the reviewers that the fold deletes one pipe's files from both mirrors on purpose, and that `conformance`'s census (`tests/mthds/fixtures/protocol_corpus_census.json`, which L-260902-e62273 added) is edited to match in Phase 6.
-
-## Phase 6 — the mirrors' projections, the shared corpus and the census
-
-When the pull request opens, file three items the way L-260902-543ad0 filed its two, each `--blocked-by L-260902-10eb56`:
-
-- **`mthds-js`** and **`mthds-python`**, each carrying the Checkpoint 2 summary and the exact regeneration command. Each changes its projection before re-committing the corpus — `src/protocol/inputs_template.ts` and `mthds/protocol/inputs_template.py` respectively: `JSON` leaves `OUT_OF_MATRIX_NATIVES`, a `JSON` slot's compact value is its `json_obj` unwrapped (the phase 5 reference projection is the model), and the set's comment takes the reword. Without the projection change, each repo's own harness fails its byte parity with the new capture.
-- **`conformance`**: remove `input_semantics_scaffold.scaffold_anything_slot` from `tests/mthds/fixtures/protocol_corpus_census.json`, since the census is checked as an equality and the fold removes that pipe.
-
-After the merge, each mirror is regenerated from a merged `pipelex` `dev` with the `projection-corpus-update` skill, on a branch cut from the mirror's `dev`, and the three pull requests merge together, or `conformance`'s fixture-drift and census checks go red for everyone.
-
-**Checkpoint 3** — both mirrors carry the new capture and projection, the census matches it, L-260902-10eb56 is landed with `/ledger-land`, and this document and `design.md` flip to `landed`.
-
-## Handoff — design session, 2026-09-27
-
-**Done.** The bug is verified and both documents are written; no code has changed. `design.md` carries the two measured matrices (the `Anything` slot on `dev` at `be796a0d8`, and the list-of-objects report plus the `JSON` slot on `dev` at `d93a24767`) and rulings R1 to R8. The scope widened once, on Louis's go-ahead, from the `Anything` slot alone to R7 (a `JSON` handler) and R8 (the fallback's typed refusal), after a report of a list of plain JSON objects hitting `input_shaper.py:188` → `stuff_factory.py:454` at an unnamed slot. The probe scripts that produced the matrices are not kept; the matrices in `design.md` are the record, and Checkpoint 1 re-runs them against the fix.
-
-**Open at the time, and answered since (see the ratification below).** Open questions 1 and 3 at the end of `design.md`: R4 (narrow the `Anything` schema by D2 and D9) and folding `anything_in` back into `scaffold_open_natives`. Each carries a recommendation; the documents flip from `draft` to `active` when Louis ratifies them, in the same change that records his answers here. Question 4, whether `JSON` should hold any JSON value, belongs to the standard (L-260927-a8ec06) and blocks nothing here.
-
-## Handoff — review of the rulings, 2026-09-27
-
-A second session reviewed the design from two sides, what keeps the language clear to non-technical readers and agents, and what a developer holding plain JSON needs, and Louis agreed with every change it proposed. No code has changed. The changes are:
-
-- **R7 has no collision rule** (open question 2, now decided). `JSON`'s compact template becomes the bare object in the engine, the reference projection and both mirrors, so no caller learns the `json_obj` wrapper, and every bare object is read literally. This grows Phase 3 (the light template), Phase 5 (the reference projection) and Phase 6, whose mirror items now change projection code rather than only re-committing the corpus.
-- **R8's refusal names the declaration to change** (`JSON`, `JSON[]`, or a concept with a structure) and no longer suggests an envelope, because at a `Dynamic` slot the obvious one drops the object's content (L-260927-bea35e).
-- **R10, new**: an envelope-shaped item of a bare `Anything[]` or `JSON[]` list is refused, which D6's top-level-only collision rule would otherwise have let through as JSON.
-- **R11, new**: the docs teach one choice among `Anything`, `JSON` and `Dynamic`, leading with naming the JSON through a concept refining `JSON`.
-- **R9, new and built elsewhere**: on the output side, an `Anything` stuff's content goes on the public wire as its plain JSON value. Measured, it goes out as its content class's fields today (`{"text": "hi"}`), so once R1 lands a value chained through `--with-memory` changes type. L-260927-da1b09 (`pipelex`) and L-260927-223013 (`mthds`) carry it.
-- **A correction to the first review.** The published `json_schema` and codegen's `JSON` type describe the content form for every native (`Text`'s is `{"text": …}`), so neither is a `JSON`-specific defect and neither changes.
-- **A stale claim in Checkpoint 2, fixed.** `conformance` pins a corpus census as an equality since L-260902-e62273 closed, so the fold of `scaffold_anything_slot` needs a census edit; Phase 6 now files a `conformance` item beside the two mirrors.
-
-**Ratified, 2026-09-27.** Louis answered every open question of `design.md` and the choices this review had made on its own, each as recommended: R4 narrows the `Anything` schema, so Phase 4 is built unconditionally; `anything_in` folds back into `scaffold_open_natives`; `JSON` stays an object, recorded and closed on L-260927-a8ec06; `Anything`'s compact template keeps its envelope; the content of an `Anything` envelope is raw data at every depth, list items included, which is R10's escape; and R11 advises against `Dynamic` for inputs while L-260927-bea35e is open. Both documents are `active` from this change. One point is left to measurement rather than decision: R10's escape for `JSON[]`, a `JSON` envelope around a list, which Phase 3 tests and Checkpoint 1 decides if the factory cannot build it.
-
-**Next, done since.** `dev` was merged into the branch after the ratification, bringing it to the v0.67.1 release and the `mthds` 0.17.0 pin, and the build session below claimed the item and started Phase 1.
-
-## Handoff — build session, 2026-09-27
-
-**Done.** Phases 1 to 3 are built, tested and committed as "Shape Anything and JSON slots top-down, and refuse the fallback by name", and Checkpoint 1's probe is recorded above. The four tests of `tests/unit/pipelex/cli/dev_cli/test_generate_projection_corpus.py` are expected to fail until Phase 5, with `Undeclared divergence class(es) ['engine-only-field']`, because the engine's `JSON` template is unwrapped while the reference projection is not yet.
-
-**Checkpoint 1's `/rev` ran but is not triaged** (the triage is recorded in the next section). Profile 4, round 1, bar `open`, fix mode `ask`, on the branch against `origin/dev` at the commit named above. All four reviewers returned (cubic, Codex's review and adversarial runs, and the bundled `code-review` at `medium`, whose provenance matched the worktree, the commit and the diff's files). The session stopped at its context threshold before verifying anything, so no finding below has been verified, fixed or rejected, and no `ledger review-pass` is recorded. The merged findings, with the reviewers who raised each:
-
-1. **Transport round-trip of a single `Anything` value** (Codex adversarial, high, `input_shaper.py` `_build_anything_content`). An `Anything` stuff holding a `TextContent`, sent through `dump_for_transport()` then `hydrate_working_memory()`, is reported to raise `PipeJobError: Class 'AnythingContent' not found in registry`, because the singular dump does not keep the concrete content class and hydration resolves the class from the declared concept. Verify with that exact round trip first. If real, it is a critical at every bar (a distributed run loses the input), and it touches R6 (no `AnythingContent` class ever) and R9 (L-260927-da1b09), so the fix is hydration reading the concrete class rather than a new class.
-2. **An envelope can escape the declared multiplicity** (three reviewers, three cases, `input_shaper.py` `_try_shape_structureless_envelope` and `_reconcile_explicit_multiplicity`):
- - `code-review`: an `Anything` envelope whose content is a prebuilt `ListContent` becomes `ListContent(items=[ListContent(...)])` at `Anything[]`, and a bare `ListContent` at a single `Anything` slot, because `_shape_list` treats a non-`list` value as one item. Reproduced by the reviewer's probe.
- - Codex adversarial: a typed envelope `{"concept": "native.Text", "content": "hello"}` at `Anything[]` stores a scalar `TextContent`, since reconciliation returns early when the content is not a `ListContent`, and `Anything[N]` counts are not checked. Check whether a `Text` envelope at `Text[]` does the same on `dev`; if so the hole predates this branch but is widened by it.
- - cubic: at a singular `Dynamic` slot, `{"concept": "native.Anything", "content": [1, 2]}` raises `ListWhereSingularError` while `{"concept": "Text", "content": ["a", "b"]}` is accepted, because the structureless path peels multiplicity where `_shape_explicit` deliberately skips it for `Dynamic`. Decide one behaviour for both.
-3. **R8's refusal is too broad and its advice too narrow** (`code-review`, cubic; `input_shaper.py` `DYNAMIC` arm, `exceptions.py` `make_for_unreadable_bare_value`). It rewrites every `StuffFactoryError` from the fallback, so a list of an unregistered `StructuredContent` (`[Zork(), Zork()]` at a `Dynamic` slot) reports "no reading for this one" and hides that no concept `Zork` is registered, as does a mixed list of prebuilt contents or `[]` at `Html[]`. And it always advises `JSON` or `JSON[]`, which refuses a scalar too (`3` at a `Dynamic` slot). Reword only the no-reading cases, keep the factory's reason otherwise, and advise by the value's shape: a scalar towards `Anything` or its native, an object or a list of objects towards `JSON` or `JSON[]`.
-4. **The published `Anything` schema admits array and null** (both Codex runs). This is Phase 4, planned; the adversarial run adds that `Anything[]` items must carry the exclusion too, which Phase 4's step 1 already says.
-5. **The corpus gate, the stale docs and the missing changelog entry** (Codex review twice, cubic). This is Phase 5, planned.
-6. **Test layout** (cubic, P3): `test_explicit_forms.py` now holds three test classes and `test_errors.py` two, and the new classes carry docstrings, against the repo's testing rules. Move `TestInputShaperAnythingEnvelopes`, `TestInputShaperJSONEnvelopes` and `TestInputShaperFallbackRefusal` into their own modules, as `test_list_of_objects_report.py` already is, and drop the class docstrings.
-
-**Next, done since.** The triage below verified findings 1 to 3, fixed what survived and recorded the pass before Phase 4 started.
-
-Read for Phases 4 and 5 while the reviewers ran, so none of it needs re-deriving:
-
-- **Phase 4** also moves `test_anything_input_produces_a_verdict` in `tests/integration/pipelex/pipeline/test_protocol_validate.py`, which pins `set(anything_schema) == {"title", "description"}`, and `tests/integration/pipelex/cli/test_trace_input_semantics_cmd.py`, besides the two files step 2 names.
-- **Phase 5, the reference projection**: in `projection_reference.py`, `keeps_envelope` answers `code in OUT_OF_MATRIX_NATIVES or node.kind is FieldKind.OBJECT`, so the `JSON` code has to answer `False` ahead of the object test, and `_light_value` has to unwrap `json_obj` for a node whose native code is `JSON`.
-- **Phase 5, the divergence collector**: `_engine_dict_placeholder(path)` in `generate_projection_corpus_cmd.py` keys its placeholder by `path[-1]`, which at a compact `JSON` position is the slot name or a list index rather than `json_obj`. Give the collector the exact `JSON` positions from the descriptor, the way `register_fixed_counts` receives the fixed counts, use them in the `unknown-empty-object` arm, and update `tests/unit/pipelex/cli/dev_cli/test_projection_divergence_gate.py` to match. The site counts should not move; the example paths will.
-- **Phase 5, the error page**: `docs/errors/structure-validation-error.md` is generated, so the new case means converting it to an authored page (`<!-- pipelex:authored -->`, modelled on `docs/errors/model-not-found-error.md`) and running `generate-error-pages` and `generate-error-identity`, which should show no identity change.
-
-## Checkpoint 1's review, triaged — 2026-09-27
-
-The same session resumed after a compaction and triaged the findings above, with one verifier subagent reproducing findings 1 to 3 on the branch and, through `git archive origin/dev`, on `dev`. Every fix below was mutation-tested: removing it turns its test red.
-
-- **1, transport: confirmed and fixed.** The defect predates the branch (a hand-built `native.Anything` stuff fails the same way on `dev`), but R1 made every single `Anything` input reach it. `WorkingMemory.dump_for_transport` now stamps the class markers on the single content of a structureless concept, as it does on list items, and `hydrate_content` rebuilds that content from them. R9's premise, that internal serialization keeps content classes, holds again.
-- **2a, a prebuilt list in an `Anything` envelope: confirmed and fixed.** The envelope's `ListContent` is read as the list of its items, and a `ListContent` as an item is refused as a wrong kind, which also closes the same nesting at `Text[]` that predates the branch.
-- **2b, a typed singular envelope at a plural slot: predates the branch.** The `[N]` half is fixed, since a single value is never N items: `_reconcile_explicit_multiplicity` raises `MultiplicityCountMismatchError`. Whether a singular under `[]` is wrapped stays with Gap A in `wip/inputs/input-shaper-multiplicity-gaps.md`.
-- **2c, an `Anything` envelope at a `Dynamic` slot: confirmed and fixed.** It takes list or single from its content, as `_shape_explicit` does for every other envelope there.
-- **3, the fallback's refusal: confirmed and fixed.** An empty list, or a list holding prebuilt contents, keeps the factory's own reason through `StructureValidationError.make`; every other value gets `make_for_unreadable_bare_value`, whose advice now names the declaration that reads it: `JSON` for an object, `JSON[]` for a list of objects, `Anything` or `Anything[]` otherwise.
-- **4 and 5** were Phases 4 and 5, built next. **6, the test layout**, is fixed: each new test class has its own module, with no class or module docstring.
-
-## Checkpoint 2 — reached, 2026-09-27
-
-Phases 4 and 5 are built. The corpus regenerated with the four-bundle command reads: 16 pipes and 32 templates, 28 shaping cleanly and 4 declared unshapeable, all under L-260830-191719; divergences `file-leaf-not-expanded` 6, `fixed-count-honoured` 4, `object-native-keeps-envelope` 1, `optional-field-included` 167, `text-named-url` 6, `unknown-empty-object` 2, the same site counts as the committed capture. The compact `unknown-empty-object` example moved from `json_in.content.json_obj` to `json_in`, `json_in`'s compact template is `{}` in both formats, `anything_in` keeps its envelope and round-trips, and its contract carries the Phase 4 schema.
-
-Decided on the way:
-
-- **The divergence collector learns where a compact `JSON` slot unwraps** from the descriptor, through `register_json_unwraps`, as it learns fixed counts, because the engine's dict placeholder is keyed by the field holding the dict (`json_obj`) and the walk's path no longer names it there. An unregistered slot-level placeholder is refused, which a test pins.
-- **The schema and the shaper are shown to agree** by `test_anything_schema_agreement.py`, which validates every JSON type at `Anything`, `Anything[]` and `Anything[2]` against both, rather than asserting the schema's keys.
-- **`docs/errors/structure-validation-error.md` is an authored page now**, and the error identity did not change.
-- **The docs' `Order` example** (a concept refining `JSON`, singly and as `Order[]`) was probed through `validate_bundle` and `shape_inputs` before it was written down.
-
-## Checkpoint 2's review, triaged — 2026-09-27
-
-`/rev` at profile 4, round 2, bar `defects`, on the branch against `origin/dev` at the commit "Fix the Checkpoint 1 review findings, narrow the Anything schema, and land the corpus and docs". All four reviewers returned: cubic, Codex's review and adversarial runs, and the bundled `code-review` at `medium`, whose provenance matched the worktree, the commit and the diff's files. Every fix below was mutation-tested.
-
-- **A composite under `Anything` loses its components across transport** (`code-review`): fixed. `_hydrate_list_item` rebuilds a composite's components from their own markers at any depth, which also closes the nested-composite gap `wip/nested-composite-hydration-not-recursive.md` recorded, so that note is gone.
-- **The delivery cannot hydrate an `Anything` main stuff** (cubic, outside the diff but made visible by it): fixed. `try_local_hydrate_stuff` looked the concept's class up in the registry first, which a structureless concept never has, so the result files fell back to a raw dump that now showed the class markers.
-- **The fallback advises `Anything[]` for lists it refuses** (cubic, Codex review): fixed. A list holding nulls or nested lists gets no suggested declaration and keeps the factory's reason.
-- **A prebuilt `ListContent` mixing kinds is refused at `Anything[]`** (cubic): fixed. It is read as the bare list of its items, as inside an `Anything` envelope.
-- **NaN and the infinities** (Codex review): fixed at `Number` and `Anything` inputs, which refuse them as numbers JSON cannot hold.
-- **The changelog and the error page** (cubic): the chaining change through `--with-memory` is now a Breaking entry and a caveat in `provide-inputs.md`, the `JSONContent` entry names the case that actually changed (a value JSON cannot encode), and the error page no longer calls the container natives structureless.
-- **This plan's stale "Next" blocks and a local path** (cubic): the handoffs' next steps are marked done and the paths are gone.
-- **Chaining an `Anything` value through `--with-memory` changes its type** (Codex adversarial, high): deferred as ruled. It is R9, which `design.md` keeps out of this branch because it changes the run result and what every consumer displays; L-260927-da1b09 carries it with its round-trip test, blocked by this item.
-- **A typed singular envelope at `Anything[]` is stored unwrapped** (Codex adversarial, medium): deferred to Gap A's auto-wrap question, recorded in `wip/inputs/input-shaper-multiplicity-gaps.md`.
-- **A TOML date inside an object at a `JSON` or `Anything` input is refused** (cubic): deferred below. The refusal is typed and names the input; whether a date inside an object should become its ISO string is a reading of its own.
-
-The round was recorded with each Codex run named, and the pull request opened as pipelex#1287, where round 3 ran.
-
-## Checkpoint 2's review, round 3 — 2026-09-27
-
-`/rev` at profile 4, round 3, bar `necessity`, against pipelex#1287 at the commit "Fix the Checkpoint 2 review findings on transport, delivery and the fallback's advice". All four reviewers returned, and `code-review`'s provenance matched. Every fix below was mutation-tested.
-
-- **NaN and the infinities nested in an object** (cubic, both Codex runs; the adversarial run rated it high): fixed as a critical, since JSON serialization turned them into `null`. `JSONContent` validates with `allow_nan=False`, so a `JSON` or `Anything` object holding one anywhere is refused like any other value JSON cannot hold.
-- **The fallback's advice still named declarations that refuse the value** (`code-review`, cubic, Codex adversarial): fixed, because round 2's own fix was incomplete and its NaN refusal added a case. `_declaration_suggested_for` now asks `_anything_reads_item`, which mirrors what the `Anything` arm accepts: an envelope-shaped item, a non-finite number or an object JSON cannot encode gets no suggestion.
-- **The `Anything[]` schema admits an envelope-shaped item that R10 refuses** (cubic, Codex adversarial): deferred below.
-- **The inputs-file loader rewrites every relative `url` key, `JSON` data included** (cubic): deferred to L-260927-55f503. It predates this branch, which only adds a way in.
-- **A single `Anything` output holding a list breaks the narrowed schema** (`code-review`): rejected. An output contract describes the dumped content, and a `ListContent` comes back as an object holding `items`, which the schema admits; the bare array exists only in the private transport encoding.
-- **A `JSON` refinement with sibling fields loses them in the reference projection** (Codex review): rejected. A refining concept cannot declare a structure (`concept_blueprint.py`), so the state cannot occur.
-
-## Checkpoint 2's review, round 4 — 2026-09-27
-
-`/rev` at profile 4, round 4, bar `freeze`, against pipelex#1287 at the commit "Refuse NaN inside JSON objects, advise only declarations that read the value, and land the campaign docs", run by the skill's unattended default for a `freeze` bar. All four reviewers returned, and `code-review`'s provenance matched.
-
-- **An explicit `Number` envelope still carries NaN into a `NumberContent`** (Codex review): fixed as a critical, since serialization turns it into `null`. `NumberContent` refuses a non-finite number itself, so every explicit form and every concept refining `Number` is covered.
-- **Three statements this branch wrote were wrong**, corrected with no behaviour change: the changelog named the old `JSON` compact template as `{"json_obj": …}` where it was the whole envelope (cubic); `native-concepts.md` said `JSON` declares no structure of its own (cubic); and the docs and the agreement test claimed the `Anything` schema and the shaper agree exactly, where the shaper also wraps a single value sent to `Anything[]` (`code-review`).
-- **Repeated from earlier rounds and already traced** (Codex adversarial): the `--with-memory` chaining (R9, L-260927-da1b09), a typed singular envelope at `Anything[]` (Gap A), the inputs-file `url` rewrite (L-260927-55f503) and the `Anything[]` schema's envelope-shaped item (below).
-- **Deferred below**: the advice for an object with non-string keys (Codex review), and the second copy of the `Anything` arm's rules in `_anything_reads_item` (cubic).
-
-## After the merge
-
-L-260902-10eb56 lands with pipelex#1287, and both campaign documents are `landed` from that merge. Checkpoint 3's cross-repo half is carried by three items, each blocked by this one: L-260927-b1ca80 (`mthds-js`) and L-260927-cd33d1 (`mthds-python`) change their projections and re-commit the regenerated corpus with the `projection-corpus-update` skill, checking it against the Checkpoint 2 summary above, and L-260927-7f1e95 (`conformance`) removes `scaffold_anything_slot` from the census. The three pull requests merge together, or `conformance`'s fixture-drift and census checks go red for everyone.
-
-## Ledger
-
-- L-260902-10eb56 is claimed from the worktree; `ledger claim L-260902-10eb56 --renew` at the start of each session.
-- Ruled on here but not built: L-260902-9546ef, L-260926-f7bb28 (now linked to it) and L-260902-db6d1e keep their own fix directions under the design's R6.
-- Filed from this design: L-260927-bea35e (`pipelex`, the `Dynamic` envelope data loss, now also carrying the list half of the report) and L-260927-afaf62 (`mthds`, the runtime guide's compatibility pseudo-code).
-- Filed from the review: L-260927-da1b09 (`pipelex`, R9's runtime half, blocked by this item) and L-260927-223013 (`mthds`, R9's wording in the standard); L-260927-a8ec06 (`mthds`, question 4, decided and closed: `JSON` stays an object); L-260927-702c56 (`pipelex`, a JSON file reference into `JSON[]`, blocked by this item).
-- Filed at the pull request (Phase 6): L-260927-b1ca80 (`mthds-js`), L-260927-cd33d1 (`mthds-python`) and L-260927-7f1e95 (`conformance`), each blocked by this item.
-- Filed from round 3: L-260927-55f503 (`pipelex`, the inputs-file loader's signature-blind `url` rewrite).
-- Not touched: L-260831-1e1a71 owns the explicit arm's untyped escapes, which R8 deliberately leaves alone.
-
-## Deferred
-
-- **What a `Dynamic` slot holds.** Gap B of `wip/inputs/input-shaper-multiplicity-gaps.md` stays open for `native.Dynamic`, and a bare object or a list of objects there is refused, typed but refused. Both belong to L-260927-bea35e, which has to rule on what a `Dynamic` slot holds anyway.
-- **Top-down handlers for `Composite`, `Html`, `Page`, `TextAndImages` and `SearchResult`.** They stay on the fallback, refusing by name under R8 and taking an envelope. None has been reported, and each needs its own reading of a bare value.
-- **Codegen's `unknown` for an `Anything` slot** admits an array and a null that R4 excludes. A structureless concept is a declared imprecision in codegen, so it is left as is unless a consumer asks.
-- **The output side of an `Anything` value (R9)** is L-260927-da1b09 and L-260927-223013, with the round-trip test.
-- **A JSON file reference into `JSON[]`**, the way D11 reads a CSV into a structured list, is L-260927-702c56.
-- **Per-item envelopes in a list**, for every kind, would be a feature of their own; R10 refuses the spelling rather than read it for two kinds only.
-- **A TOML date inside an object** at a `JSON` or `Anything` input is refused as a value JSON cannot hold, though the same date at the top of an `Anything` input is read. Converting it to its ISO string would be a reading of its own, left until a caller asks.
-- **An envelope-shaped item of an `Anything[]` list** passes the published schema, an object that is neither an array nor null, while R10 refuses it. A schema can state it, as an item that is not an object keyed exactly `concept` and `content`, but every consumer of every `Anything[]` schema would carry that clause for one pathological shape, which a clear refusal already names. `test_anything_schema_agreement.py` says it leaves the shape out.
-- **The fallback's advice for an object with non-string keys**, which only a Python caller can send: `json.dumps` coerces `{1: "x"}`, so the refusal advises `JSON`, and `JSONContent` then refuses the integer key. The advice is wrong, but the refusal it rides on is right.
-- **`_anything_reads_item` restates what the `Anything` arm accepts** so the fallback never advises a declaration that refuses the value. Deriving both from one predicate would stop them drifting apart; the fallback-refusal tests pin every case the two share today.
diff --git a/wip/autofix/README.md b/wip/autofix/README.md
deleted file mode 100644
index b67887d61..000000000
--- a/wip/autofix/README.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# Autofix track
-
-Deterministic auto-fixing of `.mthds` validation errors — fixes attached to validation diagnostics, applied by a convergence loop.
-
-| Doc | What it is | Status |
-| --- | --- | --- |
-| [master-plan.md](master-plan.md) | Executive step ladder: spike → wave 1 → protocol/API/MCP/editor waves | **CURRENT — steps 1–5 DONE (steps 3+4 merged as PR #1035; step 5 on `feature/Autofix-step5`, PR-ready); step 6 (release train) next** |
-| [suggested-fixes-design.md](suggested-fixes-design.md) | The live design: architecture, fix rules, phases | **CURRENT — steps 1 + 2 DONE; per-checkpoint findings + the step-2 abstraction verdict recorded inside** |
-| [step5-human-cli-surfacing.md](step5-human-cli-surfacing.md) | Detailed design + working plan for step 5 (`pipelex fix bundle` + the `💡 Suggested fix:` line in `pipelex validate`) | **DONE — all phases incl. `--diff`; CHECKPOINT B cleared (5 bugs fixed, 5 deferred); PR-ready** |
-| [validation-error-reporting-plan.md](validation-error-reporting-plan.md) | Follow-on quality track (dogfooded on the internal bad-bundles playground): author-syntax messages at the raise sites, prose agent `validate`/`fix` surfaces, and one clean summary `message` on every surface | **DONE — all phases complete 2026-07-09; the cross-repo error-QA corpus regen is release-gated to step 6; archived from the worktree-root `TODOS.md`** |
-| [step3-step4-hardened-loop-and-agent-apply.md](step3-step4-hardened-loop-and-agent-apply.md) | Detailed design + working plan for steps 3 (multi-file targeting) and 4 (`pipelex-agent fix bundle`) | **DONE — merged as PR #1035; review triage in [pr-1035-review-notes.md](pr-1035-review-notes.md)** |
-| [pr-1035-review-notes.md](pr-1035-review-notes.md) | PR #1035 review triage — one real-but-inert finding deferred (intra-round cross-file collision) | **CURRENT** |
-| `deferred-checkpoint-{0,a,a-prime,b,c,d,e}-review-items.md` | Real-but-deferred items from each checkpoint's code review (multi-file targeting, cross-repo fixture sync, upstream `pipelex-tools-py` follow-ups, rename convergence cap, the step-5 exit triage in `-e`, …) | **CURRENT** |
-| [spike-reviewers-guide.md](spike-reviewers-guide.md) | Reviewer's guide for the step-1 spike PR (#1027) — the chain, invariants, test map | **DONE — Checkpoint 0 cleared 2026-07-07; archived from the worktree-root `TODOS.md`** |
-| [step2-reviewers-guide.md](step2-reviewers-guide.md) | Reviewer's guide for the step-2 PR (#1031) — the chain, invariants, test map | **DONE — Checkpoint 1 cleared 2026-07-08; archived from the worktree-root `TODOS.md`** |
-| [old-plan-to-auto-fix.md](old-plan-to-auto-fix.md) | The original `feature/Bundle-fixer` plan (standalone fix engine) | Superseded — kept as reference; its "Legacy reference" citations point at code that no longer exists |
-
-The abandoned `feature/Bundle-fixer` branch still exists and holds harvestable domain logic (see the design doc's salvage section), but its architecture is not the one we're building.
diff --git a/wip/autofix/deferred-checkpoint-0-review-items.md b/wip/autofix/deferred-checkpoint-0-review-items.md
deleted file mode 100644
index 3b3cc496b..000000000
--- a/wip/autofix/deferred-checkpoint-0-review-items.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# Deferred items from Checkpoint 0 code review
-
-Items surfaced by the clean-context code review of the Phase 0 spike (and the PR bot round) that are real but deliberately NOT addressed in the spike, per the no-over-engineering rule. Each belongs to an already-planned later step.
-
-## 0. `is_single_file` must derive from the RESOLVED library dirs (Phase 1, with multi-file targeting)
-
-Cubic finding, arbitrated VALID-but-DEFER. `fix_bundle_file` gates source-less fixes on `library_dirs is None`, which is wrong in both directions: an explicit `library_dirs=[]` is a documented "no libraries" value (`resolve_library_dirs` docstring) that IS single-file yet gets fixes dropped (safe-only over-filtering — reduced capability, never a wrong patch); and `library_dirs=None` can fall through to hub defaults or `PIPELEXPATH` and load OTHER files while the gate still calls it single-file. The band-aid one-liner (`not library_dirs`) would fix only the harmless direction. The correct fix — compute the gate from the resolved `effective_dirs` (`resolve_library_dirs(library_dirs)`) — is entangled with real multi-file targeting (item 1 below) and lands with it in Phase 1. No production caller passes `[]` today.
-
-## 1. Real multi-file fix targeting (Phase 1)
-
-The spike's convergence loop refuses to apply source-less fixes when `library_dirs` is set (`_applicable_safe_fixes` in `pipelex/pipeline/fixes/fix_loop.py`) — a safe no-op, not a solution. The review found the underlying gap: `SuggestedFix.source` is populated from `PipeValidationError.file_path`, and **no raise site in the codebase ever sets `file_path`**, so the source-based file check is dead code today. The scoping guard prevents the corruption scenario (same `pipe_code` in two domains → fix patches the wrong file's table), but multi-file bundles get no fixes at all.
-
-Phase 1 must thread the declaring file into the enriched errors — either set `file_path` at the raise sites (the pipe/library layer knows the source file) or carry a domain qualifier the loop can check against the target file's `domain` key. Until then, `fix` only fixes single-file bundles. This matches the master plan's "hardened loop (multi-file targeting)" Phase 1 item.
-
-## 1b. `_fix_fingerprint` must include `new_key` when rename ops land (Phase 1)
-
-gstack pre-landing review finding, deferred. The no-progress fingerprint in `fix_loop.py` hashes each op as `kind:path:key:value` and omits `new_key` — two `rename_table_key` ops differing only in `new_key` would collide and trigger a false no-progress bail. Zero impact today (no planner emits rename ops; the applier raises for them). Add `new_key` to the fingerprint in the same Phase 1 change that implements position-preserving rename.
-
-## 1c. Ship-wave changelog must mention the additive wire field
-
-Once released, `suggested_fix` surfaces in `/validate` API payloads (additive, `exclude_none`). The master-plan step 3 changelog entry should call out the new optional field so API consumers know about it.
-
-## 2. Cross-repo fixture regeneration (sync wave)
-
-A fixture in our cross-repo spec suite pins the exact JSON body of an `INADEQUATE_OUTPUT_MULTIPLICITY` error from a live `pipelex-api`. Once this enrichment (`suggested_fix` on `ValidationErrorItem`, `expected_output_ref`) reaches the runner API via a pipelex release + pin bump, that fixture needs regeneration. Belongs to the already-tracked cross-repo schema-sync step (master plan) — nothing to do in this repo now.
-
-## 3. Accepted as-is: unconditional `expected_output_ref` computation
-
-`PipeSequence.validate_output_with_library` now computes `expected_output_ref` before the compatibility checks, so it also runs on the happy path. Reviewed and accepted: the cost is one string format + attribute reads on a validation (not execution) path, and computing it lazily would re-duplicate the code the change deduplicated. Not deferred work — recorded so a later reviewer knows it was a deliberate call.
diff --git a/wip/autofix/deferred-checkpoint-a-prime-review-items.md b/wip/autofix/deferred-checkpoint-a-prime-review-items.md
deleted file mode 100644
index b3dd8013f..000000000
--- a/wip/autofix/deferred-checkpoint-a-prime-review-items.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Deferred follow-ups from Checkpoint A′ (format_mthds backend)
-
-Two forward-looking items surfaced during Phase A′ and its review, both concerning **`pipelex-tools-py`** — which is ours (`vscode-pipelex/crates/pipelex-py`), so both are upstream-fixable. Neither blocks Phase A′; recorded here to revisit at the noted trigger.
-
-## 1. Simplify the `Diagnostic` import workaround once the fixed `pipelex-tools-py` ships
-
-Louis is fixing the stub/runtime drift in the package.
-
-**What we hit:** `pipelex_tools`' PEP 561 stub declares `Diagnostic` / `Range` / `FormatResult` / `LintResult` in `__all__`, but those TypedDicts are type-only — not runtime exports of the compiled module. So `from pipelex_tools import Diagnostic` type-checks (pyright/mypy read the stub) yet raises `ImportError` at runtime.
-
-**Current workaround** (`pipelex/pipeline/fixes/applier.py`): import only the real callable `format_mthds` at module top, and pull `Diagnostic` in under a `TYPE_CHECKING` guard with a quoted annotation on `_render_syntax_diagnostic(diagnostic: "Diagnostic")`.
-
-**Follow-up (gated on the fix shipping + our pin bump):** once `pipelex-tools-py` exports the TypedDicts at runtime (or is otherwise fixed so the advertised import works), delete the `TYPE_CHECKING` block and the quoted annotation, and import `Diagnostic` at the top beside `format_mthds`. Bump the `pipelex-tools-py` pin in `pyproject.toml` to the fixed version in the same change. Purely a cleanup — no behavior change.
-
-## 2. Explore an upstream rename / canonical-ordering primitive for Phase C (`strip-namespace`)
-
-**Do not dig into this now** — it's a note for when Phase C is actually attempted (Phase C is a gated stretch; dropping it is a valid outcome).
-
-**Context:** Phase C's `strip-namespace` fix needs a **position-preserving rename** of a `[pipe.<domain>.<code>]` table key. The known trap (from the old `feature/Bundle-fixer` branch) is that a tomlkit `del` + re-add sends the renamed pipe to the bottom of `[pipe]`. Phase A′ does **not** rescue this: `format_mthds` reflows spacing and alignment but does **not reorder** tables or keys, so a reordered pipe stays reordered after the format pass.
-
-**Possible upstream angle:** since `pipelex-tools-py` is ours, `format_mthds` (or a sibling function) could expose either a position-preserving table-key **rename primitive** or a **canonical table-ordering** option. Either would let Phase C sidestep the fiddly tomlkit rename mechanics that currently gate the whole rule. Weigh this against just solving it in tomlkit when Phase C's go/no-go spike (TODOS.md C.1) runs.
diff --git a/wip/autofix/deferred-checkpoint-a-review-items.md b/wip/autofix/deferred-checkpoint-a-review-items.md
deleted file mode 100644
index 6f52c7642..000000000
--- a/wip/autofix/deferred-checkpoint-a-review-items.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# Deferred / reviewed items from Checkpoint A code review
-
-Clean-context multi-angle review of the `sync-controller-inputs` diff (`git diff <phase-base>..HEAD`). The confirmed correctness defects were fixed in the same checkpoint (see below); the items here are the design-tradeoff and forward-looking findings that are real but deliberately NOT acted on now, per the no-over-engineering rule.
-
-## Fixed in this checkpoint (not deferred — recorded for completeness)
-
-- **Inline-table canonicalizer crashed on non-bare keys and nested values.** The old `_canonical_inline_table` assembled TOML text with raw `f"{key} = {value}"`, assuming every key is a bare unquoted key and every value a scalar. A supported dotted input key (`"cv.name"`, allowed by `validate_input_name` and used in real fixtures) raised `KeyAlreadyPresent`; a nested inline-table value (a pipe authored as a single-line inline table, patched by `match-sequence-output`) raised `UnexpectedCharError`. Fixed by letting tomlkit itself render keys/values (native `inline_table()` assignment quotes non-bare keys, nests, and preserves each value's own string style) and splicing only the outer brace padding. Pinned by `test_dotted_input_key_survives_format` and `test_set_output_on_whole_pipe_inline_table_survives_format` (renamed in Phase A′, when the hand-rolled canonicalizer was replaced by the `format_mthds` pass — the crash modes now can't occur because the real parser handles valid TOML).
-- **`declared_inputs` was missing from `PipeValidationError.desc()`** while `expected_inputs` was shown — the field was added as the diff counterpart, so the asymmetry hid the "before" side in logged errors. Added the symmetric line.
-
-## 1. Keep the exhaustive `match self` classifier idiom (reviewed, not a defer)
-
-Several angles flagged that `is_controller_input_drift` and `is_inadequate_output` each hand-enumerate the whole `PipeValidationErrorType` set, so a new member must be classified in every `is_*` property. This is the sanctioned house style (`.claude/rules/python-standards.md`: no `case _:`, so pyright's exhaustiveness check *forces* a decision on every new member) — a `{error_type: fix_code}` mapping would trade that compile-time guarantee for silence. Keeping the idiom is the correct call, not a deferral. Revisit the ergonomics only if wave-2 rules push the classifier count high enough that the per-member edit cost outweighs the guard — a real refactor with its own design, not a spike edit.
-
-## 2. Trivia-preservation is solved twice (DISSOLVED by Phase A′)
-
-~~`applier._canonicalize_mutated_inline_table` transplants four trivia fields; `tools/misc/toml_sync.set_nested_value` swaps the whole trivia object.~~ **Moot as of Phase A′:** `_canonicalize_mutated_inline_table` is deleted — the applier no longer preserves inline-table trivia at all, because it no longer re-emits inline tables. `format_mthds` owns canonical spacing, and block-table comments survive by tomlkit's in-place mutation. The only remaining trivia handling is `toml_sync`'s, outside the fix pipeline. Nothing to consolidate.
-
-## 3. Per-`table_path` batch canonicalization (DISSOLVED by Phase A′)
-
-~~`_canonicalize_mutated_inline_table` runs after every `SET_KEY`/`DELETE_KEY`, re-canonicalizing the whole table per op.~~ **Moot as of Phase A′:** there is no per-op canonicalization left in the applier — `apply_fix_ops` is pure DOM mutation, and canonical formatting happens exactly once per file write (`serialize_and_format` → one `format_mthds` pass). The `O(N·K)` concern is gone.
-
-## 4. Micro-duplication in the `_*_for_fix` helpers (accept)
-
-`_expected_inputs_for_fix` and `_declared_inputs_for_fix` repeat the `if not self.is_controller: return None` guard and the one-line `to_bundle_representation(relative_to_domain=self.domain_code)` render. A shared `_render_input_ref` / caller-side guard would save two lines across two tightly-related methods. Small enough to leave; reconsider if a third `_*_for_fix` helper appears.
-
-## 5. Two op-shapes in `_plan_sync_controller_inputs` (early-warning, watch)
-
-The rule emits either one whole-table `SET_KEY` (no `inputs` declared yet) or N per-key `SET_KEY`/`DELETE_KEY` ops (diff an existing table) — the reason `TomlValue` was widened to `TomlScalar | dict[str, TomlScalar]`. Fine for one rule. If a second table-create-vs-patch rule lands (e.g. sync operator config, sync structure fields), factor the create-vs-diff decision into a shared planner helper rather than widening `TomlValue` further per rule. Flagged so wave-2 doesn't accrete op-shapes silently.
-
-## 6. `FixOp.value` wire-schema forward note (cross-repo, defer)
-
-No `pipelex/` consumer serializes `SuggestedFix` to wire format yet, so the `TomlValue` widening (dict-valued ops) is inert here. When a CLI/API surface (mthds/protocol, sibling repo) starts rendering `SuggestedFix`, it must type the value slot as `TomlValue`, not `TomlScalar`, or it will reject the dict-valued `sync-controller-inputs` fix. Extends checkpoint-0 item 1c (additive-field changelog) with the container-value nuance; belongs to the cross-repo schema-sync wave.
diff --git a/wip/autofix/deferred-checkpoint-b-review-items.md b/wip/autofix/deferred-checkpoint-b-review-items.md
deleted file mode 100644
index 752215da9..000000000
--- a/wip/autofix/deferred-checkpoint-b-review-items.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# Deferred follow-ups from Checkpoint B (`strip-native-concept-redecl`)
-
-The Phase B review fan-out (Sonnet-5 `/code-review` on the Phase B diff, no inherited context) surfaced two items. Neither is a defect; both are recorded here and closed for Phase B.
-
-## 1. Comment reflow when deleting a `[concept.X]` table with a leading comment
-
-**What it is.** `DELETE_KEY` on `["concept"]` removes the redeclared concept via tomlkit's `del`. When a *standalone comment line* sits directly above the deleted `[concept.X]` table, tomlkit reattaches that comment as leading trivia of the **next** surviving element (the successor table). `format_mthds` reflows spacing but does not reposition comments, so the comment ends up annotating unrelated content — a stale, potentially misleading comment describing removed illegal content now appears above legitimate content.
-
-**Why it's not fixed.**
-
-- The guarantee we make is that comments on *untouched* content survive; a comment sitting **on the deleted concept** is the only thing that can dangle.
-- Repositioning/removing a deleted node's leading trivia is fiddly tomlkit container-body work, disproportionate to a purely cosmetic artifact.
-- The autofix output is whole-file canonical MTHDS that the author reviews (and CI reformats). A leftover comment is visible in that review, not silently shipped.
-
-**What we did instead.** Pinned the behavior with a characterization test (`test_leading_comment_on_deleted_table_reflows_onto_successor` in `tests/unit/pipelex/pipeline/fixes/test_fix_applier_native_concept.py`) so it is explicit and regression-caught rather than an undocumented surprise, and kept the golden fixtures clean (comments placed on surviving content, which is what the fix guarantees to preserve).
-
-**If revisited.** A general "strip a deleted node's leading standalone comment(s)" pass in the applier would remove the artifact for every delete-shaped fix (this rule and any future one). Weigh it when a delete-shaped fix first ships to a human-facing surface (master-plan step 5), not before.
-
-## 2. `_extract_wrapped_native_concept_redeclaration_error` shares the shape of `extract_wrapped_pipe_validation_error`
-
-Both do the same three steps (check `error["type"] == "value_error"`, pull `ctx["error"]`, `isinstance`-narrow). The reviewer flagged a possible generic `TypeVar`-based unwrap helper serving both, then judged it "not a real problem — a small, readable, well-documented function."
-
-**Decision: no action.** Two readable call sites do not justify a generic helper; the same "keep the house style, don't over-abstract the enum-match/unwrap duplication" call was made at Checkpoint A. Revisit only if a third structural-unwrap site appears.
diff --git a/wip/autofix/deferred-checkpoint-c-review-items.md b/wip/autofix/deferred-checkpoint-c-review-items.md
deleted file mode 100644
index 8c2d8d100..000000000
--- a/wip/autofix/deferred-checkpoint-c-review-items.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Deferred follow-ups from Checkpoint C (`strip-namespace`)
-
-The Phase C review fan-out (multi-agent `/code-review` on the staged strip-namespace diff) surfaced eight findings. Three were fixed immediately (applier crash on `OutOfOrderTableProxy`/`InlineTable`, the `main_pipe` retarget collision gate in the categorizer, the cross-file rename collision guard in the fix loop). The two below are confirmed limitations deliberately deferred for later review; the cleanup notes at the end are recorded for completeness.
-
-## 1. `main_pipe` strip can rewrite to a pipe that does not exist
-
-**What it is.** The `main_pipe` strip enrichment never verifies that the bare target pipe exists — the `main_pipe` field validator runs before `pipe` validates, and the categorizer gate we added only suppresses the *retarget* case (both dotted and bare declarations present). With `domain = "greetings"`, `main_pipe = "greetings.helo"` (typo'd tail, no `[pipe.helo]` anywhere), the tail is valid snake_case so the enrichment fires, the SAFE fix rewrites the file to `main_pipe = "helo"`, and re-validation fails with the model validator's "Main pipe 'helo' could not be found" — an unfixable error. The user's file was mutated by a fix advertised as SAFE, the bundle stays invalid with a *different* error, and the author's original over-qualified spelling (which pointed at what they meant) is gone from the file.
-
-**Why it's deferred, not fixed.**
-
-- The natural home for an existence check is the categorizer's document-level gate (it holds the raw bundle dict, same as the retarget gate). But "exists" is subtler than it looks: the raw `pipe` dict at that point may itself contain dotted keys that a *sibling* strip-namespace fix will rename in a later iteration — `main_pipe = "d.hello"` with only `[pipe."d.hello"]` declared is exactly the convergent happy path (both strip to `hello` across iterations), and a naive "bare target must already exist" check would kill it.
-- The correct predicate is roughly "the bare tail exists as a key OR the dotted code itself exists as a key (its rename will materialize the bare target)". That needs deciding together with finding #5's one-error-per-pass behavior, since convergence order is what makes the second disjunct sound.
-- The failure mode leaves a *loud* residual error naming the missing pipe, not silent wrong execution — bad UX, not a correctness trap like the retarget case was.
-
-**If revisited.** Extend `_main_pipe_strip_would_retarget` in `validation_error_categorizer.py` into a broader `_main_pipe_strip_is_safe` gate implementing the two-disjunct predicate above, and pin the typo'd-tail scenario (enrichment suppressed, file untouched) plus the dotted-declaration happy path (still converges) in `test_strip_namespace_enrichment.py`.
-
-**Related (PR #1031, cubic P2 — same defect, second site).** A second review flagged that the `main_pipe` strip `SET_KEY` is not filtered by the fix loop's cross-file sibling-collision gate (`_is_cross_file_colliding_rename` / `_split_cross_file_rename_collisions`, `fix_loop.py:112-141`), which only recognizes `RENAME_TABLE_KEY` ops. The *stated* impact — silently retargeting `main_pipe` to a sibling file's pipe — is a **false positive**: `validate_main_pipe` is bundle-local and runs per-file before any library merge, so a stripped `main_pipe` can never resolve to a sibling's pipe; it always fails loudly with "could not be found". But the underlying gap is real and benign: in a two-file same-domain library (file A `[pipe."d.hello"]` + `main_pipe = "d.hello"`, sibling B `[pipe.hello]`), iteration 1 drops the paired declaration rename (cross-file collision) yet keeps and applies the `main_pipe` `SET_KEY`, writing an orphaned `main_pipe = "hello"` to file A before iteration 2 bails loudly on the still-present dotted declaration. Same benign family as this item (pointless file mutation, loud residual — not silent corruption). **Key coupling for the fix:** the categorizer-only gate proposed above does **not** cover this case — its second disjunct ("the dotted code exists as a key, so its rename materializes the target") is satisfied here, but the categorizer can't see that the rename will be blocked cross-file. So the suppression must **also** live in the fix loop's `_split_cross_file_rename_collisions` (`fix_loop.py:120`), where `sibling_pipe_codes` is known — e.g. also drop a root `main_pipe` `SET_KEY` whose value is in `sibling_pipe_codes` (or whose paired declaration rename was just dropped as colliding). The clean fix therefore spans **both** the categorizer and the fix loop.
-
-## 2. One declaration rename per iteration caps convergence at `max_iterations` dotted keys
-
-**What it is.** `validate_pipe_keys` (a `mode="before"` field validator) raises on the *first* invalid pipe key, so each validation pass surfaces at most one strip-namespace declaration rename. A bundle with more over-qualified `[pipe."domain.xxx"]` keys than `max_iterations` (default 5) exhausts the loop and returns `is_valid=False` with bail_reason "max_iterations reached without convergence" and a partially-rewritten file — even though every remaining error was mechanically fixable by the same rule.
-
-**Why it's deferred, not fixed.**
-
-- It is a completeness limitation, not a misfix: every rename applied is individually correct, and the bail is loud and explains itself.
-- The same one-error-per-pass shape is already an accepted convergence pattern in this codebase (`strip-native-concept-redecl` converges error-by-error the same way; pinned by `test_native_redeclarations_converge_error_by_error`).
-- The clean fix is to collect *all* invalid pipe keys in one pass and raise an aggregate (or plan one fix with multiple rename ops, the way `sync-controller-inputs` repairs all input drift at once). That changes the raise-site contract (`InvalidPipeCodeSyntaxError` carries one offending code) and the categorizer/planner discrimination protocol with it — a coherent follow-up chunk, not a patch to sneak in during review triage.
-
-**If revisited.** Either (a) make `validate_pipe_keys` accumulate offending keys and raise a multi-code error the planner turns into one multi-op fix, or (b) simply raise `max_iterations` for the declaration-rename rule. (a) is the solid fix; (b) is a stopgap that just moves the cliff.
-
-## Cleanup notes recorded, no action taken
-
-- The declaration-vs-`main_pipe` raise site is inferred implicitly twice (pydantic `loc[0]` in the categorizer, `pipe_code` None-ness in the planner) instead of riding the typed exception explicitly. An explicit marker on `InvalidPipeCodeSyntaxError` would remove both inference points.
-- `_strippable_same_domain_pipe_code` re-implements dotted-ref parsing that `QualifiedRef.parse()` provides; two parsers for one grammar can drift.
-- `existing_pipe_codes` in `validate_pipe_keys` is built eagerly on every bundle validation even when all keys are valid; a lazy build would keep the happy path allocation-free.
diff --git a/wip/autofix/deferred-checkpoint-d-review-items.md b/wip/autofix/deferred-checkpoint-d-review-items.md
deleted file mode 100644
index 04f1e2d82..000000000
--- a/wip/autofix/deferred-checkpoint-d-review-items.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Deferred follow-ups from Checkpoint D (Phase D step exit — PR #1031)
-
-The PR #1031 review surfaced one unresolved thread (codex, P2). It is a **confirmed** but **low-severity, fail-safe** edge-case bug whose proper fix requires a design decision, so it is deferred here with the thread left open rather than patched during triage. (The earlier "PR #1031, cubic P2" cross-reference in `deferred-checkpoint-c-review-items.md` is a *different* finding — the `main_pipe` `SET_KEY` cross-file gap — not this one.)
-
-## 1. Dotted-key controller inputs misfire `sync-controller-inputs`
-
-**Reporter.** codex (P2), on `pipelex/pipeline/fixes/planner.py:94-98` (`_plan_sync_controller_inputs`).
-
-**What it is.** When a controller input is authored with a **quoted dotted key** — e.g. `inputs = { "cv.name" = "Text" }` on a `PipeSequence` — the input-sync fix targets the wrong TOML key and either skips or duplicates.
-
-**Mechanism (all cited).**
-
-- `InputStuffSpecs.validate_concept_codes` collapses the authored key `cv.name` → root `cv` via `get_root_from_dotted_path` (`pipelex/core/pipes/inputs/input_stuff_specs.py:55`), so `self.inputs.root` is keyed by root names only.
-- `_declared_inputs_for_fix` / `_expected_inputs_for_fix` read those already-normalized root keys (`pipelex/core/pipes/pipe_abstract.py:301-304`, `279-291`). The authored dotted key is gone before the pure planner runs.
-- The planner emits ops keyed on `cv` (`planner.py:94` SET, `planner.py:98` DELETE). The applier matches the **literal** TOML key (`applier.py:198` for SET, `207-208` for DELETE). Because `cv` ≠ `"cv.name"`, the op misses.
-
-**The authoring form is supported, not a mistake.** `is_valid_input_name` explicitly permits dotted (sub-attribute) input names, and `test_fix_applier_inputs_sync.py:94` (`test_dotted_input_key_survives_format`) authors exactly `inputs = { "cv.name" = "Text", cv = "Curriculum", note = "Text" }` on a `PipeSequence`, calling `"cv.name"` "a supported sub-attribute name." That test only covers deleting an *unrelated* sibling key, so this drift scenario is real and untested. (Note: only the **quoted** form is reachable — an unquoted `cv.name = "Text"` nests to `{cv: {name: ...}}`, whose dict value fails `PipeBlueprint.inputs: dict[str, str]` at blueprint parse. codex scoped the claim correctly.)
-
-**Why it fails safe (this is the reason it is low-severity, not a correctness trap).**
-
-- **Case A — extraneous dotted input.** `DELETE_KEY cv` finds no `cv` key (only `"cv.name"`) → **skipped** (`applier.py:207-208`) → `any_op_applied=False`, no file write → the same fix fingerprint is re-proposed next iteration → the loop bails **loudly** with `is_valid=False`, bail_reason "no progress" (`fix_loop.py:191-203`). The file is untouched and the error is correctly reported unfixed.
-- **Case B — drifting dotted input (concept/multiplicity mismatch).** `SET_KEY cv=<new>` **appends** `cv` beside the existing `"cv.name"` (`applier.py:198`). On re-validation `InputStuffSpecs` re-collapses both to root `cv`; iteration order makes the later (`cv=<new>`, correct) value win, so validation **passes** — but a stale/shadowed `"cv.name"` line is left in the file. It is valid TOML and invisible to the `EXTRANEOUS_INPUT_VARIABLE` check (which iterates `self.inputs.variables`, i.e. root keys — `pipe_abstract.py:385`), so it never re-errors.
-- **No path** reports an invalid bundle as valid, crashes, or corrupts the file. Even a hypothetical key-order flip in Case B would just fail validation and re-hit the same no-progress bail. Worst observed outcome: a loud "couldn't fix" (Case A) or a cosmetic stale line in an otherwise-correct, valid file (Case B).
-
-**Why deferred, not fixed now.** The planner is **structurally blind** to the dotted case — normalization to `cv` is lossy and irreversible before the planner ever sees the data, and `declared_inputs={"cv": ...}` is indistinguishable from a genuine bare `cv` declaration. So the planner cannot detect or guard it without disabling *all* controller-input fixes. That leaves three real options, and choosing among them is a design decision:
-
-1. **Applier-side root-aware resolution (recommended).** In `_apply_one_op` (`applier.py:191-210`), when `table_path` ends in `inputs`, resolve any existing literal key whose `get_root_from_dotted_path(key) == fix_op.key` before acting: DELETE removes that dotted key; SET replaces/renames it in place instead of appending a sibling. Bounded and local, but it special-cases an intentionally **path-generic** applier (see its module docstring) — so it needs a conscious "yes, `inputs` tables get special treatment" call.
-2. **Carry the authored key through.** Preserve the un-normalized requirement expression from `InputStuffSpecs` into the error data so the planner can target the literal key. This ripples widely — everything downstream relies on `self.inputs.root` being root-keyed — and touches the error model plus all three raise sites (`pipe_abstract.py:339-340`, `380-381`, `394-395`). Heaviest option.
-3. **Accept the edge case.** Given it already fails safe, document it and move on.
-
-Recommendation: option 1 if we decide dotted controller inputs are worth first-class fix support; otherwise option 3. Option 2 is out of proportion to the payoff.
-
-**If revisited.** Implement option 1 in `applier.py`, and pin both cases in `test_fix_applier_inputs_sync.py`: Case A (extraneous dotted key actually removed, loop converges instead of bailing) and Case B (drifting dotted key replaced **in place**, no duplicate `cv` line left behind). `test_dotted_input_key_survives_format` is the existing sibling test to sit next to.
-
-**Thread:** https://github.com/Pipelex/pipelex/pull/1031 — codex comment on `pipelex/pipeline/fixes/planner.py:94-98` (left open).
diff --git a/wip/autofix/deferred-checkpoint-e-review-items.md b/wip/autofix/deferred-checkpoint-e-review-items.md
deleted file mode 100644
index 14332a3d0..000000000
--- a/wip/autofix/deferred-checkpoint-e-review-items.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# Checkpoint B (step 5 exit) — code-review triage
-
-Exit review for step 5 (`pipelex fix bundle` + the `💡 Suggested fix:` line in `pipelex validate`), branch `feature/Autofix-step5`, diff `git diff 611644e82..HEAD`.
-
-## How this review actually ran
-
-The workflow-backed `/code-review` (high effort) fanned out four finders that pooled **19 candidate findings**, then tried to spawn one verifier per distinct `(file, line)`. **Every verifier agent (13/13) died on an Anthropic session limit** before adjudicating anything — the workflow's headline "No findings survived verification" reflects `verified: 0, refuted: 0`, i.e. the verify stage collapsed, **not** a clean bill of health. So the 19 candidates were triaged by hand against the code (the journal is at `subagents/workflows/wf_48d1dfe9-5f4/journal.jsonl`). The 19 dedupe to 11 distinct issues below.
-
-## Fixed in this branch (confirmed bugs)
-
-These were verified reachable against the code and fixed at checkpoint exit.
-
-1. **mkdocs nav orphan** — `mkdocs.yml`. `docs/tools/cli/fix.md` was added only to the llmstxt plugin's page-title map (the `Reference:` block ~line 269), not to the site `nav:` `CLI Reference` block (~line 489). The page was unreachable from site navigation and `mkdocs build --strict` would flag it. Fix: added `- Fix: tools/cli/fix.md` after `Validate` in the real `nav:`.
-
-2. **`validate` footer not shell-safe** — `error_handlers.py` ~line 367. The actionable `pipelex fix bundle <path> -L <dir>` footer was built by bare f-string interpolation of `bundle_path` and each `-L` dir. A path containing a space rendered a command that splits when copy-pasted (the one-click remediation the feature exists for). Fix: `shlex.quote` each interpolated path.
-
-3. **`fix` still-invalid tip contradicts its own suggested-fix lines** — `_fix_core.py` ~line 120. The still-invalid arm always printed "…they have no deterministic safe fix, so they need a manual edit", but `remaining_errors` routinely carries items **that do** have a `💡 Suggested fix:` line — errors skipped by `--select`/`--ignore`, dropped for being out of write scope, or left by a `max_iterations`/no-progress/collision bail. The shipped integration test `test_select_filter_is_honored_end_to_end` produces exactly this contradiction. Fix: make the tip conditional — when any remaining error still carries a suggested fix, point at the filters / `-L` / bail reason instead of claiming a manual edit is the only option.
-
-4. **`--diff` PipeSignature wording asserts the file is valid** — `_fix_core.py` ~line 94. Under `--diff`, a run that converges to valid-with-pending-signatures printed "Bundle is valid but NOT yet runnable …" in the same non-conditional phrasing as a real write, even though nothing was written and the on-disk bundle is still invalid. Fix: make the pending-signature messaging preview-aware ("would be valid but would still not be runnable").
-
-5. **`--diff` crashes and mislabels on a missing `-L` dir; diverges from the real run** — `_diff_sandbox.py` + `_fix_core.py`. A non-existent `-L` dir makes `shutil.copytree` in `mirror_bundle_for_preview` raise `FileNotFoundError`, which `execute_fix`'s blanket `except FileNotFoundError` mislabels as `"bundle file not found: '<bundle_path>'"` (the bundle exists — the `-L` dir is what's missing) and exits 2. The **real** (non-`--diff`) run tolerates a missing dir (`library_utils.get_pipelex_mthds_files_from_dirs` skips it; `resolve_library_dirs` keeps it in `effective_dirs` so multi-file semantics are unchanged) and still produces a 0/1 verdict. Fix: `mirror_bundle_for_preview` creates an **empty** copy dir for a missing `-L` dir instead of copying it — no crash, the dir contributes no files (matching the real loader), and the 1:1 dir count preserves `is_single_file`, so the preview verdict tracks the real run.
-
-## Deferred (real, but design tradeoffs or niche — not snap-fixed at checkpoint exit)
-
-Per the house pattern (`feedback_defer_design_tradeoff_findings`): findings that are genuine but are design tradeoffs, currently-unreachable latent gaps, or DRY refactors whose correct fix touches a layering boundary — captured here rather than patched reflexively at exit.
-
-- **A. `validate` footer over-counts fixable errors** — `error_handlers.py` ~line 365. `fixable_count` counts every `ValidationErrorItem` carrying a `suggested_fix`, but `pipelex fix`'s loop then drops fixes that are UNSAFE, source-less under multi-file validation (`_safe_fixes`), or target files outside the per-call write scope (`_partition_by_write_scope`). So in ambient/multi-file edge cases (a fixable error whose fix is sourced at a hub-default / `PIPELEXPATH` file, validated with no `-L`) the footer promises "N can be fixed" and the suggested command then bails "outside write scope", applying nothing. **Not reachable in the common single-file, all-safe-rules path** (all shipped rules are SAFE; sources are backfilled). A faithful count would have the renderer re-derive `resolve_library_dirs` + `_safe_fixes` + write-scope — coupling the validate presentation layer to fix-loop internals. **Recommendation:** either (a) soften the footer from a promise to a hint ("may be auto-fixable — try:") — cheap but slightly dilutes the good common-case UX, or (b) factor a shared `count_applicable_fixes(items, *, library_dirs)` helper in the fixes package that both the loop and the footer call, so the promise is exact. Prefer (b) when an UNSAFE rule or heavier multi-file usage ships; until then the over-promise is confined to niche ambient setups.
-
-- **B. `--diff` sandbox copies each `-L` dir separately — no resolved-path dedup** — `_diff_sandbox.py` ~line 71. Each explicit `-L` dir is mirrored into its own `lib_<i>`, so overlapping/duplicate/nested `-L` values (`-L a -L a`, or directory mode `dir/` combined with `-L $PWD/dir`) become physically distinct files that defeat the real loader's resolved-path dedup (`library_manager` collapses them). The preview then reports duplicate pipe/concept declarations and "would still be invalid" (exit 1) while the real run dedupes and converges (exit 0). **Niche** (requires the user to pass overlapping `-L` dirs). Correct fix: dedupe `-L` dirs by resolved path before mirroring and let `to_original` map multiple original roots onto the single copy (the mapping currently assumes one original per copy). Deferred because the multi-origin `to_original` change deserves its own tests, and the trigger is unusual. Note the adjacent question of whether `resolve_bundle_target`'s directory auto-injection should itself dedupe against an explicit `-L` (it string-compares the injected relative dir against an absolute `-L`).
-
-- **C. `resolve_bundle_target` duplicated across the human and agent CLIs** — `pipelex/cli/commands/bundle_path_resolver.py` re-implements `pipelex/cli/agent_cli/commands/bundle_path_resolver.py` near-verbatim (same `expanduser`, `DEFAULT_BUNDLE_FILE_NAME` precedence, single-`*.mthds` glob fallback, library-dir injection), differing only in error presentation (typer red-err vs the agent's structured error). ~60 lines now live twice; a future change to the resolution rules applied to one twin silently diverges the surfaces, breaking the "fix patches exactly the file validate judged" invariant. **Recommendation:** extract a shared core that resolves and raises a typed `BundleTargetResolutionError`, each CLI rendering it in its own presentation. Deferred as a DRY refactor, not a live bug (behavior is currently identical). This is the same shape as the step-3/4 shared-resolver work; fold it into the next surfacing wave rather than a checkpoint-exit patch.
-
-- **D. `_reject_invalid_rule_filters` duplicated across the human and agent CLIs** — `pipelex/cli/commands/fix/bundle_cmd.py` duplicates the identically-named check in `pipelex/cli/agent_cli/commands/fix/bundle_cmd.py` (same `--select`/`--ignore` mutual-exclusion rule and `KNOWN_FIX_CODES` set-math), differing only in presentation. Same risk and remedy as C: extract the set-math into a shared helper returning the violation, each CLI presenting it. Deferred with C.
-
-- **E. Dry-run diagnostic can be dropped in `fix`'s still-invalid arm** — `_fix_core.py` still-invalid rendering. `validate`'s human handler re-prints `exc.dry_run_error_message` alongside categorized errors (the shared items builder projects the dry-run channel only when it is the sole failure channel). `fix`'s still-invalid arm renders only `remaining_errors` (same builder output) and has no equivalent guard, and `FixBundleResult` does not carry `dry_run_error_message` separately. **Currently unreachable:** `validate_bundle`'s raise arms never produce categorized errors and a dry-run message together (the finder acknowledged this). Latent only. Fixing it means adding a `dry_run_error_message` field to `FixBundleResult` and threading it — more than a rendering tweak, for a case the code can't currently hit. Deferred as a latent-consistency item; revisit if `validate_bundle` ever raises the mixed shape.
-
-## Considered and rejected (not a defect)
-
-- **`ValidationErrorCategory.is_dry_run` property is "speculative API for one call site"** — `base_exceptions.py`. A finder argued the 4-arm exhaustive-match property should be an inline `item.category == ValidationErrorCategory.DRY_RUN`. **Rejected:** this contradicts the repo's Python standard (`.claude/rules/python-standards.md` → "Never test equality to an enum value: use match/case … add `@property` methods to the enum class such as `is_foobar()`"). The property is the house-preferred form precisely so that adding a `ValidationErrorCategory` member makes the linter flag every site that must handle it. Keeping it.
diff --git a/wip/autofix/master-plan.md b/wip/autofix/master-plan.md
deleted file mode 100644
index 39526d12a..000000000
--- a/wip/autofix/master-plan.md
+++ /dev/null
@@ -1,94 +0,0 @@
-# Autofix — executive master plan
-
-Deterministic auto-fixing of `.mthds` validation errors. Full rationale and architecture: [suggested-fixes-design.md](suggested-fixes-design.md). Approved decisions: fixes attach to validation diagnostics (D1), runtime-only wire first (D2), wave 1 targets agent CLI + skills (D3), pruning cut from wave 1 (D4).
-
-**Guiding principle:** one validation engine feeds every surface. Validators state what they expected; a planner turns that into structured `suggested_fix` payloads on the report; appliers and commands are thin. Fix ops are contract, rendered diffs are presentation.
-
-## Where we are
-
-**Step 1 (spike) is DONE** — PR #1027 vs dev, merge-ready. The full chain is proven on one rule (`match-sequence-output`): enriched typed error → planner → tomlkit applier → convergence loop, all TDD, golden format-preservation tests pinning tomlkit's in-place style preservation. The `suggested_fix` payload already rides `pipelex-agent validate bundle --format json` and the `/validate` API 422 body, because the planner hooks into the one shared `build_validation_error_items` builder. Checkpoint findings are recorded in the design doc; deliberate deferrals in [deferred-checkpoint-0-review-items.md](deferred-checkpoint-0-review-items.md).
-
-**Step 2 (wave-1 rule breadth) is DONE** — on the stacked branch `feature/Autofix-step2` (PR #1031). All three wave-1 rules landed, each a deliberately different fix *shape*: `sync-controller-inputs` (multi-op in-place table sync, Phase A), `strip-native-concept-redecl` (delete-shaped, first blueprint channel, Phase B), and the stretch `strip-namespace` (position-preserving rename, Phase C — **GO, shipped**). Mid-step, Phase A′ swapped the applier's hand-rolled canonicalization for the in-process `pipelex_tools.format_mthds` backend (core runtime dep). **Abstraction verdict (CHECKPOINT 1): `SuggestedFix`/`FixOp` survived all four shapes with no structural change** — the only wire-level edit was widening `TomlValue` (the type of `FixOp.value`) to admit a flat scalar dict; the feared array-of-tables `table_path` extension was never needed. Full verdict + carried-forward warts in the design doc's "Step-2 exit — abstraction verdict" section; per-checkpoint deferrals in `deferred-checkpoint-{a,a-prime,b,c,d}-review-items.md`. Reviewer's guide: [step2-reviewers-guide.md](step2-reviewers-guide.md) (archived from the worktree-root `TODOS.md`).
-
-**Steps 3 (hardened loop) and 4 (agent apply surface) are DONE** — merged together as PR #1035 (`feature/Autofix-step4-Agnt-Apply`). Step 3 replaced the spike's drop-everything scoping guard with real multi-file targeting (source backfill at the translate funnel, resolved-dirs single-file gate, write-scope policy, per-file apply with `files_written`); step 4 shipped `pipelex-agent fix bundle` with the CLI-free markdown renderer and full test coverage. The PR review triage fixed two confirmed bugs and deferred one inert finding to [pr-1035-review-notes.md](pr-1035-review-notes.md).
-
-**Step 5 (human CLI surfacing) is DONE** — `pipelex fix bundle` (including the `--diff` preview), the `💡 Suggested fix:` lines + actionable footer in `pipelex validate`, docs, and changelog all landed on branch `feature/Autofix-step5`; detailed plan + decisions: [step5-human-cli-surfacing.md](step5-human-cli-surfacing.md). The CHECKPOINT B exit review fixed five confirmed bugs on the branch and deferred five tradeoffs — triage in [deferred-checkpoint-e-review-items.md](deferred-checkpoint-e-review-items.md). The branch is PR-ready; **step 6 (release train) is next**, and its CHANGELOG must still name the additive `suggested_fix` wire field in `/validate` payloads (deferred item 1c) plus regenerate the cross-repo error-QA fixture (deferred item 2).
-
-## Sequencing doctrine (decided 2026-07-07)
-
-- **The agent surface is the proving ground.** Agent JSON output and tests are where the `SuggestedFix`/`FixOp` shape gets iterated freely — machine consumers we control, no format freeze. This is D3 operationalized.
-- **The human CLI comes last in wave 1, gated on two testable bars** — not on a "complete fixer" (completeness is a moving target and invites big-bang scope):
- 1. The abstraction has been stress-tested by rules of *different shapes* — not just another `set_key`, but in-place table sync and delete ops — so the wire shape and the `description` wording are known-stable before humans see them.
- 2. The apply command exists, so a human-facing hint has an action behind it (`pipelex fix`), not a "go hand-edit this" teaser.
- Rationale: a `💡 Suggested fix` line that appears for exactly one error class reads worse than no hints at all, and anything shown to humans becomes user-facing output we can no longer reshape freely.
-- **Known plumbing fact for the human step:** the human renderer (`_display_validation_error_details` in `pipelex/cli/error_handlers.py`) does NOT flow through `build_validation_error_items` — it iterates raw `PipesAndConceptValidationErrorData` and prints fields by hand. Surfacing fixes there is a deliberate addition (call the planner from the renderer, or route it through the shared items), not free-riding on existing wiring.
-
-## Steps
-
-### 1. Spike — prove the chain end-to-end — **DONE (PR #1027)**
-
-One rule through all layers, no CLI command, driven by tests. Exit criteria met: chain proven, format preservation demonstrated by golden tests, design doc updated with findings. Reviewer's guide: [spike-reviewers-guide.md](spike-reviewers-guide.md).
-
-### 2. Wave-1 rule breadth — stress the abstraction — **DONE (PR #1031)**
-
-Detailed implementation plan with progress checkboxes: was `TODOS.md` at the worktree root, now archived as [step2-reviewers-guide.md](step2-reviewers-guide.md).
-
-Add the remaining wave-1 rules, in this order (each is a different fix *shape*, which is the point):
-
-- **`sync-controller-inputs`** — `MISSING_INPUT_VARIABLE` / `EXTRANEOUS_INPUT_VARIABLE` / `INPUT_STUFF_SPEC_MISMATCH` on a controller pipe → in-place sync of the `inputs` table with `needed_inputs()`. First non-`set_key` shape: multiple ops per fix, add/update/delete inside an existing table without rebuilding it (the old branch's rebuild destroyed comments/style). Carries the two rule guards from the design doc: **optionals markers** (preserve the author's `?`/`!` when concept+multiplicity already match; derive markers only for added inputs) and **prerequisite-clean** (suppress the fix when co-errors like `UNRESOLVED_PIPE_DEPENDENCY`/`UNRESOLVED_CONCEPT` on the same pipe make `needed_inputs()` untrustworthy — the loop picks it up next round).
-- **`strip-native-concept-redecl`** — blueprint-level error for a redeclared native concept → `delete_table` / `delete_key` for `[concept.X]` or inline `concept.X = "..."`. First *blueprint-channel* fix (the spike only enriched the pipe-validation channel) and first delete-shaped fix in production.
-- **`strip-namespace` (stretch)** — same-domain dotted pipe codes → position-preserving rename + rewrite of internal refs (`steps`, `branches`, `branch_pipe_code`, `outcomes`, `default_outcome`, `main_pipe`). Gated on **position-preserving rename mechanics** in tomlkit (the old branch's `del`+re-add reordering bug is the thing to avoid); if rename doesn't land clean, this rule stays out of wave 1. When rename lands, also add `new_key` to the loop fingerprint (deferred item 1b).
-
-Exit (**CHECKPOINT 1**) — **met:** all wave-1 rules green with planner suppression tests + golden format-preservation tests; the explicit **abstraction verdict** is recorded in the design doc ("Step-2 exit — abstraction verdict") — `SuggestedFix`/`FixOp` survived multi-op, delete, blueprint-channel, **and** rename fixes with no structural change (only an additive `TomlValue` widening). **strip-namespace decision: GO — shipped** (position-preserving rename via tomlkit's `Container._replace`; `RENAME_TABLE_KEY` proven end-to-end; the array-of-tables `table_path` extension it was gated on turned out never to be needed).
-
-### 3. Hardened loop — real multi-file targeting
-
-Detailed design + working plan (shared with step 4): [step3-step4-hardened-loop-and-agent-apply.md](step3-step4-hardened-loop-and-agent-apply.md), on the stacked branch `feature/Autofix-step4-Agnt-Apply`.
-
-Replaces the spike's conservative scoping guard (source-less fixes are simply dropped under `library_dirs`). Deferred items 0 and 1 from checkpoint 0:
-
-- Thread the declaring file into enriched errors — set `file_path` or better yet `source` at the raise sites, so `SuggestedFix.source` is actually populated and the loop's file check stops being dead code.
-- Derive `is_single_file` from the **resolved** effective dirs (`resolve_library_dirs`), fixing both wrong directions of the current raw-arg check (`[]` is documented single-file but treated as multi; `None` can fall through to hub defaults/`PIPELEXPATH` and load other files while being treated as single).
-
-Ships behind CHECKPOINT 1. Exit: fixes apply correctly across multi-file bundles, targeting the declaring file only; the drop-everything guard is gone.
-
-### 4. Agent apply surface — `pipelex-agent fix bundle`
-
-Detailed design + working plan (shared with step 3): [step3-step4-hardened-loop-and-agent-apply.md](step3-step4-hardened-loop-and-agent-apply.md).
-
-Thin command over `fix_bundle_file`: two-stream output per the workspace output conventions (`--format`/`--error-format`, JSON contract carrying `FixBundleResult` — is_valid, iterations, fixes_applied, remaining_errors, bail_reason; markdown rendering for the agent as presentation). e2e CLI snapshot tests. This is the milestone where an agent can run validate → fix → re-validate entirely from the CLI. Exit: command shipped on the agent CLI, snapshots green.
-
-### 5. Human CLI surfacing — gated on steps 2 + 4 — **DONE (branch `feature/Autofix-step5`, PR-ready)**
-
-Detailed implementation plan with progress checkboxes: [step5-human-cli-surfacing.md](step5-human-cli-surfacing.md). Checkpoint B triage: [deferred-checkpoint-e-review-items.md](deferred-checkpoint-e-review-items.md).
-
-Both gates from the sequencing doctrine are now met. Two pieces, landed together for symmetry:
-
-- `pipelex fix` (human command) wrapping the same loop with human-rendered output.
-- `💡 Suggested fix:` line per fixable error in `pipelex validate`'s error rendering (via the planner from the human renderer path — see plumbing fact above), showing `SuggestedFix.description` only (ops stay machine-facing).
-
-Exit: a human can see the suggestion in `validate` and apply it with `fix`, with output that names every change made.
-
-### 6. Ship wave 1
-
-Release train: CHANGELOG entry (must mention the **additive `suggested_fix` wire field** now surfacing in `/validate` API payloads — deferred item 1c — plus the new commands), docs page in `docs/`, cut the pipelex release. Post-release follow-through: regenerate the fixture in our cross-repo spec suite that pins the `/validate` error body (deferred item 2) and bump the pipelex-api pin when the runner picks the version up. Exit (**CHECKPOINT 2**): released; hand-off list for wave 2 recorded.
-
-### 7. Skills uptake
-
-Update the `mthds-fix` skill (and the pipelex-plugins equivalent) to run deterministic `fix` before manual LLM editing. Cross-repo, cheap, gated on step 6's release.
-
-### 8–10. Wave 2 (each gets its own plan when it starts)
-
-- **Protocol promotion**: `suggested_fix` becomes a formal MTHDS protocol surface — protocol-spec sections, a cross-repo spec-suite arm, schema sync to downstream copies (mthds, mthds-js, mthds-python).
-- **Remote surfaces**: API `POST /fix` on pipelex-api, MCP `mthds_fix` tool — thin wrappers over the same engine/report; the markdown renderer already lives CLI-free for this reason.
-- **Editor**: VS Code `CodeActionProvider` (first code action in the extension), quick fixes keyed on `diag.code = error_type` with fix payloads riding the existing validation backends.
-
-These are independent of each other once wave 1 has shipped and can be re-prioritized freely.
-
-### Later
-
-Pruning rules (`prune-unreachable`, `prune-unused-concepts`) resurrected as opt-in lint warnings with attached fixes (D4 — they're cleanups, not fixes); further rules as validator enrichment makes them deterministic.
-
-## Sequencing summary
-
-Step 2 → 3 → 4 are the wave-1 engine-and-agent track and land in that order (3 may overlap 2). Step 5 is deliberately gated on 2 + 4, never earlier. Step 6 ships the lot; 7 follows the release. Each step gets its own detailed TODOS-style plan when it starts — this document stays the map.
diff --git a/wip/autofix/old-plan-to-auto-fix.md b/wip/autofix/old-plan-to-auto-fix.md
deleted file mode 100644
index 9f3f9f25c..000000000
--- a/wip/autofix/old-plan-to-auto-fix.md
+++ /dev/null
@@ -1,384 +0,0 @@
-# Strategy: `pipelex fix` / `pipelex-agent fix` command
-
-## Goal
-
-A new standalone CLI command that auto-fixes deterministic issues in `.mthds` bundles, similar to `ruff check --fix`. Operates on bundle files only, accepts a list of paths.
-
-Tier 1 only: all fixes are deterministic, no LLM involved, no iteration loop.
-
-## CLI surface
-
-### `pipelex-agent fix`
-
-```
-pipelex-agent fix my_method.mthds # apply default fixes, show diff on stderr, write file
-pipelex-agent fix my_method.mthds other.mthds # fix multiple bundles
-pipelex-agent fix my_method.mthds --stdout # output fixed file to stdout (for agents)
-pipelex-agent fix my_method.mthds --select strip-namespace,sync-controller-inputs
-pipelex-agent fix my_method.mthds --ignore match-sequence-output
-pipelex-agent fix my_method.mthds --prune # opt-in: also run prune-unreachable + prune-unused-concepts
-```
-
-### `pipelex fix`
-
-```
-pipelex fix my_method.mthds # fix single bundle, show diff, write file
-pipelex fix *.mthds # fix all bundles via shell glob
-pipelex fix my_method.mthds --stdout # fixed file to stdout
-pipelex fix my_method.mthds --prune # opt-in pruning
-```
-
-### Rule categories
-
-Rules are split into two groups with different defaults:
-
-| Group | Rules | Default |
-|-------|-------|---------|
-| **Correction rules** | `strip-namespace`, `strip-native-concept-redecl`, `sync-controller-inputs`, `match-sequence-output`, `fix-list-notation` | ON — always applied unless `--ignore`'d |
-| **Pruning rules** | `prune-unreachable`, `prune-unused-concepts` | OFF — require `--prune` or explicit `--select` |
-
-`--prune` is a shorthand for `--select prune-unreachable,prune-unused-concepts` on top of the default correction rules. It can combine with `--ignore` to still exclude specific correction rules.
-
-`--select` and `--ignore` are mutually exclusive.
-
-### Output behavior
-
-| Mode | stdout | stderr | File |
-|------|--------|--------|------|
-| Default | JSON result with `fixes_applied` array | unified diff of changes | written in-place |
-| `--stdout` | fixed `.mthds` content | unified diff + JSON diagnostics | untouched |
-
-When multiple bundles are passed, `--stdout` is an error (ambiguous output). Each bundle is fixed independently; the JSON result contains a per-bundle summary.
-
-The diff is always shown on stderr when fixes are applied. Suppress with `--quiet`.
-
-### JSON output (agent CLI)
-
-Single bundle:
-
-```json
-{
- "success": true,
- "bundle_path": "/path/to/bundle.mthds",
- "fixed": true,
- "fixes_applied": [
- {
- "fix_code": "strip-namespace",
- "pipe_code": "my_domain.generate_report",
- "message": "Stripped same-domain prefix 'my_domain.' from pipe code",
- "line": 12
- },
- {
- "fix_code": "sync-controller-inputs",
- "pipe_code": "run_pipeline",
- "message": "Synced inputs with needed_inputs(): added 'topic', removed 'unused_var'"
- }
- ],
- "remaining_errors": [...],
- "validated_pipes": [...]
-}
-```
-
-Multiple bundles:
-
-```json
-{
- "success": true,
- "bundles": [
- {
- "bundle_path": "/path/to/a.mthds",
- "fixed": true,
- "fixes_applied": [...],
- "remaining_errors": []
- },
- {
- "bundle_path": "/path/to/b.mthds",
- "fixed": false,
- "fixes_applied": [],
- "remaining_errors": [...]
- }
- ]
-}
-```
-
-When no fixes are needed and validation passes, `fixed: false` with empty arrays.
-
-### Fixability annotations on `validate` errors
-
-Independently of the `fix` command, the existing `pipelex-agent validate` output gains `fixable`/`fix_code` annotations per validation error, so agents know which errors are auto-fixable:
-
-```json
-{
- "validation_errors": [
- {
- "category": "pipe_validation",
- "error_type": "MISSING_INPUT_VARIABLE",
- "pipe_code": "my_pipe",
- "fixable": true,
- "fix_code": "sync-controller-inputs"
- }
- ]
-}
-```
-
-## Fix rules (Tier 1)
-
-### Correction rules (default ON)
-
-#### `strip-namespace` — Remove same-domain pipe code prefixes
-
-**Triggers on:** Pipe codes containing `.` where the prefix matches the bundle's own domain.
-
-**What it does:** `my_domain.generate_report` -> `generate_report` when the bundle's `domain = "my_domain"`. Applies to:
-- Pipe definition keys (`[pipe.my_domain.foo]` -> `[pipe.foo]`)
-- `main_pipe` value
-- Internal references: `steps`, `branches`, `branch_pipe_code`, `outcomes` values, `default_outcome`
-
-Does NOT strip cross-domain references (different domain prefix) — those are legitimate qualified refs.
-
-**Error types that trigger it:** `INVALID_PIPE_CODE_SYNTAX` (when caused by dotted codes)
-
-**Legacy reference:** `builder_loop.py:590-701` (`_strip_namespace_from_pipe_codes`), specifically the `_should_strip_ref()` helper at lines 648-657 which checks whether the bare code exists in the bundle or the dotted prefix matches the bundle's domain.
-
-#### `strip-native-concept-redecl` — Remove redeclared native concepts
-
-**Triggers on:** Concept definitions whose key matches a built-in native concept (Text, Image, Document, etc.).
-
-**What it does:** Removes the entire `[concept.Text]` section (or inline `concept.Text = "..."`) since native concepts must not be redeclared.
-
-**Error types that trigger it:** Concept factory errors when a declared concept shadows a native one.
-
-**Legacy reference:** `builder_loop.py:556-570` (`_strip_native_concept_declarations`). Uses `NativeConceptCode.values_list()` to identify builtins.
-
-**Current codebase reference:** `pipelex/core/concepts/native/concept_native.py` for `NativeConceptCode`.
-
-#### `sync-controller-inputs` — Align controller pipe inputs with their requirements
-
-**Triggers on:** `MISSING_INPUT_VARIABLE` or `EXTRANEOUS_INPUT_VARIABLE` errors on controller pipes (PipeSequence, PipeParallel, PipeBatch, PipeCondition).
-
-**What it does:** Replaces the `inputs` table of the controller pipe with the exact set from its `needed_inputs()`. This works because controller inputs are fully derivable from the child pipes they orchestrate.
-
-**Legacy reference:** `builder_loop.py:784-811` (`_fix_bundle_validation_error`, MISSING/EXTRANEOUS handler). Calls `pipe.needed_inputs()` and rebuilds the input dict.
-
-**Current codebase reference:**
-- `pipelex/core/pipes/exceptions.py:103-104` for `PipeValidationErrorType.MISSING_INPUT_VARIABLE` / `EXTRANEOUS_INPUT_VARIABLE`
-- Each controller pipe class exposes `needed_inputs()` which returns the correct input set
-
-#### `match-sequence-output` — Fix sequence output to match last step
-
-**Triggers on:** `INADEQUATE_OUTPUT_CONCEPT` or `INADEQUATE_OUTPUT_MULTIPLICITY` errors on PipeSequence pipes.
-
-**What it does:** Sets the sequence's `output` to the output concept (with multiplicity) of its last step. A sequence's output is always its last step's output — this is a structural invariant.
-
-**Legacy reference:** `builder_loop.py:813-835`. Gets the last step's pipe, reads its output concept and multiplicity, updates the sequence's output.
-
-#### `fix-list-notation` — Add `[]` for multiplicity mismatches
-
-**Triggers on:** Dry-run errors where a PipeCompose field receives `ListContent` but expects a scalar type.
-
-**What it does:** Adds `[]` to the input concept reference. E.g., `inputs = { items = "MyItem" }` -> `inputs = { items = "MyItem[]" }`.
-
-**Legacy reference:** `builder_loop.py:909-966` (`_fix_dry_run_compose_multiplicity_mismatch`) and `builder_loop.py:968-1027` (`_fix_single_multiplicity_mismatch`). Parses the dry-run error message regex to identify the pipe, field, and expected type.
-
-### Pruning rules (default OFF, opt-in via `--prune`)
-
-#### `prune-unreachable` — Remove pipes not reachable from main_pipe
-
-**Triggers on:** Bundle contains pipe definitions that are never referenced from `main_pipe` (directly or transitively).
-
-**What it does:** Walks the call graph starting from `main_pipe`, collecting all reachable pipe codes via:
-- PipeSequence -> `steps[*].pipe_code`
-- PipeParallel -> `branches[*].pipe_code`
-- PipeBatch -> `branch_pipe_code`
-- PipeCondition -> `outcomes` values + `default_outcome` (excluding special outcomes)
-
-Removes all pipe definitions not in the reachable set.
-
-**Legacy reference:** `builder_loop.py:340-394` (steps A-B of `_prune_unreachable_specs`). The graph walk is at lines 358-388.
-
-#### `prune-unused-concepts` — Remove concepts not referenced by any pipe
-
-**Triggers on:** Bundle contains concept definitions not referenced by any reachable pipe or by any other used concept (transitively).
-
-**What it does:**
-1. Collect concept refs from all reachable pipes (output, inputs, combined_output)
-2. Transitively walk concept definitions: if concept A refines concept B or has a structure field referencing concept C, then B and C are also used
-3. Remove concept definitions not in the transitive closure
-
-**Legacy reference:** `builder_loop.py:396-424` (steps C-E of `_prune_unreachable_specs`). Helper methods: `_collect_concept_refs_from_pipe_spec` (lines 452-488), `_collect_concept_refs_from_concept_spec` (lines 491-523), `_extract_local_bare_code` (lines 428-450).
-
-## Architecture
-
-### Processing pipeline
-
-```
-read .mthds file (raw text)
- |
- v
-parse to PipelexBundleBlueprint (existing interpreter)
- |
- v
-run validation (existing validate_bundle), catch errors
- |
- v
-match errors to fix rules
- |
- v
-apply fixes to TOML document (tomlkit, preserves formatting)
- |
- v
-re-validate to confirm fixes worked
- |
- v
-output: diff + fixed content + JSON report
-```
-
-### TOML-level rewriting
-
-The key challenge: fixes must operate on the TOML source (to preserve comments, ordering, formatting) rather than on Python objects.
-
-We use **tomlkit** (already a dependency, used throughout the codebase) which provides a DOM-like TOML representation that preserves comments, whitespace, and inline table style.
-
-### Code layout
-
-```
-pipelex/pipeline/
- validate_bundle.py # existing validation logic (unchanged)
- fix_bundle.py # NEW: orchestrator (fix_bundle, fix_bundles)
- fix_rules/ # NEW: one module per fix rule
- __init__.py # registry: ALL_RULES, DEFAULT_RULES, PRUNING_RULES
- base.py # FixRule ABC, FixResult model, FixRuleCategory enum
- strip_namespace.py
- strip_native_concept_redecl.py
- sync_controller_inputs.py
- match_sequence_output.py
- fix_list_notation.py
- prune_unreachable.py
- prune_unused_concepts.py
-
-pipelex/cli/
- agent_cli/commands/
- fix_cmd.py # NEW: pipelex-agent fix
- commands/
- fix_cmd.py # NEW: pipelex fix
-```
-
-### Fix rule interface
-
-```python
-class FixRuleCategory(StrEnum):
- CORRECTION = "correction" # default ON
- PRUNING = "pruning" # default OFF, opt-in via --prune
-
-
-class FixResult(BaseModel):
- fix_code: str
- pipe_code: str | None = None
- concept_code: str | None = None
- message: str
- line: int | None = None
-
-
-class FixRule(ABC):
- code: str # e.g. "strip-namespace"
- category: FixRuleCategory
- description: str
-
- @abstractmethod
- def apply(
- self,
- toml_doc: TOMLDocument,
- blueprint: PipelexBundleBlueprint,
- validation_error: ValidateBundleError | None,
- ) -> list[FixResult]:
- """Mutate toml_doc in place. Return list of fixes applied."""
-```
-
-Each rule receives:
-- The **tomlkit document** (mutable, preserves formatting) for making changes
-- The **parsed blueprint** (read-only) for understanding the bundle structure
-- The **validation error** (if any) for matching specific error types
-
-### Execution order
-
-Rules execute in a defined order (not arbitrary) because some fixes enable others:
-
-1. `strip-namespace` — must run first, unlocks correct pipe code resolution for all subsequent rules
-2. `strip-native-concept-redecl` — removes invalid concepts before input/output analysis
-3. `sync-controller-inputs` — needs correct pipe codes and concepts
-4. `match-sequence-output` — needs correct pipe codes
-5. `fix-list-notation` — needs dry-run results, runs after structural fixes
-6. `prune-unreachable` — cleanup pass, runs after all pipe fixes (opt-in)
-7. `prune-unused-concepts` — cleanup pass, runs last, depends on prune-unreachable (opt-in)
-
-### Orchestrator
-
-```python
-# In fix_bundle.py
-async def fix_bundle(
- mthds_file_path: Path,
- selected_rules: list[str] | None = None,
- ignored_rules: list[str] | None = None,
- prune: bool = False,
- library_dirs: Sequence[Path] | None = None,
-) -> FixBundleResult:
- raw_text = mthds_file_path.read_text()
- toml_doc = tomlkit.parse(raw_text)
-
- # Phase 1: validate to get errors
- blueprint, validation_error = _validate_and_catch(mthds_file_path, library_dirs)
-
- # Phase 2: resolve which rules to run
- rules = _resolve_rules(selected_rules, ignored_rules, prune)
-
- # Phase 3: apply fix rules in order
- all_fixes: list[FixResult] = []
- for rule in rules:
- fixes = rule.apply(toml_doc, blueprint, validation_error)
- all_fixes.extend(fixes)
-
- if not all_fixes:
- return FixBundleResult(fixed=False, fixes=[], original=raw_text, result=raw_text)
-
- fixed_text = tomlkit.dumps(toml_doc)
-
- # Phase 4: re-validate to confirm
- remaining_error = _validate_text_and_catch(fixed_text, library_dirs)
-
- return FixBundleResult(
- fixed=True,
- fixes=all_fixes,
- original=raw_text,
- result=fixed_text,
- remaining_errors=remaining_error,
- )
-
-
-def _resolve_rules(
- selected: list[str] | None,
- ignored: list[str] | None,
- prune: bool,
-) -> list[FixRule]:
- if selected and ignored:
- msg = "--select and --ignore are mutually exclusive"
- raise ValueError(msg)
- if selected:
- return [rule for rule in ALL_RULES if rule.code in selected]
- active = list(DEFAULT_RULES)
- if prune:
- active.extend(PRUNING_RULES)
- if ignored:
- active = [rule for rule in active if rule.code not in ignored]
- return active
-```
-
-## What is NOT in scope (Tier 1)
-
-- No LLM-based fixes (generating missing concepts, inferring outputs for conditions)
-- No `fix-input-stuff-mismatch` (requires understanding concept compatibility — judgment call)
-- No `fix-compose-structure` (updating concept structure fields for list types — too close to authoring)
-- No `fix-condition-output` (choosing output for PipeCondition with mixed branch outputs — ambiguous)
-- No iteration loop (fixes are convergent in a single pass)
-- No `plxt fmt` integration (can be run separately by the caller)
-
-These are candidates for a future Tier 2 (`--fix --unsafe`).
diff --git a/wip/autofix/pr-1035-review-notes.md b/wip/autofix/pr-1035-review-notes.md
deleted file mode 100644
index c64f0d3fd..000000000
--- a/wip/autofix/pr-1035-review-notes.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# PR #1035 — deferred review note
-
-Triage of the SWE-agent review comments on PR #1035 (`feature/Autofix-step4-Agnt-Apply`) fixed two confirmed bugs (logical-source mangling in `validate_bundle`; missing `~` expansion in the shared bundle-path resolver) and dismissed three false positives. One finding is real-but-inert and is captured here rather than fixed, per the "defer design-tradeoff findings" convention.
-
-## Intra-round cross-file collision in `fix_loop._split_cross_file_collisions`
-
-**Reporter:** cubic-dev-ai (P2, confidence 7) — thread on `pipelex/pipeline/fixes/fix_loop.py`.
-
-**The observation (correct):** `_split_cross_file_collisions` decides whether a queued fix would collide with a bare pipe code by comparing only against the *already-loaded* `codes_by_file`. It does not account for bare codes that *other queued fixes in the same round* are about to write. So, read in isolation, two fixes that rename a pipe in two different files to the same new bare code in the same iteration would both be kept — writing a duplicate bare code across files.
-
-**Why it is inert today:** the scenario cannot currently arise.
-
-- The only fix rule that writes a bare pipe code is `strip-namespace` (`pipelex/pipeline/fixes/planner.py`), which fires on `INVALID_PIPE_CODE_SYNTAX`.
-- `INVALID_PIPE_CODE_SYNTAX` is a per-file blueprint-parse error. `_load_mthds_files_into_library` (`pipelex/libraries/library_manager.py:777`) raises on the **first** file that fails to parse, and the entry file is parsed only after libraries load cleanly. So a single `validate_bundle` pass surfaces `strip-namespace` fixes for **exactly one file**.
-- The cross-*iteration* case (file X stripped to `process` in round 1, entry file's `beta.process` surfacing in round 2) is already caught: `codes_by_file` is rebuilt fresh every iteration, so X's now-bare `process` is visible and the entry fix is dropped — the loop bails with the "cross-file collision" reason.
-
-The safety is real but **emergent and non-local**: it depends on the per-file short-circuit in blueprint loading, which is not documented at the collision gate.
-
-**When it becomes a live bug:**
-
-1. `_load_mthds_files_into_library` is changed to **accumulate** blueprint-parse errors across all files (a plausible "show me all my errors at once" UX improvement) — two files' `strip-namespace` fixes could then co-occur in one pass; or
-2. a **new** fix rule is added that writes a bare pipe code from a **merge-stage** error (merge processes all blueprints together), rather than from a per-file parse error.
-
-**Remediation options (pick when/if the above changes land):**
-
-- *Low-churn, do-now-if-desired:* add an invariant comment at `_split_cross_file_collisions` noting it is safe against intra-round duplicates only because bare-code-writing fixes come from per-file parse errors that short-circuit (one file per pass), and that a change to that short-circuit must revisit this gate.
-- *Full fix (~10 lines):* thread a running `claimed_this_round: set[str]` through `_split_cross_file_collisions`. Check each fix against `other_codes ∪ claimed_this_round`; after keeping a fix, add its written bare codes (rename `new_key`s / `main_pipe` values, excluding the same target) to `claimed_this_round`. Order-independent, closes the window regardless of how many files surface per pass.
-- *Test (pure function):* feed two fixes targeting different paths, both with a `RENAME_TABLE_KEY` `new_key="process"`, and a `codes_by_file` where neither path yet declares `process`. Current code keeps both; the hardened version keeps the first and drops the second.
-
-**Status:** deferred, thread left open on the PR for follow-up.
diff --git a/wip/autofix/spike-reviewers-guide.md b/wip/autofix/spike-reviewers-guide.md
deleted file mode 100644
index e4ef958d7..000000000
--- a/wip/autofix/spike-reviewers-guide.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# Autofix — suggested fixes for `.mthds` validation errors (reviewer's guide)
-
-This branch delivers **step 1 of the autofix master plan**: the whole suggested-fixes chain proven end-to-end on ONE fix rule — `match-sequence-output` (a `PipeSequence`'s declared `output` must equal its last step's effective output). There is deliberately no CLI command yet; everything is driven by tests. Design docs: `wip/autofix/master-plan.md` (the step ladder), `wip/autofix/suggested-fixes-design.md` (architecture, approved decisions D1–D4, checkpoint findings).
-
-## The chain, in one pass
-
-1. **Enriched typed error.** `PipeSequence.validate_output_with_library` (`pipelex/pipe_controllers/sequence/pipe_sequence.py`) computes `expected_output_ref` — the ref an author would write: bare concept code when same-domain or native, qualified `domain.Code` otherwise, with multiplicity (honoring the sub-pipe `output_multiplicity` override) and optionality marker rendered by `format_concept_with_multiplicity`. It rides `PipeValidationError` (`pipelex/core/pipes/exceptions.py`) and is threaded through `categorize_pipe_validation_with_libraries_error` (`pipelex/core/pipes/handle_pipe_errors.py`) into `PipesAndConceptValidationErrorData` (`pipelex/core/exceptions.py`). The validator states the semantic fact at detection time, so the planner cannot drift from the validator.
-2. **Wire models.** `pipelex/suggested_fix.py` — a low-level module (stdlib + pydantic only) so `base_exceptions.py` imports it cycle-free: `FixOpKind` (`set_key`/`delete_key`/`delete_table`/`rename_table_key`), `FixOp`, `FixSafety` (`safe`/`unsafe`), `SuggestedFix`. `ValidationErrorItem` (`pipelex/base_exceptions.py`) gains `suggested_fix: SuggestedFix | None` — serialized `exclude_none`, so non-fixable error payloads are byte-identical to before (pinned by test).
-3. **Planner.** `pipelex/pipeline/fixes/planner.py` — a pure function over error-data, keyed on `error_type.is_inadequate_output` (exhaustive-match property on the enum) + presence of `expected_output_ref` + `pipe_code`, never on message strings. Emits one SAFE `set_key ["pipe", <code>] output = <expected>` op. Hooked into `build_validation_error_items` (`pipelex/pipeline/validation_errors.py`) — the ONE shared builder every consumer (CLI/API/MCP) flows through.
-4. **Applier.** `pipelex/pipeline/fixes/applier.py` — mutates a tomlkit DOM **in place, never rebuilds containers**, so comments, ordering, and table style of untouched content survive by construction (golden byte-compare tests pin it). An op whose target path is absent is skipped-and-reported, not raised (synthetic pipes have no TOML to patch); a malformed op raises `PipelexUnexpectedError` (planner bug). `rename_table_key` exists on the wire enum but the applier raises for it — position-preserving rename is Phase 1, nothing emits it yet.
-5. **Convergence loop.** `pipelex/pipeline/fixes/fix_loop.py` — async `fix_bundle_file`: validate (reusing `validate_bundle` wholesale — NO parallel validation pipeline) → collect applicable SAFE fixes → apply → re-validate, to a fixed point bounded by `max_iterations`. Cascades are expected (validation aborts at the first `PipeValidationError`, so nested mismatches converge error-by-error). Non-convergence bails loudly via fix fingerprints (`fix_code|source|per-op` identity): a fingerprint proposed twice ends the loop with `bail_reason` instead of spinning.
-
-## Invariants a reviewer should check
-
-- **Structural suppression, not type-sniffing.** `INADEQUATE_OUTPUT_CONCEPT`/`_MULTIPLICITY` are also raised by PipeParallel, PipeCondition, and operator sites — their output choice is ambiguous, so they must get NO fix. Only the two `PipeSequence` raise sites set `expected_output_ref`; the planner's field-presence requirement suppresses everything else. Tests pin the missing-field → `None` behavior.
-- **Multi-file scoping guard.** No raise site sets `PipeValidationError.file_path` today, so `SuggestedFix.source` is always `None`. A source-less fix is only provably targeted at the file being fixed under single-file validation — with `library_dirs`, a same-named pipe from another domain could resolve to this file's table (pipe codes are only unique per domain). `_applicable_safe_fixes` therefore drops source-less fixes when `library_dirs` is set: multi-file bundles get no fixes rather than a wrong patch. Real multi-file targeting is Phase 1 (`wip/autofix/deferred-checkpoint-0-review-items.md`).
-- **Presentation stays out of the contract.** The fix ops are the contract; no rendered diffs, exit codes, or prose verdicts leak into the wire models.
-- **No behavior change for non-fixable errors.** `suggested_fix` is additive and `exclude_none`; existing consumers see identical payloads.
-
-## Test map
-
-- `tests/integration/pipelex/pipeline/test_sequence_output_enrichment.py` — enrichment: wrong concept, multiplicity, `nb_output` override, optionality marker.
-- `tests/unit/pipelex/test_suggested_fix.py` — wire round-trip, plain-string enum serialization, byte-identity for non-fixable items.
-- `tests/unit/pipelex/pipeline/fixes/test_fix_planner.py` — planning + suppression cases.
-- `tests/unit/pipelex/pipeline/fixes/test_fix_applier.py` — golden byte-compare (`tests/data/fixes/*.mthds` + `.golden.mthds`), idempotence, guarded skip, delete semantics.
-- `tests/unit/pipelex/pipeline/fixes/test_fix_loop_bail.py` — no-progress fingerprint bail (stubbed validator).
-- `tests/unit/pipelex/pipeline/fixes/test_fix_loop_multi_file_scoping.py` — source-less fixes dropped under `library_dirs`, still applied single-file.
-- `tests/integration/pipelex/pipeline/test_fix_convergence_loop.py` — single-pass fix, two-iteration cascade (nested sequences), already-valid no-op.
-- `tests/unit/pipelex/pipeline/test_validation_errors.py` — fixes ride the wire items through the shared builder.
-
-## Known deferrals (deliberate, not gaps)
-
-See `wip/autofix/deferred-checkpoint-0-review-items.md`: real multi-file fix targeting (thread `file_path` from raise sites — Phase 1); fixture regeneration in our cross-repo spec suite (cross-repo sync wave, after a release reaches `pipelex-api`); `expected_output_ref` computed on the happy validation path too (accepted: trivial cost, laziness would duplicate code). One deleted surface: the empty, unreferenced `PipelexBundleBlueprintFixableErrorType` stub enum. Changelog entry is deferred to master-plan step 3 (ship wave) — the spike introduces no user-facing surface.
-
-## Next steps (not in this PR)
-
-Master-plan step 2 (wave-1 engine): remaining safe rules (`sync-controller-inputs`, `strip-native-concept-redecl`, `strip-namespace` if position-preserving rename lands clean), hardened loop with multi-file targeting, then the agent-CLI surface (wave 1, D3).
diff --git a/wip/autofix/step2-reviewers-guide.md b/wip/autofix/step2-reviewers-guide.md
deleted file mode 100644
index 0ad727ac3..000000000
--- a/wip/autofix/step2-reviewers-guide.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# Autofix — wave-1 rule breadth (step 2 reviewer's guide)
-
-This branch delivers **step 2 of the autofix master plan**: three more fix rules, each a deliberately different fix *shape*, landed on the stacked branch `feature/Autofix-step2` (PR #1031, base `feature/Autofix` — stacks on the step-1 spike, PR #1027). Design docs: `wip/autofix/master-plan.md` (the step ladder), `wip/autofix/suggested-fixes-design.md` (architecture, per-checkpoint findings, the step-2 abstraction verdict). Reviewer's guide for step 1: `wip/autofix/spike-reviewers-guide.md`.
-
-## The chain, in one pass
-
-1. **`sync-controller-inputs`** (Phase A) — first multi-op fix. `PipeAbstract.generic_validate_inputs_with_library` (`pipelex/core/pipes/pipe_abstract.py`) is enriched with `expected_inputs`/`declared_inputs` (both rendered via `StuffSpec.to_bundle_representation`), gated on `self.is_controller` so operator raise sites stay unfixable. The planner (`planner.py`) diffs the two mappings into `set_key`/`delete_key` ops on the `inputs` table — one fix repairs all input drift for a pipe even though validation aborts at the first error. The applier mutates the inline/block table in place.
-2. **Canonical-output swap** (Phase A′, mid-step) — the applier's hand-rolled inline-table canonicalization (crash-prone on nested/dotted keys) was replaced by a single `pipelex_tools.format_mthds` pass (`applier.serialize_and_format`), now a **core runtime dep** (`pipelex-tools-py`). Output philosophy shifted from "surgical byte-preservation" to "canonical whole-file MTHDS" — a no-op on already-formatted files. `apply_fix_ops` stays pure DOM mutation; `serialize_and_format` owns rendering and raises `PipelexUnexpectedError` on any `kind="syntax"` diagnostic (never silently writes).
-3. **`strip-native-concept-redecl`** (Phase B) — first blueprint-channel fix and first delete-shaped fix in production. `validate_concept_keys` now raises a typed `NativeConceptRedeclarationError` carrying `concept_code`; a new blueprint-channel planner path (`plan_fix_for_blueprint_validation_error`) emits `delete_key` on `["concept"]`, which covers every authoring form (table, inline, dotted) because tomlkit represents them all as one `concept` table. First fix with a populated `SuggestedFix.source`, exercising the loop's source/`library_dirs` guard live.
-4. **`strip-namespace`** (Phase C, stretch — **GO, shipped**) — the last unexercised op kind, `RENAME_TABLE_KEY`, proven end-to-end via tomlkit's private, position-preserving `Container._replace`. A typed `InvalidPipeCodeSyntaxError` carries `offending_code`/`stripped_code`, gated by `_strippable_same_domain_pipe_code` (same-domain prefix, valid bare tail, no collision). The feared array-of-tables `table_path` widening **never materialized**: same-domain qualified `steps[]/branches[]` references already resolve to the bare code, and only declaration keys + `main_pipe` enforce snake_case — so the fix touches only those two sites.
-
-## Invariants a reviewer should check
-
-- **Structural suppression throughout, never message-sniffing.** Each new fix keys off a field set only at the raise site that knows the correct value (`expected_inputs`, `concept_code`, `stripped_pipe_code`); the planner never re-derives or matches on error text.
-- **`format_mthds` guarantee.** Every applier write goes through one canonical-format pass; a syntax diagnostic aborts loudly rather than writing malformed TOML. All new fixtures are `format_mthds`-idempotent.
-- **Collision and ordering safety in the rename path.** `_rename_key_in_place` handles all three tomlkit container shapes (plain `Table`, `OutOfOrderTableProxy` with the pipe's fields split across interleaved chunks, inline `AbstractTable`) and renames the key in **every** chunk — the checkpoint-D fix for a pipe whose header and block `.inputs` straddle an intervening `[concept]` section (previously orphaned the block under a phantom key while reporting APPLIED). `main_pipe` retarget is collision-gated at the categorizer (`_main_pipe_strip_would_retarget`), and the fix loop pre-scans sibling bundles flat across **all** domains (`_sibling_pipe_codes`) before allowing a rename, bailing loudly rather than writing a colliding rename.
-- **No abstraction drift.** `SuggestedFix`/`FixOp` absorbed multi-op, delete-shaped, blueprint-channel, and rename fixes with no structural change — the only wire edit was widening `TomlValue` to admit a flat scalar dict (Phase A.2). See the design doc's "Step-2 exit — abstraction verdict" section.
-- **No behavior change for non-fixable errors.** All new fields are additive on already-`exclude_none` models.
-
-## Test map
-
-- `tests/integration/pipelex/pipeline/test_controller_inputs_enrichment.py` — Phase A enrichment (missing/extraneous/mismatch, cross-domain refs, optionals-marker preservation, PipeCondition suppression).
-- `tests/unit/pipelex/pipeline/fixes/test_fix_planner.py` — `sync-controller-inputs` planning + suppression.
-- `tests/unit/pipelex/pipeline/fixes/test_fix_applier_inputs_sync.py` + `tests/data/fixes/controller_inputs_*.mthds` — golden byte-compare (inline/block/missing-table forms).
-- `tests/integration/pipelex/pipeline/test_native_concept_redecl_enrichment.py` — Phase B typed-error enrichment across authoring forms.
-- `tests/unit/pipelex/pipeline/fixes/test_blueprint_fix_planner.py` — blueprint-channel planning for both B and C.
-- `tests/unit/pipelex/pipeline/fixes/test_fix_applier_native_concept.py` + `native_redecl_*.mthds` — Phase B golden fixtures, idempotence, guarded skip.
-- `tests/integration/pipelex/pipeline/test_strip_namespace_enrichment.py` — Phase C typed-error enrichment (rename + `main_pipe`, collision/cross-package suppression).
-- `tests/unit/pipelex/pipeline/fixes/test_fix_applier_strip_namespace.py` + `strip_namespace_rename.mthds`/`.golden.mthds` — position/comment preservation, collision-skip, key-absent-skip.
-- `tests/unit/pipelex/pipeline/fixes/test_fix_convergence_loop.py` — cross-rule cascades (inputs mask outputs; two redeclarations converge one per iteration; rename + `main_pipe` in one pass) and the checkpoint-D interleaved-chunk regression.
-- `tests/unit/pipelex/pipeline/test_validation_errors.py` — all three fixes ride `ValidationErrorItem` through the shared builder.
-
-## Known deferrals
-
-Per-checkpoint deferred items (design tradeoffs, not defects) live in `wip/autofix/deferred-checkpoint-{a,a-prime,b,c,d}-review-items.md` — notably: `main_pipe`-to-nonexistent-pipe strip, the one-rename-per-iteration convergence cap, comment reflow on a deleted `[concept.X]` table, an upstream `pipelex_tools` stub/runtime-export mismatch. Real multi-file targeting and the `pipelex-agent fix bundle` command are out of scope for step 2 (master-plan steps 3–4).
-
-## Next steps (not in this PR)
-
-Master-plan step 3: hardened loop with real multi-file targeting (thread `file_path` from raise sites, fix `is_single_file` derivation) — may reuse Phase B's `SuggestedFix.source` threading. Then step 4 (`pipelex-agent fix bundle`), gated human CLI surfacing (step 5), and the ship wave (step 6).
diff --git a/wip/autofix/step3-step4-hardened-loop-and-agent-apply.md b/wip/autofix/step3-step4-hardened-loop-and-agent-apply.md
deleted file mode 100644
index 28f7b0a6c..000000000
--- a/wip/autofix/step3-step4-hardened-loop-and-agent-apply.md
+++ /dev/null
@@ -1,163 +0,0 @@
-# Autofix — steps 3 + 4 design: hardened loop + agent apply surface
-
-Detailed design and working plan for master-plan steps 3 (hardened loop — real multi-file targeting) and 4 (agent apply surface — `pipelex-agent fix bundle`), landing together on the stacked branch `feature/Autofix-step4-Agnt-Apply` (base: `feature/Autofix-step2`, PR #1031). Map: [master-plan.md](master-plan.md). Architecture and per-checkpoint findings: [suggested-fixes-design.md](suggested-fixes-design.md).
-
-**Status: STEP 4 CODE COMPLETE (2026-07-08) — `make agent-check` + touched tests green, CHECKPOINT 2 review NOT yet run.** CHECKPOINT 1 review on the step-3 diff is complete; confirmed bugs were fixed in this pass (signature-only sibling headers no longer block valid concrete renames, input-drift source threading is pinned, collision-map rebuilds are pinned, and `files_written` order/dedupe is pinned). Step 4 now ships `pipelex-agent fix bundle`, the CLI-free fix renderer, command/unit/integration/e2e coverage, agent CLI docs, and a CHANGELOG entry. The current step-4/checkpoint-review changes are **uncommitted** on `feature/Autofix-step4-Agnt-Apply` (base commit `a6ffae486`).
-
-**NEXT ACTION (cold start): run CHECKPOINT 2** — fresh-context `/code-review` fan-out on the step-4 diff (from `a6ffae486` to the current working tree), plus the checkpoint-1 review fixes listed above. Fix confirmed bugs, defer tradeoffs to a new `deferred-checkpoint-e-review-items.md` only if real tradeoffs remain, then update this doc, the master plan, and the README before landing.
-
-### Implementation record (what a cold session needs to know beyond the design)
-
-- **D3.1** — `_backfill_pipe_error_source` in `pipelex/pipeline/validate_bundle.py`, called first thing in the `except PipeValidationError` arm of `_translate_to_validate_bundle_error`. Full-pipe_ref lookup only; miss leaves `file_path=None`. Pins: 3 new pipe-channel tests in `test_validate_bundle_source_threading.py`.
-- **D3.2–D3.5** — `fix_loop.py` was substantially rewritten. Helper names: `_safe_fixes` (SAFE + single-file gate + select/ignore filters), `_partition_by_write_scope`, `_pipe_codes_by_file` (per-file map over entry + resolved dirs, rebuilt per iteration), `_colliding_op_name` + `_split_cross_file_collisions` (per-target), `_fix_target_path` (source → resolved Path, else entry). `FixBundleResult.files_written: list[str]` = **resolved** paths, first-write order, deduped. Out-of-scope bail wording: `fixes target files outside write scope: <paths> — pass their directory with -L/--library-dir to allow writing`. Cross-file bail wording changed to `…would write a pipe code (…) already declared in a sibling bundle` (covers renames AND main_pipe set_keys). Mixed scope proceeds with in-scope fixes (no all-or-nothing).
-- **D3.6 categorizer half** — `_main_pipe_strip_would_retarget` → `_main_pipe_strip_is_safe` (XOR predicate: safe iff exactly one of dotted/bare exists as a `[pipe]` key) in `validation_error_categorizer.py`; call site inverted (`not _main_pipe_strip_is_safe`). Cross-ref comment in `pipelex_bundle_blueprint.py` updated.
-- **D3.6 loop half** — the `main_pipe` `SET_KEY` drop needs only ONE condition (`value in other-file pipe codes`): "paired rename was dropped as colliding" is subsumed, since a rename is dropped iff its `new_key` is declared elsewhere, and that `new_key` equals the `main_pipe` value.
-- **Step-4 early items already DONE**: `fix_bundle_file(..., select_codes=None, ignore_codes=None)` filtering inside `_safe_fixes` + `KNOWN_FIX_CODES` frozenset in `planner.py` (pins: `tests/unit/pipelex/pipeline/fixes/test_fix_loop_select_ignore.py`); shared `pipelex/cli/agent_cli/commands/bundle_path_resolver.py` (`resolve_bundle_target(path, *, library_dir) -> tuple[str, list[str] | None]`) adopted by `validate bundle` verbatim-behavior (its now-stale `# type: ignore[arg-type]` comments removed; validate tests green).
-- **CHECKPOINT 1 review fixes DONE**: `_pipe_codes_by_file` now excludes typeless signature-only sections from hard collision checks, because same-batch crate merge permits a concrete pipe to replace a matching `PipeSignature`; new pins cover sibling signature headers, input-drift `source` on entry and sibling files, per-iteration collision-map rebuilds, and first-write-order `files_written`.
-- **Step 4 implementation DONE**: new `fix` agent CLI group registered after `validate`; `fix bundle` uses shared bundle-path resolution, validates mutually-exclusive/unknown rule filters, initializes Pipelex with the validate profile, runs `fix_bundle_file`, emits success via `format_fix_markdown`, and emits still-invalid verdicts as `FixBundleError` with the full `FixBundleResult` payload. Tests added: renderer unit tests, patched command-format unit tests, real-loop command integration tests, and subprocess e2e tests.
-- **Corruption-regression fixture gotcha**: a dotted `main_pipe = "domain.pipe"` is itself invalid (strip-namespace fires) — multi-file fixtures must use the bare form (`main_pipe` resolution is bundle-local, so bare codes duplicated across domains in sibling files are fine).
-- Unit tests drive the loop with `mocker.patch("pipelex.pipeline.fixes.fix_loop.validate_bundle", side_effect=[...])` and, for ambient-dir cases, patch `...fix_loop.resolve_library_dirs`; pass `max_iterations` explicitly (or patch `...fix_loop.get_config`) to avoid needing a booted config.
-
-## Scope
-
-- **Step 3** replaces the spike's conservative scoping guard with real multi-file targeting: pipe-channel errors get a populated `source`, the single-file gate derives from *resolved* library dirs, fixes apply to the file that declares the offending item, and only user-passed files are ever written. Closes deferred items 0 and 1 ([deferred-checkpoint-0-review-items.md](deferred-checkpoint-0-review-items.md)) and the two halves of checkpoint-C item 1 ([deferred-checkpoint-c-review-items.md](deferred-checkpoint-c-review-items.md)). Also wires the orphaned `fix_loop_max_attempts` config.
-- **Step 4** ships `pipelex-agent fix bundle`: a thin command over `fix_bundle_file` following the agent CLI's two-stream output conventions, plus `--select`/`--ignore` rule filtering in the loop, a CLI-free markdown renderer, and e2e CLI tests. This is the milestone where an agent runs validate → fix → re-validate entirely from the CLI.
-
-**Out of scope** (unchanged deferrals): the human CLI (`pipelex fix` + the `💡 Suggested fix` line — step 5, gated on this branch), `--diff` preview (step 5, see D4.2), checkpoint-C item 2 (one-rename-per-iteration convergence cap — mitigated here by the config default, the aggregate-raise refactor is its own chunk), checkpoint-D item 1 (dotted-key controller inputs — accepted fail-safe), wave-2 surfaces (API `POST /fix`, MCP, editor).
-
-## Where the code stands (step-2 exit)
-
-- **The guard to replace.** `_applicable_safe_fixes` (`pipelex/pipeline/fixes/fix_loop.py:64-83`) keeps a source-less fix only when `is_single_file`, and a sourced fix only when `Path(source) == mthds_file_path`. The call site computes `is_single_file=library_dirs is None` (`fix_loop.py:172`) — wrong in both directions: explicit `[]` (documented "no libraries") is treated as multi-file (fixes over-dropped), and `None` can fall through to hub defaults / `PIPELEXPATH` and load other files while being treated as single-file.
-- **Pipe-channel `source` is dead code.** `categorize_pipe_validation_with_libraries_error` reads `pipe_error.file_path` (`pipelex/core/pipes/handle_pipe_errors.py:199`), but no raise site ever sets it — so `match-sequence-output` and `sync-controller-inputs` fixes are source-less and get dropped whenever library dirs are in play. The blueprint channel (`strip-native-concept-redecl`, `strip-namespace`) is already populated from `blueprint_dict["source"]`.
-- **Provenance already exists — no new bookkeeping needed.** `LibraryManager._pipe_source_map: dict[str, Path]` (pipe_ref → declaring `.mthds` file, `pipelex/libraries/library_manager.py:101`) is populated during load (`library_manager.py:505-507`, fed by `LibraryCrate.source_map`, which tracks the winning declaration across duplicates) and exposed via `get_pipe_source()` (`library_manager.py:235`). Population happens in the same loop that builds pipes, *before* `library.validate_library()` runs — so the map is live when any pipe-validation error propagates.
-- **Pipes deliberately do not carry their source.** `_make_pipe_data_for_registry` (`pipelex/core/pipes/pipe_abstract.py:160-167`) grafts `source` from the crate map at serialization time precisely because `PipeAbstract` has no such field. Step 3 must respect that design.
-- **The loop is single-file and nothing calls it.** One DOM load / one write per iteration (`fix_loop.py:205-215`); the applier (`apply_fix_ops` / `serialize_and_format`) is already per-DOM and needs no change. `fix_bundle_file` has no production caller — the fingerprint already includes `source`, so cross-file no-progress detection works unchanged. The config `fix_loop_max_attempts = 10` (`pipelex/pipelex.toml:53`, `BuilderConfig` in `pipelex/system/configuration/configs.py`) is defined but unwired; the code hardcodes `max_iterations: int = 5`.
-
-## Step 3 — hardened loop
-
-### D3.1 — Thread `source` at the catch boundary, not the raise sites
-
-Backfill `pipe_error.file_path` in the shared translate funnel in `pipelex/pipeline/validate_bundle.py` (the `except PipeValidationError` arm, ~line 135), immediately before `categorize_pipe_validation_with_libraries_error` runs: when `file_path` is `None` and both `domain_code` and `pipe_code` are present, look up `get_library_manager().get_pipe_source(f"{domain_code}.{pipe_code}")` and set it. Use the full pipe_ref only — never the bare-code suffix fallback (bare codes are ambiguous across domains; that ambiguity is exactly what checkpoint C's cross-file guard defends against).
-
-Why here and not the alternatives from deferred item 1:
-
-- **Not a `source` field on `PipeAbstract`.** The codebase deliberately keeps provenance out of the runtime pipe model and looks it up from the crate when needed (see `_make_pipe_data_for_registry`); adding the field would change the pipe serialization surface for one consumer's benefit.
-- **Not per-raise-site threading.** The raise sites (`pipe_abstract.py` input checks, `pipe_sequence.py` output checks) don't know the file, and every future enriched raise site would have to remember the same plumbing. One interception point covers them all, including the un-enriched raise sites (their errors gain a `source` locator for free — better error reports even without a fix).
-- **Not a domain-qualifier check in the loop.** Domains legitimately span files, so a domain match cannot prove which file declares the pipe.
-
-Lookup misses (either code absent, or the ref not in the map) leave `file_path` as `None` — the fix stays source-less and falls under the conservative single-file rule, which is the safe direction. The wrapped blueprint-stage `PipeValidationError` path in the categorizer already prefers `wrapped_pipe_error.file_path or source` and needs no change.
-
-### D3.2 — Derive the single-file gate from resolved dirs
-
-At loop start, resolve once: `effective_dirs, _ = resolve_library_dirs(library_dirs)` (`pipelex/hub.py:699` — per-call → hub instance default → `PIPELEXPATH` → none), and set `is_single_file = not effective_dirs`. This fixes both directions of deferred item 0: `[]` is now genuinely single-file (source-less fixes apply), and a `None` that fell through to ambient dirs is now multi-file (source-less fixes conservatively dropped). `validate_bundle` resolves through the same function internally, so the gate matches what validation actually loaded. The sibling pre-scan gate (`fix_loop.py:162`, currently `library_dirs is not None`) switches to `effective_dirs` too.
-
-### D3.3 — Write-scope policy: only user-passed files are written
-
-Per the rule guard already decided in the design doc ("only files the user passed to the command get written"):
-
-- **Writable:** the entry `mthds_file_path`, plus any `.mthds` file under the *per-call* `library_dirs` argument when one was explicitly provided.
-- **Read-only:** files loaded via ambient resolution (hub defaults, `PIPELEXPATH`) — the user did not pass those to *this* command. Fixes sourced there are excluded from the applicable set.
-- Path comparisons normalize both sides with `.resolve()` (the current guard compares raw paths).
-
-When applicable fixes exist but every one of them targets a read-only file, the loop returns `is_valid=False` with a bail reason naming the out-of-scope files ("fixes target files outside write scope: … — pass their directory with -L to allow writing"), so the outcome is loud and actionable rather than a silent no-op. The remaining errors still carry their `suggested_fix` (with `source`), so a consumer can see exactly what would have been done and where.
-
-### D3.4 — Per-file apply, `files_written`, per-target collision scan
-
-The apply phase groups the iteration's new fixes by target file (`Path(fix.source).resolve()`, defaulting to the entry file for source-less fixes), loads one tomlkit DOM per distinct target, applies that group's ops, and writes each changed file through `serialize_and_format` — the same load/apply/write shape as today, per file. `FixBundleResult` gains `files_written: list[str]` (ordered, deduped across iterations; additive field on a runtime-only model).
-
-The cross-file rename-collision machinery becomes per-target: the sibling scan builds a per-file pipe-code map over *all* loaded files (still flat across domains — the checkpoint-C ambiguity rule stands), rebuilt each iteration now that multiple files can mutate, and a `RENAME_TABLE_KEY` targeting file F collides iff the bare `new_key` exists as a pipe key in any loaded file other than F.
-
-### D3.5 — Wire `fix_loop_max_attempts`
-
-`fix_bundle_file`'s signature becomes `max_iterations: int | None = None`; `None` resolves to `get_config().pipelex.builder_config.fix_loop_max_attempts` (config default 10). The hardcoded 5 is deleted — per the config rules, the default lives in `pipelex/pipelex.toml` only. This also softens (without fixing) checkpoint-C item 2's convergence cliff.
-
-### D3.6 — Checkpoint-C item 1 lands here (both halves)
-
-Step 3 rewrites exactly the code sites this deferral names, and multi-file writes make both failure modes more reachable, so the pair is in scope:
-
-- **Categorizer half:** extend `_main_pipe_strip_would_retarget` (`pipelex/core/interpreter/validation_error_categorizer.py`) into a `_main_pipe_strip_is_safe` gate with the two-disjunct predicate from the deferral doc — the strip is enriched only when the bare tail already exists as a pipe key OR the dotted code itself exists as a key (its paired rename will materialize the target). Kills the "typo'd tail → SAFE fix rewrites `main_pipe` to a nonexistent pipe" mutation while keeping the convergent dotted-declaration happy path.
-- **Fix-loop half (the PR #1031 cubic P2 gap):** in the cross-file collision split (`fix_loop.py:112-141` today), also drop a root `main_pipe` `SET_KEY` whose paired declaration rename was dropped as cross-file colliding, or whose value collides with a sibling file's pipe code — the categorizer cannot see cross-file state, so this suppression must live in the loop.
-
-### Step-3 tasks (TDD — red tests first per layer)
-
-- [x] Integration: `test_validate_bundle_source_threading.py` grows pipe-channel assertions — `INADEQUATE_OUTPUT_*` and input-drift errors carry `source` for entry-file and sibling-file pipes; lookup-miss leaves `source` absent.
-- [x] `validate_bundle.py` funnel backfill (D3.1).
-- [x] Unit: `is_single_file` derivation cases (`[]` single, `None`+hub-default multi, explicit dirs multi) in `test_fix_loop_multi_file_scoping.py`; loop switch to `resolve_library_dirs` (D3.2).
-- [x] Unit: write-scope policy — sourced fix under `-L` applies to the declaring sibling; ambient-dir fix excluded with the out-of-scope bail reason (D3.3).
-- [x] Loop rework: per-file grouping + `files_written` + per-target collision scan rebuilt per iteration (D3.4), with unit pins for grouping and collision.
-- [x] Integration: `test_fix_convergence_loop.py` multi-file cascade — an error declared in a sibling file is fixed *in the sibling*; both files written and reported; **regression pin for the original corruption scenario** (same pipe code in two domains across two files → the fix patches the declaring file, never the entry file's same-named table).
-- [x] Config wiring (D3.5) + `make tb` boot check.
-- [x] Checkpoint-C item 1 pins per the deferral doc's "if revisited" notes: typo'd-tail strip suppressed (file untouched), dotted-declaration path still converges, two-file `main_pipe` `SET_KEY` dropped alongside its blocked rename (D3.6).
-- [x] `make agent-check` + `make agent-test` green (full suite, 2026-07-08).
-
-### Exit — CHECKPOINT 1 (step-3 exit)
-
-Fixes apply correctly across multi-file bundles, targeting the declaring file only; the drop-everything guard is gone; the corruption-scenario regression test is green. House pattern: fresh-context `/code-review` fan-out on the step-3 diff; confirmed bugs fixed, tradeoffs deferred to a `deferred-checkpoint-e-review-items.md`. Update this doc's status block and the master plan, then hand off to step 4 (natural session boundary — step 4 opens the CLI surface, a different area).
-
-## Step 4 — `pipelex-agent fix bundle`
-
-### D4.1 — Command layout: mirror the `validate` group exactly
-
-New group `fix` beside `validate`/`run`/`inputs`: `pipelex/cli/agent_cli/commands/fix/app.py` (`fix_app = typer.Typer(add_completion=False, no_args_is_help=True)`, one `bundle` subcommand, no group callback — options live on the subcommand, house style) and `commands/fix/bundle_cmd.py`. Register with `app.add_typer(fix_app, name="fix", ...)` in `_agent_cli.py` and add `"fix"` to `PipelexAgentCLI.list_commands()` right after `validate`. Init via `make_pipelex_for_agent_cli(library_dirs=..., needs_inference=False, needs_model_specs=True)` (same profile as validate — the loop's re-validation dry-runs, no live inference), `asyncio.run(fix_bundle_file(...))`, teardown in `finally`, `except typer.Exit: raise` before the catch-all — the full validate handler cascade.
-
-### D4.2 — Options
-
-| Option | Semantics |
-| --- | --- |
-| `path` (arg) | `.mthds` file or directory — same resolution as `validate bundle` (auto-detect the default bundle file name or a single `*.mthds`; ambiguous → exit 2; a directory injects itself into the library dirs, and being user-passed it is **writable** under D3.3). |
-| `-L/--library-dir` | Repeatable, as in validate. Per D3.3 these dirs are the write scope beyond the entry file. |
-| `--max-iterations` | `int | None`, min 1; `None` → the `fix_loop_max_attempts` config default. |
-| `--select` / `--ignore` | Repeatable fix-rule codes; mutually exclusive (both → exit 2). Unknown code → exit 2 listing the known codes (exported as a frozenset beside the planner's fix-code constants). Implemented in the loop as keyword-only `select_codes`/`ignore_codes` filtering inside `_applicable_safe_fixes`, so step 5's human command inherits it for free. Failing fast on a typo beats lenient-ignore here: the flag selects *behavior* (what gets written), not presentation. |
-| `--format` / `--error-format` | The two-stream convention: markdown default on stdout; `--error-format` inherits `--format` when omitted; first body line is `set_agent_cli_error_format(error_format or output_format)`. |
-
-Deliberately absent: `--diff` (preview belongs to the human command, step 5 — agents run in repos and inspect diffs themselves, the loop has no no-write mode yet, and the result payload already names every op applied); `--pipe` (fix is whole-bundle by design); `--allow-signatures` (signatures are never errors and the fixer never touches them — runnability is validate's concern, and an agent chains fix → validate anyway); `--unsafe` (no UNSAFE rule exists in wave 1; the SAFE-only filter stays hardwired until the first UNSAFE rule arrives with its flag).
-
-### D4.3 — Verdict, streams, exit codes
-
-Mirrors `validate bundle`'s precedent (negative verdict → error stream):
-
-- **Valid after the loop** (including already-valid, `iterations=0`): success payload on stdout via `agent_success_formatted(result, markdown_renderer=format_fix_markdown, output_format=...)`, exit 0.
-- **Still invalid**: `agent_error(...)` on stderr with `error_type="FixBundleError"`, exit 1, message summarizing the outcome (iterations run, fixes applied, errors remaining, bail reason), and the full structured payload as envelope extras. Partial progress is normal here — the payload, not the exit code, tells the agent what advanced.
-- **No verdict** (bad path, ambiguous bundle, init failure, unexpected exception): exit 2, same handlers as validate.
-
-Contract vs presentation, per the workspace conventions: machine consumers branch on `is_valid` / `fixes_applied` / `remaining_errors`, never on the exit code.
-
-### D4.4 — JSON contract
-
-Both arms carry the same structured core — `FixBundleResult` dumped `mode="json", exclude_none=True` plus the envelope keys: `is_valid`, `bundle_path`, `iterations`, `fixes_applied[]` (full `SuggestedFix` dumps: `fix_code`, `description`, `safety`, `source`, `ops[]`), `files_written[]` (step 3), `remaining_errors[]`, `bail_reason` (omitted when absent). `remaining_errors[]` items are the same `ValidationErrorItem` shape as `validate`'s `validation_errors[]` (same builder), so an agent parses one error schema across both commands. Success arm adds `success: true`; error arm rides the standard `agent_error` envelope (`error_type`, `message`, extras).
-
-### D4.5 — Markdown renderer (CLI-free)
-
-`format_fix_markdown(result: dict[str, Any]) -> str` in a new `pipelex/pipeline/fixes/fix_render.py` — beside the engine, importable without Typer so the wave-2 API can reuse it (the design doc's stated placement intent). Success-arm rendering: `# Fix applied — bundle is valid` (or `# Bundle already valid` when nothing was applied), one bullet per applied fix (`fix_code` — description, naming the file when it isn't the entry bundle), a `Files written` list, and the iteration count. The still-invalid arm goes through the generic `agent_error` markdown envelope with the summary message; if agents turn out to need richer failure markdown, that refinement lands with step 5's human renderer, which will want the same thing.
-
-### D4.6 — Shared bundle-path resolution helper
-
-Factor `validate_bundle_cmd`'s path→bundle resolution (`commands/validate/bundle_cmd.py:94-131` — directory auto-detect, ambiguity errors, library-dir injection) into a shared helper module under `commands/`, adopted by both `validate bundle` and `fix bundle` in this change (no behavior change for validate; identical resolution is a correctness requirement — fix must patch exactly the file validate judged). Adoption by `run bundle` / `inputs bundle` is a follow-up, not scoped here.
-
-### Step-4 tasks (TDD)
-
-- [x] Loop: keyword-only `select_codes`/`ignore_codes` on `fix_bundle_file` + known-codes frozenset beside the planner constants, with unit pins (filtering, unknown code raises at the CLI layer only). (Landed early, with step 3.)
-- [x] Shared path-resolution helper factored out + adopted by validate (D4.6), validate's existing tests staying green. (Landed early: `commands/bundle_path_resolver.py`.)
-- [x] Renderer: `fix_render.py` + unit tests (fixed / already-valid / multi-file arms).
-- [x] Command: `fix/app.py` + `fix/bundle_cmd.py` + registration (D4.1-D4.3), with `tests/unit/pipelex/cli/agent_cli/test_fix_format.py` mirroring `test_validate_format.py` (patched core; both format arms; exit 0/1; `--select`/`--ignore` mutual exclusion and unknown-code rejection).
-- [x] Integration: `tests/integration/pipelex/cli/test_agent_fix_bundle.py` — the command function against the real loop on `tmp_path` *copies* of fixtures (the command mutates files): fixable bundle → exit 0 + file actually fixed on disk; unfixable → structured error payload; `--select` honored end-to-end.
-- [x] E2E: `tests/e2e/agent_cli/test_fix_bundle.py` — subprocess `pipelex-agent fix bundle` in the hermetic/offline harness (`tests/e2e/agent_cli/conftest.py` pattern), asserting the JSON contract, stdout-cleanliness, and exit codes. (The master plan says "snapshot tests"; the repo has no snapshot framework — subprocess + JSON/string assertions is the house e2e pattern, and that's what ships.)
-- [x] Docs plumbing: update `pipelex/cli/agent_cli/CLAUDE.md` (output-format section gains the fix command); CHANGELOG `[Unreleased]` entry for the new command. The user-facing docs page stays in step 6 per the master plan; the `mthds-agent` output-audit update is a cross-repo step-7 hand-off note.
-- [x] `make agent-check` green; touched test slice green (`55 passed`: renderer/command/select-ignore/unit scoping/integration/e2e/checkpoint pins). Full `make agent-test` was not run in this pass.
-
-### Exit — CHECKPOINT 2 (step-4 exit)
-
-The command is shipped on the agent CLI and an agent can run validate → fix → re-validate entirely from the CLI; e2e tests green. House-pattern review fan-out on the step-4 diff. Update this doc, the master plan (steps 3 + 4 → DONE), and the wip README; record the step-5 hand-off list (what step 5 reuses: the loop's select/ignore params, `fix_render.py`, the shared path helper; candidate refinement: richer still-invalid markdown).
-
-## Test map (new / extended)
-
-- `tests/integration/pipelex/pipeline/test_validate_bundle_source_threading.py` — pipe-channel `source` backfill (D3.1).
-- `tests/unit/pipelex/pipeline/fixes/test_fix_loop_multi_file_scoping.py` — resolved-dirs gate, write scope, out-of-scope bail (D3.2, D3.3).
-- `tests/integration/pipelex/pipeline/test_fix_convergence_loop.py` — multi-file cascades, corruption-scenario regression, `files_written` (D3.4).
-- `tests/integration/pipelex/pipeline/test_strip_namespace_enrichment.py` + `tests/unit/pipelex/pipeline/fixes/test_fix_convergence_loop.py` pins for checkpoint-C item 1 (D3.6).
-- `tests/unit/pipelex/pipeline/fixes/test_fix_loop_select_ignore.py` — loop `select_codes`/`ignore_codes` pins (step 4, DONE).
-- `tests/unit/pipelex/pipeline/fixes/test_fix_render.py`, `tests/unit/pipelex/cli/agent_cli/test_fix_format.py`, `tests/integration/pipelex/cli/test_agent_fix_bundle.py`, `tests/e2e/agent_cli/test_fix_bundle.py` — step 4 (TODO).
-
-## Sequencing
-
-Step 3 lands first and clears CHECKPOINT 1 before step 4 starts: the CLI's contract tests pin `FixBundleResult` (including `files_written` and the write-scope bail reasons), so the loop semantics must be frozen first. Both steps ship on this branch; step 5 (human CLI) remains gated on this branch's exit per the master plan's sequencing doctrine.
diff --git a/wip/autofix/step5-human-cli-surfacing.md b/wip/autofix/step5-human-cli-surfacing.md
deleted file mode 100644
index 2f8721dc8..000000000
--- a/wip/autofix/step5-human-cli-surfacing.md
+++ /dev/null
@@ -1,171 +0,0 @@
-# Autofix — step 5 design: human CLI surfacing
-
-Detailed design and working plan for master-plan step 5 (human CLI surfacing: `pipelex fix bundle` + the `💡 Suggested fix:` line in `pipelex validate`), on branch `feature/Autofix-step5` (base: the PR #1035 squash `611644e82`, which landed steps 3 + 4). Map: [master-plan.md](master-plan.md). Architecture and per-checkpoint findings: [suggested-fixes-design.md](suggested-fixes-design.md). Steps 3 + 4 record: [step3-step4-hardened-loop-and-agent-apply.md](step3-step4-hardened-loop-and-agent-apply.md).
-
-**Status: STEP 5 COMPLETE — all phases (A–D) done, `--diff` shipped (GO), CHECKPOINT B exit review cleared.**
-
-**NEXT ACTION (cold start): step 6 (release train)** — see the [master plan](master-plan.md). This branch is ready to open as a PR. Step-6 hand-off notes are at the bottom of this doc ("Step-6 hand-off").
-
-**CHECKPOINT B outcome:** the workflow-backed `/code-review` (high effort) ran, but its verify stage collapsed — all 13 verifier agents died on an Anthropic session limit, so the 19 finder candidates were never adjudicated by the workflow. They were triaged by hand against the code instead. Full triage is in [deferred-checkpoint-e-review-items.md](deferred-checkpoint-e-review-items.md). Five confirmed bugs were fixed on this branch (mkdocs nav orphan; validate footer not shell-safe; `fix`'s still-invalid tip contradicting its own suggested-fix lines; `--diff` PipeSignature wording asserting the file is valid; `--diff` crash + mislabel + real-run divergence on a missing `-L` dir). Five items were deferred (validate footer over-count; `--diff` `-L` dedup; two cross-CLI duplications; a currently-unreachable dry-run drop) and one was rejected (the `is_dry_run` property is house-preferred over inline enum equality). Gates green (`make agent-check` 0 errors) and the targeted CLI suites + e2e pass after the fixes.
-
-Phases A + B landed exactly per the design below; decisions taken and deltas from plan:
-
-- **Shared human resolver** (`pipelex/cli/commands/bundle_path_resolver.py`): parameterized by `command` name + a per-command `not_a_bundle_hint` (validate's wording preserved verbatim); the `~`-expansion gap the agent side had fixed in PR #1035 triage **did** exist on the human side and is fixed in the helper (pinned by tests).
-- **Flag-and-fix, telemetry**: `execute_validate` double-suffixed its `CLI_COMMAND` tag ("validate bundle bundle") — it now tags `telemetry_command_label` verbatim.
-- **Flag-and-fix, rendering (beyond the planned factory-error change)**: routing the human renderer through the shared items means (a) a message-only `ValidateBundleError` (e.g. TOML parse failure) now renders the fallback residual item — previously the human saw NO detail at all; (b) pipe-validation errors now show `└─ Source:` when the item carries it. Both pinned by tests.
-- **Dry-run channel kept lossless**: the wire builder suppresses the dry-run residual when categorized errors exist; `handle_validate_bundle_error` still prints `exc.dry_run_error_message` in that case (pinned).
-- **E2E**: human subprocess E2E reuses the agent hermetic-HOME harness via a `tests/e2e/pipelex/cli/conftest.py` fixture re-export.
-- **GO on `--diff`**: mechanics look tractable; key subtlety recorded — when the entry file lies under an explicit `-L` dir (directory mode), the sandbox entry path must be the file *inside* the mirrored dir copy, not a separate copy, or the loop would load duplicate pipes.
-
-## Both gates are met (sequencing doctrine)
-
-The master plan gates step 5 on two bars, both cleared:
-
-1. **Abstraction stress-tested by rules of different shapes** — the step-2 exit verdict in the design doc ("Step-2 exit — abstraction verdict"): `SuggestedFix`/`FixOp` survived multi-op, delete, blueprint-channel, and rename fixes with no structural change; `description` is a stable one-line human string across all four rules.
-2. **The apply command exists** — `pipelex-agent fix bundle` shipped in step 4 (PR #1035), so the human hint has an action behind it.
-
-## Scope
-
-Two pieces, landed together for symmetry (per the master plan):
-
-- **`pipelex fix bundle`** — human command wrapping the same `fix_bundle_file` loop, with Rich-rendered output that names every change made.
-- **`💡 Suggested fix:` line** — per fixable error in `pipelex validate`'s error rendering, showing `SuggestedFix.description` only (ops stay machine-facing), plus an actionable footer naming the `pipelex fix` command.
-- **`--diff` preview** (show, don't write) — listed in the design doc's wave-1 CLI surface and explicitly deferred from step 4 to here ("preview belongs to the human command"). Scoped as the last phase and **cuttable**: the step-5 exit criteria don't require it, so if it fights back it becomes a deferred item rather than blocking the step.
-
-**Out of scope:** the step-6 release train (user-facing docs page, cross-repo fixture regen, release cut); wave-2 surfaces (API `POST /fix`, MCP, editor); `--unsafe` (no UNSAFE rule exists in wave 1); richer still-invalid *markdown* for the agent command (only if Phase B's item renderer makes it free — see D5.5).
-
-## What step 5 builds on (verified inventory)
-
-- **The loop** — `fix_bundle_file(mthds_file_path, *, library_dirs, allow_signatures, max_iterations, select_codes, ignore_codes) -> FixBundleResult` (`pipelex/pipeline/fixes/fix_loop.py:292`). `FixBundleResult` (frozen, `fix_loop.py:47`): `is_valid`, `iterations`, `fixes_applied: list[SuggestedFix]`, `files_written: list[str]` (resolved paths, first-write order), `remaining_errors: list[ValidationErrorItem]`, `pending_signatures`, `is_runnable`, `bail_reason`. `max_iterations=None` resolves to `builder_config.fix_loop_max_attempts` (default 10). `select_codes`/`ignore_codes` filtering lives inside the loop, so the human command inherits it for free (that was step 4's stated intent).
-- **The planner** — `plan_fix_for_pipe_validation_error` / `plan_fix_for_blueprint_validation_error` (`pipelex/pipeline/fixes/planner.py:30` / `:132`): pure functions, one raw error-data item → `SuggestedFix | None`. `KNOWN_FIX_CODES` frozenset at `planner.py:20`. `SuggestedFix` (`pipelex/suggested_fix.py:65`): `fix_code`, `description`, `safety`, `source`, `ops`.
-- **The items builder** — `build_validation_error_items` (`pipelex/pipeline/validation_errors.py:24`) is the single source of truth attaching `suggested_fix` to items; called by the agent CLI, the API 422 (`ValidateBundleError.to_error_report`, `pipelex/pipeline/exceptions.py:154`), and the fix loop. `ValidationErrorItem` (`pipelex/base_exceptions.py:269`) carries the **union** of every field the human renderer prints (`error_type`, `pipe_code`, `concept_code`, `domain_code`, `source`, `field_path`, `field_name`, `variable_names`, `message`, `category`) plus `suggested_fix` — this is what makes D5.5's item-routing viable.
-- **The agent command to mirror** — `pipelex/cli/agent_cli/commands/fix/bundle_cmd.py` (options, rule-filter validation `_reject_invalid_rule_filters` at `:26`, runnability gate) and the CLI-free markdown renderer `format_fix_markdown` (`pipelex/pipeline/fixes/fix_render.py:16`). The markdown renderer is **not** reused for humans (headings/backticks are agent presentation); its *structure* — title by verdict, per-fix `fix_code` + description + source-when-not-entry, files written — is the template.
-- **The human validate command to mirror** — group registration in `pipelex/cli/commands/validate/app.py`; path resolution inline in `pipelex/cli/commands/validate/bundle_cmd.py:50-99` (directory auto-detect of `DEFAULT_BUNDLE_FILE_NAME`, single-`*.mthds` fallback, ambiguous → exit 2, directory injects itself into library dirs); setup/run/teardown wrapper `execute_validate` in `commands/validate/_validate_core.py:208`.
-- **The human renderer to change** — `_display_validation_error_details(console, *, exc)` (`pipelex/cli/error_handlers.py:251`) iterates the **raw** `exc.pipelex_bundle_blueprint_validation_errors` / `exc.pipe_validation_errors` lists by hand — which do not carry `suggested_fix`. Its wrapper `handle_validate_bundle_error` (`error_handlers.py:323`) already computes `report = exc.to_error_report()` (items included) at `:330` and already uses the emoji conventions (`❌`, `💡 Tip:`).
-- **Human CLI registration** — root Typer app in `pipelex/cli/_cli.py`: `_CORE_COMMAND_ORDER` (`:27-39`) + `app.add_typer(...)` calls (~`:222-234`).
-
-## Design decisions
-
-### D5.1 — Command layout: `pipelex fix bundle`, mirroring the validate group
-
-New group `fix` beside `validate`/`run`: `pipelex/cli/commands/fix/app.py` (one `bundle` subcommand, no group callback — house style) + `commands/fix/bundle_cmd.py` + `commands/fix/_fix_core.py` (the setup/run/teardown wrapper, modeled on `_validate_core.execute_validate`: Pipelex boot with the same profile validate uses, `asyncio.run(fix_bundle_file(...))`, teardown in `finally`, `except typer.Exit: raise` before the catch-all, telemetry label `fix bundle`). Register in `_cli.py`: add `"fix"` to `_CORE_COMMAND_ORDER` right after `"validate"` and `app.add_typer(fix_app, name="fix", ...)`.
-
-Why a group with one subcommand rather than a bare `pipelex fix <path>`: symmetry with both the human `validate` group and the agent `fix` group — every bundle-shaped surface reads `<cli> <verb> bundle <path>`, and wave 2 may grow `fix pipe`/`fix method` the way validate did.
-
-### D5.2 — Shared human bundle-path resolution (fix must patch exactly what validate judged)
-
-Step 4's D4.6 established the principle on the agent side (shared `agent_cli/commands/bundle_path_resolver.py`); the human side still has the resolution inlined in `validate/bundle_cmd.py:50-99`. Factor it into `pipelex/cli/commands/bundle_path_resolver.py` (human-side helper, `typer.secho` + exit-2 presentation preserved verbatim) and adopt it in **both** `validate bundle` and `fix bundle` in this change — identical resolution is a correctness requirement, not a nicety, because a directory argument defines the write scope (D3.3: the injected dir is user-passed, hence writable).
-
-Not unified with the agent resolver in this step: the two differ exactly in error presentation (human text stream vs agent error envelope), and parameterizing that is more machinery than duplicating ~40 lines of resolution whose *semantics* are pinned by tests on both sides. Candidate follow-up if a third consumer appears. **Flag-and-fix while in there:** the PR #1035 triage fixed a missing `~` expansion in the agent resolver — check whether the human validate path has the same gap and fix it in the new helper if so.
-
-### D5.3 — Options
-
-| Option | Semantics |
-| --- | --- |
-| `path` (arg) | `.mthds` file or directory — same resolution as human `validate bundle` via the D5.2 helper. |
-| `-L/--library-dir` | Repeatable, as in validate. Per D3.3 these dirs are the write scope beyond the entry file. |
-| `--max-iterations` | `int \| None`, min 1; `None` → the `fix_loop_max_attempts` config default. |
-| `--select` / `--ignore` | Repeatable fix-rule codes; mutually exclusive (both → exit 2); unknown code → exit 2 listing `KNOWN_FIX_CODES`. Same *behavior* as the agent command; the validation check is tiny — reuse `_reject_invalid_rule_filters` if its error presentation is plain enough for the human stream, else duplicate the two checks with `typer.secho` wording. |
-| `--allow-signatures` | Mirrors the agent fix gate: without it, a valid-but-not-runnable result (pending signatures) exits 1 with the signatures listed; with it, exit 0. |
-| `--diff` | Show, don't write (Phase C — see D5.6). |
-
-Deliberately absent: `--format`/`--error-format` (human command — Rich console only; the two-stream convention is the agent CLI's); `--orchestrator` (validate-specific boot-verification flag; the fix loop re-validates in-process by design); `--pipe` (fix is whole-bundle); `--unsafe` (no UNSAFE rule in wave 1).
-
-### D5.4 — Human rendering of `FixBundleResult`
-
-Rendered via `get_console()` Rich markup matching `error_handlers.py` conventions (`escape()` on all interpolated strings, `❌`/`💡`/`✅` emoji register). Rendering lives in the fix command layer (`_fix_core.py` or a small sibling `_render.py`), **not** in `fix_render.py` — that module stays the CLI-free agent/API markdown renderer.
-
-- **Valid after the loop** (fixes applied): `✅ Bundle fixed — valid`, the bundle path, then a numbered list naming every change (the step-5 exit bar): `SuggestedFix.description`, with the `fix_code` dim and the source file named when it isn't the entry bundle; then `Files written:` (each resolved path) and the iteration count. Exit 0.
-- **Already valid** (`iterations == 0`, nothing applied): `✅ Bundle already valid`, exit 0.
-- **Valid but not runnable** without `--allow-signatures`: pending signatures listed, `💡 Tip:` explaining `--allow-signatures` vs providing implementations, exit 1 (mirrors the agent gate).
-- **Still invalid**: what *was* applied (same named-change list — partial progress is normal), the `bail_reason` when present (the loop's bail wordings are already human-actionable, e.g. the out-of-scope one names the `-L` remedy), then the remaining errors rendered through the **same item renderer as validate** (D5.5) so the two commands can't drift, then the standard tip/links block. Exit 1.
-- **No verdict** (bad path, ambiguous bundle, init failure, unexpected exception): exit 2, same handler cascade as human validate.
-
-Exit codes are presentation; the human-facing "contract" is the rendered text. Ops are never rendered — `description` only, per the master plan.
-
-### D5.5 — The `💡 Suggested fix:` line: route the human renderer through the shared items
-
-Rewrite `_display_validation_error_details` to consume `ValidationErrorItem`s instead of the raw exception lists — `handle_validate_bundle_error` already computes `exc.to_error_report()` at `error_handlers.py:330`, so the items (with `suggested_fix` attached by the one shared builder) are already in hand; the renderer signature changes to take the report's items (or the exception grows nothing). Group items by `category` to keep the current section headers (`Blueprint Validation Errors:` / `Pipe Validation Errors:` / dry-run), keep the per-error field lines as today (every printed field exists on the item), and append per item, when `suggested_fix` is present:
-
-```
- [green]💡 Suggested fix:[/green] {escape(item.suggested_fix.description)}
-```
-
-After the error sections, when at least one item is fixable, one actionable footer (this is the doctrine's "a hint needs an action behind it"): `💡 {n} of these errors can be fixed automatically — run: pipelex fix bundle {bundle_path}` (append the `-L` dirs when the invocation had them — thread `library_dirs` into `handle_validate_bundle_error` alongside the existing `bundle_path` param). The existing generic `💡 Tip:` line stays but yields to the footer when fixes exist (two stacked 💡 tips is noise — prefer the actionable one).
-
-Why item-routing over calling the planner inline per raw error (the master plan names both): one engine feeding every surface is the track's guiding principle; the planner then runs in exactly one place (`build_validation_error_items`); and the item renderer is exactly what D5.4's still-invalid arm needs for `remaining_errors` (which are already items) — inline planner calls would leave the human path as the one surface with private wiring, which is the disease this track exists to cure. Fallback if item-routing churns the human output in ways review rejects: the planner functions are pure and take one raw error-data item, so the inline form stays a cheap plan B.
-
-**Deliberate behavior change to pin:** the raw-list renderer silently skips `factory_errors`; the items include them (`PIPE_FACTORY` category). Routing through items makes factory errors visible in human validate output for the first time — that's a fix, not a regression (flag-and-fix rule); pin it with a test and note it in the CHANGELOG.
-
-### D5.6 — `--diff` preview via a temp-copy sandbox (Phase C, cuttable)
-
-The loop has no no-write mode, and re-validation loads from disk — so an honest preview runs the real loop against copies: mirror the entry file and each **explicit** `-L` dir into a scratch dir (preserving relative layout), remap `library_dirs` to the copies, run `fix_bundle_file` there, then render a unified diff (original vs copy) for each `files_written`, via Rich syntax highlighting. Originals untouched (pinned by test); exit codes keep the same verdict semantics (0 valid-after / 1 still-invalid) so `--diff` answers "would it converge?". Ambient-resolved dirs are not copied — they're read-only under D3.3 in the real run too, so behavior matches. Entry-only invocations (no `-L`) copy just the entry file and pass `library_dirs` through unchanged (`None` stays `None`: ambient dirs load identically from the copy's run since they're absolute).
-
-If the temp-copy mechanics surface real complications (path remapping in rendered output, ambient-dir edge cases), cut the flag to a deferred item at the mid-step checkpoint — the exit criteria don't need it.
-
-## Phases (TDD — red tests first per layer)
-
-### Phase A — `pipelex fix bundle` — DONE
-
-- [x] Factor the human bundle-path resolution helper (`commands/bundle_path_resolver.py`) out of `validate/bundle_cmd.py`; validate's existing tests stay green; check/fix the `~`-expansion gap (D5.2); unit tests for the helper.
-- [x] `commands/fix/` package: `app.py`, `bundle_cmd.py`, `_fix_core.py`; registration in `_cli.py` (`_CORE_COMMAND_ORDER` + `add_typer`) (D5.1).
-- [x] Options + validation: `--select`/`--ignore` mutual exclusion and unknown-code rejection (exit 2), `--max-iterations` min 1, `--allow-signatures` gate (D5.3).
-- [x] Human rendering of all five verdict arms (D5.4), with unit tests asserting rendered output per arm (patched `fix_bundle_file`) at `tests/unit/pipelex/cli/commands/fix/test_fix_bundle_human_format.py`.
-- [x] Integration: `tests/integration/pipelex/cli/test_fix_bundle_human.py` against the real loop on `tmp_path` bundles: fixable → exit 0 + file fixed on disk; unfixable → rendered failure + exit 1; `--select` honored; directory mode.
-- [x] E2E: subprocess `pipelex fix bundle` at `tests/e2e/pipelex/cli/test_fix_bundle_cmd.py`, reusing the agent hermetic-HOME harness via a local conftest re-export.
-
-### Phase B — `💡 Suggested fix:` in validate rendering — DONE
-
-- [x] Tests: `tests/unit/pipelex/cli/test_validate_suggested_fix_rendering.py` (💡 line, footer with `-L` echo, footer-replaces-tip, factory-error section, dry-run kept lossless) + integration pin `tests/integration/pipelex/cli/test_validate_suggested_fix_integration.py`.
-- [x] Rewrote `_display_validation_error_details` into the item-driven `display_validation_error_items` (D5.5); threaded `library_dirs` into `handle_validate_bundle_error` for the footer; section headers and per-field lines kept byte-comparable wherever the item carries the same data.
-- [x] Wired D5.4's still-invalid arm to the same item renderer (remaining_errors) — one renderer, two commands.
-
-### CHECKPOINT A (mid-step) — CLEARED
-
-The step-5 exit criteria are functionally met: a human sees the suggestion in `validate` and applies it with `fix`, with output naming every change. Committed; status block updated. **GO on `--diff`** (see status block for the recorded sandbox-layout subtlety).
-
-### Phase C — `--diff` preview — DONE (GO)
-
-- [x] Temp-copy sandbox (`commands/fix/_diff_sandbox.py`: `mirror_bundle_for_preview` + `PreviewSandbox.to_original`) + diff rendering (`_print_preview_diffs`, would-be labels via `preview=True` in the result renderer, copy→original path remap for display); unit tests for the copy/remap helper (`test_diff_sandbox.py`) incl. the entry-inside-`-L`-dir layout subtlety; integration pins: `--diff` on a fixable bundle prints the diff with ORIGINAL paths, originals byte-identical, exit codes match the write-mode verdicts (0 would-converge / 1 would-still-be-invalid).
-
-### Phase D — docs, changelog, gates — DONE
-
-- [x] CHANGELOG `[Unreleased]`: `pipelex fix bundle` (+`--diff`), `💡 Suggested fix:` lines + actionable footer, item-routed human rendering changes (factory errors, parse-level message, pipe-error source), `~`-expansion fix, telemetry-label fix.
-- [x] Repo docs sweep: new `docs/tools/cli/fix.md` reference page (+ mkdocs nav); fix rows/links added to `docs/tools/cli/index.md`, `docs/tools/cli/validate.md` ("Suggested Fixes" section), `docs/features/cli.md` (human + agent tables — the agent `fix` row was missing since step 4).
-- [x] `make agent-check` green; full `make agent-test` green.
-
-### Exit — CHECKPOINT B (step-5 exit) — DONE
-
-House pattern followed: `/code-review` fan-out on the step-5 diff (workflow-backed, high effort). Its verify stage collapsed on a session limit (13/13 verifiers errored), so the 19 finder candidates were triaged by hand against the code — full record in [deferred-checkpoint-e-review-items.md](deferred-checkpoint-e-review-items.md).
-
-- **Fixed on this branch (confirmed bugs):** mkdocs nav orphan (`fix.md` was in the llmstxt page-map, not the site `nav:`); the validate footer built its `pipelex fix bundle` command without shell quoting (breaks on paths with spaces → `shlex.join`); `fix`'s still-invalid tip claimed "no deterministic safe fix" even when remaining errors still carried a 💡 suggested-fix line (`--select`/`--ignore`/out-of-scope/bail) → tip now conditional; `--diff` printed "Bundle is valid but NOT yet runnable" non-conditionally though nothing was written → preview-aware wording; `--diff` crashed + mislabeled + diverged from the real run on a missing `-L` dir → the sandbox now mirrors a missing dir as an empty copy (matching the loader's skip).
-- **Deferred (real, but tradeoffs / niche / DRY):** validate footer over-counts fixable errors vs the loop's applicability gates; `--diff` `-L` dirs aren't deduped by resolved path; `resolve_bundle_target` and `_reject_invalid_rule_filters` are duplicated across the human and agent CLIs; a currently-unreachable dry-run-message drop in `fix`'s still-invalid arm. See the deferred doc for the recommendations.
-- **Rejected:** the finder's suggestion to inline `item.category == DRY_RUN` instead of the `is_dry_run` property — the property is the house-preferred form (exhaustive-match on the enum).
-
-Gates: `make agent-check` 0 errors; targeted CLI unit + integration suites and the fix-bundle e2e pass after the fixes.
-
-## Test map (new / extended)
-
-- `tests/unit/pipelex/cli/` — human fix command format tests (patched loop; all verdict arms; option validation), bundle-path-resolver helper tests, validate-rendering 💡 tests (Phase B pins).
-- `tests/integration/pipelex/cli/` — `test_fix_bundle_human.py` mirroring `test_agent_fix_bundle.py`; validate-output integration pin for the 💡 line on a real fixable fixture.
-- `tests/e2e/` — subprocess `pipelex fix bundle` (harness per Phase A's finding).
-- Phase C adds copy-sandbox unit tests + the originals-untouched integration pin.
-
-## Cold-start pointers
-
-- Fixtures: `tests/data/fixes/` holds `<name>.mthds` + `<name>.golden.mthds` pairs per rule — reuse them (always on `tmp_path` copies; the command mutates files).
-- Unit tests drive the loop with `mocker.patch("pipelex.pipeline.fixes.fix_loop.validate_bundle", side_effect=[...])` and patch `...fix_loop.resolve_library_dirs` for ambient-dir cases; pass `max_iterations` explicitly to avoid needing a booted config (step-3/4 doc, implementation record).
-- Golden `.mthds` fixtures are processed by `plxt format` during `make agent-check` — write, format, then derive goldens; fresh worktrees need `pipelex-dev generate-mthds-schema` before `plxt lint`.
-- A dotted `main_pipe = "domain.pipe"` is itself invalid (strip-namespace fires) — multi-file fixtures must use the bare form.
-- Known-inert collision gap in `_split_cross_file_collisions` (intra-round duplicate bare codes): documented in [pr-1035-review-notes.md](pr-1035-review-notes.md) — don't re-report it; revisit only if blueprint-parse error accumulation changes.
-
-## Step-6 hand-off
-
-Step 6 is the release train (see [master-plan.md](master-plan.md) step 6). Two things this step deliberately did **not** absorb — they belong to the release cut, not to step 5:
-
-- **The release CHANGELOG entry must name the additive `suggested_fix` wire field** now surfacing in `/validate` API payloads (deferred item 1c in the design doc). Step 5's `[Unreleased]` entries cover the human/agent CLI surfaces; the API wire-field mention is a release-train line.
-- **Regenerate the fixture in our cross-repo spec suite** that pins the `/validate` error body (deferred item 2), then bump the pipelex-api pin when the runner picks up the version.
-
-Carry-in from Checkpoint B (in [deferred-checkpoint-e-review-items.md](deferred-checkpoint-e-review-items.md)) — not release blockers, fold into wave 2 unless they surface sooner: the validate footer over-count (item A) and the `--diff` `-L` dedup (item B) are the two with user-visible edge cases; the cross-CLI resolver/filter duplications (items C, D) are the natural next shared-abstraction refactor.
-
-The branch is otherwise PR-ready: `feature/Autofix-step5` off `611644e82`, gates green.
diff --git a/wip/autofix/suggested-fixes-design.md b/wip/autofix/suggested-fixes-design.md
deleted file mode 100644
index a995e0268..000000000
--- a/wip/autofix/suggested-fixes-design.md
+++ /dev/null
@@ -1,218 +0,0 @@
-# Suggested fixes on validation diagnostics
-
-Design for deterministic auto-fixing of `.mthds` bundles. Supersedes [old-plan-to-auto-fix.md](old-plan-to-auto-fix.md) (the `feature/Bundle-fixer` approach).
-
-## Decisions taken (2026-07-07, with Louis)
-
-- **D1 — Fixes attach to diagnostics.** Each fixable `ValidationErrorItem` carries a structured `suggested_fix`. The `fix` command is just "apply what validate found", in a loop. No standalone fix engine that re-derives problems.
-- **D2 — Runtime-only wire first.** `suggested_fix` is an additive, optional, pipelex-owned field. Formal promotion into the MTHDS protocol (spec + cross-repo spec suite + downstream schema copies in mthds / mthds-js / mthds-python) is a later wave, once the shape is proven.
-- **D3 — Wave 1 consumer = agent CLI + skills.** `pipelex-agent fix` with the convergence loop, consumed by the `mthds-fix` skill and hooks. API `POST /fix`, MCP `mthds_fix` tool, and VS Code quick fixes are later waves.
-- **D4 — Pruning rules cut from wave 1.** `prune-unreachable` / `prune-unused-concepts` are cleanups, not fixes — nothing is broken when they'd fire. Salvage the graph-walk logic later as opt-in lint warnings with attached fixes. Wave 1 is purely "make invalid bundles valid".
-
-## Why this shape (and why not the old branch's)
-
-The old branch built a separate fix engine that re-implemented the validation pipeline (`_load_blueprint_and_pipes` hand-copied `validate_bundle`'s phases) and re-derived the correct values on its own. Two engines computing the same truths is a drift machine, and a fix computed inside a command is invisible to every other consumer (API, MCP, VS Code, skills).
-
-The decisive observation: **the validator already knows the correct value at detection time.** `PipeSequence.validate_output_with_library` (`pipelex/pipe_controllers/sequence/pipe_sequence.py:63-115`) compares the declared output against the last step's output and already ships the correct concept in the error (`provided_concept_code`). `generic_validate_inputs_with_library` (`pipelex/core/pipes/pipe_abstract.py:264`) compares declared inputs against `needed_inputs()`. So fixability comes from **richer typed errors**, not from a smarter fixer: enrich the error to carry the expected value, and fix construction becomes a mechanical translation that cannot drift from the validator.
-
-This also matches the workspace's presentation-vs-contract principle (the MTHDS protocol spec): the fix ops are contract data on the structured report; any rendered diff is presentation. One validation engine keeps feeding every surface.
-
-## Architecture
-
-Three layers, all in `pipelex/`:
-
-1. **Enriched typed errors** (validator sites). Where a validator computes the expected value, it puts that value on the typed error as structured fields (e.g. the expected output ref including multiplicity, the full needed-inputs mapping). Validators gain no TOML knowledge — they state semantic facts. This is valuable even without autofix: it makes error messages and agent-facing explanations better.
-2. **Fix planner** (one module, e.g. `pipelex/pipeline/fixes/`). Translates enriched typed errors into `SuggestedFix` payloads: semantic patch ops addressed by TOML path. Keyed strictly off `error_type` + structured fields — never message strings. The planner runs inside report assembly (`build_validation_error_items` / `build_validation_report`), so every consumer of the report sees fixes with zero extra plumbing.
-3. **Applier + loop** (tomlkit-based). Applies ops to the raw file's tomlkit DOM (style-preserving), per file. The `fix` command loops: validate → collect safe fixes → apply → re-validate, until fixed-point.
-
-### Wire model (wave 1, runtime-only per D2)
-
-```python
-class FixOpKind(StrEnum):
- SET_KEY = "set_key" # set (or create) a key's value at a table path
- DELETE_KEY = "delete_key"
- DELETE_TABLE = "delete_table"
- RENAME_TABLE_KEY = "rename_table_key" # position-preserving; needed for strip-namespace (stretch)
-
-
-class FixOp(BaseModel):
- kind: FixOpKind
- table_path: list[str] # e.g. ["pipe", "my_seq"] — aligned with field_path conventions
- key: str | None
- value: TomlValue | None # TOML-representable
- new_key: str | None # rename only
-
-
-class SuggestedFix(BaseModel):
- fix_code: str # kebab-case rule id, e.g. "match-sequence-output"
- description: str # human/agent-readable, e.g. "Set output to 'Report[]' to match last step"
- safety: FixSafety # SAFE (auto-appliable) | UNSAFE (opt-in)
- source: str | None # file the ops target (multi-file libraries)
- ops: list[FixOp]
-```
-
-`ValidationErrorItem` gains `suggested_fix: SuggestedFix | None = None`. Serialization stays `exclude_none`, so nothing changes for non-fixable errors. Naming is brand-neutral (language-level concept — no `pipelex_` prefixes in field names).
-
-Note `ValidationErrorItem` flows through the hosted API's `InvalidReport` too, so the field will *appear* on the API wire as soon as it exists — that's fine and additive; what D2 defers is the formal contract work (spec sections, spec-suite tests, downstream schema mirrors), not hiding the field.
-
-### The applier
-
-- tomlkit DOM per file (`load_toml_with_tomlkit` / `save_toml_to_path` in `pipelex/tools/misc/toml_utils.py` already exist). Comments, ordering, and table style of untouched content survive by construction.
-- **In-place mutation, never rebuild.** For `sync-controller-inputs`, update/delete/add keys inside the existing `inputs` table rather than replacing it with a fresh inline table (the old branch's rebuild discarded comments and forced inline style).
-- **Position-preserving rename** for `RENAME_TABLE_KEY` (the old branch's `del` + re-add sent renamed pipes to the bottom of `[pipe]`). If tomlkit makes this too fiddly, `strip-namespace` stays out of wave 1 rather than shipping the reordering bug.
-- **Guarded application**: an op only applies if its target path exists in the DOM. This protects against errors raised on elaborated/synthetic constructs (`BundleElaborator` synthesizes sequences from `structuring_method = "preliminary_text"` — those pipes have no TOML to patch) and against ops targeting a different file than the one being patched.
-- **Idempotent**: applying the same fix twice is a no-op.
-
-### The convergence loop (`fix` command)
-
-```
-loop (max_iterations, default 5):
- report = validate_bundle(...) # THE validator — no parallel pipeline
- fixes = [e.suggested_fix for e in errors if fix is SAFE and selected]
- if no fixes: break
- if fingerprint(fixes) seen before: break # no-progress bail, report loudly
- apply fixes per file; write
-final: re-validate, report is_valid + fixes_applied + remaining errors
-```
-
-Cascades are expected (fixing a sequence's output can surface a downstream input mismatch) — the loop is the design, not a fallback. The old branch's "fixes are convergent in a single pass" was asserted, never proven; here non-convergence is a first-class, loudly-reported outcome, and the loop-with-fingerprint makes it impossible to spin.
-
-## Wave 1 fix rules
-
-| fix_code | Trigger (typed) | Fix | Safety |
-| --- | --- | --- | --- |
-| `match-sequence-output` | `INADEQUATE_OUTPUT_CONCEPT` / `INADEQUATE_OUTPUT_MULTIPLICITY` on a **PipeSequence** | `set_key` the sequence's `output` to the last step's effective output (concept + multiplicity, honoring the sub-pipe multiplicity override) | SAFE |
-| `sync-controller-inputs` | `MISSING_INPUT_VARIABLE` / `EXTRANEOUS_INPUT_VARIABLE` / `INPUT_STUFF_SPEC_MISMATCH` on a **controller** pipe | In-place sync of the `inputs` table with `needed_inputs()` | SAFE |
-| `strip-native-concept-redecl` | Blueprint validation error for redeclared native concept | `delete_table` / `delete_key` for `[concept.X]` or inline `concept.X = "..."` | SAFE |
-| `strip-namespace` (stretch) | `INVALID_PIPE_CODE_SYNTAX` from same-domain dotted pipe codes | Position-preserving rename + rewrite of internal refs (`steps`, `branches`, `branch_pipe_code`, `outcomes`, `default_outcome`, `main_pipe`) | SAFE, but gated on rename mechanics |
-
-Explicitly **not** fixable (ambiguous, requires judgment): PipeParallel/PipeCondition output choice, `INPUT_STUFF_SPEC_MISMATCH` on operator pipes, generating missing concepts, anything on signature pipes (signatures are `pending_signatures`, never errors — the fixer must never touch them). The old branch's `fix-list-notation` is dropped: it fired unconditionally rather than off errors, only ever added `[]`, and predates the optionals grammar; if the underlying case matters it should resurface as a properly error-driven rule.
-
-### Rule-level guards (lessons from the drift analysis)
-
-- **Optionals markers `?` / `!`**: any rewrite of an input/output ref must preserve the author's presence markers. The validator deliberately does not compare presence markers in `INPUT_STUFF_SPEC_MISMATCH` — so `sync-controller-inputs` keeps the user's marker whenever concept + multiplicity already match, and only derives markers for inputs it adds.
-- **Prerequisite-clean rule**: a fix is only emitted when its inputs are trustworthy. If a pipe also has `UNRESOLVED_PIPE_DEPENDENCY` / `UNRESOLVED_CONCEPT` errors, `needed_inputs()` is incomplete — the planner must not emit `sync-controller-inputs` for it. Generally: co-errors on the same pipe that undermine the derivation suppress the fix for that iteration (the loop picks it up next round once the prerequisite is fixed).
-- **Multi-file libraries**: fixes target the file that *declares* the item (`ValidationErrorItem.source`), and only files the user passed to the command get written. Cross-package qualified refs are never rewritten.
-
-## CLI surface (wave 1)
-
-- `pipelex-agent fix bundle <files...>` (and the `pipelex fix` mirror), symmetric with `validate`. Flags: `-L/--library-dir`, `--diff` (show, don't write), `--select`/`--ignore` (mutually exclusive, rule codes), `--max-iterations`, `--format`/`--error-format` per the two-stream convention (markdown default on the agent CLI).
-- `pipelex-agent validate` output gains the `suggested_fix` annotations automatically (same report) — agents benefit even without running `fix`.
-- Contract vs presentation: the machine verdict is the structured body (`is_valid` after fixing, `fixes_applied[]`, remaining `validation_errors[]`). Exit codes are presentation: 0 = valid after fixes (or already valid), 1 = still invalid, 2 = no verdict (infra/args).
-- The markdown renderer for fix results lives beside `validation_render.py` (CLI-free module) so the API can reuse it in wave 2.
-
-## Testing (TDD)
-
-- **Planner unit tests**: enriched typed error → expected `SuggestedFix` ops, per rule, including suppression cases (prerequisite co-errors, synthetic pipes, signature pipes, cross-package refs).
-- **Applier golden tests**: fixture `.mthds` files with comments, mixed inline/block styles, deliberate ordering → apply ops → byte-compare against golden output. This is the regression net for format preservation, the thing the old branch never proved. Include idempotence (apply twice = same bytes).
-- **Convergence tests**: a fixture needing multiple iterations (cascade); a deliberately non-convergent fixture that must bail cleanly with the no-progress report.
-- **e2e CLI tests**: `fix bundle` JSON and markdown snapshots; `validate` output showing `suggested_fix` annotations.
-
-## Phases
-
-### Phase 0 — Spike: prove the chain end-to-end
-
-One rule (`match-sequence-output`) through all three layers: enrich the `INADEQUATE_OUTPUT_*` errors with the expected output ref (concept + multiplicity — `provided_concept_code` exists but multiplicity needs adding), planner translation, tomlkit applier with the guarded/idempotent semantics, minimal loop, red-green tests at each layer. No CLI command yet — driven by tests.
-
-**CHECKPOINT 0**: chain proven or design revised. Update this doc with findings (especially: does tomlkit in-place mutation preserve style as expected; what the enriched-error shape settled to).
-
-**CHECKPOINT 0 findings (2026-07-07 — chain proven, design holds):**
-
-- **tomlkit in-place mutation preserves style as promised.** Assigning `table["output"] = value` keeps the trailing comment *on the patched line itself*, plus all comments, key alignment, ordering, and inline/block table styles of untouched content. Golden byte-comparison tests pin it (`tests/data/fixes/`), including idempotence.
-- **Enriched-error shape settled**: `expected_output_ref: str | None` on `PipeValidationError`, threaded to `PipesAndConceptValidationErrorData` by `categorize_pipe_validation_with_libraries_error`. Only the two `PipeSequence` raise sites set it — which is also the suppression mechanism: the planner requires the field, so PipeParallel / PipeCondition / operator `INADEQUATE_OUTPUT_*` errors are structurally unfixable, no pipe-type sniffing needed. Rendering: bare concept code when same-domain or native, qualified `domain.Code` otherwise; effective multiplicity honors the sub-pipe override; presence marker rides via `format_concept_with_multiplicity`. Kept internal (error-data only) — the wire gets only `suggested_fix` (D-R3).
-- **Wire models** live in the new low-level `pipelex/suggested_fix.py` (stdlib + pydantic only) so `base_exceptions.py` imports it cycle-free. `ValidationErrorItem.suggested_fix` is additive; non-fixable items serialize byte-identically (pinned).
-- **Loop mechanics verdict: works as designed.** `fix_bundle_file` reuses `validate_bundle` wholesale; fingerprint = `fix_code|source|per-op(kind:path:key:value)` string; bail fires when an iteration proposes only already-seen fingerprints (pinned via a synthetic-pipe skip that would otherwise spin); `iterations` counts apply rounds; one final validate decides the verdict after `max_iterations`. Cascade fixture (nested sequences) converged in 2 rounds — note validation aborts at the *first* `PipeValidationError`, so multi-error bundles converge error-by-error across iterations rather than batch-applying; fine for correctness, worth remembering for loop-count expectations in Phase 1.
-- **One deviation**: `RENAME_TABLE_KEY` exists on the wire enum (per the sketch) but the applier raises `PipelexUnexpectedError` for it — position-preserving rename is Phase 1 work gated on the strip-namespace mechanics; no spike planner emits it.
-- **Tooling gotchas for Phase 1**: golden `.mthds` fixtures are processed by `plxt format` during `make agent-check`, so fixtures must be format-stable (write them, run the formatter, then derive the golden); `plxt lint` needs `derived/mthds_schema.json` regenerated (`pipelex-dev generate-mthds-schema`) in fresh clones/worktrees.
-
-### Phase 1 — Engine + remaining wave-1 rules
-
-Harden the loop (fingerprint bail, multi-file targeting), add `sync-controller-inputs` (with the optionals-marker and prerequisite-clean guards) and `strip-native-concept-redecl`. Attempt position-preserving rename; ship `strip-namespace` only if it lands clean. `suggested_fix` lands on `ValidationErrorItem`.
-
-**CHECKPOINT 1**: all wave-1 rules green with golden format-preservation tests. Decisions on strip-namespace recorded here.
-
-**CHECKPOINT 1 findings — `sync-controller-inputs` (2026-07-07, step-2 Phase A):**
-
-- **Enrichment shape settled as a *pair* of mappings**: `expected_inputs` (what the pipe should declare) **and** `declared_inputs` (what it declares today), both `dict[str, str] | None`, both rendered domain-relative, on `PipeValidationError` → `PipesAndConceptValidationErrorData`. The pair keeps the planner pure: it diffs two mappings instead of needing file access, and emits `set_key` per added/changed variable + `delete_key` per extraneous one (deterministic order → stable fingerprints). This is the first multi-op fix; `SuggestedFix`/`FixOp` absorbed it unchanged.
-- **Rendering factored to `StuffSpec.to_bundle_representation(relative_to_domain=...)`** — the spike's inline rendering in `PipeSequence` now reuses it; declared-spec renderings preserve the author's `?`/`!` markers when concept+multiplicity already match (presence is deliberately outside the drift contract).
-- **Only the raise sites holding `the_needed_inputs` are enriched.** The `required_variables()` site stays bare: for a PipeCondition it fires for expression variables whose needed spec would come from the declared inputs themselves (unknowable, and `needed_inputs()` raises `InputStuffSpecNotFoundError` there). Suppression stays structural.
-- **Prerequisite-clean guard needed no code**: library validation resolves all pipe dependencies (raising `UNRESOLVED_PIPE_DEPENDENCY` immediately) *before* any `validate_with_libraries()` runs, and skips controllers with unresolved cross-package deps — co-occurrence is impossible by ordering; pinned by test.
-- **PipeLLM's missing/extraneous prompt-variable errors live on the blueprint channel** (static validation at model construction, reconstructed from pydantic messages), not the pipe-validation channel — structurally out of the planner's reach, pinned by test.
-- **`TomlValue` widened** to `TomlScalar | dict[str, TomlScalar]` for the no-`inputs`-table case (one `set_key` writes the whole mapping as an inline table). First container value on the wire enum's `value` slot; nothing else bent.
-- **Applier finding — inline-table canonicalization (superseded by Phase A′; kept for history).** tomlkit's incremental edits inside inline tables leave non-canonical whitespace (`{ a = "x", b = "y"}`). The Phase A cut hand-canonicalized this in the applier (re-emit the mutated inline table with `{ key = value, ... }` spacing, trivia transplant), and the checkpoint-A review corrected the string-assembly crashes by building via `tomlkit.inline_table()` + outer-brace splice. **Phase A′ deletes all of that** — see the next section. The reviewers' recurring "why not just use `plxt`?" question is exactly what A′ answers: the *runtime* toolchain library `pipelex-tools-py` (in-process, distinct from the `plxt` CLI dev-dep) now owns canonical formatting.
-
-**CHECKPOINT 1′ — `format_mthds` canonical-output backend (2026-07-07, step-2 Phase A′):**
-
-- **Decision (Louis): ADOPT `pipelex_tools.format_mthds` as the single source of canonical style.** Added `pipelex-tools-py` as a **core runtime dependency** (import `pipelex_tools`; the in-process PyO3 extension built from `vscode-pipelex/crates/pipelex-py`, *distinct* from the `pipelex-tools` CLI-binary dev-dep — same `taplo`/MTHDS engine as `plxt`, embedded schema, offline, PEP 561 stubs; already a runtime dep of `pipelex-api`, precedent). This dissolves the "why not plxt?" tension: the earlier objection (dev-only Rust binary, no Python API, whole-file, breaks surgical byte-preservation) doesn't apply to the in-process library, and the fix tool *wants* whole-file canonical output anyway.
-- **Applier is now pure mutation.** Deleted the hand-rolled `_canonical_inline_table` and `_canonicalize_mutated_inline_table` (and their two call sites). `apply_fix_ops` mutates the tomlkit DOM and stops there. The new `applier.serialize_and_format(toml_doc) -> str` dumps the DOM and hands it to `format_mthds`, which reflows inline-table/array spacing to canonical form; a `kind="syntax"` diagnostic means the applier emitted malformed TOML → `PipelexUnexpectedError` (never silently written). `fix_loop` writes `serialize_and_format(...)` instead of `save_toml_to_path(...)`.
-- **Output philosophy shift (intended): surgical byte-preservation → canonical whole-file MTHDS.** Correct for a file-rewriting fix tool, and a no-op on already-formatted files (the norm — MTHDS is formatted on save + CI-enforced). Consequence surfaced by the loop tests: on a *hand-drifted, unaligned* fixture the formatter column-aligns single-line tables (`output = "x"` → `output = "x"`), so convergence-test assertions moved from whitespace-coupled string counts to semantic reload checks (parse the fixed file, assert field values). This is the A′ design *working*, not a regression — re-validation passing already proves the fixes are correct.
-- **Deviation from the literal plan, recorded:** the plan said "pass a plain dict on the whole-mapping `SET_KEY`, `format_mthds` canonicalizes it." Empirically a plain-dict assignment makes tomlkit emit a **detached `[pipe.x.inputs]` block table at end-of-file**, and `format_mthds` preserves block-vs-inline (it doesn't convert). So `_as_tomlkit_value` keeps a **minimal** `tomlkit.inline_table()` builder (no string-splicing, no brace-padding — the fragile parts are gone; tomlkit owns key quoting/value rendering, `format_mthds` owns spacing) so a freshly-created mapping stays inline and attached to its pipe. This reproduces every existing golden byte-for-byte (no golden regeneration needed) and gives strictly nicer output than a detached block table.
-- **Goldens are now the `format_mthds` canonical output.** The applier golden tests (`test_fix_applier*.py`) route byte-compares through `serialize_and_format`; the F1 dotted-key and F2 whole-pipe-inline regression tests pass *by construction* now (the real parser can't crash on valid TOML, unlike the deleted hand-rolled canonicalizer). All four pre-existing goldens were unchanged.
-- **`pipelex_tools` stub/runtime drift gotcha (found during review triage).** The PEP 561 stub declares `Diagnostic` / `Range` / `FormatResult` / `LintResult` in `__all__`, but those are **type-only** TypedDicts — not runtime exports of the compiled module. So `from pipelex_tools import Diagnostic` type-checks (pyright/mypy read the stub) yet raises `ImportError` at runtime. `applier.py` imports `Diagnostic` under a `TYPE_CHECKING` guard (quoted annotation) and imports only the real callable `format_mthds` at runtime. Since `pipelex-tools-py` is ours, Louis is fixing the drift upstream; the follow-up to simplify our workaround once it ships is tracked in [deferred-checkpoint-a-prime-review-items.md](deferred-checkpoint-a-prime-review-items.md) (item 1), which also carries a Phase-C exploration note (item 2: an upstream rename / canonical-ordering primitive, since `format_mthds` reflows spacing but does not reorder tables).
-
-**CHECKPOINT B — `strip-native-concept-redecl` (2026-07-07, step-2 Phase B): blueprint channel opened end-to-end.**
-
-- **The blueprint channel now runs the planner.** `build_validation_error_items`' blueprint loop calls `plan_fix_for_blueprint_validation_error(...)`, mirroring the pipe loop — so a blueprint-validation error can now ride a `suggested_fix`. This is the first fix that is **not** a pipe-validation fix and the first whose `SuggestedFix.source` is populated from real validation (blueprint error data carries `source` from `blueprint_dict["source"]`; the pipe raise sites still emit `source=None`).
-- **Enrichment = typed raise + structural unwrap, no message matching.** `validate_concept_keys` raised a bare `ValueError` whose only carrier of the offending concept code was the message text (pydantic `loc` is just `("concept",)`, so the concept categorizer produced `error_type=None`, `concept_code=None`). Replaced it with `NativeConceptRedeclarationError(ValueError)` carrying `concept_code`; because it subclasses `ValueError`, a `mode="before"` field validator can raise it and pydantic preserves it in `ctx["error"]`. The blueprint categorizer unwraps it structurally (`_extract_wrapped_native_concept_redeclaration_error`, the exact pattern of `extract_wrapped_pipe_validation_error`) — placed **before** the scope dispatch so it wins over the un-enriched concept-scope path. The other bare `ValueError` in the same validator (invalid concept-code *syntax*) is left untyped → stays uncategorized → no fix (structural suppression; pinned by test).
-- **Enum home decision: widen the shared `PipeValidationErrorType`, do not add a new enum.** The field type of `PipelexBundleBlueprintValidationErrorData.error_type` is `PipeValidationErrorType | None`, and that enum is already the de-facto MTHDS *validation-error-type* enum (it holds concept-scope values like `UNRESOLVED_CONCEPT`), despite the legacy `Pipe`-prefixed name. Added `NATIVE_CONCEPT_REDECLARATION` there — smallest correct surface, field type unchanged, wire projection unchanged. Did **not** resurrect the deleted `PipelexBundleBlueprintFixableErrorType` stub. Cost: the enum has exhaustive `@property` match/case methods, so the new value had to be added to `is_controller_input_drift` / `is_inadequate_output` (False arms) and a new single-case `is_native_concept_redeclaration` property added (house style: single-out-one-case via a property, never enum equality).
-- **The applier needed no new code.** `DELETE_KEY` on `["concept"]` (key = the offending code) covers **every** authoring form — `[concept.X]` table (incl. a `[concept.X.structure]` sub-table, deleted with it), `X = "…"` string shorthand under `[concept]`, and dotted `concept.X` — because tomlkit represents all three as a `concept` table keyed by the code. `format_mthds` keeps dotted keys dotted (just column-aligns), so a dotted fixture is a genuine, format-stable authoring form. Golden byte-compare across all three forms.
-- **Source-guard first live exercise.** With a populated `source`, the loop's `Path(source) == mthds_file_path` check applies the fix single-file (convergence test) **and** under `library_dirs` when the source is the file being fixed (positive complement to the pre-existing source-*less*-dropped test). Multi-redeclaration bundles converge error-by-error (the `mode="before"` validator raises on the first offending code per pass) — the same cascade shape as the pipe channel, now on the blueprint channel.
-- **Known minor artifact (not fixed, low value):** deleting a `[concept.X]` table whose *leading* line is a standalone comment reflows that comment onto the successor element (tomlkit trivia behavior; `format_mthds` doesn't reposition it). Comments on *untouched* content are preserved (that is the guarantee). Fixtures put comments on surviving content to keep the goldens clean; a comment sitting directly on the deleted concept is the only thing that can dangle. Acceptable for a fix tool whose output the author reviews (and which CI reformats).
-- **Abstraction verdict so far:** `SuggestedFix`/`FixOp` absorbed the delete-shaped fix and the blueprint channel **unchanged** — the only new wiring was one planner function + one builder-loop call. The remaining stress (position-preserving rename, array-of-tables addressing) is Phase C's to produce.
-
-**CHECKPOINT C — `strip-namespace` rename-mechanics spike (2026-07-07, step-2 Phase C.1): the gate opens.**
-
-The spike answered both gating questions in favor of building the rule, and — unexpectedly — the scary one dissolves entirely:
-
-- **Position-preserving rename is achievable.** tomlkit's `Container._replace(old_key, new_key, item)` renames a `[pipe]` sub-table key **in place**: it does `self._body[idx] = (new_key, value)` and `value.invalidate_display_name()`, so the renamed table keeps its position among siblings, its leading standalone comment and trailing inline comments, and re-renders the header with correct quoting (`[pipe."greetings.hello"]` → `[pipe.hello]`). The old `feature/Bundle-fixer` reordering bug came from `del` + re-add (append semantics send the pipe to the bottom); `_replace` sidesteps it. Verified end-to-end in the **full runtime context** — after `Pipelex.make()` + a real `validate_bundle`, serialized through `format_mthds` (no syntax diagnostics), then re-validated VALID — plus idempotence (re-apply skips: key absent) and collision suppression (bare code already declared → skip). The single wart: `_replace` is a tomlkit **private** method; a golden byte-compare test is the CI tripwire if a tomlkit bump changes its semantics (pin is `tomlkit>=0.13.2`). `format_mthds` does not reorder tables, so no upstream ordering primitive was needed — dissolving the Phase-C exploration note (item 2 of [deferred-checkpoint-a-prime-review-items.md](deferred-checkpoint-a-prime-review-items.md)).
-
-- **The array-of-tables addressing gap NEVER needs crossing** — this is the decisive finding, and it inverts the plan's premise. The plan assumed `strip-namespace` must rewrite every internal reference (`steps[].pipe`, `branches[].pipe`, …) to the renamed pipe, and that addressing items inside arrays would force a `FixOp.table_path` extension. Two empirical facts collapse that whole line of work: **(1)** a same-domain **qualified** reference (`greetings.hello`) already resolves to the bare pipe `hello` in domain `greetings` (pinned by validating a bundle whose `steps[].pipe` uses the qualified form against a bare declaration → VALID); **(2)** **no** controller reference field runs a snake_case check — only the pipe-declaration keys (`validate_pipe_keys`) and `main_pipe` (`validate_main_pipe_syntax`) do. So the *only* things that make a same-domain-dotted bundle invalid are the **declaration key** and (if the author over-qualified it) **`main_pipe`**. Fixing those — a rename of the `[pipe]` key and a root `set_key` — makes the bundle valid; the `steps[].pipe` references keep resolving untouched (leaving them qualified is a style nit, not a validity error, and normalization is a wave-2 lint concern per D4). **`FixOp.table_path: list[str]` stays unchanged; no index segments, no new op kind.**
-
-- **Architecture: the same Phase B pattern, no blueprint needed.** `INVALID_PIPE_CODE_SYNTAX` is raised in a `mode="before"` validator, so the blueprint never constructs and `collect_pipe_references()` is unavailable — but since references need no rewrite, the planner needs only the offending code + stripped code + which site (pipe key vs `main_pipe`), all rideable on a typed exception exactly as `NativeConceptRedeclarationError` carried `concept_code` in Phase B. No planner→blueprint access, no message matching.
-
-- **Verdict: GO** (Louis confirmed 2026-07-07) — **implemented and landed.** Rationale: the mechanics gate is clean, the abstraction holds **unchanged** (the strongest possible verdict is proving `RENAME_TABLE_KEY` end-to-end rather than declaring it unproven), and the implementation is small and follows Phase B. The rule's niche trigger (a quoted-dotted declaration `[pipe."domain.code"]`, typically machine-generated) is a minor concern for an opt-in fix that costs nothing when not triggered.
-
-**CHECKPOINT C outcome — `strip-namespace` landed:**
-
-- **Enrichment = typed raise + structural unwrap, no message matching** (the Phase B pattern). `InvalidPipeCodeSyntaxError(ValueError)` carries `offending_code` + `stripped_code`, raised at `validate_pipe_keys` / `validate_main_pipe_syntax` **only when safely strippable** (the `_strippable_same_domain_pipe_code` gate: prefix == own `domain`, valid snake_case bare tail, and for a declaration no collision with an existing bare key). Both validators gained an `info: ValidationInfo` param to read `domain` from `info.data` (field order guarantees `domain` is validated first). The categorizer unwraps structurally and sets `stripped_pipe_code`, with `pipe_code` discriminating the two raise sites (offending dotted key for a rename; `None` for `main_pipe`, read from `loc`). Bare-`ValueError` codes (malformed, cross-package) still flow through the message-matching categorizer → `INVALID_PIPE_CODE_SYNTAX` without `stripped_pipe_code` → unfixable.
-- **`RENAME_TABLE_KEY` is the last op kind, now proven.** The applier implements it via tomlkit's position-preserving `Container._replace` (reached through `_container_of`, since a `Table`'s dict facade doesn't expose it), with guarded skips on key-absent and collision. `main_pipe` reuses the existing root `SET_KEY`. `new_key` joined `_fix_fingerprint` (deferred item 1b closed).
-- **Abstraction verdict: `SuggestedFix`/`FixOp` absorbed the rename-shaped fix UNCHANGED.** No wire-model change (no `table_path` widening, no new op kind — `RENAME_TABLE_KEY` was already on the enum), only its applier implementation + one planner branch + one enum property + one error-data field. This completes the wave-1 stress test: multi-op (Phase A), delete-shaped + blueprint channel (Phase B), and rename-shaped (Phase C) all rode the abstraction without bending it.
-- **The one wart: reliance on tomlkit's private `Container._replace`.** It is tomlkit's own internal position-preserving primitive (what `__setitem__` uses to re-home an existing key); the public API only offers `del` + re-add, which appends to the bottom. The golden byte-compare test (`test_fix_applier_strip_namespace.py`) is the CI tripwire if a tomlkit bump changes its semantics (pin is `tomlkit>=0.13.2`).
-- **Deviation from the plan's literal C.2 tasks (recorded):** the plan expected reference-rewrite ops driven by `collect_pipe_references()` and an array-of-tables addressing decision. Both were dropped: the C.1 spike proved same-domain qualified refs resolve, so references need no rewrite, and `collect_pipe_references()` is unavailable anyway (the blueprint aborts construction in a `mode="before"` validator). The fix strips only the two snake_case-enforcing sites.
-
-### Step-2 exit — abstraction verdict (CHECKPOINT 1)
-
-This is the gate the human-CLI step (master-plan step 5) reads. It consolidates the per-phase verdicts above into one statement.
-
-**Verdict: `SuggestedFix`/`FixOp` survived every wave-1 fix shape with no structural change.** Step 2 deliberately added rules of four different *shapes* to stress the wire model before any human sees it; each rode the existing abstraction:
-
-- **Multi-op, in-place table sync** (`sync-controller-inputs`, Phase A) — the first fix emitting more than one op (a `set_key` per added/changed variable + a `delete_key` per extraneous one). Rode `FixOp` unchanged. The one wire-level change in the *entire* step happened here and is a *value-type* widening, not a shape change: `TomlValue` (the type of `FixOp.value`) went from `TomlScalar` to `TomlScalar | dict[str, TomlScalar]`, so a single op can carry a whole inline-table mapping for the no-`inputs`-table case. `FixOp`'s fields, `SuggestedFix`'s fields, and the `table_path: list[str]` addressing were untouched.
-- **Delete-shaped, on a new channel** (`strip-native-concept-redecl`, Phase B) — the first blueprint-channel fix and the first with a populated `SuggestedFix.source`. Rode the abstraction unchanged; the only new wiring was one planner function plus one call in the blueprint loop of `build_validation_error_items`. `DELETE_KEY` on `["concept"]` covered every authoring form with no new op kind.
-- **Rename-shaped, position-preserving** (`strip-namespace`, Phase C) — exercised the last unexercised op kind, `RENAME_TABLE_KEY` (on the enum since the spike). It gained its applier implementation + `new_key` joined the loop fingerprint; no wire-model change. **The array-of-tables addressing extension the plan feared was never needed:** same-domain qualified refs (`steps[].pipe = "domain.code"`) keep resolving, and only declaration keys + `main_pipe` enforce snake_case, so the fix touches only those two sites — no `table_path` index segments, no new op kind.
-
-So the human-CLI gate (master-plan step 5, bar 1 — "the abstraction has been stress-tested by rules of *different shapes* … so the wire shape and the `description` wording are known-stable before humans see them") **is met.** The wire shape is frozen for wave 1 modulo the additive `TomlValue` widening above; `description` stays a one-line human/agent string across all four rules.
-
-**Warts carried forward** (not abstraction failures — honest caveats for the next steps):
-
-- **`RENAME_TABLE_KEY` relies on tomlkit's private `Container._replace`** (the public API only offers `del`+re-add, which appends to the bottom and reintroduces the old branch's reordering bug). Mitigated by the golden byte-compare test as a CI tripwire on a tomlkit bump; pin is `tomlkit>=0.13.2`.
-- **Canonical whole-file output** (Phase A′): the applier no longer preserves untouched bytes surgically — `serialize_and_format` reflows the whole file to canonical MTHDS style via `pipelex_tools.format_mthds`. Correct for a fix tool, a no-op on already-formatted files. The `pipelex_tools` stub/runtime `__all__` drift is worked around with a `TYPE_CHECKING` guard (upstream fix pending — [deferred-checkpoint-a-prime-review-items.md](deferred-checkpoint-a-prime-review-items.md) item 1).
-- **Comment-reflow on `DELETE_KEY`**: a standalone comment sitting on the *deleted* element's leading line reflows onto the successor (tomlkit trivia). Comments on untouched content are preserved. Acceptable for author-reviewed, CI-reformatted output.
-- **Loop maturity**: the source/file guard is exercised live (Phase B), but real multi-file targeting (populate `source` at every raise site; derive `is_single_file` from resolved dirs) is still step 3 (deferred items 0, 1). Two Phase-C behaviors — a one-rename-per-iteration convergence cap and the `main_pipe`-to-nonexistent-pipe strip — are deferred design tradeoffs, not bugs ([deferred-checkpoint-c-review-items.md](deferred-checkpoint-c-review-items.md)).
-
-**strip-namespace decision: GO — shipped.** The stretch rule landed and `RENAME_TABLE_KEY` is proven end-to-end; recorded as the step-2 exit criterion in the master plan.
-
-**Step-2 final review (2026-07-08).** An unanchored `/code-review` sub-agent (no plan/design context, diff pointer `5e62bd43c..HEAD` only) swept the whole step-2 diff and surfaced **one confirmed correctness bug**, fixed immediately (silent data loss, not a design tradeoff — so fixed, not deferred): `_rename_key_in_place` renamed only the **first** out-of-order sub-table holding the dotted key. A pipe whose header `[pipe."d.x"]` and whose block `[pipe."d.x".inputs]` straddle an intervening `[concept]` section carries the same dotted key `d.x` in *two* of the `OutOfOrderTableProxy`'s sub-tables, so the rename orphaned the pipe's `.inputs` under a phantom, still-invalid dotted key **while reporting the op APPLIED** — the file was mutated and left unfixable (the bare code now collides, so a re-strip is refused). Fix: rename in *every* chunk holding the key (the `DELETE_KEY` path was already safe — it uses tomlkit's public `__delitem__`, which removes from all chunks). Pinned by `test_rename_carries_nested_subtable_across_interleaved_chunks` (offending pipe with its own nested block sub-table split across chunks; the pre-existing interleaved fixtures never gave the offending pipe a nested sub-table, so this shape was uncovered). Everything else the review checked (categorizer `main_pipe` gating, the `StuffSpec.to_bundle_representation` refactor, `_expected_inputs_for_fix` flexible-type carve-out, the cross-file collision guard, enum match/case exhaustiveness, `_as_tomlkit_value`) it verified sound or already-documented. `make agent-check` + full `make agent-test` green after the fix.
-
-### Phase 2 — CLI + docs + changelog
-
-`pipelex-agent fix bundle` + `pipelex fix` commands, two-stream output, docs page (`docs/`), CHANGELOG entry ([Unreleased]). Update the `mthds-fix` skill guidance is wave-2 territory (plugins repo), but note the hand-off. Sequencing inside this phase is deliberate — agent command first, human CLI (`pipelex fix` + the `💡 Suggested fix` line in `validate`) last and gated on rule breadth + the apply command existing; see the master plan's "Sequencing doctrine".
-
-**CHECKPOINT 2**: wave 1 shippable. `make agent-check` + `make agent-test` green. Record the hand-off list for wave 2.
-
-### Wave 2 (separate plan, not scoped here)
-
-Protocol promotion (protocol-spec sections, a cross-repo spec-suite arm, schema sync to mthds / mthds-js / mthds-python), API `POST /fix`, MCP `mthds_fix` tool, VS Code `CodeActionProvider` (first code action in the LSP — keyed on `diag.code = error_type`, fix payloads already ride the validation backends), `mthds-fix` / pipelex-plugins skill updates, pruning rules as lint warnings with attached fixes.
-
-## Salvage map from `feature/Bundle-fixer`
-
-Worth harvesting (as reference, reimplemented under TDD): the `needed_inputs()` sync semantics and diff-message construction; the last-step-output derivation incl. multiplicity override; the `_should_strip` namespace guard (strip only when prefix == own domain AND bare code exists locally); the reachability BFS + concept transitive closure (for wave-2 pruning lints). Not worth harvesting: the orchestrator (parallel validation pipeline), the single-pass model, the inline-table rebuild, the unpopulated `line` field, the pyright blanket suppressions.
diff --git a/wip/autofix/validation-error-reporting-plan.md b/wip/autofix/validation-error-reporting-plan.md
deleted file mode 100644
index 4a21adc4e..000000000
--- a/wip/autofix/validation-error-reporting-plan.md
+++ /dev/null
@@ -1,123 +0,0 @@
-# Validation-error reporting & surfacing — improvement plan
-
-> **ARCHIVED — track COMPLETE (2026-07-09).** All phases done; the only open item is the release-gated error-QA corpus regen in our cross-repo spec suite (folded into the autofix step-6 release train). The durable record now lives in the code, the wording-pinning tests (`test_validation_render.py`, `test_validate_bundle_error_format.py`, `test_handle_pipe_errors_suffix.py`, `test_fix_loop_bail.py`, and the `*_enrichment.py` suites), the CHANGELOG `[Unreleased]` entries, and that corpus. The `wip/validation-reporting/` before/after captures + `phase0-inventory.md` + `writeup.html` referenced throughout were dogfooding artifacts, removed at archival — recoverable from git history (`d4fc4749a`, `4911b6b90`). Archived here from the worktree-root `TODOS.md`.
-
-## Goal (use this as the /goal)
-
-Perfect, clear validation-error reports and fix reports on every surface: every validation error must state — in MTHDS author syntax, never internal repr — what is wrong, where it is, and exactly what to write to fix it; and every surface (human `pipelex validate` / `pipelex fix`, agent `pipelex-agent validate` / `pipelex-agent fix` in markdown and JSON, the API `/validate` payload) must present that explanation at full strength, with an actionable next step, verified hands-on against the internal bad-bundles playground.
-
-## Where this work lives
-
-- Branch/worktree: `feature/Autofix` in `_autofix/` (this directory). The autofix track's steps 1–5 are done (rules, loop, agent + human `fix bundle` CLIs, `💡 Suggested fix:` lines in validate); step 6 (release train) is pending — see `master-plan.md` and `step5-human-cli-surfacing.md` (this folder). This plan is a follow-on quality track born from dogfooding the playground.
-- Related deferred items to fold in opportunistically: `deferred-checkpoint-e-review-items.md` (this folder — validate footer over-count; cross-CLI duplications) and the step-5 doc's explicitly-deferred "richer still-invalid markdown for the agent command".
-
-## The test bed (built 2026-07-09, session before this plan)
-
-An internal **bad-bundles playground** — deliberately broken `.mthds` bundles, one scenario per directory, covering every autofix rule plus an unfixable-collision safety case and a kitchen-sink combo. Its `README.md` documents every scenario and the exact commands; `_pristine/` holds backups and `./restore.sh` re-breaks everything, so it can be exercised repeatedly. **This is where every before/after comparison in this plan gets verified.** Its location is recorded at workspace level.
-
-Run everything from that repo's root with its own venv (the user fixed it; it has the `fix` command):
-
-```bash
-cd <bad-bundles playground repo>
-source .venv/bin/activate
-export PIPELEX_NO_DECK_NOTICE=1
-pipelex validate bundle bad_bundles/01_wrong_sequence_output/bundle.mthds
-pipelex-agent validate bundle bad_bundles/01_wrong_sequence_output/bundle.mthds
-pipelex fix bundle bad_bundles/01_wrong_sequence_output/bundle.mthds --diff
-./bad_bundles/restore.sh
-```
-
-## Confirmed diagnosis (from the dogfooding session — reproduce on scenario 01)
-
-Comparing `pipelex validate`, `pipelex-agent validate`, and `pipelex fix --diff` on `bad_bundles/01_wrong_sequence_output` showed the three surfaces are *consistent* (one engine, zero drift) but the explanation quality is carried almost entirely by the `💡 Suggested fix:` line — the core message is weak, and the agent surface doesn't even show that line as prose. Specifics, with pointers:
-
-1. **Messages leak internal repr instead of author syntax.** The sequence-multiplicity raise site (`pipelex/pipe_controllers/sequence/pipe_sequence.py:114-118`) says `declares output multiplicity=None, but the last step ... has output multiplicity=True` — Python internals (`None` = single, `True` = list). An author writes `StoryIdea` vs `StoryIdea[]`. The message never shows the solution.
-2. **The `(required: [...], provided: ...)` suffix is misleading on multiplicity errors.** Appended generically in `categorize_pipe_validation_with_libraries_error` (`pipelex/core/pipes/handle_pipe_errors.py:193`) by raw-repr-ing `required_concept_codes` (a Python list) and `provided_concept_code` (a string). For `INADEQUATE_OUTPUT_MULTIPLICITY` the concepts are identical by definition (the concept check passed just above), so it prints two same-looking refs — and the list-repr brackets `['story_studio.StoryIdea']` accidentally mimic MTHDS `[]` multiplicity syntax. It reads like a multiplicity statement it is not making.
-3. **The correct solution string exists at the raise site and is thrown away by the message.** `expected_output_ref` is computed as exactly `"StoryIdea[]"` (`pipe_sequence.py:86-90`, via `StuffSpec.to_bundle_representation`) but flows only into the fix-planner enrichment (the `💡` line). Any surface showing only `message` (agent top line, API consumers) gets the `None`/`True` riddle.
-4. **The agent markdown under-delivers on the workspace's own "format follows consumer" doctrine.** `pipelex-agent validate` markdown = a title, a *truncated* top message (drops the required/provided detail the item has), a boilerplate hint ("Check the validation_errors array for specific issues", from `pipelex/pipeline/exceptions.py:92`), then a raw JSON dump of `validation_errors`. The per-item prose rendering the human renderer got in step 5 (titled error, field lines, `💡 Suggested fix:` line, actionable footer naming the fix command) never got mirrored to the agent markdown. Doctrine reference: the workspace's "Surface output conventions" and the MTHDS protocol spec's "Presentation vs contract".
-5. **The human footer is the model to generalize:** `💡 N of these errors can be fixed automatically — run: pipelex fix bundle <path>` — "a hint needs an action behind it". The agent surfaces have no equivalent (neither validate nor the hint text), even though the payload carries `suggested_fix` with `safety: "safe"`.
-
-## Key code map
-
-| Concern | Where |
-| --- | --- |
-| Raise sites of pipe validation errors (message wording) | `pipelex/pipe_controllers/sequence/pipe_sequence.py` (multiplicity + concept + taint); sibling controllers/operators under `pipelex/pipe_controllers/`, `pipelex/pipe_operators/` |
-| Error-type enum + `is_*` properties | `pipelex/core/pipes/exceptions.py` (`PipeValidationErrorType`, `INADEQUATE_OUTPUT_MULTIPLICITY` at :108) |
-| Categorizer that builds error data + appends the required/provided suffix | `pipelex/core/pipes/handle_pipe_errors.py:180-209` |
-| Shared items builder (single source of truth; attaches `suggested_fix`) | `pipelex/pipeline/validation_errors.py:24` (`build_validation_error_items`) |
-| Fix planner (rules, descriptions, `KNOWN_FIX_CODES`) | `pipelex/pipeline/fixes/planner.py` |
-| Fix loop + result model | `pipelex/pipeline/fixes/fix_loop.py` |
-| Human validate/fix rendering (items renderer, 💡 lines, footer) | `pipelex/cli/error_handlers.py` (`display_validation_error_items`, `handle_validate_bundle_error`); `pipelex/cli/commands/fix/` (`_fix_core.py`, `_diff_sandbox.py`) |
-| Agent CLI output plumbing (markdown/JSON two-stream, error envelope) | `pipelex/cli/agent_cli/commands/agent_output.py` (`_render_error_markdown` at :289); `pipelex/cli/agent_cli/commands/fix/`; agent CLI conventions in `pipelex/cli/agent_cli/CLAUDE.md` |
-| Agent/API fix markdown renderer (CLI-free) | `pipelex/pipeline/fixes/fix_render.py` (`format_fix_markdown`) |
-| API error envelope (`ValidateBundleError.to_error_report`, boilerplate hint) | `pipelex/pipeline/exceptions.py` (hint at :92, report at ~:154) |
-| Tests pinning current wordings/renderings | `tests/unit/pipelex/cli/test_validate_suggested_fix_rendering.py`, `tests/unit/pipelex/cli/commands/fix/test_fix_bundle_human_format.py`, `tests/integration/pipelex/cli/test_fix_bundle_human.py`, `tests/integration/pipelex/pipeline/test_fix_convergence_loop.py`, e2e under `tests/e2e/pipelex/cli/` and `tests/e2e/agent_cli/` |
-| Cross-repo wording corpus (regen after wording changes) | The generated error-explanation QA corpus in our cross-repo spec suite, freshness-tested against the live API |
-
-## Guardrails
-
-- **Presentation vs contract:** wordings, markdown shape, exit codes, and hints are presentation — free to improve. The structured fields (`is_valid`, `error_type`, `category`, `suggested_fix`, `validation_errors[]`) are the machine contract — additive changes only, and any addition ripples to the API report and the cross-repo spec-suite fixtures (step-6 already owes a `suggested_fix` fixture regen; coordinate, don't collide).
-- **One engine, every surface:** improvements go into the message at the raise site or the shared items builder/renderers — never into per-surface private wording that can drift.
-- Wording changes WILL break string-pinning tests; update the pins in the same change (that's the point of them).
-
-## Phase 2 design notes (gathered from reading the renderers — not yet implemented)
-
-The intended architecture for Phase 2 (agent surfaces catch up), converged after reading the code:
-
-- **Add a shared, CLI-free markdown renderer** for validation-error items — e.g. `format_validation_errors_markdown(items, *, bundle_path, fix_command, header)` in a non-CLI module (put it beside `format_validate_markdown` in `pipelex/pipeline/validation_render.py`, or in `validation_errors.py`). It mirrors the *structure* of the human `display_validation_error_items` (`cli/error_handlers.py:266-328`) but emits markdown (`**bold**`/backticks) instead of Rich markup: group by category, per item render humanized `error_type` title + identity fields (Pipe/Concept/Domain/Field/Missing*/Variables) + the message + `💡 Suggested fix: <description>` + source, then a fix-aware footer. Reuse it for (a) agent validate markdown, (b) agent fix still-invalid markdown (`fix_render.py`), (c) API `rendered_markdown` in Phase 3.
-- **Agent validate error path**: mirror the human `handle_validate_bundle_error`. Cleanest is a dedicated `agent_error_validate_bundle(exc, *, bundle_path, library_dirs, allow_signatures)` (in `agent_cli/commands/agent_output.py`) that, for **markdown**, prints the prose (title `# Bundle validation failed`, bundle path, prose items via the shared renderer, fix-aware footer naming `pipelex-agent fix bundle <path>`) and for **JSON** emits the *exact same envelope as today* (`_agent_error_json` with `is_valid`/`bundle_path`/`validation_errors`). Call it from `validate/bundle_cmd.py:194` and `validate/method_cmd.py:119` in place of the generic `agent_error(...)`. **The JSON contract must not change** — hooks pin `--format json` and branch on structured fields (`mthds-plugins/docs/mthds-agent-output-audit.md`).
-- **Fix-aware footer (disease E)**: replace the boilerplate hint `"Check the validation_errors array for specific issues"` (`ValidateBundleError.user_action` at `pipeline/exceptions.py:90-93`) *for the agent markdown presentation only* — the footer names `pipelex-agent fix bundle <path>` when N items carry a `safe` suggested_fix, mirroring the human footer (`error_handlers.py:367-388`). Keep `user_action.detail` as the JSON `hint` (or improve it too — it's presentation, not contract).
-- **Truncated top-line + pydantic leak (disease C)**: the agent prose body shows the *items*, not `exc.message`, so the pydantic `Value errors: '<field>': Value error,` leak won't appear in prose. To also clean the JSON `message` field, fix it at the source where `ValidateBundleError.message` is built from the pydantic `ValidationError` — `pipeline/validate_bundle.py:~142` `_translate_to_validate_bundle_error` (summarize from items: count + first clean message). `message` is presentation, safe to improve; verify no hook branches on it.
-- **Fix still-invalid markdown (`fix_render.py` `format_fix_markdown`)**: render `remaining_errors` (already `ValidationErrorItem`s) as prose via the shared renderer with their 💡 lines — this is the step-5 deferred "richer still-invalid markdown".
-- Tests: agent-CLI unit + e2e under `tests/e2e/agent_cli/`; keep the JSON snapshot contract byte-stable; only the markdown stream changes.
-
-## Phases
-
-### Phase 0 — Cold-start orientation — DONE
-
-- [x] Read this file top to bottom; skim `wip/autofix/step5-human-cli-surfacing.md` (design decisions D5.4/D5.5 explain the human renderer) and `pipelex/cli/agent_cli/CLAUDE.md` (two-stream output conventions).
-- [x] Run the playground: `./bad_bundles/restore.sh`, then all surfaces on scenario 01 (commands above) and capture the current outputs as the "before" baseline. Captured **all** scenarios × five surfaces → `wip/validation-reporting/before/` (regen: `scratchpad/capture_before.sh`).
-- [x] Sweep the remaining scenarios (02–10) across the surfaces and note, per scenario, every message that fails the bar "states the problem AND the concrete author-syntax action". → **inventory** (diseases A–F, per-scenario verdict table, Phase 1 scope) — was captured in `phase0-inventory.md` (removed at archival); its findings are summarized in "Confirmed diagnosis" above and the Phase 0 status-log entry below.
-
-### Phase 1 — Message quality at the source (the engine, so every surface benefits) — DONE
-
-- [x] Rewrite the sequence multiplicity-mismatch message (`pipe_sequence.py:114`) in author terms using the already-computed `expected_output_ref` and a `to_bundle_representation` rendering of the declared output. Now: *"the sequence 'brainstorm' declares its output as 'StoryIdea', but its last step 'gen_ideas' yields 'StoryIdea[]'. Update the sequence's output to 'StoryIdea[]' (or change the last step)."*
-- [x] Rewrite the `input_stuff_spec_mismatch` message (`pipe_abstract.py:361-373`) — the worst offender (4 lines of `Concept(...)`/`PresenceMarker` repr) → *"In pipe 'make_recipe', input 'dish' is declared as 'Number' but its step needs 'Text'. Update the input to 'Text'."* Removed the `mismatch_details` machinery.
-- [x] Fix the required/provided suffix (`handle_pipe_errors.py:192`): suppress it for multiplicity errors (new enum property `is_inadequate_output_multiplicity`), and for the cases where it stays, render author-syntax refs joined without Python list-repr brackets.
-- [~] Audit every other pipe/blueprint validation message for the same diseases. Done: the messy ones (A) are the two above. **Disease F (`invalid_pipe_code_syntax` "Must be in snake_case" on a dotted code) DEFERRED** — low value (the 💡 line already says "Strip the same-domain prefix"), and it would touch the well-tested categorizer/message contract (typed error categorizes structurally, but 4 test files pin the wording). Native-redecl / missing-input / concept-mismatch messages already meet the bar. Disease C (pydantic top-line leak) is Phase 2 (summarize-from-items).
-- [x] Update string-pinning tests: new `tests/unit/pipelex/core/pipes/test_handle_pipe_errors_suffix.py` (suffix suppression/reformatting), strengthened `test_pipe_sequence_output_multiplicity.py` (author-syntax pin + no repr leak), strengthened `test_controller_inputs_enrichment.py` (stuff-spec message pin). `make agent-check` green; targeted suites green (core + pipe_controllers + pipes + pipeline = 2010 passed/1 pre-existing xfail; cli = 820 passed).
-- [x] **CHECKPOINT 1** — re-captured all scenarios → `wip/validation-reporting/after/`. Exactly 01/02/03/08 changed (all disease-A/B); diseases A+B markers now **absent** from every after-capture; verified cascade (02: `Idea`→`Idea[]`) and multi-file (08: `Quote`→`Quote[]`) render correctly. Good handoff point.
-
-### Phase 2 — Agent surfaces catch up to the human renderer (markdown presentation) — DONE
-
-- [x] `pipelex-agent validate` markdown: renders `validation_errors` items as prose (humanized `error_type` title, message, per-field lines, `💡 Suggested fix:` line), not a JSON dump. New shared CLI-free renderer `format_validation_error_items_markdown(items)` in `pipeline/validation_render.py` mirrors the human `display_validation_error_items` structure; wired via new dispatcher `agent_error_validate_bundle(exc, *, bundle_path, library_dirs, allow_signatures)` in `agent_output.py`, called from `validate/bundle_cmd.py` + `method_cmd.py`. JSON stream kept byte-identical (verified: all 10 scenarios' AGENT-json capture unchanged).
-- [x] Truncated/leaky top-line: the markdown prose shows the *items*, not `exc.message`, so the pydantic `Value errors: '<field>': Value error,` leak (disease C) is **gone from the markdown surface** (verified 05/06/09/10). **Deferred to Phase 3:** cleaning the JSON top-level `message` field at the source (`_translate_to_validate_bundle_error` / interpreter) — doing it CLI-only would create CLI≠API drift, so it belongs with Phase 3's "API carries improved messages" (one-engine). JSON `message` intentionally left as-is here to keep the JSON contract byte-stable.
-- [x] Boilerplate hint (disease E) replaced for the **markdown** presentation with a fix-aware footer: when N items carry a suggested fix, names the exact `pipelex-agent fix bundle <path>` command (with `-L`/`--allow-signatures` echo, via shared `build_fix_command`); else "no automatic fix" pointer. JSON `hint` kept unchanged ("Check the validation_errors array…") per the contract.
-- [x] `pipelex-agent fix` still-invalid markdown: new `format_fix_still_invalid_markdown(result, *, bundle_path)` in `fix_render.py` renders applied fixes + bail reason + remaining errors as prose (with 💡 lines) + context tip; wired in `fix/bundle_cmd.py` (markdown branch), JSON `FixBundleError` envelope unchanged. (The step-5-deferred "richer still-invalid markdown".)
-- [x] Human `handle_validate_bundle_error` refactored to use the shared `build_fix_command` (drift reduction; output byte-identical — verified HUMAN-validate capture unchanged across all 10).
-- [x] Tests: new `test_validate_bundle_error_format.py` (dispatcher: markdown prose + fix-aware footer, JSON envelope byte-stable); strengthened `test_validation_render.py` (shared items renderer + `build_fix_command`), `test_fix_render.py` (still-invalid prose + tip branches), `test_fix_format.py` (command-level markdown still-invalid). `make agent-check` green; cli+pipeline+e2e suites green (2054+ passed). Hook JSON contract untouched (see audit note below).
-- [x] **CHECKPOINT 2 CLEARED** — re-captured all 10 scenarios × 5 surfaces → `wip/validation-reporting/after/`. Per-section diff vs Phase-1: **AGENT validate markdown CHANGED on all 10** (JSON dump → prose), **AGENT validate json SAME on all 10** (contract preserved), **HUMAN validate + HUMAN fix --diff SAME on all 10** (footer refactor byte-stable), **AGENT fix markdown CHANGED only on 09** (the sole still-invalid case). No `Value errors:` / `multiplicity=None` / json-fence leak in any markdown surface. Good handoff point.
-
-### Phase 3 — JSON / API parity and the fix-report surfaces — DONE
-
-- [x] **Carry-over from Phase 2 (disease C, JSON `message`):** cleaned the leaky top-level `message` at its **source** — a new `_summarize_bundle_validation_message(...)` in `pipeline/exceptions.py`, called from `ValidateBundleError.__init__`, replaces the raw pydantic/interpreter top-line with a clean summary derived from the per-error item messages (the lone item message when there's one categorized error; `N validation errors (first: …)` when several). Falls back to the raw message only when there is NO categorized data (a parse-level failure whose raw message is authoritative — e.g. TOML syntax; keeps the pipelex-api `"TOML" in body["message"]` pin green). One engine → **every** surface benefits (agent JSON `message`, API `InvalidReport.message`/report `detail`), not CLI-only. Verified live on the playground: the JSON `message` is now clean on all 10 scenarios (the *only* line that changed; the human/agent-md/fix surfaces are byte-identical). No hook branches on `message`.
-- [x] API `/validate` parity: `to_error_report` carries the improved messages verbatim (the summary rides `report.message` → `InvalidReport.message`; a produced verdict stays a 200/`is_valid` body — no contract change). **Unified** `render_invalid_validation_markdown` (the API `rendered_markdown` invalid-arm renderer, `validation_render.py`) to reconstruct the typed items and delegate to the shared `format_validation_error_items_markdown` — so the API markdown now carries per-item `💡 Suggested fix` lines and is structurally identical to the agent/human prose (was the older dict-based `## Errors (N)` list with no fix lines). The redundant top summary line was dropped (matches the agent CLI prose surface; no CLI-command footer since an API consumer applies fixes via the structured `suggested_fix` ops). `rendered_markdown` is presentation, never the contract.
-- [x] Fix reports: reviewed all `bail_reason` wordings against the message bar. The one that leaked internal repr — the no-progress bail dumping raw `_fix_fingerprint` strings (`fix_loop.py`) — now names the re-proposed fix's author-facing **description** instead (`"no progress: the same fix was re-proposed without changing the bundle (<description>); its target could not be applied as written — fix the remaining errors manually"`). The other bail reasons (out-of-scope, cross-file collision, max-iterations) already met the bar. The `--diff` preview runs the **real** loop against a sandbox copy and reuses `_render_fix_result(preview=True)`, so preview wording matching the real run is structurally guaranteed (no change needed). The still-invalid "still shows a suggested fix that was not applied" tip already meets the bar.
-- [x] Additive structured fields: **decided NOT to add any.** The `suggested_fix` ops already carry the machine-actionable data (e.g. `set_key output = "StoryIdea[]"`) and the message states it in author syntax, so an `expected_output_ref` wire field would be redundant and would expand the contract (changelog + cross-repo corpus regen) for no concrete consumer — against the "smallest correct surface, no speculative additions" guardrail.
-- [x] **CHECKPOINT 3** — this doc updated (below). Tests updated in the same change: retargeted `test_validate_bundle_category_framing.py` (the `.message` framing pin → a clean-summary invariant across all four entry points, since the category-framing prefix was subsumed by the structured items), `test_validation_render.py` (invalid-arm prose shape + 💡 line), `test_fix_loop_bail.py` (no-progress wording). `make agent-check` green; targeted suites green (pipeline + cli + core + fixes + e2e agent_cli = 1798 passed).
-
-### Phase 4 — Full-sweep QA and closeout — DONE (cross-repo corpus regen release-gated)
-
-- [x] Restored the playground and re-captured every scenario × every surface → `wip/validation-reporting/after/`. **The only per-scenario delta vs Phase 2 is the JSON `message` line (now clean) on all 10**; human validate, agent-md, human fix `--diff`, and agent fix are byte-identical — zero regressions. Zero leak fragments (`Value errors:` / `multiplicity=None` / `Could not load …` / json-fence) remain in any capture. Goal-bar spot-check on scenario 03 (the Phase-0 worst offender): human/agent-md/agent-json all state the problem AND the concrete author-syntax action; scenario 09's collision bail renders the remaining error as prose + the actionable bail reason + tip.
-- [ ] **Regenerate the error-QA corpus in our cross-repo spec suite — DEFERRED, release-gated (belongs to step 6).** Every invalid-case fixture pins the old leaky top-line `message`; that suite's freshness guard asserts them byte-for-byte against the **live** `/validate`, and the suite pins a *released* pipelex — so the corpus can only be regenerated once these wordings ship. Coordinate with the step-6 `suggested_fix` fixture regen already owed (guardrail: "coordinate, don't collide"). The agent-CLI channel is unaffected (it already renders items via `format_validation_error_items_markdown`, ungated).
-- [x] Docs: CHANGELOG `[Unreleased]` gained the validation-error-reporting entries (author-syntax messages, agent prose rendering, clean summary message on every surface + API `rendered_markdown` 💡 lines, no-progress bail wording). The CLI docs (`docs/tools/cli/validate.md`, `fix.md`, `agent-cli.md`) describe the 💡 line / fix command / error envelope **generically and remain accurate** — no stale reprs were embedded, so no edits were needed. The bad-bundles playground's own `README.md` embeds no error-output strings (commands unchanged), so it needs no update.
-- [x] `make agent-check` green. `make agent-test` (full suite — run because the change touches the shared `ValidateBundleError` base) — see status log for result. Final status update below.
-
-## Status log
-
-- 2026-07-09 — **Phase 4 DONE — TRACK COMPLETE (cross-repo corpus regen release-gated to step 6).** Full-sweep re-capture confirms the only per-scenario delta vs Phase 2 is the now-clean JSON `message` on all 10 scenarios; every other surface byte-identical; zero leak fragments anywhere; goal bar met on every surface (spot-checked scenario 03, the Phase-0 worst offender, + scenario 09 collision bail). CHANGELOG `[Unreleased]` updated; CLI docs verified accurate as-is (no stale reprs embedded → no edits); `bad_bundles/README.md` unaffected. `make agent-check` green; **full `make agent-test` suite green**. Remaining follow-up = the release-gated error-QA corpus regen in our cross-repo spec suite (every invalid-case fixture pins the old leaky top-line; regenerate once these wordings ship, alongside step 6's owed `suggested_fix` fixture regen). All code changes UNCOMMITTED on `feature/Autofix`.
-- 2026-07-09 — **Phase 3 DONE (CHECKPOINT 3 cleared).** Disease C fixed at the source: new `_summarize_bundle_validation_message(...)` in `pipeline/exceptions.py`, called from `ValidateBundleError.__init__`, replaces the leaky pydantic/interpreter top-line (`Validation error(s): … Value errors: '<field>': Value error, …`, plus `Pipe validation failed:` / `Could not load … because of:` prefixes) with a clean item-derived summary — one engine, so the agent JSON `message` **and** the API `InvalidReport.message` both benefit; raw message kept as the fallback only when there's no categorized data (keeps the TOML-syntax pin green). API markdown unified: `render_invalid_validation_markdown` now delegates to the shared `format_validation_error_items_markdown`, gaining per-item 💡 lines (was a dict-based `## Errors (N)` list). No-progress fix bail_reason no longer dumps internal fingerprints — names the fix description instead. Decided against adding speculative structured wire fields (`suggested_fix` ops already carry the actionable data). Tests: retargeted `test_validate_bundle_category_framing.py` (framing pin → clean-summary invariant), updated `test_validation_render.py` (prose+💡) and `test_fix_loop_bail.py` (wording). `make agent-check` green; targeted suites green (1798 passed). **Full-sweep re-capture** (`wip/validation-reporting/after/`): the ONLY per-scenario delta vs Phase 2 is the JSON `message` line on all 10 (now clean); human/agent-md/fix surfaces byte-identical; zero leak fragments remain anywhere. NEXT = **Phase 4** (the cross-repo corpus regen is release-gated → deferred to step 6; docs + CHANGELOG; final agent-test).
-- 2026-07-09 — Plan written from the dogfooding session (playground built + three-surface diagnosis on scenario 01). No implementation started.
-- 2026-07-09 — **Phase 0 DONE.** Confirmed the step-5 code is present on `feature/Autofix` (came in via the `dev` merge `ec477700f`); demos venv points at this worktree, so code changes dogfood live. Captured every scenario × five surfaces to `wip/validation-reporting/before/`. Inventory in `phase0-inventory.md`: 6 diseases (A internal-repr messages, B misleading required/provided suffix, C pydantic top-line leak, D agent-md JSON-dump-not-prose, E boilerplate agent hint, F snake_case wording). Raise sites confirmed: `pipe_sequence.py:114` (multiplicity), `pipe_abstract.py:361-373` (stuff-spec-mismatch — worst), `handle_pipe_errors.py:192` (suffix). `StuffSpec.to_bundle_representation(relative_to_domain=…)` is the author-syntax renderer for Phase 1.
-- 2026-07-09 — **Phase 2 DONE (CHECKPOINT 2 cleared).** Agent surfaces now render prose. New shared CLI-free renderer `format_validation_error_items_markdown(items)` + `build_fix_command(executable, *, bundle_path, library_dirs, allow_signatures)` in `pipeline/validation_render.py` (mirror the human `display_validation_error_items` / footer). New dispatcher `agent_error_validate_bundle(exc, *, bundle_path, library_dirs, allow_signatures)` in `agent_output.py` (markdown prose + fix-aware footer; JSON envelope byte-identical) wired into `validate/bundle_cmd.py` + `method_cmd.py`. New `format_fix_still_invalid_markdown(result, *, bundle_path)` in `fix_render.py` wired into `fix/bundle_cmd.py` markdown branch (JSON `FixBundleError` unchanged). Human `handle_validate_bundle_error` refactored to the shared `build_fix_command` (byte-identical). Disease D (JSON-dump→prose) + E (boilerplate hint→fix-aware footer) cured on the markdown surface; disease C cured in markdown (items shown, not `exc.message`) — **JSON `message` cleanup deferred to Phase 3** (fix at source, one-engine). Tests: +1 new module (`tests/unit/pipelex/cli/agent_cli/test_validate_bundle_error_format.py`), strengthened `test_validation_render.py` / `test_fix_render.py` / `test_fix_format.py`. `make agent-check` green; cli+integration-pipeline+e2e suites green. Re-captured `wip/validation-reporting/after/` (regen script: `scratchpad/capture_after.sh` — runs human `pipelex` with `--no-logo`, strips banner/telemetry-DEBUG noise; demos venv points at this worktree so changes dogfood live). Per-section verification: AGENT-md CHANGED×10, AGENT-json SAME×10, HUMAN-validate/fix SAME×10, AGENT-fix-md CHANGED×1 (09 only). NEXT = **Phase 3** (JSON/API parity + the disease-C JSON-`message` carry-over at source; fix reports' `bail_reason` wording; consider additive structured fields).
-- 2026-07-09 — **Phase 1 DONE (CHECKPOINT 1 cleared).** Rewrote the two repr-leaking messages (A) at their raise sites + suppressed/reformatted the misleading suffix (B) in the categorizer (new `is_inadequate_output_multiplicity` enum property). Every surface benefits (one engine) — verified the agent JSON/markdown carry the new message with zero `multiplicity=None/True` or `(required: [` leaks. Deferred disease F (snake_case wording) — low value, categorizer/test-contract risk. C stays for Phase 2. Tests: +1 new module, 2 strengthened; `make agent-check` green, targeted suites green. before/after captures in `wip/validation-reporting/`. NEXT = **Phase 2** (agent `validate`/`fix` markdown → prose items + 💡 lines + fix-aware footer; fix the pydantic top-line leak C + boilerplate hint E). Code map: `agent_output.py` `_render_error_markdown` (~:289), `pipeline/exceptions.py:92` (hint), `fix_render.py` (still-invalid md).
diff --git a/wip/azure-only-deck/deferred.md b/wip/azure-only-deck/deferred.md
deleted file mode 100644
index 43adfedc1..000000000
--- a/wip/azure-only-deck/deferred.md
+++ /dev/null
@@ -1,68 +0,0 @@
----
-status: active
-item: L-260918-941a99
----
-
-# Deferred findings — Azure-only deck
-
-Findings raised during this campaign's reviews that are real but outside its scope. Each says what was seen, why it was not done here, and what doing it would involve.
-
-## Two inference error classes now have no raise site
-
-`LLMSettingsValidationError` (`pipelex/cogt/exceptions.py:251`) lost its only raise site when this campaign deleted `ModelDeck.final_validate` and its `_validate_llm_setting` helper — the dead validator that would have rejected the Azure deck's premium tier. `ImgGenSettingsValidationError` (`:255`) was already in that state before this campaign and has no raise site anywhere in the tree either.
-
-Both are still part of the documented error surface: `docs/errors/llm-settings-validation-error.md` and the generated identity snapshot carry them, and consumers outside this repository branch on `error_type`. Removing a class is therefore a wire change, needing `pipelex-dev generate-error-identity` and `generate-error-pages` and a changelog entry of its own, which is a different piece of work from shipping a deck.
-
-**Verified**: `grep -rn 'LLMSettingsValidationError' --include='*.py'` returns only the class definition; the same for `ImgGenSettingsValidationError`.
-
-**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 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 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.
-
-**Why no test catches it**: `tests/e2e/agent_cli/test_offline_run_dry.py` synthesises its cached payload *from the shipped kit deck*, and `test_primed_cache_specs_track_kit_deck_premium_alias` asserts that property deliberately. Every promoted handle is therefore present by construction, so no offline test can ever exercise version skew.
-
-**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 — resolved at the deck layer
-
-Raised 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`.
-
-**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
-
-Found by the round-3 verifier while establishing how the gateway catalog listings had gone stale since 2026-07-27. `make check` runs `update-gateway-models-quiet` and then `check-gateway-models` in the same target, so the checker validates output the same target has just rewritten and cannot fail. `check-gateway-models` is not in `make agent-check` at all, so an agent never runs it even in the form that could report something.
-
-That is why the listings drifted for months with every gate green, and why round 3 had to regenerate them by hand. It was not fixed here because it is a Makefile-wiring question about the drift regime rather than a deck change.
-
-**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 — resolved
-
-Raised 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.
-
-**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 3
-
-These 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. **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.
-
-**Unverified — nothing gates a preset against its model's fixed temperature** (official code review). Deleting `final_validate` removed the only code that could have caught the conflict this campaign had to find in review and fix by hand, and the boot-time membership check does not look at temperature. The next deck edit pointing a preset at a fixed-temperature model would reintroduce the warning storm with no gate going red. A unit test over the shipped deck, asserting each preset's temperature is compatible with its resolved model's `valued_constraints`, was the reviewer's suggestion. See also the entry above on the two error classes left with no raise site, which is the other half of that deletion.
-
-**Unverified — the variant parity guard is blind to choice defaults** (official code review). `extract_vocabulary` reads aliases, presets and waterfalls, and `extract_model_handles` collects from alias targets, waterfall entries and preset models, so `[llm.choice_defaults]` and the img-gen, extract and search choice defaults are invisible to both halves of the guard. A variant whose choice default named a retired handle, or diverged from the shipped deck, would pass every assertion.
-
-**Unverified — the retirement check reads backends the variant would never route through** (official code review). `list_declared_backend_handles()` unions the top-level tables of every `backends/*.toml`, including backends disabled by default and the bulk third-party catalogs. A handle retired from every backend the variant actually uses still passes as long as one unused file mentions it, which weakens what the README advertises as the way a parked deck goes stale.
-
-**Unverified — image fixture generation runs on the premium tier** (official code review). `gen-image-testing-img2img`, `synthesize-ui` and `synthesize-chart` were repointed to `@default-premium` (`gpt-image-2`, input 8.0 / output 30.0) and declare no `quality`, so they fall to the default on the most expensive image model in the deck. `gpt-image-1-mini` declares the same image inputs and would satisfy the img2img requirement these presets exist for.
diff --git a/wip/azure-only-deck/design.md b/wip/azure-only-deck/design.md
deleted file mode 100644
index 0251fab35..000000000
--- a/wip/azure-only-deck/design.md
+++ /dev/null
@@ -1,114 +0,0 @@
----
-status: landed
-item: L-260918-941a99
----
-
-# Azure-only model deck — design
-
-The kit's default model deck resolves to models from several providers: Anthropic for the general and premium tiers, Google for the small vision and creative tiers and the large-context tiers, OpenAI for the small tier, Google again for image generation. This campaign makes the shipped deck resolve exclusively to the models the Pipelex Gateway serves from Azure: the OpenAI language and image models, and Azure Document Intelligence for document extraction. Today's multi-provider deck stays in the codebase, unloaded, and cannot drift from the shipped one.
-
-**Scope.** What the deck resolves to by default in real use, when a method names a preset or an alias, or names nothing at all. Not the test profiles, which keep naming Anthropic and Google handles so the runtime's support for those providers stays tested. Not routing: the Gateway already serves every OpenAI model from Azure through the same SDK, so nothing about where a request goes changes here.
-
-## How the deck works today
-
-The kit ships one deck directory, `pipelex/kit/configs/inference/deck/`, holding the numbered files (`1_llm_deck.toml`, `2_img_gen_deck.toml`, `3_extract_deck.toml`, `4_search_deck.toml`) and the two `x_custom_*` templates. `pipelex init` copies the directory into the project's `.pipelex/inference/deck/` and stamps `.kit_manifest.json` with the kit version and a hash per numbered file (`pipelex/cogt/models/deck_manifest.py`). At boot, the loader reads every `*.toml` in the installed directory in sorted order and deep-merges them into one `ModelDeckBlueprint` (`pipelex/cogt/models/model_manager.py`, `pipelex/cogt/models/model_deck_loader.py`). `pipelex update` and `pipelex doctor` diff the installed numbered files against the kit's by hash and never touch `x_custom_*` files. Nothing in the kit, the loader or the manifest knows of more than one deck.
-
-The deck is a vocabulary. Methods, the cookbook, the test bundles and the authoring skills reference aliases (`@default-premium`) and presets (`$writing-factual`, `$engineering-code`), never a provider. Most presets resolve through an alias; a handful name a model handle directly (`retrieval-cheap`, `retrieval-premium`, `engineering-code-cheap`, `engineering-code-cheaper`, and the `synthesize-*` and image-to-image testing presets in the image deck). The model handles are the only provider-specific content in the deck.
-
-## Decisions
-
-### 1. The alias and preset vocabulary is the contract; the handles are the edition
-
-Every alias and preset name in the shipped deck keeps its name. Only what each name resolves to changes. Nothing downstream needs an edit: the sweep of the tests, the cookbook, `mthds-plugins` and `pipelex-plugins` found them referencing names, not models. The one deliberate exception is decision 8.
-
-### 2. The Azure deck is the kit's one shipped deck
-
-The numbered files under `pipelex/kit/configs/inference/deck/` become the Azure deck, under the same filenames. `init`, `update`, `doctor` and the manifest keep working unchanged.
-
-An edition selector (an `init` flag, an `edition` field in the manifest, and `update` and `doctor` reading it to pick the kit directory to diff against) was considered and declined for now. It is a change at several sites for a switch nobody flips yet. If a second edition is ever wanted at runtime, the parked variant of decision 3 is what the selector would point at.
-
-### 3. Today's deck is parked as an unloaded variant, guarded by a parity test
-
-Today's numbered files move, unchanged, to `pipelex/kit/deck_variants/multi_provider/`. Nothing loads that directory: not `init`, not `update`, not the manifest. Re-enabling it is a directory swap.
-
-The directory sits beside `pipelex/kit/configs/`, not inside it. Everything under `configs/` is treated as a template: `ensure_global_config_exists` copies the whole tree into a new `~/.pipelex/`, and `check-config-sync` holds this repository's `.pipelex/` to the same contents. It must never sit under a `deck/` directory either, because the deck loader reads its directory recursively.
-
-A unit test keeps "disabled" from meaning "rotting": for every directory under `deck_variants/`, it loads the variant's numbered files through the same loader as the shipped deck, checks that they validate as a `ModelDeckBlueprint`, and asserts that the variant defines exactly the same alias names and preset names, per model type, as the shipped deck. The only permitted difference is the set of provider-named aliases the shipped deck drops (decision 8), listed explicitly in the test. A preset added to one deck and not the other fails the test.
-
-### 4. LLM aliases
-
-| Alias | Today | Azure deck | Why |
-| --- | --- | --- | --- |
-| `default-premium`, `default-premium-vision`, `default-premium-structured` | claude-4.8-opus | gpt-6-astra | The flagship, served on the gateway since the remote config publish of 2026-09-20. It fixes the temperature at 1, which decision 10 answers. |
-| `default-general` (the choice default for `for_text` and `for_object`) | claude-4.6-sonnet | gpt-5.4 | The model every unnamed pipe gets. One step below premium, mirroring today's sonnet-below-opus shape. |
-| `default-large-context-text`, `default-large-context-code` | gemini-flash-latest, gemini-pro-latest | gpt-5.4 | General tier. |
-| `default-small`, `default-small-structured`, `default-small-vision`, `default-small-creative` | gpt-4o-mini, gpt-4o-mini, gemini-flash-latest, gemini-flash-latest | gpt-5.4-nano | Current generation with image and PDF input, at a small-tier price. |
-| `best-gpt` | gpt-5.5 | gpt-6-astra | The best GPT the gateway serves. |
-| `best-claude`, `best-gemini`, `best-mistral` | claude-4.8-opus, gemini-pro-latest, mistral-large | removed | Decision 8. |
-
-Presets that name a model directly move to the tier they belong to: `retrieval-premium` to gpt-6-astra, `engineering-codebase-analysis` (today `@best-gemini`) to `@default-premium`, `engineering-code-cheap` to gpt-5.4, `retrieval-cheap` and `engineering-code-cheaper` to gpt-5.4-nano. The two reasoning presets (`deep-analysis`, `quick-reasoning`) keep their `reasoning_effort` and follow `@default-premium`.
-
-### 5. Image generation aliases
-
-| Alias | Today | Azure deck |
-| --- | --- | --- |
-| `default-general` (the image choice default, behind `gen-image`) | nano-banana | gpt-image-2 |
-| `default-premium` (behind `gen-image-high-quality`) | nano-banana-2 | gpt-image-2 |
-| `default-small` (behind `gen-image-fast` and the testing presets) | gpt-image-1-mini | gpt-image-1-mini |
-| `best-gpt` | gpt-image-2 | gpt-image-2 |
-| `best-gemini` | nano-banana-2 | removed |
-
-General and premium resolve to the same model, so `gen-image-high-quality` differs from `gen-image` only by its quality setting. The three presets naming `nano-banana-pro` directly (`synthesize-ui`, `synthesize-chart`, `gen-image-testing-img2img`) move to `@default-premium`; gpt-image-2 accepts input images, which is what those presets need.
-
-### 6. Extract and search decks are unchanged
-
-Document extraction already defaults to `azure-document-intelligence`. The two `pypdfium2-extract-pdf` aliases (`default-text-from-pdf`, `default-no-inference`) call no provider and stay. Search has no Azure equivalent: Linkup is the only search provider, the search section's `choice_default` is a required field, and `default-extract-web-page` is `linkup-fetch`. All of it stays, and the docs state that the Azure scope covers the three families Azure serves: language, image generation and document extraction.
-
-### 7. Test profiles are untouched
-
-`.pipelex-dev/test_profiles.toml` keeps naming Anthropic and Google handles directly so the runtime's support for those providers stays exercised. The `testing-*` presets ride the small tier, so a live run through them now uses gpt-5.4-nano instead of gpt-4o-mini.
-
-### 8. The provider-named aliases are removed from the shipped deck
-
-`best-claude`, `best-gemini` and `best-mistral` name a provider in the alias itself and cannot honestly resolve to a GPT model. They leave the shipped deck and stay defined in the parked variant. A method that references one fails validation with the usual alias-not-found error. A project that wants one back defines it in an `x_custom_*` deck file. The tests that reference `@best-claude` build their own decks or parse syntax only, so they are unaffected. The user-visible examples that name `@best-claude` (the `check-model` argument help, two docstrings, and the promotion example in the `add-model` skill) move to `@best-gpt`. Downstream, the cookbook uses `@best-gemini` in two extract bundles and `mthds-plugins` uses `@best-claude` as its example alias. Both are filed as follow-ups, because they break only once those repositories take the release.
-
-### 9. The `x_custom_*` templates keep their examples
-
-The commented waterfall examples in `x_custom_llm_deck.toml` and `x_custom_extract_deck.toml` list Claude, Gemini and Mistral handles. They exist for a user who brings their own provider keys and are left as they are.
-
-### 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.
-
-The alternative was moving premium down to `gpt-5.4`, which accepts a temperature but is the general tier's own model. Keeping the flagship was the call.
-
-The repository already had the validator for exactly this conflict — `ModelDeck.final_validate`, which raises when a preset's temperature differs from a model's `fixed_temperature`. It had had no caller since 2025-09-17, and its `except ConfigValidationError` clause was unreachable, `LLMSettingsValidationError` descending from `CogtError` rather than `FatalError`. A guard nothing calls reads as protection that does not exist, so it was deleted rather than revived.
-
-## Out of scope, and why
-
-- **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.** *(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 first
-
-The backend model lists under `pipelex/kit/configs/inference/backends/` were refreshed ahead of the build, in pipelex v0.61.0: the GPT-5.6 series and GPT-6 Astra were added (#1218) and the GPT-4.1, o-series and GPT-5 to 5.2 generations were retired (#1219). The remote config in `pipelex-remote-config`, the authority on what a handle means, followed with the same roster at its commit `ae91eb8` and was published on 2026-09-20. The handles in the two tables were re-read against both after that publish: every one of them is still declared on the Azure backend and still served by the gateway. The one change the refresh brought is the premium tier, which takes `gpt-6-astra` now that the gateway serves it; the general and small tiers stand as first written.
-
-## What the build changes
-
-- The numbered deck files under `pipelex/kit/configs/inference/deck/`, per decisions 4 to 6, and the copy this repo keeps under `.pipelex/inference/deck/`.
-- The parked variant directory and its parity test, per decision 3.
-- The one test that asserts what the shipped deck resolves to (`@default-general`), and the user-visible examples that name `@best-claude`, the `add-model` skill's among them.
-- The docs that name the current defaults: `docs/get-started/configure-ai-providers.md`, `docs/configuration/config-technical/inference-config.md`, `docs/building-methods/configure-ai-llm-to-optimize-methods.md`, and `docs/tools/cli/update.md` where it describes what an update run reports.
-- A changelog entry marked breaking: the defaults move to Azure-served models, and three aliases are gone.
-
-## Rollout notes
-
-- Every existing install reports its numbered deck files as behind on its next `pipelex update`, and a user who edited a numbered file gets the usual timestamped backup. That is the mechanism working as designed, and the changelog entry says so.
-- The consumers that keep their own deck copies (the hosted worker in `pipelex-server`, `pipelex-api`, the cookbook) pick the change up through the pin bump and `pipelex update`. The worker's numbered files are byte-identical to the kit's today, so nothing there needs hand-editing. The cookbook carries an extra `cookbook.toml` deck file to check for direct model names, and two bundles that reference `@best-gemini`.
-- The implementation tracker is [`plan.md`](plan.md), beside this document.
diff --git a/wip/azure-only-deck/plan.md b/wip/azure-only-deck/plan.md
deleted file mode 100644
index c9b9f88a2..000000000
--- a/wip/azure-only-deck/plan.md
+++ /dev/null
@@ -1,159 +0,0 @@
----
-status: landed
-item: L-260918-941a99
----
-
-# Azure-only model deck — implementation plan
-
-This is the build tracker for [`design.md`](design.md), which holds the decisions and their rationale. The build makes the kit's numbered deck files resolve only to Azure-served models, parks today's files as an unloaded variant guarded by a parity test, and updates the tests, docs and changelog that name the current defaults. It then files the downstream follow-ups this repository cannot fix itself.
-
-## What planning found
-
-Reading the code before writing this plan turned up facts that correct or sharpen the design. The design has been amended where it was wrong, and each amendment is marked below.
-
-**The parked variant cannot live under `pipelex/kit/configs/`, so it moves to `pipelex/kit/deck_variants/multi_provider/`.** Design decision 3 put it at `pipelex/kit/configs/inference/deck_variants/multi_provider/`, but two mechanisms treat everything under `configs/` as a template to install. `ensure_global_config_exists` copies the whole kit configs tree into a new `~/.pipelex/`, recursively and with no skip list (`pipelex/system/configuration/config_loader.py:286-305`), so the parked deck would land in every user's global directory. `check-config-sync` holds this repository's `.pipelex/` to exactly the contents of `pipelex/kit/configs/` (`pipelex/cli/dev_cli/config_sync_exclusions.py`, module docstring), so it would demand a mirrored copy under `.pipelex/inference/deck_variants/`. A sibling of `configs/` avoids both and still ships in the wheel, because hatch packages the whole `pipelex` directory (`pyproject.toml`, `[tool.hatch.build.targets.wheel]`). Design decision 3 is amended to this path.
-
-**The variant must never sit under a `deck/` directory.** The loader collects deck files recursively (`pipelex/cogt/models/model_manager.py:46-57`, `is_recursive=True`), so a variant nested inside `deck/` would be merged into the live deck at boot.
-
-**The removed aliases are referenced downstream, which contradicts decision 8.** The cookbook uses `@best-gemini` in `examples/b_basics/document_extract/extract_slides/bundle.mthds:42` and `examples/b_basics/document_extract/answer_from_documents/bundle.mthds:162`, and names it in that example's `README.md:121`. `mthds-plugins` uses `@best-claude` as its example alias in `skills/mthds-build/references/model-references.md` (and its generated copies), including the command `mthds-agent check-model "@best-claude" --type llm`, which would fail against the new deck. In this repository, user-visible examples name `@best-claude` in the `check-model` argument help (`pipelex/cli/agent_cli/commands/check_model_cmd.py:57`), the syntax table of `pipelex/cogt/models/model_reference.py:9` and a docstring in `pipelex/cogt/models/model_suggestion.py:89`. `pipelex-plugins` and `conformance` reference none of them. The last sentence of decision 8 is amended.
-
-**Only one test depends on what the shipped deck resolves to.** `tests/unit/pipelex/kernel/test_llm_ops_model_resolution.py:13` asserts that `@default-general` resolves to `claude-4.6-sonnet`. The `@best-claude` tests do not depend on the shipped deck: `tests/unit/pipelex/cli/test_check_model_cmd.py` builds its own fake deck (line 44), and `tests/unit/pipelex/cogt/models/test_model_reference.py` only parses the reference syntax. They stay as they are. The many other tests that name Claude, Gemini or `gpt-4o-mini` handles build their own decks or name handles directly in `.mthds` fixtures, so they are unaffected.
-
-**The chosen handles are served from Azure today.** In `pipelex-remote-config` at commit `ae91eb8`, `pipelex_remote_config/remote_config/gateway_models.toml` serves `gpt-6-astra`, `gpt-5.4` and `gpt-5.4-nano` through the Portkey config `pc-openai-6e7576`, whose virtual key is `azure-openai` despite the config's name (`portkey_configs/pc-openai-6e7576.json` beside it). It serves `gpt-image-2` and `gpt-image-1-mini` through `pc-azure-2e01ce`, the Azure REST config, and it serves `azure-document-intelligence`. The same handles exist in `manifold_models.toml` beside it. All of them are also declared in the kit's `backends/azure_openai.toml`. They were not all listed in `backends/pipelex_gateway_models.md`: that catalog snapshot is generated from the served remote config by `make ugm`, and it had not been regenerated since 2026-07-27, so it lacked `gpt-6-astra` altogether while still advertising the generations `#1219` retired. Boot never depended on it — the membership check reads the remote config, not this listing — but it is the reference a user opens in their own `.pipelex/` to see what the Gateway serves. The round-3 review round regenerated it and its plain twin, in both the kit and `.pipelex/`.
-
-**The backend lists were refreshed in pipelex v0.61.0, and the remote config followed.** `#1218` added the GPT-5.6 series and GPT-6 Astra to the Azure backend and `#1219` retired the GPT-4.1, o-series and GPT-5 to 5.2 generations; neither touched the numbered deck files, only the commented waterfall example in `x_custom_llm_deck.toml`. The remote config was published from `pipelex-remote-config` commit `ae91eb8` on 2026-09-20 and serves the same roster. Every handle in the design's tables survived both. The premium tier moved up to `gpt-6-astra` once the publish made it gateway-served, and the general and small tiers stay on 5.4 because every 5.6 and 6 handle is fixed-temperature; the design's out-of-scope section records that reasoning.
-
-**The `add-model` skill names `best-claude` as its promotion example.** `.claude/skills/add-model/SKILL.md` (section 7, the deck step) cites `best-claude` beside `default-premium` as an alias a new model might be promoted to. Once the alias is gone the example points at nothing, so it joins the `@best-gpt` rename in Phase 3.
-
-**This repository's own deck manifest is stale, independently of this campaign.** `.pipelex/inference/deck/.kit_manifest.json` records kit version `0.25.1`, and its hash for `1_llm_deck.toml` no longer matches the kit's file. The mirror step in Phase 3 restamps it.
-
-**The deck copies outside this repository** are in `pipelex-server/worker/`, `pipelex-api`, `pipelex-cookbook` (which adds its own `cookbook.toml`), `cocode`, `conformance` and `mthds-ui`, each under `.pipelex/inference/deck/`. The `mthds-ui` hits for old handles are static story fixtures and generated graph specs, not deck lookups.
-
-## Phase 1 — Confirm the handles
-
-This is a short gate before any file changes.
-
-- [x] Check whether Louis's backend update has landed on `dev` (`git log --oneline -- pipelex/kit/configs/inference/backends/`). It has: `#1218` and `#1219`, both in v0.61.0, which this branch contains.
-- [x] For each handle in the tables of design decisions 4 and 5 (`gpt-6-astra`, `gpt-5.4`, `gpt-5.4-nano`, `gpt-image-2`, `gpt-image-1-mini`), confirm that it is still declared in `backends/azure_openai.toml` and still served from Azure in `pipelex-remote-config`'s `gateway_models.toml`. All five are, in the backend file, in the catalog at `ae91eb8`, and in the served remote config fetched after the 2026-09-20 publish; `gpt-6-astra` rides the same `pc-openai-6e7576` config as the 5.4 handles, with image and PDF input and structured output. The premium tier was moved from `gpt-5.5` to `gpt-6-astra` on that reading.
-- [x] Confirm that `gpt-image-2` still accepts image input (`inputs = ["text", "images"]` and an `input_images` rule), because the `synthesize-ui`, `synthesize-chart` and `gen-image-testing-img2img` presets need it once they move to `@default-premium`. It does, with `input_images = "gpt_image"`.
-
-## Phase 2 — Park today's deck and write the parity test first
-
-The test is written before the Azure deck exists, so it goes red on the aliases the shipped deck still carries, and Phase 3 turns it green.
-
-- [x] Copy today's numbered files, byte for byte, from `pipelex/kit/configs/inference/deck/` to `pipelex/kit/deck_variants/multi_provider/`. Copy only the numbered files and not the `x_custom_*` templates, which stay single-sourced in the kit (design decision 9).
-- [x] Add `pipelex/kit/deck_variants/README.md`. It should say, in a few sentences, what a variant is, that nothing loads it, that the parity test guards it, and that re-enabling one means swapping its numbered files into `configs/inference/deck/`. It should also warn against placing a variant under any `deck/` directory, because the loader is recursive.
-- [x] Write `tests/unit/pipelex/kit/test_deck_variants.py`:
- - A comparator that takes two `ModelDeckBlueprint`s and the permitted drops, and returns the differences in alias, preset and waterfall names for each family (`llm`, `img_gen`, `extract`, `search`).
- - The permitted drops, written out in the test: `best-claude`, `best-gemini` and `best-mistral` for `llm`, and `best-gemini` for `img_gen`. Each dropped name must be present in the variant and absent from the shipped deck, so an entry that goes stale fails the test.
- - A test parametrized over every directory under `pipelex/kit/deck_variants/`. For each one, it asserts that the numbered filenames match the kit deck's, loads both sets with `load_model_deck_blueprint` (the same loader the runtime uses), and asserts that the comparator reports no differences.
- - A guard that at least one variant exists, so the parametrized test can never pass by running zero cases.
- - Negative tests that feed the comparator a blueprint with an extra preset, a missing alias and a dropped name that is still present, and assert that each is reported. This is the mutation check, written as tests so it runs every time rather than once by hand.
-- [x] Run the new test file and confirm it fails only on the dropped aliases.
-
-## Phase 3 — Write the Azure deck
-
-- [x] Edit `pipelex/kit/configs/inference/deck/1_llm_deck.toml` according to design decision 4: set the aliases from the table, remove `best-claude`, `best-gemini` and `best-mistral`, and repoint the presets that name a model directly (`retrieval-premium`, `retrieval-cheap`, `engineering-code-cheap`, `engineering-code-cheaper`, and `engineering-codebase-analysis`, which moves from `@best-gemini` to `@default-premium`). Keep every alias and preset name, every temperature and every `reasoning_effort`.
-- [x] Edit `pipelex/kit/configs/inference/deck/2_img_gen_deck.toml` according to design decision 5: set the aliases, remove `best-gemini`, and repoint the presets that name `nano-banana-pro` to `@default-premium`.
-- [x] Leave `3_extract_deck.toml` and `4_search_deck.toml` untouched (design decision 6).
-- [x] Mirror the kit into this repository's `.pipelex/inference/deck/` with `.venv/bin/pipelex update --local --yes --no-backup`. That command copies the numbered files and restamps `.kit_manifest.json`, which also clears the pre-existing staleness. Then run `make check-config-sync`.
-- [x] Run the parity test and confirm it passes.
-- [x] Change `tests/unit/pipelex/kernel/test_llm_ops_model_resolution.py:13` to expect `gpt-5.4`.
-- [x] Replace `@best-claude` with `@best-gpt` in the user-visible examples: `check_model_cmd.py:57`, `model_reference.py:9`, `model_suggestion.py:89` and the promotion example in `.claude/skills/add-model/SKILL.md` (section 7). If a CLI help snapshot changes as a result, regenerate it.
-- [x] Run `make tb` to test the boot sequence against the new deck, then `make agent-check`, then the touched test modules.
-
-### Checkpoint A — the deck is in place
-
-The deck landed in the commit subject-titled "Azure-only deck: park the multi-provider deck and ship the Azure one" on `feature/Azure-only-deck`. No handle was substituted: the five confirmed in Phase 1 are exactly the ones written, premium on `gpt-6-astra` and general and small on `gpt-5.4` / `gpt-5.4-nano`.
-
-Four things the checks reported that the plan did not anticipate:
-
-- **The editable install's version metadata was stale.** `pipelex update --local` reads `importlib.metadata`, which still said `0.59.0` while `pyproject.toml` says `0.61.0`, so the first run stamped the manifest with the wrong kit version. `uv pip install -e . --no-deps` refreshed it and the manifest was restamped at `0.61.0`.
-- **The kit ships a deck manifest of its own**, at `pipelex/kit/configs/inference/deck/.kit_manifest.json`, and `check-config-sync` holds it identical to the one in `.pipelex/`. `pipelex update --local` only writes the `.pipelex/` side, so the kit copy had to be updated by hand. Both were stale at kit version `0.25.1`, which this change clears.
-- **mypy joins the four family blueprint types to their common `ConfigModel` base**, which has no `aliases`, `presets` or `waterfalls`. The test annotates its family mapping with an explicit `DeckFamilyBlueprint` union to keep the attributes visible.
-- **The `cli-docs` drift contract opened**, triggered by the one-word change to the `check-model` argument help. Both review targets describe the command generically and name no alias, so the ack records a no-doc-change rationale.
-
-The parity test went red on exactly the four dropped aliases before Phase 3 and green after, which is the behaviour Phase 2 was written to produce.
-
-- [x] Run `/rev` on the deck change before the docs phase starts, and record the pass here.
-
-**Round 1, profile 3, bar `open`, outcome `fixed`, full coverage** — `code-review` (low) and Codex (`gpt-5.6-sol`, effort high) both found nothing; cubic raised five, of which three needed verification and all three were confirmed. Two findings were the campaign's own Phase 4, unstarted by design at this checkpoint.
-
-The pass changed three things, in the commit subject-titled "Azure-only deck: answer the premium tier's fixed temperature, drop a dead validator":
-
-- **The premium tier's fixed temperature was a real regression the design had mis-argued.** `gpt-6-astra` carries `fixed_temperature = 1`, and the worker overrides any other value while logging a warning per call. On `origin/dev` no preset sat in that position — `claude-4.8-opus` declares no constraint and `gpt-5.5` was reachable only through `best-gpt`, which no preset names — so this change took the count from zero to twelve. `writing-factual` and `writing-creative` were issuing the identical call, and `engineering-structured` was running structured extraction at temperature 1 while declaring 0.2. Louis chose to keep the flagship and declare `temperature = 1` on the twelve, since no Azure handle above `gpt-5.4` is free of the constraint. Design decision 10 records it.
-- **`ModelDeck.final_validate` was deleted**, with `_validate_llm_setting` and both `subject_grants.toml` entries. It raised on exactly this conflict, had had no caller since `944bce8d8` orphaned it on 2025-09-17, and its `except ConfigValidationError` clause was unreachable because `LLMSettingsValidationError` descends from `CogtError` rather than `FatalError`.
-- **The parity test gained a second check**: every handle a variant names and the shipped deck does not must still be declared by a backend file. Scoped to variant-only handles, because a shared handle is already exercised at boot and some are gateway-served with no backend section. Mutation-tested: a retired handle in the variant turns it red.
-
-One finding was deferred, with its trace in [`deferred.md`](deferred.md): two inference error classes now have no raise site.
-
-The next-round verdict is **round 2 at bar `defects`, profile 3**, which Phase 5's `/rev` will run once the docs land.
-
-## Phase 4 — Docs and changelog
-
-- [x] Update the pages that state what the deck resolves to by default:
- - `docs/get-started/configure-ai-providers.md`: this is the one place that states the Azure scope, meaning language models, image generation and document extraction are served from Azure while web search stays on Linkup (design decision 6).
- - `docs/configuration/config-technical/inference-config.md`.
- - `docs/configuration/config-technical/inference-backend-config.md`: its deck example lists `best-claude` and `best-gemini` (around lines 472-486).
- - `docs/building-methods/configure-ai-llm-to-optimize-methods.md`: its alias list (lines 30-32) was already stale, naming `claude-4.1-opus` and `gemini-2.5-pro`.
- - `docs/building-methods/pipes/pipe-operators/PipeImgGen.md:65`, which lists `best-gemini`.
- - `docs/tools/cli/update.md`, only if it describes what an update run reports in a way this change alters.
-
- What the sweep actually found, against what the plan expected: `inference-config.md` names no alias and no model handle anywhere, so it needed nothing — the plan listed it speculatively. `docs/tools/cli/update.md` describes the managed/override split generically and names no alias either; that reading was already recorded in the `cli-docs` drift ack. `configure-ai-providers.md` had no statement of what the deck resolves to at all, so the Azure scope is a new section there rather than an edit. `inference-backend-config.md`'s preset example also had to move to `temperature = 1`, which the plan did not anticipate because the premium tier's fixed temperature was found in review, not in planning.
-- [x] Review the other pages that name the affected aliases or handles: `docs/under-the-hood/reasoning-controls.md`, `per-node-usage-attribution.md`, `test-profile-configuration.md`, `docs/features/validation-dry-run.md`, `docs/cookbook/generate-image.md`, `PipeLLM.md` and `PipeStructure.md`. Change only statements about what a name resolves to by default. A handle used as an explicit example of naming a model stays. None of them needed a change: every hit in `reasoning-controls.md`, `per-node-usage-attribution.md`, `test-profile-configuration.md`, `validation-dry-run.md`, `generate-image.md`, `PipeLLM.md` and `PipeStructure.md` is either a direct model name used as an example or a test-profile handle, which decision 7 leaves alone. Only `PipeImgGen.md`, which stated what each image alias resolves to, was in the first list and is updated there.
-- [x] Follow the MkDocs rule of a blank line before every list.
-- [x] Add a `CHANGELOG.md` entry under `[Unreleased]`, `### Changed`, marked Breaking and written in the condensed form: the default aliases and presets now resolve to Azure-served models (with the tiers named), and `best-claude`, `best-gemini` and `best-mistral` (and `best-gemini` for image generation) are removed. For migration, `pipelex update` refreshes the numbered deck files and backs up any that were edited locally, and a project that wants a removed alias back defines it in `x_custom_llm_deck.toml`, or in an `x_custom_*` file for image generation.
-
-## Phase 5 — Verify, review, and file the follow-ups
-
-- [x] Re-read the handles against `pipelex/kit/configs/inference/backends/` in case the backend update landed during the build, and adjust both the deck and the design's tables if it did. Nothing landed during the build — `#1218` and `#1219` remain the last two commits on the backends directory — and all five handles are still declared on `azure_openai`.
-- [x] Run `make agent-check` and `make agent-test`. Both green, but only after two real problems the plan did not foresee.
-
- **This worktree's venv was stale, and it made the suite lie.** The first full `agent-test` reported failures in `test_hydration.py`, `test_composite_content.py` and `test_wire_concept_ref_resolution.py` — none of which this branch touches, all byte-identical to `origin/dev`. They passed in a fresh detached snapshot of `origin/dev` and failed here, which is what a code defect looks like. The cause was the environment: this worktree's venv carried `mthds` 0.14.0 while the lock pins 0.15.0, so the concept-ref wire format the tests assert had never been installed here. `make install` fixed it. Every check run before that point was run against the wrong `mthds`, so all of them were re-run afterwards.
-
- **Two offline dry-run fixtures named handles the new deck strands.** `gateway_known_model` named `gpt-4o-mini` and `gateway_img_gen_model` named `nano-banana`. Their cached gateway specs come from `gateway_backend_model_specs_for_kit_deck()`, derived from the shipped deck exactly so the fixture cannot go stale when an alias is promoted — which means a handle leaving the deck removes it from the fixture's served set. They now name `gpt-5.4-nano` and `gpt-image-2`.
-- [x] Run a live smoke check through the gateway, limited to a few inference-marked tests that ride the default tiers. All four cases answered through the gateway:
-
- - `test_pipe_llm_json_concept` — names no model, so it rides `@default-general` → `gpt-5.4`.
- - `test_pipe_llm_object_list` — `@default-small-creative` → `gpt-5.4-nano`, structured output.
- - `test_pipe_llm_vision` — `$vision-diagram` → `@default-premium-vision` → `gpt-6-astra`, and `$vision-cheap` → `gpt-5.4-nano`.
- - `test_pipe_img_gen -k 'testing or img2img'` — `$gen-image-testing` → `gpt-image-1-mini` and `$gen-image-testing-img2img` → `@default-premium` → `gpt-image-2`.
-
- No fixed-temperature warning appeared, because the premium presets now declare the temperature the model fixes. `pipelex-agent models -t llm --format json` against the booted runtime confirms every alias resolves as design decision 4's table says.
-- [ ] Run `/rev` on the branch before the pull request opens.
-- [x] File the downstream follow-ups in the ledger, each `--discovered-from L-260918-941a99` and blocked on the pipelex release that carries this change. Filed: L-260920-e22f54 (pipelex-cookbook), L-260920-eeb0f1 (mthds-plugins), L-260920-9a4fe2 (pipelex-server, member `worker/`), L-260920-cfa51a (pipelex-api). A fifth was filed that the plan did not anticipate, L-260920-362d4e against `workspace`: `wt` has no gesture that removes a `ref`-genre worktree, found while making a detached snapshot of `origin/dev` to check whether a suite failure was pre-existing.
- - `pipelex-cookbook`: replace `@best-gemini` in the two extract bundles and the `answer_from_documents` README, run `pipelex update` at the pin bump, and check `cookbook.toml`'s direct model names against the Azure scope.
- - `mthds-plugins`: change the example alias in the `model-references.md` source, not in its generated copies, from `@best-claude` to `@best-gpt`.
- - `pipelex-server`, member `worker/`: run `pipelex update` in the worker's `.pipelex/` at the pin bump. Its numbered files match the kit byte for byte today, so the update should apply cleanly.
- - `pipelex-api`: run `pipelex update` at the pin bump.
- - `cocode`, `conformance` and `mthds-ui` get no item. The stale-deck notice prompts them on their next pin bump, and none of them references a removed alias.
-- [ ] Open the pull request against `dev` as `feature/Azure-only-deck · L-260918-941a99`, with `Closes L-260918-941a99` in the body.
-
-### Checkpoint B — built, verified, waiting on one review round
-
-The build is finished and pushed. Phases 1 to 5 are done except the two items still unticked above, and both are one gesture each. A session starting cold needs nothing from the conversation that produced this.
-
-**Where the work is.** Branch `feature/Azure-only-deck` in the worktree `_pipelex--azure-only-deck`, pushed and tracking `origin/feature/Azure-only-deck`. The tree is clean and the branch carries five commits of this campaign's build, on top of the two that ratified the documents. No pull request is open.
-
-**What is done.** The kit's numbered deck files resolve only to Azure-served handles, with every alias and preset name kept; the three provider-named aliases are gone; today's deck is parked at `pipelex/kit/deck_variants/multi_provider/` under a parity test that checks both the vocabulary and, for variant-only handles, that a backend still declares them. The premium tier's presets declare `temperature = 1` and `ModelDeck.final_validate` is deleted, both settled at Checkpoint A. Docs and the changelog are written, the downstream follow-ups are filed, and one `/rev` round is recorded on the item.
-
-**What is left, in order.**
-
-1. **Run `/rev 3` from this worktree.** Round 2 is owed at bar `defects` — confirmed defects only, no improvements. It did not run in the building session because `agent-watch-headroom` refused: that session stood at 307187 tokens against a 300000 threshold, so a round would have been paid for and arrived into a context nobody could triage from. Nothing about the code caused the refusal. Record the pass with `ledger review-pass` as the skill directs.
-2. **Open the pull request** against `dev`, titled `feature/Azure-only-deck · L-260918-941a99`, with `Closes L-260918-941a99` in the body. `/ledger-land --merge` refuses a merge whose head branch carries no recorded review, so step 1 comes first.
-
-**Open questions: none.** The two decisions this campaign raised were both put to Louis and both answered — the premium tier keeps `gpt-6-astra` with the temperatures declared at 1, and the dead validator is deleted rather than revived. Design decision 10 records the reasoning and what it costs.
-
-**Two things to know before running anything here.**
-
-- **Check the venv before trusting a red suite.** `.venv/bin/python -c "from importlib.metadata import version; print(version('mthds'))"` must agree with `uv.lock`; it did not in this worktree, and the mismatch failed tests in `runtime_bridge` and `core/stuffs` that this branch does not touch. `make install` is the fix.
-- **A deck edit is a four-file gesture.** Edit the kit under `pipelex/kit/configs/inference/deck/`, then `.venv/bin/pipelex update --local --yes --no-backup` to mirror it into `.pipelex/`, then copy `.pipelex/inference/deck/.kit_manifest.json` over the kit's own copy — `check-config-sync` holds the two manifests identical and `pipelex update` only writes the `.pipelex/` side. `make check-config-sync` confirms.
-
-**One loose end outside this repo.** `_pipelex--ref-dev` is a detached snapshot of `origin/dev` made to check whether a suite failure was pre-existing. It is clean, and no `wt` gesture removes a `ref`-genre worktree, which is what [L-260920-362d4e] against `workspace` is for. Deleting the directory by hand is safe whenever somebody wants the disk back.
-
-## Decisions taken during planning
-
-- **The variant lives at `pipelex/kit/deck_variants/multi_provider/`**, for the reasons in the first finding above. The design is amended.
-- **The `@best-claude` tests that build their own deck are left alone.** They test syntax and suggestion logic, not the shipped vocabulary, and nothing about them becomes false.
-- **The mutation check is written as permanent negative tests of the comparator** rather than as a one-off hand edit, so the guard's ability to go red is checked on every run.
-- **Only the numbered files are parked.** The `x_custom_*` templates are not part of the managed deck, and a second copy of them would only drift.
diff --git a/wip/bedrock-bearer-token-env/design.md b/wip/bedrock-bearer-token-env/design.md
deleted file mode 100644
index ebc24e6ba..000000000
--- a/wip/bedrock-bearer-token-env/design.md
+++ /dev/null
@@ -1,64 +0,0 @@
----
-status: landed
-item: L-260927-06f4db
----
-
-# The configured Bedrock access variant wins over `AWS_BEARER_TOKEN_BEDROCK`
-
-## The bug, verified
-
-With `[runtime.aws] bedrock_access_variant = "aws_access"`, which is the shipped default in `pipelex/pipelex.toml`, `AnthropicFactory.make_anthropic_client` builds `AsyncAnthropicBedrock(aws_access_key=…, aws_secret_key=…, aws_region=…)` and passes no `api_key`. The anthropic SDK's Bedrock client then fills `api_key` from `AWS_BEARER_TOKEN_BEDROCK` and refuses the combination with explicit credentials:
-
-```
-ValueError Cannot specify both `api_key` and AWS credentials (`aws_access_key`, `aws_secret_key`, `aws_session_token`, `aws_profile`)
-```
-
-Reproduced offline against anthropic 0.99.0 with `AWS_BEARER_TOKEN_BEDROCK=dummy`: the constructor raises exactly that, and the same construction without the variable succeeds. The lookup is unconditional in the SDK (`if api_key is None: api_key = os.environ.get("AWS_BEARER_TOKEN_BEDROCK")`, in both the sync and async clients), and it is unchanged on the SDK's `main` at 1.8.0, so no upgrade fixes it. Passing an empty string does not help either: `""` is not `None`, so it skips the lookup and then trips the same refusal.
-
-The raw `ValueError` escapes pipelex's error model at client construction, for every `bedrock_anthropic` model. The variable is not exotic: it is the standard name for a Bedrock API key, which AWS tooling and Claude Code on Bedrock read, so a developer who configured one of those in a shell profile cannot run a single `bedrock_anthropic` model under pipelex's default configuration.
-
-## Where else the variable reaches
-
-- **`bedrock_anthropic` under `bedrock_token`** has no clash. Pipelex reads the token itself, from `AWS_BEARER_TOKEN_BEDROCK` under `api_key_method = "env"` or from the secrets provider under `"secret_provider"`, and passes it as `api_key` with no AWS credentials.
-- **The native Bedrock clients** (`bedrock_aioboto3`, renamed `bedrock_aiobotocore` by L-260927-61a69f, and `bedrock_boto3`) never read `[runtime.aws]` at all, and botocore prefers bearer auth for the `bedrock` signing name whenever the variable is set and no signature version is set in code — explicit access keys do not count. An offline probe capturing the `Authorization` header on a `converse` call shows `Bearer dummy` both with the default chain and with explicit keys, and SigV4 only once `Config(signature_version="v4")` is set. That path fails silently rather than loudly, and deciding it needs a question this item does not have to answer (whether to give up boto's default credential chain), so it is filed as its own bug, L-260928-bfd13b, blocked on the aiobotocore swap that renames its files.
-
-## Decision: the configured variant wins
-
-The item allows two outcomes: turn the clash into a configuration error, or decide which one wins and say so. **Pipelex's `bedrock_access_variant` wins.** Under `aws_access`, a `bedrock_anthropic` client signs every request with SigV4 from the credentials `[runtime.aws]` sourced, and an `AWS_BEARER_TOKEN_BEDROCK` in the environment is ignored.
-
-Why this rather than a refusal:
-
-- **`[runtime.aws]` is pipelex's one statement of where Bedrock credentials come from.** Under `api_key_method = "secret_provider"` the user chose the secrets provider precisely so that ambient environment variables would not matter; an SDK lookup that bypasses it contradicts that choice, and refusing on it would make the contradiction pipelex's own rule.
-- **A refusal punishes the common case.** The variable is typically set for a different tool, the variant is the default rather than something the user typed, and the remedy a refusal would ask for — removing a variable from the process environment for pipelex alone — is awkward in a shell and impossible from a `.env` file, since an empty value still clashes.
-- **Letting the configured variant win has no harmful outcome.** Either the access keys are there and the call works with them, or they are missing and pipelex already raises `AwsCredentialsError` — which this change extends to say that a bearer token is present and how to use it. Nothing ever runs on credentials the user did not configure.
-
-Rejected alternatives:
-
-- **A configuration error naming both.** Sound, and the cheapest to build, but it blocks the common case for the reasons above. It remains the fallback if the mechanism below proves unmaintainable against a future SDK.
-- **Masking the variable while the client is constructed.** `os.environ` is process-global, so any other thread reading it during construction sees it disappear; and `with_options` re-runs the constructor later, re-reading the variable, so the mask would have to be repeated at every copy.
-- **Only translating the `ValueError` into a pipelex error.** That is the refusal with extra steps, and it keys on an SDK message string.
-
-## Mechanism
-
-A small subclass of `AsyncAnthropicBedrock` in `pipelex/providers/anthropic/`, used only for the `aws_access` branch. Its constructor passes the SDK nothing but the region and the transport options, which never clashes, then sets `api_key` to `None` and assigns the AWS credentials. The SDK's request hook signs with SigV4 whenever `api_key` is `None`, reading exactly those attributes. The subclass is still an `AsyncAnthropicBedrock`, so the worker's `isinstance` check and `instructor.from_anthropic` accept it unchanged.
-
-`with_options` (the SDK's `copy`) rebuilds the client through `self.__class__(…)` with the stored credentials and `api_key=None`, so a copy takes the same path. An offline probe confirmed it: a client built this way and its `with_options` copy both sent `AWS4-HMAC-SHA256 Credential=<key id>/…` with `AWS_BEARER_TOKEN_BEDROCK` set. The probe also showed that the SDK's `copy` does not carry a custom `http_client` over unless one is passed again, which matters to the tests, not to production.
-
-The constructor refuses a non-`None` `api_key`: the class exists to sign with SigV4, and a caller handing it a token wants the other variant.
-
-The cost is coupling to four public attributes of the SDK client (`api_key`, `aws_access_key`, `aws_secret_key`, `aws_session_token`) and to the rule that `api_key is None` means SigV4. The guard is a behavioural test on the wire, not on the attributes: a request sent through an `httpx.MockTransport` with the variable set must carry a SigV4 `Authorization` header naming the configured key id. An SDK release that changes either the attributes or the rule turns that test red at the dependency bump.
-
-## What the user sees
-
-- **The docs say which wins.** `docs/configuration/config-technical/aws-config.md` gains a section on `bedrock_access_variant`: what each variant reads (it documents neither today, and its sample shows `bedrock_token` although `aws_access` is the default), that under `aws_access` pipelex signs `bedrock_anthropic` requests with the configured keys and ignores `AWS_BEARER_TOKEN_BEDROCK`, and that the native Bedrock clients currently follow boto's own credential chain, in which that variable wins — stated as today's behaviour, pointing at nothing volatile.
-- **The missing-keys error points at the token.** When `aws_access` cannot find its keys and `AWS_BEARER_TOKEN_BEDROCK` is set, the `AwsCredentialsError` raised for a `bedrock_anthropic` client adds that the environment carries a Bedrock bearer token and that `bedrock_access_variant = "bedrock_token"` uses it. That is the one situation where a user plausibly meant the token.
-- **A verbose log line** records, when the variable is set under `aws_access`, that it is being ignored. Not a warning: the outcome is never harmful, and a developer who keeps the variable for another tool would otherwise read the same warning on every run.
-
-## Noticed, not in scope
-
-These neighbouring gaps turned up while reading this code. None is the clash, and closing any of them would change behaviour someone may rely on or belongs to a dependency bump, so they are recorded here rather than folded in:
-
-- **`bedrock_token` passes no region.** The SDK then infers one from `AWS_REGION`, the boto profile, or `us-east-1`, so under `api_key_method = "secret_provider"` a region stored with the secrets is ignored.
-- **`aws_access` passes no session token.** `get_aws_access_keys` reads neither `AWS_SESSION_TOKEN` nor its secret, so temporary STS credentials cannot sign a `bedrock_anthropic` request.
-- **The SDK's `copy` drops `aws_profile`.** Upstream, and harmless to pipelex, which never passes a profile.
-- **anthropic 1.x moves to `httpx2`.** Its base client refuses `httpx` objects, so at that bump the subclass's `httpx` type hints and the wire tests' `httpx.MockTransport` change with the rest of pipelex's anthropic usage; the wire tests turning red there is the tripwire working, not a regression.
diff --git a/wip/bedrock-bearer-token-env/plan.md b/wip/bedrock-bearer-token-env/plan.md
deleted file mode 100644
index 04d4a48a0..000000000
--- a/wip/bedrock-bearer-token-env/plan.md
+++ /dev/null
@@ -1,38 +0,0 @@
----
-status: landed
-item: L-260927-06f4db
----
-
-# Plan: the configured Bedrock access variant wins over `AWS_BEARER_TOKEN_BEDROCK`
-
-The decisions and their rationale are in [`design.md`](design.md). One phase, on `fix/Bedrock-bearer-token-env` from `dev`. It touches only `pipelex/providers/anthropic/`, the docs and the changelog, none of which the in-flight `chore/Bumping` branch (L-260927-56ef15, L-260927-61a69f) changes, so it does not wait for that branch. The native Bedrock path is L-260928-bfd13b and is not part of this plan.
-
-## Tests first
-
-A new `tests/unit/pipelex/providers/anthropic/test_anthropic_bedrock_auth.py`, offline, with a module docstring stating the rule it pins: under `aws_access` the configured keys sign, whatever the environment says. `get_config` is patched as in `test_anthropic_client_auth.py`, with `runtime.aws` a real `AwsConfig` and the variables set through `monkeypatch.setenv`.
-
-- [x] **The wire carries SigV4 with the variable set.** The SigV4 client, given an `httpx.AsyncClient` over an `httpx.MockTransport`, sends a `messages.create` whose `Authorization` header starts with `AWS4-HMAC-SHA256 Credential=<the configured key id>/` and never with `Bearer`.
-- [x] **A `with_options` copy signs the same way**, the mock transport passed again, since the SDK's `copy` does not carry a custom `http_client` over.
-- [x] **The factory builds that client under `aws_access`**, with the variable set and with it unset: it returns the SigV4 subclass, `api_key` is `None`, and the region and key id are the configured ones. This is the test that fails today with the `ValueError`.
-- [x] **`bedrock_token` is unchanged**: the factory passes the token as `api_key`, and a request carries `Bearer <token>`.
-- [x] **Missing keys with the token present** raise `AwsCredentialsError` whose message names `AWS_BEARER_TOKEN_BEDROCK` and `bedrock_token`; with the token absent, the message carries no such hint.
-- [x] **The subclass refuses a non-`None` `api_key`.**
-
-## Implementation
-
-- [x] `pipelex/providers/anthropic/anthropic_bedrock_sigv4.py`: the `AsyncAnthropicBedrock` subclass. Its constructor takes the credentials and the region as keywords, passes the SDK the region and the remaining options only, then sets `api_key = None` and the three credential attributes. Its docstring carries the why: the SDK's unconditional lookup, and the wire test that guards the coupling.
-- [x] `AnthropicFactory.make_anthropic_client`, `aws_access` branch: build the subclass; log at verbose level when `AWS_BEARER_TOKEN_BEDROCK` is set and ignored; when `get_aws_access_keys` raises `AwsCredentialsError` and the variable is set, re-raise it `from` the original with the hint appended. The environment is read through `pipelex.system.environment`, and the variable's name through `BEDROCK_TOKEN_VAR_NAME` in `pipelex/tools/aws/aws_config.py`, never a new literal.
-- [x] Mutation-check the tests: drop the `api_key = None` assignment and watch the wire test go red; restore by re-applying the edit, never with `git checkout`. Dropping it turned the two wire tests and the factory test with the token set red; the factory's missing-keys hint was seen red before it existed.
-
-## Docs and changelog
-
-- [x] `docs/configuration/config-technical/aws-config.md`: a `bedrock_access_variant` section covering both variants, the variables each reads, which one wins under `aws_access` for `bedrock_anthropic`, and how the native Bedrock clients behave today. Correct the sample so it shows the default `aws_access` and names the alternative. MkDocs rules: a blank line before every list.
-- [x] `CHANGELOG.md`, `[Unreleased]` under `### Fixed`: one bold-labelled entry saying that `bedrock_anthropic` models under `aws_access` sign with the configured keys when `AWS_BEARER_TOKEN_BEDROCK` is set, where they used to fail at client construction with a raw `ValueError`.
-
-## Checkpoint: ready for review
-
-- [x] `make agent-check`, with the changes staged first since the drift digest reads the index; handle any drift contract the anthropic or docs change opens.
-- [x] `make agent-test`.
-- [ ] Optional live check, paid, only on the user's go-ahead: `TestLLMGenText` on `claude-4.5-haiku` via `bedrock` with `AWS_BEARER_TOKEN_BEDROCK` set, which failed all its cases in the evidence run. Not run under the goal that executed this plan, which gave no go-ahead for paid inference; the offline wire tests stand in for it.
-- [x] `/rev`, two rounds at profile 3. The first made the docs say that `bedrock_token` still takes its region from `AWS_REGION` or the AWS profile, and made the missing-keys hint say that under `secret_provider` the `bedrock_token` variant reads the token from the secrets provider. The second gave the hint its own sentence, made the subclass forward the constructor options it does not name (anthropic 0.108 passes `middleware` through `copy`), and moved the `landed` flip into the pull request.
-- [x] PR `fix/Bedrock-bearer-token-env · L-260927-06f4db`, body ending `Closes L-260927-06f4db`. `/ledger-land` does not flip a document in a code repo's `wip/`, so this document and `design.md` say `landed` from the pull request's last commit.
diff --git a/wip/bugs/enum-completeness-validators-over-user-keys.md b/wip/bugs/enum-completeness-validators-over-user-keys.md
deleted file mode 100644
index 14bc38744..000000000
--- a/wip/bugs/enum-completeness-validators-over-user-keys.md
+++ /dev/null
@@ -1,66 +0,0 @@
-# Completeness validators over user-supplied keys turn an enum addition into a boot failure
-
-**Status:** confirmed defect, not yet fixed. Found 2026-08-15 while re-arguing Migrator ruling R8 (`wip/migrator-3/README.md` at the workspace root); recorded there as a deferred finding the migrator can *name* but not *fix*, because the fix is a model-design change in this repo, not a gate change. Filed here so it rides the migrator worktree and branch and gets its own pull request when someone picks it up. It is not on the Migrator v3 critical path.
-
-## Problem
-
-Two configuration fields are open mappings keyed by the **user's** names, and each carries a validator that demands **every member of an enum** as a key of every entry:
-
-| Field | Type | Keyed by | Validator | Enum |
-|---|---|---|---|---|
-| `LLMConfig.effort_to_budget_maps` (`pipelex/cogt/config_cogt.py`) | `dict[str, EffortToBudgetMap]` = `dict[str, dict[str, int]]` | reasoning family (`anthropic`, `gemini`, …) | `validate_effort_to_budget_mapping` — raises `ConfigValidationError("Missing reasoning effort levels …")` | `ReasoningEffort` (`none minimal low medium high xhigh max`) |
-| `ImgGenConfig.quality_to_steps_maps` (same file) | `dict[str, QualityToStepsMap]` = `dict[str, dict[str, int]]` | image model (`flux`, `sdxl_lightning`, `qwen_image`, …) | `validate_quality_mapping` — raises `ConfigValidationError("Missing quality levels …")` | `Quality` (`low medium high`) |
-
-Both validators run on the **merged** configuration (`PipelexConfig.model_validate` after every tier is deep-merged), so the rule applies to whatever the user ends up with, packaged defaults included.
-
-**The failure.** A user has a hand-authored override — say `~/.pipelex/pipelex_override.toml` or a project `.pipelex/pipelex.toml` — that adds a map for a family or model the packaged defaults do not know:
-
-```toml
-[cogt.llm_config.effort_to_budget_maps.my_finetune]
-low = 512
-medium = 2048
-high = 8192
-```
-
-That file is valid today only if it names all seven efforts. It is complete on the day it is written. Then a release adds a member to `ReasoningEffort` — which happened on 2026-04-16 when `XHIGH` arrived (`cdabd29a8`), with `pipelex/pipelex.toml` updated in the same commit — and the user's next boot fails with `Missing reasoning effort levels in mapping: {'xhigh'} for target 'my_finetune'`. Nothing in the packaged defaults can rescue them: `deep_update` (`pipelex/tools/misc/json_utils.py`) merges recursively into keys the target *already has*, and the packaged file has no `my_finetune` key to merge beneath.
-
-Users who override a **known** family (`anthropic`) with a sparse map are fine — the deep merge recurses into the packaged `anthropic` dict and the packaged `xhigh` survives. The seeded `~/.pipelex/pipelex.toml` is fine — the kit template (`pipelex/kit/configs/pipelex.toml`) does not carry either map. So the population hit is exactly the users who did the customization the open mapping invites: **their own model, their own family.**
-
-The packaged defaults already pay for the rule in-repo. `pipelex/pipelex.toml:194` reads `none = 0 # Required by validator; unreachable at runtime (level map gates NONE as disabled before budget lookup)` — a dead entry that exists to satisfy the completeness check.
-
-## Why the migration gate cannot catch it, and why that matters
-
-The Migrator's coverage gate (`pipelex/migration/coverage.py`, Phase 1, on `dev` since `052b9df06`) diffs a fingerprint of the schema. It records `effort_to_budget_maps.*.*` as a bare `int` under two wildcard segments — the keys are `str`, so no enum appears on that path. `ReasoningEffort`'s only footprint in the config tree is elsewhere, where an added member is correctly classified as **additive → regenerate the golden, no bump, no entry**. So the gate is green, the changelog says nothing about migration, and the customized user's file breaks. This is the same failure family as value-domain narrowing (R8) — a change the schema calls additive that a validator makes breaking — and it is the case no fingerprint of any shape can see, because the narrowing lives in Python, not in the type.
-
-The asymmetry with the *removal* direction is what makes the "missing" branch the wrong half of the validator. If a member were **removed** from `ReasoningEffort`, the "invalid" branch would fire on old keys — but the migrator can repair that with one wildcard op in the ledger (`delete_key` at `["cogt","llm_config","effort_to_budget_maps","*"]`, key `xhigh`), because removing a key from a user's file is structural. **Adding** a member cannot be repaired by any op in the vocabulary — the migrator will not materialize a value into a user's file, and there is no right value to materialize (a budget for the user's own family is the user's to choose). So the addition direction is exactly the one that must not break the boot.
-
-## Proposed fix
-
-**Drop the "missing" branch of both validators; keep the "invalid" branch.** The invalid branch is a typo guard and stays. Completeness stops being a boot-time invariant and becomes what it already is at the point of use:
-
-- `get_reasoning_budget` already raises `ConfigValidationError("No budget found for reasoning effort '…' and reasoning family '…'")` on a miss.
-- `get_num_inference_steps` already raises `ConfigValidationError("No number of inference steps found for quality '…' and model '…'")` on a miss.
-
-That moves the failure from *every boot, for everyone with a custom key* to *the one call that asks for the missing level, for the one user who omitted it* — later, narrower, and with a message that names the exact key. It also retires the dead `none = 0` entry and its apologetic comment in the packaged file.
-
-**Optionally, on top:** a reserved fallback key so a sparse per-family map is a first-class shape rather than a latent runtime error — `effort_to_budget_maps.default` consulted when the family's map lacks the level. That is a small feature, not part of the bug fix, and it should be its own decision (it reserves a name in the user's key space, which the ledger contract would want recorded).
-
-Not proposed: retyping the inner map as `dict[ReasoningEffort, int]`. It reads better but changes nothing here — the migration fingerprint treats any mapping as an open node and records only the value schema, so the enum would still be invisible on that path, and the completeness rule would still be a validator.
-
-## Test shape
-
-`tests/unit/pipelex/cogt/llm/test_llm_config_reasoning.py` already pins the current behaviour and flips:
-
-- `test_validator_missing_effort_level_raises` → becomes `test_validator_accepts_partial_map`: a map for a custom family carrying a subset of the levels validates.
-- `test_validator_invalid_effort_level_raises` and `test_validator_missing_and_invalid_effort_levels_raises` → the invalid half stays red; the combined case now reports only the invalid keys.
-- New: `get_reasoning_budget` on a family whose map lacks the requested level raises at lookup with the level and family in the message (this is existing behaviour, now the only line of defence, so it deserves its own assertion).
-- Same three shapes for `ImgGenConfig` / `Quality` — there is no test file for `validate_quality_mapping` today; add one beside the LLM one.
-- One boot-shaped test: layered TOMLs (packaged defaults + a temp override carrying `[cogt.llm_config.effort_to_budget_maps.my_family]` with a subset) → `PipelexConfig` validates. This is the user's actual situation, and it is the case the unit tests above do not cover because they build the model directly.
-
-## Where it touches the Migrator
-
-Nothing in `pipelex/migration/` changes. What the migrator does with this finding is *declare* it: R8 adds one sentence to the fingerprint section of `docs/migration-ledger.md` saying that domain narrowing expressed in a validator is not visible from the schema and stays the author's responsibility, and Phase 3's `config-docs` drift-contract `review` list gains the validator sites so a reviewer sees them on every config-docs run. This doc is the fix on the model side, and it can land in either order.
-
-## Note on the reshape
-
-The configuration reshape (`wip/migrator-3/reshape.md`) moves both fields — `cogt.llm_config.effort_to_budget_maps` → `inference.llm.effort_to_budget_maps`, `cogt.img_gen_config.quality_to_steps_maps` → `inference.img_gen.quality_to_steps_maps` — and does not touch the validators. Whoever fixes this should land it as its own small pull request against `dev`, and rebase across the reshape when it merges; the two changes do not conflict in substance, only in path names.
diff --git a/wip/codegen-lint-clean-artifacts.md b/wip/codegen-lint-clean-artifacts.md
deleted file mode 100644
index 8b7b0617f..000000000
--- a/wip/codegen-lint-clean-artifacts.md
+++ /dev/null
@@ -1,281 +0,0 @@
-# Emit lint-clean codegen artifacts
-
-**Status: PR [#1070](https://github.com/Pipelex/pipelex/pull/1070) → `dev`, OPEN.** Branch `fix/Codegen-lint-clean` off `dev` at `8c0b99b3a`. Phases 1–5 done except the release-gated cross-repo sweep (5.4). Local `make agent-check` + full `make agent-test` + `make drift-check` green.
-
-⚠ **Round 2 (2026-07-29) found the lint-clean claim did not hold, and the fixes are not yet committed.** Five input shapes still broke the stamp, one of them a regression this branch introduced. All are fixed and guarded; see [Review rounds](#review-rounds). The two claims that changed shape as a result — `__doc__` is no longer byte-identical to the description, and long lines are now pre-exploded — are ruled decisions (D2, D3 below), not incidental.
-
-## Review guide
-
-Everything above the `---` divider is the record of what shipped. The original plan below it is kept for its reasoning and rejected alternatives — read it for *why the approach is what it is*, not for current state.
-
-### What is in the diff, and why each file belongs
-
-| Area | Files | What changed |
-| --- | --- | --- |
-| **The fix** | `codegen/emitters/python_common.py`, `python_pydantic.py`, `python_structures.py`, `ts_zod.py` | Emit what the formatter wants: builtin generics, `X \| None`, double-quoted `Literal` members, isort-grouped imports (`render_import_block`), mode-aware docstring escaping, prettier-shaped blank lines and import wrapping, and the header-only empty projection (`python_module_body`). |
-| **Runtime generator (D1)** | `core/concepts/structure_generation/generator.py` | Same respelling, so the two paths that render the same resolved-type tree agree. Its output is `exec()`d, never written to disk, so no linter ever saw it — this is a consistency change, not a lint fix. |
-| **A real bug the respelling exposed** | `libraries/library_manager.py` | Concept cycle detection branched on `__origin__`, which a PEP 604 union does not have. **Not scope creep** — see finding 5. |
-| **Repo-side lint config** | `pyproject.toml`, `pipe_run/pipe_run_params.py`, `system/pipelex_service/remote_config_fetcher.py` | Sets `runtime-evaluated-base-classes` (phase 5.1), which retires two hand-written `# noqa: TC001` / `TC003` that were working around the same rule one file at a time. |
-| **Convention gate** | `subject_grants.toml` | Positional-subject grants for the new `_breaks_out_of_docstring` and `render_import_block`. Mechanically required by `make check-keyword-only`. |
-| **Tests** | `tests/unit/pipelex/codegen/*`, `.../structure_generation/test_structure_generator*.py` | The new guard plus the expectation churn from the respelling. |
-| **Docs** | `CHANGELOG.md`, `docs/under-the-hood/codegen-projections.md` | The breaking-bytes notice + the consumer contract. |
-
-### Deliberate — do not flag these
-
-1. **The emitted `python-structures` import order fails *this repo's* own ruff (`I001`) — and running this repo's `ruff --fix` over a generated `structures.py` therefore still breaks its stamp.** That is expected, not a surviving bug. It imports both `pydantic` and `pipelex`, and isort wants opposite orders depending on whether `pipelex` is first-party (here) or a dependency (a consumer's tree) — the two cannot both be satisfied. The emitter targets the consumer, who is the only one who lints these files; this repo commits no generated artifact. The test passes `lint.isort.known-third-party=['pipelex']` for exactly this reason, and so must any manual check — see [Verify it locally](#verify-it-locally). `python-pydantic` imports no `pipelex` and so is config-independent. Full reasoning in finding 1.
-2. **`TC003` is answered by consumer configuration, not by emitted bytes.** Moving `from datetime import date` into `if TYPE_CHECKING:` would break the generated models — pydantic resolves annotations at runtime. See ["`TC003` must not be satisfied by the emitter"](#tc003-must-not-be-satisfied-by-the-emitter).
-3. **`INP001` is suppressed in the test's ruff invocation, not in the bytes.** It is an artifact of pointing ruff at a bare directory, not of file content.
-4. **`class_docstring`'s fully-escaped branch is now reached only by genuinely pathological input** — a description carrying *both* `"""` and `'''`, a control character, or a trailing backslash. A description containing only `"""` falls back to `'''` instead, which keeps it backslash-free and therefore `D301`-clean (see [D2](#d2--docstring-rendering)). The escaped branch does trip `D301`, and that is accepted: ruff classes the fix as unsafe, so `ruff check --fix` never applies it and the stamp holds.
-5. **The empty projection carries no imports at all**, not even `from __future__ import annotations`. A header is the only shape inert under every formatter. See finding 7.
-6. **Emitted bytes change for all three targets — that is the point, and it is breaking.** Anyone holding a committed projection sees drift until they regenerate; the changelog says so and gives the command. See [Blast radius](#blast-radius).
-
-### Where each property is guarded
-
-| Property | Guard |
-| --- | --- |
-| Both Python targets are ruff-clean (`check` + `format --check`) | `test_emitted_artifacts_are_lint_clean.py::test_emitted_artifact_passes_ruff` |
-| The fixture reaches **every** `ResolvedTypeKind`, so a new kind cannot go unlinted | `…::test_fixture_covers_every_resolved_type_kind` |
-| An **empty** projection is ruff-clean for both Python targets | `…::test_empty_projection_is_lint_clean` |
-| The *reachable* empty case — natives-only crate through `python-structures` — is a bare header | `…::test_natives_only_crate_emits_a_lint_clean_structures_module` |
-| TS has no collapsible blank runs (config-independent, always runs) | `…::test_emitted_ts_has_no_collapsible_blank_runs` |
-| An empty TS projection is a bare header (config-independent, always runs) | `…::test_empty_ts_projection_is_a_bare_header` |
-| No emitted TS code line exceeds the print width (config-independent, always runs) | `…::test_emitted_ts_lines_fit_the_print_width` — the guard that actually holds the TS width line in CI. Comment lines are exempt: prettier reflows code, never `//` or `/** … */` contents. |
-| TS is genuinely prettier-clean | `…::test_emitted_ts_is_prettier_clean` — **skipped unless `prettier` is on PATH, which CI does not have** (Python repo, no node toolchain). The three always-on invariants above are what actually hold the TS line in CI; the prettier assertion is a local-run confirmation. Worth knowing before trusting the TS side. |
-| Python stays formatter-stable across the consumer's `line-length`, not just ours | `…::test_emitted_artifact_is_stable_at_every_consumer_line_length` (88–200) |
-| Crate shapes that use no seeded import stay lint-clean | `…::test_crates_that_use_no_seeded_import_are_lint_clean` (all-opaque, refines-native-only) |
-| `inspect.getdoc(cls)` round-trips the authored description | `test_description_escaping.py` |
-| Concept cycle detection still sees optional refs | `test_concept_to_concept_references.py` (this is what caught finding 5) |
-| The runtime generator's new spelling | `tests/unit/pipelex/core/concepts/structure_generation/test_structure_generator*.py` |
-
-### Review rounds
-
-- **Round 1 — greptile, resolved in `c9a7238e4`.** One finding, on `ts_zod.py`: the empty binder stayed formatter-unstable. Confirmed, and wider than reported — all four artifacts degenerate the same way, and the case is reachable from an ordinary method rather than only a degenerate crate. Written up as finding 7. Thread answered and resolved; no other thread was open.
-
-- **Round 2 — `/review` (Claude) + `codex exec`, 2026-07-29.** The central claim did not hold. Reproduced end to end from an ordinary `.mthds` file: `codegen check` reported `[hand-edited]` on a projection nobody had touched. Five shapes, each verified against the real `ruff` / `prettier` binaries rather than argued:
-
- 1. **A multi-line description — a regression this branch introduced.** `_breaks_out_of_docstring` treated a real newline as safe, which is true of the Python *parser* and false of the *formatter*. One-part docstrings tripped `D209`, two-part `D207`; both are safe fixes, and `ruff format` rewrote them too. The previous escaping put the description on one physical line, which trips only `D301` — an *unsafe* fix ruff never applies. So the bytes now changed where they previously survived.
- 2. **A description with edge whitespace** → `D210`, a safe fix. Pre-existing.
- 3. **An all-opaque or refines-native-only crate** → an unused `Field` / `StructuredContent` import, `F401`, a safe fix. Both are ordinary method shapes. (Found by codex; the fixture mixed opaque with fielded concepts, hiding it.)
- 4. **A long description or choice list** → exceeds any `line-length`, and `ruff format` wraps the call. Fires even at this repo's generous 150 columns. (Found by codex.)
- 5. **A long concept code in `ts-zod`** → prettier wraps the `z.infer` alias and the binder signatures; a long choice list expands `z.enum([...])`. Unguarded in CI, since the prettier test skips without a node toolchain.
-
- Fixed on all five, with the rulings recorded as [D2](#d2--docstring-rendering) and [D3](#d3--line-width) below. Verified by sweep rather than by example: 800 Python combinations (crate shape × description shape × target × `line-length` 88–200) and 44 TypeScript files against the real prettier, all clean; the docstring fidelity contract holds across every description shape including the malicious fixture, carriage returns and trailing backslashes.
-
- The two codex bot threads on the PR (`python_common.py:116` P1, `ts_zod.py:311` P2) are both confirmed-and-fixed by this round and still need answering.
-
-### D2 — docstring rendering
-
-For a description with a real newline you can have any two of {exact `__doc__` bytes, no `D301`, stable under `ruff format`}, never all three. **Ruled: render an idiomatic indented docstring**, and move the fidelity contract to the value consumers actually read:
-
-```python
-inspect.getdoc(cls) == inspect.cleandoc(description)
-```
-
-`__doc__` therefore carries the class-body indentation every hand-written docstring carries. Exact bytes still survive in `Field(description=...)` and the crate. A description that cannot sit between `"""` falls back to `'''` rather than backslash-escaping — that is what keeps it `D301`-clean, and `ruff format` rewrites `'''` to `"""` only when doing so needs no escaping, so the choice is stable. Only genuinely pathological input (both triple-quote styles, a control character, a trailing backslash) still escapes, and `D301`'s fix being unsafe means the stamp holds anyway.
-
-### D3 — line width
-
-The consumer's `line-length` is theirs, and we cannot know it. **Ruled: emit anything past 88 columns already exploded, with a magic trailing comma** — the one construct Black and ruff refuse to rejoin at any width (verified 60–200). 88 is ruff's default and therefore the tightest width a consumer is likely to use, and only the tightest threshold is safe. Short lines stay flat, so ordinary artifacts read unchanged and the "ejectable, human-maintainable" bar the plan argues for is preserved.
-
-Below 88 columns a consumer can still rewrap short lines. That is the accepted, documented limit. `E501` on a single long string literal is unavoidable — you cannot wrap a string without altering the author's text — but it has no fix and is not in ruff's default rule set, so it can never break a stamp.
-
-### Verify it locally
-
-Build the rich method from the [reproduction](#reproduce-it-2-minutes-from-this-worktree) below, then lint it **the way a consumer would** — that isort override is not optional, see the trap right after:
-
-```bash
-CONSUMER=(--config pyproject.toml --config "lint.isort.known-third-party=['pipelex']" --config "lint.per-file-ignores={'*'=['INP001']}")
-for t in python-structures python-pydantic; do
- .venv/bin/pipelex codegen types --target $t -o /tmp/lintcheck/$t /tmp/lintcheck/method
- .venv/bin/ruff check /tmp/lintcheck/$t "${CONSUMER[@]}" # → All checks passed!
- .venv/bin/ruff format --check /tmp/lintcheck/$t --config pyproject.toml # → already formatted
- .venv/bin/ruff check /tmp/lintcheck/$t --fix "${CONSUMER[@]}" && .venv/bin/ruff format /tmp/lintcheck/$t --config pyproject.toml
- .venv/bin/pipelex codegen check /tmp/lintcheck/$t # → up to date (the stamp survived)
-done
-```
-
-⚠ **Do not drop the `known-third-party` override when checking `python-structures`.** Under *this repo's* bare config `pipelex` is first-party, so ruff reorders the generated imports, the bytes change, and `codegen check` reports `[hand-edited]` — which looks exactly like the bug still being live. It is not: it is the both-trees isort tension of deliberate item 1, and the emitter deliberately targets the consumer. Verified both ways. `python-pydantic` imports no `pipelex`, so it is config-independent and its stamp survives even under the bare config.
-
-For the empty case, point it at any bundle that declares no concepts of its own:
-
-```bash
-.venv/bin/pipelex codegen types --target python-structures -o /tmp/emptycheck tests/data/packages/standalone_bundle
-cat /tmp/emptycheck/structures.py # stamp + header, nothing else
-.venv/bin/ruff check /tmp/emptycheck --fix --config pyproject.toml && .venv/bin/ruff format /tmp/emptycheck --config pyproject.toml
-.venv/bin/pipelex codegen check /tmp/emptycheck # → up to date
-```
-
-A header-only artifact has no imports for isort to reorder, so this one is clean under any config. All commands above were run against `c9a7238e4` and produce the stated output.
-
-## What the plan did not anticipate (found while implementing)
-
-1. **The isort grouping for `python-structures` cannot satisfy both contexts.** It imports from *both* `pydantic` and `pipelex`. In a consumer's tree `pipelex` is an installed dependency (third-party — merged group, `pipelex` before `pydantic`); in this repo it is first-party (separate group, after `pydantic`). Verified empirically both ways. **Resolution: emit for the consumer** — they are the only ones who lint generated artifacts, and this repo commits none. The regression test lints with `lint.isort.known-third-party=['pipelex']` for that reason, and `render_import_block` carries the rationale.
-2. **`D301` is auto-fixed and byte-changing, and a plain double quote in a description triggered it.** `escape_py_string` backslash-escaped `"` into the docstring, so a description as ordinary as `The "primary" thing` produced `"""The \"primary\" thing"""` → `ruff check --fix` rewrites to `r"""` → stamp broken *and* text corrupted. Fixed with minimal, mode-aware docstring escaping. ⚠ **Superseded by [D2](#d2--docstring-rendering) in round 2** — the fidelity claim originally recorded here (exact description↔`__doc__` bytes) turned out to be incompatible with formatter stability for a multi-line description, and the contract is now `inspect.getdoc(cls) == inspect.cleandoc(description)`.
-3. **The imprecision caveat was emitted as a literal `\n`**, not a paragraph break — the multi-line docstring intent was defeated.
-4. **`"Foo" | None` is a `TypeError`** in the runtime generator: it has no `from __future__ import annotations`, so concept refs are *quoted* forward references and `str` has no `|`. The union is folded inside the quotes. Only a bare quoted ref is affected; `list["Foo"] | None` is a real `GenericAlias`.
-5. **The respelling silently disabled concept cycle detection.** `_detect_concept_cycles` walks the generated model's annotations and branched on `__origin__`, which a PEP 604 `X | None` (`types.UnionType`) does not have — so every optional concept reference vanished from the graph. The pre-existing TODO on that function warned about exactly this coupling. Fixed by branching on `__args__`; the 6 integration tests in `test_concept_to_concept_references.py` are what caught it.
-6. **`ts-zod` does have the analogous collision** (Phase 4's open question): prettier reformatted both emitted files. Two causes — the Python two-blank-line idiom (prettier always collapses, config-independent) and the always-wrapped binder import (prettier keeps it inline while it fits its print width). Both fixed.
-7. **The empty projection was the same bug in miniature** (raised in review, fixed on this branch). Every artifact assembles as `header + imports + separator + blocks`, which degenerates when `blocks` is empty: the import block has nothing left to use it (unused-import, which `ruff check --fix` deletes) sitting above a trailing blank-line run (`ruff format` collapses it), and `binder.ts` bottoms out at `import { } from "./types";`. **It is not a degenerate-input-only case:** `python-structures` filters natives, so an ordinary method declaring no concepts of its own — a `Text -> Text` pipe — reaches it. Resolution: an empty projection is its **header alone**, assembled in one place for Python (`python_module_body`, which also absorbed the body-assembly line both emitters duplicated) and guarded inline at the two `ts_zod` call sites.
-
-Also: adding `runtime-evaluated-base-classes` to this repo retired two hand-written `# noqa: TC001` / `# noqa: TC003` suppressions that were working around the same rule file by file.
-
----
-
-**Original plan below, kept for the reasoning and the rejected alternatives.**
-
-**Where to work:** this worktree (`pipelex/`, on `dev`). Branch off `dev` — e.g. `fix/Codegen-lint-clean` — and open a normal PR back to `dev`. Nothing here is specific to any feature track.
-
-**Decision already taken (Louis, 2026-07-29):** emit what our linter wants, and code that matches our Python standards. The two turn out to be the same thing for every rule in play. The alternatives (hash a normalized body; tell consumers to exclude generated paths) are **rejected** — see [Why not the alternatives](#why-not-the-alternatives).
-
----
-
-## The problem in one paragraph
-
-`pipelex codegen types` writes a stamped artifact whose stamp is a raw SHA-256 over the body's UTF-8 bytes (`compute_content_hash`, `pipelex/codegen/stamp.py:80`). The emitted body is not what `ruff` wants, so the moment a consumer runs `ruff check --fix` or `ruff format` over their tree, the bytes change, the hash no longer matches, and `pipelex codegen check` reports the file as **hand-edited** — accusing the user of the one thing they did not do. It is silent until someone runs `codegen check`. Our own `pipelex-starter-python` already papers over this with an exclusion (see [Blast radius](#blast-radius)), which is the tell that the emitter, not the consumer, is wrong.
-
-## Reproduce it (2 minutes, from this worktree)
-
-```bash
-mkdir -p /tmp/lintcheck/method && cat > /tmp/lintcheck/method/rich.mthds <<'EOF'
-domain = "lintcheck"
-description = "Exercises every emitted annotation kind"
-main_pipe = "make_record"
-
-[concept.Record]
-description = "A record with many field kinds"
-
-[concept.Record.structure]
-name = { type = "text", description = "Name", required = true }
-published = { type = "date", description = "Publication date", required = true }
-tags = { type = "list", item_type = "text", description = "Tags", required = true }
-counts = { type = "dict", key_type = "text", value_type = "integer", description = "Counts", required = true }
-status = { choices = ["draft", "final"], description = "Status", required = true }
-note = { type = "text", description = "Optional note" }
-
-[pipe.make_record]
-type = "PipeLLM"
-description = "Build a record"
-inputs = { topic = "Text" }
-output = "Record"
-model = "$writing-factual-cheap"
-prompt = "Make a record about $topic"
-EOF
-
-for t in python-structures python-pydantic; do
- .venv/bin/pipelex codegen types --target $t -o /tmp/lintcheck/$t /tmp/lintcheck/method
- echo "--- $t ---"
- .venv/bin/ruff check /tmp/lintcheck/$t --config pyproject.toml
- .venv/bin/ruff format --check /tmp/lintcheck/$t --config pyproject.toml
-done
-```
-
-Then confirm the stamp actually dies:
-
-```bash
-.venv/bin/ruff check /tmp/lintcheck/python-structures --fix --config pyproject.toml
-.venv/bin/pipelex codegen check /tmp/lintcheck/python-structures
-# → [hand-edited] structures.py — Body was edited below the stamp (stamp hash no longer matches).
-```
-
-⚠ **Use a method with varied field kinds, like the one above.** A method whose fields are all `text` makes `python-pydantic` look clean and makes `ruff format` look harmless. Both impressions are wrong, and both were believed at first.
-
-## What actually fires — measured, not assumed
-
-| rule | what it does | `python-structures` | `python-pydantic` | fix belongs in |
-| --- | --- | --- | --- | --- |
-| `UP006` | `List[X]`/`Dict[K,V]` → `list[X]`/`dict[K,V]` | ✅ fires | — (already builtin) | **emitter** |
-| `UP045` | `Optional[X]` → `X \| None` | ✅ fires | — (already `\| None`) | **emitter** |
-| `Q000` | `Literal['a','b']` → `Literal["a","b"]` | ✅ fires | ✅ fires | **emitter** |
-| `I001` | import block regrouped (stdlib / third-party / first-party, blank lines between) | ✅ fires | ✅ fires | **emitter** |
-| `ruff format` | would reformat | ✅ reformats | ✅ reformats | **emitter** |
-| `TC003` | move `from datetime import date` into an `if TYPE_CHECKING:` block | ✅ fires | ✅ fires | **NOT the emitter — see below** |
-| `INP001` | "implicit namespace package, add `__init__.py`" | fires in a bare dir | fires in a bare dir | neither — artifact of linting a loose directory, not of file content |
-
-**Both Python targets are affected.** `python-pydantic` is *closer* — it already uses builtin generics and `X | None` — but it is not clean.
-
-### `TC003` must not be satisfied by the emitter
-
-Moving the import into `if TYPE_CHECKING:` would **break the generated code**: pydantic resolves annotations at runtime to build validators, so `date` must be a real runtime import. Ruff has a first-class setting for exactly this, and it silences `TC003` for both targets — verified:
-
-```toml
-[tool.ruff.lint.flake8-type-checking]
-runtime-evaluated-base-classes = [
- "pydantic.BaseModel",
- "pipelex.core.stuffs.structured_content.StructuredContent",
-]
-```
-
-This is **consumer/repo configuration**, not emitted content. It goes in our docs and our starter template, and this repo should set it too (it currently does not).
-
-## Why the two asks coincide
-
-Every emitter-side rule above moves the output *toward* `.claude/rules/python-standards.md`: lowercase builtin generics (`list[]`, `dict[]`), `X | None` over `Optional[X]`, double quotes, sorted-and-grouped imports. There is no tension between "what ruff wants" and "our standards" here — satisfying one satisfies the other.
-
-## Decisions to settle before coding
-
-- **D1 — SETTLED (Louis, 2026-07-29): YES, change it too.** Does the runtime `StructureGenerator` change spelling too? `pipelex/core/concepts/structure_generation/generator.py:296` emits `Optional[{python_type}]`, and `python_structures.py`'s module docstring justifies its own spelling as mirroring that "runtime idiom". **The runtime generator's output is never written to disk** — `concept_factory.py` is its only caller and it `exec()`s the source — so no linter ever sees it and it is under no pressure to change.
- **Recommended: change it too.** It costs a handful of test updates (`tests/unit/pipelex/core/concepts/structure_generation/test_structure_generator*.py` pin `Optional[`), it keeps the two paths spelled alike so the emitter's docstring stays true, and it brings the runtime generator in line with the repo's own standards. If D1 goes the other way, the `python_structures.py` docstring **must** be rewritten to say the AOT projection deliberately diverges because only it is linted — do not leave a false rationale in place.
-- **D2 — one PR or two?** Recommended: **one**. The emitter change and the runtime-generator change are independently correct but share the test-update surface and the changelog entry.
-
-## Phases
-
-### Phase 1 — make the emitters emit it
-
-- [ ] 1.1 `pipelex/codegen/emitters/python_structures.py`: in `_annotation`, `List[...]` → `list[...]` and `Dict[str, ...]` → `dict[str, ...]`, dropping the `from typing import List` / `Dict` additions; in `_render_field`, `Optional[X]` → `X | None`, dropping the `from typing import Optional` addition.
-- [ ] 1.2 `Literal` choices in **both** Python emitters: emit double-quoted members (`repr()` yields single quotes today — use an explicit double-quoting helper, and put it in `python_common.py` since both targets need it).
-- [ ] 1.3 Import block in **both** emitters: `"\n".join(sorted(imports))` sorts raw strings, which is not isort order. Emit isort-grouped blocks — stdlib, third-party, first-party — separated by a blank line. Consider a small shared `render_import_block()` in `python_common.py`; both call sites are identical today.
-- [ ] 1.4 Re-run the reproduction. `ruff check` must report only `INP001` (the loose-directory artifact) and `ruff format --check` must report "already formatted", for both targets, on the rich method.
-- [ ] 1.5 Update the `python_structures.py` module docstring — the "runtime idiom" sentence is now either satisfied by D1 or falsified by it.
-
-### Phase 2 — the runtime generator (gated on D1 = yes)
-
-- [ ] 2.1 `structure_generation/generator.py`: same three spellings (`Optional` → `| None`, `List`/`Dict` → builtins), and drop the now-unused `typing` imports from its own import line.
-- [ ] 2.2 Update `tests/unit/pipelex/core/concepts/structure_generation/test_structure_generator*.py` for the new expected source text.
-
-**🛑 CHECKPOINT 1** — emitters and generator produce the new bytes, and every existing test is updated to match. Gates: `make agent-check` + full `make agent-test`. Do not start phase 3 in the same session; the test-expectation churn is the bulk of the work and is worth landing on its own.
-
-### Phase 3 — the regression test that would have caught this
-
-- [ ] 3.1 Add `tests/unit/pipelex/codegen/test_emitted_artifacts_are_lint_clean.py`: generate a projection covering **every** `ResolvedTypeKind` (text, number, integer, boolean, date, datetime, time, literal, concept, list, dict, any) plus an optional field and an opaque/structureless concept, for **each** Python target, then run `ruff check` and `ruff format --check` over it with this repo's own config and assert zero findings.
-- [ ] 3.2 Suppress the two non-content rules in the test's invocation rather than in the emitted bytes: `INP001` (loose directory) and `TC003` (needs `runtime-evaluated-base-classes`, which the test should pass so it exercises the configuration we tell consumers to use).
-- [ ] 3.3 Make the fixture method the **single source** for the type-kind coverage, so a new `ResolvedTypeKind` that nobody adds to it is visible. A test asserting the fixture covers every enum member is cheap and worth it.
-
-### Phase 4 — the TypeScript target
-
-- [ ] 4.1 Answer the open question: does `ts-zod` have the analogous collision with prettier / eslint? Nothing has checked. If it does, fix it the same way and extend the phase-3 test.
-
-**🛑 CHECKPOINT 2** — the property is guarded for every target, not just repaired once.
-
-### Phase 5 — consumers and docs
-
-- [ ] 5.1 Set `runtime-evaluated-base-classes` in **this** repo's `pyproject.toml` (`[tool.ruff.lint.flake8-type-checking]`) — we do not set it today.
-- [ ] 5.2 Document the consumer contract: generated artifacts are lint-clean by construction, here is the one ruff setting you need, and you should **no longer** need to exclude generated paths.
-- [ ] 5.3 CHANGELOG: emitted bytes change for both Python targets. Breaking for anyone with a committed projection — their next `codegen check` reports drift until they regenerate. Say so plainly and give the one-line regeneration command.
-- [ ] 5.4 Cross-repo sweep, **release-gated** (needs the new `pipelex` released first):
- - `pipelex-starter-python/piper/generated/` — three committed `python-pydantic` projections (`summarize_pdf`, `extract_entities`, `generate_image`), all stamped `engine_version = "0.38.0"`. Regenerate, then **delete the `piper/generated` exclusion** from its `[tool.ruff] exclude` — that line, comment and all, is the bug's monument and should not survive this change.
- - `pipelex-cookbook/` — grep for `codegen.lock`; none as of 2026-07-29, but check again at sweep time.
-
-**🛑 CHECKPOINT 3 = done** — no consumer needs a lint exclusion to keep a stamp valid.
-
-## Blast radius
-
-- **Emitted bytes change for both Python targets.** Anyone holding a committed projection sees `codegen check` report drift until they regenerate. That is the intended, one-time cost.
-- **`test_pure_build_and_disk_write_agree_byte_for_byte` does NOT need re-baselining.** It is a self-consistency check (pure build vs. disk write) over synthetic fixture files, not a golden-file test. Only tests that pin *expected emitted text* need updating — `tests/unit/pipelex/codegen/test_python_structures_emitter.py`, the `Literal`-quoting assertions in the pydantic/ts emitter tests, and (under D1) the runtime-generator tests.
-- **`pipelex-starter-python` is a live instance of the bug.** Its `pyproject.toml` carries `"piper/generated", # generated by \`pipelex codegen\` — reformatting would trip the codegen.lock drift check`. We shipped the workaround in our own template rather than fixing the emitter.
-- **Not affected:** the crate fingerprint, the lock format, `codegen check`'s logic, and the HTTP codegen route's contract. This changes only what the emitters write.
-
-## Why not the alternatives
-
-- **Hash a normalized body.** Weakens the stamp from "byte-identical" to "semantically unchanged", and the normalizer becomes its own compatibility surface that has to agree across versions and languages. It also leaves the emitted code below the ejectability bar — code the project's own linter wants to rewrite on sight is not code we can call idiomatic and human-maintainable.
-- **Tell consumers to exclude generated paths.** This is today's de-facto answer and it is why the bug survived: the exclusion is invisible, it must be copied into every consumer repo, and anyone who misses it gets an error message accusing them of hand-editing. It also does nothing for the quality bar.
-
-## Cold-start brief
-
-Read this file top to bottom, then:
-
-1. `cd` to this worktree (`pipelex/`, on `dev`), `git pull`, `make install` if the venv is stale.
-2. Run the [reproduction](#reproduce-it-2-minutes-from-this-worktree) to see the failure with your own eyes and confirm the rule table still matches.
-3. Settle **D1** with Louis if it is not already recorded here, then start at Phase 1.
-4. Branch off `dev` first — do not work on `dev` directly for this.
-
-The two emitters are near-identical twins (`pipelex/codegen/emitters/python_structures.py` and `python_pydantic.py`, ~110 lines each) sharing `python_common.py` and the neutral `resolve_structure_fields` layer. Read all three before editing; most of Phase 1 is deciding what belongs in the shared module.
diff --git a/wip/codegen/sdk-followups.md b/wip/codegen/sdk-followups.md
deleted file mode 100644
index 07f3597ec..000000000
--- a/wip/codegen/sdk-followups.md
+++ /dev/null
@@ -1,224 +0,0 @@
-# Codegen follow-ups from the `@pipelex/sdk` `runCodegenCheck` port (PR #31 review triage)
-
-> **ARCHIVED from the repo-root `TODOS.md` on 2026-08-19 — the code work is complete, the release gate is not.** Phases 1 through 5 shipped on `feature/Codegen-followups` (PR #1127): U1–U5 are implemented, tested, documented and swept. What remains open is not code but the `@pipelex/sdk` release gate — until an SDK that tolerates `lock_version` is *published*, the very release that fixes U3 triggers the failure U3 describes in every pinned consumer's CI, because their `rejectUnknownKeys` hard-throws on the new key. Pick that up from the "Cross-repo" and checkpoint sections below rather than re-deriving it. Moved off the repo root because the root tracker belongs to whatever work is currently in flight, and this work is waiting on a publish rather than on a keyboard.
->
-> **Paths below are relative to the repository root, not to this file's own directory** — they were written while this document sat at the root and are deliberately left as they were.
-
-Source: `../pipelex-sdk-js/wip/pr-31-review-notes.md` → "Upstream follow-ups". The SDK team built a second implementation of the offline codegen check and surfaced five upstream items (U1–U5) plus one spec item (S1). All five upstream claims were **verified against this repo's code on `feature/Codegen-followups` (base `d28e703e3`, v0.46.4) and confirmed accurate** — file/line references, reasoning, and proposed fixes all check out. Every U-item is work in **this repo**; S1 is not (see the cross-repo section at the end).
-
-Triage verdict per item:
-
-| Item | Verdict | Owner | Action |
-|---|---|---|---|
-| U1 — stamp parser accepts uncommented header lines | **Confirmed** | this repo | fix (Phase 1) |
-| U5 — `_parse_options` accepts `NaN`/`Infinity` | **Confirmed** | this repo | fix (Phase 1) |
-| U2 — the two check loops sort by different rules | **Confirmed** | this repo | fix (Phase 2) |
-| U4 — Windows artifacts written CRLF while hashes are over LF | **Confirmed** (by code reading; not reproduced on a Windows host — we have no Windows CI) | this repo | fix (Phase 3) |
-| U3 — any new `codegen.lock` key is a hard break for every pinned client | **Confirmed** | this repo (format owner) | fix: add `lock_version` (Phase 4) |
-| S1 — spec under-specifies what a second implementation needs | **Confirmed** (demonstrated by the SDK port) | workspace `docs/specs/` + `conformance/` — **not this repo** | recorded below, not planned here |
-
-Cross-repo sequencing constraint, stated once: `src/codegen-check.ts` in `pipelex-sdk-js` is a byte-for-byte verdict mirror of `pipelex/codegen/`. Parser **tightenings** (U1, U5) land here first, the SDK follows — the SDK must never be stricter than the CLI it mirrors (their review already defers to us on exactly this ground). The lock **format change** (U3) is the reverse: the SDK's reader must tolerate the new key *before* a pipelex release starts writing it, because `rejectUnknownKeys` turns an unknown lock key into a hard no-verdict throw in every consumer's CI. U2 and U4 need no coordination (U2 converges toward the SDK's existing full-string sort; U4 is invisible to the SDK, which already normalizes newlines).
-
----
-
-## Cold start — read this first
-
-**Status: Phases 1–5 done and committed (Checkpoint 4 reached). All five upstream items are implemented, tested, documented and swept. What is left is not code and it is one thing: the SDK follow-up has been delivered into `pipelex-sdk-js`, but an `@pipelex/sdk` that tolerates `lock_version` must be *published* before this branch's release. Every PR #31 thread is resolved; nothing there is waiting on a reply. See the end of Phase 5.**
-
-**Where the work is.** Branch `feature/Codegen-followups` in `pipelex/`, cut from `d28e703e3` (v0.46.4). Phase 1 is one commit, Phases 2–3 a second, Phase 4 a third, Phase 5 a fourth. The branch is pushed and open as PR #1127 against `dev` (never `main`), with every CI check green.
-
-**Verify the tree is green before touching anything** (about a minute):
-
-```bash
-git add -A && make agent-check
-.venv/bin/pytest -n auto -m "(dry_runnable or not (inference or llm or img_gen or extract or search)) and not pipelex_api" -o log_level=WARNING --tb=short -q tests/unit/pipelex/codegen/ tests/integration/pipelex/codegen/
-```
-
-**What Phases 1–3 already changed — do not redo any of it:**
-
-| File | What is in it now |
-|---|---|
-| `pipelex/codegen/stamp.py` | the comment-prefix gate in `parse_stamped`, the simplified `_parse_fields`, and `_reject_json_constant` wired into `_parse_options` through `parse_constant` |
-| `tests/unit/pipelex/codegen/test_stamp.py` | new tests at the end of `TestStamp` (one of them parametrized over the non-standard JSON constants) |
-| `tests/unit/pipelex/codegen/test_check.py` | `test_uncommented_line_injected_into_the_header_is_hand_edited_drift` at the end of `TestCheck` |
-| `subject_grants.toml` | the grant for `pipelex/codegen/stamp.py::_reject_json_constant` |
-| `docs/under-the-hood/codegen-projections.md` | two paragraphs under § Stamps — the header-strictness rules and the forward tolerance |
-| `CHANGELOG.md` | one `## [Unreleased]` → `### Fixed` entry — **extend it, do not add a second bullet per phase** |
-| `pipelex/codegen/check.py` | `_find_orphans` returns `sorted(orphans, key=…path)`, and `run_codegen_check`'s docstring states the ordering contract |
-| `pipelex/tools/misc/file_utils.py` | `save_text_to_path` writes `newline="\n"`, with the rationale in its (now raw) docstring |
-| `tests/unit/pipelex/tools/misc/test_save_text_to_path.py` | new module — the LF tripwire, the CRLF-verbatim case, and a reader round-trip |
-| `pipelex/codegen/lock.py` | `CODEGEN_LOCK_VERSION`, the `lock_version` field, `_reject_unknown_lock_version` called **before** `model_validate`, the `except CodegenLockError: raise` passthrough, and the evolution policy in the module docstring |
-| `tests/unit/pipelex/codegen/test_lock.py` | the `_LEGACY_LOCK_WITHOUT_VERSION` fixture and the version tests at the end of `TestLock` |
-| `tests/unit/pipelex/codegen/test_emission.py` | the two regeneration tests (legacy lock relocked; newer-version lock replaced) |
-| `.badges/tests.json` | refreshed to the new collected-test count (repeat after every test-adding phase) |
-
-**Five traps this repo sets, every one of them hit during Phase 1:**
-
-1. **`drift-check` reads the git index, not the working tree.** It runs inside `make agent-check`, so `git add -A` before checking or it reports a false green on unstaged work.
-2. **`make agent-check` runs the keyword-only auto-fixer**, which silently makes an ungranted positional subject keyword-only. Any new function whose first parameter must stay positional — a callback a framework invokes, which is exactly what `_reject_json_constant` is — needs `make subject-grant FUNC="<path>::<qualname>" RATIONALE="…"` recorded **before** the first check run. Put no backticks in the rationale: `make` executes them and they vanish.
-3. **`make check-test-badge` is in no local aggregate.** Any commit that adds tests passes both local gates and fails CI until `.badges/tests.json` is set to what `make test-count` prints.
-4. **Write the tests red first and watch them fail against current code.** Phase 2's ordering test proves nothing unless its fixture holds the adversarial `models/` -beside- `models.py` pair; mutation-test it by reverting the sort.
-5. **Each phase carries its own doc edit and extends the same `## [Unreleased]` entry.** Phase 5 is the sweep that verifies nothing was missed — not the place to write all of it for the first time.
-6. **Ruff `D301` rejects a docstring containing a backslash unless it is raw.** Phase 3's newline docstrings tripped it; prefix them `r"""` and write single backslashes rather than doubling them.
-
-**Pointers below name symbols rather than line numbers, which drift with every edit to these files** (the numbers this document originally carried were all taken against the branch base `d28e703e3`, and this work's own diff moved every one of them): `check.py` → the `sorted(lock.hash_by_path().items())` loop in `_check_locked_artifacts`; `file_utils.py` → the `write_text(..., newline="\n")` call inside `save_text_to_path`; `lock.py` → the two `extra="forbid"` model configs (`CodegenLockEntry` and `CodegenLock`) and the `encode_lock` / `load_lock` pair; `stamp.py` → `_parse_fields` and `_parse_options`. The `stamp.py` pair is cited inside Phase 1 as the code **before** the fix — kept for the record, since that work is done.
-
----
-
-## Phase 1 — Stamp parser tightenings (U1 + U5) — **DONE**
-
-Both are strictness fixes in `pipelex/codegen/stamp.py`, both turn a malformed stamp into `parse_stamped(...) -> None`, which `_check_present_artifact` already reports as a `hand-edited` drift ("Stamp header is missing or unparseable"). No new error class, so no `gei`/`gep` run needed.
-
-### U1 — reject uncommented lines inside the stamp header
-
-Confirmed: `_parse_fields` (`pipelex/codegen/stamp.py`) has an `else raw_line.strip()` fallback that silently swallows any header line not starting with the comment prefix, and nothing in `parse_stamped` or `check.py` compensates. An artifact with `throw new Error("edited");` injected between the stamp markers parses fine and reports CURRENT, because the body is sliced below the end marker so its hash is untouched. The SDK notes are also right that this is *not* a security boundary (no signature/MAC anywhere; the defence is diff review) — this is a correctness tidy-up, but a cheap and worthwhile one: an executable line hiding inside a `DO NOT EDIT` block should not verify as pristine.
-
-Implementation, in `parse_stamped` immediately after the `header_region` slice:
-
-```python
-if any(not line.startswith(comment_prefix) for line in header_region.splitlines()):
- return None
-```
-
-Then simplify `_parse_fields`: the `else raw_line.strip()` fallback is dead once the gate exists — drop it, so the function reads `stripped = raw_line[len(comment_prefix):].strip()` unconditionally.
-
-Verified safe on shape: `apply_stamp` emits `[begin] + [f"{prefix} {key}: {value}" ...] + [end]` — every header line carries the prefix, no blank lines. So the gate rejects no stamp we ever wrote. An empty `header_region` passes vacuously and then fails on the missing `projection` field, as today.
-
-Tests (`tests/unit/pipelex/codegen/test_stamp.py`, plus one check-level test in `test_check.py`) — write them red first against current code where possible (TDD):
-
-- An uncommented line injected between the markers → `parse_stamped` returns `None`. (Red today.)
-- A blank line injected inside the header → `None`. (Red today.)
-- A *commented* unknown field line (`# future_field: value`) still parses — pins the additive tolerance of the stamp header in the forward direction, so U3's evolution policy ("stamp additions never need a version") stays true and cannot be silently reversed by a later over-tightening.
-- Check-level: a locked tree whose artifact carries an injected uncommented header line → exactly one drift, category `hand-edited`. (Red today — this is the SDK's reproduction, ported.)
-
-### U5 — reject `NaN` / `Infinity` in the stamp's `options` JSON
-
-Confirmed: `_parse_options` (`pipelex/codegen/stamp.py`) uses a bare `json.loads`, which accepts Python's non-standard `NaN` / `Infinity` / `-Infinity` literals. No conformant JSON parser (JavaScript included) does, so a stamp carrying one is CURRENT to us and `hand-edited` to the SDK — the one differential where the SDK is the stricter side. Unreachable with today's emitter (`options` is `dict[str, str]` and `json.dumps` never emits those literals for string values), but the stamp header is a cross-language interchange format and should not be able to contain something only Python can read. Costs one argument.
-
-Implementation:
-
-```python
-def _reject_json_constant(value: str) -> NoReturn:
- msg = f"Non-standard JSON constant in stamp options: {value}"
- raise ValueError(msg)
-```
-
-and in `_parse_options`, `json.loads(options_raw, parse_constant=_reject_json_constant)` with the existing `except` widened from `json.JSONDecodeError` to `ValueError` (its superclass, so the one clause catches both).
-
-Tests: `options: {"x": NaN}` and `options: Infinity` in a stamp → `parse_stamped` returns `None` (red today); a normal `options: {}` and a populated string-valued object still parse (green guard).
-
-**Checkpoint 1 — REACHED (2026-08-19), committed on `feature/Codegen-followups`.** Both tightenings landed with red→green tests. `make agent-check` clean; `tests/unit/pipelex/codegen/`, `tests/integration/pipelex/codegen/` and the whole CLI unit/integration/e2e set green. Full `make agent-test` stays deferred to Checkpoint 2, as planned.
-
-Three things the plan above did not anticipate, all now folded into the cold-start section as reusable traps:
-
-- `_reject_json_constant` is a callback `json.loads` invokes positionally, so it needed a subject grant (trap 2).
-- Phase 1 carried its own doc edit and its own `## [Unreleased]` changelog entry — later phases extend that entry rather than adding one each (trap 5).
-- `.badges/tests.json` needed refreshing for the added tests (trap 3).
-
-One behavior verified and deliberately left alone: `_preflight_destinations` in `emission.py` also calls `parse_stamped`, so an **untracked** file whose header now fails the gate is treated as unowned and refuses to be overwritten. That is the conservative direction, and the same behavior class already existed for other unparseable stamps, so it is not a regression — but it does mean a tampered orphan is reported by the check as "remove or regenerate" while regeneration itself declines to clobber it. Noted here in case Phase 5's sweep wants to say something about it. **It did** — Phase 5 pinned it with a test and named the seam in the docs and the changelog; see there.
-
-Phases 2–4 remain independent of Phase 1 and of each other.
-
----
-
-## Phase 2 — Unify drift ordering across the check's two loops (U2) — **DONE**
-
-Confirmed: `_check_locked_artifacts` (`pipelex/codegen/check.py`) iterates `sorted(lock.hash_by_path().items())` — a plain `str` sort over the whole relative path — while `_find_orphans` iterates `_iter_stampable_files`, a pre-order DFS doing `sorted(directory.iterdir())` per level, which is a path-*component* sort. For a tree holding `models/` beside `models.py`, the two halves of one report order paths by different rules (`models/foo.py` before `models.py` component-wise; the reverse string-wise). The reference is internally inconsistent, and the SDK cannot mirror both rules with one comparator.
-
-Decision (ours to make, as the reference): **unify on the plain full-string sort**, the rule the locked-artifact loop already uses. Rationale: it matches `build_lock`'s "artifacts sorted by path" ordering in the lock file itself, it is the rule the SDK already implements for both of its loops (so upstream converges toward the mirror instead of forcing a component-wise comparator on every future client), and it is the cheaper spec sentence for S1 to eventually pin.
-
-Implementation: keep `_iter_stampable_files` exactly as is (its DFS order is a *traversal* concern — deterministic pruning and filesystem walking — not a *report* concern); in `_find_orphans`, return `sorted(orphans, key=lambda drift: drift.path)` instead of the raw accumulation order. One line. Then state the now-real guarantee where the SDK had to reverse-engineer it: extend the `run_codegen_check` docstring with the ordering contract — locked-artifact drifts first in path order, then orphans in path order, at most one drift per locked path with `hand-edited` outranking `modified`. (That last property is already structural in `_check_present_artifact`; writing it down is S1 support, zero behavior change.)
-
-Tests (`tests/unit/pipelex/codegen/test_check.py`): `test_drifts_are_ordered_locked_first_then_orphans_each_by_path` asserts the full `[(path, category), ...]` sequence.
-
-⚠ **The fixture this plan originally proposed could not go red**, and the correction is worth keeping. Orphans at `models/foo.py` and `a.py` sort identically under both rules (`a.py` precedes `models/foo.py` either way), so that tree proves nothing. The two rules only diverge on a **directory sitting beside a file whose name extends it**: the DFS descends into `sub/` before reaching `sub.py` because `"sub" < "sub.py"`, while a full-string sort puts `sub.py` first because `.` (0x2E) precedes `/` (0x2F). The adversarial pair must therefore be **two orphans**, `sub.py` and `sub/foo.py` — the locked `models.py` cannot play that role, since a locked path is never an orphan.
-
-The fixture as landed: locked `models.py` restamped-but-not-relocked (a `modified` drift — `_restamp_without_relocking`, a new helper, builds a self-consistent stamp via `build_stamped_projection` and writes the artifact only), locked `types.ts` deleted (`missing`), and the two orphans. `types.ts` sorts *after* both orphans yet is asserted first, so the test pins the loop boundary as well as the sort. Verified red before the fix, failing at exactly index 2 (`sub/foo.py` where `sub.py` belonged) with indices 0–1 already passing.
-
-Worth noting for Phase 5: `modified` had no test coverage at all before this — every prior drift test exercised `missing`, `hand-edited` or `orphan`.
-
----
-
-## Phase 3 — Emit LF artifacts on every platform (U4) — **DONE**
-
-Confirmed: `save_text_to_path` (`pipelex/tools/misc/file_utils.py`) is `path.write_text(text, encoding="utf-8")`; with the default `newline=None`, Python translates `\n` to `os.linesep`, so on Windows every emitted artifact is CRLF on disk while `compute_content_hash` hashed the in-memory LF string. The *verdict* survives (reads come back through universal-newline translation, and `_write_if_changed` compares translated text on both sides), but `apply_stamp`'s own docstring claim — regeneration "writes byte-identical output" — holds only per-platform: a mixed Windows/Linux team sees the generated tree churn in git when nothing changed. Reasoned from documented `write_text` behavior, not reproduced (macOS `os.linesep` is `\n` and we have no Windows CI); the reasoning is airtight enough to act on.
-
-Decision: fix it **globally in `save_text_to_path`** — `path.write_text(text, encoding="utf-8", newline="\n")` — rather than only at codegen's write site. Every caller (JSON via `json_utils`, the `build` command outputs, codegen inputs templates, codegen artifacts + lock) writes product text artifacts meant to be platform-independent; none wants `os.linesep`. One site, one behavior, no divergent write paths to remember. Update the function's docstring to state the LF guarantee.
-
-Tests: new module `tests/unit/pipelex/tools/misc/test_save_text_to_path.py` (there were none for this function). Three cases — no `\r` reaches the disk; text that deliberately carries `\r\n` round-trips byte-for-byte rather than being doubled to `\r\r\n` (the failure mode of the *default* write, which translates only the `\n`); and a round-trip through `load_text_from_path`.
-
-Stated honestly in the docstrings: **these are tripwires, not discriminating tests.** On POSIX `os.linesep` is already `\n` and CPython's C `TextIOWrapper` has no write-translation path at all, so they pass with or without the fix and cannot be mutation-tested here. They go red the day a Windows runner appears or the `newline` argument is dropped. Swept for platform-newline assumptions elsewhere: no `os.linesep` anywhere in `pipelex/` or `tests/`, and no existing test asserts platform newlines.
-
-**Checkpoint 2 — REACHED (2026-08-19), committed on `feature/Codegen-followups`.** Both phases landed with the ordering test written red first. `make agent-check` clean, `make check-test-badge` refreshed to the new count, and the full `make agent-test` green.
-
-Two things found along the way that the plan did not anticipate:
-
-- **The proposed Phase 2 fixture was not discriminating** — see the ⚠ note in Phase 2 above. Trap 4 in the cold-start section was right that the fixture is where this test lives or dies; it just named the wrong pair.
-- **A sibling of U4 exists outside codegen and is deliberately NOT fixed here** (a pre-existing bug, reported to Louis rather than folded into this diff). `fix_all_violations` in `pipelex/cli/dev_cli/commands/keyword_only_guard.py` reads each source file with `path.read_text(encoding="utf-8")` and writes it back with `path.write_text(...)`, neither passing `newline`. The read translates `\r\n` to `\n`, so the CRLF-preservation logic in `fix_source` — which `test_crlf_line_endings_preserved_and_fixed` pins byte-for-byte, and whose docstring says a regression "would corrupt every Windows-authored file the fixer touches" — is unreachable through the only caller that touches the filesystem: a CRLF file is silently normalized to LF on POSIX, and the write would emit `\r\r\n` on Windows. It is left alone because it is dev-only tooling outside this plan's scope and the fix carries a real design question (genuinely preserve CRLF by reading and writing with `newline=""`, or delete the now-pointless CRLF branch and declare the fixer LF-only). Decide that on its own terms, not inside a codegen change.
-
----
-
-## Phase 4 — Version the lock format (U3) — the one with real blast radius — **DONE**
-
-Confirmed: `CodegenLock` and `CodegenLockEntry` both carry `extra="forbid"` (`pipelex/codegen/lock.py`), the SDK mirrors that deliberately, and the format has no version field and no written evolution policy. Consequence, correctly identified by the SDK notes: the day we add *any* key to `codegen.lock`, every consumer pinned to an older `@pipelex/sdk` (and every older `pipelex` reading a newer lock) gets a hard `CodegenLockError` no-verdict in CI — not a drift, not a warning. Nothing today makes an additive change safe, and nobody has decided whether that is policy or accident.
-
-Decision: **add `lock_version` now**, while the only two readers are ours and the cost is zero, rather than declaring the format closed. A closed format would make every future addition a coordinated three-repo breaking release *discovered at release time*; a version field makes it a planned one with an actionable error message.
-
-Implementation, all in `pipelex/codegen/lock.py`:
-
-- Module constant `CODEGEN_LOCK_VERSION = 1`.
-- `CodegenLock` gains `lock_version: int = 1`. The default is the compatibility hinge: every existing lock on disk (no key) validates as version 1, so no migration of existing trees is needed. `extra="forbid"` stays — strictness *within* a known version remains correct.
-- `encode_lock` writes `lock_version = 1` as the first key of the payload, before `crate_fingerprint`.
-- `load_lock`, after `model_validate`: if `lock.lock_version != CODEGEN_LOCK_VERSION`, raise `CodegenLockError` with an actionable message distinguishing the direction — a *greater* version means "this lock was written by a newer Pipelex codegen; upgrade pipelex (or the SDK) to read it", anything else is malformed. Reuse `CodegenLockError`; no new error class.
-- Write the evolution policy down as the module docstring's contract paragraph: any change to the lock's key set or semantics bumps `lock_version`; readers reject versions they do not know, loudly and with upgrade guidance; the **stamp header** deliberately needs no version because unknown *commented* `key: value` lines are ignored by every reader (the tolerance Phase 1 pins by test).
-
-Sequencing (this is the part that must not be improvised at release time):
-
-1. Land here on `dev`, unreleased. The lock bytes change (every regeneration rewrites the lock once — expected, `_write_if_changed` sees the new key).
-2. File the SDK follow-up: accept `lock_version`, mirror the reject-unknown-version rule and its message verbatim, refresh the vendored fixtures. **The SDK release must be available before the pipelex release that writes the key** — their `rejectUnknownKeys` hard-throws otherwise, which is precisely the failure mode U3 exists to eliminate. Note it in the release-notes draft for whichever pipelex version first ships this.
-3. The spec's "Lock format" section (workspace `docs/specs/pipelex-codegen.md`) gains the field and the evolution policy — workspace-repo change, listed in the cross-repo section below.
-
-Tests (`tests/unit/pipelex/codegen/test_lock.py`, plus emission round-trip in `test_emission.py`):
-
-- `encode_lock` output contains `lock_version = 1` and `load_lock` round-trips it.
-- A lock **without** the key (yesterday's format, verbatim TOML fixture) loads as version 1 — the no-migration guarantee, pinned.
-- A lock with `lock_version = 2` → `CodegenLockError` whose message names the found version and says to upgrade. Same for a non-integer value (pydantic shape error path, already wrapped).
-- `write_stamped_projection` over a tree locked by the old format rewrites the lock once and reports current on the next check.
-
-**Checkpoint 3 — REACHED (2026-08-19), committed on `feature/Codegen-followups`.** The version field landed with its tests written red first, both load-bearing ones mutation-tested. `make agent-check` clean, badge refreshed, full `make agent-test` green.
-
-⚠ **Still open, and it gates the release:** the SDK follow-up is **filed** at the workspace inbox — `../wip/inbox/2026-08-19-pipelex-sdk-js-codegen-lock-version.md` (it carries the four rules to mirror, the ordering trap, and the fixture refresh). It is *not yet triaged into `pipelex-sdk-js`*, and no SDK PR exists. Record here, before releasing: the `pipelex-sdk-js` issue/PR link and its release status. Until an `@pipelex/sdk` that tolerates `lock_version` is published, a pipelex release carrying this change hard-breaks every consumer pinned to the current SDK — the exact failure U3 exists to eliminate.
-
-**Two corrections to the plan above, both found while implementing:**
-
-- **The version gate must run BEFORE `model_validate`, not after it.** The plan put the check after validation, which is unreachable for the case that matters: `extra="forbid"` rejects a v2 lock that *adds a key* as a pydantic shape error before the version is ever read, so the reader emits an opaque "Extra inputs are not permitted" complaint instead of "upgrade pipelex" — precisely the unactionable no-verdict U3 exists to eliminate. `load_lock` now reads `lock_version` out of the parsed TOML first. Pinned by `test_a_newer_lock_version_is_refused_even_when_it_carries_unknown_keys`, and mutation-tested by moving the call back after `model_validate` (goes red with the pydantic message). The `except CodegenLockError: raise` passthrough (mirroring `run_codegen_check`) keeps the verdict from being re-wrapped as "Malformed or unsafe" — also mutation-tested.
-- **The plan's "reuse `CodegenLockError`, no new error class" has a consequence worth stating explicitly, and it was a real decision.** `_previous_tracked_paths` in `emission.py` discriminates on `exc.__cause__`, so a bare `raise` makes an unreadable-version lock **replaceable prior state during regeneration**, exactly like a corrupt one — `codegen types` overwrites it rather than failing. Deliberate: the run has already rewritten every artifact with this engine, the lock is purely derived, and refusing would strand a developer on a generated file. The cost is that pruning is skipped, so anything the newer engine emitted lingers — but it surfaces loudly as an orphan on the very next check rather than silently. Pinned by `test_regeneration_replaces_a_lock_written_by_a_newer_codegen`. The alternative (a `CodegenLockVersionError` subclass that propagates through regeneration) was rejected as buying little for a derived artifact, at the cost of a new error class plus its `gei`/`gep` runs.
-
-One test in the plan turned out to be untestable and is documented rather than written: `build_lock` passes `lock_version=CODEGEN_LOCK_VERSION` while the field default is the literal `1`. The split is what makes a future bump a one-line change (bump the constant; the "absent key means version 1" statement stays true forever), but with only one version in existence the two values coincide, so no test can distinguish them. The reasoning is in the field's docstring.
-
----
-
-## Phase 5 — Docs, changelog, and closure — **DONE**
-
-The sweep found one real gap and one loose end, which is what a sweep is for; the rest of the pass confirmed Phases 1–4 had each carried their own doc and changelog edit as intended.
-
-**The gap: Phase 3's LF guarantee never reached `docs/`.** It was written into `save_text_to_path`'s docstring and nowhere else — a grep for line-ending vocabulary across `docs/` returned only unrelated hits in `migration-ledger.md` and `plxt.md`. That mattered because the codegen page is where byte-identical regeneration is *promised* to a reader, and the promise was platform-conditional without saying so. § Idempotent emission now states that every artifact is written LF on every platform, and why: the same projection emitted on Windows and on Linux would otherwise land as different bytes while both recorded the same content hash, so a mixed-platform team would watch the generated tree churn with no change of content.
-
-**The loose end: the `_preflight_destinations` seam Phase 1 flagged for this sweep, now pinned rather than merely noted.** Verified by running it, not by reading it: a stamped file whose header carries an injected uncommented line has `has_stamp() == True` but `parse_stamped() == None`, so the check reports it as an **orphan** advising "remove or regenerate" while `write_stamped_projection` raises `CodegenError: Refusing to overwrite unowned file` and leaves it byte-for-byte intact. Half the advice is wrong. This is a behavior U1 *changed* — before the strict gate such a file parsed, so regeneration silently overwrote it — and nothing guarded it, so `test_a_stamped_file_whose_header_was_tampered_is_an_orphan_the_regenerator_refuses_to_reclaim` in `test_emission.py` now does. It is discriminating: mutating the U1 gate to `if False` leaves the orphan assertion green and turns the refusal assertion red (`DID NOT RAISE`), so the test fails for the reason it exists. The refusal itself is left alone — declining to clobber a file we cannot prove we own is the same conservatism that protects a hand-authored module sharing the output directory — but § Idempotent emission now names the seam, and the changelog's stamp bullet tells a user hitting it to remove the file before regenerating.
-
-Everything else was confirmed already in place: § Stamps carries the header-strictness rules and the forward tolerance, § Offline check carries the drift-ordering contract, § Lock carries `lock_version` and the evolution policy, and `## [Unreleased]` carries one `### Added` entry for the lock version plus three `### Fixed` entries for the stamp tightenings, the unified ordering and the LF writes. Swept the codegen write path too: `emission.py` reaches the disk only through `save_text_to_path`, so the LF fix covers the whole trust chain with no bypass.
-
-`make agent-check` clean, `.badges/tests.json` refreshed to the count the added test produced, and the full `make agent-test` green.
-
-**Checkpoint 4 — REACHED (2026-08-19), committed on `feature/Codegen-followups`.** The code work for U1–U5 is complete. One item remains, and it is not code — it gates the release. The second is kept below as a closed record rather than as work:
-
-1. ⚠ **The SDK follow-up is delivered; the release gate is now an SDK *release*, not a filing.** Triaged out of the workspace inbox on 2026-08-19 and delivered into `pipelex-sdk-js` as `wip/upstream-codegen-followups-mirror.md`, committed on `feature/Codegen-follow-ups` (the PR #31 branch) as "docs: record what the upstream codegen landing requires of this SDK". It carries the four rules to mirror, the read-the-version-before-the-key-set ordering trap, the fixture refresh, and a direction table for all five items — the SDK's own `pr-31-review-notes.md` gained per-item status lines in the same commit, since its claim that nothing had been filed upstream was no longer true. **What still blocks a pipelex release is unchanged in substance:** until an `@pipelex/sdk` that tolerates `lock_version` is *published*, the very release that fixes U3 causes the failure U3 describes in every consumer's CI, because their `rejectUnknownKeys` hard-throws on the new key. Record the published `@pipelex/sdk` version here before cutting a pipelex release.
-2. **The PR #31 threads are now all resolved — this item is closed.** It read, until 2026-08-19, that two threads (`chatgpt-codex-connector` and `cubic-dev-ai`, both on item 1 of `../pipelex-sdk-js/wip/pr-31-review-notes.md`) were waiting on a reply, and a later correction raised the count to five. Every review thread on PR #31 now reports resolved, so nothing there is blocking. Kept as a record of what the replies had to say, not as work: U1 has landed on this branch and is unreleased, so any reply could only claim "fixed upstream, pending release", never "shipped".
-
- A count correction worth carrying, from when these were open: PR #31 had **five** unresolved threads, not two. Besides the two U1 ones, a third (`cubic-dev-ai`, `src/codegen-check.ts:552`, the drift-ordering deferral) is materially changed by Phase 2 — upstream converged on the SDK's own full-string comparator, closing the reachable ASCII half of that finding — so it got a draft too. The remaining two are SDK-only and untouched by this work: the `WINDOWS_DRIVE = /^.:/u` regex missing U+2028 / U+2029 (verified real from this side — `validate_artifact_path` rejects `\u2028:models.py` as a drive prefix, and U+2028 is `Zl` so the control-character gate does not catch it first, leaving the SDK the permissive side), and a duplicated CRLF test row. Both are recorded at the end of the delivered SDK doc.
-
-## Cross-repo follow-ups (recorded here, **not** work in this repo)
-
-- **`pipelex-sdk-js`** — after U1/U5 release: mirror both tightenings (their notes already carry the ready-to-apply TS patch and test for U1). After U3 lands here (before our release): version-aware lock reader + fixture refresh, per Phase 4 sequencing. After U2: nothing — we converged toward their comparator; their only residual ordering divergence is the practically unreachable UTF-16-vs-code-point case their item 2a documents, which stays deferred on their side.
-- **`docs/specs/pipelex-codegen.md` + `conformance/` (workspace repo pair)** — S1: when the codegen sections de-skeleton, fold in the three load-bearing properties the SDK had to derive by reading `check.py` (at most one drift per locked path with `hand-edited` outranking `modified`; the orphan predicate is `has_stamp`, not the full parse; deterministic drift ordering — locked first, then orphans, both by path), plus the stamp-header text rules (line boundaries, strip set) as part of the hashed contract, plus U3's `lock_version` and evolution policy. Keep the `> Verified by:` ↔ `pytest.mark.spec` links in sync and run `make check-spec-links` in `conformance/`. This is release-gated on a published pipelex shipping codegen, per the existing `unverified` markers.
-- **`pipelex-sdk-python`** — no codegen-check mirror exists today; if one is ever built, S1's spec work is what makes that safe. Nothing to do now.
diff --git a/wip/concept-purity/README.md b/wip/concept-purity/README.md
deleted file mode 100644
index fba4e1f27..000000000
--- a/wip/concept-purity/README.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# Concept purity — working docs
-
-Working notes for the `refactor/Concept-purity` track: getting the process-global class-registry reads out of `Concept`, the MTHDS-protocol wire model. **Track complete** — [PR #1072](https://github.com/Pipelex/pipelex/pull/1072) is open against `dev` with CI green and both review bots clean. The repo-root `TODOS.md` tracker was archived here once the PR was finalized.
-
-| doc | what it is |
-| --- | --- |
-| [`concept-purity-explained.html`](concept-purity-explained.html) | **Start here.** The architecture note for co-developers: TL;DR, before/after diagrams, the five critical diffs, the three bugs closed, and every judgement call with its reasoning. |
-| [`concept-purity-tracker.md`](concept-purity-tracker.md) | The as-built tracker, written as the PR reviewer's guide. Phase-by-phase state, the surprises log, and the deliberate non-goals. |
-
-## What shipped, in one paragraph
-
-`Concept` reads no registry at all. Compatibility split into a pure declaration tier on the model, a pure class tier in `tools/typing/class_utils.py`, and a composition in `ConceptLibrary.is_compatible` — the one place that owns resolution and therefore the only place that can tell "no class" from "not compatible". `ConceptProviderAbstract.get_structure_class` is the single seam turning a `structure_class_name` string into a type. Three live bugs closed on the way: cross-package `refines` aliases silently failing to resolve at five operator call sites, an unresolvable structure class answering `False` instead of raising, and `native.Anything` being answered for the wrong reason. No wire-format change.
-
-## What is deliberately left
-
-- **The scoping half.** Class resolution still goes through the async context's registry rather than one the provider carries. Unreachable divergence today; the mechanism, the four trip-wires, and the shape of the fix are in [`../inputs/provider-scoped-class-resolution.md`](../inputs/provider-scoped-class-resolution.md).
-- **The materialization write side stays ambient.** `concept_factory` and `structure_generation/generator.py` register generated classes at library-load time — genuinely the registry's business. Pinned as a golden set by `tests/unit/pipelex/core/concepts/test_concept_registry_boundary.py`.
-- **Two run-path `except` arms deliberately not added**, and one dead one removed. Reasoning in [`../inputs/unresolvable-structure-class-escapes-the-validate-sweep.md`](../inputs/unresolvable-structure-class-escapes-the-validate-sweep.md).
diff --git a/wip/concept-purity/concept-purity-explained.html b/wip/concept-purity/concept-purity-explained.html
deleted file mode 100644
index 9ff1e5217..000000000
--- a/wip/concept-purity/concept-purity-explained.html
+++ /dev/null
@@ -1,700 +0,0 @@
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>Concept purity</title>
-<style>
- :root{
- --paper:#f6f7f8; --card:#ffffff; --sunk:#eef1f3;
- --ink:#12161b; --ink-2:#4a5560; --ink-3:#78838d;
- --rule:#dfe3e7; --rule-2:#cbd2d8;
- --rt:#0d7a6f; --rt-soft:#e2f1ee; --rt-line:#0d7a6f;
- --it:#6d43d6; --it-soft:#eee8fc; --it-line:#6d43d6;
- --stop:#b3261e; --stop-soft:#fbeae8;
- --code-bg:#f1f4f6; --code-fg:#1a2027;
- --add-bg:#e3f1e9; --del-bg:#fbeae8;
- --shadow:0 1px 1px rgba(18,22,27,.04), 0 10px 30px -22px rgba(18,22,27,.5);
- --serif:"Iowan Old Style","Charter","Bitstream Charter","Sitka Text",Cambria,Georgia,serif;
- --sans:ui-sans-serif,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
- --mono:ui-monospace,"SF Mono",SFMono-Regular,"JetBrains Mono","Cascadia Mono",Menlo,Consolas,monospace;
- --measure:68ch;
- }
- @media (prefers-color-scheme: dark){
- :root{
- --paper:#0f1216; --card:#161b21; --sunk:#12171c;
- --ink:#e7ecf0; --ink-2:#a3aeb8; --ink-3:#7d8892;
- --rule:#252d35; --rule-2:#333d47;
- --rt:#5eead4; --rt-soft:#0c2b28; --rt-line:#2dd4bf;
- --it:#c0aaf9; --it-soft:#1e1836; --it-line:#a78bfa;
- --stop:#f5a3a0; --stop-soft:#301a1a;
- --code-bg:#0c1015; --code-fg:#dde3e9;
- --add-bg:#0f2a1d; --del-bg:#301a1a;
- --shadow:0 1px 1px rgba(0,0,0,.5), 0 10px 30px -22px rgba(0,0,0,.9);
- }
- }
- :root[data-theme="light"]{
- --paper:#f6f7f8; --card:#ffffff; --sunk:#eef1f3;
- --ink:#12161b; --ink-2:#4a5560; --ink-3:#78838d;
- --rule:#dfe3e7; --rule-2:#cbd2d8;
- --rt:#0d7a6f; --rt-soft:#e2f1ee; --rt-line:#0d7a6f;
- --it:#6d43d6; --it-soft:#eee8fc; --it-line:#6d43d6;
- --stop:#b3261e; --stop-soft:#fbeae8;
- --code-bg:#f1f4f6; --code-fg:#1a2027;
- --add-bg:#e3f1e9; --del-bg:#fbeae8;
- --shadow:0 1px 1px rgba(18,22,27,.04), 0 10px 30px -22px rgba(18,22,27,.5);
- }
- :root[data-theme="dark"]{
- --paper:#0f1216; --card:#161b21; --sunk:#12171c;
- --ink:#e7ecf0; --ink-2:#a3aeb8; --ink-3:#7d8892;
- --rule:#252d35; --rule-2:#333d47;
- --rt:#5eead4; --rt-soft:#0c2b28; --rt-line:#2dd4bf;
- --it:#c0aaf9; --it-soft:#1e1836; --it-line:#a78bfa;
- --stop:#f5a3a0; --stop-soft:#301a1a;
- --code-bg:#0c1015; --code-fg:#dde3e9;
- --add-bg:#0f2a1d; --del-bg:#301a1a;
- --shadow:0 1px 1px rgba(0,0,0,.5), 0 10px 30px -22px rgba(0,0,0,.9);
- }
-
- *{box-sizing:border-box}
- body{
- margin:0; background:var(--paper); color:var(--ink); font-family:var(--sans);
- font-size:16.5px; line-height:1.68; -webkit-font-smoothing:antialiased;
- }
- .frame{max-width:1040px; margin:0 auto; padding:0 1.25rem 6rem}
- p,ul,ol,figcaption,.note,.tldr,blockquote{max-width:var(--measure)}
-
- a{color:inherit; text-decoration:underline; text-decoration-thickness:1px;
- text-decoration-color:var(--rule-2); text-underline-offset:3px}
- a:hover{text-decoration-color:currentColor}
- a:focus-visible,summary:focus-visible,input:focus-visible + label{outline:2px solid var(--rt-line); outline-offset:2px; border-radius:3px}
- @media (prefers-reduced-motion: reduce){*{animation:none !important; transition:none !important; scroll-behavior:auto !important}}
-
- .masthead{padding:3.2rem 0 1.6rem; border-bottom:1px solid var(--rule)}
- .eyebrow{font-family:var(--mono); font-size:.74rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-3); margin:0 0 .9rem}
- h1{font-family:var(--serif); font-weight:600; letter-spacing:-.02em; text-wrap:balance;
- font-size:clamp(2.15rem,1.55rem + 2.2vw,3rem); line-height:1.1; margin:0 0 .6rem}
- h1 .mono{font-family:var(--mono); font-size:.82em; font-weight:500; letter-spacing:-.01em}
- .deck{font-size:1.12rem; color:var(--ink-2); margin:0 0 1.6rem; max-width:60ch; text-wrap:pretty}
- .deck b{color:var(--ink); font-weight:600}
- .meta{display:flex; flex-wrap:wrap; gap:.4rem; list-style:none; margin:0; padding:0; max-width:none}
- .meta li{font-family:var(--mono); font-size:.74rem; letter-spacing:.01em; color:var(--ink-2);
- border:1px solid var(--rule); background:var(--card); border-radius:2px; padding:.24rem .55rem}
- .meta li b{color:var(--ink); font-weight:600}
- .meta li.live{border-color:var(--rt); color:var(--rt)}
-
- .rail{position:sticky; top:0; z-index:9; display:flex; gap:.15rem; overflow-x:auto; scrollbar-width:none;
- padding:.5rem 0; margin:0 0 .4rem; border-bottom:1px solid var(--rule);
- background:color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter:blur(8px)}
- .rail::-webkit-scrollbar{display:none}
- .rail a{font-family:var(--mono); font-size:.72rem; letter-spacing:.04em; text-transform:uppercase;
- color:var(--ink-3); text-decoration:none; white-space:nowrap; padding:.28rem .5rem; border-radius:3px}
- .rail a:hover{color:var(--ink); background:var(--sunk)}
-
- h2{font-family:var(--serif); font-weight:600; font-size:1.6rem; letter-spacing:-.015em; text-wrap:balance;
- margin:3.4rem 0 1rem; scroll-margin-top:4rem; display:flex; align-items:baseline; gap:.7rem}
- h2 .n{font-family:var(--mono); font-size:.72rem; font-weight:500; letter-spacing:.1em; color:var(--rt);
- border:1px solid var(--rule); border-radius:2px; padding:.1rem .38rem; flex:none; position:relative; top:-.25em}
- h3{font-size:1.02rem; font-weight:650; margin:2rem 0 .4rem; letter-spacing:-.005em}
- h4{font-family:var(--mono); font-size:.74rem; font-weight:500; letter-spacing:.12em; text-transform:uppercase;
- color:var(--ink-3); margin:1.6rem 0 .3rem}
- p{margin:.75rem 0} ul,ol{margin:.75rem 0; padding-left:1.15rem} li{margin:.32rem 0}
-
- code,kbd{font-family:var(--mono); font-size:.86em}
- :is(p,li,td,th,summary,figcaption,.deck) code{background:var(--code-bg); padding:.08em .32em; border-radius:3px; white-space:nowrap}
-
- .tldr{margin:2.2rem 0; padding:1.3rem 1.5rem 1.4rem; background:var(--card);
- border:1px solid var(--rule); border-top:2px solid var(--ink); border-radius:3px; box-shadow:var(--shadow)}
- .tldr h2{font-family:var(--mono); font-size:.78rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
- color:var(--ink-3); margin:0 0 .7rem; display:block}
- .tldr ul{margin:0; padding-left:1.05rem; max-width:none}
- .tldr li{margin:.5rem 0}
- .tldr li::marker{color:var(--rule-2)}
-
- .stats{display:grid; grid-template-columns:repeat(auto-fit,minmax(158px,1fr)); gap:.6rem; margin:1.6rem 0}
- .stat{background:var(--card); border:1px solid var(--rule); border-radius:3px; padding:.75rem .9rem .8rem}
- .stat .n{display:block; font-family:var(--mono); font-variant-numeric:tabular-nums; font-size:1.4rem;
- font-weight:600; letter-spacing:-.03em; line-height:1.2}
- .stat .n s{color:var(--ink-3); font-weight:400; font-size:.62em; text-decoration-color:var(--rule-2)}
- .stat .n em{font-style:normal; color:var(--rt)}
- .stat .l{display:block; font-size:.78rem; line-height:1.4; color:var(--ink-2); margin-top:.25rem}
-
- figure{margin:1.8rem 0; padding:1.1rem 1.1rem .75rem; background:var(--card);
- border:1px solid var(--rule); border-radius:3px; box-shadow:var(--shadow)}
- figure svg{display:block; width:100%; height:auto}
- figcaption{font-size:.83rem; line-height:1.55; color:var(--ink-2); margin-top:.7rem; padding-top:.7rem; border-top:1px solid var(--rule)}
-
- .s-box{fill:var(--card); stroke:var(--rule-2)}
- .s-rt{fill:var(--rt-soft); stroke:var(--rt-line)}
- .s-it{fill:var(--it-soft); stroke:var(--it-line)}
- .s-bad{fill:var(--stop-soft); stroke:var(--stop)}
- .s-t{fill:var(--ink); font:600 13px var(--sans)}
- .s-ts{fill:var(--ink-2); font:400 11.5px var(--mono)}
- .s-tm{fill:var(--ink-2); font:400 11.5px var(--sans)}
- .s-trt{fill:var(--rt); font:600 10.5px var(--mono); letter-spacing:.1em}
- .s-tit{fill:var(--it); font:600 10.5px var(--mono); letter-spacing:.1em}
- .s-tbad{fill:var(--stop); font:600 11.5px var(--sans)}
- .s-tok{fill:var(--rt); font:600 12px var(--sans)}
- .s-line{stroke:var(--rule-2); fill:none}
- .s-badline{stroke:var(--stop); fill:none}
- .s-okline{stroke:var(--rt-line); fill:none}
-
- .scroll{overflow-x:auto; margin:1.2rem 0; border:1px solid var(--rule); border-radius:3px; background:var(--card)}
- table{border-collapse:collapse; width:100%; font-size:.89rem; font-variant-numeric:tabular-nums}
- th,td{padding:.55rem .7rem; text-align:left; vertical-align:top; border-bottom:1px solid var(--rule)}
- th{font-family:var(--mono); font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
- color:var(--ink-3); background:var(--sunk); white-space:nowrap}
- tbody tr:last-child td{border-bottom:0}
-
- pre{background:var(--code-bg); color:var(--code-fg); border:1px solid var(--rule); border-radius:3px;
- padding:.9rem 1rem; overflow-x:auto; font-size:.8rem; line-height:1.6; margin:1rem 0}
- pre code{font-family:var(--mono)}
- .diff .del{display:block; margin:0 -1rem; padding:0 1rem; background:var(--del-bg); color:var(--stop)}
- .diff .add{display:block; margin:0 -1rem; padding:0 1rem; background:var(--add-bg); color:var(--rt)}
- .diff .hdr{display:block; color:var(--ink-3)}
- .cmt{color:var(--ink-3)}
-
- .tabs{display:flex; flex-wrap:wrap; gap:.3rem; margin:1.3rem 0}
- .tabs input{position:absolute; width:1px; height:1px; opacity:0; clip-path:inset(50%)}
- .tabs label{cursor:pointer; font-family:var(--mono); font-size:.74rem; letter-spacing:.02em;
- border:1px solid var(--rule); background:var(--card); color:var(--ink-2);
- border-radius:2px; padding:.3rem .6rem; user-select:none}
- .tabs label:hover{color:var(--ink); border-color:var(--rule-2)}
- .tabs .panels{flex:1 0 100%; margin-top:.35rem}
- .tabs .panel{display:none}
- .tabs .panel > :first-child{margin-top:0}
- #d1:checked ~ label[for="d1"],#d2:checked ~ label[for="d2"],#d3:checked ~ label[for="d3"],
- #d4:checked ~ label[for="d4"],#d5:checked ~ label[for="d5"]
- {background:var(--ink); color:var(--paper); border-color:var(--ink)}
- #d1:focus-visible ~ label[for="d1"],#d2:focus-visible ~ label[for="d2"],#d3:focus-visible ~ label[for="d3"],
- #d4:focus-visible ~ label[for="d4"],#d5:focus-visible ~ label[for="d5"]
- {outline:2px solid var(--rt-line); outline-offset:2px}
- #d1:checked ~ .panels > .panel:nth-child(1),
- #d2:checked ~ .panels > .panel:nth-child(2),
- #d3:checked ~ .panels > .panel:nth-child(3),
- #d4:checked ~ .panels > .panel:nth-child(4),
- #d5:checked ~ .panels > .panel:nth-child(5){display:block}
-
- details{background:var(--card); border:1px solid var(--rule); border-radius:3px; padding:.75rem 1rem; margin:1.2rem 0}
- details[open]{padding-bottom:1rem}
- summary{cursor:pointer; font-weight:600; font-size:.92rem}
- summary::marker{color:var(--rule-2)}
- details > :nth-child(2){margin-top:.85rem}
-
- .note{border-left:2px solid var(--rule-2); padding:.1rem 0 .1rem .95rem; color:var(--ink-2); font-size:.93rem; margin:1.1rem 0}
- .note.stop{border-left-color:var(--stop)}
- .note.go{border-left-color:var(--rt-line)}
-
- .cards{display:grid; grid-template-columns:repeat(auto-fit,minmax(255px,1fr)); gap:.7rem; margin:1.4rem 0}
- .cards .card{background:var(--card); border:1px solid var(--rule); border-radius:3px; padding:.9rem 1rem}
- .cards h3{margin:0 0 .3rem; font-size:.95rem}
- .cards p{margin:.3rem 0; font-size:.88rem; color:var(--ink-2); max-width:none}
- .cards p strong{color:var(--ink)}
-
- .legend{display:flex; flex-wrap:wrap; gap:1rem; margin:1.4rem 0 0; font-family:var(--mono); font-size:.74rem; color:var(--ink-2)}
- .legend span{display:flex; align-items:center; gap:.4rem}
- .legend i{width:10px; height:10px; border-radius:2px; display:block}
- .legend .k-rt{background:var(--rt-line)} .legend .k-it{background:var(--it-line)} .legend .k-stop{background:var(--stop)}
-
- footer{margin-top:3.5rem; padding-top:1.2rem; border-top:1px solid var(--rule); color:var(--ink-3); font-size:.83rem}
- footer p{max-width:none}
-</style>
-
-<div class="frame">
-
-<header class="masthead">
- <p class="eyebrow">Pipelex · refactor/Concept-purity · architecture note</p>
- <h1>Getting the class registry out of <span class="mono">Concept</span></h1>
- <p class="deck">A protocol-owned wire model was answering behavioural questions by reaching into a process global. Pulling that out split compatibility into two tiers and <b>fixed three live bugs</b> on the way.</p>
- <ul class="meta">
- <li><b>PR</b> <a href="https://github.com/Pipelex/pipelex/pull/1072">#1072</a> → <code>dev</code></li>
- <li><b>7</b> commits</li>
- <li><b>52</b> files · +1312 / −1326</li>
- <li class="live">no wire-format change</li>
- </ul>
-</header>
-
-<nav class="rail" aria-label="Sections">
- <a href="#problem">Problem</a>
- <a href="#shape">New shape</a>
- <a href="#api">API changes</a>
- <a href="#diffs">Diffs</a>
- <a href="#bugs">Bugs fixed</a>
- <a href="#calls">Judgement calls</a>
- <a href="#notdone">Not done</a>
- <a href="#reviews">Review log</a>
- <a href="#links">Links</a>
-</nav>
-
-<section class="tldr">
- <h2>TL;DR</h2>
- <ul>
- <li><code>Concept</code> subclasses the MTHDS-protocol wire model <code>ConceptAbstract</code> — pure serialisable data — but four of its methods read the <b>process-global class registry</b>. It could not answer a question about itself without a Pipelex runtime booted around it, and every caller holding a <code>Concept</code> inherited that dependency invisibly.</li>
- <li><b>Compatibility is now two tiers.</b> A <i>declaration tier</i> on <code>Concept</code>, pure over the model's own fields. A <i>class tier</i> in <code>tools/typing/</code>, pure over two already-resolved classes. <code>ConceptLibrary.is_compatible</code> composes them — declaration first, classes only if that's inconclusive.</li>
- <li><b>Class lookup moved to the provider.</b> <code>ConceptProviderAbstract.get_structure_class(concept)</code> is now the single seam that turns a <code>structure_class_name</code> string into a type.</li>
- <li><b>Three live bugs closed:</b> cross-package <code>refines</code> aliases silently failed to resolve at five call sites; an unresolvable structure class answered <code>False</code> instead of failing; <code>native.Anything</code> was answered for the wrong reason.</li>
- <li><b>What to watch out for when you touch this:</b> a core data-model function that needs a concept — or its class — takes a <code>concept_provider</code> parameter. Don't import a hub, and don't reach for <code>get_class_registry()</code>. A golden-set test fails the build if a new module under <code>core/concepts/</code> does.</li>
- </ul>
-</section>
-
-<h2 id="problem"><span class="n">01</span> The problem</h2>
-
-<p><code>Concept</code> carries five fields and nothing else: <code>code</code>, <code>domain_code</code>, <code>description</code>, <code>structure_class_name: str</code>, <code>refines</code>. The MTHDS standard owns that shape. Yet four of its members answered questions that needed a <i>type</i>, not a name — so they called <code>get_class_registry()</code> and looked the name up in a process global.</p>
-
-<figure>
-<svg viewBox="0 0 940 250" role="img" aria-label="Before: five call sites and the library both funnel into Concept, which reads the global class registry">
- <rect class="s-box" x="8" y="30" width="196" height="88" rx="3"/>
- <text class="s-t" x="24" y="56">5 operator call sites</text>
- <text class="s-ts" x="24" y="76">pipe_llm ×2</text>
- <text class="s-ts" x="24" y="92">template_image_analyzer ×2</text>
- <text class="s-ts" x="24" y="108">template_document_analyzer</text>
-
- <rect class="s-it" x="8" y="146" width="196" height="56" rx="3"/>
- <text class="s-tit" x="24" y="167">INTERPRETER</text>
- <text class="s-t" x="24" y="188">ConceptLibrary.is_compatible</text>
-
- <rect class="s-bad" x="300" y="70" width="238" height="108" rx="3"/>
- <text class="s-tbad" x="318" y="94">Concept (wire model)</text>
- <text class="s-ts" x="318" y="116">are_concept_compatible</text>
- <text class="s-ts" x="318" y="132">get_structure_class</text>
- <text class="s-ts" x="318" y="148">is_valid_structure_class</text>
- <text class="s-ts" x="318" y="164">search_for_nested_image_fields…</text>
-
- <rect class="s-bad" x="678" y="88" width="248" height="72" rx="3"/>
- <text class="s-tbad" x="696" y="112">process-global class registry</text>
- <text class="s-ts" x="696" y="132">get_class_registry()</text>
- <text class="s-ts" x="696" y="148">scoped by ContextVar</text>
-
- <path class="s-badline" d="M204 74 L296 110" stroke-width="1.5" marker-end="url(#ah-bad)"/>
- <path class="s-line" d="M204 172 L296 140" stroke-width="1.5" marker-end="url(#ah)"/>
- <path class="s-badline" d="M538 124 L672 124" stroke-width="1.5" marker-end="url(#ah-bad)"/>
-
- <text class="s-tbad" x="212" y="46">no resolver</text>
- <text class="s-tbad" x="556" y="116">ambient</text>
-
- <defs>
- <marker id="ah" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="7" markerHeight="7" orient="auto">
- <path d="M0 0 L8 4 L0 8 z" fill="var(--rule-2)"/>
- </marker>
- <marker id="ah-bad" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="7" markerHeight="7" orient="auto">
- <path d="M0 0 L8 4 L0 8 z" fill="var(--stop)"/>
- </marker>
- </defs>
-</svg>
-<figcaption>Before. The library passed a <code>concept_resolver</code> down; the five operator sites called <code>Concept.are_concept_compatible</code> directly and passed nothing — so a cross-package <code>refines</code> alias could not resolve there. Both paths bottomed out in the same global read.</figcaption>
-</figure>
-
-<p>Three consequences, in increasing order of how much they cost us:</p>
-
-<div class="cards">
- <div class="card">
- <h3>Layer inversion</h3>
- <p>A standard-owned wire model depended on a Pipelex process global. <code>core/</code> is supposed to state its dependencies as parameters — that's the doctrine the hub split established.</p>
- </div>
- <div class="card">
- <h3>Untestable</h3>
- <p>Asking two concepts whether they were compatible required a booted runtime with the right classes registered. The compatibility matrix could not be tested with plain classes.</p>
- </div>
- <div class="card">
- <h3>Wrong answers</h3>
- <p>The one that actually bit. Two verdict bugs and a silent resolver bypass, all invisible because <code>False</code> was a legal-looking answer. See <a href="#bugs">§05</a>.</p>
- </div>
-</div>
-
-<h2 id="shape"><span class="n">02</span> The new shape</h2>
-
-<p>The insight is that "are these two concepts compatible?" was always two questions wearing one coat. One is about <b>declarations</b> — what the author wrote — and is pure string work over the model's own fields. The other is about <b>classes</b> and needs types. Only the second needs a registry, and resolving a name into a type is a library's job.</p>
-
-<figure>
-<svg viewBox="0 0 940 300" role="img" aria-label="After: declaration tier is pure, class tier is pure, the library composes them and owns resolution">
- <rect class="s-it" x="8" y="118" width="212" height="72" rx="3"/>
- <text class="s-tit" x="24" y="142">INTERPRETER</text>
- <text class="s-t" x="24" y="163">ConceptLibrary</text>
- <text class="s-ts" x="24" y="180">.is_compatible</text>
-
- <rect class="s-rt" x="322" y="24" width="286" height="96" rx="3"/>
- <text class="s-trt" x="340" y="48">TIER 1 · PURE</text>
- <text class="s-t" x="340" y="70">Concept.are_compatible_by_declaration</text>
- <text class="s-ts" x="340" y="90">refs · class names · refines chains</text>
- <text class="s-ts" x="340" y="106">+ injected concept_resolver</text>
-
- <rect class="s-rt" x="322" y="186" width="286" height="90" rx="3"/>
- <text class="s-trt" x="340" y="210">TIER 2 · PURE</text>
- <text class="s-t" x="340" y="232">are_structure_classes_compatible</text>
- <text class="s-ts" x="340" y="252">equivalence → subclass → field</text>
- <text class="s-ts" x="340" y="268">takes types, never names</text>
-
- <rect class="s-it" x="686" y="118" width="242" height="72" rx="3"/>
- <text class="s-tit" x="704" y="142">RESOLUTION · ONE SEAM</text>
- <text class="s-t" x="704" y="163">provider.get_structure_class</text>
- <text class="s-ts" x="704" y="180">raises if the name is unusable</text>
-
- <path class="s-okline" d="M220 140 L316 82" stroke-width="1.5" marker-end="url(#ah2-ok)"/>
- <text class="s-tok" x="228" y="104">first</text>
-
- <path class="s-line" d="M220 172 L316 226" stroke-width="1.5" marker-end="url(#ah2)"/>
- <text class="s-tm" x="228" y="212">only if inconclusive</text>
-
- <path class="s-line" d="M608 226 L760 196" stroke-width="1.5" marker-end="url(#ah2)"/>
- <text class="s-tm" x="626" y="216">needs 2 classes</text>
-
- <path class="s-line" d="M608 72 L806 72 L806 112" stroke-width="1.5" stroke-dasharray="3 3" marker-end="url(#ah2)"/>
- <text class="s-tm" x="618" y="62">never touches it</text>
-
- <defs>
- <marker id="ah2" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="7" markerHeight="7" orient="auto">
- <path d="M0 0 L8 4 L0 8 z" fill="var(--rule-2)"/>
- </marker>
- <marker id="ah2-ok" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="7" markerHeight="7" orient="auto">
- <path d="M0 0 L8 4 L0 8 z" fill="var(--rt-line)"/>
- </marker>
- </defs>
-</svg>
-<figcaption>After. The library asks tier 1 first; when the declarations settle it, <b>no class is ever looked up</b> — so concepts whose structure classes were never materialised still get an answer. Tier 2 runs only when tier 1 is silent, and it needs both classes, which is why an unusable name raises there instead of answering.</figcaption>
-</figure>
-
-<div class="legend">
- <span><i class="k-rt"></i> pure · no registry, no ambient state</span>
- <span><i class="k-it"></i> owns resolution</span>
- <span><i class="k-stop"></i> the coupling we removed</span>
-</div>
-
-<h3>The asymmetry is deliberate, and it matters</h3>
-
-<p>At the declaration tier, <code>True</code> means "established by the declarations". <code>False</code> means "<b>not established at this tier</b>" — it does <i>not</i> mean incompatible. Two concepts whose declarations say nothing about each other may still be compatible through their classes. Reading tier 1's <code>False</code> as a verdict is the mistake the old single-method design made structurally easy; the docstrings now say so explicitly.</p>
-
-<h2 id="api"><span class="n">03</span> What changed on the surface</h2>
-
-<div class="scroll">
-<table>
- <thead><tr><th>Was, on <code>Concept</code></th><th>Is now</th><th>Why it moved</th></tr></thead>
- <tbody>
- <tr>
- <td><code>are_concept_compatible(…, strict=)</code></td>
- <td><code>are_compatible_by_declaration(…)</code> + <code>are_structure_classes_compatible(…)</code>, composed by <code>ConceptLibrary.is_compatible</code></td>
- <td>Two questions, one method. <code>strict</code> only ever meant anything to the class half.</td>
- </tr>
- <tr>
- <td><code>get_structure_class()</code></td>
- <td><code>ConceptProviderAbstract.get_structure_class(concept=…)</code></td>
- <td>A name → type lookup is a registry read. The model carries the name; the provider knows the registry.</td>
- </tr>
- <tr>
- <td><code>is_valid_structure_class(name)</code></td>
- <td>a private module-level helper in <code>concept_factory.py</code></td>
- <td>Its only three callers were already there. Materialisation-time only — it asks about a class, not a concept.</td>
- </tr>
- <tr>
- <td><code>search_for_nested_image_fields_in_structure_class()</code></td>
- <td><code>search_for_nested_image_fields(content_class=provider.get_structure_class(…))</code></td>
- <td>Composition of two things that already existed. The method was just a resolve-then-call.</td>
- </tr>
- <tr>
- <td><code>render_concept_representation(…)</code></td>
- <td>same, but takes the already-resolved <code>structure_class</code></td>
- <td>Rendering still labels with <code>self.concept_ref</code>; the class comes in from the caller.</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>Three render-chain helpers gained a <code>concept_provider</code> parameter and resolve once: <code>StuffSpec.render_stuff_spec</code>, <code>InputStuffSpecs.build_inputs_template</code>, <code>render_inputs</code>. Interpreter-layer callers (<code>output_renderer</code>, <code>input_renderer</code>, <code>pipe_io_contracts</code>, <code>builder/runner_code</code>) supply <code>get_concept_library()</code>.</p>
-
-<div class="note go"><b>Nothing serialised changed shape.</b> <code>structure_class_name</code> stays a plain <code>str</code> protocol field. No <code>mthds</code> schema edit, no wire migration, no version skew.</div>
-
-<h2 id="diffs"><span class="n">04</span> The critical diffs</h2>
-
-<p>Five changes carry the whole refactor. Everything else is call-site plumbing.</p>
-
-<div class="tabs">
- <input type="radio" name="d" id="d1" checked>
- <label for="d1">1 · tier split</label>
- <input type="radio" name="d" id="d2">
- <label for="d2">2 · class tier</label>
- <input type="radio" name="d" id="d3">
- <label for="d3">3 · composition</label>
- <input type="radio" name="d" id="d4">
- <label for="d4">4 · the seam</label>
- <input type="radio" name="d" id="d5">
- <label for="d5">5 · a bypass site</label>
-
- <div class="panels">
- <div class="panel">
- <h4>pipelex/core/concepts/concept.py</h4>
- <p>The class-tier block leaves the model, and with it the registry import. The rename is the point: the method no longer claims to answer the whole question.</p>
-<pre class="diff"><code><span class="del">-from pipelex.core.stuffs.image_field_search import search_for_nested_image_fields</span>
-<span class="del">-from pipelex.system.registries.class_registry_access import get_class_registry</span>
-<span class="del">-from pipelex.tools.typing.class_utils import are_classes_equivalent, has_compatible_field</span>
-
- @classmethod
-<span class="del">- def are_concept_compatible(</span>
-<span class="add">+ def are_compatible_by_declaration(</span>
- cls, *, concept_1: "Concept", concept_2: "Concept",
-<span class="del">- strict: bool = False,</span>
- concept_resolver: Callable[[str], "Concept | None"] | None = None,
- ) -&gt; bool:
- <span class="cmt"># … dynamic short-circuits, ref equality, class-name equality,</span>
- <span class="cmt"># … refines chains + cross-package alias resolution — all unchanged</span>
-
-<span class="del">- # Check class-based compatibility</span>
-<span class="del">- concept_1_class = get_class_registry().get_class(name=concept_1.structure_class_name)</span>
-<span class="del">- concept_2_class = get_class_registry().get_class(name=concept_2.structure_class_name)</span>
-<span class="del">- if concept_1_class is None or concept_2_class is None:</span>
-<span class="del">- return False # &lt;-- "unknown" indistinguishable from "no"</span>
-<span class="del">- if are_classes_equivalent(concept_1_class, class_2=concept_2_class):</span>
-<span class="del">- return True</span>
-<span class="del">- if strict:</span>
-<span class="del">- return False</span>
-<span class="del">- # … subclass + nested-field checks</span>
-<span class="add">+ return False # not established *at this tier* — see docstring</span>
-</code></pre>
- <p>A new declared property replaces an inference the old code got wrong:</p>
-<pre class="diff"><code><span class="add">+ @property</span>
-<span class="add">+ def declares_a_structure_class(self) -&gt; bool:</span>
-<span class="add">+ """True for every concept but `native.Anything`, whose content class</span>
-<span class="add">+ deliberately does not exist — so the name derived mechanically from its</span>
-<span class="add">+ code never resolves, and asking a provider for it is a category error</span>
-<span class="add">+ rather than a missing registration."""</span>
-<span class="add">+ if not SpecialDomain.is_native(domain_code=self.domain_code):</span>
-<span class="add">+ return True</span>
-<span class="add">+ return not NativeConceptCode.is_structureless_concept(self.code)</span>
-</code></pre>
- </div>
-
- <div class="panel">
- <h4>pipelex/tools/typing/class_utils.py</h4>
- <p>The class tier lands next to the two helpers it already used. It takes <i>types</i>, never names — which is what makes it testable with two throwaway classes and no boot.</p>
-<pre class="diff"><code><span class="add">+def are_structure_classes_compatible(*, class_1: type[Any], class_2: type[Any], strict: bool) -&gt; bool:</span>
-<span class="add">+ """Whether `class_1` can stand in for `class_2`, structurally.</span>
-<span class="add">+</span>
-<span class="add">+ Structural equivalence always suffices. Beyond that, `strict` decides how much slack:</span>
-<span class="add">+ strict accepts equivalence only, loose also accepts a subclass relationship (a refined</span>
-<span class="add">+ concept's generated class inherits from the refined one's) and a class that merely</span>
-<span class="add">+ *carries* a compatible value in a field — the "nested" case a template needs when it</span>
-<span class="add">+ pulls an image out of a document.</span>
-<span class="add">+</span>
-<span class="add">+ Pure over the two classes: it takes resolved types, never names, and reads no registry.</span>
-<span class="add">+ """</span>
-<span class="add">+ if are_classes_equivalent(class_1, class_2=class_2):</span>
-<span class="add">+ return True</span>
-<span class="add">+ if strict:</span>
-<span class="add">+ return False</span>
-<span class="add">+ try:</span>
-<span class="add">+ if issubclass(class_1, class_2):</span>
-<span class="add">+ return True</span>
-<span class="add">+ except TypeError:</span>
-<span class="add">+ pass # not both classes; fall through to field checks</span>
-<span class="add">+ return has_compatible_field(class_1, target_type=class_2)</span>
-</code></pre>
- </div>
-
- <div class="panel">
- <h4>pipelex/libraries/concept/concept_library.py</h4>
- <p>The composition. Read the ordering carefully — it's where the "still answers for unmaterialised classes" property comes from.</p>
-<pre class="diff"><code> @override
- def is_compatible(self, *, tested_concept, wanted_concept, strict: bool = False) -&gt; bool:
-<span class="del">- return Concept.are_concept_compatible(</span>
-<span class="del">- concept_1=tested_concept, concept_2=wanted_concept,</span>
-<span class="del">- strict=strict, concept_resolver=self._concept_resolver,</span>
-<span class="del">- )</span>
-<span class="add">+ if Concept.are_compatible_by_declaration(</span>
-<span class="add">+ concept_1=tested_concept,</span>
-<span class="add">+ concept_2=wanted_concept,</span>
-<span class="add">+ concept_resolver=self._concept_resolver,</span>
-<span class="add">+ ):</span>
-<span class="add">+ return True</span>
-<span class="add">+</span>
-<span class="add">+ if not (tested_concept.declares_a_structure_class and wanted_concept.declares_a_structure_class):</span>
-<span class="add">+ # `native.Anything` has no structure class, so there is no structural</span>
-<span class="add">+ # comparison left to make: tier 1's silence is the whole answer.</span>
-<span class="add">+ return False</span>
-<span class="add">+</span>
-<span class="add">+ return are_structure_classes_compatible(</span>
-<span class="add">+ class_1=self.get_structure_class(concept=tested_concept),</span>
-<span class="add">+ class_2=self.get_structure_class(concept=wanted_concept),</span>
-<span class="add">+ strict=strict,</span>
-<span class="add">+ )</span>
-</code></pre>
- </div>
-
- <div class="panel">
- <h4>pipelex/libraries/concept/concept_library.py — the resolution seam</h4>
- <p>One implementation of "name → <code>StuffContent</code> subclass, or a typed error", for the whole tree. Note the <code>StuffContent</code> bound: the old path used an unbounded <code>get_class</code>, so a name registered as something else could reach <code>issubclass</code> and answer <code>True</code>.</p>
-<pre class="diff"><code><span class="add">+ @override</span>
-<span class="add">+ def get_structure_class(self, *, concept: Concept) -&gt; type[StuffContent]:</span>
-<span class="add">+ try:</span>
-<span class="add">+ structure_class = get_class_registry().get_required_subclass(</span>
-<span class="add">+ name=concept.structure_class_name, base_class=StuffContent</span>
-<span class="add">+ )</span>
-<span class="add">+ except (ClassRegistryNotFoundError, ClassRegistryInheritanceError) as exc:</span>
-<span class="add">+ msg = (</span>
-<span class="add">+ f"Concept '{concept.concept_ref}' declares structure class "</span>
-<span class="add">+ f"'{concept.structure_class_name}', which is not a registered "</span>
-<span class="add">+ f"subclass of StuffContent: {exc}"</span>
-<span class="add">+ )</span>
-<span class="add">+ raise ConceptStructureClassNotFoundError(msg) from exc</span>
-<span class="add">+ return cast("type[StuffContent]", structure_class)</span>
-</code></pre>
- <div class="note">The error is a <code>ConceptValueError</code> subclass, so every guard that already converted that at its own boundary keeps working untouched — which is why this landed without a sweep of <code>except</code> clauses.</div>
- </div>
-
- <div class="panel">
- <h4>pipelex/pipe_operators/shared/template_image_analyzer.py</h4>
- <p>Representative of all five bypass sites. Routing through the library is what makes the injected <code>concept_resolver</code> reach the comparison — this is bug #1 in <a href="#bugs">§05</a>, and the fix is a one-line swap per site.</p>
-<pre class="diff"><code><span class="del">- is_image = Concept.are_concept_compatible(</span>
-<span class="del">- concept_1=root_concept,</span>
-<span class="del">- concept_2=native_image_concept,</span>
-<span class="add">+ is_image = get_concept_library().is_compatible(</span>
-<span class="add">+ tested_concept=root_concept,</span>
-<span class="add">+ wanted_concept=native_image_concept,</span>
- strict=True,
- )
-
-<span class="del">- nested_paths = root_concept.search_for_nested_image_fields_in_structure_class()</span>
-<span class="add">+ nested_paths = search_for_nested_image_fields(</span>
-<span class="add">+ content_class=get_concept_library().get_structure_class(concept=root_concept)</span>
-<span class="add">+ )</span>
-</code></pre>
- <p>The other four: <code>pipe_llm.py</code> ×2 (<code>strict=True</code>), <code>template_image_analyzer.py</code>'s nested check (<code>strict=False</code>), <code>template_document_analyzer.py</code> (<code>strict=True</code>). Direction and strictness were preserved at all five.</p>
- </div>
- </div>
-</div>
-
-<h2 id="bugs"><span class="n">05</span> The three bugs this closed</h2>
-
-<h3>1 · Cross-package <code>refines</code> aliases silently failed to resolve</h3>
-<p>Five operator call sites compared two <code>Concept</code> values directly instead of going through <code>ConceptLibrary.is_compatible</code>. That meant <code>concept_resolver=None</code>, and a refinement written across a package boundary — <code>refines = "imgdep-&gt;native.Image"</code> — never resolved <i>at those sites</i>. Every other compatibility check in the tree already went through the wrapper.</p>
-<p><b>What it looked like:</b> a concept that legitimately refines <code>native.Image</code> through a dependency alias was not recognised as an image by the template analyser, so <code>@pic</code> produced no image reference — at authoring time, with no error to read. Same class of failure on the PipeLLM text-vs-object run branch.</p>
-<p>Pinned by <code>test_template_image_analyzer_cross_package.py</code>, which drives the <i>public</i> <code>analyze_template_for_images</code> rather than a private resolver. It failed red with <code>0 == 1</code> before the fix. The other four sites are the same one-line swap through the same wrapper.</p>
-
-<h3>2 · An unresolvable structure class answered <code>False</code>, not an error</h3>
-<p>The old class tier did <code>if concept_1_class is None or concept_2_class is None: return False</code>. "I could not resolve this name" and "these are incompatible" are different answers, and callers cannot tell them apart. Now it raises <code>ConceptStructureClassNotFoundError</code>.</p>
-<div class="note stop"><b>This one was load-bearing for the whole refactor.</b> It's the reason the tiers had to be composed by the library rather than merged: only the thing that owns resolution can tell "no class" from "not compatible", so only it can decide which to return.</div>
-
-<h3>3 · <code>native.Anything</code> was answered for the wrong reason</h3>
-<p><code>NativeConceptCode.ANYTHING.structure_class</code> is <code>None</code> by design — it is the untyped vehicle — while <code>structure_class_name</code> still derives <code>"AnythingContent"</code> mechanically, a name no registry ever holds. So <code>is_compatible(Anything, Text)</code> returned <code>False</code> via the silent <code>None</code> branch: right answer, wrong reason. Making bug #2 raise would have turned that into a crash.</p>
-<p>Fixed at the source rather than papered over: <code>NativeConceptCode.is_structureless_concept</code> + <code>Concept.declares_a_structure_class</code> make "this concept has no structure" a <i>declared property</i>, checked before the class tier. Verdicts are unchanged in both directions; the reasoning is now correct. Pinned by <code>test_the_structureless_native_concept_is_answered_not_raised</code>.</p>
-
-<h2 id="calls"><span class="n">06</span> Judgement calls worth knowing about</h2>
-
-<details>
- <summary>Why <code>pipe_abstract.py</code> still reads the registry directly</summary>
- <p>It decorates graph-registry entries with a concept's JSON Schema, and it cannot import either hub. The constraint is a <b>static-analysis</b> cycle, not a runtime one — worth knowing before you "fix" it:</p>
- <ul>
- <li>A clean-interpreter probe after <code>import pipelex.runtime_hub</code> shows <code>pipe_machinery.pipe_abstract</code>, <code>pipe_run.pipe_job</code> and <code>plugins.orchestrator_registry</code> all <b>absent</b> — those edges are <code>TYPE_CHECKING</code>-only.</li>
- <li>But pyright's <code>reportImportCycles</code> counts them, so importing either hub there is a hard type-check failure via <code>runtime_hub → plugins.orchestrator_registry → pipe_run.pipe_job → here</code>.</li>
- <li>A <i>deferred</i> import doesn't dodge it: pyright reports at <code>interpreter_hub.py</code>, where no line-level ignore can reach.</li>
- </ul>
- <p>So it uses the below-both-hubs accessor, deliberately with the lenient <code>get_class</code> (no bound, <code>None</code> rather than a raise) because the schema is optional decoration. This is the one sanctioned read-side exception in the tree, and it's stated as such in <code>class_registry_access.py</code>.</p>
-</details>
-
-<details>
- <summary>Why <code>--save-csv</code> resolves through an <i>empty</i> library</summary>
- <p>Found by an e2e test, and it's the surprise of the branch. <code>PipelexMTHDSProtocol.execute</code> tears the run library down on its way out — so <b>every</b> post-run step in <code>_execute_run</code> (the CSV save, the pretty print, the working-memory dump) runs with no current library. Migrating the CSV row-model lookup to <code>get_concept_library()</code> produced <code>RuntimeError: No current library set</code>.</p>
- <p>The old code never noticed because it read the process-global registry, which is never unregistered at teardown — the classes outlive the library that defined them. <code>ConceptLibrary.make_empty()</code> reads that same registry while keeping the single typed "name → class, or a typed error" implementation.</p>
- <p>The lifecycle smell underneath is real and out of scope: a post-run step needing the method's <i>declarations</i> is running after the method is gone. The honest fix is a result object carrying what post-run steps need, or holding the library window open across them.</p>
-</details>
-
-<details>
- <summary>Four <code>except</code> arms: two removed, two deliberately not added</summary>
- <p><code>ConceptFactory</code> refuses to build a concept whose declared structure class does not resolve — a bad <code>structure = "…"</code> raises <code>ConceptFactoryError</code>, and the basic-blueprint path <i>generates</i> the class. Every <code>Concept(...)</code> construction in <code>pipelex/</code> source lives inside that factory. So a concept in a loaded library always has a resolvable structure class.</p>
- <p>Consequently: <code>resolve_input_kind</code>'s <code>except ConceptValueError → InputKind.DYNAMIC</code> fallback was unreachable and was <b>removed</b> (keeping it would restore exactly the silent degradation bug #2 removes), and the two run-path lookups the plan flagged as needing guards were <b>left unguarded</b>. Adding them would be guarding an impossible scenario, and bug #2's fix already made the error self-describing — it names the concept ref and the class.</p>
- <p>The asymmetry with the guarded <i>validation</i> siblings in the same files is intentional: the <code>/validate</code> sweep needs per-pipe granularity or one bad pipe aborts the whole bundle. A run has no sweep.</p>
-</details>
-
-<details>
- <summary>The purity lock, and why it's a golden set rather than a rule</summary>
- <p><code>test_concept_registry_boundary.py</code> asserts that exactly two modules under <code>pipelex/core/concepts/</code> touch the class registry, and both are the <b>materialisation write side</b> — <code>concept_factory</code> registering generated classes, <code>structure_generation/generator.py</code> looking up base classes to generate against. That's genuinely the registry's business and stays.</p>
- <p>A golden set, not a predicate, for the same reason the <code>cogt</code> boundary test gives: nothing separates a sanctioned write-side read from a new read-side one, so the value is turning a third module into a diff a reviewer sees. <b>No other gate can see this edge</b> — both the accessor and its users are runtime-layer, so the hub-layering guard is blind to it by construction.</p>
- <p>It matches four spellings, because an import-name-only walk waved three of them through: the accessor by name, the module path, the attribute call (<code>runtime_hub.get_class_registry()</code>), and two indirect roots — <code>KajsonManager.get_class_registry()</code> (which skips library scoping entirely, and has a live precedent in <code>runtime_bridge</code>) and <code>ClassRegistryUtils</code>.</p>
-</details>
-
-<h2 id="notdone"><span class="n">07</span> What this does <i>not</i> do</h2>
-
-<div class="note stop"><b>The scoping half is not done.</b> <code>ConceptLibrary.get_structure_class</code> calls <code>get_class_registry()</code>, which selects a registry from the current async context — not one the provider carries. A <code>ConceptLibrary</code> holds no registry at all; the per-library <code>ClassRegistry</code> lives on <code>Library</code>. So passing a specific library as <code>concept_provider</code> does not scope class resolution to it.</div>
-
-<p>Codex raised this as a P1 on the PR. The mechanism is real; the divergence it describes is not reachable:</p>
-
-<ul>
- <li><b>Provider-library and registry-library are two reads of one variable.</b> Every non-forwarding <code>concept_provider=</code> source is <code>get_concept_library()</code> → <code>LibraryManager.get_current_library()</code> → the <code>_library_id</code> ContextVar, which is the same one <code>_resolve_scoped_class_registry</code> reads. They cannot name different libraries.</li>
- <li><b>The one place that installs a per-library registry pairs them.</b> <code>runtime_bridge/primitives/rehydration.py</code> calls <code>set_class_registry</code> and <code>set_current_library</code> on the same library in adjacent statements.</li>
- <li><b>Two sites deliberately depend on the ambient read</b> — the post-teardown <code>--save-csv</code> lookup and every boot-free test using <code>make_empty()</code>. Carrying a registry on the provider would break both unless it re-derived the global fallback <code>get_class_registry()</code> already implements.</li>
-</ul>
-
-<p>Not a regression either: on <code>dev</code>, the removed <code>Concept.get_structure_class()</code> read the same registry. This PR moved <i>where</i> the call lives, never <i>which</i> registry it reads. What it <b>did</b> buy is that scoping it later is now a one-place change.</p>
-
-<h4>Trip-wires that would make it real</h4>
-<ol>
- <li>A caller passes <code>library_manager.get_library(library_id=X).concept_library</code> instead of <code>get_concept_library()</code>.</li>
- <li>A <b>dependency/child</b> library's <code>concept_library</code> is used as a provider. Child <code>Library</code> objects live in <code>Library.dependency_libraries</code> and are <i>not</i> in <code>LibraryManager._libraries</code>, so <code>get_library_class_registry</code> structurally cannot see their registry. This is the sharpest of the four.</li>
- <li><code>InterpreterHub.set_concept_library</code> gains a live writer — it currently has zero callers, so its standalone-library fallback branch is dead code.</li>
- <li>A <code>set_class_registry</code> call site appears that is not paired with <code>set_current_library</code> on the same library.</li>
-</ol>
-
-<h4>Also deliberately out of scope</h4>
-<ul>
- <li><b>The write side stays ambient.</b> Making libraries own their class registry explicitly is a separate, larger track.</li>
- <li><b>No <code>StaticConceptProvider</code></b> — build it when something needs it, not for symmetry.</li>
- <li><b>No operator parameterisation.</b> Interpreter-layer <code>get_concept_library()</code> calls are the sanctioned idiom for that layer today.</li>
-</ul>
-
-<h2 id="reviews"><span class="n">08</span> Review log — read this bit</h2>
-
-<p>Four review passes ran over this branch. <b>Not one found a correctness defect in the code.</b> Every substantive finding was about a <i>claim</i> — prose asserting more than the implementation delivers. That pattern is the most transferable thing in this document.</p>
-
-<div class="scroll">
-<table>
- <thead><tr><th>Pass</th><th>Found</th><th>Outcome</th></tr></thead>
- <tbody>
- <tr>
- <td>Sonnet code-review (checkpoint 1)</td>
- <td>~8 unguarded call sites for the new raise</td>
- <td><b>Rejected</b> — unreachable via the factory guard. Residual sweep-granularity tradeoff recorded.</td>
- </tr>
- <tr>
- <td>Sonnet code-review (checkpoint 2)</td>
- <td>One doc inconsistency ("Two modules", named one)</td>
- <td><b>Fixed</b> before commit.</td>
- </tr>
- <tr>
- <td>Codex (P1)</td>
- <td>Provider does not scope class resolution to its own library</td>
- <td><b>Split.</b> Declined on the code (unreachable, and the fix breaks two sites). Applied on the wording — three places asserted the property.</td>
- </tr>
- <tr>
- <td>gstack <code>/review</code> finalize</td>
- <td>Four verified doc/code contradictions, one new silent-degradation path, one test narrower than its claim</td>
- <td><b>All six fixed.</b> Four design tradeoffs deferred to <code>wip/inputs/</code>.</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>Two of the finalize findings are worth calling out because they'd bite anyone:</p>
-
-<ul>
- <li><b><code>pipe_io_contracts</code> documented the hazard this PR removed.</b> Its docstrings warned that a post-teardown call "silently renders against whatever classes the registry last held" — but the builder now resolves the library up front, so it raises. The docstring whose entire job is to instruct callers about the library window described the inverse of the behaviour.</li>
- <li><b><code>output_renderer</code> gained a silent-degradation path.</b> <code>get_concept_library()</code> sat <i>inside</i> a <code>try</code> whose <code>except (PipelexError, ValueError)</code> renders <code>&lt;unable to render&gt;</code> — so a library-lifecycle fault would surface as the placeholder meant for an unrenderable concept. The exact loud-vs-silent conflation this branch exists to remove, reintroduced one layer up. Hoisted out; a two-line fix.</li>
-</ul>
-
-<div class="note"><b>Greptile:</b> 5/5, no findings, three reviews. <b>Codex:</b> clean on the final head. <b>Cubic:</b> could not review — the workspace hit its free monthly line limit. That's a billing state, not a verdict, so this PR shipped without a cubic pass.</div>
-
-<h2 id="links"><span class="n">09</span> Links</h2>
-
-<div class="scroll">
-<table>
- <thead><tr><th>What</th><th>Where</th></tr></thead>
- <tbody>
- <tr><td>This work</td><td><a href="https://github.com/Pipelex/pipelex/pull/1072">pipelex#1072</a> — <code>refactor/Concept-purity</code> → <code>dev</code></td></tr>
- <tr><td>Lineage — hub split</td><td><a href="https://github.com/Pipelex/pipelex/pull/1062">pipelex#1062</a> · <a href="https://github.com/Pipelex/pipelex/pull/1064">#1064</a></td></tr>
- <tr><td>Lineage — layer placement</td><td><a href="https://github.com/Pipelex/pipelex/pull/1070">pipelex#1070</a> · <a href="https://github.com/Pipelex/pipelex/pull/1071">#1071</a></td></tr>
- </tbody>
-</table>
-</div>
-
-<h3>Cross-repo</h3>
-
-<p><b>No other repo needs a code change.</b> Cross-repo usage of the four removed member names is zero — measured by enumerating the workspace directory rather than trusting a hardcoded repo list. Two <i>documents</i> in other repos cite them and will want a look when their tracks resume — one an invariant register for the in-progress TS port, citing the compatibility block this PR restructured; the other a bug note citing the removed <code>get_structure_class()</code>. Both are tracked at workspace level.</p>
-
-<footer>
- <p>Diagrams are hand-authored inline SVG — no script, no CDN, renders offline and in both colour schemes. Written from <code>refactor/Concept-purity</code> at head <code>81ba5817c</code>.</p>
-</footer>
-
-</div>
diff --git a/wip/concept-purity/concept-purity-tracker.md b/wip/concept-purity/concept-purity-tracker.md
deleted file mode 100644
index 32b81c898..000000000
--- a/wip/concept-purity/concept-purity-tracker.md
+++ /dev/null
@@ -1,70 +0,0 @@
-# Concept purity — evicting the ambient class-registry reads from the core concept model
-
-**Reviewer's guide**, archived from the repo-root `TODOS.md` once PR [#1072](https://github.com/Pipelex/pipelex/pull/1072) was finalized. Branch `refactor/Concept-purity`, cut from `dev` at `ed7435a7c`. Two functional commits: `e94b2a4c9` (compatibility) and `89cf2158d` (class access, purity lock, docs); the rest are review-round corrections. This document is what the branch is *for* — read it before the diff.
-
-**Lineage:** continues the hub-split / layer-placement line of work (#1062, #1064, #1070, #1071) — same doctrine, applied to the last ambient lookup left inside the core concept model.
-
-## The problem in one paragraph
-
-`Concept` (`pipelex/core/concepts/concept.py`) is a subclass of the MTHDS-protocol wire model `ConceptAbstract` — `code`, `domain_code`, `description`, `structure_class_name: str`, `refines`. Pure serializable data. Except that four of its members answered *behavioral* questions by reaching into the process-global class registry, and that one import is what `system/registries/class_registry_access.py`'s own docstring cited as the reason the accessor has to sit below both hubs. It coupled a standard-owned wire model to a Pipelex process-global — the model could not answer a question about itself without a Pipelex runtime having been booted around it, and every caller that held a `Concept` inherited that dependency invisibly.
-
-## What changed
-
-**Compatibility is now two tiers, composed by the thing that owns resolution.**
-
-- `Concept.are_compatible_by_declaration` is the *declaration tier*: pure over the model's own fields plus an injected `concept_resolver` — dynamic short-circuits, ref equality, declared-class-name equality, `refines` chains including cross-package aliases. No registry.
-- `are_structure_classes_compatible` (`tools/typing/class_utils.py`) is the *class tier*: pure over two already-resolved classes — equivalence, then (loose only) subclass or nested-field.
-- `ConceptLibrary.is_compatible` composes them. Declaration tier first; classes are resolved only when it is inconclusive.
-
-The verdicts are asymmetric on purpose, and the docstrings say so: at the declaration tier, `True` means "established by the declarations" and `False` means "*not established at this tier*" — never "incompatible".
-
-**Class access left the model.** `ConceptProviderAbstract` grew `get_structure_class(concept)`, implemented by `ConceptLibrary` against the active registry with a `StuffContent` subclass bound.
-
-| removed from `Concept` | replaced by |
-| --- | --- |
-| `are_concept_compatible(..., strict=)` | `are_compatible_by_declaration` + `are_structure_classes_compatible`, composed by `ConceptLibrary.is_compatible` |
-| `get_structure_class()` | `ConceptProviderAbstract.get_structure_class(concept=…)` |
-| `is_valid_structure_class(name)` | a private module-level helper in `concept_factory.py`, its only caller |
-| `search_for_nested_image_fields_in_structure_class()` | compose the provider with the existing free `search_for_nested_image_fields` |
-
-`render_concept_representation` now takes the already-resolved `structure_class`. `StuffSpec.render_stuff_spec`, `InputStuffSpecs.build_inputs_template` and `render_inputs` take a `concept_provider` and resolve once.
-
-## Three defects this closes
-
-1. **Cross-package `refines` silently failed to resolve at five call sites.** `pipe_llm` (×2), `template_image_analyzer` (×2) and `template_document_analyzer` compared two `Concept` values directly instead of going through `ConceptLibrary.is_compatible`, so `concept_resolver` was `None` and a `dep->domain.Code` alias never resolved. Wrong compatibility verdicts at authoring time and on the PipeLLM text-vs-object run branch. Every other compat check in the tree already went through the wrapper. One of the five is pinned by `tests/unit/pipelex/pipe_operators/pipe_llm/test_template_image_analyzer_cross_package.py`, which drives the *public* `analyze_template_for_images` rather than a private resolver; the other four are the same one-line swap through the same wrapper.
-
-2. **An unresolvable structure class answered `False` instead of failing.** "Unknown" and "incompatible" are different answers; conflating them is a latent wrong-verdict bug. It now raises `ConceptStructureClassNotFoundError` — a `ConceptValueError` subclass, so guards that already convert that error at their own boundary keep working unchanged.
-
-3. **The ambient read left the wire model.** `Concept` reads no registry at all, and the declaration tier answers compatibility without resolving a class in the first place — so concepts whose structure classes were never materialized still get an answer. Class resolution still goes through the process's *active* registry rather than one the provider carries; what changed is that it now has exactly one implementation, behind `ConceptProviderAbstract`. See "the scoping half is not done" below for what that does and does not buy.
-
-## Where to look, and what to check
-
-- **`pipelex/core/concepts/concept.py`** — the point of the branch. It should import nothing from `system/registries/`, and every remaining member should be a function of the model's fields (plus the injected resolver or the passed-in class).
-- **`pipelex/libraries/concept/concept_library.py`** — `is_compatible` and `get_structure_class`. This is the one place that legitimately owns resolution; check the composition order and the `declares_a_structure_class` guard.
-- **The five former bypass sites** — check that direction and `strict` semantics survived the move. `is_image`/`is_document` are `strict=True`; `has_nested` is `strict=False`.
-- **`tests/unit/pipelex/core/concepts/test_concept_registry_boundary.py`** — the golden set that keeps this from growing back. It matches the accessor by import name, by module path, by attribute call (`runtime_hub.get_class_registry()`), and via the two indirect roots that bypass the accessor entirely (`KajsonManager`, `ClassRegistryUtils`) — an import-name-only walk would have waved all three through.
-
-## Decisions a reviewer will want the reasoning for
-
-**`native.Anything` declares no structure class at all, and that is not a missing registration.** `NativeConceptCode.ANYTHING.structure_class` is `None` by design (it is the untyped vehicle), while `structure_class_name` still derives `"AnythingContent"` mechanically — a name no registry ever holds. The old silent-`False` was masking that: `is_compatible(Anything, Text)` answered `False` for the *wrong reason*. `NativeConceptCode.is_structureless_concept` + `Concept.declares_a_structure_class` make "this concept has no structure" a declared property, and `is_compatible` returns `False` for it before reaching the class tier. Verdicts unchanged; the reasoning is now correct.
-
-**`pipe_machinery/pipe_abstract.py` reads the class registry directly, and must.** Importing either hub there is a pyright `reportImportCycles` failure via `runtime_hub` → `plugins.orchestrator_registry` → `pipe_run.pipe_job` → here, and a *deferred* import does not help: the error is reported at `interpreter_hub.py`, where no line-level ignore can reach. That is exactly what the below-both-hubs accessor exists for. Note the constraint is a **static-analysis** cycle, not a runtime one: those edges are `TYPE_CHECKING`-only and a clean-interpreter probe shows all three modules absent from `runtime_hub`'s runtime closure — but pyright counts them, and the finalize review caught the first draft of this comment stating it as a runtime closure. The docstring now records the measurement. Two consequences worth knowing: this is a *second* read-side resolution in the tree, and it deliberately uses the lenient `get_class` (no `StuffContent` bound, `None` rather than a raise) because the schema is optional decoration on a graph-registry entry.
-
-**`--save-csv` resolves through `ConceptLibrary.make_empty()`, deliberately.** `PipelexMTHDSProtocol.execute` tears the run library down on its way out, so every post-run step in `_execute_run` has no current library — migrating this site to `get_concept_library()` turned `tests/e2e/pipelex/cli/test_csv_run.py` red with `RuntimeError: No current library set`. The old code never noticed because it read the process-global registry, which is never unregistered at teardown. An empty library reads that same registry while keeping the single typed "name → `StuffContent` subclass, or `ConceptStructureClassNotFoundError`" implementation. The lifecycle smell underneath is real and out of scope — recorded in `wip/inputs/unresolvable-structure-class-escapes-the-validate-sweep.md`.
-
-**The scoping half is not done, and the branch no longer claims it is.** `ConceptLibrary.get_structure_class` calls `get_class_registry()`, which selects a registry from the current async context rather than from `self` — a `ConceptLibrary` holds no registry (the per-library `ClassRegistry` lives on `Library`). Codex flagged this as a P1 on the PR; it is a real mechanism, but the divergence it describes cannot occur: `get_concept_library()` and `_resolve_scoped_class_registry()` are two reads of the same `_library_id` ContextVar, and the one place that installs a per-library registry (`runtime_bridge/primitives/rehydration.py`) sets it and the ContextVar on the same library in adjacent statements. The proposed fix — carry a registry on the provider — would also break the two sites that deliberately depend on the ambient read (`--save-csv` post-teardown, and every boot-free test using `make_empty()`). Declined; the trip-wires that would make it real, the shape of the fix, and four sibling tradeoffs the finalize review surfaced — including that the new `StuffContent` bound tightened the *compatibility verdict* path as well as `get_structure_class` — are in `wip/inputs/provider-scoped-class-resolution.md`. What the review *did* correctly catch is that two new docstrings and the PR body overstated the property — those were corrected.
-
-**Two `except` arms were removed rather than migrated, and two more were deliberately not added.** `resolve_input_kind` caught `ConceptValueError` and fell back to `InputKind.DYNAMIC`; `pipe_parallel` (combine) and `pipe_search` (structured output) call `get_structure_class()` unguarded on run paths where their *validation* siblings convert to `PipeValidationError`. All four concern the same question, and the answer is the same: `ConceptFactory` refuses to build a concept whose declared structure class does not resolve (`concept_factory.py` raises `ConceptFactoryError` on a bad `structure = "..."`, and the basic-blueprint path *generates* the class), and every `Concept(...)` construction in `pipelex/` source lives inside that factory. So the state is unreachable, keeping the fallback would restore exactly the silent degradation defect 2 removes, and adding two more guards would be guarding an impossible scenario. The asymmetry with the guarded validation siblings is intentional and explained in place: the `/validate` sweep needs per-pipe granularity or one bad pipe aborts the whole bundle, and a run has no sweep. Full reasoning, including what would have to change for this to become reachable, is in the wip note above.
-
-## Deliberate non-goals
-
-- **The materialization write side stays ambient.** `concept_factory` registering generated classes and `structure_generation/generator.py` looking up base classes are library-load-time concerns and genuinely the registry's business. Making libraries own their class registry explicitly is a separate, larger track.
-- **No `StaticConceptProvider`** — build one when something needs it, not for symmetry.
-- **No operator parameterization.** The interpreter-layer `get_concept_library()` calls introduced here are the sanctioned idiom for that layer today.
-- **No wire-format change.** `structure_class_name` stays a plain `str` protocol field; nothing serialized changes shape, and no `mthds` schema edit is needed.
-
-## Verification
-
-`make agent-check` green (ruff, plxt, pyright, mypy, keyword-only, hub-layering). Full `make agent-test` green. Cross-repo usage of the four removed member names is **zero in code** (enumerated the workspace directory rather than a hardcoded list). Two live *documents* in other repos cite them and will want a follow-up when their tracks resume — tracked at workspace level; no code in either repo is affected. The transport boundary spec names none of the touched symbols and no module moved, so no spec or spec-suite edit is due.
-
-One registry hygiene note: `is_valid_structure_class` was demoted to keyword-only when it moved, so its now-dead entry was deleted from `subject_grants.toml` — the guard hard-fails on a stale grant, which is how it surfaced.
diff --git a/wip/config-errors-toml-syntax-and-cli-panels.md b/wip/config-errors-toml-syntax-and-cli-panels.md
deleted file mode 100644
index b962699b4..000000000
--- a/wip/config-errors-toml-syntax-and-cli-panels.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# Follow-up brief — a broken configuration file should fail like a configuration error, on both CLIs
-
-Two items found while polishing the boot's configuration error messages on `feature/Backend-surface` (S7b, PR #1116) and **deliberately left out of that branch**. They are independent of the fourth migration surface and of each other. This brief is written from what was measured during that session; the agent picking it up should do the actual exploration — grep every site, read every handler, run every scenario — rather than trust the site lists below as complete.
-
-**Where this stands relative to the branch that found it.** S7b fixed four error-message defects on the boot's *validation* path: the unreachable `except`, the `[defaults]` header silence, the loader's own sentence being reduced to the pydantic analysis, and a bad value in `backends.toml` escaping as a bare pydantic error. All of those are about a file that **parses** and then **fails validation**. Neither item here touches that path; both are about what happens *around* it. Do them after S7b lands, so nothing rebases across the boot handler while it is under review.
-
-## Item 1 — a TOML *syntax* error in a configuration file is classified as the user's *input* being wrong
-
-### What was measured
-
-Append `[broken\nfoo = 1` to `~/.pipelex/pipelex.toml` in an isolated fake home (an empty project dir as cwd, so the repo's own `.pipelex/` does not shadow it), then:
-
-- `pipelex show backends` → a Rich traceback panel of a few dozen frames, then the one useful line: `TomlError: TOML parsing error in file '…/.pipelex/pipelex.toml': Expected ']' at the end of a table declaration`.
-- `pipelex-agent models --format json` → a proper JSON envelope, **but** with `"error_type": "TomlError"`, **`"error_domain": "input"`**, and the hint *"Initialization failed. Run 'pipelex-agent doctor' to diagnose, or 'pipelex init config' to reset configuration"*.
-
-The same happens for `backends.toml` and for a per-backend file under `inference/backends/` (measured on `ollama.toml`); it is uniform across surfaces because nothing between `load_toml_from_path` and the CLI root catches `TomlError` for a configuration file.
-
-### Why it is wrong, not merely unpolished
-
-- **`error_domain` is the contract field.** The agent-hook specification branches on it (see the workspace-root `CLAUDE.md` § *Surface output conventions*, and `docs/specs/` for the hook pipeline). `input` says *the input you gave this run was wrong*; a broken `pipelex.toml` is `config`. An agent following the spec will treat its own request as the mistake.
-- **The hint is the "start over" advice S7b spent two fixes removing** from the migration path: `pipelex init config` resets every file, and the honest hint is *fix line N of this file*.
-- **The position is dropped from the message.** `pipelex/tools/misc/toml_utils.py::load_toml_from_path` composes the message from `exc.msg` — the bare tomli message — and stores `lineno`/`colno` on the `TomlError` as attributes only. The user reads "Expected ']' at the end of a table declaration" with no line. (Memory note `reference_tomli_vs_tomllib_error_attrs` is about this attribute surface: stdlib `tomllib` exposes them only from 3.14; we are on `tomli`.)
-
-### Where the classification comes from
-
-`pipelex/cli/agent_cli/commands/agent_output.py` maps `"TomlError"` → `"input"` in its error-domain table (line ~186 at the time of writing) and carries a `TomlError` hint (line ~155). That mapping is **right** for the other producers of `TomlError` — an inputs file (`cli/commands/run/_run_core.py`, `agent_cli/commands/run/stdin_resolver.py`) or a `.mthds` bundle (`mthds_parsing/parser.py` catches it) — and wrong only for a configuration file. **The CLI cannot tell those apart by class; only the loader that opened the file knows which kind it was.** So the fix is not in `agent_output.py`.
-
-### What to do
-
-Convert `TomlError` into that surface's own configuration error **at each configuration loader**, naming the file *and the line and column*, so it arrives at both CLIs as a `PipelexConfigError`-family error with `error_domain = config` and the same shape as a validation refusal — including being catchable by the boot's existing arms (`CONFIG_REFUSED` for the main config in `runtime_boot.py`, `BACKEND_LIBRARY_REFUSED` for the backend library) so the human CLI message builder and `raise_config_setup_error` see it like any other refusal.
-
-Sites known from the session (**verify by grepping callers of `load_toml_from_path` / `load_toml_from_path_if_exists` under `pipelex/system/configuration/`, `pipelex/system/telemetry/`, `pipelex/system/pipelex_service/`, `pipelex/cogt/model_backends/`, `pipelex/cogt/models/`, `pipelex/cogt/routing/` — the list below is what was seen, not a census**):
-
-- the main configuration tiers (`ConfigLoader` in `pipelex/system/configuration/config_loader.py` — this is the one whose refusal is `ConfigValidationError`, and it should keep raising in that family so `CONFIG_REFUSED` catches it);
-- `telemetry.toml` and `pipelex_service.toml` loaders;
-- `backends.toml` (`InferenceBackendLibrary.load`, the `load_toml_from_path` at the top — today it catches only `FileNotFoundError` there; the right class is `InferenceBackendLibraryValidationError`, which S7b just gave its first real raise site, or a sibling — decide whether "does not parse" and "does not validate" want distinct classes for the doctor's per-backend probe, which greps messages);
-- per-backend model-spec files (`_load_local_model_specs`, same file) and the gateway local override (`load_toml_from_path_if_exists` in `_load_gateway_model_specs`);
-- routing profiles and model decks (their loaders were not opened during the session — check whether they go through the same helper).
-
-Decide once whether the position goes into the message at `load_toml_from_path` itself (one site, every consumer benefits — but check the `.mthds` parser and the inputs-file paths, which may already append it) or per loader.
-
-### What must not change
-
-- A configuration that will not *parse* has no ledger story: the migration engine reads the document with tomlkit and a file that will not parse is a `blocked_reason` in its plan already (`FileBlockedReason` — check the enum for the parse-failure member). Do not try to route a syntax error through `report_validation_error`'s scan; there is nothing to scan. It is a plain configuration error with a file and a line.
-- Boot tolerance (`replay_surface_files_in_memory`) must not attempt to replay an unparseable file. Confirm the retry declines cleanly rather than raising something new; the rule from S7b is that nothing that goes wrong inside the retry may replace the error the user already has.
-- The other `TomlError` producers keep `error_domain = input`. Add a test on the agent CLI that a broken inputs file still reports `input` and a broken `pipelex.toml` reports `config` — that pair is the whole point.
-
-### Tests to write
-
-- Per surface, a unit test that plants a syntax error and asserts the loader raises the surface's config error naming the file and the line — from the real loader, never a hand-built exception (memory: `reference_a_hand_built_exception_cannot_prove_a_handler_catches_it`).
-- The agent-CLI domain pair above.
-- Mutation-check the boot: narrow the arm back and watch the syntax case go red.
-
-## Item 2 — the human CLI renders every boot configuration failure as a traceback
-
-### What was measured
-
-Every configuration failure that leaves the boot as `PipelexSetupError` or `PipelexConfigError` — the stale-file message with its migration block, the model/backend/file sentence S7b just restored, a bad value in `backends.toml` — prints in the human CLI as **a Rich traceback panel with the message underneath**. The messages are good now; the reader finds them at the bottom of forty frames of `runtime_boot.py` / `cli_factory.py`.
-
-`pipelex/cli/cli_factory.py::make_pipelex_for_cli` catches a hand-picked list — `InferenceSetupRequiredError`, `TelemetryConfigValidationError`, `GatewayTermsNotAcceptedError`, `GatewayApiKeyMissingError`, `GatewayDoNotTrackConflictError`, `RemoteConfigUnavailableError`, `RemoteConfigValidationError`, `GatewayUnknownModelError` — and routes each to a handler in `pipelex/cli/error_handlers.py` (`display_error_panel`, and per-class handlers). `PipelexSetupError` and `PipelexConfigError` are **not on the list**, so they fall through to typer's pretty-exception rendering (`pretty_exceptions_show_locals=False` in `pipelex/cli/_cli.py`). `error_handlers.py` already has the machinery the fix wants: `display_error_panel`, `set_traceback_requested` / `is_traceback_requested`, `print_traceback_if_requested` — a `--traceback` flag exists precisely so that the default is a panel and the traceback is opt-in.
-
-This is **not** TOML-specific and not S7b-specific; item 1 merely lands one more class in the same gap.
-
-### What to do
-
-Route boot configuration failures through the panel: catch the `PipelexConfigError` / `PipelexSetupError` family in `make_pipelex_for_cli` (or wherever the exploration shows the single right boundary is — check the agent CLI's equivalent factory too, which already produces an envelope, to keep the two roots symmetric), display the message in the panel, print the traceback only when `--traceback` was requested, and exit non-zero the way the other handlers do.
-
-Things to settle during exploration, not assumed:
-
-- **Which classes.** `PipelexConfigError` carries the structured `migration` block; the panel should render the message (which already contains the migration paragraph) and need not render the block separately — but confirm nothing else in the human CLI was reading the block. `PipelexSetupError` is what the boot raises for the late components (backend library, model deck, routing profiles); it may carry no block.
-- **Whether the doctor's boot paths are affected.** `doctor_cmd.py` catches `CONFIG_REFUSED` itself in two places and `PipelexConfigError` in a third; those are its own presentation and should stay.
-- **The exit code and the `--traceback` interplay** — follow what the existing handlers do; do not invent a second convention.
-- **The tests that pin today's rendering.** Some CLI tests may assert on a traceback or on `SystemExit` shape; find them before changing the boundary.
-
-### Tests to write
-
-- A CLI-level test per family (a stale/wrong config → panel with the message, no traceback; same with `--traceback` → traceback present).
-- Nothing about message *content* — that is pinned one layer down already (`tests/unit/pipelex/test_runtime_boot_stale_backend_error.py`, `tests/unit/pipelex/core/test_validation_report.py`).
-
-## Suggested order and scope
-
-1. **Item 1 first**, one PR, `fix/` prefix against `dev`. It is a correctness fix (a wrong `error_domain`) with a small mechanical footprint; it also carries the position into the message. Changelog under *Fixed*; docs: `docs/migration-ledger.md` § *Reporting a stale configuration on a validation error* has a sentence about which loaders report through the scan — say in one line that a file that does not parse is a plain configuration error and is not scanned. Update the agent-CLI output docs if the `TomlError` hint text changes.
-2. **Item 2 second**, its own PR, `fix/` or `chore/`. Presentation only; changelog under *Fixed* or *Changed* depending on what the exploration finds about exit codes.
-
-Neither blocks a release, and neither should be folded into S7b.
-
-## Reproduction harness
-
-The session's fake home is a scratchpad copy that will not survive; rebuild one: a temp `HOME` with `.pipelex/` populated by `printf 'y\n' | env HOME=<tmp> pipelex init config`, an **empty** project directory as cwd (the repo root has its own `.pipelex/inference/backends/` and wins the whole directory), and `pipelex show backends` as the command that boots through every library. Plant faults with an editor, never in `~/.pipelex/` — the real one is a stale specimen kept for the release step (see `TODOS.md` on `feature/Backend-surface`, *Rules of engagement*).
diff --git a/wip/costs-in-graph-spec.md b/wip/costs-in-graph-spec.md
deleted file mode 100644
index 5b9964f23..000000000
--- a/wip/costs-in-graph-spec.md
+++ /dev/null
@@ -1,522 +0,0 @@
-# Per-node cost and token usage in the GraphSpec
-
-Status: **implemented and verified, all six phases.** Not yet shipped: nothing reaches users until `@pipelex/mthds-ui` is published and `make refresh-graph-ui-sri` bumps the pinned bundle.
-
-Revision 2 — absorbs the Codex outside-voice pass. See "Outside voice absorbed" at the end for what changed and why.
-
-## Implementation status
-
-| Phase | State |
-|---|---|
-| 1 — pipelex model + assembler | done (T1-T5, T7) |
-| 2 — pipelex tests | done (T6 + `test_usage_attribution.py`, `test_assembler_usage_attribution.py`, roundtrip tests) |
-| 3 — pipelex docs + changelog | done (T8, new `docs/under-the-hood/per-node-usage-attribution.md`) |
-| 4 — DRY fixtures with `--mock-usage` | done (T10, T11 — full corpus regenerated, all green) |
-| 5 — mthds-ui | done (T9, T12 + `usageFormat.ts`, `UsageSection.tsx`, `docs/usage-attribution.md`) |
-| 6 — LIVE regeneration | done — all 32 pipelines, $2.85, zero failures |
-
-**CHECKPOINT 1 findings.** The rollup is correct on the deepest fixture: `pipeline_24` (DEEP_NESTING, 12 nodes, containment depth 3) matches an independent recomputation from the CONTAINS edges on every node, and its root subtree equals `graph.usage.total`. Nothing in the corpus is deep or wide enough to *measure* the memoization — the walk is memoized and uses an explicit stack, so the O(n) claim and the recursion-limit independence are structural, not benchmarked. `GraphSpec.usage.unattributed.inference_calls` is **0 on every one of the 32 DRY fixtures** — nothing escapes attribution on a local in-process run.
-
-**CHECKPOINT 2.** pipelex is shippable as-is: Phases 1-3 are self-contained and the API, the MCP and `vscode-pipelex` get per-node usage whether or not a card renders it.
-
-**CHECKPOINT 3.** Reached and reviewed in Storybook against the real LIVE corpus. The treatment changed substantially from the plan under review — see "What review changed" below. Remaining: commit both repos, publish `@pipelex/mthds-ui`, and `make refresh-graph-ui-sri` to bump the pinned bundle. Until that publish, the standalone `reactflow.html` pipelex emits still loads the old bundle and shows no cost.
-
-### What review changed (post-implementation)
-
-The plan's UI design did not survive contact with the screen. Four reversals, all in the same direction — showing less, and only what was actually measured:
-
-1. **No cost on the cards at all.** The plan put a chip in the card's annotation row. Removed entirely — the card is for structure; a price on every node turns the graph into a spreadsheet. Cost lives only in the side panel.
-2. **Cost sits on the status line**, formatted exactly like the duration beside it (`● Succeeded 8.37s $0.0268 ⌄`), not as a labelled block. They are three facts of the same kind about one run.
-3. **No token counts anywhere.** The decisive finding: extract, search and image generation are billed per request, and pipelex encodes that price by putting exactly `1_000_000` in each token category (rates are per-million, so the arithmetic reproduces the per-request price — `linkup_extract_worker.py:89`, `linkup_search_worker.py:92`, `gateway_extract_worker.py:182`). A one-page extract reports 2,000,000 "tokens". Worse, a controller's `subtree_total_tokens` sums those sentinels with real LLM tokens, so **no token figure is trustworthy at any level of a graph**. Cost is the only number that survives the encoding.
-4. **`--mock-usage` reverted out of the DRY fixtures.** It makes a dry run report invented token counts; a dry run executes nothing, so those were fabrications rendered as measurements. DRY specs now carry zero tokens and a null cost, which is the truth, and the cost surface is gated on a real run.
-
-### New defect found, not fixed (out of scope)
-
-The `1_000_000` sentinel is not confined to the graph. It rides the `/execute` API's `tokens_usages` records and the CLI cost table's token columns, and `AggregatedCosts.total_nb_tokens` sums it — so any client computing token usage from the API gets nonsense as soon as a method touches extract or search. The fix is a `billing_unit` discriminator on the usage record so per-request prices stop masquerading as token counts. That is an API-contract change and needs its own plan.
-
-### Where the plan was refined during implementation
-
-1. **Invariant 1 is weaker than stated, and the docstring now says so honestly.** The plan wrote `usage is None <=> collection was OFF`. The event stream carries no "collection is on" signal, so a run with collection on that makes *zero* inference calls is indistinguishable from collection off. The shipped invariant is: `usage is None` ⟺ **no usage was reported anywhere in the run** (off, or zero calls) — and it stays all-or-nothing across a graph, which is the property consumers actually branch on. Both states render as nothing, so nothing downstream cares.
-2. **Attribution resolves in pass 2, not in the handler.** A `UsageReportEvent` can be read *before* the `PipeStartEvent` of the node it names (different workers, stream ordered by `(workflow_id, sequence)`), so "is this node real?" is only answerable once every event is in. `_handle_usage_report` folds by raw `node_id`; `_attribute_usage` resolves. This also gets a test.
-3. **`UNATTRIBUTED_NODE_ID` is now a named constant** in `trace_events.py`, replacing the bare `"unknown"` literal duplicated at `reporting_manager.py:219` and `:293`.
-4. **The Phase 4 fixture gate is split by freshness.** `assertValid` holds only *freshly generated* specs to the usage gate; specs reused from disk are exempt. Otherwise a partial `--only` LIVE run against the existing (pre-usage) LIVE corpus would die on every reused spec.
-5. **The DRY token gate is conditional.** "at least one node has `total_tokens > 0`" fires only when the run made any inference call, so an inference-free pipeline does not fail the gate. Note only `PipeLLM` reports mock usage — `PipeExtract` / `PipeSearch` / `PipeImgGen` nodes show zero calls in DRY.
-6. **Fixture regeneration turned out not to be bit-stable, for reasons unrelated to usage.** `pipeline_11`'s `PipeCondition` branches on mock-generated text, so a dry run routes to either branch; `snapshots.test.ts` already documents per-regeneration fingerprint drift and prescribes `vitest -u`. Regenerating the *whole* corpus at once produced a coherent, fully green tree (1835 tests). Regenerating a subset can leave the corpus internally inconsistent.
-
-## The problem in one paragraph
-
-Pipelex already records what every inference call cost, and already records the shape of the run as a graph. Both are built from **one** trace-event stream, and every usage event already carries the graph node it belongs to. At assembly the link is thrown away: `GraphSpecAssembler` skips `UsageReportEvent` entirely, and `UsageAggregator` returns a flat list with `node_id` stripped. So `PipeOutput.graph_spec` and `PipeOutput.tokens_usages` are two disjoint artifacts describing the same run, and no consumer can answer "which pipe spent the money".
-
-```
- inference call completes
- │
- ▼
- ReportingManager._emit_usage_event trace_context.parent_node_id
- reporting_manager.py:161 │
- │ │
- ▼ │
- UsageReportEvent{ node_id ◄──────────────────────────────────┘ , tokens_usage }
- trace_events.py:182 the link ALREADY EXISTS here
- │
- ▼
- ┌──────────────── event log — ONE stream, one read ────────────────┐
- │ PipeStartEvent PipeEndSuccessEvent EdgeEvent UsageReport │
- └───────────────────────────────┬──────────────────────────────────┘
- │ tracing_assembly.py:101-136
- ┌───────────────┴───────────────┐
- ▼ ▼
- GraphSpecAssembler UsageAggregator
- :197 elif UsageReportEvent: :22 [e.tokens_usage for e in ...]
- pass ◄── LINK DROPPED ◄── node_id DROPPED
- │ │
- ▼ ▼
- PipeOutput.graph_spec PipeOutput.tokens_usages
- (nodes, edges, no cost) (costs, no graph position)
-```
-
-The fix is to stop dropping it, model the result unambiguously, and render it.
-
-## What already exists
-
-Reuse these; do not rebuild them.
-
-| Thing | Where | How this plan uses it |
-|---|---|---|
-| `UsageReportEvent.node_id` | `tracing/trace_events.py:182-187` | The correlation key. Already emitted on both paths (`reporting_manager.py:219`, `:293`). |
-| `compute_tokens_usage_cost()` | `cogt/usage/cost_registry.py:27` | The single canonical per-call USD total, and the authority on rated-vs-unrated (returns `None` iff `unit_costs` is empty). **Call it; never re-derive cost math.** |
-| `AggregatedCosts.total_nb_tokens` | `cogt/usage/cost_registry.py:~70` | Defines the canonical token total as input-joined + output. Our `total_tokens` uses the same definition so the graph and the cost report cannot disagree. |
-| `TokenCategory` / `nb_tokens_by_category` | `cogt/usage/token_category.py`, `reporting/usage_records.py:49` | The already-shipped token vocabulary. Reused verbatim — no new token names. |
-| `TokensUsageRecord.cost: float \| None` | `reporting/usage_records.py:51` | The already-shipped encoding of "unrated". Mirrored, not reinvented. |
-| Node parentage | `_AssemblerNodeData.parent_node_id` (`graphspec_assembler.py:69`) | Subtree rollup walks this; no need to re-derive from `CONTAINS` edges. |
-| `mthds-ui` GraphSpec plumbing | `types.ts`, `validateGraphSpec.ts`, `pipeCardPayload.ts`, `PipeCardBase.tsx` | The payload pipeline already exists; we add one field through all four. |
-| `generate-fixtures.mjs` | `mthds-ui/scripts/` | Already shells out to `../pipelex/.venv/bin/pipelex`. A local Python change is picked up with **zero wiring**. |
-| `is_generate_usage = true` | `pipelex/pipelex.toml:307`, not overridden in `mthds-ui/.pipelex/pipelex.toml` | Usage events are **already** emitted on every fixture run. No CLI flag change needed. |
-| `--mock-usage` | `_run_core.py:55-76`, `dry_mock.py:150+` | Hidden dry-run sub-flag producing non-zero synthetic tokens. Used in Phase 4 to get a meaningful free token chip. |
-
-## Decisions taken
-
-Decided on best-practice / most-future-proof grounds rather than asked.
-
-### D1 — A typed `NodeSpec.usage` with no overloaded nulls
-
-`NodeSpec.metrics: dict[str, float]` exists and is already rendered by `PipeDetailPanel.tsx:190`, which makes it the tempting zero-schema-change home. **Rejected.** `dict[str, float]` cannot express *unrated*: `compute_tokens_usage_cost` returns `None` whenever the model carries no rate table, and `dry_mock.py:133` hardcodes `unit_costs={}` for every synthetic dry-run call — so **every one of the 32 committed DRY fixtures is unrated**. In a float dict the only encoding for "unrated" is to omit the key, indistinguishable from "never collected".
-
-The first draft of this plan then made the same mistake one level up, by letting a single `cost: None` mean four different things. It does not now. Three states, three orthogonal encodings, stated as invariants:
-
-```python
-# pipelex/graph/graphspec.py
-
-
-class NodeUsageSpec(BaseModel):
- """Inference usage attributed to one graph node.
-
- Field names mirror the already-shipped client-facing ``TokensUsageRecord``
- (reporting/usage_records.py) so the graph does not introduce a fifth
- vocabulary for numbers this codebase already names four ways
- (TokenCategory, LLMTokenCostReportField, GenAISpanAttr, PostHogAttr).
-
- INVARIANTS — the UI and every other consumer branch on these, not on
- guesses about why a number is missing:
-
- 1. ``NodeSpec.usage is None`` <=> usage collection was OFF for the run.
- When it was ON, EVERY node carries a spec, zeroed if it ran no
- inference. A controller, a lifted pipe, and a PipeFunc all get
- ``inference_calls=0``, never ``usage=None``.
-
- 2. ``cost is None`` <=> ``rated_inference_calls == 0``.
- Nothing else. "Made no call" and "made only unrated calls" both land
- here and are told apart by ``inference_calls``.
-
- 3. ``inference_calls > rated_inference_calls > 0`` => ``cost`` is a
- LOWER BOUND, not a total. The UI must mark it (a leading "≥").
-
- 4. ``total_tokens`` is input_joined + output — the same definition as
- ``AggregatedCosts.total_nb_tokens``. It is NOT the sum of
- ``nb_tokens_by_category``: ``input_cached`` is a SUBSET of ``input``,
- not additive (usage_records.py:47-48), so summing double-counts.
- Never sum the dict; read this field.
- """
-
- model_config = ConfigDict(extra="forbid", strict=True)
-
- # This node's own inference.
- inference_calls: int = 0
- rated_inference_calls: int = 0
- nb_tokens_by_category: dict[str, int] = Field(default_factory=dict)
- total_tokens: int = 0
- cost: float | None = None
-
- # This node plus every descendant.
- subtree_inference_calls: int = 0
- subtree_rated_inference_calls: int = 0
- subtree_nb_tokens_by_category: dict[str, int] = Field(default_factory=dict)
- subtree_total_tokens: int = 0
- subtree_cost: float | None = None
-```
-
-`NodeSpec` gains `usage: NodeUsageSpec | None = None`. `metrics` is left exactly as it is — still free-form, still unused — so nothing that reads it today changes.
-
-**Why not OTel semconv keys** (`gen_ai.usage.input_tokens`, already imported at `otel_constants.py:50`): semconv names *span attributes*, a different layer with different consumers (Langfuse, PostHog), and pipelex already uses it correctly there (`llm_worker_abstract.py:256`). Borrowing that dotted namespace into a graph contract read by UIs buys nothing and, with `PipeDetailPanel.tsx:195` rendering `label={key}`, would leak `gen_ai.usage.input_tokens` onto the screen. A typed model has field names, not attribute keys, so the question dissolves.
-
-### D2 — Own and subtree, for tokens as well as cost
-
-A controller (`PipeSequence`, `PipeBatch`, `PipeParallel`) runs no inference, so its own numbers are always zero. Shipping only own values makes every controller card read empty, which reads as a bug.
-
-Subtree tokens matter as much as subtree cost, and more in practice: the default Storybook view is the DRY corpus, which is unrated, so **tokens are the only number a controller can show there**. Both rollups ship.
-
-Rollup is computed **in the assembler**, not the UI, for the same reason `AggregatedCosts` computes its totals once: three consumers (`pipelex-app`, `vscode-pipelex`, MCP) must not each re-derive it and disagree.
-
-```
- seq_node calls 0 (0 rated) subtree 3 calls (2 rated) subtree_cost 0.0071 subtree_tokens 4210
- ├── llm_a calls 1 (1 rated) cost 0.0043 tokens 2130
- ├── llm_b calls 1 (1 rated) cost 0.0028 tokens 2080
- └── func_c calls 0 (0 rated) cost None tokens 0 ← ran, made no inference
-```
-
-`func_c` has `usage` present with `cost=None` and `inference_calls=0` — invariant 1 and 2 together say "collected, ran nothing", never "unknown".
-
-### D3 — A typed `GraphSpec.usage`, not a `meta` bag
-
-Both emit paths fall back to `node_id = trace_context.parent_node_id or "unknown"` (`reporting_manager.py:219`, `:293`). Usage landing on `"unknown"` has no node to attach to, and dropping it would make the graph's total silently disagree with the cost report.
-
-The first draft put the run total and the unattributed bucket in `GraphSpec.meta`. That was inconsistent — arguing for typing at the node level and then reaching for an untyped bag at the graph level. `meta` is `[key: string]: unknown` in `mthds-ui`, so anything put there arrives untyped at every consumer.
-
-```python
-class GraphUsageSpec(BaseModel):
- model_config = ConfigDict(extra="forbid", strict=True)
-
- total: NodeUsageSpec # whole-run rollup
- unattributed: NodeUsageSpec # usage whose node_id was "unknown"
-```
-
-`GraphSpec` gains `usage: GraphUsageSpec | None = None`, `None` under the same invariant 1 as the node field. Reusing `NodeUsageSpec` for both keeps exactly one usage shape in the contract.
-
-### D4 — Assert the builder divergence; do not normalize it away
-
-There are two GraphSpec builders. `GraphSpecAssembler` produces every consumed spec. The in-process `GraphTracer`'s `teardown()` output is **discarded at every call site** — `runner.py:281`, `pipe_run.py:60`, and `dry_run_in_process.py:151` (which then reads `pipe_output.graph_spec`, i.e. the assembler's). `GraphTracerProtocol` has no method to receive usage at all; adding one, plus its no-op implementations, would be plumbing into output nobody reads.
-
-But `test_assembler_equivalence.py:57` puts `"metrics": node.metrics` in its structural comparison, and **none of its six scenarios emit a usage event**. Left alone, the two builders diverge and CI stays green — a rotting test, worse than an absent one.
-
-Add `_scenario_with_usage`, and rather than deleting `usage` from `_normalize_node` (which would weaken the test permanently), **assert the divergence explicitly**: the assembled spec has `usage` populated, the tracer spec has `usage is None`, and that asymmetry is the assertion. If someone later plumbs usage into the tracer, the test fails and tells them to delete the assertion — which is what a test documenting an intentional gap should do.
-
-### D5 — Free runs prove the unrated path; only paid runs show a dollar
-
-`_report_synthetic_llm_job` sets `unit_costs={}` unconditionally (`dry_mock.py:133`), shared by both `report_dry_llm_job` and `report_mock_usage_llm_job`. The hidden `--mock-usage` flag buys non-zero *tokens* and never a non-zero *cost*.
-
-So the free loop is worth more than the first draft credited, provided it uses `--mock-usage`. Plain `--dry-run` emits zero-token usage, which exercises `inference_calls` and nothing else. With `--mock-usage` the DRY corpus produces a genuinely non-zero **unrated** graph — the exact default Storybook state — and the token chip becomes reviewable for free. Only the dollar itself needs Phase 6 and real money.
-
-### D6 — One attribution module, not logic buried in `_AssemblerState`
-
-Codex's strongest structural point: the plan risks a second aggregation model with subtly different semantics from `CostRegistry`. Mitigated by extracting accumulation and rollup into `pipelex/tracing/usage_attribution.py` — independently testable, one place where the invariants live, and reusable if the tracer ever needs it. `_AssemblerState` calls into it and holds no usage arithmetic of its own.
-
-Not accepted: Codex's fuller version, preserving `node_id` on the records `UsageAggregator` returns. That would change `PipeOutput.tokens_usages`, whose trimmed wire shape (`TokensUsageRecord`, `extra="forbid"`) is a shipped client contract. Two projections of one stream is the design `tracing_assembly.py` already documents; the DRY fix belongs in the shared helper, not in merging the projections.
-
----
-
-## Phases
-
-### Phase 1 — pipelex: model and assemble
-
-Files: `pipelex/graph/graphspec.py`, new `pipelex/tracing/usage_attribution.py`, `pipelex/tracing/graphspec_assembler.py`.
-
-1. Add `NodeUsageSpec`, `GraphUsageSpec`, `NodeSpec.usage`, `GraphSpec.usage` (D1, D3).
-2. New `usage_attribution.py` (D6): a `UsageAccumulator` that folds one `AnyTokensUsage`, tracking `inference_calls`, `rated_inference_calls`, merged `nb_tokens_by_category`, canonical `total_tokens`, and summed cost via `compute_tokens_usage_cost`. Plus `roll_up(nodes)` producing the subtree fields.
-3. Replace `graphspec_assembler.py:197-198`:
- ```python
- elif isinstance(event, UsageReportEvent):
- self._handle_usage_report(event)
- ```
-4. Attach a spec to **every** node when any usage event was seen, zeroed where nothing ran (invariant 1). Emit `GraphSpec.usage` with the run total and the `"unknown"` bucket.
-5. Rollup in `pass_two()`: memoized post-order walk of `parent_node_id`. Memoize (O(n), not O(n·depth)), guard cycles with a visited set, and treat a dangling `parent_node_id` as a root rather than a `KeyError`.
-6. Update the class docstring at `graphspec_assembler.py:112-119` — it enumerates pass 1 and pass 2 and goes stale the moment step 3 lands.
-
-All new functions keyword-only per `docs/contribute/keyword-only-arguments.md`. Run `make agent-check`.
-
-> **CHECKPOINT 1.** `pipe_output.graph_spec` now carries per-node usage, and the API, the MCP, and `vscode-pipelex` get it whether or not a card renders it. The independently valuable half — worth landing alone if the UI work stalls. Record here: whether rollup memoization held on the deepest fixture, and whether `GraphSpec.usage.unattributed` was non-zero on any real run (it should not be).
-
-### Phase 2 — pipelex: tests
-
-Files: new `tests/unit/pipelex/tracing/test_usage_attribution.py`, `test_graphspec_assembler.py`, `test_assembler_equivalence.py`, `tests/unit/pipelex/graph/test_graphspec_roundtrip.py`.
-
-Full coverage per the diagram below, including the D4 equivalence assertion. Every invariant in the `NodeUsageSpec` docstring gets a named test — they are the contract.
-
-### Phase 3 — pipelex: docs and changelog
-
-- New page under `docs/under-the-hood/` on the two projections of one event stream and the three usage states. Sibling to `tokens-usage-wire-records.md`.
-- Update `docs/features/cost-tracking.md` for per-node attribution.
-- `CHANGELOG.md` under `## [Unreleased]`: breaking — `GraphSpec` nodes gained `usage`, and `NodeSpec` is `extra="forbid"`, so an older pipelex rejects the new JSON. Per workspace policy there is no transition window; the note is the deliverable.
-
-> **CHECKPOINT 2.** pipelex is shippable here. Everything after crosses into `mthds-ui` and eventually needs an npm publish + SRI bump to reach users. Decide whether to land Phase 1-3 as its own PR.
-
-### Phase 4 — regenerate DRY fixtures with `--mock-usage` (free)
-
-`generate-fixtures.mjs:124-131` passes `--dry-run --mock-inputs`. Add `--mock-usage` to that DRY arg list (D5) so the corpus carries non-zero unrated tokens instead of zeros.
-
-```bash
-cd ../mthds-ui && make fixtures
-```
-
-Picks up the local `.venv` pipelex automatically (`generate-fixtures.mjs:48-50`).
-
-**Gate — stated correctly this time.** Not "every node has `inference_calls >= 1`"; controllers, `PipeFunc`, skipped and lifted pipes legitimately have zero. The gate is:
-
-- every node has `usage != null` (invariant 1),
-- `cost == null` on every node (invariant 2 — DRY is always unrated),
-- at least one LLM-bearing node has `total_tokens > 0` (proves `--mock-usage` took effect),
-- every controller has `subtree_total_tokens >= ` the max of its children's,
-- `graph.usage.unattributed.inference_calls == 0`.
-
-`assertValid` (`generate-fixtures.mjs:163-177`) checks format/mode/nodes/description/domain_code only and will pass an all-null regeneration. Extend it — that is task T10, not an optional grep.
-
-### Phase 5 — mthds-ui: validator, type, payload, card
-
-Files: `src/graph/types.ts`, `src/graph/validateGraphSpec.ts`, `src/graph/pipeCardPayload.ts`, `src/graph/react/nodes/pipe/pipeCardTypes.ts`, `PipeCardBase.tsx`, `graph-core.css`, `react/detail/PipeDetailPanel.tsx`.
-
-1. `types.ts` — `usage?: NodeUsage` on the node type, `usage?: GraphUsage` on the spec, mirroring the Python models.
-2. `validateGraphSpec.ts` — **the boundary gate**. Types alone are a compile-time fiction; malformed `usage` from a stale or hostile spec otherwise flows through as trusted data. Validate shape and the `cost === null || typeof cost === "number"` invariant.
-3. `pipeCardPayload.ts:22-23` — one line, mirroring the existing `tags` passthrough:
- ```ts
- if (node.usage !== undefined) payload.usage = node.usage;
- ```
-4. `PipeCardBase.tsx` — a usage chip in the existing `pipe-card-annotations` row (`:~130`), already the established pattern for `outcome` / `batch_multiplicity`. Four render states, visually distinct:
-
- | State | Condition | Card shows |
- |---|---|---|
- | not collected | `usage === undefined` | nothing |
- | ran nothing | `inference_calls === 0 && subtree_inference_calls === 0` | nothing |
- | unrated | `cost === null` with calls > 0 | token count, no `$` |
- | partial | `inference_calls > rated_inference_calls > 0` | `≥ $0.0043` |
- | rated | `rated === inference_calls > 0` | `$0.0043` |
-
- Controllers read the `subtree_*` fields; operators read own (D2).
-5. `PipeDetailPanel.tsx` — a Usage section beside the existing Metrics section, with the per-category breakdown and both own and subtree columns.
-
-### Phase 6 — LIVE regeneration, real money
-
-```bash
-cd ../mthds-ui && make fixtures-live ONLY=pipeline_01,pipeline_09
-```
-
-Two or three pipelines, never the corpus. The script's own header (`:20-23`) warns a full sweep has no skip path and leaves a half-swept mixed-version tree on any failure; see `mthds-ui/wip/fixtures-live-corpus-regeneration.md`. `--only` reuses every other pipeline's on-disk spec so the emitted fixtures stay complete.
-
-**Cross-check semantics, stated so the check is meaningful.** `CostRegistry.aggregate_costs` treats an unrated usage as zero-cost; `NodeUsageSpec.cost` is `None`. Comparing them naively produces a false disagreement. The check is: `graph.usage.total.cost` must equal the CSV total **when `total.rated_inference_calls == total.inference_calls`**. When they differ, the graph total is a lower bound and the CSV is the wrong comparand — compare `rated_inference_calls` against the CSV row count instead.
-
-**Do not commit the LIVE regeneration** unless you intend to. Every regenerated live spec is real inference against whatever models are current; the diff churns far beyond the `usage` field.
-
-> **CHECKPOINT 3.** You have looked at it. Decide whether the card treatment is right before the npm publish + `make refresh-graph-ui-sri` bump that makes it reach users.
-
----
-
-## Test coverage
-
-```
-CODE PATHS USER FLOWS
-[+] tracing/usage_attribution.py (new) [+] Storybook, DRY corpus (default view)
- ├── UsageAccumulator.fold() ├── [GAP] Unrated card: token count,
- │ ├── [GAP] first usage for a node │ no "$", not "$0.00"
- │ ├── [GAP] second usage, same node (accumulate) ├── [GAP] Controller shows subtree
- │ ├── [GAP] INVARIANT 2: unrated -> cost stays None │ tokens, not blank
- │ ├── [GAP] INVARIANT 3: mixed rated/unrated -> cost ├── [GAP] Zero-call node (PipeFunc,
- │ │ is a lower bound, rated < calls │ lifted) shows nothing, and
- │ └── [GAP] INVARIANT 4: total_tokens is joined+output, │ is distinguishable from
- │ NOT sum(nb_tokens_by_category) │ "not collected"
- └── roll_up() └── [GAP] Detail panel Usage section,
- ├── [GAP] leaf: subtree == own own + subtree columns
- ├── [GAP] controller: sum of children
- ├── [GAP] nested 3 deep, memoization correct [+] Storybook, LIVE fixtures
- ├── [GAP] all-unrated subtree -> subtree_cost None ├── [GAP] Real dollars on a card
- ├── [GAP] CRITICAL cycle in parent chain -> guard ├── [GAP] Partial "≥ $" state
- └── [GAP] CRITICAL dangling parent -> treated as root └── [GAP] Sequence subtree_cost ==
- sum of children's cost
-[+] tracing/graphspec_assembler.py
- ├── _handle_usage_report() [+] Contract consumers
- │ ├── [GAP] node_id="unknown" -> graph.usage.unattributed ├── [GAP] [→E2E] graphspec.json
- │ └── [GAP] node_id for a node that never started │ round-trips through
- └── build_graph_spec() │ validateGraphSpec
- ├── [GAP] INVARIANT 1: usage=None on ALL nodes when └── [GAP] vscode-pipelex adapter
- │ no usage event was seen renders a usage-bearing spec
- ├── [GAP] INVARIANT 1: EVERY node gets a spec when
- │ any usage event was seen (controllers,
- │ PipeFunc, skipped, lifted all zeroed)
- └── [GAP] graph.usage.total == sum over nodes' own
-
-[+] graph/graphspec.py
- ├── [GAP] NodeUsageSpec JSON round-trip preserves cost=None
- ├── [GAP] extra="forbid" rejects an unknown usage field
- └── [★★ TESTED] NodeSpec round-trip — test_graphspec_roundtrip.py
- └── [GAP] REGRESSION: round-trip with usage populated
-
-[+] tests/.../test_assembler_equivalence.py
- └── [GAP] CRITICAL: _normalize_node compares "metrics" (:57) but no
- scenario emits usage. Add _scenario_with_usage AND assert the
- divergence explicitly (assembler has usage, tracer has None) —
- do NOT normalize usage away (D4).
-
-[+] mthds-ui
- ├── validateGraphSpec.ts
- │ ├── [GAP] accepts a well-formed usage object
- │ ├── [GAP] rejects cost of the wrong type
- │ └── [GAP] accepts a spec with no usage at all
- ├── pipeCardPayload.ts
- │ ├── [GAP] usage passed through when present
- │ └── [GAP] usage absent -> key omitted (mirrors tags at :23)
- └── PipeCardBase.tsx
- ├── [GAP] all five render states distinct
- └── [GAP] controller reads subtree_*, operator reads own
-
-COVERAGE: 1/35 paths tested (3%) | Code: 1/22 (5%) | Flows: 0/13 (0%)
-QUALITY: ★★:1 | GAPS: 34 (1 E2E, 0 eval, 3 CRITICAL)
-```
-
-Legend: ★★★ behavior + edge + error | ★★ happy path | ★ smoke | [→E2E] integration
-
-## Failure modes
-
-| Codepath | Realistic production failure | Test? | Error handling? | Silent? |
-|---|---|---|---|---|
-| `roll_up` | Cycle in `parent_node_id` (not enforced anywhere today) | planned | visited-set guard, else infinite loop | **hang, not error** |
-| `roll_up` | `parent_node_id` names a node absent from `_nodes` (cross-worker partial read) | planned | treat as root, never `KeyError` | **would be silently wrong** |
-| `UsageAccumulator.fold` | Mixed rated + unrated on one node renders a partial total as if complete | planned | `rated_inference_calls` + the UI "≥" marker | **would be silently wrong money** |
-| UI token chip | Consumer sums `nb_tokens_by_category`, double-counting `input_cached` | planned | `total_tokens` is the only sanctioned total; docstring says so | **would be silently wrong** |
-| `_handle_usage_report` | Event for a `node_id` that never emitted `PipeStartEvent` (worker died between) | planned | mirror the existing `log.warning(f"...unknown node: {event.node_id}")` used by every sibling handler | no, once handled |
-| `graph.usage.unattributed` | Usage emitted outside any pipe context | planned | typed bucket, surfaced not dropped | no |
-| Temporal retry | Retried activity re-emits usage at a new sequence — documented over-count R2 (`reporting_manager.py:265-270`) | not fixable here | none; inherited | yes, and now visible per-node |
-| Phase 4 gate | `usage` null everywhere because Phase 1 mis-wired | T10 | none in `generate-fixtures.mjs` today | **yes without T10** |
-
-**Critical gaps: 3.** The cycle guard (hang, no error), the dangling-parent rollup (silently wrong), and mixed rated/unrated (silently wrong *money*, the worst kind). All three are in Phase 1 and must land with it.
-
-## NOT in scope
-
-| Deferred | Why |
-|---|---|
-| Plumbing usage into the in-process `GraphTracer` | Its `GraphSpec` is discarded at all three call sites (D4). Divergence asserted instead. |
-| Preserving `node_id` on `PipeOutput.tokens_usages` | Would change `TokensUsageRecord`, a shipped `extra="forbid"` client contract. The DRY win is taken via the shared module (D6) instead. |
-| npm publish of `@pipelex/mthds-ui` + `make refresh-graph-ui-sri` | Local loop first. Nothing reaches users until this happens; deliberate later step. |
-| Committing LIVE fixture regeneration | Real inference against current models; diff churns far past `usage`. |
-| Per-model cost breakdown on a node | `NodeUsageSpec` is extensible; add `by_model` when something asks. |
-| A real `GraphSpec` version field | Docs call GraphSpec "versioned" and it has no version field. Real gap, pre-existing, own change. TODO below. |
-| Fixing the Temporal retry over-count (R2) | Pre-existing, documented, separate. |
-| `mermaidflow` renderer | Text renderer, no cost surface planned. |
-| Attributing cost to an org / debiting a balance | The deferred billing connection (`monetization-metering-already-exists`). Different consumer of the same stream. |
-| `_generate_data_edges` nested-loop complexity (`graphspec_assembler.py:474-486`) | Pre-existing, flagged below, not touched. |
-
-## Performance
-
-Single pass over events; accumulation is O(1) per event. Rollup is O(n) memoized, O(n·depth) without — memoize. Payload grows by two small objects per node; negligible.
-
-**Pre-existing, flagged not fixed:** `_generate_batch_item_edges` (`:474-486`) and `_generate_batch_aggregate_edges` nest a full node scan inside a per-item loop, so batch fan-out is roughly O(items × nodes × inputs). Invisible on 32 small fixtures; it will bite on a wide production batch.
-
-## Parallelization
-
-| Step | Modules touched | Depends on |
-|---|---|---|
-| Phase 1 model + attribute | `pipelex/graph/`, `pipelex/tracing/` | — |
-| Phase 2 tests | `tests/unit/pipelex/` | Phase 1 |
-| Phase 3 docs | `pipelex/docs/`, `CHANGELOG.md` | Phase 1 |
-| Phase 4 DRY fixtures | `mthds-ui/scripts/`, `mthds-ui/data/`, `.../specs/` | Phase 1 |
-| Phase 5 UI | `mthds-ui/src/graph/` | Phase 4 |
-| Phase 6 LIVE fixtures | `mthds-ui/data/` | Phase 5 |
-
-```
-Lane A: Phase 1 → Phase 2 (sequential, shared pipelex/)
-Lane B: Phase 3 (independent once Phase 1 lands — docs only)
-Lane C: Phase 4 → Phase 5 → Phase 6 (sequential, shared mthds-ui/)
-
-Launch: Phase 1 alone. Then B and C in parallel with A's remainder.
-```
-
-**Conflict flag:** Lanes B and C are clean against each other. Lane C reads the pipelex `.venv`, so do not start it until Phase 1 is committed.
-
-## Implementation Tasks
-
-- [x] **T1 (P1, human: ~3h / CC: ~30min)** — graphspec — `NodeUsageSpec`, `GraphUsageSpec`, and the four invariants as docstring contract
- - Surfaced by: D1/D3 — first draft overloaded `cost: None` four ways; `meta` bag was untyped
- - Files: `pipelex/graph/graphspec.py`
- - Verify: `.venv/bin/pytest tests/unit/pipelex/graph/test_graphspec_roundtrip.py`
-- [x] **T2 (P1, human: ~4h / CC: ~40min)** — tracing — New `usage_attribution.py`: accumulator + rollup, one home for the invariants
- - Surfaced by: D6 — keeps a second aggregation model out of `_AssemblerState`
- - Files: `pipelex/tracing/usage_attribution.py`
- - Verify: new `tests/unit/pipelex/tracing/test_usage_attribution.py`
-- [x] **T3 (P1, human: ~2h / CC: ~20min)** — assembler — Fold `UsageReportEvent`; attach a spec to EVERY node when collection was on
- - Surfaced by: `graphspec_assembler.py:197` `pass`; invariant 1 (controllers/PipeFunc/lifted nodes must not read as "not collected")
- - Files: `pipelex/tracing/graphspec_assembler.py`
- - Verify: `.venv/bin/pytest tests/unit/pipelex/tracing/test_graphspec_assembler.py`
-- [x] **T4 (P1, human: ~2h / CC: ~20min)** — tracing — CRITICAL: cycle guard, dangling-parent tolerance, memoized rollup
- - Surfaced by: Failure modes — cycle hangs with no error; dangling parent is silently wrong
- - Files: `pipelex/tracing/usage_attribution.py`
- - Verify: `test_usage_attribution.py`
-- [x] **T5 (P1, human: ~1h / CC: ~10min)** — assembler — `"unknown"` usage into `GraphSpec.usage.unattributed`; emit run total
- - Surfaced by: D3 — `reporting_manager.py:219` fallback would otherwise drop it
- - Files: `pipelex/tracing/graphspec_assembler.py`
- - Verify: `test_usage_attribution.py`
-- [x] **T6 (P1, human: ~1h / CC: ~15min)** — tests — CRITICAL: assert the builder divergence in `test_assembler_equivalence`
- - Surfaced by: D4 — `:57` compares `metrics`, no scenario emits usage, divergence would be silent
- - Files: `tests/unit/pipelex/tracing/test_assembler_equivalence.py`
- - Verify: `.venv/bin/pytest tests/unit/pipelex/tracing/test_assembler_equivalence.py`
-- [x] **T7 (P2, human: ~30min / CC: ~5min)** — assembler — Refresh the pass-1/pass-2 docstring at `:112-119`
- - Surfaced by: Code quality — docstring/diagram maintenance is part of the change
- - Files: `pipelex/tracing/graphspec_assembler.py`
- - Verify: read it
-- [x] **T8 (P2, human: ~2h / CC: ~20min)** — docs — Under-the-hood page on the two projections and the three usage states
- - Surfaced by: workspace rule — document at every iteration
- - Files: `docs/under-the-hood/`, `docs/features/cost-tracking.md`, `CHANGELOG.md`
- - Verify: `make agent-check`
-- [x] **T9 (P1, human: ~1h / CC: ~10min)** — mthds-ui — `usage` through `types.ts` and `pipeCardPayload.ts`
- - Surfaced by: Phase 5 — mirrors the existing `tags` passthrough at `pipeCardPayload.ts:23`
- - Files: `mthds-ui/src/graph/types.ts`, `pipeCardPayload.ts`, `pipeCardTypes.ts`
- - Verify: `npm run typecheck && npx vitest run pipeCardPayload`
-- [x] **T10 (P1, human: ~1h / CC: ~15min)** — mthds-ui — Validate `usage` in `validateGraphSpec.ts`; extend `assertValid` in `generate-fixtures.mjs`
- - Surfaced by: Codex — the validator is the boundary gate; `assertValid` would pass an all-null regeneration
- - Files: `mthds-ui/src/graph/validateGraphSpec.ts`, `mthds-ui/scripts/generate-fixtures.mjs`
- - Verify: `make fixtures` fails loudly against a pre-Phase-1 pipelex
-- [x] **T11 (P1, human: ~30min / CC: ~5min)** — mthds-ui — Add `--mock-usage` to the DRY arg list
- - Surfaced by: D5 — plain `--dry-run` yields zero-token usage, so the token chip is untestable for free
- - Files: `mthds-ui/scripts/generate-fixtures.mjs:124-131`
- - Verify: regenerated DRY fixtures show `total_tokens > 0` on LLM nodes
-- [x] **T12 (P1, human: ~5h / CC: ~50min)** — mthds-ui — Usage chip, five distinct render states, subtree-vs-own by node kind
- - Surfaced by: D1/D2/D5 — unrated is the default view and must not look like `$0.00`; partial must not look complete
- - Files: `PipeCardBase.tsx`, `graph-core.css`, `PipeDetailPanel.tsx`
- - Verify: `make storybook`, inspect DRY and LIVE stories
-
-## TODOs to capture
-
-1. **`GraphSpec` has no version field** despite `graphspec.py:3` calling it "versioned" and `pipelex-hosted-envelope.md:96` calling it a strict contract. Adding `usage` under `extra="forbid"` is a hard break for any older reader with no way to detect it. Pre-existing; own change.
-2. **Revive-or-delete the in-process `GraphTracer` GraphSpec.** Discarded at all three call sites. Either something consumes it or `close_tracer` stops returning it.
-3. **`_generate_batch_item_edges` nested scan.** O(items × nodes × inputs) on batch fan-out. Needs a wide-batch benchmark to justify.
-
-## Outside voice absorbed
-
-Codex reviewed revision 1. Ten findings accepted, one partially, one noted as policy-exempt.
-
-| Finding | Verdict |
-|---|---|
-| `cost: None` overloaded four ways | **Accepted** — invariants 1-3, `rated_inference_calls` |
-| No subtree token rollup; controllers blank in DRY | **Accepted** — `subtree_nb_tokens_by_category`, `subtree_total_tokens` |
-| Mixed rated/unrated renders a partial as complete | **Accepted** — invariant 3 + UI "≥" state |
-| Summing `nb_tokens_by_category` double-counts `input_cached` | **Accepted** — canonical `total_tokens`, invariant 4 |
-| `usage is None` ≠ "not collected" for zero-call nodes | **Accepted** — every node gets a spec; Phase 4 gate rewritten |
-| DRY fixtures need `--mock-usage` to be meaningful | **Accepted** — T11 |
-| `meta` bag is untyped; use a typed `GraphSpec.usage` | **Accepted** — D3 rewritten, `GraphUsageSpec` |
-| `validateGraphSpec.ts` missing from the task list | **Accepted** — T10 |
-| CSV cross-check semantics undefined (`null` vs `0`) | **Accepted** — Phase 6 states the comparison |
-| Normalizing `usage` away weakens equivalence permanently | **Accepted** — D4 asserts the divergence instead |
-| Preserve `node_id` on usage records, one shared rollup | **Partially** — shared module (D6) yes; changing `tokens_usages` no, it is a shipped `extra="forbid"` wire contract |
-| `extra="forbid"` breaks older readers | **Noted, not acted** — workspace policy is explicitly no backward compatibility. The missing version field is a fair catch and is TODO 1. |
-
-**No cross-model tension.** Codex did not contradict any review finding; it found gaps the review missed. The one strategic challenge (merge the two projections) was answered by taking its DRY intent without breaking a shipped contract.
-
-## GSTACK REVIEW REPORT
-
-| Review | Trigger | Why | Runs | Status | Findings |
-|--------|---------|-----|------|--------|----------|
-| CEO Review | `/plan-ceo-review` | Scope & strategy | 0 | — | — |
-| Codex Review | `/codex review` | Independent 2nd opinion | 1 | ISSUES_FOUND | 12 findings, 10 accepted, 1 partial, 1 policy-exempt |
-| Eng Review | `/plan-eng-review` | Architecture & tests (required) | 1 | ISSUES_OPEN | 44 issues, 3 critical gaps |
-| Design Review | `/plan-design-review` | UI/UX gaps | 0 | — | — |
-| DX Review | `/plan-devex-review` | Developer experience gaps | 0 | — | — |
-
-- **CODEX:** Outside voice ran on revision 1 and materially changed the design — the overloaded `cost: None`, the missing subtree token rollup, the double-counted `input_cached`, the untyped `meta` bag, and the missing `validateGraphSpec` gate all came from it.
-- **CROSS-MODEL:** No tension. Codex found gaps rather than contradicting findings; its one strategic challenge (merge the two event-stream projections) was absorbed as a shared attribution module without changing the shipped `TokensUsageRecord` wire contract.
-- **VERDICT:** ENG REVIEW COMPLETE — plan revised and ready to implement. Status is ISSUES_OPEN rather than CLEAR because 3 critical gaps (rollup cycle guard, dangling-parent tolerance, mixed rated/unrated partial cost) are planned but not yet built; they clear when T4 and T2 land.
-
-NO UNRESOLVED DECISIONS
diff --git a/wip/doctor-backend-file-check/plan.md b/wip/doctor-backend-file-check/plan.md
deleted file mode 100644
index 70ba31c57..000000000
--- a/wip/doctor-backend-file-check/plan.md
+++ /dev/null
@@ -1,78 +0,0 @@
----
-status: landed
-item: L-260902-376d51
----
-
-# Doctor: validate backend files leniently
-
-## Problem
-
-`pipelex doctor` on a stock installation reports a hard "Backend configuration error" for `pipelex_gateway`, and the Models row never gets to run its own check. Verified on `dev` on 2026-09-03, on a config directory copied straight from the kit with no edits.
-
-The cause is one call. `check_backend_files` in `pipelex/cli/commands/doctor_cmd.py` probes each enabled backend by loading the whole backend library through `InferenceBackendLibrary.load` with neither a gateway config nor `lenient=True`. The loader's gateway branch in `pipelex/cogt/model_backends/backend_library.py` treats a missing gateway config in strict mode as a caller's omission and raises `InferenceBackendLibraryError` with a message addressed to a library caller ("pass `gateway_config`, or disable the backend"). The kit ships `[pipelex_gateway] enabled = true` in `backends.toml` and ships `backends/pipelex_gateway.toml`, and that file's presence is what makes the probe validate the gateway at all, so the ordinary install is the reproduction.
-
-`check_models` then returns as soon as `check_backend_files` reports any invalid file, before fetching the remote config, building the gateway config and validating the model deck. So on a stock install the model check is never reached, and the report points at a file identical to the kit template it offers to restore.
-
-### Verified facts
-
-Run against a scratch copy of `pipelex/kit/configs/inference`, with the doctor runtime set up by `setup_doctor_runtime()`:
-
-- `check_backend_files(config_dir=<kit copy>)` returns `healthy=False`, "1 backend file(s) have validation errors", with `pipelex_gateway` carrying the loader's caller-facing message.
-- **The false error masks real ones.** The gateway is the first table in the kit's `backends.toml`, so every per-backend probe dies on it before reading any other file. With an unknown table appended to `anthropic.toml`, the probe still reports `anthropic` as valid and only `pipelex_gateway` as invalid. On a stock install the file check can currently detect nothing.
-- With `lenient=True`, the same load succeeds on the kit copy: the gateway backend is skipped ("gateway model specs not available") and every other kit backend loads, with the environment scrubbed of every API key.
-- With `lenient=True`, the malformed `anthropic.toml` still raises `InferenceBackendLibraryError: Unknown key on model 'bogus_key_table' for backend 'anthropic' from file '…/backends/anthropic.toml'`, whether or not `ANTHROPIC_API_KEY` is set. Leniency does not swallow a malformed file, which is what the loader's docstring promises.
-- Missing credentials do not fail the load in either mode: with the gateway disabled, a strict load over the kit copy succeeds under a scrubbed environment. So on a stock install the only behaviour leniency changes in this probe is the gateway branch.
-- The lenient path logs through `log.verbose`, which needs a configured log. `check_models` already requires `setup_doctor_runtime` to have run, and unit tests get a configured log from the module-scoped `Pipelex.make` fixture in `tests/conftest.py`.
-
-Not a regression from `feature/Two-gateways-2`: that branch renamed the loader parameter to `managed_gateway_configs` and reworded the message, and left both sites in the same shape. The fix is one keyword argument and rebases onto either.
-
-## Decision
-
-Pass `lenient=True` on the load in `check_backend_files`. The file check exists to catch a malformed per-backend file; whether the gateway's specs are reachable is the Models row's question (it fetches the remote config itself, behind the terms-accepted gate), and whether credentials resolve is the Credentials row's. Leniency is exactly that split: the loader skips a backend whose gateway specs or credentials are unavailable and stays fatal on a malformed file.
-
-Rejected alternatives:
-
-- Fetching the gateway config inside the file check. It would put a network fetch and the terms gate inside a check that should read files only, and duplicate what `check_models` does a few lines later.
-- Dropping the early return in `check_models`. The return is right when a file is genuinely malformed: validating a model deck over a broken backend file reports the far more confusing "model not found". The bug was the false input to that return, not the return.
-
-## Steps
-
-1. **The fix.** In `check_backend_files`, pass `lenient=True` to `temp_library.load(...)` and replace the "Try to load just this backend's specs" comment with one that says why: the probe validates file shape, and a backend whose gateway specs or credentials are unavailable is another row's finding, not a malformed file.
-2. **Docstring accuracy.** The `lenient` docstring on `InferenceBackendLibrary.load` says credentials are "the whole of the tolerance", but the gateway branch also skips under leniency when no gateway config was passed. Amend that sentence so the docstring matches the code.
-3. **Tests**, in `tests/unit/pipelex/cli/test_doctor_backend_checks.py`, both built on a copy of `get_kit_configs_dir() / "inference"` into `tmp_path`, so the shipped defaults are the fixture:
- - A stock kit copy is healthy: `check_backend_files` returns healthy, every report valid, and the `pipelex_gateway` report present and valid. Mutation check: revert step 1 and this test must go red with the gateway message.
- - A malformed file is still caught under leniency and no longer masked: append an unknown table to `anthropic.toml`; expect unhealthy, `anthropic` invalid with a message naming `anthropic`, and `pipelex_gateway` valid.
- - The existing `check_models` short-circuit test keeps its meaning and stays.
-4. **Docs.** `docs/under-the-hood/init-cli-flows.md` lists `check_backend_files` in its resolution table; add a sentence there stating that the backend-files probe loads leniently and what that leaves to the Credentials and Models rows. No user-facing page describes the doctor's rows individually today, so this is the one touch.
-5. **Changelog.** A `### Fixed` entry under `[Unreleased]`: the doctor no longer reports a false backend-configuration error for the gateway on a stock install, the Models row runs its own check, and a malformed backend file is no longer hidden behind the gateway.
-6. **Verify.** `make agent-check`; the two doctor test modules directly; `make agent-test`. By hand: `pipelex doctor` against a fresh `pipelex init config` directory, expecting the Backend Files row healthy and the Models row reporting its own verdict.
-7. **PR** against `dev` with `Closes L-260902-376d51` in the body.
-8. **Attribution by declared backend** (added while implementing, see Revisions). `InferenceBackendLibraryError`, its validation sibling and `InferenceModelSpecError` take a keyword-only `backend_name`, the loader stamps it at every raise about one backend, and the doctor charges a failure to the backend the error declares, falling back to the file path only for an error that declares none. A unit test pins that an error about another backend whose prose mentions this one leaves this one valid.
-
-## Out of scope
-
-- `check_backend_files` still loads the whole library once per enabled backend, quadratic in file reads, and every probe sees the same first failure — so a second malformed file ordered after the first is still reported valid. A per-backend validation entrypoint on the loader would make one probe read one file. Not this fix; filed as L-260902-42b735 with its reproduction.
-- The loader's message wording is a caller's message and stays one: after this fix no user-facing surface reaches it on a stock install.
-
-## Revisions
-
-- 2026-09-03, while implementing: the substring attribution was planned as out of scope, but the first kit-based test tripped on it. The loader's unknown-key explanation names `portkey` in passing, so anthropic's error was charged to portkey as well and the probe reported two invalid files. Fixed here rather than deferred (step 8), because the malformed-file test could not be written honestly around it.
-
-- 2026-09-03, pre-landing review: the substring attribution fixed in step 8 was still live in `check_models`, which writes into the same `BackendFileReport` objects. Reproduced against a kit copy: an `InferenceBackendLibraryError` declaring `openai` also marked `portkey` invalid, because the loader's unknown-key advice names `x-portkey-provider`. Leniency makes that path more reachable, not less, since the Backend Files row now stops returning early. `check_models` now uses the same `_is_error_about_backend` helper, and `backend_name` moved from three duplicated subclass constructors onto `CogtError.__init__`, which already declared the attribute.
-
-## Verification record
-
-The facts above were established on 2026-09-03 by calling `check_backend_files` and `InferenceBackendLibrary.load` directly from `.venv/bin/python` over scratch copies of the kit's `inference/` directory, under `env -i` so no API key was in the environment.
-
-## Landing
-
-Merged as `pipelex#1188`, squashed onto `dev` as `3840f800f`. The merge has **not** reached `main`: the fix ships to exact-version consumers with the next pipelex release, which is tracked by L-260828-f4e88c. L-260902-376d51 closed `fixed` on that merge.
-
-Every step landed as planned, plus step 8 and the review round recorded under Revisions. What the merged tree carries, for a reader who arrives here first:
-
-- `lenient=True` on the probe's load — `pipelex/cli/commands/doctor_cmd.py`, inside `check_backend_files`.
-- `_is_error_about_backend`, used by **both** doctor rows: the Backend Files probe and `check_models`, which mutates the same `BackendFileReport` objects.
-- `backend_name` as a keyword parameter on `CogtError.__init__`, where the attribute was already declared, rather than on three subclass constructors.
-- Two kit-based regression tests in `tests/unit/pipelex/cli/test_doctor_backend_checks.py`, both of which go red with the one-line fix reverted, and two attribution tests in `test_doctor_check_models.py`.
-
-The one thing this campaign deliberately did not fix is L-260902-42b735: the probe still loads the whole library once per enabled backend and stops at the first failure, so a second malformed file ordered after the first is still reported valid. That item carries the reproduction.
diff --git a/wip/drift-contracts-design.md b/wip/drift-contracts-design.md
deleted file mode 100644
index 89ee21ea4..000000000
--- a/wip/drift-contracts-design.md
+++ /dev/null
@@ -1,224 +0,0 @@
-# Drift Contracts — deterministic review obligations between code, docs, and tests
-
-## Status
-
-Design accepted and implemented (engine in Phase 1, wiring/seeds/docs in Phase 2 — see `TODOS.md` for execution state and the engineering-review decisions that refined this text). The main refinement over the original proposal: digests are computed from the **git index** (staged blob OIDs via `git ls-files -s`), not from working-tree bytes — see "The validity rule" below.
-
-## Problem
-
-CLAUDE.md already states the policy ("document at every iteration", "keep the toml files and configs.py in sync", "keep specs and their verifying tests in sync"), but prose policy is advisory: nothing tells a PR author — human or agent — *which* docs and tests are stale relative to *this* change, and nothing records that the check happened. The research brief proposes a deterministic traceability tool for this. This design adapts that proposal to what the Pipelex repo already has, and deliberately simplifies it in several places.
-
-## What the repo already has — and the actual gap
-
-The brief describes a greenfield. We are not greenfield. Three synchronization tiers already exist in some form:
-
-| Tier | Mechanism | Judgment needed | Status in this repo |
-|---|---|---|---|
-| **Derived** | Regenerate + diff: `check-config-sync`, `check-mthds-schema`, `check-gateway-models`, `check-rules`, `generate-error-pages` | None — output is a pure function of sources | **Exists**, wired into `make check` and CI |
-| **Linkage** | Referential integrity of declared cross-references: the spec-link checker (spec `> Verified by:` ↔ test `pytest.mark.spec`) | None — links either resolve or they don't | **Exists** for the spec ↔ verifying-test pair |
-| **Review** | "This code changed → these docs/tests must be *looked at* against this exact change, and the look must be recorded" | Yes — a human or agent must judge whether the prose/tests still hold | **Missing** — this is the gap |
-
-This framing yields the first design principle: **the new tool covers only the review tier**. Derived checks stay exactly where they are (Makefile + `pipelex-dev` commands); they are strictly better than review contracts because they need no judgment and can't be rubber-stamped. Whenever a review contract turns out to be mechanizable — the doc section could be generated, the sync could be checked structurally — the right move is to *delete the review contract and write a derived check*. The best review contract is one you eventually mechanize out of existence.
-
-## Core model
-
-A **drift contract** declares: "when these trigger files change, these review targets must be re-examined, and the examination must be acknowledged." The system has three pieces:
-
-- a **manifest** (`drift.toml`, repo root, human-authored) declaring contracts;
-- **ack state** (`.drift/acks/<contract-id>.toml`, one file per contract, tool-written, committed) recording the last fulfilled review;
-- a **CLI** (`pipelex-dev drift plan|check|ack`) that computes obligations, gates CI, and records acks.
-
-### The validity rule — one equality, no base ref
-
-This is the main deviation from the brief. The brief computes obligations from a git diff against a configurable base ref, then compares hashes against a review record. That drags in a whole class of problems: which base ref, how CI resolves it on stacked branches, force-pushes, merges from dev. None of it is needed. The validity rule is a single equality over tree content:
-
-> A contract is **fulfilled** iff the stored ack digest equals the digest recomputed from the current tree. Otherwise it is **open**.
-
-The digest for a contract is `sha256` over: the contract's own definition (canonically serialized — sorted keys and sorted glob lists, so reformatting or reordering `drift.toml` never churns the digest), plus the sorted list of `(path, content-hash)` pairs for every tracked file matching its trigger globs. Content hashes are the **staged blob OIDs from the git index**, read via a single `git ls-files -s` over the matched paths — matching and hashing share the same index source, hashing is filter-normalized (CRLF/smudge safe), and the digest covers exactly what lands in the commit. The cost of index semantics: trigger files must be `git add`-ed before `drift ack` to be covered (staged, not committed; other unstaged changes are fine).
-
-Properties that fall out of this rule:
-
-- **No base ref, no git diff, no timestamps.** `drift check` needs only the working tree and the committed ack files. It gives the same answer locally, in CI, on a rebase, on a squash-merge.
-- **The ack travels with the content.** Merging dev into a feature branch brings dev's trigger changes *and* dev's acks in the same tree, so digests match again automatically. A PR that changes triggers without re-acking fails; a PR that changes nothing passes; there is no "stale relative to what?" question.
-- **Editing a contract's definition forces a re-ack** (the definition is inside its own digest). Widening a trigger glob or adding a review target is itself a reviewable event.
-- **Adding a contract forces an initial review** — a new contract has no ack, so it is open until someone reviews the targets once and acks. Adoption is explicit, contract by contract.
-- **File deletion and rename are covered** — the matched-file set is part of the digest.
-- **Merges are backstopped by the digest, not by conflicts.** Two branches re-acking the same contract *can* conflict in its ack file, but a line-wise auto-merge can just as well splice the two acks into one neither branch reviewed — do not rely on the conflict. The guarantee is that `drift check` recomputes the digest over the merged tree, so a spliced or stale ack fails the check: the combined content was never reviewed as a whole. Resolution either way — finish the merge, review, re-run `drift ack` on the merged tree.
-
-Timestamps and reviewer identity are recorded for human audit, but they carry no validity semantics — exactly the brief's "hashes over timestamps" conclusion, taken one step further by removing the diff too.
-
-### Directionality
-
-Contracts are directional: triggers on one side, review targets on the other. Docs changing does not require re-reviewing code. Where a doc *is* the source of truth (spec-like pages), list it as a trigger of its own contract — symmetry is expressed by putting paths on both sides, not by a special mode.
-
-## Manifest format
-
-TOML, not YAML — this repo's idiom (`pipelex.toml`, `pyproject.toml`), and `plxt` already formats and lints TOML. Root-level `drift.toml` so it is as visible as the policy it enforces.
-
-```toml
-version = 1
-
-[contracts.config-docs]
-description = "User-facing configuration docs must track the config model and the shipped defaults."
-triggers = [
- "pipelex/system/configuration/**/*.py",
- "pipelex/pipelex.toml",
-]
-review = [
- "docs/configuration/**/*.md",
-]
-verify_commands = ["make tb"]
-
-[contracts.cli-docs]
-description = "CLI docs and the agent-CLI contract doc must track the CLI surface."
-triggers = [
- "pipelex/cli/**/*.py",
-]
-exclude = [
- "pipelex/cli/dev_cli/**",
-]
-review = [
- "docs/tools/cli/",
- "pipelex/cli/agent_cli/CLAUDE.md",
-]
-verify_commands = []
-```
-
-Notes on the schema:
-
-- One flat `review` list instead of the brief's `docs:/tests:/examples:` sub-maps — paths self-describe their category, and the packet renderer can group by prefix if grouping ever helps. Fewer fields, less ceremony.
-- `triggers`, `exclude`, and `review` take globs or paths, matched against `git ls-files` output only (tracked files — untracked noise and `.gitignore` handling come free, and CI sees the same set).
-- `verify_commands` are commands `drift ack` runs before writing the ack (see below). They should be *targeted* (a specific pytest path, `make tb`), not the full suite — CI runs the full gates anyway.
-
-## Ack state format
-
-One file per contract under `.drift/acks/`, committed. Per-contract files keep unrelated PRs from conflicting on a shared state file; two branches re-acking the *same* contract may conflict, and either way the post-merge digest recompute is what catches an unreviewed combination (see above).
-
-```toml
-contract = "config-docs"
-digest = "sha256:4e03f2a1…"
-reviewed_by = "louis"
-reviewed_at = "2026-07-03T14:12:09Z"
-rationale = "Added the activity_queues setting; documented it in docs/configuration/config-technical/; make tb green. No other config-docs pages affected."
-
-[trigger_files]
-"pipelex/system/configuration/configs.py" = "blob:a1b2c3…"
-"pipelex/pipelex.toml" = "blob:99ffee…"
-```
-
-The per-file map exists for *messaging*, not validity: when a contract is open, `drift plan` diffs the stored map against the current tree to say precisely which trigger files were added, removed, or modified since the last ack — without any git-diff machinery. The previous `rationale` is also shown in the plan packet: the last reviewer's decision is exactly the context the next reviewer wants.
-
-Because acks are committed files, they surface in the PR diff: a reviewer sees the rationale next to the change it covers. That is the audit trail — no CI artifacts, no PR metadata, no bot comments.
-
-## Command surface
-
-Three commands, not the brief's four-plus — manifest validation folds into `check`, and the "review packet" is just the detailed form of `plan`.
-
-```bash
-pipelex-dev drift plan [CONTRACT] # what is open, why, and what to do — markdown by default
-pipelex-dev drift check # CI gate: pure, fast, no command execution
-pipelex-dev drift ack CONTRACT --rationale "…" # run verify_commands, then record the ack
-```
-
-Make wrappers follow the existing pattern: `drift-plan`, `drift-check`, `drift-ack`, with `drift-check` added to the `make check` aggregate.
-
-### `drift plan`
-
-Lists open contracts. Per the workspace surface-output conventions, the default output is Markdown — the primary consumer is an agent handed the packet — with `--format json` for software. For each open contract: description, which trigger files changed/appeared/vanished since the last ack, the review targets, the verify commands, and the previous rationale. With a `CONTRACT` argument, the full packet for that one contract.
-
-```markdown
-## Open contract: config-docs
-
-User-facing configuration docs must track the config model and the shipped defaults.
-
-**Trigger changes since last ack** (by louis, 2026-07-03, "Added the activity_queues setting…"):
-
-- modified: pipelex/system/configuration/configs.py
-- modified: pipelex/pipelex.toml
-
-**Review targets:**
-
-- docs/configuration/**/*.md
-
-**To fulfill:** review the targets against the trigger changes, update what is stale, then run
-`make drift-ack CONTRACT=config-docs RATIONALE="…"` (this runs: make tb).
-```
-
-### `drift check`
-
-The CI gate. Pure and fast (glob matching + digest comparison; it shells only to git plumbing — `ls-files` — and never executes verify commands): it validates that the manifest parses and is schema-valid, that every trigger glob matches at least one tracked file (dead globs are manifest rot — hard error), that every review target resolves to something that exists, that every contract has an ack, and that every ack digest matches the recomputed digest. Non-zero exit prints, per open contract, the same actionable block CI users get from the other check targets — ending with "run `make drift-plan`".
-
-`drift check` goes into `make check` and CI. It deliberately does **not** go into `make agent-check`: that target is the tight post-edit lint loop, and doc-review obligations belong at the end of a change, not after every edit. The failure message in CI is the agent's entry point.
-
-### `drift ack`
-
-Requires `--rationale`. Runs the contract's `verify_commands` first; any failure aborts the ack — no `--skip-verify` flag in the MVP, because every escape hatch here is a rubber-stamp invitation, and the real escape hatch already exists (acking with a rationale that says "no doc change needed" is legitimate and cheap). `reviewed_by` defaults from `git config user.name`, overridable with `--by` (agents pass their identity). Recomputes the digest from the **index** at ack time (stage trigger files with `git add` first — unstaged edits and untracked files are not covered, and the command warns when it sees one matching the triggers), writes the ack file; the ack then gets committed together with the change it covers. If files move again after the ack, CI's `drift check` catches the mismatch — so a clean tree is *not* required.
-
-## Decisions, mapped to the brief's open questions
-
-- **Review state inside the manifest or separate?** Separate. The manifest is human-authored and low-churn; acks are tool-written and change with every fulfilled review. One file per contract to keep any merge conflict scoped to the contract it concerns (the real merge safety net being the post-merge digest recompute).
-- **Acks in repo, CI artifacts, or PR metadata?** In repo. Anything outside the tree breaks the local-equals-CI property and hides the audit trail from the PR diff.
-- **Review identity for agents?** A plain string. Git already attributes the commit; `reviewed_by` is context, not authentication. Agents should pass something resolvable (e.g. model name or session URL).
-- **Should ack require a clean tree?** No. Agents ack mid-flow before committing; digest mismatch after later edits is caught by `check`.
-- **Human override label in CI?** No. The ack *is* the override — it costs one command and one honest sentence. A second bypass channel would only bypass the audit trail.
-- **Granularity for v1?** Files and globs only. Symbol-level triggers (griffe), markdown heading anchors, and pytest node-ID validation are all deferred — they add dependency weight and slow the check, and the seed contracts below don't need them.
-- **Generated docs as review targets?** Excluded. Generated artifacts (`docs/errors/`, `derived/mthds_schema.json`, gateway model docs) belong to the derived tier and must never appear in `review` lists — reviewing generator *output* is how you end up editing generated files, which we already forbid.
-- **Infer candidate contracts from coverage/imports?** Not in scope. Manifest growth should follow pain, not tooling enthusiasm.
-
-## What this deliberately does not do
-
-Unchanged from the brief, and worth restating because they bound the tool's promises:
-
-- It does not prove docs are semantically correct — it proves the declared reviewer looked, at this exact content, and said so on the record.
-- It does not trace the whole repo. Contracts are added one at a time, where staleness has actually hurt.
-- It does not replace the CLAUDE.md documentation culture; it enforces the culture's floor on the few surfaces where silent drift is most expensive.
-
-And one addition: it does not handle cross-repo contracts. The spec ↔ verifying-test pair spans two sibling repos and already has a purpose-built checker doing linkage-tier validation with in-file markers; `drift` is per-repo and should not absorb it. If cross-repo review contracts become pressing, that is a separate design.
-
-## Failure modes, honestly
-
-- **Rubber-stamping.** The tool cannot force a real review. Mitigations: mandatory rationale, PR-visible ack diffs, verify commands at ack time, and — most importantly — keeping the contract count low enough that each open contract is a genuine event rather than background noise. If we observe reflexive acks ("docs fine" on every PR), the contract is mis-scoped: either narrow its triggers or mechanize it into a derived check.
-- **Review fatigue from over-broad triggers.** `pipelex/cli/**` will open the cli-docs contract on pure refactors. Acceptable at first (the ack costs a sentence); if it grates, narrow triggers to the surface-defining modules rather than adding bypass mechanisms.
-- **Manifest rot.** Dead globs and vanished review targets are hard `check` failures, so rot is loud, not silent.
-- **Ack-file merge conflicts.** Scoped per contract; possible but not guaranteed (a line-wise auto-merge can splice two acks silently). The real safety net is the post-merge digest recompute in `drift check`. Documented resolution: merge, review, then re-ack.
-- **Line-ending/filter edge cases.** Resolved by construction: digests use staged blob OIDs from the index, which are filter-normalized, so a smudge/clean filter or CRLF checkout cannot make local and CI hashes differ.
-
-## Seed contracts
-
-Start with three, all in the `pipelex` repo, all places where prose has already drifted or plausibly will (exact target lists to be settled at implementation time against the current docs tree):
-
-- **config-docs** — triggers: `pipelex/system/configuration/**/*.py`, `pipelex/pipelex.toml`; review: `docs/configuration/**`; verify: `make tb`. The structural toml↔configs.py sync is already mechanized by `check-config-sync` and `make tb`; this contract covers what those cannot — the prose.
-- **cli-docs** — triggers: `pipelex/cli/**/*.py` excluding `dev_cli/`; review: `docs/tools/cli/`, `pipelex/cli/agent_cli/CLAUDE.md`. The agent-CLI output-format contract doc is load-bearing for the whole workspace's surface conventions.
-- **keyword-only-convention** — triggers: `pipelex/cli/dev_cli/commands/keyword_only_guard.py`; review: `docs/contribute/keyword-only-arguments.md`. Small, sharp, and the doc is explicitly the convention's specification.
-
-Candidates deliberately *not* seeded: anything under `wip/` (not release-facing), generated pages (derived tier), broad feature docs (too noisy to start), the spec ↔ verifying-test pair (covered, cross-repo).
-
-## Rollout plan
-
-### Phase 1 — engine
-
-Implement `drift plan|check|ack` as `pipelex-dev` commands (`pipelex/cli/dev_cli/commands/drift_cmd.py` or a small sub-package), with manifest parsing, digest computation, ack read/write, and unit tests covering: digest stability, contract-definition-in-digest, added/removed/modified trigger reporting, dead-glob and missing-target failures, ack-then-edit invalidation.
-
-**Checkpoint 1:** engine green under `make agent-test`, no Makefile or CI wiring yet. Natural handoff — the remaining work is integration and manifest authoring, a fresh session can pick it up from the tests.
-
-### Phase 2 — wiring and seeds
-
-Add the `drift-plan` / `drift-check` / `drift-ack` Make targets, put `drift-check` into the `make check` aggregate (and thereby CI), author `drift.toml` with the three seed contracts, perform the three initial reviews for real (not rubber-stamped — this is the first dogfood), and commit the initial acks. Document the system: a page under `docs/contribute/` explaining contracts, the ack workflow, and the merge-conflict resolution rule.
-
-**Checkpoint 2:** CI enforcing, seeds live. Then **stop and dogfood for a few weeks of normal PRs** before growing the manifest. The open question that only usage can answer: is the ack friction proportionate to the staleness it catches?
-
-### Phase 3 — agent ergonomics (after dogfooding verdict)
-
-Polish the `plan` packet for agent consumption, add `--format json` for software consumers, and teach the workflow to agents where they already look: a short section in the contributor docs and, if warranted, the failure-message text itself is usually enough — agents follow actionable CI errors well. Consider a repo-local skill only if the raw commands prove insufficient.
-
-### Deferred
-
-- Symbol-level triggers via griffe; markdown-anchor targets; pytest node-ID validation via `--collect-only`.
-- Unifying the derived-tier checks into `drift plan` output as read-only `kind = "derived"` entries, so one command shows the full sync map. Nice-to-have; duplicates Makefile wiring today.
-- Cross-repo contracts (the protocol specs, their verifying suite, downstream consumers).
-- Semantic assistance: `cocode`'s doc/code drift proofreading could consume the plan packet as its work list — the deterministic layer decides *what* to look at, cocode helps judge *whether* it drifted.
-- Extraction into a standalone tool for the other workspace repos, if the pipelex-repo dogfood earns it.
-
-## Bottom line
-
-Keep the brief's core inversion — a deterministic tool decides which reviews are owed and whether they were fulfilled; agents and humans merely fulfill them — but strip the mechanism to one equality: *ack digest == current digest, computed from tree content alone*. No base refs, no timestamps, no diff plumbing, no separate validate command, no override channel. Three commands, a TOML manifest, per-contract committed acks, three seed contracts, and a hard rule that anything mechanizable becomes a derived check instead. If the dogfood shows the acks catching real staleness at tolerable friction, grow the manifest; if it shows ceremony, we will have learned that cheaply.
diff --git a/wip/drift-contracts/README.md b/wip/drift-contracts/README.md
deleted file mode 100644
index da4cb21fd..000000000
--- a/wip/drift-contracts/README.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Drift contracts — track folder
-
-Working notes for the drift-contracts system (the shipped system itself is documented at `docs/contribute/drift-contracts.md`; the original design rationale at `../drift-contracts-design.md`).
-
-- **`phase-3-verdict.md`** — the pilot verdict working doc: per-contract keep/narrow/mechanize/drop rulings, trigger repairs, new contracts, derived-check adoption. **The live document — awaiting Louis' rulings.**
-- **`dogfood-log.md`** — one mandatory entry per `drift ack` (real-catch / clean-pass / friction). The pilot's primary evidence stream; stays mandatory per the verdict doc's E3.
-- **`ack-record-gaps.md`** — two gaps in `.drift/acks/*.toml` as a data model, both found on a merge: the ack has no merge semantics (a merge invalidates both parents' acks by construction), and `--by`'s git-user default silently overwrote deliberate reviewer identities on every contract. Carries DECISION M1/M2 — **rule on these alongside the verdict doc**, since both get worse as the manifest grows.
-
-Campaign-side evidence (the Drift Hunt) lives in `../drift-hunt/findings/SUMMARY.md` — its Handoff 1 is the drift-contract shortlist the verdict doc consumes.
diff --git a/wip/drift-contracts/ack-record-gaps.md b/wip/drift-contracts/ack-record-gaps.md
deleted file mode 100644
index 8e7e7a05f..000000000
--- a/wip/drift-contracts/ack-record-gaps.md
+++ /dev/null
@@ -1,100 +0,0 @@
-# Drift contracts — two gaps in the ack record
-
-**Status: for ruling.** Two findings about `.drift/acks/*.toml` as a *data model*, both surfaced on 2026-07-29 while merging `dev` into `refactor/Hub-2` (merge commit `647f97881`). Neither is about whether a contract is worth keeping — that is the [phase-3 verdict](phase-3-verdict.md)'s question — so they are recorded here rather than inserted into a doc that is already awaiting rulings. Both want a decision before the verdict's Phase V1 manifest wave, because both get worse as the manifest grows.
-
-Finding 1 is logged in the [dogfood log](dogfood-log.md) under its 2026-07-29 `cli-docs` entry. Finding 2 is not — it is a property of the registry, not of any one ack.
-
-## Finding 1 — the ack registry has no merge semantics
-
-### What happened
-
-Merging `dev` into `refactor/Hub-2` conflicted on `.drift/acks/cli-docs.toml`. Both branches had acked the same contract; the file holds exactly one ack; the two sides carried different digests *and* different `trigger_files` blob maps. Resolving to either side would have left a file that looks like a valid ack and is not, because the merged trigger content is a third thing that equals neither parent's. The contract necessarily reopened, and `drift plan` presented the union of both branches' changes — the entire modularity sweep, 26 files under `pipelex/cli/**` — as unreviewed, despite three prior acks on that branch having already covered it.
-
-### Why this is structural, not a bug in the merge
-
-The digest is a claim about a **whole tree state**: `compute_contract_digest` hashes the contract definition plus the *complete* `trigger_files` map (every matched trigger's blob OID, not just the changed ones). A claim of that shape can only ever be true of one linear history. A merge produces a tree that is neither parent, so — outside a fast-forward, where the ack and the tree stay consistent by construction — **the merge invalidates both parents' acks by definition**. There is no resolution that preserves either.
-
-Two distinct shapes, worth separating because only one of them is visible:
-
-- **Both branches acked the same contract** → textual conflict in the ack file. Loud, and the resolver is forced to think. This is what happened here.
-- **Only one branch acked, the other merely touched triggers** → git auto-merges the ack file cleanly, no conflict, and the contract silently reopens at the next `drift check`. Still fail-loud at check time, but the merge itself gives no signal.
-
-The trap in the first shape is worth naming precisely: `git checkout --ours/--theirs` on an ack file produces a plausible-looking record whose `rationale` describes a review of *one branch's* changes while its digest is stale. `drift check` catches the stale digest, so this cannot ship silently — but a resolver who takes a side and moves on has written a misleading rationale into a permanent record, and only the digest saves them. **The safe resolution is to treat any conflicted ack file as garbage, complete the merge, then re-review and re-ack.** That is what this merge did.
-
-### The cost
-
-Any long-lived branch pays a contract's full review cost again at **every** merge from its base, for every contract whose triggers either side touched. With `N` contracts and `M` merges the branch pays up to `N × M` reviews, and the overwhelming majority re-present already-reviewed work. The verdict doc's Phase V1 raises `N` from 4 to 6 and repairs triggers to widen two of them, so this multiplies rather than staying flat.
-
-### Why it still is not a defect
-
-Reopening is the conservative answer and the right default. The merged state genuinely has not been reviewed *as a whole*, and the one thing that must never happen — a stale ack passing `drift check` — does not happen. The complaint is about proportionality, not correctness.
-
-### It is the same problem the content-aware digest already solves
-
-Measured on this merge, over the 26 changed triggers (`git diff dev HEAD`, filtering `from`/`import` lines):
-
-| | files |
-|---|---|
-| import-line changes only | **19** |
-| substantive changes | **7** |
-
-The 7 substantive ones carry three distinct changes in total, all already reviewed on the branch: the `PipelexInterpreter` → `MthdsParser` rename, the matching `PipelexInterpreterError` → `MthdsParserError` rename (which also re-keys one `AGENT_ERROR_HINTS` entry), and `build_registrar` gaining `builtin_plugins` / `core_unconditional_plugin_names`.
-
-So a digest that ignored diffs confined to `import` / `from` statements — the narrowing the `config-docs` entry of 2026-07-28 proposes on independent grounds, and which the `cli-docs` clean-pass entries have been building toward for seven consecutive openings — would have reduced this merge's reopening from 26 files to 7, and would have made the *merge* case nearly free without weakening the contract in any of its recorded real-catches. **The two proposals are the same lever.** That is the load-bearing point for the verdict: merge friction is not a separate problem needing separate machinery, it is the strongest single argument for a narrowing already on the table.
-
-### Options
-
-1. **Do nothing.** Accept re-review at every merge. Honest, and cheap while `N` is small and branches are short-lived; the modularity track shows neither assumption holds.
-2. **Adopt the content-aware digest** (already proposed for other reasons). Does not eliminate merge reopenings — it makes the common refactor-sweep case collapse to near-nothing. **Recommended**, because it is one change buying two wins.
-3. **Teach the ack a merge rule** — e.g. an ack could store the commit it was recorded at, and `drift check` could treat a contract as still-acked if every trigger's content at HEAD is reachable from an acked state on some parent. This is real work, it re-implements a chunk of merge-base reasoning, and it trades a loud correct answer for a subtle one. **Not recommended** on the clean-solid rule; revisit only if (2) lands and merge friction is still material.
-4. **Document the resolution protocol** regardless of the above: a conflicted ack file is never resolved by picking a side. One paragraph in `docs/contribute/drift-contracts.md`. **Recommended and independent** — it costs nothing and closes the misleading-rationale trap.
-
-- [ ] **DECISION M1 (Louis):** confirm option 2 is folded into the content-aware-digest ruling rather than tracked separately, and option 4 is written up.
-
-## Finding 2 — `--by` silently overwrites a deliberate reviewer identity
-
-### The evidence
-
-`make drift-ack` writes the whole ack file, and `--by` defaults to `get_git_user_name`. So a re-ack by a different actor relabels the record with no prompt and no diff worth noticing. That is not hypothetical — it already happened to **every contract in the registry**:
-
-| contract | 2026-07-27 | current |
-|---|---|---|
-| `cli-docs` | `Claude (Opus 5 1M context)` | `Louis Choquel` |
-| `config-docs` | `Claude (Opus 5)` | `Louis Choquel` |
-| `hub-layering-convention` | `Claude (Opus 5 1M context)` | `Louis Choquel` |
-| `keyword-only-convention` | `Claude (Opus 5)` | `Louis Choquel` |
-
-The three flips landed in `41341a227` (#1067) and the fourth in `cee4588b5` (#1069). The registry now reads as uniformly human-reviewed, and that uniformity is an artifact of the default, not a record of who reviewed anything.
-
-### Why this is sharper than "a default that is sometimes wrong"
-
-The dogfood log already predicted it. The fourth `hub-layering-convention` entry (2026-07-27) records deliberately *setting* agent attribution and closes: *"If the pilot keeps agents in the loop, `--by` should probably not default to the committer."* The prediction came true within a day — and the mechanism is worse than a bad default, because it **erases a value someone chose on purpose**. An ack is the pilot's primary evidence stream; `reviewed_by` is the field that says whether a human or an agent produced that evidence, which is precisely the question a pilot about review obligations needs to answer. A field that silently reverts cannot answer it.
-
-Note the second-order effect: this is now the **third** instance of the pattern the log keeps recording — an ack's own edits containing an error that a later review catches (cf. the fourth and ninth `hub-layering-convention` entries). Here the error is in the *registry* rather than in a rationale or a comment, and nothing in the machinery re-reads it at all.
-
-`reviewed_by` is **not** part of the digest (`compute_contract_digest` hashes only the contract definition and `trigger_files`), so it can be corrected by hand at any time without invalidating an ack. That makes the fix cheap and the regression cheap to undo.
-
-### Options
-
-1. **Drop the `get_git_user_name` default** — make `--by` required. Loud, one-line change, forces the question at every ack. Slightly annoying for the human case.
-2. **Keep the default, add an agent-aware override** — e.g. `drift ack` reads an env var the agent harness sets, falling back to git user. Correct attribution with no ceremony for humans; needs the harness to actually set it. **Recommended.**
-3. **Keep the default, make the skill always pass `--by`.** Cheapest — the `drift-review` skill is what agents actually invoke, so putting `--by` in the skill's ack step fixes the observed failure mode without touching the CLI. Weaker than (2): it fails open for any agent that acks without the skill. **Recommended as the immediate step** regardless of (1) or (2).
-
-- [ ] **DECISION M2 (Louis):** pick an option, and decide whether to restore the four clobbered attributions. Restoring is a hand-edit of four `reviewed_by` lines and does not touch any digest — but the reviews behind `41341a227` / `cee4588b5` were, on my reading of that work, agent reviews, and re-attributing someone else's merged records is your call, not mine.
-
-## What was changed, and what was not
-
-In the merge commit `647f97881`:
-
-- The `cli-docs` ack was re-recorded after an actual review (not a rubber-stamp — targets checked against the live CLI on both sides), with the dogfood-log entry Finding 1 comes from.
-- `reviewed_by` on that ack was left at the `Louis Choquel` default, on the reasoning that the registry was uniform and consistency should not be broken unilaterally.
-
-After it, while writing this doc:
-
-- **That reasoning turned out to be wrong** — the uniformity *was* the regression in Finding 2, which only surfaced when the ack history was traced. `reviewed_by` on the `cli-docs` ack is now `Claude (Opus 5 1M context)`, matching what that same ack carried on 2026-07-27 and matching who actually performed the review. `drift check` still passes, confirming the field is outside the digest.
-- The 2026-07-29 dogfood-log entry said *"23 of the 26 triggers changed by import line alone"*. The measured figure is **19**; the entry is corrected. The original number was asserted from a partial reading of the diff rather than counted, and a first attempt at counting it used a `pipelex/cli/**/*.py` pathspec that silently skips files sitting directly in `pipelex/cli/`. Recorded because this log's standard is that an ack's own output gets checked like anything else — and because the near-miss is a reminder that `**/` globs in a hand-written verification command are not the same set as the contract's own matcher.
-
-Deliberately not done:
-
-- No change to the other three acks' `reviewed_by` — see DECISION M2. Those are attributions on already-merged work, and re-labelling someone else's review record is not a call to make unilaterally.
-- No change to `drift.toml`, the digest algorithm, or the ack model. Both findings are proposals for the verdict, not fixes to apply ahead of it.
diff --git a/wip/drift-contracts/dogfood-log.md b/wip/drift-contracts/dogfood-log.md
deleted file mode 100644
index 7977020a2..000000000
--- a/wip/drift-contracts/dogfood-log.md
+++ /dev/null
@@ -1,131 +0,0 @@
-# Drift-contracts dogfood log
-
-One entry per ack. Verdicts: **real-catch** (the review found actual staleness), **clean-pass** (genuinely reviewed, nothing was stale), **friction** (the contract opened on changes that could not have affected the targets — candidate for narrowing or mechanizing).
-
-- **2026-07-10 · keyword-only-convention · real-catch** — the guard gained the subject-grant registry (new violation kinds, literal-subject ban, symmetric staleness); the convention doc was materially stale and was rewritten as part of the same change — exactly the coupling this contract exists to enforce.
-- **2026-07-10 · cli-docs · clean-pass** — the keyword-only sweep touched many pipelex/cli files (kwonly'd internal signatures, two escape hatches, call-site keywords); reviewed docs/tools/cli/ and the agent-CLI CLAUDE.md — no command, flag, or output changed, both targets stay accurate.
-- **2026-07-11 · config-docs · clean-pass** — opened by dev's Python-3.10 drop reaching the branch via the Phase-M merge (StrEnum import swap in `img_gen_job_components.py`); reviewed docs/configuration/ — no config field, default, or documented behavior changed. *(Backfilled 2026-07-12: the ack was recorded during the subject-grants regrind without its mandatory log entry — process slip, not a review slip.)*
-- **2026-07-16 · config-docs · clean-pass** — opened by the pipe_func config wiring in `configs.py` (PipeFuncConfig import + `pipe_func_config` field on the Pipelex model) plus comment-only wording fixes in `pipelex.toml` + `pipe_func_config.py` (dropped the stale core-`local_sandbox` mode claim, "our Daytona plugin" naming); reviewed docs/configuration/ — no default or documented behavior changed, pipe_func_config deliberately has no page, and the stale mode was never documented there. Note: the trigger correctly caught a *comment* fix in the shipped defaults file, which is user-readable surface — not friction. *(Amended 2026-07-17: the ack rationale originally described the trigger diff as comment-only, omitting the `configs.py` field wiring — caught by a PR-review bot on #1052; review conclusion unchanged.)*
-- **2026-07-26 · config-docs · friction** — opened by the `pipelex.hub` → `pipelex.runtime_hub` split, which rewrote one import line in `config_check.py` and `aws_config.py`. Neither file's *configuration surface* moved at all — no model field, default, or TOML key — so no `docs/configuration/` page could have gone stale. Narrowing that would have prevented it: the trigger set matches whole files under the config packages, so any edit to them (including a pure import-path swap) opens the contract; scoping the trigger to the files that actually define settings (`configs.py`, `*_config.py`, `pipelex.toml`, the shipped `.pipelex/` defaults) and dropping incidental members like `config_check.py` / `aws_config.py` would keep the real coupling and drop this class of opening.
-- **2026-07-26 · cli-docs · clean-pass** — the same split rewrote import lines across 28 `pipelex/cli/**` files plus an internal `PipelexHub` → `RuntimeHub` rename inside doctor's private setup helper. Reviewed `docs/tools/cli/` and `pipelex/cli/agent_cli/CLAUDE.md`: no command, flag, help text, output string, or exit code changed, and neither target mentions the hub. Logged as clean-pass rather than friction on purpose — a 28-file sweep across the CLI package is exactly the shape that *could* have moved the surface, so the contract opening was proportionate even though the verdict was "nothing stale". This is the second consecutive clean-pass for cli-docs on a mechanical sweep (cf. 2026-07-10); a third would be worth weighing against narrowing.
-- **2026-07-26 · keyword-only-convention · friction** — opened by the hub split renaming two *docstring* mentions of `pipelex.hub` inside `keyword_only_guard.py`; no guard behavior, violation kind, registry schema, or flag changed, and the convention doc refers to the presentation layer only generically ("Typer/hub import"). Worth noting what the contract did *not* fire on: the same change re-recorded all 54 `pipelex/hub.py` grants under the two new modules — a 55-entry registry rewrite — because `subject_grants.toml` is not a trigger, and correctly so (a grant migration is data, not convention). Narrowing that would have prevented this opening: the trigger matches the whole guard module, so a comment-only edit opens it; restricting the digest to the guard's *code* (ignoring docstrings/comments) — or accepting that this module is small enough that prose edits are rare — is the tradeoff to weigh.
-- **2026-07-26 · config-docs · clean-pass** — opened by H-4/H-3 landing: `configs.py` swapped its `TemplatingStyle` import from `pipelex.cogt.templating` to `pipelex.tools.templating` (the Phase 3 placement fix), one line, every other trigger file byte-identical. Reviewed `docs/configuration/` — no page documents an import path, every Python path the docs do cite still resolves, and the `pipe_func` example is untouched by the Phase 4 `concept_provider` injection. Logged clean-pass, not friction, on purpose: `configs.py` is the module that *defines* every setting, so an edit there is the shape that genuinely could move the documented surface. Worth recording against the narrowing proposed in the entry above — scoping the trigger to "files that actually define settings" would **not** have prevented this opening, because `configs.py` is squarely inside that narrowed set. File-level triggers cannot distinguish an import swap from a field change; only a content-aware digest could.
-- **2026-07-26 · cli-docs · clean-pass** — opened by the Phase 4 renderer regroup: 10 CLI command-core files, each changed by exactly one import line (`core.pipes.inputs.input_renderer` / `core.pipes.output.output_renderer` → `core.pipes.rendering.*`). Reviewed both targets and verified the documented surface against the *live* CLI (`pipelex build inputs pipe`, `pipelex build output pipe`, `pipelex-agent inputs pipe`) rather than by reading alone: arguments, flags, format values and defaults all match `docs/tools/cli/`; `agent_cli/CLAUDE.md`'s layout map lists only `agent_cli`'s own modules, none of which moved. Also checked the behavior-adjacent half of Phase 4 — no CLI doc cites a Python import path or calls a factory that gained a required `concept_provider`, and the runner codegen emits none. **This is the third consecutive clean-pass for cli-docs on a mechanical sweep** (cf. 2026-07-10, 2026-07-26), which the previous entry said would be worth weighing. Weighed: the shape of these three openings is not "CLI files changed" but "a repo-wide refactor rewrote import lines", and that is now visible across *three different contracts* in four openings. The narrowing that would have prevented all of them is not a trigger-glob edit — it is a content-aware digest that ignores changes confined to import statements (and, for `keyword-only-convention`, to comments/docstrings). That is one mechanism, applicable manifest-wide, versus three separate glob surgeries; recommend it be evaluated as such before any per-contract narrowing.
-- **2026-07-26 · config-docs · friction** — opened by the runtime/interpreter rename, which rewrote exactly one import line in `config_check.py` and `aws_config.py` (`pipelex.service_hub` → `pipelex.runtime_hub`). This is a **verbatim repeat** of the first `config-docs` friction entry above: same two files, same incidental-member shape, same pure import-path swap, same "no configuration surface could have moved" verdict. The narrowing proposed there (drop incidental members like `config_check.py` / `aws_config.py`) *would* have prevented this one — unlike the `configs.py` opening logged between them, which it would not have. Together the three entries bound the problem precisely: a glob narrowing fixes the incidental-member case only, and a content-aware digest fixes all of them.
-- **2026-07-26 · cli-docs · clean-pass** — opened by the runtime/interpreter rename: 28 `pipelex/cli/**` files, each changed only by hub import lines. Reviewed both targets; neither `docs/tools/cli/` nor `pipelex/cli/agent_cli/CLAUDE.md` contains a single reference to any hub module, so the rename is structurally invisible to them. **Fourth consecutive clean-pass on a mechanical sweep.** One methodological note worth keeping: the review was cheap and *mechanical* this time — diffing all 28 triggers together and filtering out every changed line naming a hub left nothing, which proves import-only in one command rather than by reading 28 diffs. That check is precisely the predicate a content-aware digest would automate, which is further evidence for the recommendation in the entry above rather than a new argument.
-- **2026-07-26 · keyword-only-convention · friction** — opened by the runtime/interpreter rename touching **the same two docstring lines** in `keyword_only_guard.py` that the hub split touched (the "no `rich`, `pipelex.<hub>`, or `typer`" stdlib-only note, and the presentation-layer pointer). Same contract, same two lines, same non-reason, second time in one refactor track — the strongest single piece of evidence in this log that file-level digests over prose are the wrong granularity. The convention doc needed no edit for the same reason as last time: it names the presentation layer only generically. Note the asymmetry this exposes: the change *did* re-key all 55 hub subject grants (paths, `ServiceHub.`/`MethodHub.` qualnames, and two `set_instance` param names), which is the registry migration the doc actually specifies — and `subject_grants.toml` is correctly not a trigger, so the contract fired on the prose it could ignore and stayed silent on the data it describes.
-- **2026-07-26 · hub-layering-convention · clean-pass (initial)** — **new contract**, added on Louis' explicit say-so after being built, verified, and deliberately reverted at H-2. Triggers are the layering guard plus both hub modules; review target is `docs/contribute/hub-layering.md`. No verify command: `check-hub-layering` already gates `make check` and CI, so re-running it pre-ack would add the unstaged-file hard error without adding a guarantee. Initial review was mechanical rather than a read-through — extracted all 65 public module-level symbols from the two hubs and confirmed every one appears in the doc's partition tables, then imported `RUNTIME_LAYER_PACKAGES` from the guard and confirmed all 11 declared packages are named in Enforcement. Both checks are cheap and repeatable; whoever reviews this contract next should run them rather than re-read the tables. Deliberately **not** made a trigger: `tests/unit/pipelex/test_runtime_layer_import_closure.py`, even though the doc has a section on it — that stays within the scope Louis approved, and it is the obvious first candidate if this contract ever proves under-triggered. Watch item for the pilot verdict: both hub modules are type-annotated with most of the tree, so a *type move* elsewhere edits their import blocks and opens this contract — the same import-churn shape logged four times above. If that is what its first few openings look like, this contract is evidence for the content-aware digest, not against it.
-- **2026-07-27 · hub-layering-convention · real-catch** — first opening after the initial baseline, and it **answers that entry's watch item in the negative**: this was not the import-churn shape. Both triggers changed semantically — the guard's declared runtime layer gained `pipelex.runtime_hub` (closing a gap where the module at the centre of the rule was exempt from it), and `runtime_hub.py` shed write-only class-registry state. The review found four stale claims in `docs/contribute/hub-layering.md`, none of which the contract's two prescribed mechanical checks can see: they verify *coverage* (every hub symbol appears, every declared package is named) and are blind to a covered claim being **false**. Three of the four were exactly that — a compliance claim that read as a claim about the property when the guard only checks direct imports; a "the one module not covered" sentence wrong on both halves; and a leaf-import rule whose stated criterion contradicts two of its three in-tree importers. That is the case *for* a prose review target with a human-or-agent reader, and the sharpest evidence in this log that the mechanical checks are a floor, not the review. Note also what this says about the content-aware-digest recommendation running through the entries above: it would have opened this contract too (the trigger diffs are code, not imports), so the recommendation costs nothing here — the two are not in tension.
-- **2026-07-27 · hub-layering-convention · real-catch (second)** — opened by a *behavioral* guard change, the second consecutive non-import-churn opening for this contract: `_is_type_checking_test` matched `ast.Attribute(attr=...)` with an unconstrained receiver, so any `settings.TYPE_CHECKING:` block claimed the layer-rule exemption; the attributed form is now rooted at `typing`. The doc's carve-out bullet was under-specified rather than false, and needed the constraint stated. **The more interesting half is what the review caught that the triggers cannot see.** The same commit hardened both test modules the review target has sections on — the closure test gained a negative control and a subprocess timeout, the lifecycle test now pins the real `Pipelex.teardown` instead of a stand-in — and *neither test file is a trigger*, deliberately, per the initial baseline entry above. So the contract fired on the guard and the review then found staleness caused by changes it is structurally blind to. Two readings, and the honest one matters: this is **not** an argument for adding the test modules as triggers (the initial entry's scoping decision was Louis', and the spillover was caught anyway), but it *is* evidence that a review target's value is bounded by what a reviewer reads, not by what opened the contract. A narrower trigger set that had stayed closed here would have shipped two stale doc sentences.
-- **2026-07-27 · cli-docs · clean-pass** — opened by a single trigger, `pipelex/cli/commands/plugins_cmd.py`, and this one is **not** the import-churn shape the four entries above complain about: the command's call actually changed, `build_registrar(config=…)` → `build_registrar(config=…, builtin_plugins=…, core_unconditional_plugin_names=…)`, because discovery stopped importing the built-in list so the runtime-layer plugins package could stay importable without the interpreter. A command module that changes how it builds what it prints is squarely the coupling this contract exists for, so the opening was proportionate — and a content-aware digest would rightly have opened it too. Reviewed against the *live* CLI: `pipelex plugins --help` still exposes only `list` with no options, and `plugins list` still prints the same five columns with all 19 built-ins in the same order and the same core-unconditional set as before the split, so nothing about the surface moved. Both targets carry zero references to the plugins command or to any Python import path. **Fifth consecutive clean-pass for cli-docs**, but the first on a genuinely behavior-adjacent trigger rather than a sweep — which cuts *against* narrowing this contract: the openings worth preventing are the sweeps, and this was not one.
-- **2026-07-27 · hub-layering-convention · real-catch (third)** — third consecutive opening for this contract, third that is not import churn, and the first where **the change's whole purpose was to falsify the review target**. The guard gained a transitive rule (resolve the module-level import graph of `pipelex/`, flag any runtime-layer module that *reaches* `interpreter_hub`), which retires two things the doc said in prose: the paragraph conceding the guard "does not follow the import graph", and the Known-inversions block measuring four `pipelex.plugins` modules that breached through it. Both were accurate when written and became false the moment the remedy landed — so the contract worked here as **promise retirement**: a doc that honestly records a known defect *and* the planned fix accrues a debt that only a trigger can call in. Neither of the contract's two prescribed mechanical checks can see that class of staleness (they were re-run and both passed, unchanged: 33 + 32 hub symbols covered, all 12 declared packages named) — same finding as the previous two entries, now three for three. Worth noting for the pilot verdict: this opening also came with real spillover the triggers cannot see — the closure test gained an entry point and `PipelexPlugin`'s docstring gained the one-plugin-one-layer contract, neither file a trigger — and again it was caught only because the reviewer read past the diff.
-- **2026-07-27 · hub-layering-convention · real-catch (fourth)** — opened by a code review hardening the transitive rule the previous entry logged, and it is the first opening where the staleness ran in **both** directions at once. Two doc claims were false because the *code* was weaker than the prose: the page promised rule 3 has "no escape hatch" while a `# hub-layering: ignore` on a direct import silently exempted the whole module from it, and it described a graph that models what an import loads while the graph skipped every ancestor `__init__.py` Python executes on the way. Neither was fixed by editing the doc — the code moved to meet it (the marker now removes the edge; ancestors are edges), and the doc gained only the sentences needed to state the new truth precisely. A third change went the other way: the rule now raises rather than reporting zero when it cannot find the hub module in the graph, which is a *new* guarantee the doc had no claim about, and got a paragraph. The review also caught two errors in prose the previous ack had signed off on — a registry attributed to the wrong hub, and an H2 inserted mid-section that reparented core's provider-injection convention under the plugins heading. **That is the finding worth recording for the pilot verdict.** Three consecutive acks on this contract have now been recorded by an agent, each with an honest, detailed rationale, and this one still found two errors inside the immediately preceding one. The rationale field is a genuine review record, but it is not self-checking: nothing in the drift machinery re-reads a rationale against the page it signs. The mechanical checks passed unchanged for the fourth time running (33 + 32 hub symbols covered, all 12 declared packages named) and were blind to all of it, as in the three entries above. Related process note: this ack's `reviewed_by` had come out as the git user (`make drift-ack` defaults to `get_git_user_name`), attributing an agent review to a human; corrected here and on `cli-docs` to match the other two acks in the registry. If the pilot keeps agents in the loop, `--by` should probably not default to the committer.
-- **2026-07-27 · hub-layering-convention · real-catch (fifth)** — opened by a fix for a PR-review bot finding, and notable for *where in the pipeline the finding came from*. The four openings above were all driven by a human-or-agent review of the change itself; this one came from Greptile on the PR, after local gates, CI and a full `/code-review` pass had all gone green — a fourth defect of the same class (rule 3 green while the boundary is broken), this time a module-level `importlib.import_module("pipelex.interpreter_hub")` in an intermediary creating no graph edge. Two readings worth keeping. First, the contract behaved correctly as a *ratchet*: the fix touched a trigger, the contract opened, and the doc genuinely did need three edits, because the page states rule 3's carve-outs and its string-matching scope in prose that the fix falsified. Second, and more useful for the pilot verdict: **five consecutive real-catches for this contract, and none of them was the import-churn shape the earlier entries in this log complain about.** Whatever the case for a content-aware digest across `config-docs` / `cli-docs` / `keyword-only-convention`, it does not extend here — `hub_layering_guard.py` is a module whose every substantive edit changes what the review target claims, which is the shape a drift contract is *for*. If the pilot narrows contracts, this one should be left alone.
-- **2026-07-27 · hub-layering-convention · real-catch (sixth)** — opened by M3 of the modularity track: the pipe-kind registration manifest moved out of `core/` into a new top-level `pipelex/pipe_machinery/`, which edits only the guard's `RUNTIME_LAYER_PACKAGES` *note* (the declaration tuple is unchanged). By the taxonomy running through this log that is the weakest opening shape yet — a comment-only trigger diff, the shape the `keyword-only-convention` entries above call friction — and it still turned up four stale places, three of them **outside** the paragraph the trigger diff touched: the "Where core splits" Pipe-machinery list and the Known-inversions line both still named `core.registry_models` as a module that imports the interpreter directly, and, more importantly, two *enumerations of the interpreter packages* went stale — the "`runtime_hub` must not name anything from …" list under "Why the boundary exists", and the `INTERPRETER` set inside the page's own verification snippet. That second one is the finding worth recording: the snippet is the doc's copy of a predicate that also exists in the closure test and in the design doc's classification snippet, and all three must gain a new interpreter package together or a check passes vacuously. A reader following the page's instructions with the stale set would have measured zero interpreter modules and believed it. So the verdict is real-catch, not friction, and the reason is a property of the *target*, not the trigger: this page embeds executable predicates, which go stale on any change to the set of interpreter packages regardless of how small the trigger diff was. The two prescribed mechanical checks passed unchanged for the fifth consecutive time (33 + 32 hub symbols covered, all 12 declared packages named) and were blind to all four, consistent with every entry since the baseline. **Sixth consecutive real-catch for this contract**; the recommendation in the entry above — leave this one alone if the pilot narrows contracts — now has a case where even a comment-only diff justified the opening.
-- **2026-07-27 · cli-docs · clean-pass** — opened by M1a of the modularity track: 17 `pipelex/cli/**` triggers, every one changed by import rewrite alone as the MTHDS parser left `core/`. This is the sweep shape the entries above argue a content-aware digest should suppress, and the verdict is the sixth consecutive clean-pass for this contract. Reviewed against the *live* CLI rather than by reading: `pipelex-agent validate bundle <broken>.mthds --format json --error-format json` still emits the documented envelope unchanged. **One finding worth recording even though nothing was stale.** The change renames an error class, and `error_type` is the field clients branch on — so the natural worry is that a documented wire value moved. It did not, on this channel: the parser error is translated at `pipeline/validate_bundle.py:132`, so `error_type` is `ValidateBundleError` before and after, and the renamed `MthdsParserError` surfaces only in `error_source`, the internal stack-frame array both targets already describe as JSON-only. That is still a wire-visible rename on a documented field, and it is *not* the one the release sweep is tracking (four TypeScript consumers branch on the untranslated channel's value) — so the review's value here was establishing which channel breaks and which does not, a question neither target answers and neither trigger diff shows.
-- **2026-07-27 · hub-layering-convention · real-catch (seventh)** — opened by M1a hoisting `core/interpreter/` + `core/bundles/` into `pipelex/mthds_parsing/`, again a note-only trigger diff (the declaration tuple is unchanged), and again — exactly as the sixth entry predicted — the *enumerations* were the staleness. Four of the page's five edits are enumeration sites: the must-not-name list, the verification snippet's `INTERPRETER` set, the "Where core splits" Pipe-machinery list, and Known-inversions. The prediction in the previous entry ("expect the same pair in M1a") held verbatim, which makes this the first opening on this contract that was *anticipated in the log and then confirmed* — evidence the failure mode is structural to the page, not incidental. **The new half is a claim retirement the trigger diff does not contain.** The transitive-rule paragraph listed `core.bundles.exceptions` among the homes "the predicate deliberately cannot name yet", because its validation-error data landed in every runtime closure via `pipeline/`. M1a fixed that straddler rather than inheriting it: `PipelexBundleBlueprintValidationErrorData` moved to `pipelex.core.exceptions` beside its two sibling error-data models, which let `INTERPRETER_CORE_EXCLUDED` be deleted outright and `mthds_parsing` be named in the predicate with no exclusion. So the doc had to *retire a conceded defect*, the same promise-retirement shape as the third entry above — and, as there, neither prescribed mechanical check can see it (both passed unchanged for the sixth consecutive time: 33 + 32 hub symbols covered, all 12 declared packages named). Methodological note for whoever holds this contract next: the matched triple was verified **by script** this time — extract `INTERPRETER_PACKAGES` from the closure test's dedented script string, `INTERPRETER` from this page's snippet, `I` from the design doc's, assert set equality — after the sixth entry found they had silently disagreed on `pipe_signature`. Do that rather than reading three lists side by side; it is ten lines and it is the only check that catches the failure this page keeps having.
-- **2026-07-27 · cli-docs · clean-pass** — second opening from the same refactor track and the same cause as the entry above: 11 `pipelex/cli/**` triggers, one import line each, this time the renderers following `core.pipes.rendering` → `pipe_machinery.rendering`. **Seventh consecutive clean-pass**, and the sharpest data point yet for the content-aware-digest recommendation: the *same* mechanical sweep opened this contract twice in one afternoon, on two disjoint file sets, for two verdicts of "nothing stale". Reviewed against the live CLI for the affected command families rather than by reading (`pipelex build inputs --help`, `pipelex codegen inputs --help`), which is the only check that could have caught a real regression, and it cost more than the finding was worth — the honest cost/benefit for this contract on refactor sweeps, recorded as such.
-- **2026-07-27 · hub-layering-convention · real-catch (eighth)** — the trigger diff this contract was designed for: `RUNTIME_LAYER_PACKAGES` itself changed, six `pipelex.core.*` entries collapsing to one `pipelex.core`. Five stale places, and the pattern from the previous two entries held for the third time running — **the enumerations are where this page rots**, and two of the five were not in the paragraph the trigger diff touches: "The layer rule" under Enforcement still listed all six core entries and closed by pointing at an explanation of why `core/` is listed package-by-package, and the must-not-name list still trailed "…or the Pipe-touching modules of `core.pipes`", now an empty set. **The half worth recording is what M1c did about it rather than what it found.** The gap this contract's own sixth entry flagged — that nothing binds the three copies of the interpreter-package set, which is why they had silently disagreed on `pipe_signature` — is now closed by two tests instead of a drift contract: they parse `INTERPRETER_PACKAGES` back out of the dedented script string and assert every token is a real package directory, and that the set equals this page's snippet. Both mutation-checked red. That is a better answer than adding the closure test as a trigger, because it converts a review obligation into a mechanical one, and it retires the standing worry that `DIRTY_ENTRY_POINT` only ever proved *some* token matched. Note the boundary of the fix: the design doc's third copy is not asserted, since `wip/` gets archived at track end, so that one stays a manual concern — a real limit, recorded rather than papered over. Eight consecutive real-catches; the recommendation to leave this contract alone if the pilot narrows contracts stands.
-- **2026-07-28 · hub-layering-convention · real-catch (ninth)** — the M1 checkpoint review round, and the first opening in this track where **`runtime_hub.py` is itself in the trigger diff**. That matters because of what the *previous* ack missed. The rule is stated in two places — `docs/contribute/hub-layering.md` (the review target) and `runtime_hub.py`'s docstring (a trigger) — and the eighth entry above rewrote the doc copy while the source copy stayed stale, naming two packages M1a had deleted and omitting the four current ones. It stayed stale for a structural reason worth naming: **a trigger file is never a review target**, so the source-side twin of a documented rule carries no review obligation at all; it only gets read when some *other* change happens to touch it. Three of the four checkpoint reviewers found it independently. Second finding, and the sharper one: the previous ack's own edit to the guard note **introduced** a false claim — "measured: every `pipelex.core.*` module loads zero interpreter modules" — where the pre-M1 note had said the honest opposite. Measured: `core.pipes.pipe_output` loads `pipeline.pipeline_models`, `runtime_hub` also loads `pipe_run.pipe_run_mode`; the claim holds only under the closure predicate's deliberate carve-out, which line 228 of the review target states plainly two paragraphs away. So an ack rewriting a trigger to match its target wrote a claim the target already contradicted. This is the **second** time an ack's own edits contained an error caught by a later review (cf. the fourth entry, "nothing in the drift machinery re-reads a rationale against the page it signs") — and this time the error was not in the rationale but in the *code comment the ack edited*, which is worse, because the rationale is read once and the comment is read forever. The two prescribed mechanical checks passed unchanged for the seventh consecutive time and were blind to all of it. **Ninth consecutive real-catch**; the standing recommendation to leave this contract alone if the pilot narrows contracts stands, but the log now also supports a narrower proposal: when a review target's claim is mirrored in a trigger file's prose, the ack should be required to diff *both* copies, because only one of them is ever reviewed.
-- **2026-07-28 · config-docs · friction (candidate)** — opened by M2 moving the seventeen built-in vendor adapters out of `pipelex/plugins/` into `pipelex/providers/`, which re-pathed exactly four import lines in `config_cogt.py`. No config field, default, validator, TOML key or section name changed; the four vendor config classes moved intact rather than being edited. The review target is `docs/configuration/**/*.md`, and grepping the whole tree for both module paths and all four config class names returns **zero hits** — those pages document TOML sections and keys and cite no Python import path anywhere, so an import-path move is invisible to them *by construction*, not by luck. That is the distinction between this entry and the clean-passes above: a clean-pass means the review could have found something and did not, this one means the trigger and the targets cannot interact. Second such opening on this contract from a pure refactor sweep (cf. 2026-07-11), and both were import-line-only. Concrete narrowing proposal, now that there are two data points: this contract's digest could ignore diffs confined to `import`/`from` statements, which would have suppressed both openings without weakening it — every real catch it has recorded involved a field, default or key.
-- **2026-07-28 · hub-layering-convention · real-catch (tenth)** — M2, and the first opening whose trigger is a package being **added** to `RUNTIME_LAYER_PACKAGES` rather than removed or collapsed. Five stale places, and for the fourth consecutive time **the enumerations were the rot** and two of them sat well away from the paragraph the diff touched: the layer-rule enumeration under Enforcement listed seven packages where there are now eight, and the fixed worked example under Known inversions still pointed at `plugins/builtins.py`. The load-bearing edit was different in kind, though, and it is the one to record: "Where the built-in plugins split" asserted that `pipelex/plugins/` is where the runtime-port adapters live — a sentence M2 makes flatly false — and rewriting it forced the page to separate **two splits it had been conflating**. Mechanism-vs-adapters does not cross a layer at all (both packages are runtime-layer; the split exists to make the one-way dependency legible), while runtime-vs-interpreter does. A page about layering had been using one section to describe a non-layer boundary, which is exactly the confusion that makes a reader mis-place the next plugin. **The finding no check could see, and the reason it was found.** `_SUBSYSTEM_SECTIONS` in `error_pages_generator.py` keys on a module's *second dotted segment*, so moving the vendors from `plugins` to `providers` silently reclassified every vendor error page out of "Inference & providers" into the fallback "Platform & tooling" macro — a user-facing regression, wire-invisible, with `make gep` exiting 0 and producing a plausible diff either way. This is the **identical shape** to the `mthds_parsing` regression M1's review round found three weeks ago, and it was caught this time only because M1's recorded lesson was to *read* the generated diff instead of trusting the exit code. A lesson written down and then paying off on the next occurrence of its own failure mode is the strongest evidence in this log that the review obligation is worth its cost. The three prescribed mechanical checks (8 declared packages named under Enforcement, 27 + 22 hub accessors covered, matched triple equal by script) passed unchanged and were blind to all six findings — eighth consecutive time. **Tenth consecutive real-catch.**
-- **2026-07-28 · cli-docs · real-catch** — first opening for this contract that was *not* a mechanical sweep, and the first that caught real staleness. Triggers were two `build output` help strings: the group help in `build/app.py` advertised "(JSON, Python, or TypeScript)" while `--format` accepts `json|python|schema` (passing `typescript` errors out), and `method_cmd.py`'s `--format` help lacked the TypeScript/Zod parenthetical its `pipe`/`bundle` siblings carry. Reviewing `docs/tools/cli/` against them found `docs/tools/cli/build/index.md` describing the command as "Generate example output JSON for a pipe" — written before `python` and `schema` existed, and stale in the same direction as the help string that opened the contract. `build/output.md` was already accurate (all three subcommands list the three formats; TypeScript is consistently framed as a downstream use of `--format schema`), and `agent_cli/CLAUDE.md` has no `build` command at all, so it was structurally out of scope. Both stale strings fixed before the ack. Worth recording against the four consecutive clean-passes above: this contract's value shows up precisely when a trigger diff is a *user-visible string* rather than an import line — which is the same distinction the content-aware-digest recommendation draws, and further evidence it would preserve the openings that matter while dropping the ones that don't. Note the finding arrived from outside the contract (a developer reported the `typescript` help lie); the contract's contribution was pulling the neighbouring doc table into the same fix instead of leaving it to rot another cycle.
-- **2026-07-29 · keyword-only-convention · real-catch (eleventh)** — FU-3, and the first opening on this contract where the review target's **prose was the specification the code was changed to satisfy**, not the record that had to catch up. Line 37 had asserted since the registry landed that "the registry is machine-written and sorted by key"; nothing checked it, and the modularity track broke it three times, each found by hand well after the fact. The guard gains an `unsorted-grant` kind and the doc's claim stops being a claim. Five edits, and for the fifth consecutive entry across this log's two active contracts **the enumerations were where the page had to change and three of the five sat away from the paragraph the work is about**: the violation-kinds table under Enforcement, the hook bullet's parenthetical listing which violations are full-scan-only, and the auto-fix paragraph's list of what is never rewritten (which was already carrying only `grant-param-mismatch` and silently omitting `dead-grant`, a pre-existing gap this pass closed as a side effect). The fifth is the one worth naming: the page opens with "A signature is a violation when any of these holds", and registry order is **not** a property of any signature, so adding a sixth bullet there would have been wrong — the honest edit was a pointer line saying the registry carries one rule that is not about a signature at all. A doc whose framing sentence silently excludes a rule it later documents is a shape no mechanical check can see, and it only surfaced because the rule being added did not fit the list. **Eleventh consecutive real-catch on this contract** — but the recorded verdict is narrower than the streak suggests: the doc edits here were going to happen with or without the contract, since the whole item was "enforce what the docs claim". What the contract bought was the *sweep* — the three enumerations, which the implementing change had no reason to visit.
-- **2026-07-29 · cli-docs · clean-pass** — the first entry in this log for an opening caused by a **merge** rather than by a change, and it exposes a property of the ack model nothing above has hit. Merging `dev` into `refactor/Hub-2` conflicted on `.drift/acks/cli-docs.toml` itself: both branches had acked the same contract, the file holds exactly one ack, and the two sides carried different digests *and* different trigger blobs. Resolving to either side leaves the digest wrong, because the merged trigger content is a third thing — so the contract necessarily reopens on the union of both branches' changes, and the whole modularity sweep (26 `pipelex/cli/**` files) re-presents as unreviewed despite three prior acks on this branch having covered it. **The ack registry has no merge semantics**: an ack is a claim about one linear history, and a merge invalidates both parents' claims by construction. That is not a bug — reopening is the conservative answer — but it means any long-lived branch pays the full review cost of a contract again at every merge, which belongs in the pilot verdict next to the content-aware-digest recommendation the entries above build. Note the two interact: a digest that ignored import-only diffs would have made this reopening nearly free, since 19 of the 26 triggers changed by import line alone. The review itself was cheap and mechanical, per the method recorded above — filtering import lines out of the combined diff left three real changes, all previously reviewed (the `PipelexInterpreter`→`MthdsParser` and `PipelexInterpreterError`→`MthdsParserError` renames, and `build_registrar`'s new arguments) — then both sides were checked live: dev's corrected `build output` help now agrees with the `docs/tools/cli/build/index.md` line dev fixed with it, and the agent-CLI error envelope still reports `error_type: ValidateBundleError` with `MthdsParserError` confined to `error_source`, as the target describes. One durable finding worth keeping beyond the merge question: `agent_cli/CLAUDE.md` survives an error-class rename untouched **because it names the `AGENT_ERROR_HINTS` dict instead of copying its keys** — the exact opposite of the enumeration-copying that the `hub-layering-convention` entries above show rotting on every single opening. Two targets, two contracts, same log: the page that points at its source is the one that never goes stale.
-- **2026-07-29 · cli-docs · friction** — the third import-line-only opening on this contract and the second one in two days, so the narrowing proposal recorded above is now backed by more data than the openings it would suppress. Trigger was a single file, `validate/bundle_cmd.py`, and the entire diff is two `from` lines: `generate_graph_for_bundle` / `generate_view_for_bundle` moved to `pipelex.pipeline.bundle_graph_rendering` when `graph_rendering.py` was split along the hub layer boundary. No option, default, enum member, output shape, or error class moved. Both targets were opened and grepped for every moved symbol and both module paths — zero hits, and structurally so: neither `docs/tools/cli/` nor `agent_cli/CLAUDE.md` cites a Python import path anywhere, which is the same *by construction* argument the `config-docs` friction entry makes. Verified live anyway (`--graph-format` still `mermaidflow|reactflow|both`, default `reactflow`, matching both targets verbatim). Recorded as **friction** rather than clean-pass on the distinction this log has already drawn: a clean-pass means the review could have found something and did not; here the trigger and the targets cannot interact. **Narrowing that would have prevented it:** the content-aware digest proposed on 2026-07-28 — ignore diffs confined to `import` / `from` statements. That single change would have suppressed this opening, the `config-docs` one, and made the merge-induced reopening nearly free, while preserving every real-catch this contract has recorded (each involved a user-visible string, never an import).
-- **2026-07-29 · hub-layering-convention · real-catch (eleventh)** — the first opening whose trigger is packages being added to `RUNTIME_LAYER_PACKAGES` *for the sake of what the omission was hiding*, and it turns the contract's own recurring failure mode into the finding. For the **fifth consecutive opening** the enumeration under Enforcement was stale — eight packages listed where there are now twelve — and once again it sat in a section the trigger diff never touched. But the substantive edit is the one to record, because it generalizes the page's existing worked example rather than repeating it: `graph/graph_rendering.py` had been reaching `interpreter_hub` through `pipeline.dry_run_pipeline` with every gate green, for the reason the guard's own note states and the page had not drawn a lesson from — rules 1 and 3 both filter candidates through `is_runtime_layer`, so an **undeclared** package is excluded from the rules' domain rather than reported by it. The `pipelex.plugins` breach the transitive rule was built for was a declaration that overreached; this one is a package with no declaration at all, which is strictly harder to see and which no gate in the repo could have surfaced. The page now carries it under Known inversions with the generalized rule — *an undeclared package is not neutral, it is unpoliced* — and the same conclusion under The rule, as the reason to declare a measured-clean package rather than leave it alone. The two prescribed mechanical checks (twelve declared packages named under Enforcement, 32 + 31 hub accessors covered) passed unchanged and were blind to the enumeration rot, **ninth consecutive time**. Method note worth keeping: the negative control was run rather than reasoned about — re-adding the evicted import makes the guard fail with `interpreter-hub-transitive`, where before the declaration it produced no finding at all — which is what turns "the declaration matters" from an argument into a measurement. **Eleventh consecutive real-catch.**
-- **2026-07-29 · cli-docs · friction** — fourth consecutive import-line-only opening, and the clearest one yet: two of the three triggers change a single `from` line each (`PipeRunMode` moving to `pipelex.system.pipe_run_mode`), and the third changes a *comment* — the guard's declaration rationale, which no CLI doc has ever described or could. Targets grepped for all four moved symbols and their old module paths: zero hits. Verified the affected surface live anyway (`run pipe --help` still lists `--dry-run` / `--mock-inputs` exactly as `agent-cli.md` lines 37-38 describe). The narrowing case is now overdetermined — the content-aware digest proposed on 2026-07-28 would have suppressed this, the two before it, and made the merge-induced reopening nearly free, while preserving every real-catch this contract has recorded (all of which touched a user-visible string). One further refinement this opening suggests: `pipelex/cli/dev_cli/**` arguably should not be a trigger for this contract at all — the dev CLI is not distributed with the package and neither review target covers it, so it can only ever produce friction here. It already has its own contract in `hub-layering-convention`, which is where its changes were genuinely reviewed.
-- **2026-07-29 · hub-layering-convention · real-catch (twelfth)** — the opening that closes the thing this whole log has been watching rot. The caveat that two interpreter-named packages could not be named in the layer predicate was written into **six** places, and the leaf models that made it true moved this phase, so all six went false at once. Four were on the review target and all four were edited: the must-not-name list, the deliberately-absent paragraph, the `core.pipes.pipe_output` parenthetical under Where core splits, and "what the predicate still cannot name" under The property. **Sixth consecutive opening where an enumeration was the rot** — but this one carries the counter-example, and it is the most useful finding in the entry. The page's runnable `INTERPRETER = {…}` snippet is the one enumeration that *cannot* go stale, because `test_the_interpreter_package_set_matches_the_documented_one` compares it against `INTERPRETER_PACKAGES` by machine: it would have gone red on this change whether or not anyone reviewed the page. Every other enumeration on the page is prose, and every one of them has now rotted at least twice. That is a concrete, generalizable remedy for this contract's recurring failure — a doc enumeration that duplicates a code constant should either point at it (the `AGENT_ERROR_HINTS` pattern the 2026-07-29 `cli-docs` entry praised) or be machine-compared to it; prose duplication is the failure mode, not prose itself. The two prescribed mechanical checks passed and were blind to all six sites, **tenth consecutive time**, which is by now less a caveat than a measurement: they check *presence*, and every finding this contract produces is about *content*. Outcome verified rather than asserted — measurement across all nine runtime entry points returns zero `pipeline` and zero `pipe_run` modules, and the closure test is green with both names added. **Twelfth consecutive real-catch.**
-- **2026-07-29 · hub-layering-convention · real-catch (thirteenth)** — third opening on this contract in one day, and the one that found a live counter-example to the page's own central claim rather than a stale sentence. Two of the three findings are the usual shape, now thoroughly established: the Enforcement enumeration was stale *again* (sixth consecutive opening, same enumeration as the previous two), and the exclusion sentence — "kit is data files and language has interpreter edges, so both stay out" — read exhaustive while accounting for two of the tree's twenty-seven top-level packages. Enumerating all of them and running the measurement over each turned up `test_extras`: clean, shipped, imported at boot, and undeclared. **The third finding is a new shape and the reason to read this entry.** Five built-in vendor adapters imported `MissingDependencyError` from `pipelex/exceptions.py` — the *public all-errors aggregate*, which re-exports every interpreter package's exceptions — instead of from its definition site. Each therefore loaded 15 interpreter modules, inside `pipelex.providers`, a package the guard's own tuple already declared clean. Both gates were blind by construction: the guard's rules only chase `interpreter_hub` and an aggregate of exception classes never reaches it, while the closure test's `providers.builtins` entry point misses these modules because the vendor plugins import them *inside a function* — a deferred import hides a module from the static graph and from the aggregator's runtime closure simultaneously. So the failure needed two independent blind spots to survive, and it had them. Fixed at the import site (the repo's existing "direct full-path imports everywhere" rule already forbade it), with one new entry point and a negative control. **The generalization worth carrying forward: a module that re-exports across layers is a layer boundary with the sign filed off.** `pipelex/exceptions.py` is a deliberate public convenience, so the answer is not to delete it — it is that runtime-layer code must import from definition sites, and that a lazily-imported module is invisible to every static gate in this repo. Two prescribed mechanical checks passed and were blind to all three findings, **eleventh consecutive time**; the counting is no longer interesting, the pattern is — they verify *presence*, and every finding this contract has ever produced concerns *content*. **Thirteenth consecutive real-catch.**
-- **2026-07-30 · hub-layering-convention · real-catch (fourteenth)** — opened by adding `pipelex.runtime_boot` to `RUNTIME_LAYER_PACKAGES`, the guard's tuple, when `pipelex.py` was split into a runtime-layer composition root and an interpreter-layer boot. The catch is the same enumeration for the third consecutive round: the prescribed mechanical check ("every declared package is named under 'The rule'") **failed** on `pipelex.runtime_boot`, so the page's own definition of the runtime layer would have shipped one entry short of the tuple it claims to describe. Seven consecutive rounds now where an enumeration on this page was the rot, and three in a row where it was *this* enumeration. Two observations worth carrying forward. First, the enumeration is the highest-value target on the page and the cheapest to check — the check is four lines of shell against the imported tuple, it has caught something every time it has been run, and it is still not automated; a test asserting the doc names every declared package would convert this recurring real-catch into a gate and retire the manual step. That is now the clearest candidate the pilot has produced. Second, the other prescribed check (hub accessor coverage) passed and was again blind to the finding — it has now been blind on every round it has been run, which is a signal about the check rather than about the page. Beyond the enumeration, six prose sites were genuinely stale because they named `Pipelex.setup` / `Pipelex.teardown` as doing things that now belong to the runtime half, and one — "a process that only ever builds a `RuntimeHub` (the doctor path, most unit tests)" — went from describing a degradation nobody could reach to describing a first-class, tested entry point. The contract opening was proportionate: the trigger was a one-line tuple edit, and the review turned up eight edits.
-
-## hub-layering-convention — fifteenth ack (boot-split review fixes)
-
-**Verdict: no-op (correct silence).** Trigger was a single docstring paragraph on `RuntimeHub.setup_config`'s `config_dir` — an accuracy fix, not a boundary change. The review target (`docs/contribute/hub-layering.md`) does not describe `setup_config`, `config_dir`, or config layering at all, so there was nothing on the page that could have gone stale.
-
-Worth recording precisely because it is the *opposite* of the previous fourteen: the contract fired on a file it watches for good reason (`runtime_hub.py` is one of the two hubs) but on a region of that file the doc has no stake in. The trigger is file-granular; the staleness is region-granular. That gap is the cost of the contract being cheap, and it is the right trade — a false positive costs one grep, and the alternative (region-scoped triggers) is a maintenance burden that would itself drift.
-
-The mechanical enumeration check ran clean for the first time in eight rounds — because the last ack fixed it and this change added no declared package. That is the automation candidate holding steady, not the problem being solved: the check still has to be remembered and run by hand.
-
-## config-docs — sibling of an already-applied fix, found by a review pass rather than by the contract
-
-**Verdict: no-op on the review target (correct silence), but the *opening* is the interesting part.** Trigger was a docstring-only correction to `ConfigLoader.load_config`'s `config_dir` parameter: it still read "project/global layering is bypassed and only this directory is read", which contradicts its own docstring summary six lines above and the body, where `list_of_configs` is seeded unconditionally with the package `pipelex.toml`. Reviewed `docs/configuration/**/*.md` in full — `config_dir` is not a user-facing concept and appears on no page; `index.md`'s documented loading sequence already states the package layer as step 1, i.e. the docs were right about the very fact the docstring was denying. Nothing to update.
-
-What this round adds to the pilot is a shape none of the previous entries has: **the contract opened on the second half of a fix whose first half had already shipped without opening it.** The identical wrong sentence lived in two places — `RuntimeHub.setup_config` and the `load_config` it delegates to. Correcting the first opened `hub-layering-convention` (fifteenth ack, "no-op, correct silence"); correcting the second opened `config-docs`, also a no-op. Two contracts fired, neither review target was stale, and neither contract could have pointed at the duplication, because a review contract watches code→doc drift and this was code→code drift. The sibling was found by a review pass reading both files, not by the manifest.
-
-The honest reading is not "add a contract for it" — the right instrument for two copies of one sentence is deduplication or a docstring that points at its source, not a review obligation. It is a data point on scope: `drift.toml`'s header says anything mechanizable belongs in a derived check, and this is the mirror case, something neither mechanizable *nor* expressible as a review target. Worth remembering the next time a no-op ack tempts a trigger-set widening.
-
-## 2026-08-09 · hub-layering-convention — the doc was already fixed by the commit that opened the contract
-
-**Verdict: clean-pass (bookkeeping-only opening).** Trigger was the rename of the kernel façade class to `PipelexKernel`, which changed exactly one word in `runtime_hub.py`: the class named in `resolve_run_mode_for_boot`'s docstring. The review target needed that same rename — the page names `PipelexKernel.make` in the paragraph under "Which hub does a new symbol belong to?" — and the rename commit had already made it, in the same commit, alongside the code. Nothing was stale by the time the contract was reviewed.
-
-This is a shape the log does not yet have, and it is the **inverse of the fifteenth ack** rather than a repeat of it. There, the contract fired on a region of `runtime_hub.py` the doc has no stake in (file-granular trigger, region-granular staleness). Here the trigger region is precisely what the doc has a stake in, the doc genuinely did have to change, and it changed atomically with the code. The contract opened anyway, because the digest is per-blob and the *ack* lags the commit — not because the coupling misfired. The coupling was right; only the receipt was missing.
-
-That distinction matters for the recommendation running through this log. A content-aware digest — proposed on 2026-07-28 and reinforced four times since — would **not** have suppressed this opening, and should not have: a class name the review target carries is exactly the content such a digest would still see. Unlike the import-churn and comment-churn entries, there is no narrowing that helps here and none should be sought. The residual cost is one ack on a change whose doc half was already done, which is the system working as designed at its cheapest.
-
-Both prescribed mechanical checks were run rather than reasoned about, and both passed. The Enforcement enumeration is clean for the **second consecutive round** after seven rounds of rot — it now names all 15 declared packages, `pipelex.kernel` among them, which is the payoff of that package having been declared in the commit that created it (praised as "the rule applied ahead of a breach" when it landed, and now visible as an enumeration that did not need catching up). Accessor coverage: 34 + 32 public hub symbols, all present. The standing automation candidate — a test asserting the doc names every declared package — remains the right call and remains unbuilt; two clean rounds are not evidence it is unnecessary, only that the last two changes were not the kind that rots it.
-
-One process note, recorded because the pilot's evidence is only as good as its completeness: **the preceding ack has no entry in this log.** The 2026-08-01 forced-DRY ack (Louis, `resolve_run_mode_for_boot` added to `runtime_hub.py`) is present in `.drift/acks/` with a substantial rationale describing two real doc edits, but the mandatory dogfood entry was never written. That is the second recorded instance of the log being skipped while the ack was recorded (cf. the 2026-07-12 backfill note), and both times the ack itself was sound — so the failure mode is specifically the *second* step, the one with no tooling behind it. `drift ack` gates on its verify commands and stages its own file; nothing gates the log entry. If the pilot wants this evidence to be trustworthy, that asymmetry is the thing to fix.
-
-## 2026-08-09 · pipelex-kernel-docs — a rename that renamed everything except the filename
-
-**Verdict: real-catch (one row), on a contract that first had to be un-broken.** The contract failed twice over: `pipelex-kernel-docs` had no ack at all, and a stray ack file under the contract's pre-rename id matched no contract. One cause — the class rename swept `drift.toml` and the ack file's own `contract` field, but not the ack **file's name**, and the tool keys acks by filename. So a review that had genuinely happened (Louis, 2026-08-03) was invisible, and the contract read as never-reviewed. `git mv` restored it; nothing was hand-edited.
-
-Worth recording as a manifest-rot shape the reference doesn't list. `drift check`'s documented rot modes are dead trigger globs, zero-match review targets, orphan acks and id/filename mismatch — and this presented as *two* of them at once (orphan + missing ack) while being a single half-applied rename. The tell is that the orphan file's interior already named the new contract: an orphan ack whose `contract` field points at a live contract is not an orphan, it is a misfiled ack, and the fix is a rename rather than a deletion plus a fresh review. Deleting it — the obvious reading of "orphan" — would have silently discarded a real review and forced a re-review of triggers nobody had touched.
-
-The review proper then ran on rename-only trigger diffs, and the page had already been swept in the same commit. But the page carries a standing rule — *every kernel entry point owes the boot-contract subprocess an arm* — so it was checked by enumerating the package rather than by reading the table: 29 public module-level functions across 18 modules. **Three of the four mechanical checks I wrote produced false positives, and that is the entry's most transferable content.** `__all__` was empty, so the first check compared an empty list and reported a vacuous "none missing" — a green that proved nothing. The second flagged 15 functions as lacking a boot-contract arm; the test imports the operator entry points (`run_*`, `build_*`, `assemble_*`) and the façade, and the rest are internal helpers reached transitively. The third flagged seven modules as absent from the table; the table covers them with a `*_results` glob row and a shorthand (`resolve_llm_setting_for_text` / `_for_object`). Every one of those would have been a fabricated finding had it been reported without opening the file it accused. A mechanical check over prose is a *lead generator*, never a verdict — the opposite failure from the one `hub-layering-convention` keeps logging, where the mechanical checks are blind rather than noisy.
-
-The surviving finding is real and small: the table under "What a programmatic caller imports" had a row for every kernel module except `prompt_references`, while `assemble_llm_prompt` and `assemble_img_gen_prompt` both oblige the caller to construct `ImageReference` / `DocumentReference` values. A table that states what a caller imports, omitting a module its own listed entry points force the caller to import, is wrong by its own claim. Pre-existing rather than trigger-induced — it survived the 2026-08-03 review — which is the same lesson `hub-layering-convention` logged on 2026-07-27: a review target's value is bounded by what the reviewer reads, not by what opened the contract.
-
-- **2026-08-13 · cli-docs · clean-pass** — opened by the PR #1099 review fixes to `validate pipe` / `show pipe` (ambiguity now a clean exit instead of a traceback) and `which` (markup escaping). Reviewed both targets: `docs/tools/cli/` documents no exit codes or error rendering for these commands and has no `which` page, and the agent-CLI contract doc covers only the agent CLI, untouched here. The one user-visible behavior (ambiguous codes refused, naming candidates) was already documented in `docs/building-methods/libraries.md` by this branch — the fixes make the code honor the doc, the pleasant inverse of drift. Second consecutive clean-pass on cli-docs from the same underlying fact (the targets simply do not document the surfaces this branch keeps touching); not yet friction — the contract opened on genuine CLI-surface edits and the review was cheap.
-- **2026-08-13 · pipelex-kernel-docs · clean-pass** — Opened on the `search_domain_codes`→`search_scope` rename threading through `shape_inputs` and the boot-contract mock swapping to `get_required_entry_concept`; the kernel doc names neither the parameter nor the resolver method, so nothing was stale.
-
-- **2026-08-14 · config-docs · scope-miss (recorded in arrears)** — The templating-style work deleted `[pipelex.prompting_config]` and its `prompting_styles` sub-table from `pipelex.toml`, opening `config-docs` in Phase 1. The review target `docs/configuration/**/*.md` was read in full and honestly found to say nothing about the block, so the ack was "no configuration page mentions it" — and that was true. The page that *did* document that exact config block, field by field, with a TOML sample and the Python signature of the accessor being deleted, was `docs/building-methods/adapt-to-llm-prompting-style-openai-anthropic-mistral.md`, which no contract watches. It stayed stale for three phases and was deleted in Phase 4 by a plan step, not by a contract.
-
- The transferable part is the shape, not the miss: **the contract's review target is scoped by directory, but the docs are organized by audience.** A `[pipelex.*_config]` block explained to authors lives under `docs/building-methods/`; a contract whose stated job is "user-facing configuration docs must track the config model and the shipped defaults" cannot see it. The ack was honest and the contract was correct on its own terms — the trigger fired, the target was reviewed, the target was clean. Every step worked and the stale page survived, which is the failure mode worth naming: a review target narrower than the claim in the contract's `description` produces confident green.
-
- Not proposing a widening to `docs/**` — that makes every config touch review the whole site and the acks go perfunctory, which this log has already warned about twice. The narrower reading is that a doc page reproducing a config block's *schema* (field list, TOML sample, accessor signature) is a config doc wherever it is filed, and the cheap instrument is a grep-based derived check for `[pipelex.` TOML blocks appearing under `docs/` outside `docs/configuration/`, not another review obligation. Recorded here rather than acted on, per the pilot's bias.
-
-- **2026-08-14 · Phase 4 (docs-only) · no contract opened, correctly** — Worth one line for the asymmetry it demonstrates. The phase that rewrote or deleted every doc page in this change's blast radius opened nothing, because drift contracts key on *code* triggers: they catch code that outran its docs, never docs that outran their code. That is the right asymmetry — a docs-only edit has no code to re-review — but it means the instrument is structurally silent exactly when a doc is being replaced wholesale, which is when a cross-reference is most likely to be left dangling. The `mkdocs.yml` nav/redirect rewiring and the `docs/404.html` prefix-rule chain were verified by hand here; nothing in the drift system would have flagged them.
-
-- **2026-08-14 · pipelex-kernel-docs · friction** — Reopened with **zero trigger-file changes**. Every blob under `pipelex/kernel/**` and `test_kernel_boot_contract.py` was byte-identical to the previous ack (verified by diffing the ack's recorded `trigger_files` map against `git ls-files -s`); what moved was the contract-definition half of the digest, across the `dev` merge on `feature/usage-graph-spec`. So the obligation fired on a change that could not, even in principle, have made the review target stale — and it fired in CI, as the one red check on PR #1100, on a branch about graph usage attribution that never touched the kernel.
- No **trigger** narrowing prevents this one: the triggers matched nothing. It is the definition-change reopening rule, and the case for that rule is real (widen a glob or add a review target and every prior ack genuinely under-covers). But it does not distinguish a *semantic* definition change from bookkeeping. Two candidate refinements, both cheap: digest the definition and the trigger content **separately**, so `drift plan` can say "definition-only reopening, trigger content unchanged" and a reviewer knows up front that no code moved; or exempt a definition change that only **narrows** (removing triggers, removing review targets) since the prior review still covers a superset. The first is the honest one — it costs a field in the ack file and turns this entry's ten minutes of forensics into a printed line.
- The review itself: ran anyway, on both halves the contract names. Module table diffed against every public function AST-parsed out of `pipelex/kernel/*.py` — complete, including `concrete_llm_model_handle` added by this branch; `kernel.exceptions` is correctly absent (error classes, no entry point), which the check flagged and I dismissed by opening it, the same lead-generator-not-verdict lesson the 2026-08-03 entry draws. Gates table's claim that the boot-contract test covers every entry point except the three `resolve_*_setting` deck-reading helpers still matches that test's own stated exception. Nothing stale.
- **Third consecutive clean review on this contract** (2026-08-03, 2026-08-13, today), and today's opened on nothing at all. The pattern is not yet "drop" — the doc is a real specification and a renamed entry point would genuinely falsify it — but it is worth asking at verdict time whether the module table, the one part that keeps being checked and keeps being fine, is mechanizable outright: the AST enumeration I wrote here is ~20 lines and would have answered "is the table complete" as a derived check, leaving only the prose claims to human review.
-
-- **2026-08-14 · pipelex-kernel-docs · real-catch, on the entry immediately above** — Merging `dev` into `fix/Keyless-dry-run` reopened the contract on a genuine trigger change: `llm_ops.py` gained `concrete_llm_model_handle`, textually conflicting with this branch's deletion of `derive_templating_style`. The module table took the union and was fine. The Gates row was not: it claimed the boot-contract test runs every kernel entry point *except the three `resolve_*_setting` helpers*, and `concrete_llm_model_handle` reads the deck too and has no arm in that test — so the "sole exception" was false from the moment the function landed on `dev`. Fixed the row (and the test docstring it derives from) to name deck-reading helpers as a class rather than a count.
- The transferable part is **who missed it, and why the miss was structurally invited**. The entry directly above is the ack that let it through, and its rationale is precise about what it checked: the module table was AST-diffed and found complete *including* `concrete_llm_model_handle`, and the Gates claim was verified as "still matches that test's own stated exception." Both statements are true. The reviewer checked the table against the code, and the doc against the test — but never the *test's* claim against the code, which is where the new function fell out of the enumeration. **A consistency check between two documents is not a check against reality**, and two mutually-agreeing prose claims are exactly the shape that survives it. This is the inverse of the 2026-08-09 lesson: there, mechanical checks produced false positives that opening the file dismissed; here, a careful human check produced a false negative that only re-deriving the claim from the code would have caught.
- Also worth noting for the friction verdict above: that entry proposed mechanizing the module table because it "keeps being checked and keeps being fine." The table was indeed fine again. The row that rotted is the one nobody proposed mechanizing — and it rotted *because* it counts ("the three"), the one construct the workspace writing rules already ban for going stale silently. A derived check that enumerates deck-reading kernel functions and asserts the boot-contract test's exception list matches would be cheaper than the table check and would have caught this; the table check would not have.
- Third consecutive clean review is now second, and the reopening it complained about turned out to be the one that mattered.
-
-- **2026-08-15 · rogue-extra-headers guard · no contract opened, and one should have had a stake** — The change rewrote how `InferenceBackendLibrary.load` (`pipelex/cogt/model_backends/backend_library.py`) treats a per-model key of a backend TOML: an unknown key used to become an outbound HTTP header unconditionally, and now it must be header-shaped or the load fails. That is a user-facing configuration rule — it decides what a line in `.pipelex/inference/backends/*.toml` means and what error the author gets — and it was undocumented until this change wrote it into `docs/configuration/config-technical/inference-backend-config.md`. No contract fired: `backend_library.py`, `model_spec_factory.py` and the new `model_spec_keys.py` are in no contract's trigger set (`config-docs` watches the `ConfigModel` tree, `pipelex.toml`, and a handful of named submodel modules — the shape of `pipelex.toml`, not the shape of the backend files it points at).
- Same finding as the 2026-08-14 `config-docs` scope-miss, from the other direction. There, the doc lived outside the review target; here, the code lives outside the trigger set. Both come from the same gap between what the contract says and what it watches: its `description` says *user-facing configuration docs must track the config model and the shipped defaults*, and the backend TOMLs **are** shipped defaults — `pipelex/kit/configs/inference/backends/*.toml` ships in the package, mirrored by the `.pipelex/inference/backends/*.toml` overrides — yet the only shipped default in the trigger set is `pipelex/pipelex.toml`. So the description promises more than the triggers deliver, and it is the backend TOMLs, the configuration surface a user edits most and the only one that sends strings to third parties, that fall through. They are a second config schema, defined by `InferenceModelSpecBlueprint` / `InferenceBackendBlueprint` and the loader's reclassification rules, and nothing declares that schema owes anything to `docs/configuration/`. Recorded, not acted on, per the pilot's bias: the candidate is a trigger for `pipelex/cogt/model_backends/{backend_library,model_spec_factory,backend_factory,model_spec_keys}.py` (and, by the description's own words, the shipped backend TOMLs under `pipelex/kit/configs/inference/`) on `config-docs`, or a sibling `backend-config-docs` contract with `inference-backend-config.md` as its review target — small either way, and worth deciding at verdict time together with the scope-miss above rather than one at a time.
-
-- **2026-08-16 · config-docs · real-catch, from the verify command rather than from the review** — Merging `dev` into `feature/Reshape` reopened all three contracts below at once, since the merge is the first time the configuration reshape and PR #1114's boot tolerance sit in one tree. The documentation review itself came out clean, and honestly so: `docs/configuration/index.md`'s four-main-sections claim was re-derived by enumerating the top-level tables of `pipelex/pipelex.toml`, every TOML section header quoted anywhere under `docs/configuration/` was checked against that file, and a grep for every spelling the reshape retired returns nothing across the directory. What was stale was **code**, and the contract's `make tb` verify command is what said so: three tests in `test_boot_tolerance.py` build a synthetic ledger that renames a key under `[pipelex.log_config]`, a table the reshape had just deleted, so the replay produced a document `PipelexConfig` refuses with *extra forbidden field 'pipelex'* — and two of the three then asserted on `config.pipelex.log_config`, an attribute that no longer exists. Fixed to `[runtime.log]` in the same change.
- The transferable part is what the verifier is *for*. A drift contract's stated job is to make a human read a document, and the review here would have passed with an honest "nothing stale" while the branch was red. `config-docs` is the one contract in the manifest carrying a verify command, and it is carrying it for exactly this: the contract watches the config model, and the config model is a thing whose staleness shows up in a boot rather than in a page. A verify command is not a formality attached to the ack — it is the half of the obligation that checks the artifact the prose is *about*, which is the same lesson the 2026-08-14 entry above draws about checking claims against reality instead of against another document. Worth carrying into the verdict discussion: the two contracts below have no verify command, and it is not obvious they should — `make check-hub-layering` already runs in `agent-check`, so wiring it here would only move an existing gate earlier.
-
-- **2026-08-16 · cli-docs · clean-pass** — Same merge. The reshape half of the trigger diff moves no flag, output stream, format or exit code: it rewrites the configuration addresses the CLI reads (`runtime.log` in the agent-CLI override map, `interpreter.pipeline_execution` in both run cores and the graph command, `interpreter.scan` in the fix sandbox) and one docstring naming the plugin denylist. Grepped both review targets for every retired address and root table and got no hits at all, which is the structural reason this contract keeps passing on reshape commits: `docs/tools/cli/` and the agent-CLI contract doc document commands and their two output streams, not configuration keys, so a change that only moves keys cannot make them stale. PR #1114's half is documented where it put it, in the new `migrate.md`, which came through the merge untouched.
-
-- **2026-08-16 · hub-layering-convention · clean-pass** — Same merge, and the one contract whose trigger diff genuinely touches its target's subject matter: `runtime_hub` gained `set_boot_orchestrator` / `get_boot_orchestrator` from the reshape and had `setup_config` rerouted through `load_config_validated` by #1114. Re-derived the accessor partition table from the module — every public module-level function AST-listed out of `pipelex/runtime_hub.py`, each checked against the table — and it is complete, boot-orchestrator row included, because the reshape branch had already added it. Re-derived the "every top-level package accounted for" claim the same way, by enumerating the packages under `pipelex/` rather than reading the sentence: each is named either in the kernel-layer declaration and its follow-on paragraph or in the list of what `runtime_hub` may not import. The `reset_config` → `reset_boot_state` rename reaches no sentence, since the page names accessors and that is not one. Nothing stale.
-
-- **2026-08-17 · config-docs · clean-pass, and the first read of the review list the contract just grew** — Merging `dev` into `feature/Reshape` again, one round later. No trigger file moved at all: what opened the contract is **its own definition**, which arrived from `dev` carrying the migration ledgers and the two validator modules as new review targets. `dev` had already recorded a first read of those targets — on `dev`'s tree, where `pipelex-config` has no `@2` entry — so the read that matters is this one, on the branch that carries the reshape. The question the new targets exist to ask was answered from the code at all four live sites: diffing `configs.py` and `config_cogt.py` across the whole branch shows the reshape changed exactly one thing in any of the four validators, the error-message string `dry_run_config.image_urls` → `inference.dry_run.image_urls`, with the non-empty rule untouched and the other three bodies unchanged. Then the enums the three mapping validators gate on, since a removed member is a narrowing no annotation records: `Quality`, `ReasoningEffort` and `AgentTarget` are member-identical between the branch base and HEAD. So no `unsafe` entry with `declared_narrowed_paths` is owed, matching both live ledger entries being `safe`.
- The transferable part is that **a contract-definition change is a review obligation in its own right, and it lands on whichever branch reads it first**. The previous entry's lesson was that the verify command checks the artifact the prose is about; this one is the same idea one level up — widening a review list creates a debt that each branch pays against its own tree, and `dev`'s payment does not discharge the branch's. It cost one targeted diff and one enum comparison, which is proportionate. Worth noting for the verdict: this is the *second* consecutive `config-docs` opening on this branch where `docs/configuration/` itself was clean, and the value came entirely from the non-doc targets — the review list widening is earning its place, the documentation half is not.
-
-- **2026-08-17 · cli-docs · clean-pass** — Same merge. The trigger diff is PR #1115's `would_write` tri-state in `agent_output.py` and `error_handlers.py` plus the doctor's remaining Rich escaping, and both review targets arrived **rewritten in the same change** — which is the interesting case, because reading a freshly-updated doc against the change that updated it is exactly the two-documents-agreeing trap. So every claim was re-derived from the code instead: the field set `agent-cli.md` enumerates for the migration object is exactly what `MigrationErrorBlock` declares under `extra="forbid"`, its "present when and only when the scan found something" holds because the builder returns `None` on an empty or failed scan, and `would_write` is `any(plan.did_change)`. Both enumerated finding sets came from the enums rather than the table. The one claim worth the trouble was `migrate.md`'s quantified *nothing will ever suggest deleting an out-of-date file and starting over* — a set claim that could only have rotted by omission, and it survives, because the new false branch points at the dry run while the start-over line stayed on the no-block path where the file is wrong rather than old.
- Verdict signal: this contract now has a run of clean-passes, but the mechanism differs each time and the last two were not free — a doc that arrives pre-updated still needs its claims checked against the code, and that is not something a derived check could do.
-
-- **2026-08-18 · cli-docs · real-catch** — Triggered by `init_config` gaining a call to `ensure_config_dir_gitignore`, the fix for `pipelex migrate` dropping untracked `.bak.<stamp>` files into a user's `git status`. The catch is the plainest kind and the kind grep cannot find: `docs/tools/cli/init.md`'s **What Gets Initialized** list is a set claim about what the command creates, and a new artifact falsifies it by *absence* — searching the target for `.gitignore` returns nothing, which reads identically to "not mentioned because not relevant". Only reading the page for its quantified claims surfaces it. Worth recording that the contract also earned its keep on a claim that turned out **fine**: `agent_cli/CLAUDE.md` states that `migrate` writes only with `--yes`, and a new write on the migrate path is exactly what would falsify that — re-derived from the code (`agent_migrate_cmd` passes `dry_run = not yes`; the bare command's first pass is `dry_run=True`; both call sites guard the new write with `if not dry_run`) rather than from the guard's own docstring, which is the artifact-not-prose rule applied to a claim I had written myself minutes earlier and was therefore the least trustworthy prose in the repo.
- Verdict signal: this breaks `cli-docs`'s run of clean-passes, and it does so on the cheapest possible trigger — a single new call in one CLI module. The contract opened on the right thing and pointed at the right page. No narrowing to propose.
-- **2026-08-18 · cli-docs · real-catch** — A one-line fix to `migrate_cmd.py` (ensure the config-dir `.gitignore` on the clean early-return path) opened the contract, and the review caught the CLI page making a set claim about when you get that file that the fix had just changed — the sort of staleness that reads fine in the diff because the false sentence never mentions what falsified it.
-
-- **2026-08-29 · cli-docs · real-catch** — Opened by the `origin/dev` merge into `feature/Two-gateways-2`: `doctor_cmd.py` moved from probing `pipelex_gateway` by name to probing every enabled managed-gateway backend, and `error_handlers.py`'s unknown-gateway-model panel gained a `Backend:` line and stopped hardcoding `pipelex_gateway` in its remediation. Neither change touched a command, flag, help text or output format, and the review targets describe `doctor` only at that level — so the change that opened the contract left nothing stale. The catch came from the skill's re-derive-the-set discipline applied anyway: enumerating every agent-CLI command module carrying a `CliOutputFormat` parameter showed the markdown-or-JSON list had rotted by omission in *both* targets, missing `migrate` in `agent_cli/CLAUDE.md` and `migrate`, `codegen types` and `codegen check` in `agent-cli.md`. Neither omission mentions the commands that falsify it, so no grep driven by the trigger diff could have found them, and each was left behind by an earlier change that this contract had already been acked over.
- Verdict signal: keep, and note the shape — the staleness this opening caught had nothing to do with the trigger that opened it. That is an argument for the contract being a periodic re-read of the targets rather than a diff-scoped one, and it is the second time on this contract that the value came from the quantified-claim sweep rather than from following the diff.
-
-- **2026-09-03 · cli-docs · clean-pass** — opened on the doctor backend-files probe switching to a lenient load and to attribution by the error's declared backend; the targets describe doctor at the row-list level and never how that row loads or attributes, so nothing was stale.
-- **2026-09-03 · cli-docs · clean-pass** — reopened in the same branch's pre-landing review, when `check_models` was moved onto the same attribution helper. Worth recording that the contract reopened at all: the second edit was to the same file for the same reason, and the second review re-read the same two targets to the same verdict. That is the honest cost of a per-file digest — a contract cannot tell "the same change, continued" from a new one, and the review is cheap only because the first one had just established which claims the targets actually make. No narrowing to propose; a contract that skipped a second edit to a triggered file would be worse.
-
-- **2026-09-03 · cli-docs · clean-pass** — Opened by the second `origin/dev` merge into `feature/Two-gateways-2`, and worth recording mostly for what the *ack file itself* does under a merge. The two branches had each acked the same contract, so `.drift/acks/cli-docs.toml` conflicted on its header while `[trigger_files]` auto-merged into the union — a shape where hand-resolving is exactly wrong, because whichever rationale you keep, the digest it records is a digest of neither tree. The only correct resolution is to re-run the review on the merged tree and let `drift-ack` rewrite digest, timestamp and table together, which is what happened here. The triggers dev brought were `doctor_cmd.py` (the backend-files probe going lenient, and both it and `check_models` attributing through the `backend_name` the loader now stamps on the error) and `run/_run_core.py` (`--save-csv` recovering the row model for an empty result by reloading the bundle, with the guard widened to `PipelexError`). Both targets came back clean, and for the same structural reason each time: they describe `doctor` at the row level and `--save-csv` at the flag level, and neither change moved a command, a flag, a message shape or an exit code. The `run.md` claims were re-derived from the code rather than from the diff — the recorded-absence sentence in particular, since it is the one quantified claim in the area and the `AbsenceRecord` arm sits directly above the block that changed.
- Verdict signal: keep. The contract's cost here was one real review, and the merge conflict on its own ack file is a small argument in its favour rather than against — the collision is what forces the review to be redone against the tree that will actually ship, where two independently-acked branches would otherwise land an unreviewed combination.
-
-- **2026-09-16 · cli-docs · clean-pass** — Opened by a round-2 review fix in `graph_cmd.py`: the refused-spec handler escapes its message so a bracketed path prints as written. `docs/tools/cli/` has no `graph render` page, and the agent-CLI doc names only the agent `run` and `validate` graph options, so nothing could be stale. Second opening of this contract on the same handler in one branch, each a genuine read of the same two targets.
-- **2026-09-16 · hub-layering-convention · friction** — Opened by a docstring-only edit to `reset_boot_state` in `runtime_hub.py`. The doc specifies the import boundary and the accessor table, and a docstring cannot move either. No glob narrowing can tell a docstring edit from an import edit in the same file; a digest over `runtime_hub`'s import statements and public accessor names, rather than its whole text, would have kept this contract closed.
diff --git a/wip/drift-contracts/phase-3-verdict.md b/wip/drift-contracts/phase-3-verdict.md
deleted file mode 100644
index 23f7661d2..000000000
--- a/wip/drift-contracts/phase-3-verdict.md
+++ /dev/null
@@ -1,178 +0,0 @@
-# Drift contracts — Phase 3 pilot verdict (working doc)
-
-**Status: DRAFT — awaiting Louis' rulings (decision boxes below).** This is the deferred "Phase 3 — pilot verdict" item from the Drift Hunt tracker (`TODOS.md` → Deferred drift-contracts items): the per-contract **keep / narrow / mechanize / drop** decision the design said must wait for dogfood evidence, plus the manifest-growth question that evidence now answers. Ruling on this doc formally ends the D5 dogfood freeze ("evidence now, contracts later" — the campaign is closed, the evidence is in).
-
-Naming note: the design doc's rollout plan (`wip/drift-contracts-design.md` → Rollout plan) used "Phase 3" for *agent ergonomics, after the dogfooding verdict*; the campaign tracker uses "Phase 3" for the verdict itself. This doc is the verdict; the agent-ergonomics leftovers are folded in as agenda item E3. (The tracker's pointer to the original phase breakdown — `git show origin/docs/Update:TODOS.md` — is dead, that branch is gone; the surviving source is the design doc's Rollout plan section.)
-
-## The question the pilot asked
-
-From the design doc, verbatim: *"is the ack friction proportionate to the staleness it catches?"* — with the promised consequence: *"If the dogfood shows the acks catching real staleness at tolerable friction, grow the manifest; if it shows ceremony, we will have learned that cheaply."*
-
-**Verdict: the mechanism works; grow the manifest — narrowly.** The evidence below supports keeping all three seed contracts, repairing identified trigger gaps, adding two new contracts, and adopting the campaign's top derived checks. It does not support broad trigger expansion (see B5).
-
-## A — Evidence base
-
-Three independent sources:
-
-**A1 — the dogfood log** (`wip/drift-contracts/dogfood-log.md`). Every ack so far logged: one **real-catch** (keyword-only — the guard gained the subject-grant registry and the convention doc was materially stale, exactly the coupling the contract exists to enforce), the rest **clean-pass** (genuine reviews, nothing stale), and **zero friction verdicts** (no contract ever opened on changes that could not have affected its targets). Small sample, but the directional read is clean: real staleness caught, no ceremony observed. One process slip (an ack recorded without its mandatory log entry, backfilled honestly) — an argument for keeping the log mandatory, not for dropping it (see E1).
-
-**A2 — the Drift Hunt campaign** (`wip/drift-hunt/findings/SUMMARY.md`, close-out). The campaign is the system's external validation:
-
-- **Docs edited in the same commit as their code did not drift** — observed in the wild (`d3550330a`, `15e0a94ea`). That is the drift-contracts thesis, confirmed empirically.
-- **Drift follows audience, not complexity.** Author-is-the-reader pages stay current by use; explain-it-to-someone-else pages drift at up to 2.0 findings/page. Contract budget belongs on reader-facing pages.
-- **Some drift classes are provably un-mechanizable.** Part 4's repo-tooling class: every documented make target exists (an existence script scores zero), yet behavior drifted under stable names — `agent-test` grew a heartbeat weeks after a page was written on the premise it was silent. The right instrument is a review obligation. This is the campaign's strongest evidence *for* the contracts mechanism itself.
-- **A green snippet check must never be read as a clean page** (F13: four bundles validate and dry-run clean while the prose beside them teaches a false rule). This bounds what the derived checks in section D can be trusted to mean.
-- The ranked drift-contract shortlist handed to this verdict (SUMMARY.md → Handoff 1).
-
-**A3 — the trigger-coverage audit** (this session, 2026-07-13). Cross-checking `drift.toml`'s trigger globs against where the documented surfaces actually live in the code found the concrete gaps itemized in section B.
-
-## B — Verdicts on the seed contracts
-
-| Contract | Verdict | Change |
-|---|---|---|
-| `config-docs` | **KEEP + repair triggers** | Add the inference-backend/routing surface (B1); adopt the coverage meta-check (section C) |
-| `cli-docs` | **KEEP as-is** | None — right glob, right exclusion, right targets |
-| `keyword-only-convention` | **KEEP + extend trigger** | Add `subject_grant_cmd.py` (B3) |
-
-### B1 — `config-docs`: repair the trigger enumeration
-
-**The hole today:** `docs/configuration/config-technical/inference-backend-config.md` documents the backend TOML layout, per-backend setup, gateway overrides, and routing profiles — whose sources of truth are `pipelex/cogt/model_backends/*.py`, `pipelex/cogt/model_routing/*.py`, and the shipped structural TOMLs under `pipelex/kit/configs/inference/`. None of those are triggers; only `config_cogt.py` is. A field added to the `Backend` model, or a restructuring of `backends.toml` / `routing_profiles.toml`, changes what that page must say without opening the contract.
-
-**Proposed trigger additions:**
-
-```toml
-"pipelex/cogt/model_backends/**/*.py",
-"pipelex/cogt/model_routing/**/*.py",
-"pipelex/kit/configs/inference/backends.toml",
-"pipelex/kit/configs/inference/routing_profiles.toml",
-```
-
-**Deliberately excluded:** the per-backend deck files (`pipelex/kit/configs/inference/backends/*.toml`). The add-model flow touches those routinely; making every model addition cost an ack is exactly the friction the manifest header warns against, and the docs page documents the *structure*, not the model roster. Residual risk accepted: a backend file rename could drift the doc's examples without opening the contract — the enumerations derived check (D1) is the better instrument for roster-shaped drift.
-
-**The structural fragility:** hand-enumerating submodel files means every *new* documented submodel defined in its own package silently escapes the gate — drift of the drift manifest, the one place the system cannot see itself. The settings-model files (`llm_setting.py`, `extract_setting.py`, `img_gen_setting.py`, …) are the current long tail: some are documented via sections that live in already-triggered files, some may not be. Rather than audit them by hand once (and rot again), fix it structurally — see section C.
-
-- [ ] **DECISION B1 (Louis):** adopt the four trigger additions? Include or exclude the per-backend deck files?
-
-### B2 — `cli-docs`: keep as-is
-
-The glob (`pipelex/cli/**/*.py` minus `dev_cli/`), the review targets, and the observed behavior (a clean-pass ack on a broad internal sweep that changed no command surface) are all as designed. No change proposed.
-
-- [ ] **DECISION B2 (Louis):** confirm keep-as-is.
-
-### B3 — `keyword-only-convention`: the trigger is one file, the convention's tooling is two
-
-The doc specifies the grant workflow (`make sgr`), implemented in `pipelex/cli/dev_cli/commands/subject_grant_cmd.py` — not in the guard. Not hypothetical: the Signatures track deleted `--seed`/`seeded` from exactly that command and the doc had to follow (it did, by discipline).
-
-**Proposed:** add `"pipelex/cli/dev_cli/commands/subject_grant_cmd.py"` to the contract's triggers.
-
-- [ ] **DECISION B3 (Louis):** adopt.
-
-### B4 — a note on the keyword-only contract's audience
-
-The campaign's headline correlation says maintainer-facing pages stay current by use, and `keyword-only-arguments.md` is maintainer-facing — it came back clean in Stage 1. That cleanliness is confounded (the contract already existed and had produced the pilot's one real-catch), and the contract's friction is near zero (a single-file trigger that rarely changes). **Proposed: keep.** Recorded here so the "narrow or drop" question was asked on the record, not skipped.
-
-### B5 — what NOT to do: no broad Python-surface triggers
-
-The worst drift density was in the under-the-hood docs (renamed Python APIs, ~2.0 findings/page), and the tempting response is a contract triggered on the API surface. The trigger would be effectively `pipelex/**/*.py`, it would open on every PR, and acks would degrade into rubber stamps — the exact failure mode the design doc names ("if we observe reflexive acks, the contract is mis-scoped"). That drift class belongs to the derived checks (section D), which is also where the campaign's shortlist puts the top value-per-effort. **Proposed: no contract for the Python API docs; adopt D3 instead.**
-
-- [ ] **DECISION B5 (Louis):** confirm.
-
-## C — New: manifest-coverage meta-check (keeps B1 from rotting)
-
-**Proposed:** a unit test (not a new CLI command — smallest correct surface) that walks the tree for files defining `ConfigModel` subclasses, matches each against `config-docs`' trigger globs, and fails on any file that is neither matched nor on an explicit not-user-documented allowlist (factories, internal specs, exceptions). Lives with the drift tests, runs in `make agent-test`, needs no Makefile or CI wiring. When a new documented submodel appears in its own package, the test fails until either the trigger list or the allowlist is updated — the enumeration can no longer rot silently.
-
-The allowlist seeding is the one judgment call: it requires classifying today's `ConfigModel` files as documented-vs-internal once, which is also the audit that settles B1's long tail (the settings-model files).
-
-- [ ] **DECISION C (Louis):** adopt the meta-check as a unit test?
-
-## D — Derived checks to adopt (from the campaign shortlist)
-
-Per the manifest's own rule, anything mechanizable becomes a derived check, never a contract. The shortlist, with a proposed build order (by effort, cheapest first — the shortlist's own ranking is by value-per-effort and puts D1 first; D3 is cheaper to build, so the two orderings differ only in which ships first):
-
-**D3 — `doc-python-snippets-import`** *(build first — lowest effort)*: import-and-`getattr` smoke check on Python symbols referenced in doc snippets. Kills the campaign's #1 cross-part defect class (renamed API never propagated into docs), which produced the worst silent failure found anywhere (mis-named observer hooks that silently no-op).
-
-**D1 — `doc-enumerations-vs-registry`** *(build second)*: diff documented **closed** lists against the code's registries (native concepts, operator roster, model deck, config files). The diff is trivial; the design cost is encoding the exhaustive-vs-illustrative rule — only hedge-free lists are checked ("such as" / "including" / a scope qualifier exempts a list; two S2-4 refutations prove skipping scoped lists is correct, not lenient).
-
-**D2 — `validate-doc-bundle-examples`** *(build third — highest impact, most engineering)*: extract fenced bundle examples under `docs/`, inject D11 placeholders (`description`/`domain`, tolerated-omitted prompt), scaffold D19 placeholder sub-pipes for sequence sketches, run `pipelex validate bundle`. Kills the single biggest breaks-a-user class. **Carry the F13 caveat into its output and docs: a green run verifies the snippets, never the sentences beside them.**
-
-**Deferred (weaker / harder, revisit only if their classes recur):** `doc-python-signatures-vs-live` (keyword-only drift in snippets; needs signature resolution), `doc-toml-config-vs-shipped` (diff doc-embedded `pipelex.toml` blocks against the shipped file), `operator-param-table-vs-blueprint` (needs a Markdown table parser).
-
-Wiring, for each adopted check: a `pipelex-dev` command mirroring the existing `check_*` family, a Make target, membership in the `make check` aggregate (hence CI). Each ships as its own PR with the docs-tree fixes its first run demands (expected to be near-zero — Stage 2 just fixed everything these checks would catch, which also makes now the cheapest moment to adopt them: they start green and stay green).
-
-- [ ] **DECISION D (Louis):** adopt D3 + D1 + D2 in that order? All three, or a subset?
-
-## E — New contracts
-
-### E1 — `make-targets-and-tooling` (shortlist #4 — the clearest contract case the campaign produced)
-
-The un-mechanizable class from A2: behavior drifting under stable target names. **Proposed contract:**
-
-```toml
-[contracts.make-targets-and-tooling]
-description = "Pages that describe make targets must track the Makefile — behavior drifts under stable target names."
-triggers = ["Makefile"]
-review = [
- "docs/agents/debugging-hanging-pytest-runs.md",
- "docs/contribute/drift-contracts.md",
- "docs/contribute/keyword-only-arguments.md",
- "CONTRIBUTING.md",
- "pipelex/kit/agent_rules/commands.md",
- "pipelex/kit/agent_rules/codex_commands.md",
-]
-verify_commands = []
-```
-
-Notes: the kit agent-rules templates are the *source* of the generated repo-root `CLAUDE.md`/`AGENTS.md` — review the templates, `make rules` regenerates (the S2-4 lesson). Exact review-target list to be settled at implementation by grepping for pages that *describe* targets rather than merely invoke one (the seed contracts set this precedent). Review-target overlap with other contracts (e.g. `keyword-only-arguments.md` under both this and `keyword-only-convention`) is fine — contracts are independent obligations.
-
-**Friction, stated honestly:** the Makefile changed 13 times in the last three months (6 in the last month) — this contract opens roughly weekly in active periods. Most acks will be the one-minute "changed recipe isn't documented" kind. If the dogfood shows reflexive acks, the design doc's remedy applies: narrow (e.g. trigger only on documented target names' recipe blocks is *not* mechanically expressible — so realistically: shrink the review list, or accept and re-verdict).
-
-- [ ] **DECISION E1 (Louis):** adopt? Confirm or trim the review-target list.
-
-### E2 — `drift-tool-docs` (self-hosting)
-
-`dev_cli` is excluded from `cli-docs` (correctly), and the keyword-only guard got its own carve-out contract — but the drift tool itself didn't, though `docs/contribute/drift-contracts.md` + the drift-review skill are the same "the doc is the tool's specification" shape. Phase H changed ack semantics (auto-stage, warn→fail) and updated both docs in the same change — by discipline, not obligation. The tool that enforces review obligations should carry one for its own spec. **Proposed contract:**
-
-```toml
-[contracts.drift-tool-docs]
-description = "The drift-contracts doc and the drift-review skill are the tool's specification and must track its behavior."
-triggers = ["pipelex/cli/dev_cli/commands/drift/**/*.py"]
-review = [
- "docs/contribute/drift-contracts.md",
- ".claude/skills/drift-review/SKILL.md",
-]
-verify_commands = []
-```
-
-Friction: near zero (the drift subpackage changed twice in the last month, both in one hardening wave).
-
-- [ ] **DECISION E2 (Louis):** adopt.
-
-### E3 — standing policy items
-
-- **Dogfood log:** keep the mandatory one-line entry per ack through the next wave — the repaired triggers and new contracts need their own evidence, and the E1 friction estimate needs confirming in practice. Revisit once the new contracts have accumulated enough acks to judge (suggested trigger for the revisit: the first friction verdict, or a quarter, whichever comes first).
-- **`lint-drift` promotion to a required CI check:** stays gated (tracked in `TODOS.md`). Flip condition: every open PR against `dev` either merged or rebased past the current acks — a required check would fail every PR that predates them. Re-check the backlog after the manifest changes from this verdict land, since those add new acks and reset the clock.
-- **Agent ergonomics (the design doc's original "Phase 3"):** substantially delivered — the drift-review skill exists, the kit rules describe the workflow, and the failure messages are actionable. The remaining design-doc item (`--format json` for software consumers) is deferred until a software consumer exists (clean-solid rule: no speculative surface).
-
-- [ ] **DECISION E3 (Louis):** confirm the three policy positions.
-
-**Related, ruled separately:** `ack-record-gaps.md` carries two findings about the ack record as a data model (DECISION M1 — the ack has no merge semantics, so a long-lived branch re-pays every contract's review cost at every merge; DECISION M2 — `--by`'s git-user default silently clobbered deliberate reviewer identities on all four contracts). M1 is not independent of this doc: it resolves into the content-aware-digest narrowing the `config-docs` and `cli-docs` log entries propose, so rule the two together. Both worsen as Phase V1 grows the manifest.
-
-## F — Execution plan (once rulings are in)
-
-**Phase V1 — manifest wave (one PR).** Apply B1 + B3 trigger repairs and add the E1 + E2 contracts to `drift.toml`; perform the initial reviews *for real* (the Phase-2-seeds precedent — note the make-targets pages were just swept and fixed by the campaign, so the first reviews should be fast but must still be genuine); record the initial acks + dogfood-log entries; update `docs/contribute/drift-contracts.md`'s contract roster and the changelog.
-
-**Phase V2 — meta-check (same PR or a small follow-up).** The section-C unit test, including the one-time documented-vs-internal classification of `ConfigModel` files that seeds its allowlist.
-
-### CHECKPOINT V-A
-
-Gates green (`make agent-check`, targeted drift tests, `make docs-check`); PR to `dev`; update this doc's status and the memory. Natural handoff — V3 is independent engineering a fresh session can pick up cold from section D.
-
-**Phase V3 — derived checks (one PR each, in D's build order).** Each: `pipelex-dev` command + Make target + `make check` membership + docs; first run against the docs tree, fix or triage anything it flags.
-
-### CHECKPOINT V-B
-
-All adopted checks green in CI. Re-check the `lint-drift` promotion gate (E3) against the then-current PR backlog; if clear, promote in its own small PR.
-
-## Bottom line
-
-The pilot answered its question: acks catch real staleness (one real-catch, zero friction verdicts, zero observed rubber-stamping), and the campaign independently confirmed both the thesis (same-commit docs don't drift) and the existence of drift classes only a review obligation can cover. The proposed growth is deliberately narrow — two contracts, four trigger repairs, three derived checks, one meta-check — and everything broad stays out, per the design's own friction principle.
diff --git a/wip/drift-hunt/deferred-code-findings.md b/wip/drift-hunt/deferred-code-findings.md
deleted file mode 100644
index b15ef70fd..000000000
--- a/wip/drift-hunt/deferred-code-findings.md
+++ /dev/null
@@ -1,107 +0,0 @@
-# Drift Hunt — deferred code findings
-
-Defects the hunt surfaced whose fix belongs in **code**, not docs (Louis' Checkpoint 0 ruling, 2026-07-12: doc-side these are fine; code-side issues get deferred here rather than fixed mid-campaign). One entry per finding; pick these up as ordinary follow-ups after the campaign (or sooner if one becomes pressing).
-
-> **Campaign closed 2026-07-12 — this file is the live handoff.** The per-section findings files and prescreen artifacts referenced below (`suspects.md`, the findings files) were pruned at close-out; they live in git history under the pushed `drift-hunt-archive` tag: `git show drift-hunt-archive:wip/drift-hunt/<path>`. The campaign record is `findings/SUMMARY.md` + `inventory.md`.
-
-## 1. `pipelex validate` shortcut forms are invisible in `--help`
-
-**Found:** Stage 0, via the CLI pre-screen near-miss (see `suspects.md` FP pattern 8).
-
-**Behavior:** `pipelex/cli/commands/validate/app.py` defines a custom click group whose `parse_args` rewrites `pipelex validate <pipe_code>` and `pipelex validate --all …` into `pipelex validate pipe …` — but the `--help`/`-h` path deliberately bypasses the rewrite, and the group's help output lists only the `method`/`pipe`/`bundle` subcommands with no mention of the shortcut. `docs/tools/cli/validate.md` documents the shortcut; the CLI's own help contradicts it.
-
-**Why it matters:** any consumer that derives the command surface from `--help` (a human skimming, an agent, tooling like the hunt's pre-screen) concludes the documented forms are dead. That's exactly the false "confirmed defect" Stage 0 produced before live execution disproved it.
-
-**Candidate fix (code):** surface the shortcut in the group help — e.g. an epilog/help line on the `validate` group ("`pipelex validate [PIPE_CODE|--all]` is a shortcut for `validate pipe …`"), or expose the forwarded options on the group so `--help` lists them. Keep the rewrite semantics unchanged; this is a help-surface fix only. Update `docs/tools/cli/validate.md` only if the chosen wording changes the documented contract.
-
-## 2. `plxt lint` does not detect invalid concept references (cross-repo: `vscode-pipelex`)
-
-**Found:** Stage 1 Part 3, as the code side of finding F10 (`docs/features/plxt.md:24`).
-
-**Behavior:** `plxt lint` (v0.6.0) is a pure JSON-Schema structural validation pass (required / type / enum / additionalProperties) plus a type-discriminated per-pipe-blueprint check. There is **no cross-reference resolution step**, so a `.mthds` file referencing a concept that was never declared lints **clean**: `output = "NonExistentConcept"` → exit 0, no diagnostics; `inputs = { topic = "TotallyMadeUpConcept" }` → exit 0. (Control: an unknown *pipe type* IS caught — `error[schema]: "UnknownPipeType" is not one of [...]`, exit 1.) The only concept-reference resolution in the toolchain is `crates/taplo-lsp/src/handlers/mthds_resolution.rs`, which is LSP-only (hover / goto-definition) and emits no diagnostic; `taplo-lsp/src/diagnostics.rs` has no concept logic at all.
-
-**Why it matters:** it is a capability gap, not a bug — but the docs promised it, which is what makes it worth recording. Undefined concept references are caught today only by `pipelex validate`, i.e. only once a human/agent reaches for the runtime. A fast, editor-time diagnostic is exactly what the linter is for.
-
-**Doc-side (in scope, Stage 2):** drop "or invalid concept references" from `docs/features/plxt.md:24` — the claim is currently false. That fix stands on its own and does **not** depend on the code side.
-
-**Candidate fix (code, other repo — `vscode-pipelex`):** add a concept cross-reference resolution pass to the lint path, reusing the resolution logic that already exists for the LSP, and surface it as a diagnostic in both `plxt lint` and the LSP. Out of scope for this campaign (D8: another repo's code); hand off to the toolchain owner. If the team decides `plxt lint` should stay purely structural, then the doc fix is the *whole* fix — and that is a legitimate outcome.
-
-## 3. `GatewayTelemetryManagerInjectedError`'s message names config fields that do not exist
-
-**Found:** Stage 1 Part 4, as a byproduct of the false-negative hand-check on `docs/setup/telemetry.md` (the page itself is clean — this defect is in an error string, not in the docs).
-
-**Behavior:** `pipelex/system/pipelex_service/exceptions.py:126-134` builds a remediation message telling the user to configure `host`, `project_api_key`, `langfuse_enabled`, `otlp_endpoint` and `otlp_headers`. **None of those field names exist** in the telemetry config models. The real names are `endpoint` and `api_key` (`PostHogConfig`, `telemetry_config.py:77-96`), `enabled` (`LangfuseConfig`, `:107-115`), and `endpoint` / `headers` on the `[[otlp]]` table.
-
-**Why it matters:** this is the error a user hits when telemetry is misconfigured — the one moment the message is load-bearing. Every key it hands them is wrong, so following it verbatim cannot work. It is the mirror image of doc drift (the docs are right; the *code's own* user-facing text is stale), and no docs fix can reach it.
-
-**Candidate fix (code):** rewrite the message against the current field names, and ideally derive them from the pydantic models rather than restating them, so the message cannot drift again.
-
-## 4. `ImageRenderable` docstring attributes the field-iterating implementation to the wrong class
-
-**Found:** Stage 2, batch S2-3, while fixing finding F33 of `docs/under-the-hood/stuffartefact-and-image-rendering.md` (the doc-side fix is applied; this is the same stale attribution living in code).
-
-**Behavior:** the docstring in `pipelex/tools/jinja2/image_renderable.py:29` still says "StuffContent (base): iterates model fields" — but `StuffContent` has no `render_with_images`; the field-iterating implementation lives on `StructuredContent` (`pipelex/core/stuffs/structured_content.py:52-71`), and a plain `StuffContent` subclass does not satisfy the protocol.
-
-**Why it matters:** the docstring is the first thing a contributor reads when implementing the protocol; it steers them to override the wrong base class — exactly the mistake the doc page used to teach before F33 was fixed.
-
-**Candidate fix (code):** correct the docstring line to name `StructuredContent`. One-line comment fix; deferred only because Stage 2 is docs-only (D17).
-
-## 5. Two docstrings still name `OrchestratorProtocol.run` after the `execute` rename
-
-**Found:** Stage 2, batch S2-3, by the blind post-fix review of the batch commit (the doc-side rename — finding F27 — is fully applied; these are the same stale name living in code comments).
-
-**Behavior:** `pipelex/runtime_bridge/delivery_mode.py:6` ("Delivery is passed as a parameter to ``OrchestratorProtocol.run``") and `pipelex/plugins/bundle_validator_registry.py:54` ("unlike ``OrchestratorProtocol.run``") both reference the protocol's blocking method by its old name; the method is `execute` (`pipelex/plugins/orchestrator_registry.py:38`).
-
-**Why it matters:** these docstrings describe the SPI seam an out-of-tree orchestrator plugin compiles against — the exact audience the F27 page-wide doc rename was fixed for.
-
-**Candidate fix (code):** rename both references to `OrchestratorProtocol.execute`. Two one-line comment fixes; deferred only because Stage 2 is docs-only (D17).
-
-## 6. CSV codec accepts `datetime` fields but its own error message, docstring, and tests omit the type
-
-**Found:** Stage 2, batch S2-1, as the code side of fix-time finding F52 on `docs/building-methods/pipes/csv-input-and-output.md` (the doc-side fix — adding `datetime` to the accepted flat types — is applied; it was verified to round-trip live).
-
-**Behavior:** the flatness classifier accepts `datetime` — `pipelex/tools/tabular/csv_codec.py:52` `_FLAT_SCALAR_TYPES = frozenset({str, int, float, bool, date, datetime})` — and a `datetime`-typed field round-trips end-to-end (ISO string in via pydantic lax coercion at `:364`, identical ISO string out via `model_dump(mode="json")` at `:402`). But the `CsvFlatnessError` message (`:104-108`) and the `flat_field_names` docstring (`:97`) both enumerate only text/integer/number/boolean/date, and `tests/unit/pipelex/tools/tabular/test_csv_codec.py` has zero `datetime` coverage (only `date`).
-
-**Why it matters:** the codec's own user-facing error text contradicts what the codec accepts, and the doc page's "contract is pinned by tests" claim is not yet true for `datetime` — the coercion table on that page deliberately omits a `datetime` row until tests pin it.
-
-**Candidate fix (code):** decide whether `datetime` is intended-supported. If yes (the classifier comment "Scalar python types a CSV cell can round-trip" suggests so): add it to the error message + docstring enumerations and pin the round trip with tests (then the doc's coercion table can gain its row). If no: remove `datetime` from `_FLAT_SCALAR_TYPES` — and revert the doc bullet.
-
-## 7. String-declared concepts drop their `refines` while basic-blueprint concepts keep `refines="native.Text"`
-
-**Found:** Stage 2, batch S2-1, by the adversarial verifier of fix-time finding F53 while pinning down accurate replacement wording for "native Text concepts" on `docs/building-methods/pipes/index.md`.
-
-**Behavior:** a concept declared as a plain string goes through `ConceptDeclarationType.STRING` → `_handle_basic_blueprint`, which generates a Text-based structure class — but the STRING branch discards the returned refine string and builds the `Concept` with `refines=None` (`pipelex/core/concepts/concept_factory.py:511-523`), whereas the BASIC_BLUEPRINT branch keeps `refines="native.Text"` (`:527-537`). Two spellings of the same declaration produce concepts with different `refines` metadata.
-
-**Why it matters:** anything that branches on `refines` (compatibility checks, tooling, future docs) sees an inconsistency between equivalent declarations. No doc claim currently hinges on it — recorded so the asymmetry is a decision, not an accident.
-
-**Candidate fix (code):** make the STRING branch keep the same `refines` the BASIC_BLUEPRINT branch records (or document why the asymmetry is intended).
-
-## 8. `tomli>=2.3.0` floor permits a tomli that rejects the TOML 1.1 syntax the docs and kit rely on
-
-**Found:** Stage 2, batch S2-2, by the adversarial verifier while refuting a fix-time candidate against `docs/building-methods/configure-ai-llm-to-optimize-methods.md` (the doc's multi-line inline tables turned out to be VALID under the shipped loader — this is the code-side residue of that refutation).
-
-**Behavior:** all deck/bundle TOML goes through `load_toml_from_path` → `tomli` (`pipelex/tools/misc/toml_utils.py:40`, `pipelex/mthds_parsing/parser.py:43,46`). The installed tomli 2.4.1 accepts TOML 1.1 features (newlines and trailing commas in inline tables), and both the docs' snippets and real `.mthds` content use them. But the pin is `tomli>=2.3.0` (`pyproject.toml:55`), and tomli 2.3.0 empirically REJECTS the same content ("Invalid initial character for a key part") — 2.4.0 is the first version that accepts it.
-
-**Why it matters:** any environment resolving tomli to exactly 2.3.0 (permitted by the constraint) fails to parse documented deck syntax and multi-line inline tables in `.mthds` bundles generally — a version-dependent parse surface for the language itself.
-
-**Candidate fix (code):** bump the floor to `tomli>=2.4.0`. Also worth a decision: whether TOML 1.1 inline-table syntax is officially part of the MTHDS surface (the docs and examples already assume it).
-
-## 9. Re-running `pipelex build structures` over a migrated concept silently emits an opaque same-named class that can shadow the hand-written one
-
-**Found:** Stage 2, batch S2-2, by the adversarial verifier while refuting a missing-warning candidate on `docs/building-methods/concepts/python-classes.md` (the page's own migration procedure makes no false claim — the hazard lives outside it, so it was ruled out of drift scope and recorded here).
-
-**Behavior:** after the documented migration (hand-written class, concept's inline structure removed from the `.mthds`), regenerating with `pipelex build structures` over a scope that includes the migrated bundle emits `class <Name>(StructuredContent)` — an opaque `extra="allow"` placeholder docstringed "Imprecise: concept declares no structure" — with the SAME bare name as the hand-written class. Class registration is name-keyed and first-registered-wins (`pipelex/system/registries/class_registry_utils.py:169-171`), so whichever class is discovered first silently wins.
-
-**Why it matters:** a user who keeps generated output inside a discovered library dir can have the opaque placeholder silently shadow (or race) their hand-written class — no error, just wrong structure at runtime.
-
-**Candidate fix:** either skip emitting placeholder classes for structureless concepts whose name is already registered, or make registration collisions loud; docs-side, the Migration Guide could gain a warning to exclude migrated bundles from `build structures` scope (deferred with the rest — D17 keeps Stage 2 docs-only, and adding a new warning admonition is new content).
-
-## 10. The shipped `plxt.toml` template's "built-in default" comment contradicts one of the values it labels
-
-**Found:** Stage 2, batch S2-4, by a fix agent's whole-page scan while fixing `docs/tools/plxt.md` (the `align_entries` default finding), confirmed at fix time against the taplo source.
-
-**Behavior:** `pipelex/kit/configs/plxt.toml:34-35` (and its `.pipelex/plxt.toml` mirror) introduces the global `[formatting]` section with "Every option is shown at its built-in default", yet sets `array_auto_collapse = false` while the actual built-in default is `true` (`vscode-pipelex/crates/taplo/src/formatter/mod.rs:161`, `impl Default for Options`).
-
-**Why it matters:** the comment is the template's contract with the reader — the docs page (`docs/tools/plxt.md`) and this very campaign's verification both leaned on it as ground truth for defaults. One mislabeled value poisons that trust: either the value should flip to `true`, or the comment should stop claiming universality (and if `false` is a deliberate Pipelex-preferred override, it belongs in a differently-labeled line).
-
-**Candidate fix (code):** decide intent for `array_auto_collapse` in the shipped template: if the built-in default is wanted, set it to `true`; if the override is wanted, move it out of the "shown at built-in default" block or reword the comment. Same edit in both the kit template and the repo's own `.pipelex/plxt.toml`.
diff --git a/wip/drift-hunt/drift-hunt-explainer.html b/wip/drift-hunt/drift-hunt-explainer.html
deleted file mode 100644
index 1679f1a76..000000000
--- a/wip/drift-hunt/drift-hunt-explainer.html
+++ /dev/null
@@ -1,298 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>Killing documentation drift — the Drift Hunt &amp; drift contracts</title>
-<style>
- :root {
- --ink: #1f2430;
- --muted: #5b6472;
- --line: #d9dee6;
- --bg: #ffffff;
- --panel: #f6f8fa;
- --accent: #0b6bcb;
- --accent-soft: #e8f1fb;
- --good: #1a7f37;
- --warn: #9a6700;
- --bad: #cf222e;
- }
- * { box-sizing: border-box; }
- html, body { margin: 0; padding: 0; }
- body {
- font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
- color: var(--ink);
- background: var(--bg);
- line-height: 1.55;
- font-size: 16px;
- }
- main { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
- h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .3rem; }
- .subtitle { color: var(--muted); margin: 0 0 2rem; font-size: 1.05rem; }
- h2 { font-size: 1.45rem; margin: 3rem 0 .8rem; padding-top: .5rem; border-top: 1px solid var(--line); }
- h3 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; }
- p { margin: .6rem 0; }
- code {
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- font-size: .85em;
- background: var(--panel);
- border: 1px solid var(--line);
- border-radius: 4px;
- padding: .08em .35em;
- white-space: nowrap;
- }
- pre code { white-space: pre; display: block; padding: .8em 1em; overflow-x: auto; }
- .tldr {
- background: var(--accent-soft);
- border: 1px solid #bcd6f2;
- border-left: 5px solid var(--accent);
- border-radius: 8px;
- padding: 1.1rem 1.4rem;
- margin: 1.5rem 0 2rem;
- }
- .tldr h2 { border: none; margin: 0 0 .5rem; padding: 0; font-size: 1.15rem; letter-spacing: .04em; }
- .tldr ul { margin: .4rem 0 0; padding-left: 1.2rem; }
- .tldr li { margin: .45rem 0; }
- .callout {
- background: var(--panel);
- border: 1px solid var(--line);
- border-left: 4px solid var(--muted);
- border-radius: 6px;
- padding: .8rem 1.1rem;
- margin: 1rem 0;
- }
- .callout.rule { border-left-color: var(--accent); background: var(--accent-soft); }
- .callout.honest { border-left-color: var(--warn); }
- figure { margin: 1.4rem 0; }
- .diagram {
- border: 1px solid var(--line);
- border-radius: 8px;
- background: #fff;
- padding: 1rem;
- overflow-x: auto;
- }
- .diagram svg { display: block; margin: 0 auto; height: auto; max-width: 100%; }
- .diagram.wide svg { max-width: none; }
- figcaption { color: var(--muted); font-size: .88rem; margin-top: .5rem; text-align: center; }
- table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .92rem; }
- th, td { border: 1px solid var(--line); padding: .45rem .7rem; text-align: left; vertical-align: top; }
- th { background: var(--panel); font-weight: 600; }
- tbody tr:nth-child(even) { background: #fbfcfd; }
- td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
- .sev-break { color: var(--bad); font-weight: 600; }
- .sev-wrong { color: var(--warn); font-weight: 600; }
- .ok { color: var(--good); font-weight: 600; }
- details {
- border: 1px solid var(--line);
- border-radius: 8px;
- margin: .8rem 0;
- background: var(--panel);
- }
- details > summary {
- cursor: pointer;
- padding: .7rem 1rem;
- font-weight: 600;
- list-style: none;
- }
- details > summary::-webkit-details-marker { display: none; }
- details > summary::before { content: "▸ "; color: var(--accent); }
- details[open] > summary::before { content: "▾ "; }
- details > .body { padding: 0 1.1rem .9rem; background: #fff; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
- ul, ol { padding-left: 1.4rem; }
- li { margin: .3rem 0; }
- .pill {
- display: inline-block;
- font-size: .75rem;
- font-weight: 700;
- letter-spacing: .05em;
- text-transform: uppercase;
- border-radius: 999px;
- padding: .12em .7em;
- margin-right: .4em;
- vertical-align: middle;
- }
- .pill.campaign { background: #eef7ee; color: var(--good); border: 1px solid #bfe3bf; }
- .pill.system { background: var(--accent-soft); color: var(--accent); border: 1px solid #bcd6f2; }
- footer { margin-top: 3.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
- .twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
- @media (max-width: 720px) { .twocol { grid-template-columns: 1fr; } }
-</style>
-</head>
-<body>
-<main>
-
-<h1>Killing documentation drift</h1>
-<p class="subtitle">The Drift Hunt campaign &amp; the drift-contracts system — a recap for the team · July&nbsp;2026</p>
-
-<div class="tldr">
-<h2>TL;DR</h2>
-<ul>
- <li><strong>We did two complementary things about code↔doc drift.</strong> <span class="pill campaign">campaign</span>A one-off <strong>Drift Hunt</strong> swept every hand-written docs page against the current code and fixed everything that had drifted — <strong>104 pages, 1,439 claims checked, ~140 confirmed defects fixed</strong>, landed on <code>dev</code> through five reviewed PRs. <span class="sev-break">39 of those were “break-a-user”</span>: a reader following the page verbatim hit an error — or worse, a <em>silent no-op</em>. <span class="pill system">system</span>A standing <strong>drift-contracts</strong> gate now prevents <em>new</em> drift: declared code→doc review obligations, mechanically enforced in <code>make check</code> and CI.</li>
- <li><strong>What changes for you day-to-day:</strong> if you touch a <em>trigger</em> file (the config model, CLI code, the keyword-only guard), <code>make check</code> fails with an <em>open contract</em>. Run <code>make drift-plan</code>, actually review the named doc pages, fix what's stale, <code>git add</code> your changes, then <code>make drift-ack CONTRACT=… RATIONALE="…"</code> and commit. There is deliberately <strong>no bypass flag</strong> — but <em>“reviewed, no doc change needed”</em> is a perfectly legitimate rationale and takes one minute.</li>
- <li><strong>Trust level of the docs today:</strong> every fix was re-verified against the code by an independent adversarial agent before being applied, every changed example re-validated against the real parser, and each fix batch survived a blind no-context review. Honest caveat: the cookbook pages were <strong>deliberately not swept</strong> (deferred).</li>
-</ul>
-</div>
-
-<h2>The problem, in one sentence</h2>
-<p>Documentation rots silently: the code renames a method, a default flips, a CLI grows a flag — and the page that explains it keeps teaching the old world, with no error anywhere. The worst finding of the campaign made the cost concrete: a guide told users to implement observer hooks under names the protocol no longer has, so a user following it to the letter got a <em>silent no-op</em> — their monitoring code simply never ran, no exception, nothing.</p>
-
-<p>Think of it as a stock-and-flow problem. The <strong>stock</strong> is the drift already accumulated in the pages; the <strong>flow</strong> is the new drift every future code change can introduce. The campaign drained the stock; the contracts throttle the flow.</p>
-
-<figure>
- <div class="diagram wide"><svg id="dg1" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="flowchart" style="max-width: 1670.81px; background-color: transparent;" viewBox="0 0 1670.8095703125 179" role="graphics-document document" aria-roledescription="flowchart-v2"><style>#dg1{font-family:ui-sans-serif,system-ui,sans-serif;font-size:14px;fill:#000000;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#dg1 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#dg1 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#dg1 .error-icon{fill:#552222;}#dg1 .error-text{fill:#552222;stroke:#552222;}#dg1 .edge-thickness-normal{stroke-width:1px;}#dg1 .edge-thickness-thick{stroke-width:3.5px;}#dg1 .edge-pattern-solid{stroke-dasharray:0;}#dg1 .edge-thickness-invisible{stroke-width:0;fill:none;}#dg1 .edge-pattern-dashed{stroke-dasharray:3;}#dg1 .edge-pattern-dotted{stroke-dasharray:2;}#dg1 .marker{fill:#666;stroke:#666;}#dg1 .marker.cross{stroke:#666;}#dg1 svg{font-family:ui-sans-serif,system-ui,sans-serif;font-size:14px;}#dg1 p{margin:0;}#dg1 .label{font-family:ui-sans-serif,system-ui,sans-serif;color:#000000;}#dg1 .cluster-label text{fill:#333;}#dg1 .cluster-label span{color:#333;}#dg1 .cluster-label span p{background-color:transparent;}#dg1 .label text,#dg1 span{fill:#000000;color:#000000;}#dg1 .node rect,#dg1 .node circle,#dg1 .node ellipse,#dg1 .node polygon,#dg1 .node path{fill:#eee;stroke:#999;stroke-width:1px;}#dg1 .rough-node .label text,#dg1 .node .label text,#dg1 .image-shape .label,#dg1 .icon-shape .label{text-anchor:middle;}#dg1 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#dg1 .rough-node .label,#dg1 .node .label,#dg1 .image-shape .label,#dg1 .icon-shape .label{text-align:center;}#dg1 .node.clickable{cursor:pointer;}#dg1 .root .anchor path{fill:#666!important;stroke-width:0;stroke:#666;}#dg1 .arrowheadPath{fill:#333333;}#dg1 .edgePath .path{stroke:#666;stroke-width:1px;}#dg1 .flowchart-link{stroke:#666;fill:none;}#dg1 .edgeLabel{background-color:white;text-align:center;}#dg1 .edgeLabel p{background-color:white;}#dg1 .edgeLabel rect{opacity:0.5;background-color:white;fill:white;}#dg1 .labelBkg{background-color:rgba(255, 255, 255, 0.5);}#dg1 .cluster rect{fill:hsl(0, 0%, 98.9215686275%);stroke:#707070;stroke-width:1px;}#dg1 .cluster text{fill:#333;}#dg1 .cluster span{color:#333;}#dg1 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:ui-sans-serif,system-ui,sans-serif;font-size:12px;background:hsl(-160, 0%, 93.3333333333%);border:1px solid #707070;border-radius:2px;pointer-events:none;z-index:100;}#dg1 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#000000;}#dg1 rect.text{fill:none;stroke-width:0;}#dg1 .icon-shape,#dg1 .image-shape{background-color:white;text-align:center;}#dg1 .icon-shape p,#dg1 .image-shape p{background-color:white;padding:2px;}#dg1 .icon-shape .label rect,#dg1 .image-shape .label rect{opacity:0.5;background-color:white;fill:white;}#dg1 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#dg1 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#dg1 .node .neo-node{stroke:#999;}#dg1 [data-look="neo"].node rect,#dg1 [data-look="neo"].cluster rect,#dg1 [data-look="neo"].node polygon{stroke:url(#dg1-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg1 [data-look="neo"].node path{stroke:url(#dg1-gradient);stroke-width:1px;}#dg1 [data-look="neo"].node .outer-path{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg1 [data-look="neo"].node .neo-line path{stroke:#999;filter:none;}#dg1 [data-look="neo"].node circle{stroke:url(#dg1-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg1 [data-look="neo"].node circle .state-start{fill:#000000;}#dg1 [data-look="neo"].icon-shape .icon{fill:url(#dg1-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg1 [data-look="neo"].icon-shape .icon-neo path{stroke:url(#dg1-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg1 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}</style><g><marker id="dg1_flowchart-v2-pointEnd" class="marker flowchart-v2" viewBox="0 0 10 10" refX="5" refY="5" markerUnits="userSpaceOnUse" markerWidth="8" markerHeight="8" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="dg1_flowchart-v2-pointStart" class="marker flowchart-v2" viewBox="0 0 10 10" refX="4.5" refY="5" markerUnits="userSpaceOnUse" markerWidth="8" markerHeight="8" orient="auto"><path d="M 0 5 L 10 10 L 10 0 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="dg1_flowchart-v2-pointEnd-margin" class="marker flowchart-v2" viewBox="0 0 11.5 14" refX="11.5" refY="7" markerUnits="userSpaceOnUse" markerWidth="10.5" markerHeight="14" orient="auto"><path d="M 0 0 L 11.5 7 L 0 14 z" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="dg1_flowchart-v2-pointStart-margin" class="marker flowchart-v2" viewBox="0 0 11.5 14" refX="1" refY="7" markerUnits="userSpaceOnUse" markerWidth="11.5" markerHeight="14" orient="auto"><polygon points="0,7 11.5,14 11.5,0" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="dg1_flowchart-v2-circleEnd" class="marker flowchart-v2" viewBox="0 0 10 10" refX="11" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="dg1_flowchart-v2-circleStart" class="marker flowchart-v2" viewBox="0 0 10 10" refX="-1" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="dg1_flowchart-v2-circleEnd-margin" class="marker flowchart-v2" viewBox="0 0 10 10" refY="5" refX="12.25" markerUnits="userSpaceOnUse" markerWidth="14" markerHeight="14" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="dg1_flowchart-v2-circleStart-margin" class="marker flowchart-v2" viewBox="0 0 10 10" refX="-2" refY="5" markerUnits="userSpaceOnUse" markerWidth="14" markerHeight="14" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="dg1_flowchart-v2-crossEnd" class="marker cross flowchart-v2" viewBox="0 0 11 11" refX="12" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"/></marker><marker id="dg1_flowchart-v2-crossStart" class="marker cross flowchart-v2" viewBox="0 0 11 11" refX="-1" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"/></marker><marker id="dg1_flowchart-v2-crossEnd-margin" class="marker cross flowchart-v2" viewBox="0 0 15 15" refX="17.7" refY="7.5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 1,1 L 14,14 M 1,14 L 14,1" class="arrowMarkerPath" style="stroke-width: 2.5;"/></marker><marker id="dg1_flowchart-v2-crossStart-margin" class="marker cross flowchart-v2" viewBox="0 0 15 15" refX="-3.5" refY="7.5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 1,1 L 14,14 M 1,14 L 14,1" class="arrowMarkerPath" style="stroke-width: 2.5; stroke-dasharray: 1, 0;"/></marker><g class="root"><g class="clusters"><g class="cluster" id="dg1-STOCK" data-look="classic"><rect style="" x="8" y="8" width="663.734375" height="163"/><g class="cluster-label" transform="translate(201.9375, 8)"><foreignObject width="275.859375" height="21"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5;"><span class="nodeLabel"><p>The stock — Drift Hunt campaign (one-off)</p></span></div></foreignObject></g></g></g><g class="edgePaths"><path d="M203.922,89.5L208.089,89.5C212.255,89.5,220.589,89.5,228.255,89.5C235.922,89.5,242.922,89.5,246.422,89.5L249.922,89.5" id="dg1-L_A_B_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_A_B_0" data-points="W3sieCI6MjAzLjkyMTg3NSwieSI6ODkuNX0seyJ4IjoyMjguOTIxODc1LCJ5Ijo4OS41fSx7IngiOjI1My45MjE4NzUsInkiOjg5LjV9XQ==" data-look="classic" marker-end="url(#dg1_flowchart-v2-pointEnd)"/><path d="M453.219,89.5L457.385,89.5C461.552,89.5,469.885,89.5,477.552,89.5C485.219,89.5,492.219,89.5,495.719,89.5L499.219,89.5" id="dg1-L_B_C_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_B_C_0" data-points="W3sieCI6NDUzLjIxODc1LCJ5Ijo4OS41fSx7IngiOjQ3OC4yMTg3NSwieSI6ODkuNX0seyJ4Ijo1MDMuMjE4NzUsInkiOjg5LjV9XQ==" data-look="classic" marker-end="url(#dg1_flowchart-v2-pointEnd)"/><path d="M646.734,89.5L650.901,89.5C655.068,89.5,663.401,89.5,671.734,89.5C680.068,89.5,688.401,89.5,696.151,89.57C703.901,89.641,711.068,89.781,714.652,89.851L718.235,89.922" id="dg1-L_C_G_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_C_G_0" data-points="W3sieCI6NjQ2LjczNDM3NSwieSI6ODkuNX0seyJ4Ijo2NzEuNzM0Mzc1LCJ5Ijo4OS41fSx7IngiOjY5Ni43MzQzNzUsInkiOjg5LjV9LHsieCI6NzIyLjIzNDM3NDk5OTk5OTcsInkiOjkwLjAwMDAwMDAwMDAwMDAxfV0=" data-look="classic" marker-end="url(#dg1_flowchart-v2-pointEnd)"/><path d="M872.857,89.5L877.023,89.5C881.19,89.5,889.523,89.5,897.19,89.5C904.857,89.5,911.857,89.5,915.357,89.5L918.857,89.5" id="dg1-L_G_FLOW_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_G_FLOW_0" data-points="W3sieCI6ODcyLjg1NjUwNjM0NzY1NjIsInkiOjg5LjV9LHsieCI6ODk3Ljg1NjUwNjM0NzY1NjIsInkiOjg5LjV9LHsieCI6OTIyLjg1NjUwNjM0NzY1NjIsInkiOjg5LjV9XQ==" data-look="classic" marker-end="url(#dg1_flowchart-v2-pointEnd)"/></g><g class="edgeLabels"><g class="edgeLabel"><g class="label" data-id="L_A_B_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_B_C_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_C_G_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_G_FLOW_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g></g><g class="nodes"><g class="root" transform="translate(914.8565063476562, 10.5)"><g class="clusters"><g class="cluster" id="dg1-FLOW" data-look="classic"><rect style="" x="8" y="8" width="739.953125" height="142"/><g class="cluster-label" transform="translate(234.65625, 8)"><foreignObject width="286.640625" height="21"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5;"><span class="nodeLabel"><p>The flow — drift contracts (standing system)</p></span></div></foreignObject></g></g></g><g class="edgePaths"><path d="M208.922,79L215.172,79C221.422,79,233.922,79,245.755,79C257.589,79,268.755,79,274.339,79L279.922,79" id="dg1-L_D_E_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_D_E_0" data-points="W3sieCI6MjA4LjkyMTg3NSwieSI6Nzl9LHsieCI6MjQ2LjQyMTg3NSwieSI6Nzl9LHsieCI6MjgzLjkyMTg3NSwieSI6Nzl9XQ==" data-look="classic" marker-end="url(#dg1_flowchart-v2-pointEnd)"/><path d="M450.984,79L457.234,79C463.484,79,475.984,79,487.818,79C499.651,79,510.818,79,516.401,79L521.984,79" id="dg1-L_E_F_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_E_F_0" data-points="W3sieCI6NDUwLjk4NDM3NSwieSI6Nzl9LHsieCI6NDg4LjQ4NDM3NSwieSI6Nzl9LHsieCI6NTI1Ljk4NDM3NSwieSI6Nzl9XQ==" data-look="classic" marker-end="url(#dg1_flowchart-v2-pointEnd)"/></g><g class="edgeLabels"><g class="edgeLabel"><g class="label" data-id="L_D_E_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_E_F_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g></g><g class="nodes"><g class="node default" id="dg1-flowchart-D-4" data-look="classic" transform="translate(127.2109375, 79)"><rect class="basic label-container" style="" x="-81.7109375" y="-36" width="163.421875" height="72"/><g class="label" style="" transform="translate(-51.7109375, -21)"><rect/><foreignObject width="103.421875" height="42"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>code change on<br />a trigger file</p></span></div></foreignObject></g></g><g class="node default" id="dg1-flowchart-E-5" data-look="classic" transform="translate(367.453125, 79)"><rect class="basic label-container" style="" x="-83.53125" y="-36" width="167.0625" height="72"/><g class="label" style="" transform="translate(-53.53125, -21)"><rect/><foreignObject width="107.0625" height="42"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>contract opens<br />make check fails</p></span></div></foreignObject></g></g><g class="node default" id="dg1-flowchart-F-7" data-look="classic" transform="translate(618.21875, 79)"><rect class="basic label-container" style="" x="-92.234375" y="-36" width="184.46875" height="72"/><g class="label" style="" transform="translate(-62.234375, -21)"><rect/><foreignObject width="124.46875" height="42"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>review + ack<br />recorded on the PR</p></span></div></foreignObject></g></g></g></g><g class="node default" id="dg1-flowchart-A-0" data-look="classic" transform="translate(118.4609375, 89.5)"><rect class="basic label-container" style="" x="-85.4609375" y="-36" width="170.921875" height="72"/><g class="label" style="" transform="translate(-55.4609375, -21)"><rect/><foreignObject width="110.921875" height="42"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>104 hand-written<br />doc pages</p></span></div></foreignObject></g></g><g class="node default" id="dg1-flowchart-B-1" data-look="classic" transform="translate(353.5703125, 89.5)"><rect class="basic label-container" style="" x="-99.6484375" y="-46.5" width="199.296875" height="93"/><g class="label" style="" transform="translate(-69.6484375, -31.5)"><rect/><foreignObject width="139.296875" height="63"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>Stage 1<br />semantic sweep<br />1,439 claims checked</p></span></div></foreignObject></g></g><g class="node default" id="dg1-flowchart-C-3" data-look="classic" transform="translate(574.9765625, 89.5)"><rect class="basic label-container" style="" x="-71.7578125" y="-46.5" width="143.515625" height="93"/><g class="label" style="" transform="translate(-41.7578125, -31.5)"><rect/><foreignObject width="83.515625" height="63"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>Stage 2<br />4 fix batches<br />4 PRs to dev</p></span></div></foreignObject></g></g><g class="node default" id="dg1-flowchart-G-9" data-look="classic" transform="translate(797.2954406738281, 89.5)"><g class="basic label-container outer-path"><path d="M-57.5703125 -18 C-19.399924062617103 -18, 18.770464374765794 -18, 57.5703125 -18 C57.5703125 -18, 57.5703125 -18, 57.5703125 -18 C57.8038298235217 -17.992511553948557, 58.037347147043405 -17.98502310789711, 58.72357645965283 -17.963017069506055 C59.02999866077668 -17.93345688829025, 59.33642086190053 -17.90389670707445, 59.87210141032111 -17.85222024881843 C60.20599994479562 -17.798238123186398, 60.53989847927014 -17.74425599755437, 61.0111678166247 -17.668064825839178 C61.23940248648252 -17.615971751814538, 61.467637156340345 -17.5638786777899, 62.13609501037113 -17.41130753470253 C62.449578986098956 -17.31826713621748, 62.763062961826776 -17.225226737732427, 63.24226042442517 -17.083003446192034 C63.67294554820416 -16.924507339431724, 64.10363067198315 -16.766011232671413, 64.32511858782874 -16.68450163222839 C64.62263133613882 -16.552801563953626, 64.92014408444892 -16.421101495678865, 65.38021980411605 -16.217439622243546 C65.69954183646144 -16.050849522504482, 66.01886386880682 -15.884259422765416, 66.40322843607088 -15.683736674221011 C66.73075113868687 -15.485190487158153, 67.05827384130286 -15.286644300095293, 67.38994072178987 -15.085585888053133 C67.68651580563218 -14.878707948093192, 67.98309088947451 -14.67183000813325, 68.33630204884189 -14.425445193623219 C68.64089526095252 -14.182540212530776, 68.94548847306315 -13.939635231438334, 69.23842361554019 -13.706027250644421 C69.49373372726093 -13.47416136231503, 69.74904383898166 -13.242295473985637, 70.09259841086275 -12.930288301759097 C70.34361755179532 -12.67109042969148, 70.59463669272787 -12.411892557623863, 70.89531644735568 -12.101416024703706 C71.08004437484588 -11.884424089756862, 71.26477230233608 -11.667432154810019, 71.64327918442453 -11.222816433457204 C71.84018348677668 -10.958982606656287, 72.03708778912885 -10.69514877985537, 72.3334130827452 -10.298099882199057 C72.48711258224945 -10.06197617686598, 72.64081208175372 -9.825852471532901, 72.96288223409623 -9.331066229589453 C73.18789923698404 -8.931525755519834, 73.41291623987185 -8.531985281450215, 73.529100014714 -8.325689224335035 C73.67680490487083 -8.018976859546026, 73.82450979502765 -7.712264494757019, 74.02973971428463 -7.286100176203093 C74.15597314352107 -6.974301165431768, 74.2822065727575 -6.6625021546604435, 74.46274409689568 -6.216570979583546 C74.5808093557485 -5.860977231063258, 74.69887461460132 -5.505383482542972, 74.8263338546599 -5.121496559358589 C74.88954049523306 -4.8804622449218, 74.95274713580622 -4.63942793048501, 75.11901491927283 -4.005376811213661 C75.19187132837703 -3.631274548671068, 75.26472773748124 -3.2571722861284758, 75.3395846014601 -2.872798110600833 C75.37292562115125 -2.614211745805249, 75.40626664084242 -2.3556253810096655, 75.48713653308556 -1.728414466338275 C75.516049892566 -1.278065553986686, 75.54496325204644 -0.8277166416350972, 75.56106439161238 -0.576928396289793 C75.56106439161238 -0.22944099486408914, 75.56106439161238 0.11804640656161469, 75.56106439161238 0.5769283962897886 C75.53371813022788 1.0028684908581313, 75.50637186884339 1.4288085854264743, 75.48713653308556 1.7284144663382628 C75.42889517305052 2.180122953712629, 75.3706538130155 2.6318314410869954, 75.3395846014601 2.8727981106008205 C75.25353710734056 3.314633806760336, 75.16748961322102 3.7564695029198516, 75.11901491927283 4.005376811213657 C75.02173139394537 4.376361056233847, 74.9244478686179 4.747345301254037, 74.8263338546599 5.121496559358577 C74.72574643918678 5.424449828335385, 74.62515902371366 5.7274030973121945, 74.46274409689569 6.216570979583534 C74.36388788139188 6.460747743132859, 74.26503166588806 6.704924506682184, 74.02973971428463 7.286100176203088 C73.92748513634622 7.498433995189662, 73.82523055840781 7.7107678141762355, 73.529100014714 8.325689224335031 C73.31407903547614 8.707480746207022, 73.09905805623826 9.089272268079013, 72.96288223409623 9.33106622958945 C72.8269290872402 9.539926771691912, 72.69097594038418 9.748787313794372, 72.33341308274521 10.298099882199049 C72.08905498363421 10.625517473526989, 71.84469688452323 10.952935064854927, 71.64327918442454 11.2228164334572 C71.39030250925796 11.519977230888468, 71.13732583409138 11.817138028319738, 70.89531644735568 12.101416024703695 C70.71151018848423 12.291211077762979, 70.52770392961277 12.481006130822262, 70.09259841086276 12.930288301759093 C69.84975779721168 13.15082972186646, 69.6069171835606 13.371371141973825, 69.2384236155402 13.706027250644409 C68.9369943424274 13.94640907458203, 68.63556506931461 14.186790898519654, 68.33630204884189 14.425445193623217 C68.11218531957326 14.581779322104166, 67.88806859030464 14.738113450585116, 67.38994072178988 15.085585888053126 C67.08786832616741 15.268703949453911, 66.78579593054492 15.451822010854695, 66.40322843607088 15.68373667422101 C66.03355911951546 15.876592919883471, 65.66388980296004 16.069449165545933, 65.38021980411605 16.217439622243543 C65.05446834188764 16.36164013149826, 64.72871687965925 16.505840640752975, 64.32511858782874 16.68450163222839 C63.9503353717984 16.822425320185623, 63.575552155768065 16.96034900814286, 63.24226042442518 17.08300344619203 C62.979818981208155 17.1608946889556, 62.71737753799112 17.238785931719168, 62.13609501037115 17.411307534702527 C61.856802798325006 17.475054159550048, 61.57751058627887 17.53880078439757, 61.011167816624706 17.668064825839174 C60.77661623690134 17.70598530627418, 60.542064657177974 17.74390578670919, 59.87210141032112 17.85222024881843 C59.508462783650955 17.887300029793867, 59.14482415698079 17.922379810769304, 58.72357645965283 17.963017069506055 C58.37466393514872 17.974206015049873, 58.0257514106446 17.98539496059369, 57.5703125 18 C57.5703125 18, 57.5703125 18, 57.5703125 18 C14.253306750844878 18, -29.063698998310244 18, -57.5703125 18 C-57.88590932536605 17.989879424082467, -58.20150615073211 17.97975884816493, -58.723576459652826 17.963017069506055 C-58.9718590449819 17.939065547102857, -59.22014163031097 17.915114024699655, -59.872101410321115 17.85222024881843 C-60.20529930750535 17.798351396789965, -60.53849720468959 17.744482544761503, -61.0111678166247 17.668064825839174 C-61.30554107030759 17.60087605165106, -61.59991432399048 17.533687277462942, -62.13609501037113 17.41130753470253 C-62.51239111235175 17.29962482685323, -62.88868721433237 17.187942119003925, -63.24226042442516 17.083003446192038 C-63.64343333194901 16.935368107821557, -64.04460623947286 16.787732769451075, -64.32511858782874 16.68450163222839 C-64.70586652832553 16.515955813456824, -65.08661446882232 16.347409994685254, -65.38021980411604 16.217439622243546 C-65.76522595887683 16.016582157913057, -66.15023211363761 15.815724693582569, -66.40322843607088 15.683736674221013 C-66.60813831228405 15.559519103076486, -66.81304818849725 15.435301531931959, -67.38994072178987 15.085585888053139 C-67.76418406164896 14.824529934900506, -68.13842740150805 14.563473981747872, -68.33630204884189 14.42544519362322 C-68.66988902143738 14.15941846010047, -69.00347599403287 13.89339172657772, -69.23842361554019 13.706027250644423 C-69.49491763017393 13.473086173013792, -69.75141164480769 13.240145095383163, -70.09259841086275 12.930288301759106 C-70.26612301748595 12.751109898785488, -70.43964762410917 12.57193149581187, -70.89531644735568 12.101416024703703 C-71.05472867384418 11.914161352657652, -71.2141409003327 11.7269066806116, -71.64327918442453 11.222816433457206 C-71.85357696250716 10.941036569348187, -72.0638747405898 10.659256705239168, -72.3334130827452 10.29809988219906 C-72.49815158725201 10.045017300794157, -72.66289009175884 9.791934719389257, -72.96288223409623 9.33106622958946 C-73.15100449992791 8.997036097160253, -73.33912676575959 8.663005964731045, -73.529100014714 8.325689224335036 C-73.6907422112602 7.9900357446179155, -73.8523844078064 7.6543822649007955, -74.02973971428463 7.286100176203095 C-74.17202500389506 6.934652759966394, -74.31431029350549 6.583205343729693, -74.46274409689568 6.2165709795835475 C-74.6041720492394 5.790612520608358, -74.74560000158313 5.364654061633167, -74.8263338546599 5.121496559358584 C-74.89556063227509 4.857504853236612, -74.96478740989029 4.593513147114639, -75.11901491927281 4.005376811213663 C-75.1810804842548 3.686683252592943, -75.2431460492368 3.3679896939722225, -75.3395846014601 2.8727981106008347 C-75.3701863229583 2.635457201654164, -75.40078804445652 2.3981162927074933, -75.48713653308556 1.7284144663382852 C-75.50822436970522 1.3999543891918635, -75.52931220632486 1.0714943120454419, -75.56106439161238 0.5769283962897952 C-75.56106439161238 0.1566133978758636, -75.56106439161238 -0.263701600538068, -75.56106439161238 -0.5769283962897864 C-75.53963609693483 -0.9106913825008128, -75.51820780225727 -1.2444543687118392, -75.48713653308556 -1.7284144663382603 C-75.43392691834615 -2.141097730830258, -75.38071730360674 -2.5537809953222554, -75.3395846014601 -2.8727981106008262 C-75.26617314623874 -3.2497504176459375, -75.1927616910174 -3.626702724691049, -75.11901491927283 -4.005376811213655 C-75.0035341527847 -4.4457550235137235, -74.88805338629655 -4.886133235813791, -74.8263338546599 -5.121496559358575 C-74.7034585904487 -5.491577277648018, -74.5805833262375 -5.861657995937461, -74.46274409689569 -6.2165709795835244 C-74.36039280332525 -6.4693806535301475, -74.25804150975482 -6.7221903274767705, -74.02973971428463 -7.286100176203086 C-73.87186136884543 -7.6139379385630175, -73.71398302340623 -7.941775700922949, -73.529100014714 -8.32568922433503 C-73.38543794494854 -8.580775776565648, -73.24177587518307 -8.835862328796269, -72.96288223409623 -9.331066229589455 C-72.81846886070235 -9.552923951542965, -72.6740554873085 -9.774781673496475, -72.33341308274521 -10.298099882199054 C-72.13091970067701 -10.569422566643834, -71.92842631860881 -10.840745251088615, -71.64327918442454 -11.2228164334572 C-71.35393610306305 -11.562695280912143, -71.06459302170155 -11.902574128367085, -70.89531644735568 -12.101416024703695 C-70.57879869174823 -12.428246593959404, -70.2622809361408 -12.75507716321511, -70.09259841086276 -12.930288301759086 C-69.89541608516035 -13.109364072803572, -69.69823375945793 -13.288439843848057, -69.2384236155402 -13.706027250644407 C-68.95932129937026 -13.928603920565376, -68.68021898320033 -14.151180590486344, -68.3363020488419 -14.425445193623215 C-68.01162113360085 -14.651928544885076, -67.68694021835981 -14.878411896146936, -67.38994072178988 -15.085585888053124 C-67.19165447030876 -15.205788178960336, -66.99336821882764 -15.325990469867548, -66.40322843607089 -15.683736674221008 C-66.08580098821837 -15.849338370443684, -65.76837354036584 -16.01494006666636, -65.38021980411605 -16.217439622243543 C-65.06907663750322 -16.355173472368943, -64.75793347089036 -16.49290732249434, -64.32511858782874 -16.684501632228386 C-63.90993694545095 -16.837292314520443, -63.49475530307316 -16.9900829968125, -63.24226042442518 -17.08300344619203 C-62.88830844696817 -17.18805453516943, -62.534356469511145 -17.29310562414683, -62.13609501037115 -17.411307534702523 C-61.766373451885364 -17.49569406776826, -61.39665189339958 -17.580080600834, -61.011167816624706 -17.668064825839174 C-60.77508929425391 -17.7062321705198, -60.53901077188312 -17.744399515200428, -59.87210141032112 -17.85222024881843 C-59.41894261620269 -17.895935932683848, -58.96578382208426 -17.939651616549266, -58.72357645965283 -17.963017069506055 C-58.452447962844964 -17.971711632679078, -58.181319466037095 -17.9804061958521, -57.57031250000001 -18 C-57.57031250000001 -18, -57.57031250000001 -18, -57.5703125 -18" stroke="none" stroke-width="0" fill="#eee" style=""/><path d="M-57.5703125 -18 C-15.289581321113815 -18, 26.99114985777237 -18, 57.5703125 -18 M-57.5703125 -18 C-19.36785552642418 -18, 18.83460144715164 -18, 57.5703125 -18 M57.5703125 -18 C57.5703125 -18, 57.5703125 -18, 57.5703125 -18 M57.5703125 -18 C57.5703125 -18, 57.5703125 -18, 57.5703125 -18 M57.5703125 -18 C57.86593873522029 -17.990519842038044, 58.16156497044058 -17.98103968407609, 58.72357645965283 -17.963017069506055 M57.5703125 -18 C57.952282181508565 -17.987750975772904, 58.33425186301714 -17.975501951545805, 58.72357645965283 -17.963017069506055 M58.72357645965283 -17.963017069506055 C59.16648013562751 -17.92029068455438, 59.60938381160219 -17.877564299602703, 59.87210141032111 -17.85222024881843 M58.72357645965283 -17.963017069506055 C59.05700528837583 -17.930851591405983, 59.39043411709883 -17.89868611330591, 59.87210141032111 -17.85222024881843 M59.87210141032111 -17.85222024881843 C60.115551869751954 -17.81286106652416, 60.3590023291828 -17.77350188422989, 61.0111678166247 -17.668064825839178 M59.87210141032111 -17.85222024881843 C60.324237617244194 -17.77912237325176, 60.77637382416727 -17.70602449768509, 61.0111678166247 -17.668064825839178 M61.0111678166247 -17.668064825839178 C61.338950347343534 -17.593250602183513, 61.66673287806237 -17.518436378527852, 62.13609501037113 -17.41130753470253 M61.0111678166247 -17.668064825839178 C61.42588275164798 -17.573408848187977, 61.84059768667127 -17.478752870536777, 62.13609501037113 -17.41130753470253 M62.13609501037113 -17.41130753470253 C62.41392479541623 -17.328849112859444, 62.691754580461335 -17.24639069101636, 63.24226042442517 -17.083003446192034 M62.13609501037113 -17.41130753470253 C62.434272497501745 -17.322810021687733, 62.73244998463236 -17.234312508672932, 63.24226042442517 -17.083003446192034 M63.24226042442517 -17.083003446192034 C63.57237675594936 -16.961517584629217, 63.902493087473545 -16.8400317230664, 64.32511858782874 -16.68450163222839 M63.24226042442517 -17.083003446192034 C63.610374743944746 -16.947533973797363, 63.978489063464316 -16.812064501402695, 64.32511858782874 -16.68450163222839 M64.32511858782874 -16.68450163222839 C64.61335710740853 -16.55690698990231, 64.90159562698832 -16.429312347576225, 65.38021980411605 -16.217439622243546 M64.32511858782874 -16.68450163222839 C64.58412384232857 -16.569847689179213, 64.84312909682838 -16.455193746130035, 65.38021980411605 -16.217439622243546 M65.38021980411605 -16.217439622243546 C65.64082724973163 -16.08148088479294, 65.90143469534719 -15.945522147342329, 66.40322843607088 -15.683736674221011 M65.38021980411605 -16.217439622243546 C65.59777387690532 -16.10394180181942, 65.81532794969458 -15.990443981395295, 66.40322843607088 -15.683736674221011 M66.40322843607088 -15.683736674221011 C66.79692129539073 -15.44507774930527, 67.19061415471057 -15.206418824389528, 67.38994072178987 -15.085585888053133 M66.40322843607088 -15.683736674221011 C66.68506070945867 -15.512888293863055, 66.96689298284646 -15.342039913505097, 67.38994072178987 -15.085585888053133 M67.38994072178987 -15.085585888053133 C67.66753527421426 -14.891947945156378, 67.94512982663863 -14.698310002259625, 68.33630204884189 -14.425445193623219 M67.38994072178987 -15.085585888053133 C67.61094723166484 -14.931421313981973, 67.8319537415398 -14.777256739910813, 68.33630204884189 -14.425445193623219 M68.33630204884189 -14.425445193623219 C68.58997413933857 -14.223148451949948, 68.84364622983524 -14.020851710276677, 69.23842361554019 -13.706027250644421 M68.33630204884189 -14.425445193623219 C68.59477460867627 -14.219320205398978, 68.85324716851066 -14.013195217174738, 69.23842361554019 -13.706027250644421 M69.23842361554019 -13.706027250644421 C69.450031955604 -13.51385015504833, 69.66164029566782 -13.321673059452237, 70.09259841086275 -12.930288301759097 M69.23842361554019 -13.706027250644421 C69.57269939300713 -13.402446834001356, 69.90697517047407 -13.09886641735829, 70.09259841086275 -12.930288301759097 M70.09259841086275 -12.930288301759097 C70.34997587517822 -12.66452493877058, 70.60735333949367 -12.398761575782064, 70.89531644735568 -12.101416024703706 M70.09259841086275 -12.930288301759097 C70.257942568858 -12.759556883621173, 70.42328672685325 -12.58882546548325, 70.89531644735568 -12.101416024703706 M70.89531644735568 -12.101416024703706 C71.18268522116786 -11.763856311237465, 71.47005399498003 -11.426296597771223, 71.64327918442453 -11.222816433457204 M70.89531644735568 -12.101416024703706 C71.11554526916288 -11.842722719234, 71.33577409097009 -11.584029413764295, 71.64327918442453 -11.222816433457204 M71.64327918442453 -11.222816433457204 C71.79792742572906 -11.015601878853758, 71.95257566703357 -10.808387324250312, 72.3334130827452 -10.298099882199057 M71.64327918442453 -11.222816433457204 C71.79925833407493 -11.013818582918518, 71.95523748372534 -10.80482073237983, 72.3334130827452 -10.298099882199057 M72.3334130827452 -10.298099882199057 C72.50555052429326 -10.03365054660602, 72.67768796584132 -9.769201211012986, 72.96288223409623 -9.331066229589453 M72.3334130827452 -10.298099882199057 C72.52338978119825 -10.006244657488732, 72.71336647965131 -9.714389432778406, 72.96288223409623 -9.331066229589453 M72.96288223409623 -9.331066229589453 C73.15818488515976 -8.984286596088259, 73.35348753622327 -8.637506962587064, 73.529100014714 -8.325689224335035 M72.96288223409623 -9.331066229589453 C73.16764453046409 -8.967490037957436, 73.37240682683196 -8.603913846325419, 73.529100014714 -8.325689224335035 M73.529100014714 -8.325689224335035 C73.64999239339815 -8.074653613314881, 73.7708847720823 -7.823618002294729, 74.02973971428463 -7.286100176203093 M73.529100014714 -8.325689224335035 C73.6816483318869 -8.008919379714397, 73.83419664905982 -7.692149535093762, 74.02973971428463 -7.286100176203093 M74.02973971428463 -7.286100176203093 C74.15116090238658 -6.986187494072299, 74.27258209048853 -6.686274811941505, 74.46274409689568 -6.216570979583546 M74.02973971428463 -7.286100176203093 C74.1436578198658 -7.004720252960881, 74.25757592544694 -6.7233403297186705, 74.46274409689568 -6.216570979583546 M74.46274409689568 -6.216570979583546 C74.59842453445458 -5.807923119398123, 74.73410497201348 -5.3992752592127005, 74.8263338546599 -5.121496559358589 M74.46274409689568 -6.216570979583546 C74.5793146059902 -5.8654791791791805, 74.69588511508475 -5.514387378774815, 74.8263338546599 -5.121496559358589 M74.8263338546599 -5.121496559358589 C74.93598916042208 -4.703333353577244, 75.04564446618426 -4.285170147795899, 75.11901491927283 -4.005376811213661 M74.8263338546599 -5.121496559358589 C74.91014588978386 -4.8018849450650976, 74.99395792490783 -4.482273330771607, 75.11901491927283 -4.005376811213661 M75.11901491927283 -4.005376811213661 C75.17827806882656 -3.701073063526375, 75.23754121838027 -3.396769315839089, 75.3395846014601 -2.872798110600833 M75.11901491927283 -4.005376811213661 C75.18599344282579 -3.6614562486851803, 75.25297196637875 -3.3175356861567, 75.3395846014601 -2.872798110600833 M75.3395846014601 -2.872798110600833 C75.38175806374709 -2.545709065195101, 75.42393152603407 -2.218620019789369, 75.48713653308556 -1.728414466338275 M75.3395846014601 -2.872798110600833 C75.39198066267873 -2.4664246065616795, 75.44437672389736 -2.060051102522526, 75.48713653308556 -1.728414466338275 M75.48713653308556 -1.728414466338275 C75.50194991127493 -1.4976841438951547, 75.51676328946431 -1.2669538214520342, 75.56106439161238 -0.576928396289793 M75.48713653308556 -1.728414466338275 C75.51525765285609 -1.2904053269529159, 75.54337877262662 -0.8523961875675569, 75.56106439161238 -0.576928396289793 M75.56106439161238 -0.576928396289793 C75.56106439161238 -0.2835786926064697, 75.56106439161238 0.00977101107685363, 75.56106439161238 0.5769283962897886 M75.56106439161238 -0.576928396289793 C75.56106439161238 -0.1356168032922579, 75.56106439161238 0.3056947897052772, 75.56106439161238 0.5769283962897886 M75.56106439161238 0.5769283962897886 C75.54420309901275 0.8395566387193181, 75.52734180641313 1.1021848811488475, 75.48713653308556 1.7284144663382628 M75.56106439161238 0.5769283962897886 C75.54611912138235 0.8097130437274831, 75.53117385115232 1.0424976911651775, 75.48713653308556 1.7284144663382628 M75.48713653308556 1.7284144663382628 C75.42818742261919 2.1856121262969577, 75.36923831215282 2.6428097862556523, 75.3395846014601 2.8727981106008205 M75.48713653308556 1.7284144663382628 C75.4306277519478 2.166685413921856, 75.37411897081002 2.604956361505449, 75.3395846014601 2.8727981106008205 M75.3395846014601 2.8727981106008205 C75.2584152655336 3.2895854954382124, 75.1772459296071 3.7063728802756044, 75.11901491927283 4.005376811213657 M75.3395846014601 2.8727981106008205 C75.2748752317474 3.205067047745451, 75.21016586203469 3.5373359848900807, 75.11901491927283 4.005376811213657 M75.11901491927283 4.005376811213657 C75.0365318005843 4.319920691182803, 74.95404868189576 4.634464571151949, 74.8263338546599 5.121496559358577 M75.11901491927283 4.005376811213657 C75.03685968822683 4.3186703134944455, 74.95470445718081 4.631963815775233, 74.8263338546599 5.121496559358577 M74.8263338546599 5.121496559358577 C74.7452925018374 5.365580201873867, 74.6642511490149 5.609663844389158, 74.46274409689569 6.216570979583534 M74.8263338546599 5.121496559358577 C74.70089927067318 5.499285541039652, 74.57546468668647 5.877074522720727, 74.46274409689569 6.216570979583534 M74.46274409689569 6.216570979583534 C74.31307699952137 6.5862516037145875, 74.16340990214705 6.95593222784564, 74.02973971428463 7.286100176203088 M74.46274409689569 6.216570979583534 C74.30361955268557 6.6096116802463065, 74.14449500847545 7.00265238090908, 74.02973971428463 7.286100176203088 M74.02973971428463 7.286100176203088 C73.92080909585385 7.512296936116447, 73.81187847742308 7.738493696029806, 73.529100014714 8.325689224335031 M74.02973971428463 7.286100176203088 C73.8641083257097 7.630037298522941, 73.69847693713474 7.973974420842794, 73.529100014714 8.325689224335031 M73.529100014714 8.325689224335031 C73.33790952098455 8.665167306088494, 73.1467190272551 9.004645387841958, 72.96288223409623 9.33106622958945 M73.529100014714 8.325689224335031 C73.31307475296975 8.709263951491732, 73.0970494912255 9.092838678648434, 72.96288223409623 9.33106622958945 M72.96288223409623 9.33106622958945 C72.76836637113935 9.629894829913972, 72.57385050818249 9.928723430238495, 72.33341308274521 10.298099882199049 M72.96288223409623 9.33106622958945 C72.75746325815383 9.646644939355525, 72.55204428221143 9.9622236491216, 72.33341308274521 10.298099882199049 M72.33341308274521 10.298099882199049 C72.19059492324004 10.489463204933983, 72.04777676373487 10.680826527668918, 71.64327918442454 11.2228164334572 M72.33341308274521 10.298099882199049 C72.1791174035166 10.504842035739843, 72.02482172428797 10.71158418928064, 71.64327918442454 11.2228164334572 M71.64327918442454 11.2228164334572 C71.35264468520064 11.564212253817086, 71.06201018597675 11.905608074176971, 70.89531644735568 12.101416024703695 M71.64327918442454 11.2228164334572 C71.3907929423192 11.519401140308307, 71.13830670021386 11.815985847159412, 70.89531644735568 12.101416024703695 M70.89531644735568 12.101416024703695 C70.65926529379185 12.345158220918492, 70.423214140228 12.588900417133289, 70.09259841086276 12.930288301759093 M70.89531644735568 12.101416024703695 C70.68268259909941 12.320977930591903, 70.47004875084315 12.54053983648011, 70.09259841086276 12.930288301759093 M70.09259841086276 12.930288301759093 C69.91902568969246 13.08792245464342, 69.74545296852216 13.245556607527748, 69.2384236155402 13.706027250644409 M70.09259841086276 12.930288301759093 C69.83054710034247 13.168276368475881, 69.5684957898222 13.40626443519267, 69.2384236155402 13.706027250644409 M69.2384236155402 13.706027250644409 C69.02378529629296 13.877195598478531, 68.80914697704571 14.048363946312653, 68.33630204884189 14.425445193623217 M69.2384236155402 13.706027250644409 C69.03327082636034 13.869631140670357, 68.82811803718046 14.033235030696305, 68.33630204884189 14.425445193623217 M68.33630204884189 14.425445193623217 C68.12355159872547 14.573850697805884, 67.91080114860904 14.722256201988552, 67.38994072178988 15.085585888053126 M68.33630204884189 14.425445193623217 C68.10460935893818 14.587063984285148, 67.87291666903448 14.748682774947078, 67.38994072178988 15.085585888053126 M67.38994072178988 15.085585888053126 C67.10169276745955 15.260323491901179, 66.81344481312921 15.43506109574923, 66.40322843607088 15.68373667422101 M67.38994072178988 15.085585888053126 C67.1630812697358 15.22310942106243, 66.93622181768171 15.360632954071736, 66.40322843607088 15.68373667422101 M66.40322843607088 15.68373667422101 C66.11541212559096 15.833890259043237, 65.82759581511104 15.984043843865464, 65.38021980411605 16.217439622243543 M66.40322843607088 15.68373667422101 C66.09574042363845 15.844152973351541, 65.788252411206 16.004569272482073, 65.38021980411605 16.217439622243543 M65.38021980411605 16.217439622243543 C65.07004601428339 16.3547443580239, 64.75987222445072 16.492049093804255, 64.32511858782874 16.68450163222839 M65.38021980411605 16.217439622243543 C65.10090208565069 16.341085290542434, 64.82158436718532 16.464730958841322, 64.32511858782874 16.68450163222839 M64.32511858782874 16.68450163222839 C63.909091820401656 16.837603328350838, 63.49306505297458 16.990705024473282, 63.24226042442518 17.08300344619203 M64.32511858782874 16.68450163222839 C63.97083224963199 16.814882279671803, 63.61654591143523 16.945262927115216, 63.24226042442518 17.08300344619203 M63.24226042442518 17.08300344619203 C62.88353279473535 17.18947192368422, 62.52480516504552 17.295940401176413, 62.13609501037115 17.411307534702527 M63.24226042442518 17.08300344619203 C62.92280577069976 17.177815910566043, 62.60335111697434 17.27262837494005, 62.13609501037115 17.411307534702527 M62.13609501037115 17.411307534702527 C61.77149304163571 17.494525554816192, 61.406891072900265 17.57774357492986, 61.011167816624706 17.668064825839174 M62.13609501037115 17.411307534702527 C61.80289089324062 17.4873592000775, 61.46968677611009 17.563410865452475, 61.011167816624706 17.668064825839174 M61.011167816624706 17.668064825839174 C60.59761617561949 17.734924648016023, 60.184064534614286 17.80178447019287, 59.87210141032112 17.85222024881843 M61.011167816624706 17.668064825839174 C60.74827132344034 17.710567892064468, 60.485374830255985 17.75307095828976, 59.87210141032112 17.85222024881843 M59.87210141032112 17.85222024881843 C59.52295098416489 17.8859023705149, 59.17380055800867 17.919584492211367, 58.72357645965283 17.963017069506055 M59.87210141032112 17.85222024881843 C59.47046155187383 17.890965962920237, 59.06882169342654 17.92971167702205, 58.72357645965283 17.963017069506055 M58.72357645965283 17.963017069506055 C58.26591293967194 17.97769344780384, 57.808249419691045 17.992369826101626, 57.5703125 18 M58.72357645965283 17.963017069506055 C58.35602284051545 17.97480379867207, 57.98846922137807 17.98659052783809, 57.5703125 18 M57.5703125 18 C57.5703125 18, 57.5703125 18, 57.5703125 18 M57.5703125 18 C57.5703125 18, 57.5703125 18, 57.5703125 18 M57.5703125 18 C16.802788120309998 18, -23.964736259380004 18, -57.5703125 18 M57.5703125 18 C23.524128747981074 18, -10.522055004037853 18, -57.5703125 18 M-57.5703125 18 C-57.88835705530096 17.98980093014767, -58.206401610601915 17.979601860295343, -58.723576459652826 17.963017069506055 M-57.5703125 18 C-57.813892768445704 17.992188854891175, -58.057473036891416 17.984377709782354, -58.723576459652826 17.963017069506055 M-58.723576459652826 17.963017069506055 C-59.18227749605661 17.91876673219289, -59.64097853246039 17.874516394879727, -59.872101410321115 17.85222024881843 M-58.723576459652826 17.963017069506055 C-59.128897403661426 17.9239162455073, -59.53421834767002 17.884815421508545, -59.872101410321115 17.85222024881843 M-59.872101410321115 17.85222024881843 C-60.10172974365151 17.815095720679892, -60.33135807698191 17.777971192541354, -61.0111678166247 17.668064825839174 M-59.872101410321115 17.85222024881843 C-60.11257378470714 17.813342540218812, -60.353046159093154 17.774464831619195, -61.0111678166247 17.668064825839174 M-61.0111678166247 17.668064825839174 C-61.280965211928695 17.60648533095358, -61.5507626072327 17.54490583606798, -62.13609501037113 17.41130753470253 M-61.0111678166247 17.668064825839174 C-61.38312304936905 17.583168471200008, -61.755078282113395 17.49827211656084, -62.13609501037113 17.41130753470253 M-62.13609501037113 17.41130753470253 C-62.38905505780104 17.336230320439718, -62.64201510523095 17.261153106176906, -63.24226042442516 17.083003446192038 M-62.13609501037113 17.41130753470253 C-62.47324780377587 17.31124235537113, -62.8104005971806 17.21117717603973, -63.24226042442516 17.083003446192038 M-63.24226042442516 17.083003446192038 C-63.53991427278184 16.97346407851477, -63.83756812113852 16.863924710837498, -64.32511858782874 16.68450163222839 M-63.24226042442516 17.083003446192038 C-63.46545882045294 17.00086437323046, -63.68865721648071 16.918725300268882, -64.32511858782874 16.68450163222839 M-64.32511858782874 16.68450163222839 C-64.6959728414545 16.52033545514883, -65.06682709508026 16.356169278069274, -65.38021980411604 16.217439622243546 M-64.32511858782874 16.68450163222839 C-64.7456711144055 16.498335503960313, -65.16622364098225 16.312169375692235, -65.38021980411604 16.217439622243546 M-65.38021980411604 16.217439622243546 C-65.59091893619623 16.107518019996544, -65.80161806827643 15.997596417749543, -66.40322843607088 15.683736674221013 M-65.38021980411604 16.217439622243546 C-65.70405574986955 16.048494616770764, -66.02789169562305 15.879549611297984, -66.40322843607088 15.683736674221013 M-66.40322843607088 15.683736674221013 C-66.65022878945318 15.534003608465468, -66.89722914283547 15.384270542709926, -67.38994072178987 15.085585888053139 M-66.40322843607088 15.683736674221013 C-66.65220909385181 15.53280313630146, -66.90118975163273 15.38186959838191, -67.38994072178987 15.085585888053139 M-67.38994072178987 15.085585888053139 C-67.5893657408691 14.9464756277134, -67.78879075994834 14.807365367373663, -68.33630204884189 14.42544519362322 M-67.38994072178987 15.085585888053139 C-67.74818197009223 14.8356923012511, -68.1064232183946 14.585798714449064, -68.33630204884189 14.42544519362322 M-68.33630204884189 14.42544519362322 C-68.64697177554483 14.17769435384626, -68.95764150224775 13.929943514069297, -69.23842361554019 13.706027250644423 M-68.33630204884189 14.42544519362322 C-68.52916324169483 14.271643524574884, -68.72202443454776 14.117841855526548, -69.23842361554019 13.706027250644423 M-69.23842361554019 13.706027250644423 C-69.54708932680529 13.425705218520642, -69.85575503807041 13.14538318639686, -70.09259841086275 12.930288301759106 M-69.23842361554019 13.706027250644423 C-69.44803803956262 13.51566097684099, -69.65765246358505 13.325294703037558, -70.09259841086275 12.930288301759106 M-70.09259841086275 12.930288301759106 C-70.3783052928487 12.635272489137371, -70.66401217483462 12.340256676515637, -70.89531644735568 12.101416024703703 M-70.09259841086275 12.930288301759106 C-70.33607312719279 12.678880667502368, -70.57954784352285 12.427473033245628, -70.89531644735568 12.101416024703703 M-70.89531644735568 12.101416024703703 C-71.11582201974498 11.842397632252718, -71.33632759213428 11.583379239801735, -71.64327918442453 11.222816433457206 M-70.89531644735568 12.101416024703703 C-71.0551161194593 11.913706236991864, -71.21491579156292 11.725996449280023, -71.64327918442453 11.222816433457206 M-71.64327918442453 11.222816433457206 C-71.89524105627267 10.885210479379438, -72.1472029281208 10.54760452530167, -72.3334130827452 10.29809988219906 M-71.64327918442453 11.222816433457206 C-71.90035058574654 10.878364175372159, -72.15742198706855 10.533911917287114, -72.3334130827452 10.29809988219906 M-72.3334130827452 10.29809988219906 C-72.46870902237362 10.09024898688306, -72.60400496200202 9.882398091567062, -72.96288223409623 9.33106622958946 M-72.3334130827452 10.29809988219906 C-72.54412909815971 9.974383497349562, -72.75484511357422 9.650667112500065, -72.96288223409623 9.33106622958946 M-72.96288223409623 9.33106622958946 C-73.17473858147898 8.954893832029969, -73.38659492886171 8.578721434470479, -73.529100014714 8.325689224335036 M-72.96288223409623 9.33106622958946 C-73.18024042846656 8.945124745581072, -73.39759862283691 8.559183261572684, -73.529100014714 8.325689224335036 M-73.529100014714 8.325689224335036 C-73.72916572719332 7.910248491651246, -73.92923143967265 7.494807758967456, -74.02973971428463 7.286100176203095 M-73.529100014714 8.325689224335036 C-73.69272012615764 7.985928562012771, -73.85634023760129 7.646167899690505, -74.02973971428463 7.286100176203095 M-74.02973971428463 7.286100176203095 C-74.16065928766548 6.962726298794613, -74.29157886104635 6.639352421386132, -74.46274409689568 6.2165709795835475 M-74.02973971428463 7.286100176203095 C-74.17980585350011 6.915433911009396, -74.32987199271561 6.544767645815698, -74.46274409689568 6.2165709795835475 M-74.46274409689568 6.2165709795835475 C-74.60603149514668 5.785012165798111, -74.74931889339769 5.353453352012676, -74.8263338546599 5.121496559358584 M-74.46274409689568 6.2165709795835475 C-74.57810829325324 5.8691124009431075, -74.6934724896108 5.521653822302667, -74.8263338546599 5.121496559358584 M-74.8263338546599 5.121496559358584 C-74.91612848482895 4.7790707172851015, -75.00592311499798 4.436644875211619, -75.11901491927281 4.005376811213663 M-74.8263338546599 5.121496559358584 C-74.92677427254051 4.738473714827288, -75.02721469042113 4.355450870295992, -75.11901491927281 4.005376811213663 M-75.11901491927281 4.005376811213663 C-75.19091161166763 3.636202491137633, -75.26280830406245 3.267028171061603, -75.3395846014601 2.8727981106008347 M-75.11901491927281 4.005376811213663 C-75.18928965310398 3.644530905560903, -75.25956438693514 3.283684999908143, -75.3395846014601 2.8727981106008347 M-75.3395846014601 2.8727981106008347 C-75.37144613749437 2.625686328890954, -75.40330767352864 2.3785745471810738, -75.48713653308556 1.7284144663382852 M-75.3395846014601 2.8727981106008347 C-75.37761529840296 2.5778395351226058, -75.41564599534581 2.282880959644377, -75.48713653308556 1.7284144663382852 M-75.48713653308556 1.7284144663382852 C-75.5133799754193 1.3196516686648685, -75.53962341775305 0.9108888709914519, -75.56106439161238 0.5769283962897952 M-75.48713653308556 1.7284144663382852 C-75.50382518264121 1.4684752786736959, -75.52051383219684 1.2085360910091067, -75.56106439161238 0.5769283962897952 M-75.56106439161238 0.5769283962897952 C-75.56106439161238 0.3110137703924376, -75.56106439161238 0.04509914449508001, -75.56106439161238 -0.5769283962897864 M-75.56106439161238 0.5769283962897952 C-75.56106439161238 0.12132356095126873, -75.56106439161238 -0.33428127438725774, -75.56106439161238 -0.5769283962897864 M-75.56106439161238 -0.5769283962897864 C-75.54557696690297 -0.8181575373629896, -75.53008954219356 -1.0593866784361927, -75.48713653308556 -1.7284144663382603 M-75.56106439161238 -0.5769283962897864 C-75.53855505707547 -0.9275294509099943, -75.51604572253855 -1.2781305055302021, -75.48713653308556 -1.7284144663382603 M-75.48713653308556 -1.7284144663382603 C-75.44823773035786 -2.0301058988569194, -75.40933892763016 -2.3317973313755784, -75.3395846014601 -2.8727981106008262 M-75.48713653308556 -1.7284144663382603 C-75.45171055549537 -2.003171352877251, -75.41628457790519 -2.2779282394162417, -75.3395846014601 -2.8727981106008262 M-75.3395846014601 -2.8727981106008262 C-75.28248389212041 -3.1659981848209524, -75.22538318278072 -3.4591982590410786, -75.11901491927283 -4.005376811213655 M-75.3395846014601 -2.8727981106008262 C-75.26426414782385 -3.2595527210394715, -75.1889436941876 -3.6463073314781163, -75.11901491927283 -4.005376811213655 M-75.11901491927283 -4.005376811213655 C-75.0071831591765 -4.431839780652344, -74.89535139908018 -4.858302750091032, -74.8263338546599 -5.121496559358575 M-75.11901491927283 -4.005376811213655 C-75.00619752066623 -4.435598447470467, -74.89338012205963 -4.865820083727278, -74.8263338546599 -5.121496559358575 M-74.8263338546599 -5.121496559358575 C-74.69147119008565 -5.527681417608664, -74.5566085255114 -5.933866275858754, -74.46274409689569 -6.2165709795835244 M-74.8263338546599 -5.121496559358575 C-74.69866020952966 -5.506029236457996, -74.57098656439942 -5.890561913557416, -74.46274409689569 -6.2165709795835244 M-74.46274409689569 -6.2165709795835244 C-74.36199979583715 -6.465411350956695, -74.2612554947786 -6.714251722329866, -74.02973971428463 -7.286100176203086 M-74.46274409689569 -6.2165709795835244 C-74.368826267595 -6.448549833733932, -74.27490843829432 -6.680528687884341, -74.02973971428463 -7.286100176203086 M-74.02973971428463 -7.286100176203086 C-73.897616922254 -7.5604559808295555, -73.76549413022337 -7.834811785456024, -73.529100014714 -8.32568922433503 M-74.02973971428463 -7.286100176203086 C-73.87815953311348 -7.600859665701291, -73.72657935194232 -7.915619155199497, -73.529100014714 -8.32568922433503 M-73.529100014714 -8.32568922433503 C-73.40434255896 -8.547208720088548, -73.27958510320599 -8.768728215842067, -72.96288223409623 -9.331066229589455 M-73.529100014714 -8.32568922433503 C-73.31024301565719 -8.714291987834677, -73.09138601660038 -9.102894751334325, -72.96288223409623 -9.331066229589455 M-72.96288223409623 -9.331066229589455 C-72.82716205934975 -9.539568863969885, -72.69144188460326 -9.748071498350313, -72.33341308274521 -10.298099882199054 M-72.96288223409623 -9.331066229589455 C-72.82220432180688 -9.54718528017466, -72.68152640951755 -9.763304330759864, -72.33341308274521 -10.298099882199054 M-72.33341308274521 -10.298099882199054 C-72.13255619553058 -10.567229812627787, -71.93169930831597 -10.83635974305652, -71.64327918442454 -11.2228164334572 M-72.33341308274521 -10.298099882199054 C-72.17576488997595 -10.509334098464048, -72.01811669720668 -10.720568314729045, -71.64327918442454 -11.2228164334572 M-71.64327918442454 -11.2228164334572 C-71.41826213106462 -11.487134268166807, -71.19324507770472 -11.751452102876414, -70.89531644735568 -12.101416024703695 M-71.64327918442454 -11.2228164334572 C-71.37731433052579 -11.535233884675572, -71.11134947662705 -11.847651335893945, -70.89531644735568 -12.101416024703695 M-70.89531644735568 -12.101416024703695 C-70.70027010356296 -12.302817388272324, -70.50522375977023 -12.50421875184095, -70.09259841086276 -12.930288301759086 M-70.89531644735568 -12.101416024703695 C-70.60633946299222 -12.39980848651061, -70.31736247862878 -12.698200948317524, -70.09259841086276 -12.930288301759086 M-70.09259841086276 -12.930288301759086 C-69.90460240072797 -13.10102130406165, -69.71660639059317 -13.271754306364214, -69.2384236155402 -13.706027250644407 M-70.09259841086276 -12.930288301759086 C-69.89421420429744 -13.110455589203234, -69.69582999773213 -13.290622876647383, -69.2384236155402 -13.706027250644407 M-69.2384236155402 -13.706027250644407 C-68.90616089239725 -13.970997930468508, -68.57389816925432 -14.235968610292609, -68.3363020488419 -14.425445193623215 M-69.2384236155402 -13.706027250644407 C-68.99490929334594 -13.900223442406071, -68.75139497115167 -14.094419634167734, -68.3363020488419 -14.425445193623215 M-68.3363020488419 -14.425445193623215 C-68.10037420087235 -14.590018247214838, -67.8644463529028 -14.75459130080646, -67.38994072178988 -15.085585888053124 M-68.3363020488419 -14.425445193623215 C-68.06112267978742 -14.61739840915273, -67.78594331073293 -14.809351624682245, -67.38994072178988 -15.085585888053124 M-67.38994072178988 -15.085585888053124 C-67.12494773334674 -15.246226194919013, -66.8599547449036 -15.4068665017849, -66.40322843607089 -15.683736674221008 M-67.38994072178988 -15.085585888053124 C-67.03504625658144 -15.300724998453859, -66.680151791373 -15.515864108854592, -66.40322843607089 -15.683736674221008 M-66.40322843607089 -15.683736674221008 C-66.08320318838057 -15.850693640955091, -65.76317794069026 -16.017650607689177, -65.38021980411605 -16.217439622243543 M-66.40322843607089 -15.683736674221008 C-66.09050929479038 -15.846882049920879, -65.77779015350987 -16.01002742562075, -65.38021980411605 -16.217439622243543 M-65.38021980411605 -16.217439622243543 C-65.02557963944813 -16.374428303115327, -64.6709394747802 -16.53141698398711, -64.32511858782874 -16.684501632228386 M-65.38021980411605 -16.217439622243543 C-65.10825803153732 -16.337829031504803, -64.83629625895857 -16.458218440766064, -64.32511858782874 -16.684501632228386 M-64.32511858782874 -16.684501632228386 C-63.99219439677685 -16.807020812052965, -63.65927020572497 -16.929539991877547, -63.24226042442518 -17.08300344619203 M-64.32511858782874 -16.684501632228386 C-63.98232916827575 -16.810651307334545, -63.639539748722754 -16.936800982440708, -63.24226042442518 -17.08300344619203 M-63.24226042442518 -17.08300344619203 C-62.99811516993777 -17.155464476179304, -62.753969915450355 -17.227925506166574, -62.13609501037115 -17.411307534702523 M-63.24226042442518 -17.08300344619203 C-62.861737326402526 -17.195940704278655, -62.48121422837986 -17.30887796236528, -62.13609501037115 -17.411307534702523 M-62.13609501037115 -17.411307534702523 C-61.694919690835704 -17.512002922448477, -61.25374437130026 -17.612698310194432, -61.011167816624706 -17.668064825839174 M-62.13609501037115 -17.411307534702523 C-61.72501792291781 -17.505133197385057, -61.313940835464464 -17.598958860067594, -61.011167816624706 -17.668064825839174 M-61.011167816624706 -17.668064825839174 C-60.597170748449386 -17.734996661226546, -60.18317368027406 -17.80192849661392, -59.87210141032112 -17.85222024881843 M-61.011167816624706 -17.668064825839174 C-60.740635836728494 -17.711802338341958, -60.47010385683228 -17.755539850844738, -59.87210141032112 -17.85222024881843 M-59.87210141032112 -17.85222024881843 C-59.626799001415286 -17.875884277186266, -59.38149659250944 -17.899548305554102, -58.72357645965283 -17.963017069506055 M-59.87210141032112 -17.85222024881843 C-59.474624199145474 -17.89056439734426, -59.077146987969826 -17.928908545870087, -58.72357645965283 -17.963017069506055 M-58.72357645965283 -17.963017069506055 C-58.422403383142274 -17.972675103871918, -58.121230306631716 -17.98233313823778, -57.57031250000001 -18 M-58.72357645965283 -17.963017069506055 C-58.41361385199414 -17.972956967028054, -58.10365124433545 -17.982896864550053, -57.57031250000001 -18 M-57.57031250000001 -18 C-57.57031250000001 -18, -57.57031250000001 -18, -57.5703125 -18 M-57.57031250000001 -18 C-57.57031250000001 -18, -57.5703125 -18, -57.5703125 -18" stroke="#999" stroke-width="1.3" fill="none" stroke-dasharray="0 0" style=""/></g><g class="label" style="" transform="translate(-63.5703125, -10.5)"><rect/><foreignObject width="127.140625" height="21"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>clean docs baseline</p></span></div></foreignObject></g></g></g></g></g><defs><filter id="dg1-drop-shadow" height="130%" width="130%"><feDropShadow dx="4" dy="4" stdDeviation="0" flood-opacity="0.06" flood-color="#000000"/></filter></defs><defs><filter id="dg1-drop-shadow-small" height="150%" width="150%"><feDropShadow dx="2" dy="2" stdDeviation="0" flood-opacity="0.06" flood-color="#000000"/></filter></defs><linearGradient id="dg1-gradient" gradientUnits="objectBoundingBox" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="hsl(0, 0%, 83.3333333333%)" stop-opacity="1"/><stop offset="100%" stop-color="hsl(0, 0%, 88.9215686275%)" stop-opacity="1"/></linearGradient></svg></div>
- <figcaption>The campaign cleans up the past; the contracts guard the future.</figcaption>
-</figure>
-
-<h2><span class="pill campaign">campaign</span>Part 1 — the Drift Hunt</h2>
-
-<p>A campaign, not a feature: sweep every hand-written page under <code>docs/</code> (plus <code>CONTRIBUTING.md</code>, the agent instruction files, and friends) for statements the code can contradict — commands, flags, config keys, defaults, paths, API names, behaviors, and code snippets that should run. Editorial quality, tone, and structure were explicitly out of scope: a drift hunt, not a rewrite.</p>
-
-<figure>
- <div class="diagram"><svg id="dg2" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="flowchart" style="max-width: 374.484px; background-color: transparent;" viewBox="-14.2421875 0 374.484375 1210" role="graphics-document document" aria-roledescription="flowchart-v2"><style>#dg2{font-family:ui-sans-serif,system-ui,sans-serif;font-size:14px;fill:#000000;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#dg2 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#dg2 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#dg2 .error-icon{fill:#552222;}#dg2 .error-text{fill:#552222;stroke:#552222;}#dg2 .edge-thickness-normal{stroke-width:1px;}#dg2 .edge-thickness-thick{stroke-width:3.5px;}#dg2 .edge-pattern-solid{stroke-dasharray:0;}#dg2 .edge-thickness-invisible{stroke-width:0;fill:none;}#dg2 .edge-pattern-dashed{stroke-dasharray:3;}#dg2 .edge-pattern-dotted{stroke-dasharray:2;}#dg2 .marker{fill:#666;stroke:#666;}#dg2 .marker.cross{stroke:#666;}#dg2 svg{font-family:ui-sans-serif,system-ui,sans-serif;font-size:14px;}#dg2 p{margin:0;}#dg2 .label{font-family:ui-sans-serif,system-ui,sans-serif;color:#000000;}#dg2 .cluster-label text{fill:#333;}#dg2 .cluster-label span{color:#333;}#dg2 .cluster-label span p{background-color:transparent;}#dg2 .label text,#dg2 span{fill:#000000;color:#000000;}#dg2 .node rect,#dg2 .node circle,#dg2 .node ellipse,#dg2 .node polygon,#dg2 .node path{fill:#eee;stroke:#999;stroke-width:1px;}#dg2 .rough-node .label text,#dg2 .node .label text,#dg2 .image-shape .label,#dg2 .icon-shape .label{text-anchor:middle;}#dg2 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#dg2 .rough-node .label,#dg2 .node .label,#dg2 .image-shape .label,#dg2 .icon-shape .label{text-align:center;}#dg2 .node.clickable{cursor:pointer;}#dg2 .root .anchor path{fill:#666!important;stroke-width:0;stroke:#666;}#dg2 .arrowheadPath{fill:#333333;}#dg2 .edgePath .path{stroke:#666;stroke-width:1px;}#dg2 .flowchart-link{stroke:#666;fill:none;}#dg2 .edgeLabel{background-color:white;text-align:center;}#dg2 .edgeLabel p{background-color:white;}#dg2 .edgeLabel rect{opacity:0.5;background-color:white;fill:white;}#dg2 .labelBkg{background-color:rgba(255, 255, 255, 0.5);}#dg2 .cluster rect{fill:hsl(0, 0%, 98.9215686275%);stroke:#707070;stroke-width:1px;}#dg2 .cluster text{fill:#333;}#dg2 .cluster span{color:#333;}#dg2 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:ui-sans-serif,system-ui,sans-serif;font-size:12px;background:hsl(-160, 0%, 93.3333333333%);border:1px solid #707070;border-radius:2px;pointer-events:none;z-index:100;}#dg2 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#000000;}#dg2 rect.text{fill:none;stroke-width:0;}#dg2 .icon-shape,#dg2 .image-shape{background-color:white;text-align:center;}#dg2 .icon-shape p,#dg2 .image-shape p{background-color:white;padding:2px;}#dg2 .icon-shape .label rect,#dg2 .image-shape .label rect{opacity:0.5;background-color:white;fill:white;}#dg2 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#dg2 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#dg2 .node .neo-node{stroke:#999;}#dg2 [data-look="neo"].node rect,#dg2 [data-look="neo"].cluster rect,#dg2 [data-look="neo"].node polygon{stroke:url(#dg2-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg2 [data-look="neo"].node path{stroke:url(#dg2-gradient);stroke-width:1px;}#dg2 [data-look="neo"].node .outer-path{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg2 [data-look="neo"].node .neo-line path{stroke:#999;filter:none;}#dg2 [data-look="neo"].node circle{stroke:url(#dg2-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg2 [data-look="neo"].node circle .state-start{fill:#000000;}#dg2 [data-look="neo"].icon-shape .icon{fill:url(#dg2-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg2 [data-look="neo"].icon-shape .icon-neo path{stroke:url(#dg2-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg2 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}</style><g><marker id="dg2_flowchart-v2-pointEnd" class="marker flowchart-v2" viewBox="0 0 10 10" refX="5" refY="5" markerUnits="userSpaceOnUse" markerWidth="8" markerHeight="8" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="dg2_flowchart-v2-pointStart" class="marker flowchart-v2" viewBox="0 0 10 10" refX="4.5" refY="5" markerUnits="userSpaceOnUse" markerWidth="8" markerHeight="8" orient="auto"><path d="M 0 5 L 10 10 L 10 0 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="dg2_flowchart-v2-pointEnd-margin" class="marker flowchart-v2" viewBox="0 0 11.5 14" refX="11.5" refY="7" markerUnits="userSpaceOnUse" markerWidth="10.5" markerHeight="14" orient="auto"><path d="M 0 0 L 11.5 7 L 0 14 z" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="dg2_flowchart-v2-pointStart-margin" class="marker flowchart-v2" viewBox="0 0 11.5 14" refX="1" refY="7" markerUnits="userSpaceOnUse" markerWidth="11.5" markerHeight="14" orient="auto"><polygon points="0,7 11.5,14 11.5,0" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="dg2_flowchart-v2-circleEnd" class="marker flowchart-v2" viewBox="0 0 10 10" refX="11" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="dg2_flowchart-v2-circleStart" class="marker flowchart-v2" viewBox="0 0 10 10" refX="-1" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="dg2_flowchart-v2-circleEnd-margin" class="marker flowchart-v2" viewBox="0 0 10 10" refY="5" refX="12.25" markerUnits="userSpaceOnUse" markerWidth="14" markerHeight="14" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="dg2_flowchart-v2-circleStart-margin" class="marker flowchart-v2" viewBox="0 0 10 10" refX="-2" refY="5" markerUnits="userSpaceOnUse" markerWidth="14" markerHeight="14" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="dg2_flowchart-v2-crossEnd" class="marker cross flowchart-v2" viewBox="0 0 11 11" refX="12" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"/></marker><marker id="dg2_flowchart-v2-crossStart" class="marker cross flowchart-v2" viewBox="0 0 11 11" refX="-1" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"/></marker><marker id="dg2_flowchart-v2-crossEnd-margin" class="marker cross flowchart-v2" viewBox="0 0 15 15" refX="17.7" refY="7.5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 1,1 L 14,14 M 1,14 L 14,1" class="arrowMarkerPath" style="stroke-width: 2.5;"/></marker><marker id="dg2_flowchart-v2-crossStart-margin" class="marker cross flowchart-v2" viewBox="0 0 15 15" refX="-3.5" refY="7.5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 1,1 L 14,14 M 1,14 L 14,1" class="arrowMarkerPath" style="stroke-width: 2.5; stroke-dasharray: 1, 0;"/></marker><g class="root"><g class="clusters"><g class="cluster" id="dg2-S2" data-look="classic"><rect style="" x="8" y="773" width="330" height="307"/><g class="cluster-label" transform="translate(28.7578125, 773)"><foreignObject width="288.484375" height="21"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5;"><span class="nodeLabel"><p>Stage 2 — fix batches (4 parts, one PR each)</p></span></div></foreignObject></g></g><g class="cluster" id="dg2-S1" data-look="classic"><rect style="" x="-6.2421875" y="172" width="358.484375" height="429"/><g class="cluster-label" transform="translate(-2.2421875, 172)"><foreignObject width="350.484375" height="21"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5;"><span class="nodeLabel"><p>Stage 1 — semantic sweep (4 parts, one session each)</p></span></div></foreignObject></g></g></g><g class="edgePaths"><path d="M173,290L173,294.167C173,298.333,173,306.667,173,314.333C173,322,173,329,173,332.5L173,336" id="dg2-L_R_V_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_R_V_0" data-points="W3sieCI6MTczLCJ5IjoyOTB9LHsieCI6MTczLCJ5IjozMTV9LHsieCI6MTczLCJ5IjozNDB9XQ==" data-look="classic" marker-end="url(#dg2_flowchart-v2-pointEnd)"/><path d="M173,433L173,437.167C173,441.333,173,449.667,173,457.333C173,465,173,472,173,475.5L173,479" id="dg2-L_V_FN_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_V_FN_0" data-points="W3sieCI6MTczLCJ5Ijo0MzN9LHsieCI6MTczLCJ5Ijo0NTh9LHsieCI6MTczLCJ5Ijo0ODN9XQ==" data-look="classic" marker-end="url(#dg2_flowchart-v2-pointEnd)"/><path d="M173,576L173,580.167C173,584.333,173,592.667,173,601C173,609.333,173,617.667,173,625.333C173,633,173,640,173,643.5L173,647" id="dg2-L_FN_CP_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_FN_CP_0" data-points="W3sieCI6MTczLCJ5Ijo1NzZ9LHsieCI6MTczLCJ5Ijo2MDF9LHsieCI6MTczLCJ5Ijo2MjZ9LHsieCI6MTczLCJ5Ijo2NTF9XQ==" data-look="classic" marker-end="url(#dg2_flowchart-v2-pointEnd)"/><path d="M173,912L173,916.167C173,920.333,173,928.667,173,936.333C173,944,173,951,173,954.5L173,958" id="dg2-L_FIX_BR_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_FIX_BR_0" data-points="W3sieCI6MTczLCJ5Ijo5MTJ9LHsieCI6MTczLCJ5Ijo5Mzd9LHsieCI6MTczLCJ5Ijo5NjJ9XQ==" data-look="classic" marker-end="url(#dg2_flowchart-v2-pointEnd)"/><path d="M173,1055L173,1059.167C173,1063.333,173,1071.667,173,1080C173,1088.333,173,1096.667,173,1104.333C173,1112,173,1119,173,1122.5L173,1126" id="dg2-L_BR_PR_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_BR_PR_0" data-points="W3sieCI6MTczLCJ5IjoxMDU1fSx7IngiOjE3MywieSI6MTA4MH0seyJ4IjoxNzMsInkiOjExMDV9LHsieCI6MTczLCJ5IjoxMTMwfV0=" data-look="classic" marker-end="url(#dg2_flowchart-v2-pointEnd)"/><path d="M173,122L173,126.167C173,130.333,173,138.667,173,146.333C173,154,173,161,173,164.5L173,168" id="dg2-L_S0_S1_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_S0_S1_0" data-points="W3sieCI6MTczLCJ5IjoxMjJ9LHsieCI6MTczLCJ5IjoxNDd9LHsieCI6MTczLCJ5IjoxNzJ9LHsieCI6MTczLCJ5IjoxOTd9XQ==" data-look="classic" marker-end="url(#dg2_flowchart-v2-pointEnd)"/><path d="M173,723L173,727.167C173,731.333,173,739.667,173,747.333C173,755,173,762,173,765.5L173,769" id="dg2-L_CP_S2_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_CP_S2_0" data-points="W3sieCI6MTczLCJ5Ijo3MjN9LHsieCI6MTczLCJ5Ijo3NDh9LHsieCI6MTczLCJ5Ijo3NzN9LHsieCI6MTczLCJ5Ijo3OTh9XQ==" data-look="classic" marker-end="url(#dg2_flowchart-v2-pointEnd)"/></g><g class="edgeLabels"><g class="edgeLabel"><g class="label" data-id="L_R_V_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_V_FN_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_FN_CP_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_FIX_BR_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_BR_PR_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_S0_S1_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_CP_S2_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g></g><g class="nodes"><g class="node default" id="dg2-flowchart-S0-0" data-look="classic" transform="translate(173, 65)"><rect class="basic label-container" style="" x="-130" y="-57" width="260" height="114"/><g class="label" style="" transform="translate(-100, -42)"><rect/><foreignObject width="200" height="84"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;"><span class="nodeLabel"><p>Stage 0 — mechanical pre-screen<br />paths, config keys, CLI flags, TOML/Python parse</p></span></div></foreignObject></g></g><g class="node default" id="dg2-flowchart-R-2" data-look="classic" transform="translate(173, 243.5)"><rect class="basic label-container" style="" x="-121.046875" y="-46.5" width="242.09375" height="93"/><g class="label" style="" transform="translate(-91.046875, -31.5)"><rect/><foreignObject width="182.09375" height="63"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>review agent per page:<br />extract checkable claims,<br />verify each against the code</p></span></div></foreignObject></g></g><g class="node default" id="dg2-flowchart-V-3" data-look="classic" transform="translate(173, 386.5)"><rect class="basic label-container" style="" x="-106.9609375" y="-46.5" width="213.921875" height="93"/><g class="label" style="" transform="translate(-76.9609375, -31.5)"><rect/><foreignObject width="153.921875" height="63"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>adversarial verifier:<br />independent agent tries<br />to REFUTE each finding</p></span></div></foreignObject></g></g><g class="node default" id="dg2-flowchart-FN-5" data-look="classic" transform="translate(173, 529.5)"><rect class="basic label-container" style="" x="-119.4140625" y="-46.5" width="238.828125" height="93"/><g class="label" style="" transform="translate(-89.4140625, -31.5)"><rect/><foreignObject width="178.828125" height="63"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>false-negative spot-check:<br />hand-verify CLEAN verdicts<br />on high-risk pages</p></span></div></foreignObject></g></g><g class="node default" id="dg2-flowchart-CP-7" data-look="classic" transform="translate(173, 687)"><rect class="basic label-container" style="" x="-113.4375" y="-36" width="226.875" height="72"/><g class="label" style="" transform="translate(-83.4375, -21)"><rect/><foreignObject width="166.875" height="42"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>Checkpoint — Louis rules:<br />scope, severity, fix shape</p></span></div></foreignObject></g></g><g class="node default" id="dg2-flowchart-FIX-10" data-look="classic" transform="translate(173, 855)"><rect class="basic label-container" style="" x="-130" y="-57" width="260" height="114"/><g class="label" style="" transform="translate(-100, -42)"><rect/><foreignObject width="200" height="84"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;"><span class="nodeLabel"><p>fix agents re-verify against code,<br />re-validate every example<br />against the real parser</p></span></div></foreignObject></g></g><g class="node default" id="dg2-flowchart-BR-11" data-look="classic" transform="translate(173, 1008.5)"><rect class="basic label-container" style="" x="-104.296875" y="-46.5" width="208.59375" height="93"/><g class="label" style="" transform="translate(-74.296875, -31.5)"><rect/><foreignObject width="148.59375" height="63"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>blind post-fix review:<br />2 no-context reviewers<br />on the commit SHA</p></span></div></foreignObject></g></g><g class="node default" id="dg2-flowchart-PR-13" data-look="classic" transform="translate(173, 1166)"><rect class="basic label-container" style="" x="-83.046875" y="-36" width="166.09375" height="72"/><g class="label" style="" transform="translate(-53.046875, -21)"><rect/><foreignObject width="106.09375" height="42"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>4 docs-only PRs<br />merged to dev</p></span></div></foreignObject></g></g></g></g></g><defs><filter id="dg2-drop-shadow" height="130%" width="130%"><feDropShadow dx="4" dy="4" stdDeviation="0" flood-opacity="0.06" flood-color="#000000"/></filter></defs><defs><filter id="dg2-drop-shadow-small" height="150%" width="150%"><feDropShadow dx="2" dy="2" stdDeviation="0" flood-opacity="0.06" flood-color="#000000"/></filter></defs><linearGradient id="dg2-gradient" gradientUnits="objectBoundingBox" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="hsl(0, 0%, 83.3333333333%)" stop-opacity="1"/><stop offset="100%" stop-color="hsl(0, 0%, 88.9215686275%)" stop-opacity="1"/></linearGradient></svg></div>
- <figcaption>The campaign pipeline. Every finding needed <code>file:line</code> evidence on both sides — the doc claim and the contradicting code — and had to survive an independent refutation attempt before anyone was allowed to fix it.</figcaption>
-</figure>
-
-<h3>The scoreboard</h3>
-
-<table>
- <thead>
- <tr><th>Section</th><th class="num">Pages</th><th class="num">Claims checked</th><th class="num">Confirmed drift</th><th class="num">Density (drift/page)</th></tr>
- </thead>
- <tbody>
- <tr><td>building-methods (the language guide)</td><td class="num">35</td><td class="num">452</td><td class="num">44</td><td class="num">1.26</td></tr>
- <tr><td>under-the-hood + advanced (internals)</td><td class="num">26</td><td class="num">435</td><td class="num">42</td><td class="num">1.62</td></tr>
- <tr><td>features + reliability (capability pages)</td><td class="num">25</td><td class="num">308</td><td class="num">10</td><td class="num">0.40</td></tr>
- <tr><td>the tail (get-started, contribute, tools, setup, root)</td><td class="num">18</td><td class="num">244</td><td class="num">13</td><td class="num">0.72</td></tr>
- <tr><th>Total (Stage 1)</th><th class="num">104</th><th class="num">1,439</th><th class="num">109</th><th class="num">1.05</th></tr>
- </tbody>
-</table>
-
-<p>Severity split of the 109: <span class="sev-break">39 break-a-user</span> (following the doc fails outright), <span class="sev-wrong">50 wrong</span>, 13 misleading, 7 stale details. Stage 2 then fixed <strong>all 109 with zero rejected at fix time</strong>, and — because fixers re-verify everything against the code — found and fixed <strong>31 more</strong> drift defects on the same pages, while <strong>refuting 13 candidates</strong> that didn't hold up. Four docs-only PRs carried the fixes to <code>dev</code>, each gated by strict docs build, full <code>make check</code>, and a blind post-fix review by two agents given nothing but the commit SHA.</p>
-
-<div class="callout honest"><strong>Honest coverage disclosure:</strong> Stage 1 covered 104 of the 125 in-scope pages. The 21 <code>docs/cookbook/</code> pages were <strong>never swept</strong> — that stage was deliberately deferred out of the campaign. No accuracy claim, positive or negative, applies to them.</div>
-
-<details>
-<summary>What actually drifts — the top defect classes</summary>
-<div class="body">
-<ol>
- <li><strong>Renamed Python API never propagated into docs</strong> — the #1 class across all sections, and the source of the worst silent failures (mis-named observer hooks, renamed <code>execute</code>/<code>run</code> methods, renamed factory functions).</li>
- <li><strong>Doc bundle examples that fail real validation</strong> — examples that parse as TOML but fail semantic validation (missing required fields, illegal inline sigils, operator constraints). Dominant in the language guide.</li>
- <li><strong>Stale closed enumerations</strong> — a list written once (native concepts, the operator roster, model handles), the registry grows, the list is never revisited. One stale operator roster was copied on <em>three</em> pages, including the docs landing page.</li>
- <li><strong>Wrong defaults / behavioral claims</strong> — flipped defaults, wrong fallback directories, wrong indexing bases, invented behaviors.</li>
- <li><strong>Keyword-only convention drift in snippets</strong> — docs showing positional calls that now raise <code>TypeError</code> under the repo's keyword-only convention.</li>
- <li><strong>Repo-tooling drift</strong> — the distinctive class of the contributor pages: not one phantom <code>make</code> target, but targets whose <em>behavior changed under a stable name</em> (e.g. a test target that grew heartbeat output weeks after a page was written on the premise it was silent).</li>
- <li><strong>False prose beside a correct snippet</strong> — the most uncomfortable class: a tutorial whose examples all validate <em>and</em> dry-run, while the sentence explaining them teaches a false rule. A snippet checker returns green here; only an adversarial reader catches it.</li>
-</ol>
-</div>
-</details>
-
-<details>
-<summary>How we kept ourselves honest (the part worth stealing)</summary>
-<div class="body">
-<ul>
- <li><strong>Adversarial verification before any action:</strong> no finding was acted on until a second, independent agent — prompted to <em>refute</em> it — confirmed it against the code with <code>file:line</code> evidence. Result: zero findings ever rejected downstream, so the pipeline's precision held.</li>
- <li><strong>False-negative spot-checks:</strong> since nothing was ever refuted, the real risk was <em>under</em>-reporting. So on every part, the "clean" verdicts on high-risk pages were hand-verified — and once, that check broke a clean verdict both the reviewer and the verifier had passed (the false-prose-beside-correct-snippet case). It became a standing step.</li>
- <li><strong>Blind post-fix reviews:</strong> after each fix batch, two reviewers with <em>no context</em> — just the commit SHA — re-reviewed the changes. They caught defects in three of the five reviewed batches, including one where the Stage-1 finding's own "correct" text was wrong. Rule learned: <em>the code is the authority, even over the finding that points at it.</em></li>
- <li><strong>Run it, don't guess:</strong> live execution twice reversed a conclusion reached by reading — a CLI form "confirmed dead" from <code>--help</code> that a shortcut layer actually forwards, and a TOML construct "invalid" under a generic parser that the shipped loader accepts. Every changed example was re-validated against the real parser, load-bearing ones executed in dry-run.</li>
- <li><strong>Validate the whole snippet, not just the fixed clause:</strong> a finding scoped to one kwarg masked a surrounding example that never ran at all. After that lesson, every touched snippet was import-checked or executed end to end.</li>
-</ul>
-</div>
-</details>
-
-<details>
-<summary>The headline lesson: drift follows <em>audience</em>, not complexity</summary>
-<div class="body">
-<p>The strongest pattern in the data is not <em>what</em> a page is about but <em>who it is for</em>. Pages whose author is also their reader — the maintainer-facing convention docs, the reliability pages written against the code — came back clean. Pages that explain something <em>to someone else</em> — onboarding, contributor setup, internals guides — drifted at up to 2 findings per page. And pages edited <strong>in the same commit as their code</strong> did not drift at all, which is precisely the behavior the contracts system forces. That correlation is where contract budget should go: reader-facing pages, not maintainer-facing ones.</p>
-</div>
-</details>
-
-<h2><span class="pill system">system</span>Part 2 — drift contracts, the standing gate</h2>
-
-<p>Shipped just before the campaign, then hardened. A <strong>drift contract</strong> declares: <em>when these trigger files change, these doc pages must be re-examined against the change, and the examination must be recorded.</em> The tool can't judge whether prose is still true — that takes a human or an agent — but it can prove, deterministically, that someone looked at <em>this exact content</em> and said so on the record.</p>
-
-<h3>Three tiers — contracts are only the last resort</h3>
-
-<table>
- <thead><tr><th>Tier</th><th>Mechanism</th><th>Judgment needed</th></tr></thead>
- <tbody>
- <tr><td><strong>Derived</strong></td><td>Regenerate and diff (config sync, schema, gateway models, error pages)</td><td>None — output is a pure function of sources</td></tr>
- <tr><td><strong>Linkage</strong></td><td>Referential integrity of declared cross-references (spec ↔ verifying-test links)</td><td>None — links resolve or they don't</td></tr>
- <tr><td><strong>Review</strong></td><td><strong>Drift contracts</strong>: "this changed → that must be looked at, and the look recorded"</td><td>Yes — someone must judge whether the prose still holds</td></tr>
- </tbody>
-</table>
-
-<p>Standing rule: anything mechanizable gets demoted into a derived check. The best review contract is one you eventually mechanize out of existence.</p>
-
-<h3>The one rule everything hangs on</h3>
-
-<div class="callout rule">
-<p><strong>A contract is <em>fulfilled</em> iff the stored ack digest equals the digest recomputed from the current tree. Otherwise it is <em>open</em>.</strong></p>
-<p>No base ref, no git diff, no timestamps — pure content equality. The digest covers the <code>(path, blob&nbsp;OID)</code> of every tracked file matching the contract's triggers, <em>plus the contract's own definition</em>. Edit a trigger file, add or delete a matched file, or edit the contract itself — it opens. And the digest reads the <strong>git index</strong>, not the working tree, which is what lets the ack land in the same commit as the change it certifies.</p>
-</div>
-
-<h3>The lifecycle, end to end</h3>
-
-<figure>
- <div class="diagram"><svg id="dg3" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="flowchart" style="max-width: 540.064px; background-color: transparent;" viewBox="0 0 540.0635375976562 1642.625" role="graphics-document document" aria-roledescription="flowchart-v2"><style>#dg3{font-family:ui-sans-serif,system-ui,sans-serif;font-size:14px;fill:#000000;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#dg3 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#dg3 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#dg3 .error-icon{fill:#552222;}#dg3 .error-text{fill:#552222;stroke:#552222;}#dg3 .edge-thickness-normal{stroke-width:1px;}#dg3 .edge-thickness-thick{stroke-width:3.5px;}#dg3 .edge-pattern-solid{stroke-dasharray:0;}#dg3 .edge-thickness-invisible{stroke-width:0;fill:none;}#dg3 .edge-pattern-dashed{stroke-dasharray:3;}#dg3 .edge-pattern-dotted{stroke-dasharray:2;}#dg3 .marker{fill:#666;stroke:#666;}#dg3 .marker.cross{stroke:#666;}#dg3 svg{font-family:ui-sans-serif,system-ui,sans-serif;font-size:14px;}#dg3 p{margin:0;}#dg3 .label{font-family:ui-sans-serif,system-ui,sans-serif;color:#000000;}#dg3 .cluster-label text{fill:#333;}#dg3 .cluster-label span{color:#333;}#dg3 .cluster-label span p{background-color:transparent;}#dg3 .label text,#dg3 span{fill:#000000;color:#000000;}#dg3 .node rect,#dg3 .node circle,#dg3 .node ellipse,#dg3 .node polygon,#dg3 .node path{fill:#eee;stroke:#999;stroke-width:1px;}#dg3 .rough-node .label text,#dg3 .node .label text,#dg3 .image-shape .label,#dg3 .icon-shape .label{text-anchor:middle;}#dg3 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#dg3 .rough-node .label,#dg3 .node .label,#dg3 .image-shape .label,#dg3 .icon-shape .label{text-align:center;}#dg3 .node.clickable{cursor:pointer;}#dg3 .root .anchor path{fill:#666!important;stroke-width:0;stroke:#666;}#dg3 .arrowheadPath{fill:#333333;}#dg3 .edgePath .path{stroke:#666;stroke-width:1px;}#dg3 .flowchart-link{stroke:#666;fill:none;}#dg3 .edgeLabel{background-color:white;text-align:center;}#dg3 .edgeLabel p{background-color:white;}#dg3 .edgeLabel rect{opacity:0.5;background-color:white;fill:white;}#dg3 .labelBkg{background-color:rgba(255, 255, 255, 0.5);}#dg3 .cluster rect{fill:hsl(0, 0%, 98.9215686275%);stroke:#707070;stroke-width:1px;}#dg3 .cluster text{fill:#333;}#dg3 .cluster span{color:#333;}#dg3 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:ui-sans-serif,system-ui,sans-serif;font-size:12px;background:hsl(-160, 0%, 93.3333333333%);border:1px solid #707070;border-radius:2px;pointer-events:none;z-index:100;}#dg3 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#000000;}#dg3 rect.text{fill:none;stroke-width:0;}#dg3 .icon-shape,#dg3 .image-shape{background-color:white;text-align:center;}#dg3 .icon-shape p,#dg3 .image-shape p{background-color:white;padding:2px;}#dg3 .icon-shape .label rect,#dg3 .image-shape .label rect{opacity:0.5;background-color:white;fill:white;}#dg3 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#dg3 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#dg3 .node .neo-node{stroke:#999;}#dg3 [data-look="neo"].node rect,#dg3 [data-look="neo"].cluster rect,#dg3 [data-look="neo"].node polygon{stroke:url(#dg3-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg3 [data-look="neo"].node path{stroke:url(#dg3-gradient);stroke-width:1px;}#dg3 [data-look="neo"].node .outer-path{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg3 [data-look="neo"].node .neo-line path{stroke:#999;filter:none;}#dg3 [data-look="neo"].node circle{stroke:url(#dg3-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg3 [data-look="neo"].node circle .state-start{fill:#000000;}#dg3 [data-look="neo"].icon-shape .icon{fill:url(#dg3-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg3 [data-look="neo"].icon-shape .icon-neo path{stroke:url(#dg3-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#dg3 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}</style><g><marker id="dg3_flowchart-v2-pointEnd" class="marker flowchart-v2" viewBox="0 0 10 10" refX="5" refY="5" markerUnits="userSpaceOnUse" markerWidth="8" markerHeight="8" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="dg3_flowchart-v2-pointStart" class="marker flowchart-v2" viewBox="0 0 10 10" refX="4.5" refY="5" markerUnits="userSpaceOnUse" markerWidth="8" markerHeight="8" orient="auto"><path d="M 0 5 L 10 10 L 10 0 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="dg3_flowchart-v2-pointEnd-margin" class="marker flowchart-v2" viewBox="0 0 11.5 14" refX="11.5" refY="7" markerUnits="userSpaceOnUse" markerWidth="10.5" markerHeight="14" orient="auto"><path d="M 0 0 L 11.5 7 L 0 14 z" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="dg3_flowchart-v2-pointStart-margin" class="marker flowchart-v2" viewBox="0 0 11.5 14" refX="1" refY="7" markerUnits="userSpaceOnUse" markerWidth="11.5" markerHeight="14" orient="auto"><polygon points="0,7 11.5,14 11.5,0" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="dg3_flowchart-v2-circleEnd" class="marker flowchart-v2" viewBox="0 0 10 10" refX="11" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="dg3_flowchart-v2-circleStart" class="marker flowchart-v2" viewBox="0 0 10 10" refX="-1" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="dg3_flowchart-v2-circleEnd-margin" class="marker flowchart-v2" viewBox="0 0 10 10" refY="5" refX="12.25" markerUnits="userSpaceOnUse" markerWidth="14" markerHeight="14" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="dg3_flowchart-v2-circleStart-margin" class="marker flowchart-v2" viewBox="0 0 10 10" refX="-2" refY="5" markerUnits="userSpaceOnUse" markerWidth="14" markerHeight="14" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="dg3_flowchart-v2-crossEnd" class="marker cross flowchart-v2" viewBox="0 0 11 11" refX="12" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"/></marker><marker id="dg3_flowchart-v2-crossStart" class="marker cross flowchart-v2" viewBox="0 0 11 11" refX="-1" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"/></marker><marker id="dg3_flowchart-v2-crossEnd-margin" class="marker cross flowchart-v2" viewBox="0 0 15 15" refX="17.7" refY="7.5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 1,1 L 14,14 M 1,14 L 14,1" class="arrowMarkerPath" style="stroke-width: 2.5;"/></marker><marker id="dg3_flowchart-v2-crossStart-margin" class="marker cross flowchart-v2" viewBox="0 0 15 15" refX="-3.5" refY="7.5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 1,1 L 14,14 M 1,14 L 14,1" class="arrowMarkerPath" style="stroke-width: 2.5; stroke-dasharray: 1, 0;"/></marker><g class="root"><g class="clusters"/><g class="edgePaths"><path d="M229.857,80L229.857,84.167C229.857,88.333,229.857,96.667,229.857,104.333C229.857,112,229.857,119,229.857,122.5L229.857,126" id="dg3-L_E_C_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_E_C_0" data-points="W3sieCI6MjI5Ljg1NzIyMzUxMDc0MjIsInkiOjgwfSx7IngiOjIyOS44NTcyMjM1MTA3NDIyLCJ5IjoxMDV9LHsieCI6MjI5Ljg1NzIyMzUxMDc0MjIsInkiOjEzMH1d" data-look="classic" marker-end="url(#dg3_flowchart-v2-pointEnd)"/><path d="M175.702,306.954L162.522,321.896C149.342,336.839,122.983,366.724,109.881,391.75C96.78,416.776,96.936,436.943,97.014,447.026L97.093,457.109" id="dg3-L_C_OK_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_C_OK_0" data-points="W3sieCI6MTc1LjcwMTczNjg0MjUxMTc2LCJ5IjozMDYuOTUzODg4MzMxNzY5Nn0seyJ4Ijo5Ni42MjM1NjU2NzM4MjgxMiwieSI6Mzk2LjYwOTM3NX0seyJ4Ijo5Ny4xMjM1NjU2NzM4MjgxMiwieSI6NDYxLjEwOTM3NX1d" data-look="classic" marker-end="url(#dg3_flowchart-v2-pointEnd)"/><path d="M284.013,306.954L297.192,321.896C310.372,336.839,336.731,366.724,349.911,386.917C363.091,407.109,363.091,417.609,363.091,422.859L363.091,428.109" id="dg3-L_C_P_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_C_P_0" data-points="W3sieCI6Mjg0LjAxMjcxMDE3ODk3MjYsInkiOjMwNi45NTM4ODgzMzE3Njk2M30seyJ4IjozNjMuMDkwODgxMzQ3NjU2MjUsInkiOjM5Ni42MDkzNzV9LHsieCI6MzYzLjA5MDg4MTM0NzY1NjI1LCJ5Ijo0MzIuMTA5Mzc1fV0=" data-look="classic" marker-end="url(#dg3_flowchart-v2-pointEnd)"/><path d="M290.691,525.109L284.204,529.276C277.716,533.443,264.742,541.776,258.254,549.443C251.767,557.109,251.767,564.109,251.767,567.609L251.767,571.109" id="dg3-L_P_REV_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_P_REV_0" data-points="W3sieCI6MjkwLjY5MTIxNDYwODE0NTc0LCJ5Ijo1MjUuMTA5Mzc1fSx7IngiOjI1MS43NjY2NjI1OTc2NTYyNSwieSI6NTUwLjEwOTM3NX0seyJ4IjoyNTEuNzY2NjYyNTk3NjU2MjUsInkiOjU3NS4xMDkzNzV9XQ==" data-look="classic" marker-end="url(#dg3_flowchart-v2-pointEnd)"/><path d="M251.767,668.109L251.767,672.276C251.767,676.443,251.767,684.776,251.767,692.443C251.767,700.109,251.767,707.109,251.767,710.609L251.767,714.109" id="dg3-L_REV_ADD_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_REV_ADD_0" data-points="W3sieCI6MjUxLjc2NjY2MjU5NzY1NjI1LCJ5Ijo2NjguMTA5Mzc1fSx7IngiOjI1MS43NjY2NjI1OTc2NTYyNSwieSI6NjkzLjEwOTM3NX0seyJ4IjoyNTEuNzY2NjYyNTk3NjU2MjUsInkiOjcxOC4xMDkzNzV9XQ==" data-look="classic" marker-end="url(#dg3_flowchart-v2-pointEnd)"/><path d="M251.767,811.109L251.767,815.276C251.767,819.443,251.767,827.776,251.767,835.443C251.767,843.109,251.767,850.109,251.767,853.609L251.767,857.109" id="dg3-L_ADD_ACK_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_ADD_ACK_0" data-points="W3sieCI6MjUxLjc2NjY2MjU5NzY1NjI1LCJ5Ijo4MTEuMTA5Mzc1fSx7IngiOjI1MS43NjY2NjI1OTc2NTYyNSwieSI6ODM2LjEwOTM3NX0seyJ4IjoyNTEuNzY2NjYyNTk3NjU2MjUsInkiOjg2MS4xMDkzNzV9XQ==" data-look="classic" marker-end="url(#dg3_flowchart-v2-pointEnd)"/><path d="M251.767,996.109L251.767,1000.276C251.767,1004.443,251.767,1012.776,251.767,1020.443C251.767,1028.109,251.767,1035.109,251.767,1038.609L251.767,1042.109" id="dg3-L_ACK_COMMIT_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_ACK_COMMIT_0" data-points="W3sieCI6MjUxLjc2NjY2MjU5NzY1NjI1LCJ5Ijo5OTYuMTA5Mzc1fSx7IngiOjI1MS43NjY2NjI1OTc2NTYyNSwieSI6MTAyMS4xMDkzNzV9LHsieCI6MjUxLjc2NjY2MjU5NzY1NjI1LCJ5IjoxMDQ2LjEwOTM3NX1d" data-look="classic" marker-end="url(#dg3_flowchart-v2-pointEnd)"/><path d="M251.767,1118.109L251.767,1122.276C251.767,1126.443,251.767,1134.776,251.767,1142.443C251.767,1150.109,251.767,1157.109,251.767,1160.609L251.767,1164.109" id="dg3-L_COMMIT_PRV_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_COMMIT_PRV_0" data-points="W3sieCI6MjUxLjc2NjY2MjU5NzY1NjI1LCJ5IjoxMTE4LjEwOTM3NX0seyJ4IjoyNTEuNzY2NjYyNTk3NjU2MjUsInkiOjExNDMuMTA5Mzc1fSx7IngiOjI1MS43NjY2NjI1OTc2NTYyNSwieSI6MTE2OC4xMDkzNzV9XQ==" data-look="classic" marker-end="url(#dg3_flowchart-v2-pointEnd)"/><path d="M251.767,1261.109L251.767,1265.276C251.767,1269.443,251.767,1277.776,261.681,1293.81C271.595,1309.844,291.423,1333.579,301.337,1345.447L311.252,1357.314" id="dg3-L_PRV_MERGE_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_PRV_MERGE_0" data-points="W3sieCI6MjUxLjc2NjY2MjU5NzY1NjI1LCJ5IjoxMjYxLjEwOTM3NX0seyJ4IjoyNTEuNzY2NjYyNTk3NjU2MjUsInkiOjEyODYuMTA5Mzc1fSx7IngiOjMxMy44MTYxMzk3MDU1NDUyNSwieSI6MTM2MC4zODQxMTY2NDIxMTEyfV0=" data-look="classic" marker-end="url(#dg3_flowchart-v2-pointEnd)"/><path d="M363.091,1527.625L363.091,1533.542C363.091,1539.458,363.091,1551.292,363.165,1562.542C363.239,1573.792,363.387,1584.459,363.461,1589.792L363.535,1595.125" id="dg3-L_MERGE_DONE_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_MERGE_DONE_0" data-points="W3sieCI6MzYzLjA5MDg4MTM0NzY1NjI1LCJ5IjoxNTI3LjYyNX0seyJ4IjozNjMuMDkwODgxMzQ3NjU2MjUsInkiOjE1NjMuMTI1fSx7IngiOjM2My41OTA4ODEzNDc2NTYyNSwieSI6MTU5OS4xMjV9XQ==" data-look="classic" marker-end="url(#dg3_flowchart-v2-pointEnd)"/><path d="M412.366,1360.384L422.707,1348.005C433.049,1335.626,453.732,1310.868,464.074,1286.572C474.415,1262.276,474.415,1238.443,474.415,1214.609C474.415,1190.776,474.415,1166.943,474.415,1144.859C474.415,1122.776,474.415,1102.443,474.415,1082.109C474.415,1061.776,474.415,1041.443,474.415,1015.859C474.415,990.276,474.415,959.443,474.415,928.609C474.415,897.776,474.415,866.943,474.415,839.609C474.415,812.276,474.415,788.443,474.415,764.609C474.415,740.776,474.415,716.943,474.415,693.109C474.415,669.276,474.415,645.443,474.415,621.609C474.415,597.776,474.415,573.943,468.489,558.22C462.562,542.497,450.709,534.884,444.783,531.077L438.856,527.271" id="dg3-L_MERGE_P_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_MERGE_P_0" data-points="W3sieCI6NDEyLjM2NTYyMjk4OTc2NzMsInkiOjEzNjAuMzg0MTE2NjQyMTExMn0seyJ4Ijo0NzQuNDE1MTAwMDk3NjU2MjUsInkiOjEyODYuMTA5Mzc1fSx7IngiOjQ3NC40MTUxMDAwOTc2NTYyNSwieSI6MTIxNC42MDkzNzV9LHsieCI6NDc0LjQxNTEwMDA5NzY1NjI1LCJ5IjoxMTQzLjEwOTM3NX0seyJ4Ijo0NzQuNDE1MTAwMDk3NjU2MjUsInkiOjEwODIuMTA5Mzc1fSx7IngiOjQ3NC40MTUxMDAwOTc2NTYyNSwieSI6MTAyMS4xMDkzNzV9LHsieCI6NDc0LjQxNTEwMDA5NzY1NjI1LCJ5Ijo5MjguNjA5Mzc1fSx7IngiOjQ3NC40MTUxMDAwOTc2NTYyNSwieSI6ODM2LjEwOTM3NX0seyJ4Ijo0NzQuNDE1MTAwMDk3NjU2MjUsInkiOjc2NC42MDkzNzV9LHsieCI6NDc0LjQxNTEwMDA5NzY1NjI1LCJ5Ijo2OTMuMTA5Mzc1fSx7IngiOjQ3NC40MTUxMDAwOTc2NTYyNSwieSI6NjIxLjYwOTM3NX0seyJ4Ijo0NzQuNDE1MTAwMDk3NjU2MjUsInkiOjU1MC4xMDkzNzV9LHsieCI6NDM1LjQ5MDU0ODA4NzE2Njc2LCJ5Ijo1MjUuMTA5Mzc1fV0=" data-look="classic" marker-end="url(#dg3_flowchart-v2-pointEnd)"/></g><g class="edgeLabels"><g class="edgeLabel"><g class="label" data-id="L_E_C_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(96.62356567382812, 396.609375)"><g class="label" data-id="L_C_OK_0" transform="translate(-62.78125, -10.5)"><foreignObject width="125.5625" height="21"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"><p>digest matches ack</p></span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(363.09088134765625, 396.609375)"><g class="label" data-id="L_C_P_0" transform="translate(-42.5859375, -10.5)"><foreignObject width="85.171875" height="21"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"><p>digest differs</p></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_P_REV_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_REV_ADD_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_ADD_ACK_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_ACK_COMMIT_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_COMMIT_PRV_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_PRV_MERGE_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(363.09088134765625, 1563.125)"><g class="label" data-id="L_MERGE_DONE_0" transform="translate(-74.671875, -10.5)"><foreignObject width="149.34375" height="21"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"><p>covers merged content</p></span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(474.41510009765625, 928.609375)"><g class="label" data-id="L_MERGE_P_0" transform="translate(-57.6484375, -10.5)"><foreignObject width="115.296875" height="21"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"><p>spliced / stale ack</p></span></div></foreignObject></g></g></g><g class="nodes"><g class="node default" id="dg3-flowchart-E-0" data-look="classic" transform="translate(229.8572235107422, 44)"><rect class="basic label-container" style="" x="-103.3671875" y="-36" width="206.734375" height="72"/><g class="label" style="" transform="translate(-73.3671875, -21)"><rect/><foreignObject width="146.734375" height="42"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>you edit a trigger file<br />(e.g. the config model)</p></span></div></foreignObject></g></g><g class="node default" id="dg3-flowchart-C-1" data-look="classic" transform="translate(229.8572235107422, 245.5546875)"><polygon points="115.5546875,0 231.109375,-115.5546875 115.5546875,-231.109375 0,-115.5546875" class="label-container" transform="translate(-115.0546875, 115.5546875)"/><g class="label" style="" transform="translate(-79.5546875, -21)"><rect/><foreignObject width="159.109375" height="42"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>make drift-check<br />(inside make check + CI)</p></span></div></foreignObject></g></g><g class="node default" id="dg3-flowchart-OK-3" data-look="classic" transform="translate(96.62356567382812, 478.609375)"><g class="basic label-container outer-path"><path d="M-70.6328125 -18 C-21.092581844606315 -18, 28.44764881078737 -18, 70.6328125 -18 C70.6328125 -18, 70.6328125 -18, 70.6328125 -18 C71.08165243491854 -17.985606576901098, 71.53049236983708 -17.971213153802193, 71.78607645965283 -17.963017069506055 C72.17415140355988 -17.925579946395747, 72.5622263474669 -17.88814282328544, 72.93460141032111 -17.85222024881843 C73.35672608158877 -17.783974405593593, 73.77885075285643 -17.715728562368753, 74.07366781662469 -17.668064825839178 C74.47416187068521 -17.57665467146781, 74.87465592474572 -17.48524451709644, 75.19859501037112 -17.41130753470253 C75.41993462239414 -17.34561509968943, 75.64127423441717 -17.279922664676327, 76.30476042442517 -17.083003446192034 C76.57508070326692 -16.983523084765007, 76.84540098210867 -16.884042723337977, 77.38761858782874 -16.68450163222839 C77.6607773548102 -16.563582349052623, 77.93393612179165 -16.442663065876857, 78.44271980411605 -16.217439622243546 C78.79366273018611 -16.034352922502467, 79.14460565625616 -15.85126622276139, 79.46572843607088 -15.683736674221011 C79.80992186665488 -15.475084593895872, 80.15411529723889 -15.266432513570734, 80.45244072178987 -15.085585888053133 C80.68034498352357 -14.92660974088419, 80.90824924525725 -14.767633593715248, 81.39880204884189 -14.425445193623219 C81.69798730464329 -14.186852913775628, 81.99717256044468 -13.948260633928037, 82.30092361554019 -13.706027250644421 C82.53841336788383 -13.490345341200435, 82.77590312022748 -13.274663431756448, 83.15509841086275 -12.930288301759097 C83.32152157252945 -12.758442723742547, 83.48794473419616 -12.586597145725998, 83.95781644735568 -12.101416024703706 C84.1762793720069 -11.844797042515818, 84.39474229665811 -11.58817806032793, 84.70577918442453 -11.222816433457204 C84.91336911166593 -10.944664842785162, 85.12095903890732 -10.666513252113118, 85.3959130827452 -10.298099882199057 C85.56710292713352 -10.035106310308855, 85.73829277152183 -9.77211273841865, 86.02538223409623 -9.331066229589453 C86.23452082513417 -8.959719483622823, 86.44365941617212 -8.588372737656194, 86.591600014714 -8.325689224335035 C86.70565138919449 -8.088859104917827, 86.81970276367497 -7.85202898550062, 87.09223971428463 -7.286100176203093 C87.20625582066128 -7.004478189101305, 87.32027192703792 -6.722856201999516, 87.52524409689568 -6.216570979583546 C87.61031472336734 -5.960351806814553, 87.695385349839 -5.7041326340455605, 87.8888338546599 -5.121496559358589 C88.00148930700773 -4.691892494374361, 88.11414475935558 -4.262288429390133, 88.18151491927283 -4.005376811213661 C88.2479977856285 -3.6640013436360417, 88.31448065198418 -3.322625876058422, 88.4020846014601 -2.872798110600833 C88.43247462711405 -2.6370990728181374, 88.462864652768 -2.401400035035442, 88.54963653308556 -1.728414466338275 C88.57766092928699 -1.2919118746155718, 88.60568532548842 -0.8554092828928685, 88.62356439161238 -0.576928396289793 C88.62356439161238 -0.31623953830075135, 88.62356439161238 -0.05555068031170973, 88.62356439161238 0.5769283962897886 C88.59585310267992 1.0085540895625917, 88.56814181374746 1.4401797828353946, 88.54963653308556 1.7284144663382628 C88.5198896419135 1.9591254800807458, 88.49014275074143 2.1898364938232286, 88.4020846014601 2.8727981106008205 C88.32186725020496 3.2846972553527887, 88.24164989894982 3.696596400104757, 88.18151491927283 4.005376811213657 C88.0784692530373 4.3983345968439655, 87.97542358680178 4.791292382474274, 87.8888338546599 5.121496559358577 C87.79202032233843 5.41308349356922, 87.69520679001697 5.704670427779862, 87.52524409689569 6.216570979583534 C87.4282186483672 6.456225713308325, 87.33119319983872 6.695880447033116, 87.09223971428463 7.286100176203088 C86.96419500069139 7.551987763697414, 86.83615028709816 7.81787535119174, 86.591600014714 8.325689224335031 C86.46727726034308 8.546436863764598, 86.34295450597216 8.767184503194162, 86.02538223409623 9.33106622958945 C85.84307282321767 9.611142441630363, 85.6607634123391 9.89121865367128, 85.39591308274521 10.298099882199049 C85.24402616738743 10.501614511595823, 85.09213925202965 10.705129140992598, 84.70577918442454 11.2228164334572 C84.45337336493336 11.51930667132955, 84.20096754544215 11.815796909201898, 83.95781644735568 12.101416024703695 C83.72800859457475 12.338711500275615, 83.49820074179381 12.576006975847534, 83.15509841086276 12.930288301759093 C82.92498609750332 13.139270216313959, 82.69487378414388 13.348252130868822, 82.3009236155402 13.706027250644409 C82.04517881016481 13.909976927276194, 81.78943400478941 14.113926603907977, 81.39880204884189 14.425445193623217 C81.19950138448401 14.564468709492566, 81.00020072012613 14.703492225361915, 80.45244072178988 15.085585888053126 C80.1086514135941 15.293992987011634, 79.76486210539834 15.502400085970143, 79.46572843607088 15.68373667422101 C79.09621741561038 15.876510336912146, 78.72670639514989 16.069283999603282, 78.44271980411605 16.217439622243543 C78.04288300009318 16.39443551464709, 77.6430461960703 16.571431407050635, 77.38761858782874 16.68450163222839 C77.10650748637624 16.78795311612544, 76.82539638492376 16.891404600022494, 76.30476042442518 17.08300344619203 C75.9882828557094 17.17693232736222, 75.6718052869936 17.27086120853241, 75.19859501037115 17.411307534702527 C74.96875646959863 17.463766681797207, 74.73891792882613 17.516225828891887, 74.0736678166247 17.668064825839174 C73.64932749723488 17.736668877869796, 73.22498717784505 17.805272929900422, 72.93460141032112 17.85222024881843 C72.57097898822154 17.88729846655843, 72.20735656612196 17.922376684298435, 71.78607645965283 17.963017069506055 C71.37599919245399 17.976167449298142, 70.96592192525515 17.98931782909023, 70.6328125 18 C70.6328125 18, 70.6328125 18, 70.6328125 18 C24.636754508546943 18, -21.359303482906114 18, -70.6328125 18 C-70.95261615384435 17.989744519281263, -71.27241980768869 17.979489038562523, -71.78607645965282 17.963017069506055 C-72.10030349068272 17.932703965735897, -72.41453052171263 17.902390861965735, -72.93460141032111 17.85222024881843 C-73.27379766109877 17.797381629498908, -73.61299391187643 17.74254301017939, -74.0736678166247 17.668064825839174 C-74.42530454235438 17.587806037835456, -74.77694126808406 17.507547249831738, -75.19859501037112 17.41130753470253 C-75.42469697238427 17.344201659210448, -75.65079893439741 17.277095783718362, -76.30476042442517 17.083003446192038 C-76.67817363508745 16.945583932874438, -77.05158684574972 16.80816441955684, -77.38761858782874 16.68450163222839 C-77.64026728407042 16.572661548959488, -77.89291598031211 16.460821465690586, -78.44271980411604 16.217439622243546 C-78.83344990514387 16.013595978811903, -79.2241800061717 15.809752335380262, -79.46572843607088 15.683736674221013 C-79.82278486129738 15.467286970952244, -80.17984128652388 15.250837267683476, -80.45244072178987 15.085585888053139 C-80.73052016120887 14.891609708979358, -81.00859960062787 14.697633529905579, -81.39880204884189 14.42544519362322 C-81.66759838854841 14.211087265678271, -81.93639472825494 13.996729337733324, -82.30092361554019 13.706027250644423 C-82.6176096549567 13.418421368699793, -82.93429569437322 13.13081548675516, -83.15509841086275 12.930288301759106 C-83.35231966132658 12.726641168489413, -83.54954091179039 12.522994035219723, -83.95781644735568 12.101416024703703 C-84.12023693875304 11.910627673520597, -84.28265743015038 11.719839322337492, -84.70577918442453 11.222816433457206 C-84.96626830393107 10.873784744365425, -85.2267574234376 10.524753055273646, -85.3959130827452 10.29809988219906 C-85.52510262583941 10.099630051756654, -85.65429216893362 9.901160221314246, -86.02538223409623 9.33106622958946 C-86.18889481886426 9.0407330778892, -86.35240740363227 8.75039992618894, -86.591600014714 8.325689224335036 C-86.7347818431034 8.028369094084093, -86.87796367149281 7.731048963833149, -87.09223971428463 7.286100176203095 C-87.24656252046898 6.9049198612992475, -87.40088532665334 6.5237395463954, -87.52524409689568 6.2165709795835475 C-87.6147666223685 5.946943396336804, -87.70428914784134 5.677315813090061, -87.8888338546599 5.121496559358584 C-87.99301668618801 4.724202269617039, -88.09719951771613 4.326907979875495, -88.18151491927281 4.005376811213663 C-88.24913706352606 3.6581513924184677, -88.31675920777933 3.310925973623272, -88.4020846014601 2.8727981106008347 C-88.45961075963345 2.42663658763316, -88.5171369178068 1.9804750646654856, -88.54963653308556 1.7284144663382852 C-88.56540485696964 1.4828100938819277, -88.58117318085371 1.2372057214255703, -88.62356439161238 0.5769283962897952 C-88.62356439161238 0.23782827733294232, -88.62356439161238 -0.10127184162391056, -88.62356439161238 -0.5769283962897864 C-88.5997811558408 -0.9473714909144717, -88.57599792006923 -1.317814585539157, -88.54963653308556 -1.7284144663382603 C-88.50364415592404 -2.0851222613809073, -88.45765177876252 -2.4418300564235547, -88.4020846014601 -2.8727981106008262 C-88.34748346049113 -3.153163429521263, -88.29288231952216 -3.4335287484416996, -88.18151491927283 -4.005376811213655 C-88.12061714028559 -4.237606435756369, -88.05971936129835 -4.469836060299084, -87.8888338546599 -5.121496559358575 C-87.7786926478341 -5.4532243256996775, -87.66855144100832 -5.78495209204078, -87.52524409689569 -6.2165709795835244 C-87.41941475406652 -6.477971502442723, -87.31358541123736 -6.739372025301922, -87.09223971428463 -7.286100176203086 C-86.96718147986242 -7.545786275798372, -86.8421232454402 -7.8054723753936575, -86.591600014714 -8.32568922433503 C-86.41511643520458 -8.639053690654299, -86.23863285569514 -8.95241815697357, -86.02538223409623 -9.331066229589455 C-85.88171447026765 -9.551778495026468, -85.73804670643908 -9.772490760463484, -85.39591308274521 -10.298099882199054 C-85.23893444796049 -10.508436951762748, -85.08195581317577 -10.718774021326443, -84.70577918442454 -11.2228164334572 C-84.46516677625488 -11.505453459327162, -84.22455436808522 -11.788090485197124, -83.95781644735568 -12.101416024703695 C-83.77673717767993 -12.288395237528427, -83.5956579080042 -12.475374450353158, -83.15509841086276 -12.930288301759086 C-82.88355559992861 -13.176896298020413, -82.61201278899446 -13.423504294281738, -82.3009236155402 -13.706027250644407 C-82.07669920673052 -13.884840249808018, -81.85247479792085 -14.06365324897163, -81.3988020488419 -14.425445193623215 C-81.14076342339195 -14.605441768425042, -80.88272479794199 -14.785438343226868, -80.45244072178988 -15.085585888053124 C-80.09956082728286 -15.299503753855728, -79.74668093277583 -15.513421619658331, -79.46572843607089 -15.683736674221008 C-79.06118082764267 -15.894788902412895, -78.65663321921447 -16.105841130604784, -78.44271980411605 -16.217439622243543 C-78.03382101384368 -16.398446987145473, -77.6249222235713 -16.5794543520474, -77.38761858782874 -16.684501632228386 C-77.11776503588128 -16.783810233843944, -76.84791148393381 -16.8831188354595, -76.30476042442518 -17.08300344619203 C-75.8670840306043 -17.212903502467796, -75.42940763678342 -17.342803558743558, -75.19859501037115 -17.411307534702523 C-74.7578561982437 -17.51190329248108, -74.31711738611625 -17.61249905025964, -74.0736678166247 -17.668064825839174 C-73.78145374181156 -17.71530773130097, -73.4892396669984 -17.762550636762764, -72.93460141032112 -17.85222024881843 C-72.545937127323 -17.88971422476207, -72.15727284432486 -17.92720820070571, -71.78607645965283 -17.963017069506055 C-71.3581246182317 -17.976740652102702, -70.93017277681056 -17.990464234699353, -70.6328125 -18 C-70.6328125 -18, -70.6328125 -18, -70.6328125 -18" stroke="none" stroke-width="0" fill="#eee" style=""/><path d="M-70.6328125 -18 C-35.71672128535664 -18, -0.8006300707132823 -18, 70.6328125 -18 M-70.6328125 -18 C-25.41650304958366 -18, 19.79980640083268 -18, 70.6328125 -18 M70.6328125 -18 C70.6328125 -18, 70.6328125 -18, 70.6328125 -18 M70.6328125 -18 C70.6328125 -18, 70.6328125 -18, 70.6328125 -18 M70.6328125 -18 C71.04640152499235 -17.986737004970696, 71.45999054998471 -17.97347400994139, 71.78607645965283 -17.963017069506055 M70.6328125 -18 C70.92071944687353 -17.990767384590644, 71.20862639374708 -17.981534769181284, 71.78607645965283 -17.963017069506055 M71.78607645965283 -17.963017069506055 C72.17695734390266 -17.925309260705514, 72.5678382281525 -17.887601451904974, 72.93460141032111 -17.85222024881843 M71.78607645965283 -17.963017069506055 C72.19536406400792 -17.92353358655428, 72.604651668363 -17.884050103602508, 72.93460141032111 -17.85222024881843 M72.93460141032111 -17.85222024881843 C73.33443286738726 -17.78757859957923, 73.73426432445343 -17.722936950340035, 74.07366781662469 -17.668064825839178 M72.93460141032111 -17.85222024881843 C73.18199373449794 -17.812223776401648, 73.42938605867475 -17.772227303984867, 74.07366781662469 -17.668064825839178 M74.07366781662469 -17.668064825839178 C74.44464015135974 -17.583392811256626, 74.81561248609479 -17.49872079667407, 75.19859501037112 -17.41130753470253 M74.07366781662469 -17.668064825839178 C74.36942853474109 -17.600559371948165, 74.66518925285749 -17.533053918057153, 75.19859501037112 -17.41130753470253 M75.19859501037112 -17.41130753470253 C75.5771114981848 -17.29896582799302, 75.95562798599849 -17.186624121283504, 76.30476042442517 -17.083003446192034 M75.19859501037112 -17.41130753470253 C75.51940339278671 -17.316093290759145, 75.8402117752023 -17.220879046815757, 76.30476042442517 -17.083003446192034 M76.30476042442517 -17.083003446192034 C76.65727206539552 -16.953275903733058, 77.00978370636587 -16.823548361274085, 77.38761858782874 -16.68450163222839 M76.30476042442517 -17.083003446192034 C76.65765962115957 -16.953133279629363, 77.01055881789395 -16.823263113066695, 77.38761858782874 -16.68450163222839 M77.38761858782874 -16.68450163222839 C77.64194468026511 -16.57191901542229, 77.89627077270148 -16.45933639861619, 78.44271980411605 -16.217439622243546 M77.38761858782874 -16.68450163222839 C77.61397824602408 -16.584298926266, 77.84033790421941 -16.484096220303613, 78.44271980411605 -16.217439622243546 M78.44271980411605 -16.217439622243546 C78.73643243187215 -16.064209932475105, 79.03014505962824 -15.910980242706666, 79.46572843607088 -15.683736674221011 M78.44271980411605 -16.217439622243546 C78.77700152213706 -16.04304506406965, 79.11128324015806 -15.868650505895749, 79.46572843607088 -15.683736674221011 M79.46572843607088 -15.683736674221011 C79.68948267999968 -15.548095536625473, 79.9132369239285 -15.412454399029935, 80.45244072178987 -15.085585888053133 M79.46572843607088 -15.683736674221011 C79.77861378815736 -15.494063735067765, 80.09149914024383 -15.30439079591452, 80.45244072178987 -15.085585888053133 M80.45244072178987 -15.085585888053133 C80.811256932921 -14.835291232071492, 81.17007314405213 -14.58499657608985, 81.39880204884189 -14.425445193623219 M80.45244072178987 -15.085585888053133 C80.6742982412401 -14.930827686541882, 80.89615576069032 -14.776069485030629, 81.39880204884189 -14.425445193623219 M81.39880204884189 -14.425445193623219 C81.6196367014523 -14.249335434823326, 81.84047135406271 -14.073225676023432, 82.30092361554019 -13.706027250644421 M81.39880204884189 -14.425445193623219 C81.75712835680332 -14.139689498487492, 82.11545466476475 -13.853933803351765, 82.30092361554019 -13.706027250644421 M82.30092361554019 -13.706027250644421 C82.48015070063873 -13.543257954046735, 82.65937778573728 -13.380488657449051, 83.15509841086275 -12.930288301759097 M82.30092361554019 -13.706027250644421 C82.52809272439818 -13.499718276544847, 82.75526183325616 -13.293409302445275, 83.15509841086275 -12.930288301759097 M83.15509841086275 -12.930288301759097 C83.46066156802247 -12.614769254789932, 83.76622472518218 -12.299250207820767, 83.95781644735568 -12.101416024703706 M83.15509841086275 -12.930288301759097 C83.45260618549446 -12.6230870986093, 83.75011396012617 -12.315885895459504, 83.95781644735568 -12.101416024703706 M83.95781644735568 -12.101416024703706 C84.11690394586732 -11.91454279661682, 84.27599144437897 -11.727669568529933, 84.70577918442453 -11.222816433457204 M83.95781644735568 -12.101416024703706 C84.14962046384463 -11.87611211297807, 84.34142448033357 -11.650808201252435, 84.70577918442453 -11.222816433457204 M84.70577918442453 -11.222816433457204 C84.94944126551411 -10.896331442869405, 85.19310334660369 -10.569846452281608, 85.3959130827452 -10.298099882199057 M84.70577918442453 -11.222816433457204 C84.85131854855193 -11.027806944435326, 84.99685791267932 -10.832797455413447, 85.3959130827452 -10.298099882199057 M85.3959130827452 -10.298099882199057 C85.57003944476858 -10.030595030655993, 85.74416580679197 -9.76309017911293, 86.02538223409623 -9.331066229589453 M85.3959130827452 -10.298099882199057 C85.54732132464413 -10.065496163836581, 85.69872956654307 -9.832892445474103, 86.02538223409623 -9.331066229589453 M86.02538223409623 -9.331066229589453 C86.16031662017825 -9.091476563512593, 86.29525100626029 -8.851886897435733, 86.591600014714 -8.325689224335035 M86.02538223409623 -9.331066229589453 C86.25040032004516 -8.93152383243515, 86.47541840599409 -8.531981435280848, 86.591600014714 -8.325689224335035 M86.591600014714 -8.325689224335035 C86.78545361631049 -7.923148072817332, 86.97930721790696 -7.52060692129963, 87.09223971428463 -7.286100176203093 M86.591600014714 -8.325689224335035 C86.73771204130986 -8.022284474812178, 86.88382406790573 -7.71887972528932, 87.09223971428463 -7.286100176203093 M87.09223971428463 -7.286100176203093 C87.21386555654787 -6.985681994337179, 87.33549139881112 -6.685263812471265, 87.52524409689568 -6.216570979583546 M87.09223971428463 -7.286100176203093 C87.2563804703168 -6.880669335357981, 87.42052122634898 -6.475238494512869, 87.52524409689568 -6.216570979583546 M87.52524409689568 -6.216570979583546 C87.6498508639415 -5.841275250633722, 87.77445763098733 -5.465979521683899, 87.8888338546599 -5.121496559358589 M87.52524409689568 -6.216570979583546 C87.63858983998574 -5.875191660587947, 87.7519355830758 -5.533812341592348, 87.8888338546599 -5.121496559358589 M87.8888338546599 -5.121496559358589 C87.97503719139884 -4.792765875610492, 88.0612405281378 -4.464035191862394, 88.18151491927283 -4.005376811213661 M87.8888338546599 -5.121496559358589 C87.98811388220393 -4.742898786097061, 88.08739390974796 -4.364301012835532, 88.18151491927283 -4.005376811213661 M88.18151491927283 -4.005376811213661 C88.23066142269494 -3.7530199032582865, 88.27980792611706 -3.5006629953029127, 88.4020846014601 -2.872798110600833 M88.18151491927283 -4.005376811213661 C88.2518036747434 -3.6444589074059937, 88.32209243021397 -3.2835410035983266, 88.4020846014601 -2.872798110600833 M88.4020846014601 -2.872798110600833 C88.45533752228822 -2.4597789726365695, 88.50859044311635 -2.046759834672306, 88.54963653308556 -1.728414466338275 M88.4020846014601 -2.872798110600833 C88.4333839154398 -2.630046812122881, 88.4646832294195 -2.387295513644929, 88.54963653308556 -1.728414466338275 M88.54963653308556 -1.728414466338275 C88.56996327001394 -1.4118091312318855, 88.59029000694234 -1.095203796125496, 88.62356439161238 -0.576928396289793 M88.54963653308556 -1.728414466338275 C88.57853805086272 -1.27824999807375, 88.60743956863988 -0.8280855298092252, 88.62356439161238 -0.576928396289793 M88.62356439161238 -0.576928396289793 C88.62356439161238 -0.27834077789320427, 88.62356439161238 0.020246840503384433, 88.62356439161238 0.5769283962897886 M88.62356439161238 -0.576928396289793 C88.62356439161238 -0.15772045779058402, 88.62356439161238 0.26148748070862493, 88.62356439161238 0.5769283962897886 M88.62356439161238 0.5769283962897886 C88.60592427247003 0.8516874907795557, 88.5882841533277 1.1264465852693228, 88.54963653308556 1.7284144663382628 M88.62356439161238 0.5769283962897886 C88.59713476289993 0.9885911970983914, 88.57070513418749 1.4002539979069941, 88.54963653308556 1.7284144663382628 M88.54963653308556 1.7284144663382628 C88.50498702560483 2.07470722931626, 88.4603375181241 2.4209999922942567, 88.4020846014601 2.8727981106008205 M88.54963653308556 1.7284144663382628 C88.4940476264308 2.1595510490813483, 88.43845871977605 2.5906876318244336, 88.4020846014601 2.8727981106008205 M88.4020846014601 2.8727981106008205 C88.357518511664 3.101635562657443, 88.31295242186788 3.330473014714065, 88.18151491927283 4.005376811213657 M88.4020846014601 2.8727981106008205 C88.3371341615617 3.2063048921987787, 88.2721837216633 3.5398116737967373, 88.18151491927283 4.005376811213657 M88.18151491927283 4.005376811213657 C88.0966572042292 4.328976056241318, 88.01179948918559 4.652575301268979, 87.8888338546599 5.121496559358577 M88.18151491927283 4.005376811213657 C88.10555629711983 4.295039958158126, 88.02959767496684 4.584703105102596, 87.8888338546599 5.121496559358577 M87.8888338546599 5.121496559358577 C87.78126847903143 5.445466332536325, 87.67370310340296 5.769436105714075, 87.52524409689569 6.216570979583534 M87.8888338546599 5.121496559358577 C87.77751124025721 5.456782537089554, 87.66618862585453 5.79206851482053, 87.52524409689569 6.216570979583534 M87.52524409689569 6.216570979583534 C87.39112488136719 6.547848034957558, 87.25700566583869 6.879125090331581, 87.09223971428463 7.286100176203088 M87.52524409689569 6.216570979583534 C87.40401785417143 6.51600214286242, 87.28279161144717 6.815433306141305, 87.09223971428463 7.286100176203088 M87.09223971428463 7.286100176203088 C86.98777646353221 7.50302035154597, 86.88331321277981 7.719940526888853, 86.591600014714 8.325689224335031 M87.09223971428463 7.286100176203088 C86.99047271133327 7.497421535296642, 86.88870570838189 7.708742894390196, 86.591600014714 8.325689224335031 M86.591600014714 8.325689224335031 C86.46198081571049 8.555841237532928, 86.33236161670698 8.785993250730826, 86.02538223409623 9.33106622958945 M86.591600014714 8.325689224335031 C86.44160824089205 8.592014807069978, 86.29161646707009 8.858340389804923, 86.02538223409623 9.33106622958945 M86.02538223409623 9.33106622958945 C85.82509273344616 9.63876468784954, 85.62480323279607 9.94646314610963, 85.39591308274521 10.298099882199049 M86.02538223409623 9.33106622958945 C85.7801357035556 9.707830758414278, 85.53488917301497 10.084595287239107, 85.39591308274521 10.298099882199049 M85.39591308274521 10.298099882199049 C85.21487180578366 10.540678700127906, 85.0338305288221 10.783257518056763, 84.70577918442454 11.2228164334572 M85.39591308274521 10.298099882199049 C85.12426913163306 10.662078029416284, 84.85262518052092 11.02605617663352, 84.70577918442454 11.2228164334572 M84.70577918442454 11.2228164334572 C84.43126388437716 11.545277725255934, 84.15674858432978 11.867739017054665, 83.95781644735568 12.101416024703695 M84.70577918442454 11.2228164334572 C84.47468325312235 11.49427486409576, 84.24358732182016 11.765733294734318, 83.95781644735568 12.101416024703695 M83.95781644735568 12.101416024703695 C83.69816811122257 12.369524249285988, 83.43851977508945 12.637632473868281, 83.15509841086276 12.930288301759093 M83.95781644735568 12.101416024703695 C83.78521812540615 12.279637962702362, 83.61261980345661 12.457859900701028, 83.15509841086276 12.930288301759093 M83.15509841086276 12.930288301759093 C82.88630788018038 13.174396749917104, 82.617517349498 13.418505198075113, 82.3009236155402 13.706027250644409 M83.15509841086276 12.930288301759093 C82.95029579944413 13.116284614669336, 82.74549318802549 13.302280927579579, 82.3009236155402 13.706027250644409 M82.3009236155402 13.706027250644409 C82.08751750858205 13.876212941968518, 81.87411140162392 14.046398633292629, 81.39880204884189 14.425445193623217 M82.3009236155402 13.706027250644409 C82.01751764112966 13.932035973487105, 81.73411166671912 14.158044696329801, 81.39880204884189 14.425445193623217 M81.39880204884189 14.425445193623217 C81.10816393511715 14.628181760236426, 80.81752582139242 14.830918326849636, 80.45244072178988 15.085585888053126 M81.39880204884189 14.425445193623217 C81.10395730784924 14.631116121316564, 80.8091125668566 14.836787049009912, 80.45244072178988 15.085585888053126 M80.45244072178988 15.085585888053126 C80.0712689130982 15.316654478496211, 79.69009710440652 15.547723068939296, 79.46572843607088 15.68373667422101 M80.45244072178988 15.085585888053126 C80.15710328098423 15.26462118026496, 79.86176584017859 15.443656472476794, 79.46572843607088 15.68373667422101 M79.46572843607088 15.68373667422101 C79.06638013213102 15.892076428591638, 78.66703182819116 16.100416182962267, 78.44271980411605 16.217439622243543 M79.46572843607088 15.68373667422101 C79.22671909087761 15.808427696515546, 78.98770974568434 15.933118718810084, 78.44271980411605 16.217439622243543 M78.44271980411605 16.217439622243543 C78.18407583113185 16.33193363668279, 77.92543185814765 16.446427651122043, 77.38761858782874 16.68450163222839 M78.44271980411605 16.217439622243543 C78.21805395343246 16.3168925298655, 77.99338810274887 16.41634543748745, 77.38761858782874 16.68450163222839 M77.38761858782874 16.68450163222839 C76.99869447426109 16.82762930119638, 76.60977036069342 16.970756970164373, 76.30476042442518 17.08300344619203 M77.38761858782874 16.68450163222839 C77.07249990875846 16.800468219051393, 76.75738122968818 16.916434805874392, 76.30476042442518 17.08300344619203 M76.30476042442518 17.08300344619203 C75.94909361343386 17.18856348876107, 75.59342680244254 17.294123531330108, 75.19859501037115 17.411307534702527 M76.30476042442518 17.08300344619203 C75.9133574001309 17.199169809286172, 75.52195437583664 17.315336172380313, 75.19859501037115 17.411307534702527 M75.19859501037115 17.411307534702527 C74.7515491436421 17.513342836536523, 74.30450327691302 17.615378138370517, 74.0736678166247 17.668064825839174 M75.19859501037115 17.411307534702527 C74.87614175210355 17.48490538669795, 74.55368849383595 17.55850323869337, 74.0736678166247 17.668064825839174 M74.0736678166247 17.668064825839174 C73.7884364715084 17.71417881771546, 73.50320512639212 17.760292809591746, 72.93460141032112 17.85222024881843 M74.0736678166247 17.668064825839174 C73.75340777873035 17.719841985112247, 73.43314774083599 17.77161914438532, 72.93460141032112 17.85222024881843 M72.93460141032112 17.85222024881843 C72.58903165116241 17.88555694787603, 72.24346189200371 17.91889364693363, 71.78607645965283 17.963017069506055 M72.93460141032112 17.85222024881843 C72.70160519375086 17.874697113612015, 72.4686089771806 17.8971739784056, 71.78607645965283 17.963017069506055 M71.78607645965283 17.963017069506055 C71.46557336012647 17.973294980086425, 71.1450702606001 17.9835728906668, 70.6328125 18 M71.78607645965283 17.963017069506055 C71.54201195762379 17.970843743043392, 71.29794745559474 17.97867041658073, 70.6328125 18 M70.6328125 18 C70.6328125 18, 70.6328125 18, 70.6328125 18 M70.6328125 18 C70.6328125 18, 70.6328125 18, 70.6328125 18 M70.6328125 18 C36.737657694899184 18, 2.842502889798368 18, -70.6328125 18 M70.6328125 18 C40.47642943300484 18, 10.32004636600967 18, -70.6328125 18 M-70.6328125 18 C-70.91468836002116 17.9909607898072, -71.19656422004232 17.981921579614397, -71.78607645965282 17.963017069506055 M-70.6328125 18 C-71.06970433197546 17.98598972930691, -71.50659616395092 17.97197945861382, -71.78607645965282 17.963017069506055 M-71.78607645965282 17.963017069506055 C-72.23502086283298 17.919707942865905, -72.68396526601313 17.876398816225755, -72.93460141032111 17.85222024881843 M-71.78607645965282 17.963017069506055 C-72.09752570270048 17.932971935601763, -72.40897494574814 17.902926801697472, -72.93460141032111 17.85222024881843 M-72.93460141032111 17.85222024881843 C-73.36781599802713 17.782181473907425, -73.80103058573314 17.71214269899642, -74.0736678166247 17.668064825839174 M-72.93460141032111 17.85222024881843 C-73.35547369609137 17.784176881568417, -73.77634598186162 17.716133514318404, -74.0736678166247 17.668064825839174 M-74.0736678166247 17.668064825839174 C-74.4816095716333 17.574954782327197, -74.8895513266419 17.481844738815223, -75.19859501037112 17.41130753470253 M-74.0736678166247 17.668064825839174 C-74.46104916899242 17.579647560060813, -74.84843052136013 17.491230294282452, -75.19859501037112 17.41130753470253 M-75.19859501037112 17.41130753470253 C-75.43059264073472 17.34245185579103, -75.6625902710983 17.27359617687953, -76.30476042442517 17.083003446192038 M-75.19859501037112 17.41130753470253 C-75.55806009958222 17.304620183095434, -75.91752518879333 17.197932831488338, -76.30476042442517 17.083003446192038 M-76.30476042442517 17.083003446192038 C-76.71682536675563 16.931359738327856, -77.12889030908609 16.779716030463675, -77.38761858782874 16.68450163222839 M-76.30476042442517 17.083003446192038 C-76.70003680432836 16.93753808449286, -77.09531318423156 16.792072722793687, -77.38761858782874 16.68450163222839 M-77.38761858782874 16.68450163222839 C-77.61660337986977 16.583136857384336, -77.84558817191082 16.481772082540285, -78.44271980411604 16.217439622243546 M-77.38761858782874 16.68450163222839 C-77.80132520819838 16.501365983561612, -78.21503182856802 16.318230334894835, -78.44271980411604 16.217439622243546 M-78.44271980411604 16.217439622243546 C-78.6954704124785 16.085579791755343, -78.94822102084096 15.953719961267138, -79.46572843607088 15.683736674221013 M-78.44271980411604 16.217439622243546 C-78.75724190787288 16.053353642174624, -79.07176401162972 15.8892676621057, -79.46572843607088 15.683736674221013 M-79.46572843607088 15.683736674221013 C-79.70370824341713 15.539471916483137, -79.94168805076336 15.395207158745263, -80.45244072178987 15.085585888053139 M-79.46572843607088 15.683736674221013 C-79.76115361780356 15.50464819294359, -80.05657879953624 15.325559711666168, -80.45244072178987 15.085585888053139 M-80.45244072178987 15.085585888053139 C-80.709208025903 14.906476131981265, -80.96597533001614 14.727366375909392, -81.39880204884189 14.42544519362322 M-80.45244072178987 15.085585888053139 C-80.78431697896279 14.854083377740928, -81.11619323613571 14.622580867428718, -81.39880204884189 14.42544519362322 M-81.39880204884189 14.42544519362322 C-81.7243728873568 14.165811113711445, -82.04994372587171 13.906177033799672, -82.30092361554019 13.706027250644423 M-81.39880204884189 14.42544519362322 C-81.60281538351171 14.262749988246874, -81.80682871818154 14.100054782870526, -82.30092361554019 13.706027250644423 M-82.30092361554019 13.706027250644423 C-82.5631771901027 13.467855493076089, -82.82543076466523 13.229683735507752, -83.15509841086275 12.930288301759106 M-82.30092361554019 13.706027250644423 C-82.60366769041156 13.431083092015525, -82.90641176528293 13.156138933386627, -83.15509841086275 12.930288301759106 M-83.15509841086275 12.930288301759106 C-83.41116851828656 12.665874892097214, -83.66723862571037 12.401461482435325, -83.95781644735568 12.101416024703703 M-83.15509841086275 12.930288301759106 C-83.40460360009014 12.672653709124823, -83.65410878931753 12.415019116490543, -83.95781644735568 12.101416024703703 M-83.95781644735568 12.101416024703703 C-84.17581547528467 11.845341962002223, -84.39381450321365 11.589267899300744, -84.70577918442453 11.222816433457206 M-83.95781644735568 12.101416024703703 C-84.18023611865326 11.840149222759752, -84.40265578995081 11.5788824208158, -84.70577918442453 11.222816433457206 M-84.70577918442453 11.222816433457206 C-84.9110073544182 10.947829382336604, -85.11623552441186 10.672842331216001, -85.3959130827452 10.29809988219906 M-84.70577918442453 11.222816433457206 C-84.90463679402963 10.956365352887296, -85.10349440363473 10.689914272317388, -85.3959130827452 10.29809988219906 M-85.3959130827452 10.29809988219906 C-85.6326330764385 9.934434403667455, -85.86935307013181 9.57076892513585, -86.02538223409623 9.33106622958946 M-85.3959130827452 10.29809988219906 C-85.57702820729182 10.019858414674808, -85.75814333183843 9.741616947150556, -86.02538223409623 9.33106622958946 M-86.02538223409623 9.33106622958946 C-86.22870719051991 8.970042180574794, -86.4320321469436 8.609018131560127, -86.591600014714 8.325689224335036 M-86.02538223409623 9.33106622958946 C-86.19112575671508 9.0367718218281, -86.35686927933394 8.742477414066741, -86.591600014714 8.325689224335036 M-86.591600014714 8.325689224335036 C-86.76081309431403 7.9743146439657, -86.93002617391404 7.622940063596364, -87.09223971428463 7.286100176203095 M-86.591600014714 8.325689224335036 C-86.78881516615529 7.916167742638955, -86.98603031759657 7.506646260942874, -87.09223971428463 7.286100176203095 M-87.09223971428463 7.286100176203095 C-87.23886869806054 6.923923751398019, -87.38549768183647 6.561747326592943, -87.52524409689568 6.2165709795835475 M-87.09223971428463 7.286100176203095 C-87.21603250281095 6.980329595172332, -87.33982529133726 6.67455901414157, -87.52524409689568 6.2165709795835475 M-87.52524409689568 6.2165709795835475 C-87.6655402648862 5.7940212747548205, -87.80583643287675 5.371471569926093, -87.8888338546599 5.121496559358584 M-87.52524409689568 6.2165709795835475 C-87.62085265468026 5.928613236691353, -87.71646121246485 5.640655493799159, -87.8888338546599 5.121496559358584 M-87.8888338546599 5.121496559358584 C-87.99756730346698 4.706848793682356, -88.10630075227405 4.292201028006128, -88.18151491927281 4.005376811213663 M-87.8888338546599 5.121496559358584 C-87.98500823785656 4.754741953988345, -88.08118262105322 4.387987348618106, -88.18151491927281 4.005376811213663 M-88.18151491927281 4.005376811213663 C-88.25514884546126 3.6272821627717806, -88.32878277164973 3.249187514329898, -88.4020846014601 2.8727981106008347 M-88.18151491927281 4.005376811213663 C-88.24016995206145 3.7041956145895774, -88.2988249848501 3.4030144179654913, -88.4020846014601 2.8727981106008347 M-88.4020846014601 2.8727981106008347 C-88.44356725188588 2.551066865574317, -88.48504990231167 2.2293356205477997, -88.54963653308556 1.7284144663382852 M-88.4020846014601 2.8727981106008347 C-88.43622970649719 2.607975418646845, -88.47037481153427 2.3431527266928547, -88.54963653308556 1.7284144663382852 M-88.54963653308556 1.7284144663382852 C-88.56469732776584 1.4938304323382954, -88.57975812244612 1.2592463983383055, -88.62356439161238 0.5769283962897952 M-88.54963653308556 1.7284144663382852 C-88.57778376081768 1.289998674377284, -88.60593098854979 0.8515828824162828, -88.62356439161238 0.5769283962897952 M-88.62356439161238 0.5769283962897952 C-88.62356439161238 0.3181701436670918, -88.62356439161238 0.059411891044388376, -88.62356439161238 -0.5769283962897864 M-88.62356439161238 0.5769283962897952 C-88.62356439161238 0.2721902346059617, -88.62356439161238 -0.0325479270778718, -88.62356439161238 -0.5769283962897864 M-88.62356439161238 -0.5769283962897864 C-88.60405474694014 -0.8808068599616462, -88.5845451022679 -1.184685323633506, -88.54963653308556 -1.7284144663382603 M-88.62356439161238 -0.5769283962897864 C-88.60733329373143 -0.829740847292013, -88.59110219585047 -1.0825532982942396, -88.54963653308556 -1.7284144663382603 M-88.54963653308556 -1.7284144663382603 C-88.4994929723429 -2.1173180214922334, -88.44934941160025 -2.5062215766462064, -88.4020846014601 -2.8727981106008262 M-88.54963653308556 -1.7284144663382603 C-88.49273311392126 -2.1697461485255616, -88.43582969475695 -2.611077830712863, -88.4020846014601 -2.8727981106008262 M-88.4020846014601 -2.8727981106008262 C-88.34259525696389 -3.1782633215114835, -88.28310591246768 -3.4837285324221403, -88.18151491927283 -4.005376811213655 M-88.4020846014601 -2.8727981106008262 C-88.33906053104866 -3.196413392021591, -88.27603646063721 -3.520028673442355, -88.18151491927283 -4.005376811213655 M-88.18151491927283 -4.005376811213655 C-88.07615014352426 -4.407178366525616, -87.97078536777569 -4.808979921837578, -87.8888338546599 -5.121496559358575 M-88.18151491927283 -4.005376811213655 C-88.07155740660255 -4.424692462912883, -87.96159989393226 -4.844008114612111, -87.8888338546599 -5.121496559358575 M-87.8888338546599 -5.121496559358575 C-87.80906441304377 -5.361749407971805, -87.72929497142765 -5.602002256585035, -87.52524409689569 -6.2165709795835244 M-87.8888338546599 -5.121496559358575 C-87.77848957369338 -5.453835952656101, -87.66814529272685 -5.7861753459536285, -87.52524409689569 -6.2165709795835244 M-87.52524409689569 -6.2165709795835244 C-87.36099705346119 -6.622264352367301, -87.19675001002669 -7.027957725151078, -87.09223971428463 -7.286100176203086 M-87.52524409689569 -6.2165709795835244 C-87.4223816634062 -6.470643179012437, -87.31951922991671 -6.724715378441348, -87.09223971428463 -7.286100176203086 M-87.09223971428463 -7.286100176203086 C-86.93717421337647 -7.608097006709084, -86.78210871246831 -7.9300938372150815, -86.591600014714 -8.32568922433503 M-87.09223971428463 -7.286100176203086 C-86.97972906087513 -7.51973095535024, -86.86721840746564 -7.7533617344973935, -86.591600014714 -8.32568922433503 M-86.591600014714 -8.32568922433503 C-86.4558261655223 -8.566769442167974, -86.3200523163306 -8.807849660000919, -86.02538223409623 -9.331066229589455 M-86.591600014714 -8.32568922433503 C-86.40357796748773 -8.659541408482106, -86.21555592026147 -8.993393592629182, -86.02538223409623 -9.331066229589455 M-86.02538223409623 -9.331066229589455 C-85.77611280284775 -9.714011014201649, -85.52684337159927 -10.096955798813841, -85.39591308274521 -10.298099882199054 M-86.02538223409623 -9.331066229589455 C-85.81075445661742 -9.660792131424902, -85.59612667913862 -9.99051803326035, -85.39591308274521 -10.298099882199054 M-85.39591308274521 -10.298099882199054 C-85.1858150045776 -10.579612166614961, -84.97571692641002 -10.861124451030866, -84.70577918442454 -11.2228164334572 M-85.39591308274521 -10.298099882199054 C-85.23448266981659 -10.514401928910239, -85.07305225688798 -10.730703975621426, -84.70577918442454 -11.2228164334572 M-84.70577918442454 -11.2228164334572 C-84.52651520030909 -11.433390109608876, -84.34725121619363 -11.64396378576055, -83.95781644735568 -12.101416024703695 M-84.70577918442454 -11.2228164334572 C-84.48549950897599 -11.481569474507685, -84.26521983352744 -11.740322515558168, -83.95781644735568 -12.101416024703695 M-83.95781644735568 -12.101416024703695 C-83.70911977533783 -12.35821575693864, -83.46042310331997 -12.615015489173581, -83.15509841086276 -12.930288301759086 M-83.95781644735568 -12.101416024703695 C-83.68252508419607 -12.385676959007249, -83.40723372103646 -12.6699378933108, -83.15509841086276 -12.930288301759086 M-83.15509841086276 -12.930288301759086 C-82.87674470642197 -13.183081771296777, -82.59839100198117 -13.435875240834466, -82.3009236155402 -13.706027250644407 M-83.15509841086276 -12.930288301759086 C-82.94540978448258 -13.12072196418054, -82.7357211581024 -13.311155626601993, -82.3009236155402 -13.706027250644407 M-82.3009236155402 -13.706027250644407 C-82.1092652141475 -13.858869725510836, -81.91760681275478 -14.011712200377264, -81.3988020488419 -14.425445193623215 M-82.3009236155402 -13.706027250644407 C-82.0780852991851 -13.883734877960958, -81.85524698283001 -14.061442505277508, -81.3988020488419 -14.425445193623215 M-81.3988020488419 -14.425445193623215 C-81.08770267925394 -14.642454646573125, -80.77660330966596 -14.859464099523034, -80.45244072178988 -15.085585888053124 M-81.3988020488419 -14.425445193623215 C-81.15118543115057 -14.598171826974069, -80.90356881345923 -14.770898460324922, -80.45244072178988 -15.085585888053124 M-80.45244072178988 -15.085585888053124 C-80.13011532619618 -15.280981437056308, -79.80778993060247 -15.476376986059494, -79.46572843607089 -15.683736674221008 M-80.45244072178988 -15.085585888053124 C-80.16868327523144 -15.2576013197007, -79.88492582867302 -15.429616751348277, -79.46572843607089 -15.683736674221008 M-79.46572843607089 -15.683736674221008 C-79.07383023570418 -15.888189714329544, -78.68193203533747 -16.092642754438078, -78.44271980411605 -16.217439622243543 M-79.46572843607089 -15.683736674221008 C-79.08444760257551 -15.88265064083352, -78.70316676908013 -16.08156460744603, -78.44271980411605 -16.217439622243543 M-78.44271980411605 -16.217439622243543 C-78.02345386001593 -16.40303621861432, -77.60418791591582 -16.588632814985104, -77.38761858782874 -16.684501632228386 M-78.44271980411605 -16.217439622243543 C-78.16955241038879 -16.338362724223774, -77.89638501666153 -16.459285826204006, -77.38761858782874 -16.684501632228386 M-77.38761858782874 -16.684501632228386 C-77.04942709296654 -16.808959228545586, -76.71123559810432 -16.93341682486279, -76.30476042442518 -17.08300344619203 M-77.38761858782874 -16.684501632228386 C-77.14124663887777 -16.775168786879675, -76.8948746899268 -16.865835941530964, -76.30476042442518 -17.08300344619203 M-76.30476042442518 -17.08300344619203 C-75.989500269664 -17.176571005290825, -75.67424011490283 -17.270138564389622, -75.19859501037115 -17.411307534702523 M-76.30476042442518 -17.08300344619203 C-75.8967531319908 -17.20409786891257, -75.48874583955644 -17.325192291633112, -75.19859501037115 -17.411307534702523 M-75.19859501037115 -17.411307534702523 C-74.86758122755676 -17.48685927056311, -74.53656744474235 -17.562411006423694, -74.0736678166247 -17.668064825839174 M-75.19859501037115 -17.411307534702523 C-74.96700010673267 -17.46416756016002, -74.7354052030942 -17.51702758561752, -74.0736678166247 -17.668064825839174 M-74.0736678166247 -17.668064825839174 C-73.67118434733239 -17.733135231848436, -73.26870087804008 -17.7982056378577, -72.93460141032112 -17.85222024881843 M-74.0736678166247 -17.668064825839174 C-73.74381440006954 -17.721392968176367, -73.41396098351436 -17.774721110513557, -72.93460141032112 -17.85222024881843 M-72.93460141032112 -17.85222024881843 C-72.56468897914542 -17.887905256169162, -72.19477654796971 -17.923590263519895, -71.78607645965283 -17.963017069506055 M-72.93460141032112 -17.85222024881843 C-72.52604381153775 -17.89163330901066, -72.11748621275437 -17.931046369202893, -71.78607645965283 -17.963017069506055 M-71.78607645965283 -17.963017069506055 C-71.50857572177647 -17.97191597804733, -71.2310749839001 -17.980814886588607, -70.6328125 -18 M-71.78607645965283 -17.963017069506055 C-71.45437007266978 -17.973654247709288, -71.12266368568672 -17.98429142591252, -70.6328125 -18 M-70.6328125 -18 C-70.6328125 -18, -70.6328125 -18, -70.6328125 -18 M-70.6328125 -18 C-70.6328125 -18, -70.6328125 -18, -70.6328125 -18" stroke="#999" stroke-width="1.3" fill="none" stroke-dasharray="0 0" style=""/></g><g class="label" style="" transform="translate(-76.6328125, -10.5)"><rect/><foreignObject width="153.265625" height="21"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>fulfilled — nothing to do</p></span></div></foreignObject></g></g><g class="node default" id="dg3-flowchart-P-5" data-look="classic" transform="translate(363.09088134765625, 478.609375)"><rect class="basic label-container" style="" x="-127.84375" y="-46.5" width="255.6875" height="93"/><g class="label" style="" transform="translate(-97.84375, -31.5)"><rect/><foreignObject width="195.6875" height="63"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>make drift-plan<br />what changed, what to review,<br />previous rationale</p></span></div></foreignObject></g></g><g class="node default" id="dg3-flowchart-REV-7" data-look="classic" transform="translate(251.76666259765625, 621.609375)"><rect class="basic label-container" style="" x="-102.1484375" y="-46.5" width="204.296875" height="93"/><g class="label" style="" transform="translate(-72.1484375, -31.5)"><rect/><foreignObject width="144.296875" height="63"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>review the target docs<br />against the change;<br />fix what is stale</p></span></div></foreignObject></g></g><g class="node default" id="dg3-flowchart-ADD-9" data-look="classic" transform="translate(251.76666259765625, 764.609375)"><rect class="basic label-container" style="" x="-109.3828125" y="-46.5" width="218.765625" height="93"/><g class="label" style="" transform="translate(-79.3828125, -31.5)"><rect/><foreignObject width="158.765625" height="63"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>git add the trigger files<br />(digest reads the INDEX,<br />not the working tree)</p></span></div></foreignObject></g></g><g class="node default" id="dg3-flowchart-ACK-11" data-look="classic" transform="translate(251.76666259765625, 928.609375)"><rect class="basic label-container" style="" x="-130" y="-67.5" width="260" height="135"/><g class="label" style="" transform="translate(-100, -52.5)"><rect/><foreignObject width="200" height="105"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;"><span class="nodeLabel"><p>make drift-ack CONTRACT=... RATIONALE=...<br />runs verify_commands, recomputes digest,<br />writes + STAGES the ack file</p></span></div></foreignObject></g></g><g class="node default" id="dg3-flowchart-COMMIT-13" data-look="classic" transform="translate(251.76666259765625, 1082.109375)"><rect class="basic label-container" style="" x="-113.5859375" y="-36" width="227.171875" height="72"/><g class="label" style="" transform="translate(-83.5859375, -21)"><rect/><foreignObject width="167.171875" height="42"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>one commit: code change<br />+ doc fix + ack together</p></span></div></foreignObject></g></g><g class="node default" id="dg3-flowchart-PRV-15" data-look="classic" transform="translate(251.76666259765625, 1214.609375)"><rect class="basic label-container" style="" x="-99.3828125" y="-46.5" width="198.765625" height="93"/><g class="label" style="" transform="translate(-69.3828125, -31.5)"><rect/><foreignObject width="138.765625" height="63"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>PR: reviewer sees the<br />rationale in the diff;<br />CI lint-drift re-checks</p></span></div></foreignObject></g></g><g class="node default" id="dg3-flowchart-MERGE-17" data-look="classic" transform="translate(363.09088134765625, 1419.3671875)"><polygon points="108.2578125,0 216.515625,-108.2578125 108.2578125,-216.515625 0,-108.2578125" class="label-container" transform="translate(-107.7578125, 108.2578125)"/><g class="label" style="" transform="translate(-61.7578125, -31.5)"><rect/><foreignObject width="123.515625" height="63"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>after merge:<br />digest recomputed<br />on the merged tree</p></span></div></foreignObject></g></g><g class="node default" id="dg3-flowchart-DONE-19" data-look="classic" transform="translate(363.09088134765625, 1616.625)"><g class="basic label-container outer-path"><path d="M-17.8203125 -18 C-5.110342297759384 -18, 7.599627904481231 -18, 17.8203125 -18 C17.8203125 -18, 17.8203125 -18, 17.8203125 -18 C18.122160877145593 -17.990320310057164, 18.42400925429118 -17.98064062011433, 18.973576459652833 -17.963017069506055 C19.29843529327726 -17.931678328526214, 19.62329412690169 -17.900339587546373, 20.122101410321108 -17.85222024881843 C20.43275759493655 -17.801995766064497, 20.743413779551993 -17.751771283310568, 21.2611678166247 -17.668064825839178 C21.62543493205772 -17.584923233806666, 21.989702047490738 -17.501781641774155, 22.38609501037113 -17.41130753470253 C22.66803891321196 -17.32762806429312, 22.949982816052792 -17.243948593883704, 23.492260424425172 -17.083003446192034 C23.8806864263557 -16.940059086911, 24.269112428286228 -16.79711472762996, 24.575118587828733 -16.68450163222839 C24.888784117881027 -16.545651206631597, 25.202449647933324 -16.406800781034807, 25.630219804116045 -16.217439622243546 C25.98278979402665 -16.03350408433904, 26.33535978393726 -15.849568546434531, 26.653228436070876 -15.683736674221011 C26.880586784682784 -15.545910707186511, 27.107945133294688 -15.408084740152013, 27.639940721789877 -15.085585888053133 C27.87406088974348 -14.922273793787424, 28.10818105769708 -14.758961699521716, 28.586302048841887 -14.425445193623219 C28.785959772752154 -14.26622347191995, 28.985617496662417 -14.107001750216684, 29.488423615540185 -13.706027250644421 C29.726047029059814 -13.49022395365689, 29.963670442579442 -13.27442065666936, 30.342598410862756 -12.930288301759097 C30.5619501785132 -12.703789592544963, 30.781301946163648 -12.47729088333083, 31.145316447355675 -12.101416024703706 C31.35254703689277 -11.857991182478846, 31.55977762642986 -11.614566340253988, 31.893279184424536 -11.222816433457204 C32.07186474361883 -10.983528053615983, 32.250450302813135 -10.74423967377476, 32.5834130827452 -10.298099882199057 C32.72690947173561 -10.07765089453405, 32.870405860726024 -9.857201906869046, 33.21288223409623 -9.331066229589453 C33.41832018591601 -8.966290343285023, 33.6237581377358 -8.601514456980592, 33.779100014714004 -8.325689224335035 C33.9514441752706 -7.9678128873649525, 34.12378833582721 -7.60993655039487, 34.279739714284624 -7.286100176203093 C34.40279698192898 -6.982146345971117, 34.525854249573335 -6.678192515739141, 34.71274409689568 -6.216570979583546 C34.82918624024479 -5.865865796352101, 34.9456283835939 -5.515160613120656, 35.07633385465989 -5.121496559358589 C35.154772483472854 -4.822376072177986, 35.23321111228582 -4.523255584997382, 35.36901491927283 -4.005376811213661 C35.442730803935454 -3.6268613233288325, 35.51644668859807 -3.2483458354440042, 35.5895846014601 -2.872798110600833 C35.63917992777905 -2.488146553376045, 35.68877525409798 -2.103494996151257, 35.73713653308557 -1.728414466338275 C35.75558968676669 -1.440991702637222, 35.77404284044781 -1.1535689389361692, 35.81106439161238 -0.576928396289793 C35.81106439161238 -0.30410240247221987, 35.81106439161238 -0.03127640865464676, 35.81106439161238 0.5769283962897886 C35.790414199552266 0.898571806161164, 35.76976400749214 1.2202152160325395, 35.73713653308557 1.7284144663382628 C35.68176659108664 2.157852802450149, 35.626396649087724 2.587291138562035, 35.5895846014601 2.8727981106008205 C35.51211445587198 3.2705909348747815, 35.43464431028385 3.6683837591487425, 35.36901491927283 4.005376811213657 C35.30420546446209 4.252523351002377, 35.23939600965136 4.499669890791098, 35.07633385465989 5.121496559358577 C34.931782875542595 5.5568610773890486, 34.78723189642529 5.992225595419519, 34.71274409689569 6.216570979583534 C34.555579341156665 6.604770964832762, 34.39841458541764 6.9929709500819905, 34.279739714284624 7.286100176203088 C34.16661128937681 7.521013771084684, 34.053482864469004 7.755927365966279, 33.779100014714004 8.325689224335031 C33.66359277029779 8.530784033172822, 33.54808552588158 8.73587884201061, 33.21288223409623 9.33106622958945 C33.05721085727357 9.570219268006788, 32.901539480450914 9.809372306424128, 32.58341308274521 10.298099882199049 C32.421304303409464 10.515310878095338, 32.25919552407372 10.732521873991628, 31.89327918442454 11.2228164334572 C31.63273723909467 11.528863827698332, 31.372195293764804 11.834911221939464, 31.145316447355682 12.101416024703695 C30.831579367855923 12.425375317580464, 30.517842288356164 12.749334610457234, 30.34259841086276 12.930288301759093 C30.051938231866803 13.194258185876308, 29.761278052870846 13.458228069993524, 29.488423615540203 13.706027250644409 C29.172406120820227 13.958042793104878, 28.856388626100248 14.210058335565346, 28.586302048841894 14.425445193623217 C28.25959979225533 14.653338545105257, 27.932897535668765 14.881231896587297, 27.639940721789884 15.085585888053126 C27.288923042046875 15.298374868322194, 26.93790536230387 15.51116384859126, 26.653228436070883 15.68373667422101 C26.32952367725944 15.852613239550145, 26.005818918447996 16.02148980487928, 25.63021980411605 16.217439622243543 C25.413765228278983 16.313257642069754, 25.197310652441917 16.409075661895965, 24.57511858782874 16.68450163222839 C24.171122289245588 16.833176004607836, 23.767125990662436 16.981850376987282, 23.492260424425183 17.08300344619203 C23.270041252880336 17.148956929854307, 23.04782208133549 17.214910413516584, 22.38609501037115 17.411307534702527 C21.983578313141262 17.503179344178324, 21.581061615911374 17.595051153654122, 21.261167816624706 17.668064825839174 C20.963262472520217 17.71622785158354, 20.665357128415724 17.76439087732791, 20.122101410321118 17.85222024881843 C19.845722208820945 17.87888221799253, 19.569343007320768 17.905544187166633, 18.973576459652833 17.963017069506055 C18.656322454217793 17.973190787962896, 18.339068448782754 17.983364506419736, 17.820312500000004 18 C17.820312500000004 18, 17.8203125 18, 17.8203125 18 C4.04888110928202 18, -9.72255028143596 18, -17.820312499999996 18 C-18.221651639527895 17.987129834954587, -18.62299077905579 17.97425966990917, -18.973576459652826 17.963017069506055 C-19.303117990572847 17.931226594349877, -19.63265952149287 17.899436119193698, -20.12210141032111 17.85222024881843 C-20.577510014809175 17.778593317391273, -21.032918619297238 17.704966385964116, -21.2611678166247 17.668064825839174 C-21.619293997448917 17.58632486205778, -21.97742017827314 17.504584898276384, -22.38609501037113 17.41130753470253 C-22.774688876529947 17.29597491499742, -23.163282742688768 17.18064229529231, -23.49226042442516 17.083003446192038 C-23.799609662611243 16.969896085434346, -24.106958900797324 16.856788724676655, -24.575118587828737 16.68450163222839 C-24.80804835632084 16.58139053333302, -25.040978124812938 16.478279434437653, -25.630219804116045 16.217439622243546 C-25.981316365630164 16.034272770989713, -26.332412927144283 15.851105919735875, -26.653228436070876 15.683736674221013 C-27.015326064587512 15.464230963892366, -27.37742369310415 15.244725253563718, -27.639940721789863 15.085585888053139 C-28.004850436593003 14.831040667693424, -28.369760151396143 14.576495447333711, -28.586302048841887 14.42544519362322 C-28.768929265897984 14.279804847935331, -28.951556482954082 14.134164502247442, -29.488423615540185 13.706027250644423 C-29.692395285983505 13.520785576342465, -29.896366956426824 13.33554390204051, -30.34259841086275 12.930288301759106 C-30.538630005635678 12.727869585662809, -30.734661600408607 12.525450869566514, -31.145316447355682 12.101416024703703 C-31.406285833940558 11.794866533642342, -31.66725522052543 11.48831704258098, -31.893279184424536 11.222816433457206 C-32.123608830814696 10.914195690756845, -32.35393847720486 10.605574948056486, -32.5834130827452 10.29809988219906 C-32.76354470465276 10.021369338835841, -32.94367632656031 9.744638795472623, -33.21288223409623 9.33106622958946 C-33.43870136706895 8.930101492329605, -33.66452050004167 8.529136755069752, -33.779100014714004 8.325689224335036 C-33.95644340168191 7.957431886755566, -34.13378678864982 7.589174549176095, -34.279739714284624 7.286100176203095 C-34.404239725793225 6.978582740732867, -34.528739737301834 6.67106530526264, -34.71274409689568 6.2165709795835475 C-34.79710145924048 5.9625000447214465, -34.881458821585284 5.708429109859345, -35.07633385465989 5.121496559358584 C-35.173580739791625 4.750652039284668, -35.270827624923356 4.37980751921075, -35.36901491927282 4.005376811213663 C-35.45340768533936 3.5720377938794377, -35.53780045140589 3.138698776545212, -35.5895846014601 2.8727981106008347 C-35.62880868755927 2.568583844487573, -35.66803277365844 2.264369578374311, -35.73713653308556 1.7284144663382852 C-35.762105875778 1.339496799012957, -35.787075218470434 0.9505791316876285, -35.81106439161238 0.5769283962897952 C-35.81106439161238 0.22684664192793552, -35.81106439161238 -0.12323511243392415, -35.81106439161238 -0.5769283962897864 C-35.78808819957357 -0.9348011333426522, -35.76511200753476 -1.292673870395518, -35.73713653308557 -1.7284144663382603 C-35.689801797599436 -2.0955333274679595, -35.6424670621133 -2.4626521885976587, -35.5895846014601 -2.8727981106008262 C-35.51089598065538 -3.2768475475872125, -35.43220735985065 -3.6808969845735993, -35.36901491927283 -4.005376811213655 C-35.30189459554732 -4.261335695711342, -35.234774271821806 -4.517294580209029, -35.07633385465989 -5.121496559358575 C-34.9688360287141 -5.4452628836546815, -34.861338202768316 -5.769029207950788, -34.71274409689569 -6.2165709795835244 C-34.55998904476133 -6.593878911673409, -34.40723399262698 -6.971186843763293, -34.279739714284624 -7.286100176203086 C-34.100830330282456 -7.657609340131165, -33.92192094628029 -8.029118504059243, -33.779100014714004 -8.32568922433503 C-33.662131520196084 -8.53337863069602, -33.545163025678164 -8.741068037057014, -33.21288223409623 -9.331066229589455 C-33.08002677900841 -9.535167885289235, -32.9471713239206 -9.739269540989016, -32.58341308274521 -10.298099882199054 C-32.376907018041045 -10.574799195813121, -32.17040095333688 -10.851498509427188, -31.893279184424543 -11.2228164334572 C-31.703549355198092 -11.445683886799708, -31.51381952597164 -11.668551340142216, -31.145316447355686 -12.101416024703695 C-30.906860596901456 -12.347641267887102, -30.668404746447226 -12.59386651107051, -30.342598410862763 -12.930288301759086 C-30.0199298358887 -13.223327364207869, -29.69726126091464 -13.516366426656651, -29.488423615540206 -13.706027250644407 C-29.197957075921334 -13.937666586351215, -28.907490536302465 -14.16930592205802, -28.586302048841894 -14.425445193623215 C-28.333561164968515 -14.60174629323676, -28.080820281095136 -14.778047392850302, -27.639940721789888 -15.085585888053124 C-27.35332049176486 -15.259336755861732, -27.066700261739825 -15.433087623670339, -26.653228436070883 -15.683736674221008 C-26.31894167405489 -15.858133863843861, -25.9846549120389 -16.032531053466716, -25.630219804116052 -16.217439622243543 C-25.366090610122658 -16.33436178131026, -25.101961416129264 -16.451283940376978, -24.575118587828744 -16.684501632228386 C-24.282983158883454 -16.792010170550554, -23.990847729938164 -16.899518708872726, -23.492260424425186 -17.08300344619203 C-23.083134035303868 -17.204430010935, -22.67400764618255 -17.325856575677964, -22.38609501037115 -17.411307534702523 C-21.93663400696511 -17.513894075722803, -21.48717300355907 -17.61648061674308, -21.26116781662471 -17.668064825839174 C-21.01261016824435 -17.70824969883596, -20.764052519863995 -17.748434571832743, -20.12210141032112 -17.85222024881843 C-19.817176916927377 -17.881635947970768, -19.51225242353363 -17.911051647123106, -18.973576459652833 -17.963017069506055 C-18.578664895822868 -17.975681114709353, -18.183753331992904 -17.98834515991265, -17.820312500000007 -18 C-17.820312500000004 -18, -17.820312500000004 -18, -17.8203125 -18" stroke="none" stroke-width="0" fill="#eee" style=""/><path d="M-17.8203125 -18 C-3.6154075957132807 -18, 10.589497308573439 -18, 17.8203125 -18 M-17.8203125 -18 C-7.398019775222039 -18, 3.0242729495559217 -18, 17.8203125 -18 M17.8203125 -18 C17.8203125 -18, 17.8203125 -18, 17.8203125 -18 M17.8203125 -18 C17.8203125 -18, 17.8203125 -18, 17.8203125 -18 M17.8203125 -18 C18.226556939958904 -17.986972531517353, 18.63280137991781 -17.9739450630347, 18.973576459652833 -17.963017069506055 M17.8203125 -18 C18.2181621462531 -17.98724173621202, 18.616011792506196 -17.974483472424044, 18.973576459652833 -17.963017069506055 M18.973576459652833 -17.963017069506055 C19.258917943731593 -17.93549051971032, 19.544259427810353 -17.907963969914583, 20.122101410321108 -17.85222024881843 M18.973576459652833 -17.963017069506055 C19.411381604976086 -17.920782533674444, 19.849186750299335 -17.87854799784283, 20.122101410321108 -17.85222024881843 M20.122101410321108 -17.85222024881843 C20.412929444237754 -17.805201427699874, 20.703757478154397 -17.758182606581318, 21.2611678166247 -17.668064825839178 M20.122101410321108 -17.85222024881843 C20.526565223369413 -17.786829676188496, 20.931029036417716 -17.721439103558563, 21.2611678166247 -17.668064825839178 M21.2611678166247 -17.668064825839178 C21.48833170262817 -17.616216151241776, 21.71549558863164 -17.564367476644378, 22.38609501037113 -17.41130753470253 M21.2611678166247 -17.668064825839178 C21.493636800728076 -17.615005297219476, 21.726105784831454 -17.56194576859977, 22.38609501037113 -17.41130753470253 M22.38609501037113 -17.41130753470253 C22.74314926073045 -17.30533570741189, 23.100203511089774 -17.199363880121247, 23.492260424425172 -17.083003446192034 M22.38609501037113 -17.41130753470253 C22.66565258696777 -17.32833631339631, 22.945210163564408 -17.245365092090093, 23.492260424425172 -17.083003446192034 M23.492260424425172 -17.083003446192034 C23.867387693359223 -16.944953143585842, 24.242514962293274 -16.80690284097965, 24.575118587828733 -16.68450163222839 M23.492260424425172 -17.083003446192034 C23.758624484131236 -16.984979009977828, 24.024988543837296 -16.886954573763617, 24.575118587828733 -16.68450163222839 M24.575118587828733 -16.68450163222839 C24.89104389973407 -16.5446508682393, 25.206969211639407 -16.404800104250217, 25.630219804116045 -16.217439622243546 M24.575118587828733 -16.68450163222839 C24.831295136263666 -16.571099873443554, 25.087471684698595 -16.457698114658722, 25.630219804116045 -16.217439622243546 M25.630219804116045 -16.217439622243546 C25.962990257065094 -16.043833490089675, 26.295760710014143 -15.870227357935804, 26.653228436070876 -15.683736674221011 M25.630219804116045 -16.217439622243546 C26.025623358470007 -16.011157841205147, 26.42102691282397 -15.80487606016675, 26.653228436070876 -15.683736674221011 M26.653228436070876 -15.683736674221011 C26.990303417779856 -15.479399839436562, 27.327378399488836 -15.275063004652113, 27.639940721789877 -15.085585888053133 M26.653228436070876 -15.683736674221011 C26.85507151118918 -15.561378215922723, 27.056914586307485 -15.439019757624436, 27.639940721789877 -15.085585888053133 M27.639940721789877 -15.085585888053133 C27.94170384714368 -14.875088994921475, 28.243466972497483 -14.664592101789818, 28.586302048841887 -14.425445193623219 M27.639940721789877 -15.085585888053133 C27.887785073575817 -14.91270039725633, 28.135629425361753 -14.739814906459525, 28.586302048841887 -14.425445193623219 M28.586302048841887 -14.425445193623219 C28.793976733098464 -14.259830159384041, 29.001651417355045 -14.094215125144864, 29.488423615540185 -13.706027250644421 M28.586302048841887 -14.425445193623219 C28.8958165785074 -14.178615592742519, 29.205331108172913 -13.931785991861817, 29.488423615540185 -13.706027250644421 M29.488423615540185 -13.706027250644421 C29.698336374015515 -13.51539003738437, 29.90824913249084 -13.324752824124317, 30.342598410862756 -12.930288301759097 M29.488423615540185 -13.706027250644421 C29.77931692307468 -13.44184564535675, 30.070210230609177 -13.177664040069079, 30.342598410862756 -12.930288301759097 M30.342598410862756 -12.930288301759097 C30.520348004892533 -12.746747252410279, 30.69809759892231 -12.563206203061462, 31.145316447355675 -12.101416024703706 M30.342598410862756 -12.930288301759097 C30.588352402735726 -12.676527128372285, 30.834106394608696 -12.422765954985476, 31.145316447355675 -12.101416024703706 M31.145316447355675 -12.101416024703706 C31.321937068998274 -11.893947392524236, 31.49855769064087 -11.686478760344768, 31.893279184424536 -11.222816433457204 M31.145316447355675 -12.101416024703706 C31.419710255820476 -11.77909744383094, 31.694104064285277 -11.456778862958174, 31.893279184424536 -11.222816433457204 M31.893279184424536 -11.222816433457204 C32.078311167436226 -10.97489043298197, 32.26334315044791 -10.726964432506737, 32.5834130827452 -10.298099882199057 M31.893279184424536 -11.222816433457204 C32.09669680885314 -10.950255348449694, 32.30011443328174 -10.677694263442183, 32.5834130827452 -10.298099882199057 M32.5834130827452 -10.298099882199057 C32.81500632858841 -9.94231046508975, 33.04659957443162 -9.586521047980446, 33.21288223409623 -9.331066229589453 M32.5834130827452 -10.298099882199057 C32.80548420252552 -9.956939007771219, 33.02755532230584 -9.615778133343381, 33.21288223409623 -9.331066229589453 M33.21288223409623 -9.331066229589453 C33.41738272595024 -8.967954898382372, 33.621883217804246 -8.604843567175292, 33.779100014714004 -8.325689224335035 M33.21288223409623 -9.331066229589453 C33.334437948292205 -9.115231750183712, 33.455993662488176 -8.899397270777971, 33.779100014714004 -8.325689224335035 M33.779100014714004 -8.325689224335035 C33.93135427521985 -8.009529994675342, 34.0836085357257 -7.693370765015651, 34.279739714284624 -7.286100176203093 M33.779100014714004 -8.325689224335035 C33.87950485152282 -8.11719643238218, 33.97990968833163 -7.9087036404293265, 34.279739714284624 -7.286100176203093 M34.279739714284624 -7.286100176203093 C34.41683166384279 -6.947480410301878, 34.55392361340096 -6.608860644400663, 34.71274409689568 -6.216570979583546 M34.279739714284624 -7.286100176203093 C34.38499041710294 -7.0261289053579485, 34.49024111992125 -6.766157634512804, 34.71274409689568 -6.216570979583546 M34.71274409689568 -6.216570979583546 C34.80500489210184 -5.938696164184051, 34.897265687308 -5.660821348784557, 35.07633385465989 -5.121496559358589 M34.71274409689568 -6.216570979583546 C34.790910496459645 -5.981146238221355, 34.869076896023614 -5.745721496859165, 35.07633385465989 -5.121496559358589 M35.07633385465989 -5.121496559358589 C35.139764754666494 -4.879607046507465, 35.20319565467309 -4.637717533656339, 35.36901491927283 -4.005376811213661 M35.07633385465989 -5.121496559358589 C35.173123427075886 -4.7523959708703725, 35.26991299949188 -4.383295382382155, 35.36901491927283 -4.005376811213661 M35.36901491927283 -4.005376811213661 C35.44188534277973 -3.6312025876751783, 35.51475576628663 -3.257028364136696, 35.5895846014601 -2.872798110600833 M35.36901491927283 -4.005376811213661 C35.42949171669368 -3.6948412382332307, 35.48996851411454 -3.384305665252801, 35.5895846014601 -2.872798110600833 M35.5895846014601 -2.872798110600833 C35.629337820181796 -2.5644799963563076, 35.669091038903495 -2.256161882111783, 35.73713653308557 -1.728414466338275 M35.5895846014601 -2.872798110600833 C35.62185572748835 -2.6225096297803385, 35.65412685351661 -2.372221148959844, 35.73713653308557 -1.728414466338275 M35.73713653308557 -1.728414466338275 C35.75280681342587 -1.484337201215443, 35.76847709376617 -1.240259936092611, 35.81106439161238 -0.576928396289793 M35.73713653308557 -1.728414466338275 C35.752783294895224 -1.4847035213140454, 35.76843005670489 -1.2409925762898155, 35.81106439161238 -0.576928396289793 M35.81106439161238 -0.576928396289793 C35.81106439161238 -0.14769429765257924, 35.81106439161238 0.2815398009846345, 35.81106439161238 0.5769283962897886 M35.81106439161238 -0.576928396289793 C35.81106439161238 -0.1847732309955737, 35.81106439161238 0.2073819342986456, 35.81106439161238 0.5769283962897886 M35.81106439161238 0.5769283962897886 C35.782535475511146 1.021289292693194, 35.7540065594099 1.4656501890965994, 35.73713653308557 1.7284144663382628 M35.81106439161238 0.5769283962897886 C35.79613099270642 0.8095281382727743, 35.781197593800464 1.0421278802557599, 35.73713653308557 1.7284144663382628 M35.73713653308557 1.7284144663382628 C35.696910017162544 2.040403380213184, 35.65668350123952 2.3523922940881055, 35.5895846014601 2.8727981106008205 M35.73713653308557 1.7284144663382628 C35.70760011738601 1.9574930738790592, 35.67806370168645 2.1865716814198555, 35.5895846014601 2.8727981106008205 M35.5895846014601 2.8727981106008205 C35.521845418981684 3.2206244959462227, 35.454106236503264 3.568450881291625, 35.36901491927283 4.005376811213657 M35.5895846014601 2.8727981106008205 C35.534468900228894 3.155805587715512, 35.47935319899768 3.438813064830203, 35.36901491927283 4.005376811213657 M35.36901491927283 4.005376811213657 C35.3039305908837 4.253571563087751, 35.238846262494576 4.501766314961844, 35.07633385465989 5.121496559358577 M35.36901491927283 4.005376811213657 C35.28981419588297 4.307403495309829, 35.210613472493115 4.609430179406001, 35.07633385465989 5.121496559358577 M35.07633385465989 5.121496559358577 C35.000630895102454 5.349501811916972, 34.92492793554502 5.577507064475368, 34.71274409689569 6.216570979583534 M35.07633385465989 5.121496559358577 C35.00325610019697 5.341595112441923, 34.93017834573405 5.561693665525269, 34.71274409689569 6.216570979583534 M34.71274409689569 6.216570979583534 C34.542454569264144 6.637189405157499, 34.37216504163259 7.057807830731464, 34.279739714284624 7.286100176203088 M34.71274409689569 6.216570979583534 C34.57337358598899 6.560818836068602, 34.43400307508229 6.905066692553671, 34.279739714284624 7.286100176203088 M34.279739714284624 7.286100176203088 C34.083532497457085 7.693528660107385, 33.88732528062954 8.100957144011684, 33.779100014714004 8.325689224335031 M34.279739714284624 7.286100176203088 C34.146927540736506 7.561887496301038, 34.01411536718838 7.837674816398988, 33.779100014714004 8.325689224335031 M33.779100014714004 8.325689224335031 C33.62343475901204 8.60208864865027, 33.46776950331007 8.878488072965506, 33.21288223409623 9.33106622958945 M33.779100014714004 8.325689224335031 C33.590028290890245 8.661405215572223, 33.40095656706649 8.997121206809414, 33.21288223409623 9.33106622958945 M33.21288223409623 9.33106622958945 C32.99893459137532 9.659747261795022, 32.7849869486544 9.988428294000595, 32.58341308274521 10.298099882199049 M33.21288223409623 9.33106622958945 C33.07660185488632 9.540429488461669, 32.94032147567641 9.749792747333887, 32.58341308274521 10.298099882199049 M32.58341308274521 10.298099882199049 C32.40059637330079 10.543057617909716, 32.21777966385637 10.78801535362038, 31.89327918442454 11.2228164334572 M32.58341308274521 10.298099882199049 C32.40834623128228 10.53267351424111, 32.23327937981934 10.767247146283172, 31.89327918442454 11.2228164334572 M31.89327918442454 11.2228164334572 C31.59758970115178 11.570150125717616, 31.301900217879023 11.917483817978033, 31.145316447355682 12.101416024703695 M31.89327918442454 11.2228164334572 C31.675527042985166 11.478600489239742, 31.457774901545793 11.734384545022282, 31.145316447355682 12.101416024703695 M31.145316447355682 12.101416024703695 C30.831128007274167 12.42584138443852, 30.51693956719265 12.750266744173347, 30.34259841086276 12.930288301759093 M31.145316447355682 12.101416024703695 C30.898127720106014 12.356658680160914, 30.650938992856346 12.611901335618134, 30.34259841086276 12.930288301759093 M30.34259841086276 12.930288301759093 C30.006122105100527 13.235867179977156, 29.66964579933829 13.541446058195218, 29.488423615540203 13.706027250644409 M30.34259841086276 12.930288301759093 C30.122146496600735 13.130496897453844, 29.901694582338706 13.330705493148594, 29.488423615540203 13.706027250644409 M29.488423615540203 13.706027250644409 C29.298028518641473 13.857862273794833, 29.107633421742744 14.009697296945257, 28.586302048841894 14.425445193623217 M29.488423615540203 13.706027250644409 C29.30498026558308 13.852318440602659, 29.121536915625953 13.998609630560908, 28.586302048841894 14.425445193623217 M28.586302048841894 14.425445193623217 C28.286107785013424 14.634847716869722, 27.985913521184955 14.844250240116224, 27.639940721789884 15.085585888053126 M28.586302048841894 14.425445193623217 C28.354240927919445 14.587320985814701, 28.122179806996993 14.749196778006187, 27.639940721789884 15.085585888053126 M27.639940721789884 15.085585888053126 C27.401054660867334 15.230400022034695, 27.162168599944785 15.375214156016265, 26.653228436070883 15.68373667422101 M27.639940721789884 15.085585888053126 C27.294700639079412 15.294872455048141, 26.949460556368937 15.504159022043156, 26.653228436070883 15.68373667422101 M26.653228436070883 15.68373667422101 C26.4249158573435 15.802847200301898, 26.19660327861612 15.921957726382788, 25.63021980411605 16.217439622243543 M26.653228436070883 15.68373667422101 C26.27277839999297 15.882217214352977, 25.892328363915055 16.080697754484945, 25.63021980411605 16.217439622243543 M25.63021980411605 16.217439622243543 C25.34335637371326 16.344425553381537, 25.056492943310474 16.471411484519532, 24.57511858782874 16.68450163222839 M25.63021980411605 16.217439622243543 C25.414825939081698 16.31278809686226, 25.199432074047348 16.408136571480977, 24.57511858782874 16.68450163222839 M24.57511858782874 16.68450163222839 C24.19187666312812 16.825538203167735, 23.8086347384275 16.96657477410708, 23.492260424425183 17.08300344619203 M24.57511858782874 16.68450163222839 C24.266007081379108 16.798257523997297, 23.956895574929476 16.912013415766204, 23.492260424425183 17.08300344619203 M23.492260424425183 17.08300344619203 C23.128516480866438 17.190960739309347, 22.764772537307692 17.29891803242666, 22.38609501037115 17.411307534702527 M23.492260424425183 17.08300344619203 C23.056456100113948 17.212347882064027, 22.620651775802717 17.341692317936023, 22.38609501037115 17.411307534702527 M22.38609501037115 17.411307534702527 C21.967789171510276 17.506783112721816, 21.5494833326494 17.60225869074111, 21.261167816624706 17.668064825839174 M22.38609501037115 17.411307534702527 C22.050696823516226 17.487859982174452, 21.715298636661302 17.564412429646374, 21.261167816624706 17.668064825839174 M21.261167816624706 17.668064825839174 C21.01410481090874 17.708008056601106, 20.767041805192775 17.74795128736304, 20.122101410321118 17.85222024881843 M21.261167816624706 17.668064825839174 C20.825406587341554 17.738515322010873, 20.3896453580584 17.808965818182568, 20.122101410321118 17.85222024881843 M20.122101410321118 17.85222024881843 C19.85565695339579 17.877923825131674, 19.589212496470466 17.90362740144492, 18.973576459652833 17.963017069506055 M20.122101410321118 17.85222024881843 C19.689627730258024 17.89394046460842, 19.25715405019493 17.93566068039841, 18.973576459652833 17.963017069506055 M18.973576459652833 17.963017069506055 C18.70295578630981 17.97169534776898, 18.432335112966793 17.980373626031906, 17.820312500000004 18 M18.973576459652833 17.963017069506055 C18.590889020016444 17.97528911083928, 18.20820158038006 17.987561152172503, 17.820312500000004 18 M17.820312500000004 18 C17.820312500000004 18, 17.820312500000004 18, 17.8203125 18 M17.820312500000004 18 C17.820312500000004 18, 17.8203125 18, 17.8203125 18 M17.8203125 18 C6.045363945257639 18, -5.729584609484721 18, -17.820312499999996 18 M17.8203125 18 C5.546869551259908 18, -6.726573397480184 18, -17.820312499999996 18 M-17.820312499999996 18 C-18.149572398803123 17.9894412759109, -18.478832297606253 17.978882551821798, -18.973576459652826 17.963017069506055 M-17.820312499999996 18 C-18.195373173895785 17.98797253419948, -18.570433847791573 17.975945068398953, -18.973576459652826 17.963017069506055 M-18.973576459652826 17.963017069506055 C-19.372603104877932 17.924523448940942, -19.771629750103042 17.88602982837583, -20.12210141032111 17.85222024881843 M-18.973576459652826 17.963017069506055 C-19.352758655265756 17.926437819128587, -19.731940850878686 17.889858568751116, -20.12210141032111 17.85222024881843 M-20.12210141032111 17.85222024881843 C-20.508738474763614 17.78971176665458, -20.895375539206118 17.727203284490734, -21.2611678166247 17.668064825839174 M-20.12210141032111 17.85222024881843 C-20.570735919577036 17.779688500574512, -21.01937042883296 17.707156752330594, -21.2611678166247 17.668064825839174 M-21.2611678166247 17.668064825839174 C-21.57756898677632 17.59584832346266, -21.893970156927942 17.523631821086145, -22.38609501037113 17.41130753470253 M-21.2611678166247 17.668064825839174 C-21.638208520662438 17.582007745563093, -22.01524922470018 17.495950665287012, -22.38609501037113 17.41130753470253 M-22.38609501037113 17.41130753470253 C-22.628280552254576 17.339428137129374, -22.870466094138028 17.267548739556215, -23.49226042442516 17.083003446192038 M-22.38609501037113 17.41130753470253 C-22.70611843784761 17.31632626126476, -23.026141865324092 17.221344987826992, -23.49226042442516 17.083003446192038 M-23.49226042442516 17.083003446192038 C-23.904917824035415 16.931141708572277, -24.317575223645672 16.77927997095252, -24.575118587828737 16.68450163222839 M-23.49226042442516 17.083003446192038 C-23.762045299574886 16.983720118272892, -24.031830174724607 16.884436790353746, -24.575118587828737 16.68450163222839 M-24.575118587828737 16.68450163222839 C-24.845741253665384 16.56470500579866, -25.11636391950203 16.444908379368936, -25.630219804116045 16.217439622243546 M-24.575118587828737 16.68450163222839 C-24.876423741532957 16.551122778583352, -25.177728895237173 16.417743924938318, -25.630219804116045 16.217439622243546 M-25.630219804116045 16.217439622243546 C-25.89324550475614 16.08021928269561, -26.156271205396237 15.942998943147675, -26.653228436070876 15.683736674221013 M-25.630219804116045 16.217439622243546 C-25.898785198071597 16.07732922824128, -26.167350592027145 15.937218834239015, -26.653228436070876 15.683736674221013 M-26.653228436070876 15.683736674221013 C-26.922042158675662 15.52078021585321, -27.19085588128045 15.357823757485406, -27.639940721789863 15.085585888053139 M-26.653228436070876 15.683736674221013 C-27.022554588250625 15.459848990368267, -27.391880740430373 15.235961306515522, -27.639940721789863 15.085585888053139 M-27.639940721789863 15.085585888053139 C-27.849319796565815 14.939532109363498, -28.058698871341768 14.793478330673857, -28.586302048841887 14.42544519362322 M-27.639940721789863 15.085585888053139 C-27.904135180730776 14.901295270289758, -28.16832963967169 14.717004652526375, -28.586302048841887 14.42544519362322 M-28.586302048841887 14.42544519362322 C-28.91344657655997 14.164556138449546, -29.240591104278053 13.903667083275872, -29.488423615540185 13.706027250644423 M-28.586302048841887 14.42544519362322 C-28.811368050103866 14.24596104687462, -29.036434051365845 14.066476900126016, -29.488423615540185 13.706027250644423 M-29.488423615540185 13.706027250644423 C-29.789819146504506 13.43230780391139, -30.091214677468823 13.15858835717836, -30.34259841086275 12.930288301759106 M-29.488423615540185 13.706027250644423 C-29.810365960959075 13.413647730662671, -30.13230830637796 13.12126821068092, -30.34259841086275 12.930288301759106 M-30.34259841086275 12.930288301759106 C-30.545759479542244 12.720507818513584, -30.748920548221744 12.510727335268061, -31.145316447355682 12.101416024703703 M-30.34259841086275 12.930288301759106 C-30.64918393834762 12.613713573491053, -30.955769465832486 12.297138845223001, -31.145316447355682 12.101416024703703 M-31.145316447355682 12.101416024703703 C-31.4387982245541 11.756675629620243, -31.73228000175251 11.411935234536783, -31.893279184424536 11.222816433457206 M-31.145316447355682 12.101416024703703 C-31.432647182100737 11.763900994090191, -31.719977916845792 11.42638596347668, -31.893279184424536 11.222816433457206 M-31.893279184424536 11.222816433457206 C-32.10037104354405 10.945332208693538, -32.30746290266357 10.66784798392987, -32.5834130827452 10.29809988219906 M-31.893279184424536 11.222816433457206 C-32.037366350183206 11.029752757951426, -32.18145351594188 10.836689082445647, -32.5834130827452 10.29809988219906 M-32.5834130827452 10.29809988219906 C-32.786609998899735 9.985934852973749, -32.98980691505427 9.67376982374844, -33.21288223409623 9.33106622958946 M-32.5834130827452 10.29809988219906 C-32.72506366837037 10.08048654417067, -32.86671425399553 9.862873206142282, -33.21288223409623 9.33106622958946 M-33.21288223409623 9.33106622958946 C-33.366778988868894 9.05780695775433, -33.520675743641554 8.784547685919202, -33.779100014714004 8.325689224335036 M-33.21288223409623 9.33106622958946 C-33.34810440827072 9.090965566612724, -33.483326582445216 8.850864903635985, -33.779100014714004 8.325689224335036 M-33.779100014714004 8.325689224335036 C-33.88320462296945 8.109513777810811, -33.987309231224906 7.893338331286587, -34.279739714284624 7.286100176203095 M-33.779100014714004 8.325689224335036 C-33.948414965951024 7.9741031053317695, -34.117729917188036 7.6225169863285025, -34.279739714284624 7.286100176203095 M-34.279739714284624 7.286100176203095 C-34.442151924013096 6.884938878147307, -34.60456413374157 6.483777580091518, -34.71274409689568 6.2165709795835475 M-34.279739714284624 7.286100176203095 C-34.37220252223557 7.05771525291749, -34.464665330186506 6.829330329631885, -34.71274409689568 6.2165709795835475 M-34.71274409689568 6.2165709795835475 C-34.82936957945983 5.865313607847547, -34.94599506202397 5.514056236111546, -35.07633385465989 5.121496559358584 M-34.71274409689568 6.2165709795835475 C-34.79697813240519 5.9628714854998925, -34.88121216791469 5.709171991416238, -35.07633385465989 5.121496559358584 M-35.07633385465989 5.121496559358584 C-35.189253523491736 4.690884922408721, -35.30217319232357 4.260273285458856, -35.36901491927282 4.005376811213663 M-35.07633385465989 5.121496559358584 C-35.19104211690854 4.684064240529133, -35.305750379157196 4.246631921699682, -35.36901491927282 4.005376811213663 M-35.36901491927282 4.005376811213663 C-35.41656521071168 3.7612161144327616, -35.46411550215055 3.5170554176518594, -35.5895846014601 2.8727981106008347 M-35.36901491927282 4.005376811213663 C-35.4199731516273 3.7437170580996275, -35.470931383981785 3.4820573049855916, -35.5895846014601 2.8727981106008347 M-35.5895846014601 2.8727981106008347 C-35.644981532882575 2.4431504498495666, -35.70037846430505 2.013502789098299, -35.73713653308556 1.7284144663382852 M-35.5895846014601 2.8727981106008347 C-35.641068800368274 2.473496830574034, -35.69255299927645 2.074195550547233, -35.73713653308556 1.7284144663382852 M-35.73713653308556 1.7284144663382852 C-35.75912937784544 1.3858581568984252, -35.78112222260532 1.0433018474585654, -35.81106439161238 0.5769283962897952 M-35.73713653308556 1.7284144663382852 C-35.765354416891995 1.2888981489872524, -35.79357230069843 0.8493818316362198, -35.81106439161238 0.5769283962897952 M-35.81106439161238 0.5769283962897952 C-35.81106439161238 0.27025518773281526, -35.81106439161238 -0.036418020824164676, -35.81106439161238 -0.5769283962897864 M-35.81106439161238 0.5769283962897952 C-35.81106439161238 0.13653269028117426, -35.81106439161238 -0.3038630157274467, -35.81106439161238 -0.5769283962897864 M-35.81106439161238 -0.5769283962897864 C-35.782493212633966 -1.0219475711191914, -35.75392203365555 -1.4669667459485964, -35.73713653308557 -1.7284144663382603 M-35.81106439161238 -0.5769283962897864 C-35.78353463949299 -1.0057265071652233, -35.75600488737361 -1.4345246180406603, -35.73713653308557 -1.7284144663382603 M-35.73713653308557 -1.7284144663382603 C-35.69599968780889 -2.0474637149152644, -35.65486284253221 -2.3665129634922684, -35.5895846014601 -2.8727981106008262 M-35.73713653308557 -1.7284144663382603 C-35.686772206729984 -2.1190302359910027, -35.636407880374406 -2.509646005643745, -35.5895846014601 -2.8727981106008262 M-35.5895846014601 -2.8727981106008262 C-35.539317693590874 -3.1309080585945672, -35.48905078572165 -3.3890180065883087, -35.36901491927283 -4.005376811213655 M-35.5895846014601 -2.8727981106008262 C-35.54347256065789 -3.1095736943369086, -35.49736051985568 -3.346349278072991, -35.36901491927283 -4.005376811213655 M-35.36901491927283 -4.005376811213655 C-35.30025418704199 -4.267591284299681, -35.231493454811165 -4.529805757385707, -35.07633385465989 -5.121496559358575 M-35.36901491927283 -4.005376811213655 C-35.29622556179938 -4.282954178366985, -35.223436204325935 -4.560531545520315, -35.07633385465989 -5.121496559358575 M-35.07633385465989 -5.121496559358575 C-34.988659369026784 -5.3855581410532505, -34.90098488339367 -5.649619722747926, -34.71274409689569 -6.2165709795835244 M-35.07633385465989 -5.121496559358575 C-34.94046442799599 -5.530713624616952, -34.80459500133208 -5.939930689875331, -34.71274409689569 -6.2165709795835244 M-34.71274409689569 -6.2165709795835244 C-34.58461491217113 -6.53305254306245, -34.45648572744657 -6.849534106541375, -34.279739714284624 -7.286100176203086 M-34.71274409689569 -6.2165709795835244 C-34.60826015587445 -6.474648333965577, -34.5037762148532 -6.73272568834763, -34.279739714284624 -7.286100176203086 M-34.279739714284624 -7.286100176203086 C-34.085699387706406 -7.689029066140643, -33.89165906112819 -8.091957956078199, -33.779100014714004 -8.32568922433503 M-34.279739714284624 -7.286100176203086 C-34.12131351376081 -7.615075571368447, -33.962887313237 -7.9440509665338075, -33.779100014714004 -8.32568922433503 M-33.779100014714004 -8.32568922433503 C-33.6378934858018 -8.576415715130201, -33.4966869568896 -8.827142205925371, -33.21288223409623 -9.331066229589455 M-33.779100014714004 -8.32568922433503 C-33.58264614897225 -8.67451295607055, -33.3861922832305 -9.023336687806072, -33.21288223409623 -9.331066229589455 M-33.21288223409623 -9.331066229589455 C-32.972331411519825 -9.700616890007094, -32.73178058894343 -10.070167550424731, -32.58341308274521 -10.298099882199054 M-33.21288223409623 -9.331066229589455 C-32.96426470332419 -9.713009520010047, -32.715647172552146 -10.094952810430637, -32.58341308274521 -10.298099882199054 M-32.58341308274521 -10.298099882199054 C-32.41605681586246 -10.52234203335237, -32.24870054897972 -10.746584184505686, -31.893279184424543 -11.2228164334572 M-32.58341308274521 -10.298099882199054 C-32.393921642545806 -10.55200114904092, -32.2044302023464 -10.805902415882787, -31.893279184424543 -11.2228164334572 M-31.893279184424543 -11.2228164334572 C-31.606349409795868 -11.559860473502734, -31.319419635167193 -11.896904513548266, -31.145316447355686 -12.101416024703695 M-31.893279184424543 -11.2228164334572 C-31.630706307788532 -11.53124947517379, -31.368133431152526 -11.839682516890383, -31.145316447355686 -12.101416024703695 M-31.145316447355686 -12.101416024703695 C-30.94029042124558 -12.313122229612171, -30.735264395135477 -12.524828434520646, -30.342598410862763 -12.930288301759086 M-31.145316447355686 -12.101416024703695 C-30.956781858792475 -12.296093466372803, -30.768247270229264 -12.490770908041908, -30.342598410862763 -12.930288301759086 M-30.342598410862763 -12.930288301759086 C-30.07897343187001 -13.169705532545587, -29.81534845287726 -13.409122763332087, -29.488423615540206 -13.706027250644407 M-30.342598410862763 -12.930288301759086 C-30.05785665685987 -13.188883228890546, -29.773114902856978 -13.447478156022008, -29.488423615540206 -13.706027250644407 M-29.488423615540206 -13.706027250644407 C-29.153904752162042 -13.972797142267682, -28.81938588878388 -14.239567033890957, -28.586302048841894 -14.425445193623215 M-29.488423615540206 -13.706027250644407 C-29.290979959656422 -13.86348331201538, -29.093536303772638 -14.020939373386353, -28.586302048841894 -14.425445193623215 M-28.586302048841894 -14.425445193623215 C-28.271225043437767 -14.645229273129399, -27.95614803803364 -14.865013352635584, -27.639940721789888 -15.085585888053124 M-28.586302048841894 -14.425445193623215 C-28.387993291723568 -14.563776797941223, -28.189684534605245 -14.702108402259231, -27.639940721789888 -15.085585888053124 M-27.639940721789888 -15.085585888053124 C-27.433230626949747 -15.210894762308572, -27.226520532109607 -15.336203636564019, -26.653228436070883 -15.683736674221008 M-27.639940721789888 -15.085585888053124 C-27.427221199016955 -15.214537712836748, -27.214501676244023 -15.343489537620373, -26.653228436070883 -15.683736674221008 M-26.653228436070883 -15.683736674221008 C-26.431240188796018 -15.799547800634047, -26.209251941521153 -15.915358927047086, -25.630219804116052 -16.217439622243543 M-26.653228436070883 -15.683736674221008 C-26.365645777124385 -15.833768363187911, -26.078063118177887 -15.983800052154814, -25.630219804116052 -16.217439622243543 M-25.630219804116052 -16.217439622243543 C-25.305909207747142 -16.361002302924028, -24.98159861137823 -16.504564983604514, -24.575118587828744 -16.684501632228386 M-25.630219804116052 -16.217439622243543 C-25.36386282435783 -16.335347955983433, -25.09750584459961 -16.45325628972332, -24.575118587828744 -16.684501632228386 M-24.575118587828744 -16.684501632228386 C-24.30611624192265 -16.783496982152258, -24.037113896016553 -16.882492332076126, -23.492260424425186 -17.08300344619203 M-24.575118587828744 -16.684501632228386 C-24.174145324013452 -16.83206349986863, -23.773172060198164 -16.97962536750888, -23.492260424425186 -17.08300344619203 M-23.492260424425186 -17.08300344619203 C-23.051914880577495 -17.213695692185098, -22.611569336729804 -17.344387938178166, -22.38609501037115 -17.411307534702523 M-23.492260424425186 -17.08300344619203 C-23.09101980788064 -17.202089555027477, -22.689779191336097 -17.32117566386292, -22.38609501037115 -17.411307534702523 M-22.38609501037115 -17.411307534702523 C-22.018962508989983 -17.49510313237931, -21.651830007608815 -17.578898730056093, -21.26116781662471 -17.668064825839174 M-22.38609501037115 -17.411307534702523 C-21.96617442884179 -17.507151667198716, -21.546253847312432 -17.60299579969491, -21.26116781662471 -17.668064825839174 M-21.26116781662471 -17.668064825839174 C-20.835653089720736 -17.736858746969016, -20.410138362816767 -17.805652668098862, -20.12210141032112 -17.85222024881843 M-21.26116781662471 -17.668064825839174 C-20.891567741433494 -17.7278188997047, -20.521967666242276 -17.787572973570224, -20.12210141032112 -17.85222024881843 M-20.12210141032112 -17.85222024881843 C-19.678659606201215 -17.894998546345082, -19.235217802081305 -17.93777684387173, -18.973576459652833 -17.963017069506055 M-20.12210141032112 -17.85222024881843 C-19.670102515569102 -17.895824038586955, -19.218103620817082 -17.939427828355477, -18.973576459652833 -17.963017069506055 M-18.973576459652833 -17.963017069506055 C-18.5918031817374 -17.975259795452196, -18.21002990382197 -17.987502521398337, -17.820312500000007 -18 M-18.973576459652833 -17.963017069506055 C-18.641579110324262 -17.973663578305384, -18.30958176099569 -17.984310087104713, -17.820312500000007 -18 M-17.820312500000007 -18 C-17.820312500000004 -18, -17.820312500000004 -18, -17.8203125 -18 M-17.820312500000007 -18 C-17.820312500000004 -18, -17.820312500000004 -18, -17.8203125 -18" stroke="#999" stroke-width="1.3" fill="none" stroke-dasharray="0 0" style=""/></g><g class="label" style="" transform="translate(-23.8203125, -10.5)"><rect/><foreignObject width="47.640625" height="21"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>fulfilled</p></span></div></foreignObject></g></g></g></g></g><defs><filter id="dg3-drop-shadow" height="130%" width="130%"><feDropShadow dx="4" dy="4" stdDeviation="0" flood-opacity="0.06" flood-color="#000000"/></filter></defs><defs><filter id="dg3-drop-shadow-small" height="150%" width="150%"><feDropShadow dx="2" dy="2" stdDeviation="0" flood-opacity="0.06" flood-color="#000000"/></filter></defs><linearGradient id="dg3-gradient" gradientUnits="objectBoundingBox" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="hsl(0, 0%, 83.3333333333%)" stop-opacity="1"/><stop offset="100%" stop-color="hsl(0, 0%, 88.9215686275%)" stop-opacity="1"/></linearGradient></svg></div>
- <figcaption>Where the gate acts: local make targets → the commit → the PR → CI → the merge. The merge edge matters: after any merge the digest is recomputed over the <em>merged</em> tree, so an ack that only covered one side fails until the merged content is reviewed as a whole.</figcaption>
-</figure>
-
-<h3>Where it acts, surface by surface</h3>
-
-<table>
- <thead><tr><th>Surface</th><th>What happens there</th></tr></thead>
- <tbody>
- <tr><td><strong>Make targets</strong></td><td><code>make drift-check</code> (<code>dc</code>) is the pass/fail gate; <code>make drift-plan</code> (<code>dp</code>) prints one packet per open contract — what changed, what to review, the previous reviewer's rationale; <code>make drift-ack CONTRACT=… RATIONALE="…"</code> (<code>da</code>) records the review, running the contract's <code>verify_commands</code> first.</td></tr>
- <tr><td><strong>Quality checks</strong></td><td><code>drift-check</code> runs inside the <code>make check</code> aggregate — a full local check cannot pass with an open contract. It also hard-fails on manifest rot (dead globs, orphan acks, shadowed triggers), so a rename that kills a trigger pattern is caught on the same PR.</td></tr>
- <tr><td><strong>Commits</strong></td><td><code>drift ack</code> writes the ack file <em>and stages it</em>, into the same index the check reads — so the code change, the doc fix, and the ack land in one commit, reviewed as one diff. If staging fails, the ack is rolled back rather than left as a false green.</td></tr>
- <tr><td><strong>Branches / merges</strong></td><td>Two branches re-acking the same contract may or may not conflict textually — irrelevant either way, because after the merge the digest is recomputed over the merged tree, and a spliced or stale ack simply fails until re-acked.</td></tr>
- <tr><td><strong>PRs / CI</strong></td><td>A <code>lint-drift</code> CI job runs the check on every PR — currently <em>advisory</em> (visible, not merge-blocking; promotion to a required check is planned once the open-PR backlog lands). The committed ack appears in the PR diff, so the reviewer sees the rationale right next to the change it covers.</td></tr>
- </tbody>
-</table>
-
-<h3>The pieces on disk</h3>
-
-<ul>
- <li><code>drift.toml</code> (repo root, human-authored) — the manifest. Each contract: <code>triggers</code> (globs), optional <code>exclude</code>, <code>review</code> targets, optional <code>verify_commands</code>. Live today: <strong>config-docs</strong> (config model + shipped defaults → configuration docs, verified by a boot test), <strong>cli-docs</strong> (CLI source → CLI docs + the agent-CLI contract doc), <strong>keyword-only-convention</strong> (the guard's source → its specification page).</li>
- <li><code>.drift/acks/&lt;contract-id&gt;.toml</code> (tool-written, committed) — the last fulfilled review: digest, reviewer, timestamp, rationale, per-file trigger snapshot.</li>
- <li><code>pipelex-dev drift plan|check|ack</code> — the engine the make targets wrap.</li>
-</ul>
-
-<details>
-<summary>Why there is deliberately no bypass</summary>
-<div class="body">
-<p><code>drift ack</code> has no <code>--skip-verify</code> and <code>drift check</code> has no override label. Every escape hatch is a rubber-stamp invitation — and the legitimate escape already exists: acking with a rationale that says <em>“reviewed, no doc change needed”</em> is cheap, honest, and auditable. If a contract opens so often that acking feels like ceremony, the contract is mis-scoped: narrow its triggers, or mechanize it into a derived check. The manifest is kept deliberately small — contracts are added where staleness has actually hurt, and the campaign's density data is exactly the evidence for where that is.</p>
-<p>One hardening detail worth knowing: for a contract with <code>verify_commands</code>, an <em>unstaged</em> edit or untracked file matching the triggers is a hard error, not a warning — the verify commands run on the working tree, so they would otherwise certify content the digest doesn't cover. The check runs both before the verify commands (fail fast) and after them (catching files the verify commands themselves regenerate).</p>
-</div>
-</details>
-
-<h2>How the two halves reinforce each other</h2>
-
-<p>The campaign wasn't just cleanup — it was an evidence-gathering run for the contract system. Every finding logged an observation about whether a contract or a derived check would have caught it. The resulting shortlist feeds the system's pilot verdict:</p>
-
-<ul>
- <li><strong>Best derived-check candidates:</strong> diff documented closed enumerations against the code's registries; validate doc bundle examples against the real parser (with placeholder scaffolding injected); import-and-check every Python symbol a doc references.</li>
- <li><strong>Best <em>contract</em> candidate:</strong> make-targets-and-tooling — every documented target <em>exists</em>, so no script scores a single point; what drifts is behavior under a stable name. Un-mechanizable, judgment-only: exactly what a review contract is for.</li>
- <li><strong>Known limit of any snippet checker</strong> (proven the hard way): it verifies the snippet, never the sentence beside it. A green check must not be read as a clean page.</li>
-</ul>
-
-<details>
-<summary>Open follow-ups after this recap</summary>
-<div class="body">
-<ul>
- <li><strong>Pilot verdict per contract</strong> (keep / narrow / mechanize / drop), fed by the campaign's shortlist and the per-ack dogfood log.</li>
- <li><strong>Promote the CI job from advisory to required</strong>, once the open-PR backlog has landed (a required check would instantly fail every PR predating its acks).</li>
- <li><strong>Deferred code-side findings</strong> — the hunt surfaced defects whose fix belongs in code, not docs (e.g. an error message whose remediation names config fields that don't exist; a dependency floor that admits a parser too old for the documented syntax). They're recorded with evidence and candidate fixes, to be picked up as ordinary follow-ups.</li>
- <li><strong>The cookbook sweep</strong>, if ever revived — the reusable review harness (rules, carve-outs, verification pipeline) is archived and ready.</li>
-</ul>
-</div>
-</details>
-
-<footer>
-<p>Where things live in the repo: the system doc is <code>docs/contribute/drift-contracts.md</code>; the manifest is <code>drift.toml</code> with acks under <code>.drift/acks/</code>; the campaign record is <code>wip/drift-hunt/findings/SUMMARY.md</code> with the code-side handoff in <code>wip/drift-hunt/deferred-code-findings.md</code>; the full per-finding audit trail is preserved under the pushed git tag <code>drift-hunt-archive</code>.</p>
-<p>Self-contained document — diagrams pre-rendered from mermaid sources; no external resources.</p>
-</footer>
-
-</main>
-</body>
-</html>
diff --git a/wip/drift-hunt/findings/SUMMARY.md b/wip/drift-hunt/findings/SUMMARY.md
deleted file mode 100644
index c681d90c8..000000000
--- a/wip/drift-hunt/findings/SUMMARY.md
+++ /dev/null
@@ -1,125 +0,0 @@
-# Drift Hunt — findings SUMMARY (campaign record)
-
-**CAMPAIGN COMPLETE (2026-07-12).** This file and `inventory.md` are the surviving record; the per-section findings files (with every finding's `file:line` evidence and fix-time resolution records) and the prescreen artifacts were pruned at close-out and live in git history under the pushed **`drift-hunt-archive` tag** — `git show drift-hunt-archive:wip/drift-hunt/findings/<file>` (the tag pins commit `9a6201a5e` and survives squash-merges and branch deletion). The close-out section at the bottom is the handoff: coverage disclosure, Stage-2 resolution totals, the drift-contract shortlist for the Phase 3 verdict, and the deferred code findings.
-
-Per-section defect density is the campaign's headline metric; the rejected-findings column tracks how much the adversarial-verify pass (D6) filtered. Denominators come from `wip/drift-hunt/inventory.md`.
-
-## Per-section scoreboard
-
-Counts are **drift** findings (after the authoring-convention carve-out, below). Convention reclassifications are tracked in the last column.
-
-| Section | Pages | Claims checked | Drift | Convention | Rejected (D6) | Density | 🔴 breaks | 🟠 wrong | 🟡 misleading | ⚪ stale | Findings file |
-|---|---|---|---|---|---|---|---|---|---|---|---|
-| building-methods | 35 | 452 | 44 | 3 | 0 | 1.26 | 25 | 11 | 6 | 2 | `building-methods.md` (pruned — git history) |
-| under-the-hood + advanced | 26 | 435 | 42 | 0 | 0 | 1.62 | 10 | 23 | 4 | 5 | `under-the-hood-advanced.md` (pruned — git history) |
-| features + reliability | 25 | 308 | 10 | 0 | 0 | **0.40** | 2 | 7 | 1 | 0 | `features-reliability.md` (pruned — git history) |
-| the tail (get-started, contribute, tools non-CLI, setup, viewpoint, root, D9 adds) | 18 | 244 | 13 | 0 | 0 | 0.72 | 2 | 9 | 2 | 0 | `the-tail.md` (pruned — git history) |
-| cookbook | 21 | — | — | — | — | — | — | — | — | — | *(NEVER SWEPT — deferred, D12)* |
-| **Total (STAGE 1 COMPLETE)** | **104** | **1439** | **109** | **3** | **0** | **1.05** | 39 | 50 | 13 | 7 | |
-
-> **Part 2 density caveat:** 42/26 = 1.62, but 5 of the 26 pages are 8-line "Under Construction" stubs (`advanced/*-injection.md`, nothing checkable). Against the 21 *substantive* pages, density is 2.0 (14 dirty / 7 clean).
-
-> **Part 3 is the campaign's outlier — and it is a real one.** 0.40 findings/page, ~4× cleaner than the technical sections, with **all four reliability pages clean**. A clean sweep on pages seeded as high-risk is exactly where this campaign could fool itself, so the load-bearing "clean" claims were hand-verified after the run (retry config keys + defaults, telemetry enum values, the cost-tracking snippet's imports, the `deepseek-ocr` handle) — all held. **The capability/landing pages drift far less than the internals pages.**
-
-> **Stage 1 is complete: 104 pages, 1,439 claims, 109 drift findings, 0 rejected.** Density lands almost exactly at **1 finding per page**. The single strongest signal across all four parts is not *what* the page is about but *who it is for*: **pages whose author is also their reader stay current; pages that explain something to someone else drift.** Part 4 shows it cleanly — the maintainer-facing pages (drift-contracts, keyword-only, telemetry setup) came back clean, while the onboarding page, the contributor setup, the agent playbook and the docs-site notes all drifted. That is where contract budget should go.
-
-> **The zero-rejection rate is now itself a finding — and Part 4 tells us how to read it.** Across 109 confirmed findings, adversarial verify (D6) refuted *nothing*. That could mean the review agents are calibrated, or it could mean the verify pass is a rubber stamp. Part 4 supplies the tiebreaker: the post-run **false-negative** checks broke a clean verdict (Part 4's F13) that both the reviewer *and* the verifier had passed over. So the pipeline's error is not over-reporting; **it is under-reporting — false negatives, not false positives.** D6 is working; what it does not do is find what nobody looked for. The FN spot-check should be a standing step, not an afterthought.
-
-## Top defect classes so far
-
-1. **Renamed Python API/method never propagated into docs** — now the single biggest cross-part class. Building-methods: `PipelexRunner`→`PipelexMTHDSProtocol`, `bundle_uri`→`bundle_uris`, `execute_pipeline`→`execute`. Part 2 adds `OrchestratorProtocol.run`→`execute` (page-wide), `render_*_error()`→`render_inference_error()`, `model_class_from_json_schema`→`SchemaToModelFactory.make_from_json_schema`, `set_reporting_delegate`→`set_report_delegate`, `observe_*` protocol names, `LLM_MODEL_BACKEND_PAIRS`→`*_COMBOS`. Caught by an import-and-`getattr` check on doc-referenced Python names.
-2. **Doc bundle examples that fail `pipelex validate bundle`** — the dominant class in building-methods (~18 findings). Root: examples parse as TOML but fail semantic validation (missing required `description`/`domain`, inline `@` sigil, unused inputs, native-concept redeclaration, operator constraints). *(Part-2 internals pages have no bundle examples, so this class is absent there.)*
-3. **Keyword-only-convention drift in doc code snippets** (new, Part 2: F6, F9, F11, F21, F30, F32) — a doc shows a signature/call without the bare `*` the repo convention now requires; the positional form raises `TypeError`.
-4. **Parameter-table / config-model requiredness & fields** — building-methods: 5 param-table requiredness inversions vs `PipeBlueprint`. Part 2: embedded `pipelex.toml` snippet drift (F13 missing required field, F31 wrong value).
-5. **Stale enumerations** (native concepts, reasoning_effort, operator lists, deck files, img-gen handles; Part 2: flowchart directions, `EdgeKind`, fabricated `telemetry_mode` values). **Part 3 promotes this class to first rank for capability pages** — 4 of its 10 findings are a *closed* list that omits a shipped member or still names a retired one: native concepts 11-of-15, the operator roster 6-of-7 (`PipeStructure` missing, on two pages), and a `flux-2-pro` retired since v0.23.5 still listed under the Gateway. The failure mode is systematic: a list is written once, the registry grows, the list is never revisited.
-6. **Wrong defaults / behavioral claims** (dpi 150→72, PipeFunc "async required", cwd library fallback; Part 2: 0-based vs 1-based indexing, single-mutex vs double-check locking, `find_project_root` markers, output filenames, silent-no-op observer). **Part 4 extends this to repo tooling**: `align_entries` default `true`→`false` (a per-file-type override promoted to the global default), and the `.pipelex/` tree that `init` actually writes.
-7. **Repo-tooling drift** (new, Part 4 — the tail's distinctive class). Claims about `make` targets, generated file trees, `mkdocs.yml` plugins, `robots.txt` policy, and dev commands. Read the shape carefully: **not one of these was a phantom target or a missing file** — a existence check would have scored zero. The failures are *behavioral*: a target that grew a heartbeat under a stable name (`agent-test`, invalidating a whole page built on its silence), a robots.txt policy **inverted** while keeping the same variable name, a `uv` invocation that errors out, an `init` tree that grew files. **This class argues for a drift contract, not a derived check.**
-8. **The prose *around* a correct snippet** (new, Part 4 — F13, and the campaign's most uncomfortable class). The tutorial's four bundles all validate *and* dry-run clean; the sentence explaining them still teaches a false rule (`@` vs `$` distinguished by data provenance, when the real distinction is block-vs-inline rendering). A snippet validator returns green here. Only an adversarial reader catches it — and in Part 4 the *first* adversarial reader missed it too, because the false bullet sat directly above a correct, mechanically-checkable one.
-
-## Authoring-convention carve-out (Louis, 2026-07-12)
-
-A ruling that shapes both the fix triage and the check design. Omitting *scaffolding* in a focused teaching example is convention, not drift: a missing top-level `domain`, a missing pipe `description`, and an omitted `prompt` body are all things a reader fills in (with a placeholder) before running. **Still drift** (survives scaffolding): a written prompt that ignores its own declared input; wrong field names / output types / enum / default values. In building-methods this reclassified 3 findings out (all breaks-a-user: 28→25).
-
-## Drift-contract candidates (evidence for Phase 3 verdict, per D5)
-
-- **`validate-doc-bundle-examples`** (strongest for building-methods) — extract every fenced `toml`/`mthds` bundle example under `docs/`, **inject placeholder `description`/`domain` and tolerate an omitted prompt**, then run `pipelex validate bundle`. The placeholder-injection step (Louis's insight) is what makes it precise — it isolates the ~18 genuine breaks and skips every teaching fragment. Stage 0's prescreen missed all of these because it only checked TOML *parses*, not that the bundle *validates*.
-- **`doc-python-snippets-import`** (strongest for under-the-hood/advanced — Part 2 vindicates it hard) — import-and-`getattr` smoke check for Python symbols referenced in doc snippets. Catches the renamed-API class, which is the #1 defect class across both parts (F3/F8/F10/F27/F35/F37/F38 + the F30 invented param, plus building-methods' `PipelexRunner`/`bundle_uri`/`execute_pipeline`).
-- **`doc-python-signatures-vs-live`** (new, Part 2) — parse fenced `python` blocks in `docs/under-the-hood/*.md`, resolve each documented call/signature against live `inspect.signature`, flag positional uses of keyword-only params. Catches the whole keyword-only-drift class (F6/F9/F11/F21/F30/F32). Sibling to the existing `check-keyword-only` source guard.
-- **`doc-toml-config-vs-shipped`** (new, Part 2) — line-diff every fenced `toml` block labelled as `pipelex.toml` against the real shipped config (fields present + values). Catches F13 (missing required field) and F31 (wrong value); the `reasoning-controls.md` reviewer independently proposed exactly this.
-- **`operator-param-table-vs-blueprint`** — diff each operator doc's parameter table against its pydantic model's required/optional fields (catches the 5 requiredness inversions in building-methods). Needs a table parser.
-- **`doc-enumerations-vs-registry`** (new, Part 3 — the strongest candidate for the capability sections) — diff documented **closed** lists against the code's registries: `NativeConceptCode`, the `pipe_operators/` package (blueprints carrying `pipe_category="PipeOperator"`), the pipe controllers, and the shipped model deck. Catches F2/F7/F8/F9. The diff is trivial; **the hard part is deciding which lists are closed** — the exhaustive-vs-illustrative rule Part 3 had to invent would need encoding (only check lists with no "such as" / "including" / "and more" hedge), otherwise the check drowns in false positives on deliberately-partial teaching lists. **Part 4 widens the source of truth beyond code registries**: its two enumeration findings resolve against *config files* (`mkdocs.yml`'s plugin list) and the site's landing page (the `PipeStructure` omission — now confirmed on **three** pages). The single highest-value instance of this whole class: one stale operator roster, copied three times, one of them on `docs/index.md`.
-- **`make-targets-and-tooling` — a CONTRACT, not a check (new, Part 4; the clearest contract case the campaign has produced).** Part 4's distinctive class cannot be mechanized: every documented `make` target *exists*, so a target-existence script scores zero. What drifted is **behavior under a stable name** — `agent-test` grew a heartbeat (`0d2f2bf369`) ~3.5 weeks after `docs/agents/debugging-hanging-pytest-runs.md` was written on the premise that it was silent, and nothing anywhere could have flagged that. The right instrument is a drift contract (**trigger:** `Makefile`; **review targets:** the pages that describe `make` targets — `docs/agents/debugging-hanging-pytest-runs.md`, `docs/contribute/*`, `CONTRIBUTING.md`), forcing a human to look. This is the campaign's strongest evidence that some drift classes want *review obligations* rather than *scripts* — i.e. evidence for the drift-contracts design itself.
-- **⚠ A limit on `validate-doc-bundle-examples`, learned in Part 4.** The tutorial's bundles pass validation *and* dry-run, and the page still teaches a false rule in the prose explaining them (F13). **A snippet checker verifies the snippet, never the sentence beside it.** The derived-check candidates cover the *mechanical* residue of the campaign well; they do not touch the conceptual residue. Do not let a green check be read as a clean page.
-
-## Rejected / reclassified findings (audit trail)
-
-- **building-methods:** 0 rejected by adversarial verify (all 47 review-stage findings held up). 3 later reclassified as authoring convention (missing `domain`, missing `description`, omitted prompt body) → 44 counted as drift. See `building-methods.md` → "Reclassified as authoring convention".
-- **under-the-hood + advanced:** 0 rejected (all 42 held; 6 carried minor evidence corrections folded into the findings file). 0 reclassified — the D11 carve-out doesn't apply to internals/injection pages (no bundle-teaching examples).
-- **features + reliability:** 0 rejected (all 10 held). 0 reclassified — D11 doesn't apply (capability pages carry no bundle-teaching examples). The suppression risk here ran the *other* way (false negatives from the new exhaustive-vs-illustrative and floor-count rules), so the high-risk clean pages were hand-verified post-run; see the findings file's spot-check note.
-- **the tail:** 0 rejected (all 13 held). 0 reclassified. **12 findings came from the wave; the 13th came from the post-run false-negative check, which broke a page the wave had cleared** — the first time in the campaign that discipline caught something. `setup/telemetry.md` and the two contribute pages were also FN-checked and **held** (decisively).
-- **⚠ Correction to the campaign's own record (raised by Part 4).** Part 2's F24 is correct *as written* (`pipelex-agent init --config` does not accept a `telemetry_mode` field), but its **defect-class label — "fabricated `telemetry_mode` values" — is wrong**, and Part 4's seeds inherited the error. The values are real: `PostHogMode` is a live StrEnum with exactly `off`/`anonymous`/`identified` (`pipelex/system/telemetry/telemetry_config.py:27-32`), and `docs/setup/telemetry.md` documents them **correctly**. A Stage-2 fixer working from the class label alone could have gutted an accurate page. Fix F24 at its real site (`init-cli-flows.md:404`), leave `setup/telemetry.md` alone, and correct the class label in `under-the-hood-advanced.md`.
-
-## Cross-part / cross-repo carry-overs
-
-- **`docs/under-the-hood/execution-graph-tracing.md:269`** — RESOLVED as Part 2 F10 (`execute_pipeline`→`execute`, confirmed). Fold into Stage 2's fix batch.
-- **`docs/tools/cli/agent-cli.md:38`** — NEW, from Part 3 F1. The agent-CLI page documents `--mock-inputs` as just "Use mock inputs", omitting the **`(requires --dry-run)`** qualifier that `docs/tools/cli/run.md` states correctly three times. `docs/tools/cli/` is out of Stage-1 scope (D2, freshly reviewed) — but D2 reopens it precisely when a Stage 1 finding points back in, and this one does. One-line fix; fold into Stage 2.
-- **`PipeStructure` missing from the operator roster — 3 pages** (Part 3 on `features/index.md` + `features/pipe-operators.md`; Part 4 F10 on `docs/index.md`, the site's landing page). One stale closed list, three copies. Fix as a single Stage-2 batch.
-- **⚠ SPILLOVER OUTSIDE `docs/` — the stale `make agent-test` claim (Part 4 F8). NEEDS A LOUIS RULING at Checkpoint 1.** `agent-test` is no longer silent on success (it echoes a start line, a 20 s heartbeat, and a completion line — `Makefile:732-739`, `:49-65`, `:27`). The doc page F8 covers is in scope, but **the same false claim is also in `CLAUDE.md:52` ("Zero output on success") and in the workspace-level agent guide ("silent on success")** — agent-facing instruction files, outside D2's `docs/` scope, and the likely *source* the doc page was written from. Fixing the page while leaving its source stale re-seeds the drift. **Question for Louis:** fold both `CLAUDE.md` fixes into the Stage-2 batch, or split them out?
-- *(No outgoing carry-overs from Part 2 — its findings are self-contained to their pages.)*
-
-## Cookbook-repo defects (handoff, not fixed here)
-
-- *(none — Stage C never ran; see the coverage disclosure below, D12)*
-
----
-
-# Campaign close-out (Checkpoint 2, 2026-07-12)
-
-## Coverage — stated honestly
-
-Stage 1 swept **104 of the 125 in-scope hand-written pages** (denominator: `inventory.md`). The **21 `docs/cookbook/` pages were never swept** — Stage C was deferred out of the campaign entirely (D12), so no claim about cookbook-page accuracy can be made either way. Also excluded by design (D2): generated docs (`docs/errors/`, gateway models) and the freshly-reviewed sections (`docs/configuration/`, the CLI docs) — re-sweeping those would have measured nothing.
-
-## Stage 2 resolution — all four PRs merged to dev (2026-07-12)
-
-| Batch | Scope | PR → dev (squash) | Stage-1 findings | Fix-time drift (D16) | Refuted at fix time |
-|---|---|---|---|---|---|
-| S2-3 | under-the-hood + advanced | #1042 `9814e2f4c` | 42 fixed, 0 rejected | +4 (F43–F46) | 2 |
-| S2-1 | building-methods `pipes/` | #1043 `126616a88` | 30 fixed, 0 rejected | +10 (F45–F54) | 2 |
-| S2-2 | building-methods concepts + top-level | #1044 `46511ce9c` | 14 fixed, 0 rejected | +7 (F55–F61) + 1 stale pointer | 6 |
-| S2-4 | features + reliability + the tail + all cross-cutting sweeps | #1045 `cb13e5b33` | 23 fixed, 0 rejected | +10 (F11, F14–F22) | 3 |
-
-- **Every one of the 109 Stage-1 findings was fixed; 0 were rejected at fix time** — each reproduced exactly as recorded when the fixer re-verified it against the code (D6). Combined with 0 rejections at verify time, the pipeline's precision across the whole campaign is unblemished; its known error mode is false *negatives* (see the Stage-1 note above).
-- **Fix-time drift (D16) added 31 confirmed findings + 1 stale section pointer, all fixed in-batch; 13 candidates were refuted** — the refutations cluster on omission/scope/equivalence claims (a scoped list is not incomplete; an intentionally-narrower command is not wrong), the confirmations on checkable facts. Fix agents over-flag; the D6 verify gate is what keeps D16 honest.
-- **Every changed example re-validated against the real parser** (incl. dry-run execution for the load-bearing ones); blind no-context post-fix reviews ran on every batch commit — they caught 2 defects in S2-1's own new text and 3 in S2-3's (folded in pre-PR); S2-2 and S2-4 came back clean.
-- **Cross-cutting sweeps all landed:** the `PipeStructure` roster on all three pages (incl. the docs landing page), `agent-cli.md`'s `--mock-inputs` qualifier, and the D13 `agent-test` heartbeat claim everywhere — including the `pipelex/kit/agent_rules/` source templates (repo-root `CLAUDE.md`/`AGENTS.md` are generated from them) and the workspace-level agent guide in its own repo.
-- **Gates on the final reconciled branch:** `make docs-check` strict, `make check`, and full **`make agent-test` — all green** (the agent-test run itself displayed the start-line + 20 s heartbeats the D13 fixes now document).
-
-Counting Stage 0's mechanical fixes (dead paths/keys/links, committed at Checkpoint 0), the campaign fixed **~140 confirmed code↔doc drift defects** across the docs tree, plus the two instruction-file sweeps outside `docs/`.
-
-## Correction to the record: the observer-page "partial fix" was a stale-base artifact
-
-The tracker and S2-4's out-of-batch note recorded `docs/advanced/observer-provider-injection.md` as only partially fixed (pre-rename hook names and a broken `from pipelex import Pipelex` import "remaining"). **Verified at close-out: the page is fully fixed and byte-identical to dev.** Part 2's F38–F42 covered exactly those defects and S2-3 (PR #1042) fixed them; S2-4's session was reading a base that predated #1042's merge, so it re-reported already-fixed defects as outstanding. Close-out verification against live code: hook names match `observer_protocol.py:17-31`, payload keys match `pipe_router_protocol.py:18-47`, JSONL filenames match `LocalObserverEventType` (`local_observer.py:11-14`), the import and `Pipelex.make(...)`/`hub.set_observer(...)` calls are correct (`hub.py:263`), and `docs/advanced/index.md`'s `Pipelex.make` kwargs all exist on the real signature. **No follow-up needed.** (Lesson for future multi-PR batch campaigns: an out-of-batch "still broken" record made while sibling PRs are in flight must name the base SHA it was checked against.)
-
-## Handoff 1 — drift-contract shortlist for the Phase 3 verdict (per D5/D17)
-
-The candidates are detailed in the section above ("Drift-contract candidates"); this is the ranked verdict-ready shortlist, with the campaign's evidence base:
-
-1. **`doc-enumerations-vs-registry`** (derived check) — highest value-per-effort. Stale closed lists appeared in every part and dominate the capability pages; the diff is trivial and the sources of truth are registries/StrEnums/deck/config files. The one design cost: encode the exhaustive-vs-illustrative rule (only hedge-free lists are checked; a scope qualifier like "from PDFs and images" is part of the claim — two S2-4 refutations prove skipping scoped lists is correct, not lenient).
-2. **`validate-doc-bundle-examples`** (derived check) — kills the single biggest breaks-a-user class (~18 findings in building-methods). Needs D11 placeholder injection (`description`/`domain`, tolerated-omitted prompt) and D19 sub-pipe scaffolding for sequence sketches. **Known limit (F13): it verifies the snippet, never the sentence beside it** — a green run must not be read as a clean page.
-3. **`doc-python-snippets-import`** (derived check) — import-and-`getattr` on doc-referenced Python symbols. Catches the campaign's #1 cross-part class (renamed API never propagated into docs), which produced the worst silent failure found anywhere (the observer page's mis-named hooks silently no-op).
-4. **`make-targets-and-tooling`** (a CONTRACT, not a check) — Part 4's distinctive class is un-mechanizable: every documented target exists; what drifts is behavior under a stable name (`agent-test`'s heartbeat). Trigger: `Makefile`; review targets: the pages describing make targets (`docs/agents/debugging-hanging-pytest-runs.md`, `docs/contribute/*`, `CONTRIBUTING.md`, the kit agent-rules templates). This is the campaign's strongest evidence for the drift-contracts mechanism itself — and the finding that docs edited in the same commit as their code never drifted (`d3550330a`, `15e0a94ea`) is the mechanism observed working in the wild.
-5. Weaker / harder candidates, in descending order: `doc-python-signatures-vs-live` (keyword-only drift in snippets; needs signature resolution), `doc-toml-config-vs-shipped` (diff doc-embedded `pipelex.toml` blocks against the shipped file), `operator-param-table-vs-blueprint` (needs a Markdown table parser).
-
-**Where to spend contract budget — the campaign's headline correlation:** drift follows *audience*, not complexity. Author-is-the-reader pages (drift-contracts, keyword-only, telemetry setup, reliability) came back clean; explain-it-to-someone-else pages (onboarding, contributor setup, agent playbook, internals) drifted at up to 2.0 findings/page. Put contracts on reader-facing pages; maintainer-facing pages stay current by use.
-
-## Handoff 2 — deferred code findings (D8)
-
-**`wip/drift-hunt/deferred-code-findings.md` (kept, not pruned) carries the 10 code-side defects** the hunt surfaced but did not fix (Stage 2 was docs-only, D17). Highlights by user impact: item 3 (`GatewayTelemetryManagerInjectedError`'s remediation message names five config fields that don't exist — the one moment an error message is load-bearing, and every key it offers is wrong), item 8 (the `tomli>=2.3.0` floor admits a tomli that cannot parse documented `.mthds` deck syntax), item 9 (`pipelex build structures` can silently shadow a hand-written class after the documented migration), item 2 (cross-repo: `plxt lint` doesn't detect invalid concept references, contradicting what the docs promised). Each entry has `file:line` evidence and a candidate fix.
-
-## Lessons that outlive the campaign
-
-- **The code is the authority — even over the finding's own Reality text.** S2-3's blind review caught a Stage-1 finding whose *correction* was itself wrong (F36's fallback claim). Fixers must re-derive, not transcribe.
-- **Validate the whole snippet, not just the finding's clause.** A finding scoped to a kwarg hid a non-running example around it (S2-1's `bundle_uris` snippets, inherited from the original docs).
-- **A blind, no-context post-fix review earns its keep** — it caught defects in three of five reviewed batches (incl. Stage 1's own record), precisely because it inherits none of the batch's assumptions.
-- **The FN spot-check is a standing step.** With 0 rejections across 109 verify passes and ~140 fixes, the pipeline demonstrably under-reports rather than over-reports; the only Stage-1 defect that escaped both reviewer and verifier (F13) was caught by hand-checking a "clean" high-risk page.
-- **Run it, don't guess.** Twice, live execution reversed a wrong conclusion reached by reading (`pipelex validate --all` at Stage 0; the tomli TOML 1.1 refutation at S2-2) — and two Part-4 findings were reachable *only* by executing.
diff --git a/wip/drift-hunt/inventory.md b/wip/drift-hunt/inventory.md
deleted file mode 100644
index a79280179..000000000
--- a/wip/drift-hunt/inventory.md
+++ /dev/null
@@ -1,199 +0,0 @@
-# Drift Hunt — Stage 0 inventory
-
-Every hand-written `.md` page under `docs/` in scope for the hunt, grouped by section, per decision D2 (see `TODOS.md`). Page counts per section are the denominator for the campaign's defect-density metric. Snapshot taken 2026-07-12 on `docs/Drift-hunt`.
-
-## Scope summary
-
-| Section | Pages | Notes |
-|---|---|---|
-| building-methods | 35 | MTHDS language reference (blueprint layer) |
-| cookbook | 21 | ground truth = `../pipelex-cookbook` (D3); swept in greenlight-gated Stage C, not Stage 1 (D7) |
-| features | 21 | |
-| under-the-hood | 19 | |
-| advanced | 7 | provider-injection pages |
-| reliability | 4 | |
-| contribute | 3 | 2 of 3 written/rewritten within the last days (drift-contracts, keyword-only) — expected low yield, kept per D2 |
-| get-started | 3 | |
-| (root) | 2 | `index.md`, `license.md` |
-| tools (non-CLI) | 2 | `logging.md`, `plxt.md` |
-| setup | 1 | `telemetry.md` (`gateway-models.md` excluded as generated) |
-| viewpoint | 1 | |
-| D9 additions (agents, analytics, distributed-execution, docs/CLAUDE.md) | 4 | ruled IN at Checkpoint 0 |
-| D9 additions (root `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`) | 2 | ruled IN at Checkpoint 0; live outside `docs/`, no Stage 0 seed rows |
-| **Total campaign scope** | **125** | = 104 in Stage 1 (four parts, per D10) + 21 cookbook in Stage C (D7) |
-
-## Scope-edge additions — ruled IN at Checkpoint 0 (D9, Louis 2026-07-12)
-
-Hand-written, not generated, not freshly reviewed — not named by D2's original section list; all included by ruling. They run in Stage 1 Part 4.
-
-- `docs/agents/debugging-hanging-pytest-runs.md` — agent-facing debugging guide
-- `docs/analytics/data-extraction.md`
-- `docs/distributed-execution/index.md` — the single public distributed-execution capability page
-- `docs/CLAUDE.md` — docs-site architecture notes for agents (not in the mkdocs nav, but rich in code-contradictable claims)
-- Root-level `CONTRIBUTING.md` and `CODE_OF_CONDUCT.md` — the include-targets of the docs stubs; live outside `docs/`, so the Stage 0 pre-screen (docs/-only) produced no seed rows for them.
-
-## Excluded (with reasons)
-
-- `docs/errors/**` — generated (`make gep`); fix the generator, never the pages (D2).
-- `docs/setup/gateway-models.md` — snippet-include of the generated gateway-models doc (D2).
-- `docs/configuration/**` — freshly reviewed as the config-docs drift-contract seed ack (D2).
-- `docs/tools/cli/**` — freshly reviewed as the cli-docs drift-contract seed ack (D2; `pipelex/cli/agent_cli/CLAUDE.md` likewise).
-- `docs/changelog.md`, `docs/contributing.md`, `docs/CODE_OF_CONDUCT.md` — pure snippet-include stubs (`--8<--` of root files); no content of their own.
-- `docs/overrides/**` — theme templates, not content pages.
-
-## In-scope pages by section
-
-### building-methods (35)
-
-- `docs/building-methods/adapt-to-llm-prompting-style-openai-anthropic-mistral.md`
-- `docs/building-methods/concepts/define_your_concepts.md`
-- `docs/building-methods/concepts/inline-structures.md`
-- `docs/building-methods/concepts/native-concepts.md`
-- `docs/building-methods/concepts/python-classes.md`
-- `docs/building-methods/concepts/refining-concepts.md`
-- `docs/building-methods/configure-ai-llm-to-optimize-methods.md`
-- `docs/building-methods/domain.md`
-- `docs/building-methods/kick-off-a-methods-project.md`
-- `docs/building-methods/libraries.md`
-- `docs/building-methods/packages.md`
-- `docs/building-methods/pipelex-bundle-specification.md`
-- `docs/building-methods/pipes/csv-input-and-output.md`
-- `docs/building-methods/pipes/executing-pipelines.md`
-- `docs/building-methods/pipes/index.md`
-- `docs/building-methods/pipes/pipe-controllers/PipeBatch.md`
-- `docs/building-methods/pipes/pipe-controllers/PipeCondition.md`
-- `docs/building-methods/pipes/pipe-controllers/PipeParallel.md`
-- `docs/building-methods/pipes/pipe-controllers/PipeSequence.md`
-- `docs/building-methods/pipes/pipe-controllers/index.md`
-- `docs/building-methods/pipes/pipe-operators/PipeCompose.md`
-- `docs/building-methods/pipes/pipe-operators/PipeExtract.md`
-- `docs/building-methods/pipes/pipe-operators/PipeFunc.md`
-- `docs/building-methods/pipes/pipe-operators/PipeImgGen.md`
-- `docs/building-methods/pipes/pipe-operators/PipeLLM.md`
-- `docs/building-methods/pipes/pipe-operators/PipeSearch.md`
-- `docs/building-methods/pipes/pipe-operators/PipeStructure.md`
-- `docs/building-methods/pipes/pipe-operators/index.md`
-- `docs/building-methods/pipes/pipe-output.md`
-- `docs/building-methods/pipes/provide-inputs.md`
-- `docs/building-methods/pipes/run-modes-and-backends.md`
-- `docs/building-methods/pipes/signature-pipes.md`
-- `docs/building-methods/pipes/understanding-multiplicity.md`
-- `docs/building-methods/pipes/understanding-optionality.md`
-- `docs/building-methods/pipes/working-memory.md`
-
-### cookbook (21)
-
-- `docs/cookbook/advisory-board.md`
-- `docs/cookbook/blog-article-generator.md`
-- `docs/cookbook/design-slides.md`
-- `docs/cookbook/discord-newsletter.md`
-- `docs/cookbook/extract-dpe.md`
-- `docs/cookbook/extract-gantt.md`
-- `docs/cookbook/extract-generic.md`
-- `docs/cookbook/extract-invoice.md`
-- `docs/cookbook/extract-markdown.md`
-- `docs/cookbook/extract-proof-of-purchase.md`
-- `docs/cookbook/extract-slides.md`
-- `docs/cookbook/extract-table.md`
-- `docs/cookbook/gen-expense-data.md`
-- `docs/cookbook/gen-synthetic-data.md`
-- `docs/cookbook/generate-image.md`
-- `docs/cookbook/hello-world.md`
-- `docs/cookbook/index.md`
-- `docs/cookbook/summarize.md`
-- `docs/cookbook/using-inference-plugins.md`
-- `docs/cookbook/validate-expense-data.md`
-- `docs/cookbook/write-tweet.md`
-
-### features (21)
-
-- `docs/features/advanced-customizations.md`
-- `docs/features/claude-code-skills-plugin.md`
-- `docs/features/cli.md`
-- `docs/features/cloud-storage.md`
-- `docs/features/concepts.md`
-- `docs/features/configuration.md`
-- `docs/features/cost-tracking.md`
-- `docs/features/distributed-execution.md`
-- `docs/features/document-extraction.md`
-- `docs/features/execution-graph.md`
-- `docs/features/gateway.md`
-- `docs/features/image-generation.md`
-- `docs/features/index.md`
-- `docs/features/llm-integration.md`
-- `docs/features/mthds-language.md`
-- `docs/features/pipe-operators.md`
-- `docs/features/pipeline-orchestration.md`
-- `docs/features/plxt.md`
-- `docs/features/telemetry.md`
-- `docs/features/validation-dry-run.md`
-- `docs/features/web-search.md`
-
-### under-the-hood (19)
-
-- `docs/under-the-hood/architecture-overview.md`
-- `docs/under-the-hood/build-time-elaboration.md`
-- `docs/under-the-hood/codegen-projections.md`
-- `docs/under-the-hood/distributed-content-generation.md`
-- `docs/under-the-hood/dry-run-mock-generation.md`
-- `docs/under-the-hood/error-model.md`
-- `docs/under-the-hood/execution-graph-tracing.md`
-- `docs/under-the-hood/image-handling-in-llm-prompts.md`
-- `docs/under-the-hood/index.md`
-- `docs/under-the-hood/inference-backend-plugins.md`
-- `docs/under-the-hood/init-cli-flows.md`
-- `docs/under-the-hood/orchestrator-plugins.md`
-- `docs/under-the-hood/pipe-routing-and-execution.md`
-- `docs/under-the-hood/reasoning-controls.md`
-- `docs/under-the-hood/runtime-bridge-and-transport.md`
-- `docs/under-the-hood/secrets-provider-plugins.md`
-- `docs/under-the-hood/storage-provider-plugins.md`
-- `docs/under-the-hood/stuffartefact-and-image-rendering.md`
-- `docs/under-the-hood/test-profile-configuration.md`
-
-### advanced (7)
-
-- `docs/advanced/content-generator-injection.md`
-- `docs/advanced/index.md`
-- `docs/advanced/observer-provider-injection.md`
-- `docs/advanced/pipe-router-injection.md`
-- `docs/advanced/reporting-delegate-injection.md`
-- `docs/advanced/secrets-provider-injection.md`
-- `docs/advanced/storage-provider-injection.md`
-
-### reliability (4)
-
-- `docs/reliability/automatic-retries.md`
-- `docs/reliability/durable-execution.md`
-- `docs/reliability/failure-classification.md`
-- `docs/reliability/retries-and-resilience.md`
-
-### contribute (3)
-
-- `docs/contribute/configuration-defaults-and-overrides.md`
-- `docs/contribute/drift-contracts.md`
-- `docs/contribute/keyword-only-arguments.md`
-
-### get-started (3)
-
-- `docs/get-started/build-with-claude-code.md`
-- `docs/get-started/configure-ai-providers.md`
-- `docs/get-started/mthds-language-tutorial.md`
-
-### (root) (2)
-
-- `docs/index.md`
-- `docs/license.md`
-
-### tools, non-CLI (2)
-
-- `docs/tools/logging.md`
-- `docs/tools/plxt.md`
-
-### setup (1)
-
-- `docs/setup/telemetry.md`
-
-### viewpoint (1)
-
-- `docs/viewpoint/viewpoint.md`
diff --git a/wip/engine-hints/deferred.md b/wip/engine-hints/deferred.md
deleted file mode 100644
index 40a87edaa..000000000
--- a/wip/engine-hints/deferred.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# Engine intent hints (H2) — deferred items
-
-Items identified during H2 execution that are deliberately not done in this branch. Each is small and self-contained; none blocks the milestone.
-
-- **Hint lint on the CLI and builder validate channels.** `build_current_library_hint_warnings()` is wired only into `pipelex/pipeline/validate_in_process.py` (the report/API path). The bare CLI (`pipelex/cli/commands/validate/_validate_core.py`), the agent CLI (`pipelex/cli/agent_cli/commands/validate/_validate_core.py`, three sites), and the builder ops (`pipelex/builder/operations/validate_ops.py`, three sites) each assemble their `warnings` from `build_optionality_warnings` alone, so an author validating through those channels does not see the hint lint. All seven sites run inside the validation library window, so appending `+ build_current_library_hint_warnings()` is mechanical — but it touches three presentation surfaces whose output shape each needs verifying, so it was deferred rather than folded into Phase 3. Consider a shared "all advisory warnings" composition point when doing it, instead of an eighth copy of the pattern.
-
-- **Builder emission of hints (spec layer + writer).** `pipelex/builder/operations/concept_ops.py`'s writer emits from `ConceptSpec` / `ConceptStructureSpec`, and neither spec model has a `hints` field — the builder spec layer stays `dict[str, str]`-input hint-free by design this milestone (all `*_spec.from_blueprint` sites read `inputs_concept_specs`). Preserving hints on a builder rewrite is therefore not a writer one-liner: it needs the two spec models to grow the field, the `from_blueprint` conversions to carry it, and the writer to emit it. It sits beside the known E8 spelling bug in the same writer; do them together.
-
-## Lint/deriver site-kind divergences: deriver honors, lint says OTHER
-
-The lint classifies sites over the qualified crate (`_resolve_concept_kind`) while the deriver re-derives applicability from node facts (`_node_site_kind`), and the two judgments are known to diverge in two spots — in both, the lint warns `hint_inapplicable_intent` while the deriver honors the same hint on the wire:
-
-- **Class-backed `HtmlContent`.** `_node_site_kind` (input_form.py) excludes Html-backed nodes from text-valued by looking for `native.Html` in the node's `concept_ref`/`refines` — which a `structure = "HtmlContent"` class-backed concept never carries, so the deriver treats it as text-valued, while the lint (spec-faithful: Html is not text-valued) classifies the same site OTHER and warns. Surfaced by PR #1148 review triage (2026-08-23).
-- **Unresolvable-base chains.** A concept refining a base the crate cannot resolve (cross-package or dangling ref) is OTHER to the lint ("not classifiable in-crate") but prose-promoted by the deriver, whose PROSE node `_node_site_kind` calls text-valued — so an `intent = "label"` there both warns AND flips the kind. Surfaced by the pre-landing adversarial review (2026-08-23); which side is right is a spec judgment (is a prose-promoted unresolvable site text-valued?).
-
-The shared root cause is the re-derivation: `_node_site_kind` reconstructs the site kind from node facts instead of receiving the crate-walk judgment. The clean fix threads the site kind from the crate walk into `_with_effective_hints` (or gives the node a backing-class fact), which touches the wire `refines` semantics — out of proportion for these exotic authorings. Revisit together, as one shared-classifier fix, if either case shows up in real methods.
-
-## Review deferrals (pre-landing review, 2026-08-23)
-
-Decision-first or marginal items from PR #1148's pre-landing review — none is a defect in the shipped behavior; each needs a ruling or is a cleanup not worth widening the diff for:
-
-- **`sync-controller-inputs` quick-fix drops authored slot hints.** `pipelex/pipeline/fixes/planner.py` (`SetKeyOp` sites) rewrites a slot to the plain `expected_ref` string, so applying the fix to an expanded slot `x = { concept = "…", hints = { … } }` silently discards the hints. Decide: preserve hints through the rewrite, or document that sync replaces the slot wholesale.
-- **Pipe-declaration merge drops the losing declaration's slot hints.** `contracts_match` deliberately compares the concept-spec projection (hints are non-normative), so in `library_crate_factory` a hinted signature merged with a hint-free concrete definition keeps the definition's slots — the signature's hints vanish with no diagnostic (two matching signatures tie-break deterministically but arbitrarily). Definition-is-authority is defensible; decide and document.
-- **Hint content is echoed raw and unbounded into warning messages.** The lint interpolates authored hint keys/words verbatim into `ValidationErrorItem.message` (one item per unknown key), consistent with how descriptions already flow — but a hostile bundle can inflate message size and warning count. Consider eliding long tokens and capping per-site findings when wiring the lint into the CLI/builder channels (first bullet above).
-- **`qualify_crate` runs twice per validate pass.** `build_input_form` and `build_current_library_hint_warnings` each qualify the same accumulated crate inside one `validate_bundles_in_process` window — a duplicated whole-crate model_copy walk. Share the `QualifiedCrateContent` (e.g. qualify once in `validate_in_process` and pass it to both; `build_hint_warnings(qualified)` already takes one).
-- **Class-name → `NativeConceptCode` reverse lookup exists in three places.** `hint_warnings._native_class_value_kind`, `input_form._class_backed_node`, and `NativeConceptCode.get_native_structure_class` each scan the enum by `structure_class_name`; a `NativeConceptCode.from_structure_class_name(...)` classmethod would replace the comment-enforced mirroring with shared code.
-- **Hints dicts are aliased across copies.** `_qualify_slot_value`'s `model_copy` shares the `hints` dict between raw and qualified crates, and list/item nodes share one merged dict. No current code mutates a hints dict in place; if a mutator ever appears, copy at the stamp sites.
diff --git a/wip/engine-hints/design.md b/wip/engine-hints/design.md
deleted file mode 100644
index d1119f59c..000000000
--- a/wip/engine-hints/design.md
+++ /dev/null
@@ -1,147 +0,0 @@
-# Engine intent hints — H2 design
-
-Milestone H2 of the input-form program (workspace `wip/devx/input-form-roadmap.md`), on branch `feature/Engine-hints`, cut from `dev` after the `feature/Input-semantics` program branch merged (base includes `46a3f5df2`, which carries D2's deriver). Inputs: the accepted intent-hints standard (`mthds` PR #56 at `98883bb` — `docs/spec/intent-hints.md`, the expanded input-slot form in `mthds-format.md`, the effective-hints normalization in `library-crate.md`), the H1 design log (`mthds/wip/intent-hints-design.md`), the workspace descriptor spec's reserved-hint-slot section (`../docs/specs/mthds-input-form-descriptor.md`), and the request `../wip/inbox/2026-08-22-pipelex-h2-intent-hints-engine.md`.
-
-**Scope:** the engine round trip — hints authored in a bundle reach the wire input-form descriptor. Parse at three sites, validate strict-shape/lenient-content, carry through the crate with effective-hints normalization and fingerprint neutrality for hint-free crates, warn on unknown content, populate the descriptor's reserved `hints` slot, promote the no-hint presentation defaults from heuristics to specified rules, regenerate `mthds_schema.json`, and grow spec/conformance.
-
-**Gate (roadmap H2):** the hint round trip proven on one real method; spec and conformance updated. The engine-side provable half is authored-in-a-bundle → visible-on-the-wire-descriptor (integration test + the trace harness's hop-5 capture); the "visible in a rendered control" half needs a consumer that reads the wire descriptor, which arrives with M1/H3 — the checkpoint records this reading so the roadmap can reconcile it.
-
-## The contract, in one paragraph
-
-The normative rules live in the standard and are not restated here: `hints` is a flat string→string TOML table; shape violations are structural bundle errors; unknown keys and unknown `intent` words warn on the advisory channel and are preserved; three sites (concept, structure field, expanded input slot `name = { concept = "…", hints = { … } }`), unknown slot-table keys rejected; precedence is key-by-key, site over concept, nearer chain declaration wins; normalization materializes each concept's effective hints at refinement-flattening, removes empty tables, and keeps hint-free crates byte-identical (fingerprint-stable); hints ride the hashed members; the vocabulary this version defines is one key `intent` closed over `prose`, `label`, `rating`, `quantity`, with applicability defined over text-valued and number-valued sites and per-item judgment on plural sites. Hints are non-normative: no verdict, no execution behavior, no gating decision ever reads them.
-
-## Dataflow overview
-
-Authored bundle → blueprint models (parse + strict shape) → library crate (hints ride the blueprint objects) → qualification (pass-through) → normalization (effective hints on concepts; fingerprint) → advisory lint (content warnings on the validation report) → input-form deriver (site-over-concept merge, `hints` slot populated, intent feeds the kind defaults). Runtime execution models never carry hints — that is the structural enforcement of non-normativity.
-
-## Part 1 — Parsing the three sites
-
-**(a) Concept blueprint.** Add `hints: dict[str, str] | None = None` to `ConceptBlueprint` (`pipelex/core/concepts/concept_blueprint.py:12`). `extra="forbid"` is already in force there (line 13), so a misspelled member fails loudly today; the typed field gives strict shape for free — pydantic rejects a non-table `hints` and non-string values as structural validation errors, which is exactly the spec's shape rule.
-
-**(b) Structure-field blueprint.** Add the same field to `ConceptStructureBlueprint` (`pipelex/core/concepts/concept_structure_blueprint.py:50`). That model has no `model_config`, so extras are silently ignored (finding E7, `wip/input-semantics/findings.md` §E7) — meaning a *misspelled* `hint = {…}` on a field still vanishes silently after H2. Per the H1 design log, the E7 `extra="forbid"` fix is deliberately separate work (it belongs to S2's strictness sweep, where the whole language ceiling becomes enforceable at once); H2 adds the field and does not change the extras policy. A *present, well-spelled* `hints` member is still strictly shape-checked by its type — the H2 guarantee holds where the spec states it.
-
-**(c) The expanded input-slot form.** Today a slot value is a bare string: `PipeBlueprint.inputs: dict[str, str] | None` (`pipelex/pipe_machinery/pipe_blueprint.py:186`), validated by `generic_validate_inputs` (lines 281–323) against the ref+multiplicity+presence grammar. Add a slot table model beside it:
-
-- `InputSlotBlueprint(BaseModel)` with `model_config = ConfigDict(extra="forbid")` and exactly two fields: `concept: str` (the full existing slot grammar — ref, optional `[]`/`[N]`, optional `?`/`!`) and `hints: dict[str, str] | None = None`. `extra="forbid"` implements the spec's "unknown slot-table keys MUST be rejected" — the form is deliberately closed so future per-slot semantic keys (`description`, defaults) land here without a second syntax.
-- Widen `inputs` to `dict[str, str | InputSlotBlueprint] | None`. The union widens every `Pipe*Blueprint` subclass at once (the union is assembled at `pipelex/mthds_parsing/pipelex_bundle_blueprint.py:59-73`), and `generic_validate_inputs` validates the `concept` value of a table arm with the same grammar it applies to the string arm — one grammar, two spellings.
-- **Parse-time collapse rule:** a slot table carrying no hints (absent or empty `hints`) collapses to its plain string at model validation — `x = { concept = "S" }` and `x = { concept = "S", hints = {} }` become the string `"S"` in the blueprint. The spec sanctions this ("`x = { concept = "S" }` and `x = "S"` are the same slot in the crate and hash identically"; an empty table is equivalent to no hints), and it buys a strong invariant downstream: *a slot value that is a table carries non-empty hints*, so hint-free bundles produce byte-identical blueprints to today by construction, and the string-assuming code paths stay dominant.
-
-Two downstream sites iterate slot values as strings and need the table arm: `crate_qualification._qualify_io_ref` (`pipelex/libraries/crate_qualification.py:140-141`) must qualify the table's `concept` through the same marker-preserving rewrite (`_render_ref_with_markers`, lines 191–198) while passing `hints` through untouched (a hints table contains no refs — qualification never rewrites it), and `crate_normalization._collect_referenced_natives` (`pipelex/libraries/crate_normalization.py:235`) must read the table arm's `concept`. `InputStuffSpecsFactory.make_from_blueprint` (`pipelex/core/pipes/inputs/input_stuff_specs_factory.py:26`) accepts the union and extracts the `concept` string for the runtime spec — and nothing more: `StuffSpec` (`pipelex/core/pipes/stuff_spec/stuff_spec.py:11`) does **not** grow a hints field. The deriver reads slot hints from the qualified crate instead (Part 6). Keeping hints out of the runtime input models is the design's structural answer to "an implementation MUST NOT consult hints when executing a pipe": the execution path cannot read what it never receives.
-
-**Fixture consequence:** the committed rejection fixture `tests/data/input_semantics/rejected/per_input_description.mthds_invalid` (`inputs = { doc = { concept = "Text", description = "…" } }`) **remains a valid rejection** — `description` is an unknown slot-table key and the expanded form rejects unknown keys. Its rationale shifts from "tables are not accepted" to "this key is not accepted"; update its commentary, verify the new failure surfaces as the slot-table extras error, and add accepted-fixture siblings for `{ concept = "…" }` (collapses to the string form) and `{ concept = "…", hints = { intent = "prose" } }`.
-
-## Part 2 — Serialization and the fingerprint hazard
-
-This is the highest-risk detail in the milestone. Both fingerprint functions (`pipelex/libraries/library_crate.py`: `compute_fingerprint_from_content` lines 51–68, `compute_normalized_fingerprint` lines 74–98) hash `model_dump(mode="json")` payloads **without** `exclude_none`. A naïvely added optional field therefore lands as `"hints": null` in every dumped concept and field, changing **every existing crate digest** — the exact opposite of the spec's "a library that authors no hints keeps its fingerprint".
-
-The fix is the spec's own rule made local: "absent hints are an absent member — never `null`, never an empty table". Give `ConceptBlueprint`, `ConceptStructureBlueprint`, and `InputSlotBlueprint` a `@model_serializer(mode="wrap")` that drops only the `hints` key when it is `None` — the exact pattern `InputFormField.serialize_without_inapplicable_slots` already uses (`pipelex/pipeline/input_form.py:183-189`). Deliberately *not* a blanket `exclude_none`: the crate spec's general absent-members-not-null canonicalization is a separate forward contract whose adoption would migrate every existing fingerprint, and H2 must not smuggle that in. The targeted serializer keeps every current digest stable, makes hinted crates hash differently (correct — a hint edit is a semantic change to authored presentation, the domain-`description` precedent), and satisfies the crate encoding rule everywhere blueprints are dumped, including codegen's crate encoding. JSON canonical ordering is free (`sort_keys=True` in both fingerprint functions covers the "hints entries emitted sorted by key" rule); if `pipelex/codegen/crate_encoding.py`'s TOML encoding orders keys differently, it needs the same sorted-emission check.
-
-**Byte-identity guards:** a unit test asserting the serialized JSON of a hint-free concept/field/pipe contains no `hints` key at any depth; the existing determinism and idempotency tests (`tests/unit/pipelex/libraries/test_library_crate.py::test_fingerprint_determinism`, `test_crate_normalization.py::test_normalization_is_idempotent`, `tests/integration/pipelex/libraries/test_crate_normalization_round_trip.py`) re-run unchanged; and one pinned-fingerprint regression test — compute the normalized fingerprint of a committed hint-free fixture bundle on current `dev`, hardcode the hex in the test, and land the pin *before* the hints fields so the suite proves the digests did not move.
-
-## Part 3 — Crate travel and effective hints
-
-Hints need no new crate machinery to *travel* — they are blueprint content and ride `LibraryCrate.concepts`/`pipes` like every other member. The work is in normalization (`pipelex/libraries/crate_normalization.py`):
-
-- **Effective hints are assembled where the refinement chain is already walked**: `_flatten_refinement` (lines 117–137) via `_resolve_refinement` (lines 139–189). The chain structure makes this cheap: `refines` XOR `structure` means at most the chain's *end* carries structure, so the existing walk already visits every intermediate link — it only needs to accumulate hints as it goes. Extend `_RefinementResolution` (line 53) with `effective_hints: dict[str, str] | None`; while walking child→base, merge with first-seen-wins (nearer declaration wins, key by key — the shared merge helper of Part 4). Per the crate spec, this applies to every refining concept whose bases resolve in-crate — the one flattened to a bare structure *and* the one that keeps its `refines` link (native-backed chains; the pinned natives carry no hints this version, so they contribute nothing to the merge). A merge that yields nothing leaves the concept without a `hints` member. Mind the memoization at lines 187–188: a cached resolution must carry the hints of *its* position in the chain, not the querying concept's.
-- **Empty-table removal** is already done at parse time (the Part 1 collapse rule normalizes `hints = {}` to absence on slots, and the concept/field models can do the same in a validator), so the crate never holds an empty `hints` table and step-5 materialization owes nothing.
-- **Structure-field and slot hints are carried as authored** — the site-over-concept merge is the consumer's (here: the deriver's), both layers being present in the crate. Qualification passes them through untouched.
-- Idempotency: re-normalizing a normalized crate must be a no-op — a concept whose hints are already its effective hints re-merges to the same table (`test_normalization_is_idempotent` extends to a hinted fixture).
-
-## Part 4 — One shared hints module
-
-New module `pipelex/language/intent_hints.py` (beside `mthds_schema_generator.py` — this is language-standard knowledge, not runtime config), the single owner of:
-
-- The constants: `INTENT_HINT_KEY = "intent"` and the closed vocabulary `prose`, `label`, `rating`, `quantity`, pinned per standard version like the native concept definitions.
-- `merge_hints(layers)` — the one precedence implementation: key-by-key, later (nearer) layer wins, empty result is `None`. Called from the normalizer's chain walk, from the deriver's site merge, everywhere. The codebase already has three refinement-chain walks (`crate_normalization._resolve_refinement`, `InputFormDeriver._refines_chain`/`_merged_structure`, codegen's native expansion); hints must not add a fourth *merge semantics* — the walks stay where they are, but they all call this one merge.
-- The applicability predicates: text-valued and number-valued site judgment per the spec's Applicability section (structure-field types; refinement chains reaching `native.Text`/`native.Number`; description-only concepts are text-valued; plural sites judged per item), plus `applicable_intent(hints, *, site) -> str | None` returning the effective `intent` word only when it is known *and* applicable — the deriver's and the lint's shared question.
-
-## Part 5 — The advisory lint
-
-The spec's SHOULD-warn rules (unknown key, unknown `intent` word, applicable-word-on-inapplicable-site) cannot live in pydantic validators — a validator can only raise, and these must never reject. The engine already has the right pattern: a post-parse lint pass producing `ValidationErrorItem`s onto the report's `warnings` list (`pipelex/pipeline/validation_report.py:70`), exactly as `build_optionality_warnings` does (`pipelex/pipeline/optionality_warnings.py:33`, wired at `pipelex/pipeline/validate_in_process.py:114`).
-
-New module `pipelex/pipeline/hint_warnings.py` with `build_hint_warnings(...)` sweeping the qualified crate's three sites and emitting one advisory item per finding: an unknown hint key, an unknown `intent` word, an `intent` word on a site it does not apply to. Each warning names its site (concept code / field name / pipe code + slot name) so the author can find it. Well-formed unknown content is *only* warned about — it is preserved into the crate and the descriptor untouched.
-
-Error-type registry: add a dedicated advisory enum (working name `HintLintErrorType`: `hint_unknown_key`, `hint_unknown_intent`, `hint_inapplicable_intent`) joined into the `ValidationErrorType` alias (`pipelex/validation_error_types.py:285`), rather than growing `PipeValidationErrorType` — hints attach to concepts and fields too, so the pipe enum is the wrong home, and a new enum sidesteps rippling through the pipe enum's exhaustive `match` property blocks while still implementing whatever properties the render layer requires. Two gates will trip and must be updated deliberately: the error-identity snapshot (`tests/unit/pipelex/errors/test_error_identity_snapshot.py`, `make gei`) and the error-reference docs pages (`make gep`).
-
-## Part 6 — Populating the descriptor
-
-The reserved slot already exists and is never written: `InputFormField.hints` (`pipelex/pipeline/input_form.py:131`). Its `None`-dropping serializer means population is wire-additive and absent-when-unset for free. Narrow its annotation from `dict[str, Any]` to `dict[str, str]` — the flatness invariant is contract.
-
-**Getting slot hints to the deriver without touching runtime models:** `build_input_form` (line 199) already computes `qualify_crate(crate)`; keep its `concepts` and also keep `pipes`. For each pipe, the qualified blueprint's `inputs` map yields, per slot name, either a string (no hints) or a slot table (hints). `InputFormDeriver` grows a per-derivation lookup (pipe ref → slot name → hints) or simply receives the slot's hints as an argument to `derive_slot` from the `build_input_form` loop — the loop is where both the runtime `StuffSpec` and the crate blueprint are in hand. The fallback path (no crate loaded) derives with no hints, as today.
-
-**Where each site's hints are stamped:**
-
-- Concept nodes (`_blueprint_node`, lines 274–303, and `derive_concept`): the concept's *effective* hints — the deriver works over the qualified (unflattened) crate, so it computes the chain merge itself via its existing `_refines_chain` walk calling the shared `merge_hints`. String-shorthand concepts, natives, and class-backed concepts author no hints this version and stamp nothing.
-- Structure fields (`_structure_field`, lines 425–470): `merge_hints([referenced concept's effective hints (concept-typed and concept-item fields only), field.hints])` — the site layer winning key by key, stamped via the `model_copy(update=…)` pattern already used at the `concept` arm (line 444).
-- Input slots (`derive_slot`, lines 231–250): `merge_hints([slot concept's effective hints, slot hints])`, stamped in the final `model_copy(update=…)` at line 250 beside `presence`/`required`/`gating`.
-- Plural slots and list fields: the merged hints are stamped on the `list` node **and** on its `item` descriptor, mirroring the `concept_ref` duplication precedent ("the list node is where a renderer reads the slot's identity; the item is what it renders once per entry") — the spec judges applicability per item, and a renderer reading either node finds the same answer. Conformance pins this duplication.
-
-Everything well-formed rides the slot — including unknown keys and unknown words (preserved content per spec); a consumer ignores what it does not know.
-
-**Intent feeds the kind defaults — never competes with them.** The descriptor spec's ruling: an applicable `intent` word is an *input* to the deriver's kind-and-presentation defaults, never a second answer beside a derived `kind`. Concretely, via `applicable_intent(...)` from the shared module:
-
-- On a **text-valued node**, effective `intent = "prose"` yields `kind: "prose"` and `intent = "label"` yields `kind: "text"`; absent (or inapplicable, or unknown) intent leaves the node on the no-hint default.
-- On a **number-valued node**, `rating` and `quantity` do not change `kind` (both are `number` — the union has no finer kind); they ride the `hints` slot and the renderer decides what a judgment-versus-amount presentation means. The semantic bounds a rating presents against are already the constraint slots.
-- An intent word on an inapplicable site changes nothing in `kind` (the lint already warned); it still rides the `hints` slot as preserved content.
-
-**Promoting the no-hint defaults from heuristics to specified rules** is the other half of H2's mandate: the deriver's existing text-versus-prose and per-node kind assignments do not change behavior, but they get written down — as a stated rule table in `docs/under-the-hood/input-form-descriptor.md` and reflected into the workspace descriptor spec's kind-assignment section — so the no-hint case is specified, not folklore. H2 changes a node's kind only where an applicable authored intent says so.
-
-## Part 7 — Schema regeneration and propagation
-
-`mthds_schema.json` regenerates from the blueprint models (`pipelex/language/mthds_schema_generator.py:39`), so the two new `hints` fields and the slot-form union propagate automatically via `make gms` / checked by `make cms`. The slot union renders as an `anyOf` in Draft-4; if Taplo's disambiguation misbehaves on it, `_patch_construct_schema` (lines 218–304) is the precedent for a hand-patch. The generated file is gitignored (`derived/`), so drift is invisible in PRs — run `make cms` in the milestone's check loop. Propagation to the served schema and the vendored copies is the `/mthds-schema-sync` workspace plugin (`internal-tools/plugins/mthds-schema-sync/`), release-gated with a manual S3 step — it runs at the release that ships H2, not in this branch. The mthds site's intent-hints "Specification Status" section (which currently records that the served schema predates hints) gets its conformance assertion updated at the same release — an `mthds`-repo follow-up, filed at milestone close.
-
-## Part 8 — Tests
-
-- **Parsing (unit):** each site accepts a valid flat table; non-table `hints`, non-string values, and nested tables fail as structural errors at all three sites; unknown slot-table keys still fail; the collapse rule (`{ concept = "S" }` ≡ `"S"`, empty hints ≡ none); grammar preserved through the table arm (multiplicity + markers on `concept`). Homes: `tests/unit/pipelex/core/concepts/concept_blueprint/`, `tests/unit/pipelex/mthds_parsing/`.
-- **Fingerprint neutrality (unit + integration):** the pinned-fingerprint regression (landed before the fields), the no-`hints`-key serialization assertion, determinism/idempotency/round-trip suites extended with a hinted fixture; a hinted crate's fingerprint differs from its hint-free twin.
-- **Normalization (unit):** effective-hints merge along a chain (nearer wins, key by key), on both the flattened and the `refines`-keeping arms; memoized mid-chain resolution carries its own position's hints; empty merge leaves no member. Home: `tests/unit/pipelex/libraries/test_crate_normalization.py`.
-- **Lint (unit):** unknown key warns, unknown word warns, inapplicable word warns, all with site attribution; a warned bundle is still valid; warned content survives into crate and descriptor. Home: beside `test_validation_errors.py`; snapshot and docs gates re-generated.
-- **Deriver (unit + integration):** site-over-concept and chain precedence visible on the wire; `prose`/`label` flip `kind` on text-valued nodes only; `rating`/`quantity` leave `kind` untouched and ride the slot; list/item duplication; hint-free descriptor output byte-identical to today. Extend the probe bundle under `tests/data/input_semantics/` with hinted fixtures, and `tests/integration/pipelex/pipeline/test_input_form.py`'s kind table.
-- **Corpus:** one MTHDS Test Corpus entry authoring hints at all three sites (`pipelex/test_extras/mthds_corpus/`), `make generate-corpus-vocabulary` re-run; the entry is the "one real method" the gate's round-trip proof runs on, and `mthds-corpus-sync` propagates it at close.
-
-## Part 9 — Docs and changelog
-
-Update `docs/under-the-hood/input-form-descriptor.md` (the stated no-hint kind rules; the hints slot is no longer reserved-only; drop the now-false "the blueprint parser drops keys it does not know, so an authored `minimum = 0` never reaches the deriver" framing where it touches hints), document the three authoring sites and the lint in the language-facing docs where the engine documents blueprint fields, and record the feature under `## [Unreleased]` in the changelog. The workspace descriptor spec (`../docs/specs/mthds-input-form-descriptor.md`) updates its reserved-hint-slot section from "reserved" to "populated" with its unverified-comment lifted at conformance time; the conformance repo grows the hint-slot arm as a skip-gated skeleton (same de-gating pattern as D2's, arming at the release that ships H2). Both are workspace-side edits filed or made at milestone close per the execution protocol.
-
-## Phased plan
-
-**Phase 1 — Language surface.** The shared `intent_hints` module (constants, `merge_hints`, applicability). The pinned-fingerprint regression test, landed first against unchanged models. Then the three site additions: `ConceptBlueprint.hints`, `ConceptStructureBlueprint.hints`, `InputSlotBlueprint` + the `inputs` union + `generic_validate_inputs` table arm + the parse-time collapse rule. The targeted `None`-dropping serializers. Fixtures: accepted siblings, the reinterpreted rejection fixture, parse unit tests, fingerprint-neutrality assertions green.
-
-**Phase 2 — Crate travel.** Widen `_qualify_io_ref` and `_collect_referenced_natives` for the table arm; `InputStuffSpecsFactory` accepts the union and extracts the concept string only. Effective hints in `_resolve_refinement`/`_flatten_refinement` via the shared merge; normalization unit tests incl. idempotency on hinted fixtures; round-trip integration green.
-
-**Checkpoint A** — the crate layer is done: hints parse at three sites, travel qualified and normalized, hint-free crates provably keep their digests. Update this doc with decisions taken and any deviation folded into the later phases; verify cold-start readiness.
-
-> **Checkpoint A reached.** Phases 1–2 landed on `feature/Engine-hints`; execution detail is tracked in `TODOS.md` (repo root), whose "Resume state" section records the decisions this design left open, with these outcomes worth pinning here:
->
-> - `PipeBlueprint.inputs` widened to `Mapping[str, str | InputSlotBlueprint]` (value-covariant, so `dict[str, str]` construction sites stay legal), with the grammar-only projection `inputs_concept_specs` / `slot_concept_spec` for consumers that don't read hints. `InputStuffSpecsFactory` kept its `dict[str, str]` signature; the projection happens at the `pipe_factory` call site — same invariant (runtime `StuffSpec` never sees hints), smaller surface.
-> - The spec's sorted-hints-emission rule is implemented at the model: the shared `normalize_empty_hints` validator sorts keys, so fingerprints, codegen crate encoding, and the wire all emit canonically without encoder logic.
-> - Effective hints ride `_RefinementResolution.effective_hints` and are position-specific in the memoization cache (each visited ref's entry merges its own hints over what lies below); `_flatten_refinement` stamps the merge on the flattened arm, the native-backed refines-keeping arm, and structureless-base chains alike. The position-correctness guard is mutation-verified.
-> - Hint-free digest neutrality is proven by `tests/unit/pipelex/libraries/test_fingerprint_pins.py`, whose pinned hexes were committed before any model change; `tests/data/input_semantics/probe_bundle.mthds` must stay hint-free forever — hinted fixtures live in `hinted_bundle.mthds` beside it.
-
-**Phase 3 — Advisory lint.** `hint_warnings.py`, the advisory error-type enum joined into `ValidationErrorType`, wiring in `validate_in_process` beside the optionality warnings, error-identity snapshot and error-docs regenerated, lint unit tests.
-
-**Phase 4 — Descriptor population.** Slot-hints plumbing from the qualified crate through `build_input_form` into `derive_slot`; concept/field/slot stamping via the shared merge; the intent→kind rule on text-valued nodes; `InputFormField.hints` narrowed; list/item duplication; deriver unit + integration tests over the hinted probe bundle; hint-free descriptor byte-identity.
-
-**Checkpoint B** — the round trip exists end to end in-engine: authored hints visible in `hop5_input_form.json` via the trace harness on the hinted corpus method. Same checkpoint protocol as A.
-
-> **Checkpoint B reached.** Phases 3–4 landed; the trace harness on `tests/data/input_semantics/hinted_bundle.mthds` shows every authored hint in `hop5_input_form.json` — concept layer (`prose` on a description-only concept), field layer (label/prose/rating, an unknown key preserved), slot layer (site-over-concept merge), and the list/item duplication with the item's kind flipped. Decisions worth pinning:
->
-> - **Lint (Phase 3):** `HintLintErrorType` is its own enum joined into the `ValidationErrorType` alias (open question 1 resolved: no render-layer properties were needed; `make gei`/`gep` produced no diff since these are enum members, not error classes — the corpus vocabulary did regenerate, with the three tags excluded as advisory-only). Wired into `validate_in_process` via `build_current_library_hint_warnings()`, which sweeps the same accumulated crate `build_input_form` reads and is empty with no library window. The bare-CLI / agent-CLI / builder-ops warning channels are deferred (`wip/engine-hints/deferred.md`).
-> - **Descriptor (Phase 4):** open question 3 resolved as a per-call `derive_slot(slot_hints=...)` argument. The kind flip happens in exactly one place, `_with_effective_hints`, called once per node at the terminal where the FINAL merge is known — inner layers carry hints without flipping, so an outer layer overriding `intent` with an inapplicable word correctly falls back to the no-hint kind. `_node_site_kind` mirrors the lint's structural applicability judgment (number nodes are exact by construction; time-formatted text and Html-backed prose nodes are NOT text-valued).
-
-**Phase 5 — Schema, corpus, docs, close.** `make gms`/`cms` (Taplo patch if the slot union needs it); the corpus entry + vocabulary regen; Part 9's docs and changelog; `make agent-check` + `make agent-test`. Milestone close per the workspace protocol: roadmap checkpoint with SHAs, the workspace-side spec/conformance edits, inbox items for the `mthds`-site status assertion and the `mthds-corpus-sync`/`mthds-schema-sync` runs that ride the next release, and the H3 handoff note.
-
-## Out of scope, stated
-
-- The E7 `extra="forbid"` fix on `ConceptStructureBlueprint` (S2's strictness sweep) — H2 notes the boundary in Part 1(b).
-- Per-slot *semantic* keys (`description`, defaults, examples) on the expanded form — the form is their future home, the language does not define them yet.
-- Hints on class-backed (Python-defined) structures and on native definitions — no authoring surface this version.
-- The crate spec's general absent-members-not-null canonicalization and step-5 materialization — forward contracts; H2 implements only the hints-specific absence rule.
-- Builder/authoring-CLI emission of hints (`pipelex/builder/operations/concept_ops.py` writes concepts today and would drop authored hints on a rewrite) — flag as its own small follow-up unless it turns out to be a one-liner in Phase 5; it sits beside the known E8 spelling bug in the same writer.
-- The kernel rendering hints (H3) and the wire-descriptor swap in consumers (M1).
-
-## Open questions
-
-1. **Advisory enum home:** the design proposes a new `HintLintErrorType` joined into the `ValidationErrorType` alias; if the render layer's required properties make a shared enum cheaper, deciding at Phase 3 with the code in view is fine — the wire strings (`hint_unknown_key`, …) are the contract, the enum layout is not.
-2. **Gate wording:** "visible in a rendered control" — this design reads the engine-provable gate as wire-descriptor visibility (Checkpoint B), with the rendered-control demonstration completing when a descriptor-reading consumer exists (M1/H3). To reconcile in the roadmap at close.
-3. **`derive_slot` signature vs lookup:** whether slot hints reach the deriver as a per-call argument or a pipe-ref-keyed map is an implementation-taste call made in Phase 4; the invariant that matters is that runtime `StuffSpec` stays hint-free.
diff --git a/wip/enrich/deferred.md b/wip/enrich/deferred.md
deleted file mode 100644
index 819831652..000000000
--- a/wip/enrich/deferred.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# S2 "Enrich" — deferred findings
-
-Items surfaced by the pre-landing review of PR #1149 that are real but not clear-cut wins to fix on the branch. Each needs a ruling or a design choice; none blocks the merge.
-
-## 1. Non-JSON-serializable reflected default can crash report serialization far from its cause
-
-`pipelex/pipeline/input_form.py` (`_with_reflected_constraints`) stamps `field_info.default` raw into the descriptor's `default_value: Any` slot. A registered hand-written class whose field default holds a non-JSON-serializable value turns a valid bundle's report dump into a `PydanticSerializationError` at serialization time, far from the offending class. Exposure is limited by `reflect_structure_class`'s annotation gating (only mappable annotations reach reflection at all). The candidate remedy is to coerce via `pydantic_core.to_jsonable_python` and drop the fact on failure, per the faithful-or-absent rule — but silently dropping an authored fact versus failing loudly is a design choice that deserves a ruling, not a speculative guard.
-
-## 2. `_peel_multiplicity` rules `[1]` the opposite way from the rest of the chain — RULED, fixed
-
-`pipelex/core/memory/input_shaper.py` (`_peel_multiplicity`) treated a fixed count of 1 as a one-item **list**, while the S2 chain — `variable_multiplicity.py` helpers, the wire contract, the schema render, and `docs/under-the-hood/input-form-descriptor.md` — all ruled `[1]` **single** (no list framing). So a `[1]` slot's published schema said single object while the runtime shaper framed the payload as a list, and a consumer rendering a form on the descriptor would submit a value the shaper refused.
-
-The ruling went the way the standard already states it (`mthds/docs/language/multiplicity.md`, "A count of one is not a list"): `[1]` is the single form, and the shaper was the side that was wrong. Rather than correct that one function, the count now collapses to `None` at the sites that *build* a multiplicity — `parse_concept_with_multiplicity`, `InputStuffSpecsFactory.make_from_string`, `make_variable_multiplicity` — so the value `1` is unrepresentable downstream and no consumer has to remember the rule. `_peel_multiplicity` delegates to the shared projection helpers instead of re-deriving them, which is what let it drift in the first place. Fixing it surfaced three more sites re-deriving the same semantics from raw text: the blueprint's input-side marker check (which refused `Concept[1]?` while the output half accepted it), the contract-match canonicalizer (which read a header's `Brief` and a definition's `Brief[1]` as a mismatch), and the run-time output-multiplicity override.
-
-## 2b. The input-spec factory accepts `Concept[0]` where the io-ref parser refuses it — RULED at the validators
-
-Surfaced while ruling §2, then ruled in PR #1157's review round: `PipeBlueprint.generic_validate_inputs` and its spec-layer mirror (`PipeSpec.validate_inputs`) now refuse a non-positive bracket count with a plain `ValueError` ("Multiplicity must be at least 1") before the marker check, which matches how the output half surfaces the same rule through `parse_concept_with_multiplicity`. That closes the authoring paths — a `[0]` input is rejected at blueprint construction instead of detonating later in reference collection as an uncaught `PipeVariableMultiplicityError`. `InputStuffSpecsFactory.make_from_string` itself still matches `(\d*)` without the range check, but every route into it passes a validated blueprint first, so the residue is defense-in-depth, not a reachable hole.
-
-## 2c. The two input-side validators still hand-roll the ref grammar
-
-`generic_validate_inputs` and `PipeSpec.validate_inputs` each do `re.match(MULTIPLICITY_PATTERN, ...)` plus three group reads where a single `parse_concept_with_multiplicity` call would parse before deciding — which is what the blueprint's own comment says it wants, and what let §2/§2b drift in the first place. Folding them onto the parser means reconciling the error surfaces (the tests match on the validators' "Invalid input syntax for ..." prefix and the typed `OPTIONAL_MARKER_INVALID`); mechanical but not free, so it was left out of the round-1 fixes.
-
-## 3. `_with_reflected_constraints` name/content drift
-
-The function now stamps presence and default facts as well as constraints; the docstring says so but the name and the `constraints` dict variable don't. Rename-only suggestion (e.g. `_with_reflected_facts`) — not worth churn on its own; fold into the next touch of the module.
-
-## 4. Contract builder normalizes multiplicity twice per input
-
-`pipelex/pipeline/pipe_io_contracts.py` — the schema-memo key hand-normalizes `(is_multiple, fixed_count)` with the `hash(True) == hash(1)` caveat comment, while `make_io_multiplicity` computes the same projection a few lines later. Keying the memo on the `(IOMultiplicity, item_count)` pair from a single up-front `make_io_multiplicity` call would drop both the duplication and the caveat. Current code is correct (all four arms verified; the collision trap is genuinely closed and now pinned by a test) — simplification only.
-
-## 5. `rejected/` fixture corpus is mostly inert
-
-Four of the pre-existing `tests/data/input_semantics/rejected/` fixtures (`default_on_concept_field`, `multiple_refines`, `non_string_choices`, `refines_plus_structure`) are loaded by no test — the directory grew as a documentation corpus with only `per_input_description` (and now the two S2 fixtures, wired on this branch) exercised through the parser. A parametrized parser-level harness sweeping the whole directory would keep fixtures from rotting, but each fixture must first be confirmed to actually fail today's parse (some may document aspirational rejections) — audit before wiring.
-
-## 6. The `[1]` collapse is enforced at the build sites, not at the type
-
-Surfaced by PR #1157's review round. The count collapses wherever a multiplicity is *built* from authored syntax, which is enough for every path that goes through a parser — but the invariant the changelog states ("the value `1` no longer exists downstream") is not structural, and three sites falsify it today:
-
-- `pipelex/pipe_operators/img_gen/pipe_img_gen_factory.py` sets `final_multiplicity = ... else 1`, so **every** bare `Image` output carries a literal `1` in `PipeImgGen.output_multiplicity`. Harmless — `output_multiplicity_to_apply` normalizes it at run time — but the comment beside it ("default to 1 if no brackets") now reads backwards, since no brackets is the single form.
-- `SubPipeFactory` assigns `blueprint.nb_output` verbatim, so an authored `nb_output = 1` lives as a raw `1` on `SubPipe.output_multiplicity`. Every consumer that resolves it through `output_multiplicity_to_apply` gets the right answer; the two that did not were fixed in `a61a9163d`.
-- `StuffSpec.multiplicity` is a plain pydantic field with no validator, and `format_concept_with_multiplicity(multiplicity=1)` renders `Text[1]`, which the parser reads back as `None`. So the documented parse/format inverse does not hold in one direction, and a `1` arriving by direct construction or `model_validate` is never collapsed.
-
-Making it structural is a `@field_validator` on `StuffSpec.multiplicity` plus a `normalize_variable_multiplicity` inside `format_concept_with_multiplicity`, after which the build-site calls become belt-and-braces rather than the whole enforcement. Deferred because `tests/unit/pipelex/core/pipes/test_concept_multiplicity_formatting.py` deliberately pins `("Image", 1, "Image[1]")`, so the emitter is currently an intentional non-collapsing site — changing it is a ruling, not a cleanup.
-
-## 7. The zero-count rule is enforced on the bracket spelling only
-
-`Concept[0]` is now refused at both authoring layers (§2b), but the same count spelled as a step field is not: `SubPipeBlueprint.nb_output` carries no `ge=1`, and `SubPipeFactory` tests it for truthiness, so `nb_output = 0` silently means "no override" and `nb_output = -2` validates green and reaches `PipeLLM` as `fixed_nb_output = -2`. One language rule, two answers depending on which surface the author used. A `Field(ge=1)` on `nb_output` closes it.
-
-Relatedly, there is no *upper* bound anywhere: `Text[100000000000]` is accepted by every validator this branch touched, and `WorkingMemoryFactory.make_mock_stuff` materializes the count (`native.Text[50000]` builds fifty thousand items in about five seconds) on the mock-inputs dry-run path, reachable from bundle text alone. The branch that established "the count is validated where it is written" added the floor and no ceiling.
-
-## 8. `make_mock_stuff` is the sibling of the bug §2 fixed
-
-`pipelex/core/memory/working_memory_factory.py` decides plurality by truthiness (`if not typed_named_stuff_spec.multiplicity:`) and then takes the count verbatim, so a multiplicity of `1` still builds a one-item `ListContent` — the exact framing §2 set out to eliminate, in the one builder that was not converted onto `is_multiple_multiplicity` / `fixed_item_count`. Latent only: reachable through the `1`-carrying sites in §6. The fix is the same two-line delegation `_peel_multiplicity` received.
-
-## 9. The `[0]` input errors are untyped, unlike every rule beside them
-
-`PipeBlueprint.generic_validate_inputs` and `PipeSpec.validate_inputs` raise a bare `ValueError` for a non-positive count, while the presence-marker rule nine lines below raises a typed `PipeValidationError(error_type=OPTIONAL_MARKER_INVALID, ...)` and the output side raises `PipeVariableMultiplicityError`. So `Text[0]` is the one input-grammar violation the categorizer and the fix planner cannot act on, and the identical rule is worded two ways depending on the side it was written. Per this workspace's rule that structured fields are the contract and prose is presentation, one rule should produce one structured verdict. Folds naturally into §2c, which has to reconcile the same error surfaces.
-
-## 10. `PipeRunParams.output_multiplicity` coerces a string count of one to `True`
-
-`VariableMultiplicity = bool | int`, and pydantic resolves the union bool-first, so `output_multiplicity="1"` and `output_multiplicity=1.0` both become `True` — "let the model decide" — while `"2"` correctly becomes `2`. Only the count of one inverts, and it inverts into the opposite meaning. The union order predates PR #1157, but that branch is what makes `output_multiplicity=1` a documented public knob, so the string form an HTTP or SDK caller sends is newly worth getting right. `StrictBool | int` on the field, or a validator, settles it. `output_multiplicity=0` is a second gap: it resolves to `(0, is_multiple=True, count=0)` and reaches `PipeImgGen` as `nb_images = 0`, which generates one image anyway.
-
-## 11. A top-level `output_multiplicity=1` still splits the static pass from the run path
-
-`PipeSequence` copies the caller's run params to every step, so a top-level `output_multiplicity=1` reaches steps that declare their own plural output. `is_plural_step_result` reads only the step's *own* override (`None` there), so it answers plural from the declaration, while the run path resolves the inherited `1` to the single form. A lifted step then records an absence where the taint pass promised an empty list. Narrow trigger and the fix is a design question — whether an inherited override should participate in the static promise at all — so it was not folded into `a61a9163d`, which fixed only the sites reading a step's own override.
diff --git a/wip/enrich/design.md b/wip/enrich/design.md
deleted file mode 100644
index 209fbdf9b..000000000
--- a/wip/enrich/design.md
+++ /dev/null
@@ -1,130 +0,0 @@
-# S2 — Enrich: closing the engine-side semantics gaps (design)
-
-**Status:** design written 2026-08-23, opening milestone S2 of the input-form roadmap (`../wip/devx/input-form-roadmap.md` → Track S), on branch `feature/Enrich`. Inputs: the S1 findings ([`../input-semantics/findings.md`](../input-semantics/findings.md) — the worklist is its §A, ranked in §E, with the blast-radius catalogue in §D), the frozen descriptor spec (`../docs/specs/mthds-input-form-descriptor.md`), the D2 deriver (`pipelex/pipeline/input_form.py`), and H2's hint machinery, all on `dev` since PRs #1147/#1148. Per the roadmap: *"Richer schemas flow through the existing wire with zero client changes, and immediately improve agent tool-calling and docs as well as forms. Gate: the audit's engine-side list is closed; enriched schemas visible on `/validate`."*
-
----
-
-## 1. Where S2 stands after D2 and H2
-
-The S1 worklist was written before the descriptor existed. D2 has since landed the reference derivation, and the descriptor already carries most of what §A's "who guesses" columns were missing: `concept_ref` on every concept-typed node (E1's form-side ask), the `refines` chain (E2's), three-valued `presence` (E5's), `item_count` for fixed `[N]` multiplicity (E4's), authored `default_value` reported faithfully beside `required` (E3's descriptor half), and normalized one-member `choices` (E10's descriptor half, pinned by the spec). M1 will delete the app-side guessing by swapping the kernel onto that descriptor.
-
-So S2 is **not** "make the form possible" — that is done. S2 is what the roadmap always said it was, now sharpened by the descriptor's existence: make the authored facts live on the **contract channel** — the `json_schema`, the `pipe_io_contracts` shape, the runtime validation behavior, and the authoring loop — and make silent drops loud. The consumers this serves are the ones the descriptor deliberately does not: agent tool-calling, docs, ajv-style payload validation, the SDKs' structural surface, and the author who needs to know their key was read.
-
-## 2. The doctrine that sorts every entry
-
-The workspace's presentation-vs-contract doctrine decides where each fix goes, and it resolves every ambiguity in the worklist:
-
-- A fact about **what the caller submits** — multiplicity, presence, payload constraints, defaults, required-ness, descriptions of payload fields — is a contract fact. It belongs in `json_schema` and on the contract's structured fields, and machine consumers must be able to read it there without the descriptor.
-- A fact about **how to render** — kinds, gating, hints, flattening — is presentation. It lives on the descriptor, and S2 does not duplicate it onto the contract channel.
-- Where both channels carry the same fact (a default, a fixed count), they derive from the same crate in the same window, so they cannot disagree — the D2 precedent.
-
-One consequence stated up front: the roadmap's "zero client changes" describes the schema enrichments, which are additive inside an existing `json_schema` value. The contract reshaping (E5, E9) is a deliberate protocol change — spec-first, breaking, coordinated at the release cascade like everything else in this program. The two kinds of change are separated into their own phases below so the free half never waits on the coordinated half.
-
-## 3. Dispositions, entry by entry
-
-| Entry | Disposition |
-|---|---|
-| E1 concept identity | Schema: top-level `title` becomes the concept ref. Nested identity: ruled closed by the descriptor. |
-| E2 refinement chain | Ruled closed by the descriptor. No schema change. |
-| E3 required + default | **Decision:** reject the pair at validation. Language sentence to `mthds`, engine validator, spec touch-up. |
-| E4 `[N]` multiplicity | Schema: `minItems`/`maxItems` on the array wrap; multiplicity threaded through render and memo key. |
-| E5 `!` on the contract | Contract: three-valued `presence` replaces the input's `optional`. Protocol change. |
-| E6 missing descriptions | Schema: top-level `description` is the concept's authored description, by rule; native classes gain docstrings. |
-| E7 silent extras | `extra="forbid"` on `ConceptStructureBlueprint`; language sentence to `mthds`; `mthds_schema.json` regen. |
-| E8 builder writes `default` | One-line fix + round-trip test; delivers the standing inbox item. |
-| E9 multiplicity on contract | Contract: `multiplicity` goes three-valued (`single`/`variable`/`fixed`) with `item_count`. Protocol change, shared with E5. |
-| E10 `const` vs `enum` | Descriptor half closed by D2. Schema stays pydantic-canonical; `const` documented as part of the contract. |
-
-### E6 — the description rule (with E1's title riding along)
-
-The rule that closes E6 for every concept species at once: **the schema's top-level `description` is the concept's authored description, injected at the render.** The injection point is `_render_schema_representation` (`pipelex/core/concepts/concept.py:193`), which already receives the resolved class and knows `self.concept_ref`. For a generated class this is a no-op (its docstring *is* the concept description); for a class-backed concept it injects the authored fact the class cannot carry (several concepts may back onto one class, so the concept's description can never live on the class); for a native concept as a direct input it injects the pinned native blueprint's description — the same source the descriptor already reads via `make_pinned_native_blueprint`.
-
-Separately and additively, the native content classes that lack docstrings (`TextContent`, `ImageContent`, `DocumentContent`, `PageContent`, `NumberContent`, `HtmlContent`, `YesNoContent` — S1 measured only `DateContent`/`TimeContent` carrying one) **gain docstrings**. This serves the consumers the render never touches: the live class is handed to instructor as the structured-output response model, so a docstring reaches the provider-side schema on every LLM structured generation.
-
-E1's schema half rides the same render seam: the top-level `title`, today the mangled generated-class name that the app deliberately discards (`pipelex-app/src/lib/run-form/field-model.ts:210-215`), becomes the concept ref. Nested concept identity stays descriptor-only: renaming `$defs` keys would mean rewriting every `$ref` in the emitted schema, and after M1 no consumer derives a form from the schema — the descriptor's per-node `concept_ref` is the answer to that question. Same ruling for E2: JSON Schema has no inheritance vocabulary, the descriptor's `refines` list is the fact's home, and the schema stays untouched.
-
-### E4 — fixed multiplicity reaches the schema
-
-`render_stuff_spec` collapses multiplicity to `is_multiple()` before the render (`pipelex/core/pipes/stuff_spec/stuff_spec.py:58`), and the contract memo key does the same (`pipelex/pipeline/pipe_io_contracts.py:104`), which is why `Gadget[2]` renders as a bare `array`. The fix threads the real multiplicity value through: `render_concept_representation` takes the multiplicity (not a boolean), the array wrap in `_render_schema_representation` emits `minItems: N` and `maxItems: N` when the count is fixed, and the memo key becomes `(concept_ref, multiplicity)` so two different counts of the same concept no longer share one cached schema. A variable `[]` slot gets neither bound — the language cannot yet say "at least one" (S1 §B), and inventing a minimum here would contradict the gating rationale the descriptor spec records.
-
-### E5 + E9 — the contract learns presence and multiplicity (protocol change)
-
-These are the two entries whose fix is a wire-shape change on `pipe_io_contracts`, and they land together because they touch the same models and the same spec section. The doctrine argument for doing them despite the descriptor: presence and multiplicity are facts about *what the caller submits* — contract facts. Today the app rebuilds `[]` from `json_schema.type === "array"` in three drifted places with one documented gating bug (S1 E9), and a graph or lint surface that wants to show where `!` assertions live has no channel at all (S1 E5). Non-form consumers should not need a presentation view to learn a contract fact.
-
-Proposed shape, mirroring the descriptor's vocabulary so the two surfaces share words (the D1 naming discipline):
-
-- `PipeInputContract`: `presence: "plain" | "optional" | "force"` **replaces** `optional` (`pipelex/pipeline/pipe_io_contracts.py:45-53`). `optional` is exactly `presence == "optional"` — keeping both would be two spellings of one fact, the drift pattern S1 catalogued in the app.
-- `PipeInputContract` and `PipeOutputContract`: `multiplicity` becomes three-valued — `single` / `variable` / `fixed` — with `item_count: int` present exactly when `fixed` (today `IOMultiplicity` deliberately reports a fixed count as `variable`, per its own docstring at `pipe_io_contracts.py:34-42`; that ruling is what E4/E9 revisits). The input contract, which today has no multiplicity field at all, gains both.
-- `PipeOutputContract` keeps `optional` as-is: `!` is rejected on outputs (`pipelex/pipe_machinery/pipe_blueprint.py:335`), so the output's presence is genuinely two-valued and the existing spelling is honest.
-
-This is spec-first work: the protocol spec pins the current shape and prose (`../docs/specs/pipelex-mthds-protocol.md:48` — the `pipe_io_contracts` row — and the "Optional IO contracts and liftable pipes" section), and the conformance side is `conformance/tests/pipelex_api/test_validate_optionals.py`, already skip-gated until the pinned runtime speaks optionals — the reshaped assertions inherit that gate and arm at the cascade like everything else. Spec and conformance move in the same change (`make check-spec-links` in `conformance/`). The TS protocol types (`mthds-js/src/protocol/models.ts`) and the second engine's contract emission (`pipelex-js`, `@pipelex/runtime`) follow at the cascade — cross-repo, filed as inbox items at S2 close, listed in §8. Changelog: breaking.
-
-### E3 — `required = true` + `default_value` is rejected (decision to ratify)
-
-The audit measured the pair validating green and the generator silently dropping the required-ness by parameter ordering (`pipelex/core/concepts/structure_generation/generator.py:307-313`). The descriptor spec deliberately did not enshrine the accident and delegated the emission decision to engine work (spec → "Facts over emission accidents"). The two candidate rulings:
-
-- **Reject the pair at blueprint validation** — the recommendation. `default_value`'s measured meaning is "applied on absence at validation" (S1 §C), which makes absence legal, which contradicts `required`'s "must be present in the payload". Two contradictory instructions on one field is an authoring error, and the workspace answer to an authoring error is a loud validation failure, not a silent tiebreak.
-- *Define the pair* (required advertises, default fills) — rejected here: it would split what the schema advertises from what validation does, and an author wanting "prefill but make the user confirm" is asking a presentation question, which is hint/`examples` territory, not `default_value`'s.
-
-What the ruling touches: a model validator on `ConceptStructureBlueprint` rejecting the pair; the generator's accidental branch becomes unreachable and is replaced by an explicit invariant; the mthds format spec gains the validation-rule sentence (its rules list at `mthds/docs/spec/mthds-format.md:179-188` addresses adjacent combinations but not this one) — cross-repo, via inbox; the descriptor spec's `default_value` row retires its "may carry both `required: true` and a `default_value`" sentence (the pair can no longer reach a descriptor — the row's "reporting authored intent, not the accident" framing is what made the sentence true, and rejection upstream makes it vacuous); the probe bundle's `titled_default` field (`tests/data/input_semantics/probe_bundle.mthds:30` — the only authored instance of the pair anywhere in the fixtures or corpus, measured by sweep) moves to a `rejected/` fixture. Changelog: breaking.
-
-### E7 + E8 — the authoring loop stops lying
-
-**E7:** `extra="forbid"` on `ConceptStructureBlueprint` (`pipelex/core/concepts/concept_structure_blueprint.py:50`), closing the asymmetry S1 called stark — a typo on a concept fails loudly while a typo on a field dies silently. H2 raised the stakes: `hints` is now a known key, so a typo'd `hint = {...}` is silently dropped authored intent today. The strictness boundary is exactly H2's: the field table's *keys* are strict; hint *content* stays lenient (unknown hint keys warn and are preserved — that rule is untouched). Knock-ons: the mthds format spec's structure-field key table (`mthds/docs/spec/mthds-format.md:148-158`) needs the sentence its input-slot twin already has ("An unknown key in an input slot table MUST be rejected", `mthds-format.md:304`) — cross-repo, via inbox, engine leading the spec by one release exactly as H2 did; `mthds_schema.json` regenerates (`make gms` — structure-field objects flip to `additionalProperties: false`), and its propagation rides the already-filed release-time sync (`../wip/inbox/2026-08-23-workspace-hints-corpus-and-schema-sync-at-release.md` — S2 ships in the same release as H2, so the filed item covers both); fixtures and corpus get swept for hopeful extras before the flip (the S1 sweep found the hopeful keys only in the probe bundle, but the sweep must be re-run at implementation time). Changelog: breaking.
-
-**E8:** the builder writes the TOML key `default` where the language reads `default_value` (`pipelex/builder/operations/concept_ops.py:115-116` — still live, verified on `feature/Enrich`), so a builder-authored default evaporates on re-load. One-line fix plus a write-then-validate round-trip test; E7's forbid turns any recurrence of this bug class into a hard failure instead of silent loss. This delivers the standing inbox item `../wip/inbox/2026-08-21-pipelex-builder-default-key-dropped.md` — remove it from the queue at close.
-
-### E10 — the schema stays canonical, and says so
-
-The descriptor half is closed: D2's deriver normalizes pydantic's one-member-`Literal`-as-`const` quirk into a one-member `choices` list, pinned by the descriptor spec. For the schema channel the ruling is **no render mutation**: `const` is valid JSON Schema, ajv reads it, and rewriting pydantic's canonical output would break the measured hop-3-to-hop-5 losslessness that S1 called worth repeating — the property that makes the whole chain auditable — and would hand the second engine's schema emitters a divergence to chase. Instead the protocol spec's `pipe_io_contracts` row gains one sentence documenting that `json_schema` is pydantic-canonical, single-choice enums included (`const`, no `enum` array), so a schema consumer reads it as contract rather than discovering it as a quirk. The app's form path stops reading the schema at M1, which retires the one consumer that mishandled it.
-
-### The D2 deferral folds in: reflected defaults are authored facts (decision to ratify)
-
-D2 parked a decision (`../input-semantics/deferred-descriptor-reflection-and-roundtrip.md`): a reflected class field with a pydantic default (`count: int = Field(default=0)`) lands in the descriptor as `required: true` with no `default_value`, because `native_expansion` derives required-ness from the annotation only. The recommendation is to rule **a pydantic default on a reflected class is an authored fact** — the class author wrote it, validation applies it on absence exactly like a blueprint `default_value`, and the descriptor claiming `required: true` for such a field is today's actual dishonesty. With E3's rejection ruled, the two stay consistent: `field_info.is_required()` is the single source of truth for the flag, and a defaulted field is not required — the same invariant the blueprint side now enforces loudly. Mechanically it is the one-function change the deferral note describes (`_with_reflected_constraints` in `pipelex/pipeline/input_form.py`, reading `field_info.is_required()` and `field_info.default`), plus a row in the kind-assignment table's tests. The deferral note's second item (the wire model's `datetime` round-trip alias) stays parked for D4, as ruled there.
-
-## 4. Blast radius
-
-- **Do not touch the wording of `DocumentContent.url`'s field description in S2.** The app's dropzone matcher still keys on the `"document url"` substring (S1 §D); its retirement is M1's, and the half-dead branch is already filed app-side. All S2 description work is *top-level* (concept descriptions, class docstrings), which is safe on both app stacks: the RJSF stack overwrites the top-level description anyway, and no matcher reads it.
-- **No native field renames.** Every `⚠` row in S1 §D stands; S2 adds facts, it never reshapes payloads.
-- **Schema-byte captures re-baseline.** Anything that pins emitted schema bytes — the codegen/validate parity corpora, conformance captures, characterization tests — shifts under E6/E1/E4. Phase 0 inventories exactly which captures pin schema output so the re-baselines are deliberate, not discovered in CI.
-- **The second engine diverges until mirrored.** `pipelex-js`'s emitters must mirror the schema enrichments and the contract reshape to keep the E-track differential green; that is a filed follow-up (§8), and the differential is precisely the instrument that will measure the gap in the meantime — failing on purpose, the E1 pattern.
-- **`H2`'s fingerprint invariant is untouched.** E7's forbid changes what *parses*, not how a valid crate normalizes; hint-free crates keep byte-identical fingerprints.
-
-## 5. Measurement and gate mechanics
-
-S1's instrument is S2's proof. The probe bundle and the `pipelex-dev trace-input-semantics` harness are extended where a closure needs a case they lack (class-backed and native-direct-input descriptions, the title, `minItems`/`maxItems`; `titled_default` moves to `rejected/`), and the survival table is regenerated at close — each entry's closure must be visible as a before/after row change, the same evidence standard the audit set. Beside the probe: unit tests at each seam (the blueprint validator, the generator invariant, the render injections, the contract fields, the builder round trip).
-
-The gate splits exactly as D2's did, and the roadmap closure bullet must say so: **in-engine close** is the probe-measured survival table plus green tests on `feature/Enrich`; **"enriched schemas visible on `/validate`"** on the hosted wire arrives with the release cascade (D3's sequence), where the gated conformance modules arm. In-process `/validate` (the CLI and agent-CLI surfaces) shows the enrichment immediately on merge, since all three presentations share the one validation engine.
-
-## 6. Decisions to ratify before implementation
-
-1. **E3:** reject `required = true` + `default_value` at validation (recommended), versus defining the pair. Carries a one-sentence mthds spec addition and a breaking changelog note.
-2. **E5/E9:** reshape the contract — `presence` *replaces* the input's `optional`, `multiplicity` goes three-valued with `item_count` (recommended), versus additive-only (keeping `optional` beside `presence`). The recommendation follows the no-backward-compat principle and the single-source rule; the cost is coordinated updates to the protocol spec, conformance, `mthds-js` types, and the second engine, all of which ride the cascade anyway.
-3. **Reflected defaults:** a pydantic default on a reflected class counts as an authored fact (recommended), closing the D2 deferral's first item inside S2.
-
-## 7. Execution phases
-
-Tracker convention: at kickoff, seed `TODOS.md` at the worktree root from this section (the D2/E1 pattern); this document stays the design and does not track live state. Each checkpoint updates the tracker with decisions taken, deviations reconciled into later phases, and enough state for a cold-start session to continue.
-
-- **Phase 0 — ratify and sweep.** Decisions §6 confirmed by Louis. Sweeps, re-run at head: hopeful extras and the `required`+`default_value` pair across fixtures, corpus entries, and cookbook-adjacent test data; inventory of captures that pin schema bytes. Output: the fixture-fallout list for Phases 1–2.
-- **Phase 1 — loudness (E7, E8).** The forbid, the builder key, the round-trip test, `make gms`, fixture fallout, delivery of the E8 inbox item. **Checkpoint 1** — natural handoff: the authoring loop is honest, nothing wire-visible has changed yet.
-- **Phase 2 — schema enrichment (E6, E1-title, E4).** The render-seam injections, native docstrings, multiplicity threading, memo-key change, probe extensions. **Checkpoint 2** — the "zero client changes" half is complete and measurable.
-- **Phase 3 — contract reshaping (E5, E9).** Spec-first: the protocol spec's contract row and presence section, the conformance assertions (gated), then the engine models and emission, `make check-spec-links`. **Checkpoint 3** — the protocol change is contained in one reviewable unit.
-- **Phase 4 — semantics and close (E3, reflected defaults).** The blueprint validator, the generator invariant, `_with_reflected_constraints`, descriptor-spec touch-ups, survival-table regeneration, findings addendum (a short §F recording each entry's closure evidence), roadmap closure bullet, changelog, and the cross-repo filings of §8.
-
-## 8. Cross-repo follow-ups to file at close
-
-Each of these crosses a boundary this session must not quietly widen into; they are filed as `../wip/inbox/` items in Phase 4, with this design as their evidence base:
-
-- **`mthds`** — two spec sentences: unknown structure-field keys MUST be rejected (the slot-table rule's twin), and a field MUST NOT declare both `required = true` and `default_value`. Engine leads by one release, the H2 precedent.
-- **`pipelex-js`** — mirror the schema enrichments and the contract reshape in the second engine's emitters; the parity differential measures the gap until then.
-- **`mthds-js`** — the protocol types in `src/protocol/models.ts` follow the contract reshape at the cascade (D4 regenerates SDK types against the same release).
-- No new item for schema/corpus sync: the filed release-time item (`2026-08-23-workspace-hints-corpus-and-schema-sync-at-release.md`) covers the release that ships H2 and S2 both.
-
-## 9. Out of scope
-
-- **The language ceiling (S1 §B)** — constraints, examples, units, per-slot descriptions, choice labels, non-string choices, refine-and-extend: all language design, Track H's territory via an mthds design session. S2 makes their absence *loud* (E7) but adds no syntax. The descriptor's `examples` and constraint slots stay shaped-to-receive.
-- **App-side fixes** — the drifted taxonomy copies, the dropzone matcher, the flatten-then-repair round trip: M1 deletes them by swapping the kernel onto the descriptor.
-- **Corpus widening** — the input-side coverage wish-list (`../wip/inbox/2026-08-22-pipelex-corpus-input-side-concept-coverage.md`) is adjacent and stays its own pass; S2's probe bundle is the measurement fixture, not a corpus substitute.
-- **E10 beyond documentation** — no `const`-to-`enum` render rewrite, per the §3 ruling.
-- **The descriptor wire model's round-trip alias** — D4's, per the deferral note.
diff --git a/wip/entry-pipe-error-domain/plan.md b/wip/entry-pipe-error-domain/plan.md
deleted file mode 100644
index 8c446e51d..000000000
--- a/wip/entry-pipe-error-domain/plan.md
+++ /dev/null
@@ -1,93 +0,0 @@
----
-status: landed
-item: L-260829-fa8267
----
-
-# Give the entry-pipe lookup failures the INPUT domain
-
-## The bug, verified
-
-An ambiguous or unknown entry `pipe_code` on the run routes is reported as a server fault. Probe on this tree (dev):
-
-```python
-from pipelex.libraries.pipe.exceptions import PipeLibraryError, PipeNotFoundError
-
-PipeLibraryError("…").to_error_report() # error_domain=None, http_status=500
-PipeNotFoundError("…").to_error_report() # error_domain=None, http_status=500
-```
-
-Both classes are declared bare (`pipelex/libraries/pipe/exceptions.py`), so `ErrorReport.http_status` falls through `error_domain_to_http_status(None)` → 500 (`pipelex/base_exceptions.py`). The raise sites are the entry-shaped lookup in `pipelex/libraries/pipe/pipe_library.py`: `get_optional_entry_pipe` raises `PipeLibraryError` on an ambiguous bare code, and `get_required_entry_pipe` raises `PipeNotFoundError` on a miss. The run path reaches them through `pipeline_run_setup.py` (`get_required_entry_pipe` on a caller-supplied `pipe_code`), so a caller typo surfaces as a 500, logged with a traceback, looking retryable to every SDK — for a mistake only the caller can fix. Meanwhile `pipelex-api`'s build routes catch `PipeLibraryError` and answer 422 (`api/routes/pipelex/crate_ops.py`), so the same typo gets two different verdicts depending on the route. `pipelex-api/api/exception_handlers.py`'s `_ERROR_TYPE_STATUS_OVERRIDES` has no entry for either class — and per the ledger item, the runtime-side domain is the better fix anyway: every presentation (CLI exit code, API status, hosted) derives from it at once.
-
-## Design
-
-- **Two dedicated classes** in `pipelex/libraries/pipe/exceptions.py`, subclassing the existing ones so every current catcher keeps working (`bundle_validator.py`, `validate_bundle.py`, `pipe_parallel.py`, the CLI commands, and `pipelex-api`'s `crate_ops.py` / `build/runner.py` all catch the bases):
- - `EntryPipeNotFoundError(PipeNotFoundError)` — raised by `get_required_entry_pipe` when the lookup resolves nothing.
- - `EntryPipeAmbiguousError(PipeLibraryError)` — raised by `get_optional_entry_pipe` when a bare code matches several domains.
-- **Both carry** `error_domain = ErrorDomain.INPUT`, a `user_action = UserAction(kind=UserActionKind.CHANGE_INPUT, …)`, a `_declared_title`, and `_authors_caller_facing_message = True` — the messages describe only the caller's own `pipe_code` and the qualified `pipe_ref` candidates of their own loaded bundles, so STRICT disclosure may keep them verbatim. The flag spans every raise site of a class; these classes have exactly the two entry-lookup raise sites, so that is safe. Imports mirror `pipelex/pipeline/exceptions.py` (`ErrorDomain` from `base_exceptions`, `UserAction`/`UserActionKind` from `cogt/inference/error_classification`).
-- **Messages** keep naming the candidates as sorted qualified `pipe_ref`s (the ambiguous message already does) and say what to send instead: name one candidate explicitly as `domain.pipe_code` in the `pipe_code` field / CLI argument.
-- **In-body semantics untouched.** `get_optional_pipe` / `get_required_pipe` keep raising the existing classes. One edge: an entry-shaped `alias->bare_code` that is ambiguous inside the dependency raises `PipeLibraryError` from *inside* `get_optional_pipe` (the alias-scoped bare-remainder search) even when the call came through the entry lookup. `get_optional_entry_pipe` will translate that: wrap its `get_optional_pipe` delegation, catch `PipeLibraryError`, re-raise as `EntryPipeAmbiguousError` `from` the original. In-body callers going directly through `get_optional_pipe` see no change.
-- **No `pipelex-api` change needed.** With the domain on the classes, `ErrorReport.http_status` yields 422 and `_ERROR_TYPE_STATUS_OVERRIDES` stays untouched; the build routes' explicit 422 catch is unaffected (subclasses still match).
-
-## Phases
-
-### Phase 1 — red tests
-
-In `tests/unit/pipelex/libraries/test_pipe_library_lookup.py` (extend the existing suite):
-
-- An ambiguous bare entry code (two domains declaring the same pipe code) raises `EntryPipeAmbiguousError`; the message names both qualified `pipe_ref`s; `to_error_report()` has `error_domain == ErrorDomain.INPUT` and `http_status == 422`.
-- An unknown entry code raises `EntryPipeNotFoundError`; same report assertions.
-- The entry-shaped `alias->bare_code` ambiguity is translated to `EntryPipeAmbiguousError` (with the `PipeLibraryError` as `__cause__`), while the same lookup through `get_optional_pipe` still raises plain `PipeLibraryError`.
-- In-body miss through `get_required_pipe` still raises plain `PipeNotFoundError` with no domain (guards the "untouched" constraint).
-
-Run them, watch them fail for the right reason.
-
-### Phase 2 — implement
-
-- Add the two classes to `pipelex/libraries/pipe/exceptions.py`.
-- `pipe_library.py`: swap the two raise sites; add the translation wrapper in `get_optional_entry_pipe` around its `get_optional_pipe` call.
-- Regenerate the error artifacts — a new error class is invisible to everything but the full suite until this is done: `make gei` (error-identity snapshot) and `make gep` (error reference pages under `docs/errors/`).
-- Tests from Phase 1 go green.
-
-### Phase 3 — sweep, docs, gates
-
-- Sweep callers of the two lookups (`interpreter_hub.py` wrappers, `pipeline_run_setup.py`, CLI `show`/`which`/`validate`/`codegen`) for any message-matching or type branching that the new subclasses would change — none expected, verify anyway.
-- CHANGELOG.md under `## [Unreleased]`: one condensed entry (fixed: entry-pipe lookup failures now carry the INPUT domain → 422 instead of 500 on the run routes).
-- `make agent-check`, then full `make agent-test` (the identity snapshot and error-page tests only run there).
-
-### Checkpoint
-
-All three phases landed. `make agent-check` and the full `make agent-test` are green.
-
-**Deviations from the design, and one thing the sweep actually found.**
-
-The alias-ambiguity translation went in as designed, wrapping only the `get_optional_pipe` delegation in `get_optional_entry_pipe` and re-raising `from` the original. Nothing else about the in-body path moved: the plain `PipeLibraryError` / `PipeNotFoundError` still come out of `get_optional_pipe` and `get_required_pipe` with no domain, pinned in both directions by the lookup suite.
-
-The one real find was outside the design. `pipelex/cli/agent_cli/commands/validate/pipe_cmd.py` and `bundle_cmd.py` caught `PipeNotFoundError` and passed `error_type="PipeNotFoundError"` as a hardcoded string. Because `agent_error` reads the domain and hint report-first from the cause, those envelopes would have carried `EntryPipeNotFoundError`'s INPUT domain and `CHANGE_INPUT` hint while naming a class that declares neither — an envelope contradicting itself for anyone branching on `error_type`. Both arms now pass `type(exc).__name__`. That is a wire-visible change for a consumer keyed on the old string, which is the point: the string was already the wrong answer. No test asserted on it, and neither `AGENT_ERROR_HINTS` nor `AGENT_ERROR_DOMAINS` held an entry for it.
-
-That edit opened the `cli-docs` drift contract. Reviewed, acked, and the rule is now written into `pipelex/cli/agent_cli/CLAUDE.md`'s Error-classification bullet, since the trap generalizes: with a report-first read, any hardcoded `error_type` label detaches the reported class from the classification riding beside it.
-
-**Docs.** `docs/under-the-hood/error-model.md` gained a Behavior Summary row for the entry lookups, stating the in-body contrast. `docs/errors/entry-pipe-not-found-error.md` and `entry-pipe-ambiguous-error.md` are the generated pages (`make gep`), and `tests/data/errors/error_identity.txt` the regenerated snapshot (`make gei`).
-
-**Also pinned.** `tests/unit/pipelex/exceptions/test_class_level_metadata.py` gained both classes in the domain, user-action and caller-facing sweeps, plus their undomained, non-caller-facing parents — so a future refactor that lets the entry classification leak onto the in-body doors, or that quietly drops it from the entry ones, fails there too.
-
-Next: open the PR against `dev` with `Closes L-260829-fa8267` in the body. After the merge, the blocked runner-side item L-260829-a30018 becomes workable.
-
-### Review round
-
-Two corrections on top of the checkpoint, both inside the design's own surface.
-
-`EntryPipeAmbiguousError`'s `user_action` detail said `Name one of the listed candidates explicitly, as 'domain.pipe_code'.` That is right for the bare-code arm and wrong for the arm translated from the alias-scoped search, whose message names domains inside a dependency package: a caller obeying it and sending `scoring.compute_score` reaches the entry lookup's host-only match (`pipe_library.py`'s `has_cross_package_prefix` exclusion), resolves nothing, and gets `EntryPipeNotFoundError` instead. One `user_action` serves both raise sites, so the detail now carries both spellings. `make gep` regenerated the ambiguous page.
-
-The translation arm caught `PipeLibraryError`, and `PipeNotFoundError` is one — so a miss raised from inside `get_optional_pipe` would have been re-raised as a class asserting an ambiguity, carrying a hint about candidates that never existed. No in-body site raises one there today, which is exactly why the trap would have been silent; `get_optional_entry_pipe` now lets `PipeNotFoundError` through untranslated. Pinned by `test_entry_pipe_does_not_translate_a_miss_into_an_ambiguity`, which injects the raise and was mutation-checked red with the arm removed.
-
-The review also found the same defect class one module over, left out to keep this diff at its stated scope: `validate_bundle.py`'s `_pipes_to_dry_run` raises the undomained `PipeNotFoundError` for a caller-supplied `--pipe` / `pipe_ref`, and `pipelex-api`'s build route maps it to 422 by hand. Filed as L-260901-296dfb.
-
-### Landed
-
-Merged as PR #1180 into `dev`, squashed at `7faacf81f98e59c20867dd102d2140ab0a9b8e23`, with every CI job green — the eight py3.11 test shards, the typecheck, and the whole lint set including the drift-contracts job that gates the `cli-docs` ack this work opened. Verified in the merged tree: `pipe_library.py` raises the two entry classes at its ambiguous-bare-code and required-miss sites, `exceptions.py` declares `ErrorDomain.INPUT` on both, and a live probe of `pipelex-agent validate pipe` on a code declared in two domains answers `EntryPipeAmbiguousError` with `error_domain: input` and the `CHANGE_INPUT` hint, where the same probe on the pre-merge tree returned an unclassified `PipeLibraryError`.
-
-The merge is on `dev` only. Nothing here reaches a consumer pinning an exact version until a release carries it; the repo's open release item is L-260828-f4e88c, which was cut for a different change and will pick this up if it has not already been published by the time it moves.
-
-**A correction to the checkpoint's closing line.** It said the blocked runner-side item L-260829-a30018 becomes workable after this merge. It does not: that item waits on L-260829-be0d9b as well, and only that second blocker's close will release it. The ready work that this close actually exposes is elsewhere under the same epic — the protocol-side `pipe_ref` items, starting with L-260829-662bf4.
-
-**The pre-landing review added nothing new.** It re-derived the `_pipes_to_dry_run` gap already recorded above and confirmed it is genuinely out of this diff's scope, and it verified by live probe that `pipelex-agent validate bundle --pipe <typo>` still answers with no `error_domain` while its sibling `validate pipe <typo>` now answers `input` — which is the divergence L-260901-296dfb exists to close. One presentational nit worth carrying into that item: `bundle_cmd.py`'s new `type(exc).__name__` label is a no-op until then, because the only class reaching that arm today is the bare `PipeNotFoundError` from `_pipes_to_dry_run`, so its comment pointing at "the same arm in `validate pipe`" describes an intent rather than the current behaviour.
diff --git a/wip/flaky-test-transported-run-structures.md b/wip/flaky-test-transported-run-structures.md
deleted file mode 100644
index 7c2a18bb1..000000000
--- a/wip/flaky-test-transported-run-structures.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# Flaky under full suite: `test_transported_run_generates_concept_structures`
-
-`tests/unit/pipelex/pipe_operators/pipe_func/test_direct_executor_workdir.py::TestDirectExecutorWorkdir::test_transported_run_generates_concept_structures` failed in three of four full-suite runs on `feature/Engine-hints` (both checkpoint `make test` runs and the final `make test`; the Phase 5 `make agent-test` run passed) with:
-
-```
-pydantic_core._pydantic_core.ValidationError: 1 validation error for PipeFunc
-function_name: Value error, Function 'greet_it' not found in registry
- (raised from pipelex/pipe_operators/func/pipe_func_factory.py:28, during load_libraries)
-```
-
-It passes in isolation and when its whole module runs alone (16/16). Evidence that this is a pre-existing order-dependent flake, not an Engine-hints regression:
-
-- The test sets `get_config().interpreter.pipe_func.execution_mode = "local_sandbox"` (the mode whose loader tolerates a yet-unregistered function) immediately before `load_libraries`, restoring it in `finally`. The observed failure means the loader read a non-tolerant mode — i.e. under xdist the config object the factory reads was not the one the test mutated, which is a test-isolation problem around the shared `get_config()` singleton, not a hints problem.
-- The hints diff touches concept/pipe blueprints, crate normalization, the input-form deriver and an advisory lint. It does not touch config plumbing, PipeFunc, the func registry, or execution modes.
-- The test file was last modified by the ruff 0.16.4 move (`6214a7b4f`), before this branch existed.
-
-Suggested fix direction (deferred, not done here to avoid scope creep on the hints PR): make the test independent of the live config singleton — e.g. patch `execution_mode` via `mocker.patch.object` on the exact config instance the loader reads, or give the loader an explicit mode parameter for tests.
diff --git a/wip/full-optional/README.md b/wip/full-optional/README.md
deleted file mode 100644
index 978bec144..000000000
--- a/wip/full-optional/README.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# Full-optional track — a required input whose concept demands nothing
-
-The track behind the **vacuous presence lint**: an advisory `warnings` item, emitted at validate time, when an entry pipe's gating input names a concept whose structure declares no required field — so an empty object satisfies the declaration and no form, gate or caller can tell what "supplied" means.
-
-- [`design.md`](design.md) — the settled design: the rule, its decision table, the decisions (entry-pipe scope, descriptor substrate, one composition point for every advisory warning), the wire shape and message, the blast radius, what is deliberately out of scope, and the cross-repo follow-ups to file at close.
-- [`../../TODOS.md`](../../TODOS.md) — the implementation tracker, at the repo root while the work is live.
-
-Origin: [`wip/inbox/2026-08-25-pipelex-warn-required-input-all-optional-concept.md`](../../../wip/inbox/2026-08-25-pipelex-warn-required-input-all-optional-concept.md) (workspace inbox, filed from `mthds-form`), itself the author-side half of the form kernel's 2026-08-24 readiness-versus-gate disagreement.
diff --git a/wip/full-optional/deferred.md b/wip/full-optional/deferred.md
deleted file mode 100644
index f1ff69514..000000000
--- a/wip/full-optional/deferred.md
+++ /dev/null
@@ -1,49 +0,0 @@
-# Vacuous presence lint — deferred items
-
-Things the vacuous-presence work found and deliberately did not do. Each is a decision, not an oversight; the reasoning is here so a later session does not have to re-derive it.
-
-## The builder's `validate_all` still carries no `warnings` key
-
-Every other whole-bundle validate channel now assembles its `warnings` through `pipelex/pipeline/advisory_warnings.py`. One does not: `validate_all` in `pipelex/builder/operations/validate_ops.py`, which returns `{success, is_valid, validated_pipes, total_pipes}` and has never carried advisories at all. Its three siblings in the same module do, and the agent-CLI twin `validate_all_core` does — so the whole-library advisory lints are dropped on exactly this one path.
-
-The cause is structural rather than an omission at the call site. `validate_all` delegates to `BundleValidator.acquire_and_validate`, which opens a library, sweeps it, and **tears it down before returning**. The advisory collector must run inside that window (the taint walk resolves child pipes through the hub, the descriptors read the class registry, the crate is read off the current library), so there is nowhere in `validate_all`'s body left to call it from. Closing the gap means reshaping `acquire_and_validate` — inlining its lifecycle the way `validate_all_core` already does, or giving it a hook that runs inside the window — which is a change to a method shared by several callers and squarely outside a lint's blast radius.
-
-This was already written up during the PR #1026 review (`wip/pr-1026-review-notes.md`), where the same conclusion was reached with the same remedy. The composition point makes the fix *cheaper* than it was — the body of the change is now one `collect_advisory_warnings(...)` call rather than a fourth copy of a pattern — but it does not make it in scope.
-
-**If it is picked up:** mirror `validate_all_core`'s inline lifecycle, compute the warnings before teardown, and take the decision the review note raised — `warnings` alone (minimal), or full alignment with the agent-CLI twin (`pending_signatures` / `is_runnable` too), which would also mean rewriting the deliberate "no `pending_signatures` here by design" comment in that function.
-
-## Transitive vacuity and fixed-count lists
-
-Both are stated in the design (`design.md` §7) rather than here, because they are boundaries of the *rule* rather than of the implementation: a required field that is itself an all-optional object (`{"opts": {}}`) does not warn, and neither does `Concept[N]` of an all-optional concept. One level deep is where the form kernel's trap actually bit, and the transitive notion's edges are arguable (a required text admits `""`, a required list admits `[]`). If it comes back, the natural formulation is "no path from the slot to a scalar or file field passes only through required fields", stated on the descriptor.
-
-## `gating` and `required` cannot be told apart by any derived descriptor
-
-The lint keys on `gating`, which the design argues for on the grounds that the renderer keys on the same fact. That argument stands, but it buys nothing observable today: `InputFormDeriver.derive_slot` computes `gating = required and not (node.kind.is_list and node.item_count is None)`, so on an `object` node — the only kind the lint looks at — `gating` is exactly `required`. The distinction is only visible on a hand-built descriptor, which is where `test_a_non_gating_object_slot_is_silent_even_when_required` pins it.
-
-Nothing to do about it. It is recorded because a future reader may otherwise "simplify" the lint to read `required` and find every test still green — the unit case is the only thing standing in the way, and it is worth knowing that is on purpose.
-
-## The hint lint sweeps the whole accumulated crate, and that is now visible on more channels
-
-`build_hint_warnings` runs over the current library's *accumulated* crate — the validated bundle plus every bundle loaded beside it from `library_dirs`. The vacuous-presence lint is narrower on the bundle channels: there its entry refs come from `result.blueprints`, the validated batch alone, so it never comments on a library you merely depend on. On `validate all` it is not narrower — that channel takes its entry refs from `collect_current_library_entry_pipe_refs()`, which reads the same accumulated blueprints, so a bundle loaded only to satisfy a dependency is linted there too. That is the intended reading of `validate all` (the whole library is the batch), but it means the asymmetry below is a property of the bundle channels rather than of the lint.
-
-That asymmetry is the hint lint's own pre-existing scope decision, unchanged here. What changed is who sees it: the lint used to reach only the protocol validation report, and now rides every advisory-bearing validate channel — the whole-bundle and library-wide ones; the bare single-pipe surfaces and the builder's `validate_all` still carry none (a `--pipe` slice of `validate bundle` does carry them — it validates the whole bundle and only narrows the dry run). So `pipelex validate bundle mine.mthds -L shared/` can report hint findings that belong to `shared/`, which an author cannot act on from where they are standing.
-
-Left alone deliberately. Narrowing the hint lint to the validated batch is a change to that lint's contract, with its own question behind it (a library author does want the findings, on their own validate run), and folding it into a PR about a different lint would hide the decision. If it turns out to be noisy in practice, the fix is to scope `build_hint_warnings` by the batch's domains the way the vacuous lint is scoped by its blueprints — the composition point already holds both ingredients, so it is a small change once the decision is made.
-
-## `load_empty_library` accumulates one library per call, and every test module lives with it
-
-The shared `load_empty_library` fixture (`tests/conftest.py`) is `scope="class"`, but the closure it hands out reassigns `library_id` on every call and its teardown tears down only the last one. A test class calling it once per test therefore leaves one library per test on the manager until the class finishes. This was raised against the vacuous-presence integration module, and it is real — but it is a property of the fixture, not of that module: it is used by most test modules in the suite, several of which call it more than a dozen times in one class.
-
-Left alone deliberately. Fixing it in one module means that module stops matching every neighbour that shares the fixture, which is the worse outcome for a reader; fixing it properly means changing a fixture the whole suite depends on, which is not a lint's business and wants its own run of the full suite to justify. What is at stake is leaked manager state rather than memory alone: the discarded ids stay in the process-global `LibraryManager`'s bookkeeping until the class ends, so a blanket `teardown()` walks them and tears each one down. That is harmless — every library owns its own class registry, so tearing down a stale one touches nothing live — and no assertion in the suite can see it, but it is cleanup that is deferred, not cleanup that does not exist.
-
-**If it is picked up:** make `_load` tear down the library it is replacing before opening the next one (the `prev_library_id` capture already guards against resurrecting a torn-down binding), then run the full suite — the modules calling it a dozen-plus times per class are where a wrong teardown order would surface.
-
-## A `@model_validator` can reject `{}` that the descriptor calls satisfiable
-
-Raised in review: a class-backed concept whose pydantic model defaults every field but carries an `@model_validator` demanding at least one value has no required field by reflection, so the lint fires and the message's "an empty object satisfies it" clause is untrue for it — `model_validate({})` would raise.
-
-The premise is right. The remedy is not, in either shape it was offered. Restricting the lint to authored inline structures would delete its class-backed coverage, which is a documented capability with its own tests, to guard a shape nothing in this repo or the cookbook uses. Proving the model accepts `{}` means calling `model_validate({})` from inside a lint — running author-supplied validator code, with its side effects and its exceptions, during validation.
-
-What settles it is whose blind spot this is. `InputFormDeriver` reads `field_info.is_required()` and never consults validators, and that reading is load-bearing well beyond the lint: the input form is rendered from the same descriptor, so the form offers an empty object for this concept whether or not the lint says anything. The lint is reporting what the form will actually do. The author who acts on either remedy — making a field required, or marking the input `?` — ends up with a better method in that scenario too. Only the one clause is imprecise, and rewording it to hedge would cost every ordinary reader clarity to serve a case none of them are in.
-
-**If it is picked up:** it belongs on the descriptor rather than the lint — a `constraints` note when a structure class declares a model validator, which the form kernel could surface too. That is a change to the wire contract in `docs/specs/mthds-input-form-descriptor.md` and wants the form-kernel side in the conversation.
diff --git a/wip/full-optional/design.md b/wip/full-optional/design.md
deleted file mode 100644
index 04d195ea2..000000000
--- a/wip/full-optional/design.md
+++ /dev/null
@@ -1,146 +0,0 @@
-# Vacuous presence lint — design
-
-**Status:** design settled on 2026-08-25 and implemented as designed on the same day, with §9's three decisions ratified rather than revised. The implementation landed on `feature/Full-optional` as PR #1152, opened against `dev`; the lint itself is `24520d69f` (with the pre-existing descriptor bug it exposed) through `f536e7c9e`, and the rounds after those are review triage recorded in the tracker's progress log. What is left is follow-up rather than design: the items in §8 and the entries in [`deferred.md`](deferred.md). Tracker: [`TODOS.md`](../../TODOS.md) at the repo root, which carries the running log and the deviations. Origin: a cross-repo request filed from the form-kernel side, queued in the workspace inbox as `2026-08-25-pipelex-warn-required-input-all-optional-concept.md` (not linked — it lives outside this repo).
-
-## 1. The problem
-
-A method input declared without `?` (presence `plain`, or `!`) whose concept declares only optional fields is a declaration that can enforce nothing. The concept's schema admits `{}`, so the only thing "the caller must supply this" can mean is "the caller must supply an empty object". Validation accepts it silently today.
-
-Every consumer that has to *materialise* such an input is left inventing a meaning. The form kernel `@pipelex/mthds-form` hit this on 2026-08-24: readiness was vacuously satisfied (a struct that demands nothing is "filled"), the gate rejected the absent property (`must have required property 'opts'`), and the Run button was live on a form the API would refuse. The kernel closed it on its side (a required struct with no required children now counts as missing until touched), but the end user still faces a required section in which every field is optional — and no consumer can tell the method author that the declaration is ambiguous. Only validation can, and validation lives here.
-
-## 2. Verdict on the inbox idea: confirmed, with three amendments
-
-The idea is right and the channel is right: an advisory item on the validation report's `warnings` array — the seam built for exactly this class of finding — that never flips `is_valid`. Three things in the request were left to us to decide, and each changes the shape of the lint:
-
-1. **Scope it to entry pipes, not every pipe.** The inbox hedged on this ("whether to warn on every pipe or only entry-point signatures"). Linting every pipe would flag a legitimate and common design: an extraction pipe whose output is an all-optional structure ("record whatever the document states"), consumed by a downstream pipe as a plain input. That downstream slot is present by dataflow — the producer always yields *a* value — and its emptiness is the producer's honest output shape, so neither remedy the lint offers applies. The smell exists only at the boundary where a *caller* (a human, a form, an API client) has to conjure the value. That boundary is the bundle's declared `main_pipe`. See D2.
-2. **Judge the concept through the input-form descriptor, not through a third crate walker.** The descriptor already answers "what does this slot demand" for the form: presence, `gating`, and the concept's merged structure with per-field `required` — across refinement chains, class-backed concepts (pydantic `is_required()`), and pinned natives. Re-deriving that in the lint would be a second (with `hint_warnings`, a third) walker over the same facts, and the two existing walkers are already known to diverge (`wip/engine-hints/deferred.md`). Linting the descriptor means the lint judges exactly what the form kernel will see. See D1.
-3. **Give the warnings one composition point.** The report's `warnings` are assembled site by site today, and the sites disagree: the protocol path emits the optionality and hint lints, the agent CLI, the builder ops and the bare CLI emit the optionality lint alone. One more copy of the pattern for this lint would make the disagreement worse. One function builds every advisory warning, and every advisory-bearing channel calls it — which is every whole-bundle validate channel; the builder's `validate_all` and the bare CLI's single-pipe `validate` deliberately surface none. This closes the deferral recorded in `wip/engine-hints/deferred.md` (first bullet) and `wip/input-semantics/deferred-report-artifacts-on-cli-channels.md` (§1), and therefore takes on the one prerequisite those notes attach to it. See D6.
-
-## 3. The rule
-
-For each **entry pipe** of the validated batch, for each **top-level** field of its input-form descriptor:
-
-> Warn when the field is **gating** (`gating: true` — the run cannot start until the caller provides content) and its node is an **`object` that declares no required field** (`kind: "object"` with no entry in `fields` carrying `required: true`; an empty `fields` list counts).
-
-Everything else is silent, and each silence is deliberate:
-
-| Descriptor node | Verdict | Why |
-|---|---|---|
-| `object`, at least one `required: true` field | silent | Content is definable: the caller must fill that field. |
-| `object`, all fields optional | **warn** | The empty object satisfies the declaration. This is the case. |
-| `object`, no fields at all | **warn** (variant wording) | The degenerate all-optional case: only `{}` fits. |
-| `object` under presence `?` (`gating: false`) | silent | The author has already said the value may be absent — the ambiguity is resolved in the right direction. |
-| `list`, variable multiplicity (`Concept[]`) | silent | Never gates by the descriptor's own rule: `[]` is its legitimate value. Item vacuity is a different question (§7). |
-| `list`, fixed count (`Concept[N]`) | silent in this version | Gates, but the vacuity question is per item; deferred (§7). |
-| `text`, `prose`, `number`, `boolean`, `date`, `enum`, `document`, `image` | silent | A scalar or file demands a value; emptiness there is the form's `isFilled` concern, not a declaration defect. |
-| `unknown` (`Dynamic`, `Anything`, `Json`, `Composite`, a cross-package or unresolvable concept) | silent | No authored fact to judge; the honest answer is no verdict. |
-
-The predicate reads `gating`, not `presence`, on purpose. `gating` is the descriptor's *stated* fact that a renderer must block Run until this slot has content, and the lint is precisely "you asked for a gate but content is undefinable here". Stating the lint on the same fact the renderer keys on means the two cannot disagree, and it makes the variable-list exclusion fall out of the descriptor's rule rather than being restated. Both `plain` and `!` gate, so both warn; the message names the marker that was written.
-
-Nested structures are judged **one level deep**. A required field that is itself an all-optional object (`{"opts": {}}`) does not warn in this version — see §7 for why the boundary is drawn here.
-
-## 4. Decisions
-
-### D1 — Substrate: the input-form descriptor
-
-The lint is a pure function over `dict[str, PipeInputFormDescriptor]` (the output of `build_input_form`) plus the set of entry pipe refs. It never touches the crate, the class registry or the pipes.
-
-Why: the descriptor is the reference derivation of what a slot demands (workspace spec `docs/specs/mthds-input-form-descriptor.md`) and it is what the form kernel consumes. Judging the same artifact guarantees the lint and the kernel's readiness rule agree by construction. It also gives class-backed concepts and pinned natives for free — a hand-written `StructuredContent` subclass whose fields all carry defaults is reflected as all-optional by `_with_reflected_constraints`, exactly as the S2 ruling says it should be.
-
-Consequence: on channels that do not build the descriptor today (the CLI and builder channels), the composition point builds it internally for the lint. That is a crate walk per validate, inside the window the sites already hold open — and it is *not* the deferred question of emitting the descriptor on the CLI envelope (`deferred-report-artifacts-on-cli-channels.md` §2), which stays open: computing an artifact for a lint and putting it on the wire are different decisions.
-
-Rejected: a crate walker beside `_HintLinter`, reading `ConceptBlueprint.structure` and merging along `refines`. It would duplicate `InputFormDeriver._merged_structure`, `_first_class_structure` and the class-backed reflection, and would be the third judgment of the same facts.
-
-### D2 — Scope: the batch's entry pipes
-
-An entry pipe is the domain-qualified `main_pipe` of every bundle blueprint in the validated batch. A bundle with no `main_pipe` contributes no entry pipe; a batch with none is not linted.
-
-Why: §2 item 1 — the smell is a caller-boundary smell, and `main_pipe` is where a method meets its caller. This is also what the hosted app and the starters render a form for.
-
-Where the entry refs come from, per channel: the protocol path, the agent-CLI `validate bundle`, the builder `validate_bundle` / `validate_bundle_content` and the bare CLI's `validate bundle` all hold `ValidateBundleResult.blueprints`, so they qualify each bundle's `main_pipe` with `PipeFactory.make_pipe_ref_with_domain`, the same spelling `select_primary_blueprint` uses. The library-wide `validate all` — on the bare CLI and the agent CLI alike — holds no blueprints in hand, but the library manager retains the accumulated blueprints of the acquired library (it rebuilds the crate from them), so a small accessor on `LibraryManagerAbstract` exposes them; the plan's first test on that channel verifies the accumulation actually holds on the `acquire_library` path before relying on it.
-
-Rejected: (a) every pipe — flags the extraction-output pattern, trains authors to ignore the channel; (b) call-graph roots (pipes no other loaded pipe depends on) — needs no plumbing, but flags every reusable pipe of a helper library validated on its own, and `pipe_dependencies()` returns bare codes, so cross-domain matching would be approximate.
-
-### D3 — Presence: `plain` and `!` alike
-
-Both markers gate, both warn. The message names the marker that was written so the remedy reads against the author's own text. At an entry pipe a `!` is unusual (there is no upstream slot to assert), but it is legal and it gates identically.
-
-### D4 — Depth: one level
-
-The predicate looks at the demanded object's direct fields only. See §7 for the transitive case and why it is deferred rather than folded in.
-
-### D5 — Identity and wire shape
-
-A new member of `PipeValidationErrorType`, the pipe enum, since the item locates a pipe input: **`INPUT_PRESENCE_VACUOUS = "input_presence_vacuous"`**. It joins the closed registry automatically (`VALIDATION_ERROR_TYPES` is a union of the enums), the exhaustive `match` blocks on the enum's properties gain the member, and the corpus vocabulary generator lists it as advisory-excluded beside `optional_force_redundant`, with the same reason (an entry contract keyed on `expected_error` has nowhere to put a warning on a valid entry).
-
-The item: `category: pipe_validation`, `error_type: input_presence_vacuous`, `pipe_code` bare, `domain_code` the pipe's domain, `variable_names: [<slot>]`, `message`. No `concept_code`: the protocol's locator table defines `concept_code` on a `pipe_validation` item as the reference that did not resolve, spelled as the author wrote it, and this item has a resolved, descriptor-qualified concept — carrying it there would misuse the locator. The concept is named in the message by its qualified ref, and a consumer that needs it structurally reads `input_form[pipe_ref]`, where the same slot carries `concept_ref`.
-
-Rejected name: `optional_presence_vacuous`, which would keep the `optional_*` family prefix of the other presence-marker diagnostics. The prefix names the optionals feature, but a reader of the wire sees "optional presence" on an input that is precisely not optional. `input_presence_vacuous` is unambiguous on its own.
-
-### D6 — One composition point for every advisory warning
-
-A new module `pipelex/pipeline/advisory_warnings.py` owns the assembly:
-
-- `build_advisory_warnings(*, taint_analyses, input_form, entry_pipe_refs, qualified_crate)` — pure over precomputed ingredients; concatenates the families in a fixed order (optionality, presence vacuity, hints), each family in its own deterministic order. The protocol path calls this with the ingredients it already computes.
-- `collect_advisory_warnings(*, pipes, entry_pipe_refs)` — gathers the ingredients inside the open validation window (the taint walk, the descriptor, the current library's crate qualified once) and calls the pure builder. The CLI and builder channels call this.
-
-Every site that assembles `warnings` today switches to one of the two, and the bare CLI's yellow echo renders whatever the builder returns. The invalid arm and the bare single-pipe surfaces stay warning-less, as the protocol spec states; a `--pipe` slice of `validate bundle` is not a single-pipe surface in that sense — it validates the whole bundle and narrows only the dry run, so it keeps the bundle-wide array.
-
-This brings the hint lints onto the CLI and builder channels, which is the engine-hints deferral. Its stated prerequisite is taken on here: hint messages interpolate authored content raw and unbounded, one item per unknown key, so before that lint reaches a channel an author invokes casually, the lint elides long tokens and caps findings per site (a short "and N more" tail). This is small and it is the honest price of a single composition point.
-
-Rejected: a flag on the composition point selecting which families a channel carries. It would preserve the disagreement the composition point exists to remove.
-
-### D7 — Message wording
-
-All-optional structure, plain input:
-
-> Input 'opts' of pipe 'demo.run' must be supplied (declared without '?'), but concept 'demo.RunOptions' declares no required field — an empty object satisfies it, so a caller cannot tell what to fill in. Mark the input optional (`opts = "demo.RunOptions?"`) if the pipe can run without it, or make at least one field of 'demo.RunOptions' required.
-
-`!` input: the parenthesis reads "(declared with a force marker '!')". Field-less structure: "declares no field at all — an empty object satisfies it", the same clause the all-optional variant uses (the two are distinguished by their first half). Two earlier drafts said more than the descriptor knows: "only an empty object fits it" is false under pydantic's default `extra="ignore"`, and "any object satisfies it and none of it is read" is false under a class setting `extra="forbid"` (rejects) or `extra="allow"` (retains). The descriptor records `fields` only, never the model's extra policy, so `{}` satisfying the concept is the strongest claim the lint can actually make, and the second remedy reads "or give 'demo.RunOptions' a required field". The concept is always the descriptor's qualified `concept_ref`. The message carries no authored free text (no descriptions), so it needs no eliding.
-
-## 5. Blast radius
-
-Runtime:
-
-- `pipelex/validation_error_types.py` — the new member and its comment; every exhaustive `match` property over the type union.
-- `pipelex/pipeline/vacuous_presence_warnings.py` — new: the pure lint over descriptors.
-- `pipelex/pipeline/advisory_warnings.py` — new: the composition point (D6).
-- `pipelex/pipeline/hint_warnings.py` — token eliding and the per-site cap (D6's prerequisite).
-- `pipelex/libraries/library_manager_abstract.py`, `library_manager.py` — the accumulated-blueprints accessor (D2).
-- `pipelex/pipeline/validate_in_process.py`, every site in `pipelex/cli/agent_cli/commands/validate/_validate_core.py` and `pipelex/builder/operations/validate_ops.py`, `pipelex/cli/commands/validate/_validate_core.py` — switch to the composition point.
-- `pipelex/pipeline/validation_report.py`, `pipelex/base_exceptions.py` — docstrings that name `build_optionality_warnings` as the warnings source.
-- `pipelex/cli/dev_cli/commands/generate_corpus_vocabulary_cmd.py` + regenerated `pipelex/test_extras/mthds_corpus/vocabulary.toml` — the advisory exclusion (D5).
-
-Docs in this repo: `docs/building-methods/pipes/understanding-optionality.md` (the warnings bullet becomes a list of the advisory lints), `docs/building-methods/concepts/inline-structures.md` (a short note: an all-optional structure as a required method input triggers the lint), `docs/under-the-hood/input-form-descriptor.md` (the gating rule now has a lint stated on it), `docs/tools/cli/agent-cli.md` (the advisory note lists all three families and drops "not wired into this CLI's array"), `docs/under-the-hood/error-model.md` and `docs/contribute/mthds-test-corpus.md` (the advisory-only members are now several), `CHANGELOG.md` under `[Unreleased]`.
-
-Tests: a unit decision table over hand-built descriptors; protocol integration cases (entry pipe warns, the same shape on a sub-pipe does not, class-backed all-defaulted structure warns, no `main_pipe` means no lint, `?` silences); an agent-CLI `validate bundle` envelope case and a `validate all` case; the hint cap; the corpus vocabulary gate re-run.
-
-## 6. Interactions worth knowing before implementing
-
-- **`build_input_form` must run inside the validation window** (class-backed reflection reads the class registry). Every site the composition point serves already holds the window open; `validate_in_process` builds it before its `finally`, and the plan keeps it there.
-- **`qualify_crate` runs twice per protocol validate** today (`build_input_form` and the hint lint each qualify the accumulated crate). The collector qualifies once and hands the result to the hint lint; whether `build_input_form` also accepts a pre-qualified crate is opportunistic — do it only if it falls out cleanly, it is a recorded deferral, not this work's goal.
-- **Pinned native objects** (`Page`, `TextAndImages`, `SearchResult`) all declare required fields, so they never fire. The lint reads facts, not identities, so if a native were ever pinned all-optional it would fire — and the message's second remedy would be impossible for the author. Acceptable: the first remedy still holds, and a native pinned that way is the language's bug to fix.
-- **`ConceptStructureBlueprint.required` defaults to `False`**, so a structure authored with the long form and no `required = true` anywhere is all-optional. The shorthand `field = "description"` is a required text field, so a structure with any shorthand field never fires. Worth stating in the docs note, since it is the difference between the two spellings an author is most likely to miss.
-
-## 7. Out of scope, and why the line is here
-
-- **Transitive vacuity** (`{"opts": {}}` — a required field that is itself an all-optional object). Deferred, not rejected. One level is where the form kernel's trap bit, and the transitive notion's edges are fuzzy: a required text admits `""`, a required list admits `[]`, and a lint whose boundary is arguable is a lint that gets ignored. If it comes back, the natural formulation is "no path from the slot to a scalar or file field passes only through required fields", stated on the descriptor.
-- **Fixed-count lists** (`Concept[N]` of an all-optional concept). Gates, admits `[{}, {}]`. Same per-item question as above; deferred with it.
-- **Sub-pipes a caller might run directly** through the API's `pipe_ref` selector. Not linted (D2). If that becomes a real path for form rendering, the entry set can be widened without changing the rule.
-- **Single-pipe validate surfaces.** Stay warning-less, as the protocol spec states.
-- **The `mthds-form` side.** The kernel's fix stands on its own; nothing here changes the descriptor or the wire.
-
-## 8. Cross-repo follow-ups to file at close
-
-Each is an `wip/inbox/` item filed from this repo when the implementation lands, not a widening of this diff:
-
-- **`workspace`** — `docs/specs/pipelex-mthds-protocol.md`: the advisory-warnings section gains the new occupant; the "one further value" sentence under the optionality table and the registry prose become plural. `conformance/`: a valid-arm row `valid_input_presence_vacuous` in `validate-error-qa` with its fixture, and `tests/pipelex_api/test_validate_warnings.py` / `tests/pipelex_agent/test_validate_optionals.py` extended (gated on the release that carries the lint). `make check-spec-links` after both.
-- **`pipelex-js`** — `packages/runtime/src/bundle/categorize.ts` transcribes `PipeValidationErrorType` member for member and its parity check compares against the reference enum; the new member has to be added there.
-- **`pipelex-starter-js`** — `docs/input-form.md`'s "shape to avoid" paragraph can point at the lint once a release carries it.
-- **Corpus consumers** (`conformance`, `mthds-ui`, `vscode-pipelex`) re-vendor `vocabulary.toml` through the sync plugin at the next release; nothing to file, the drift gates say so.
-
-## 9. The decisions that were ratified before implementation
-
-1. Entry-pipe scope (D2) rather than every pipe — the one that changes what authors see most.
-2. The wire name `input_presence_vacuous` (D5).
-3. Bringing the hint lints onto the CLI and builder channels through the composition point, with the cap (D6) — the only item that widens beyond the request; the alternative is the flag D6 rejects.
diff --git a/wip/gateway-routing-refusals/plan.md b/wip/gateway-routing-refusals/plan.md
deleted file mode 100644
index d0accc554..000000000
--- a/wip/gateway-routing-refusals/plan.md
+++ /dev/null
@@ -1,143 +0,0 @@
----
-status: landed
-item: L-260831-9963b5
----
-
-# Classify the gateway's routing refusals
-
-## The bug, verified
-
-The Pipelex inference gateway refuses a request it cannot route with a code of its own — an unknown model handle (`pig-01`), a model served by an integration that is disabled for want of a credential (`pig-02`), a model unreachable over the native protocol the path belongs to (`pig-05`), or a model whose integration does not serve the requested capability (`pig-06`). Every one of them answers HTTP 400. `classify_inference_error` has a class for the gateway's request-shape refusals and for its unresolvable-reference refusals, but none for this family, so all four fall through to the `status_code == 400` arm of the status ladder in `pipelex/cogt/inference/error_classify.py` and are read as CONTENT / CHANGE_INPUT: a caller who named a model the gateway does not serve is told *"The provider rejected the request — review the prompt, parameters, and inputs."* and receives `LLMCompletionError` rather than `LLMModelNotFoundError`.
-
-Probed on this branch, with the exception built through Portkey's own `_make_status_error_from_response` so `exc.body` is the message string as in production:
-
-```
-pig-01: code=pig-01 category=content action=change_input model_not_found=False err=LLMCompletionError detail='The provider rejected the request — review the prompt, parameters, and inputs.'
-pig-02: code=pig-02 category=content action=change_input model_not_found=False err=LLMCompletionError detail=(same)
-pig-05: code=pig-05 category=content action=change_input model_not_found=False err=LLMCompletionError detail=(same)
-pig-06: code=pig-06 category=content action=change_input model_not_found=False err=LLMCompletionError detail=(same)
-```
-
-The 404 arm of the status ladder already produces exactly the verdict the family deserves (CONFIGURATION / CHANGE_MODEL with `is_model_not_found` set) — the gateway simply never answers 404 for these, so the ladder cannot reach it.
-
-Why the fix is possible now and was not when the item was filed: the item was discovered while reviewing the request-limits work, whose review ruling was not to widen that PR. Both halves of the mechanism have since landed on the branch this plan stacks on — the code-keyed family consulted ahead of the status ladder (`GatewayRequestLimit`, from the request-limits PR) and its second instance (`GatewayUnresolvedReference`, from the unresolvable-references PR), plus the Extract-hop fixes that make the gateway's code readable on every SDK path (the Portkey substrate reads the code back off the response, and the two Pipelex-service hops read `error.code` before `error.type`). This plan adds the third family on the same shape. The gateway side needs nothing: every code already exists on the wire.
-
-## The code inventory, from the manifold source
-
-Verified against `pipelex-manifold/src/pig/modelResolver.ts` (constants at lines 99–106) and `src/pig/proxyPolicy.ts`:
-
-| Code | HTTP | Raised when | Who can produce it from the runtime |
-|---|---|---|---|
-| `pig-01` | 400 | the body names no model, or names one that no integration lists | a model deck whose handle the gateway does not serve — a stale deck, a typo in a `.mthds` file's model, or a model the deployment deliberately does not carry |
-| `pig-02` | 400 | the model resolves to an integration that is disabled because a credential variable is unset | any call to a model whose integration the operator has not configured; the message names the integration and the variables to set |
-| `pig-05` | 400 | a native-protocol path names a model another provider serves — today only Google's `/v1/v1beta/models/<model>:generateContent`, the path shape `nativeProtocolPaths.ts` admits | the runtime's `GoogleLLMWorker` pointed at the gateway with a model the gateway serves through a non-Google integration: a deck/gateway disagreement about which backend a model belongs to |
-| `pig-06` | 400 | a model reaches a `/v1/pipelex/*` route (extract, search) that its integration's provider does not serve | an extract or search whose model resolves to an integration without that handler: again a deck/gateway disagreement, or a model named on a pipe it cannot serve |
-
-Deliberately out of scope, and why:
-
-| Code | HTTP | Why it stays with the status ladder |
-|---|---|---|
-| `pig-03` | 400 | "the client tried to route" — a refused `x-portkey-*` header, the `?model=` query form, a `@<slug>/<model>` virtual-key model, or a path and body naming different models. No client the runtime ships produces any of these; reaching it means a client bug, not a caller's or an operator's mistake. `tests/unit/pipelex/providers/manifold/test_manifold_clients.py` already pins that the manifold clients send none of the routing forms. |
-| `pig-04` | 404 | "this gateway does not serve `<method> <path>`" — the proxy policy refusing a path only the catch-all could answer. Unreachable while the runtime calls only the routes the gateway mounts. Note for honesty: because it is a 404 the ladder reads it as model-not-found, which is wrong in kind — but a served-path drift is a deployment bug to surface loudly, not a verdict to soften, and no runtime client reaches it today. The pin test below asserts it is not a routing refusal, without blessing the ladder's verdict. |
-| `pig-09` | 400 | "cannot resolve this reference" — already `GatewayUnresolvedReference.REFERENCE_UNRESOLVED`, CONTENT / CHANGE_INPUT. Nothing to do here; the pin test only asserts the two families stay disjoint. |
-
-### Found on the way, filed elsewhere
-
-Two things the inventory turned up that this plan deliberately does not carry, so the routing PR stays one decision:
-
-- **`pig-12` is unmapped.** The manifold has since split "no bucket configured" out of `pig-09` on the LLM routes into its own code, `pig-12` at 400, and the runtime does not recognize it — so it gets the same "review your prompt" advice, and the runtime's doc still says `pig-09` folds that cause in. One map entry to `GatewayUnresolvedReference.STORAGE_NOT_SERVED`, a doc row and a test row: L-260901-0859e8.
-- **The default is the real bug.** Three families in a row had to be filed because an unmapped gateway code falls through to the ladder's 400 arm and is read as a provider rejecting the prompt. A code the gateway minted for its own refusal is never that. The gateway's code namespaces (`pig-NN`, `pig_*`, `pipelex_*`) should get a default of their own that never says "review your prompt", so the next code degrades to honest advice and the per-family maps become refinements of a correct default: L-260902-b17ff6.
-
-## The design decision: the arms
-
-Grouping is by remedy, as in the two families already there: two codes share a member only when the caller's next move is the same. Here every member is its own code, because each names a different thing the caller or the operator has to change.
-
-New enum `GatewayRoutingRefusal` in `error_classification.py`, beside the two existing families:
-
-| Member | Code | Category / action | `is_model_not_found` | Advice (gist — final wording at implementation) |
-|---|---|---|---|---|
-| `UNKNOWN_MODEL` | `pig-01` | `CONFIGURATION` / `CHANGE_MODEL` | **set** | the inference gateway does not serve that model — pick a model this deployment serves; if the deck lists it, the deck and the gateway disagree |
-| `DISABLED_INTEGRATION` | `pig-02` | `CONFIGURATION` / `CONTACT_SUPPORT` | unset | the model is served by an integration this deployment has not enabled — nothing about the request causes this; the message names the integration and, for whoever operates the gateway, the variables to set |
-| `WRONG_PROTOCOL` | `pig-05` | `CONFIGURATION` / `CHANGE_MODEL` | unset | the model is reachable through the gateway, but not over the protocol the runtime used for it — the model deck names a backend for that model that the gateway serves it through a different one; correct the deck, or pick another model |
-| `UNSERVED_CAPABILITY` | `pig-06` | `CONFIGURATION` / `CHANGE_MODEL` | unset | the model's integration does not serve that capability (extract, search) — pick a model whose provider does; the message names the integration, the provider and the capability |
-
-Decisions taken, and why:
-
-- **`CONFIGURATION` throughout, never `CONTENT`.** Nothing in the prompt, the parameters or the inputs causes any of these, and no edit to them avoids one. That is the whole bug: a caller sent to review their prompt for a model that does not exist.
-- **`CHANGE_MODEL` for the three the caller can route around, and `is_model_not_found` set only for `pig-01`.** The flag is not a category: it selects the `*ModelNotFoundError` class, which `pipe_operator.py` catches and re-raises as `PipeOperatorModelAvailabilityError` carrying the model handle — the pipe-level error a caller already gets when the deck itself cannot find a model. `pig-01` is literally that case seen from the gateway. `pig-05` and `pig-06` leave the flag unset because the model *does* exist and *is* served — it cannot do what was asked, or was asked over the wrong protocol — and the render detail carries that distinction; the error class stays the family's generic failure class with the CHANGE_MODEL advice.
-- **`pig-02` is `CONTACT_SUPPORT`, ruled at checkpoint 1.** The integration is disabled because the gateway operator never set its credential: nothing about the request causes it, and the deployment — not the caller — is what has to change. `CHECK_CREDENTIALS` would send a hosted caller to rotate their own valid key. `CHANGE_MODEL` was the draft's pick, on the argument that another model does get the caller past the refusal; the ruling is that a switched-off integration is the operator's fact, the same call `STORAGE_NOT_SERVED` and `BODY_LENGTH_REQUIRED` get, and the advice should say so rather than send the caller shopping for a model. The flag stays unset — the handle resolves, so it is not a model the deployment does not know — and the detail still points whoever operates the gateway at the variable the message names.
-- **`pig-05` and `pig-06` are deck-vs-gateway disagreements as much as caller mistakes, and the advice says so.** The runtime picks the protocol and the route from its own model deck, so hitting either usually means the deck names a backend or a capability for a model that the gateway's routing table does not. The detail names the deck, because "pick another model" alone would leave an operator hunting for a model problem that is a config problem. `CONFIGURATION` / `CHANGE_MODEL` is still the right pair: the category is right in kind and the action is what an end caller can do.
-- **Nothing in the family is retryable.** Same reasoning as the two families already there: the gateway refused before a provider saw the request, and an identical retry earns an identical refusal. `InferenceErrorCategory.CONFIGURATION` is already non-retryable.
-- **The advice names no model, integration, protocol or capability.** The gateway's own message sits beside the detail and already states the specifics; repeating a guess is how advice contradicts the refusal it explains. Same principle as `_render_gateway_limit_detail`.
-- **The code is the discriminator, not the provider.** As in both existing families: the refusal arrives under more than one `ProviderName` (the Portkey substrate, the OpenAI substrate that carries every chat call, plain `httpx` on the native routes, the shared Anthropic driver, and — for `pig-05` specifically — the Google driver), and `pig-` is the gateway's own namespace.
-
-## Implementation steps
-
-### 1. The classification family — `pipelex/cogt/inference/error_classification.py`
-
-- Add `GatewayRoutingRefusal` (StrEnum) with the four members above, docstrings citing the wire code, the status and who can produce it, following `GatewayRequestLimit`'s style.
-- Add `_GATEWAY_ROUTING_REFUSAL_BY_CODE` mapping the four codes. Matched on the code alone with no provider check, for the reason both existing maps give. The comment above it records the scope decision: `pig-03` and `pig-04` are not producible by the runtime's own clients and keep the status ladder; `pig-09` belongs to the unresolvable-reference family.
-- Add a `gateway_routing_refusal` property on `ProviderErrorMetadata`, mirroring `gateway_request_limit` and `gateway_unresolved_reference`.
-
-### 2. The classify step — `pipelex/cogt/inference/error_classify.py`
-
-- Add `gateway_routing_refusal: GatewayRoutingRefusal | None = None` to `ClassificationResult` — a flag beside the two existing ones, same rationale: it does not change the retry decision, it lets Render name the refusal.
-- Add `_classify_gateway_routing_refusal(*, refusal: GatewayRoutingRefusal)` returning `CONFIGURATION` / `CHANGE_MODEL` for `UNKNOWN_MODEL`, `WRONG_PROTOCOL` and `UNSERVED_CAPABILITY`, with `is_model_not_found=True` for `UNKNOWN_MODEL` only, and `CONFIGURATION` / `CONTACT_SUPPORT` for `DISABLED_INTEGRATION`.
-- In `classify_inference_error`, branch on `metadata.gateway_routing_refusal` right after the unresolved-reference branch. The three code sets are disjoint, so the order among the three gateway branches carries no meaning; all three must run ahead of the status ladder, and none can collide with the quota rules, which fire only on 402 and 429.
-
-### 3. The render step — `pipelex/cogt/inference/error_render.py`
-
-- Add `_render_gateway_routing_refusal_detail(*, refusal: GatewayRoutingRefusal) -> str` with one advice string per member (gists above).
-- In `_render_detail`, branch on `classification.gateway_routing_refusal` beside the two existing gateway branches, ahead of the action-kind match. Without it `pig-01` and `pig-02` would render the generic "The requested model was not found — pick an available model", which is acceptable but says nothing about the gateway, and `pig-05` / `pig-06` would render it for a model that exists.
-- No new error class: `is_model_not_found` already switches to the family-specific `*ModelNotFoundError` classes. So no `generate-error-identity` / `generate-error-pages` run.
-
-### 4. Tests — `tests/unit/pipelex/cogt/inference/test_gateway_routing_refusals.py`
-
-Mirror the unresolvable-references module's structure and docstring style, including its table-driven `_EVERY_CODE_AND_MEMBER` list and the `test_the_table_covers_the_whole_production_map` case that walks the private map:
-
-- **The code is recognized**: each of the four codes maps to its member; `None`, the other gateway codes and a vendor code do not; recognition is provider-blind across every `ProviderName`; every member is reachable from a wire code.
-- **The code survives every Extract hop**: through the Portkey substrate (built through the SDK's own factory, never the constructor — Portkey's factory puts the message string on `exc.body`, and the hop must recover the code off the response), the OpenAI substrate that carries every chat call, plain `httpx` on the native routes (`pig-06` is the one that actually arrives there), and the shared Anthropic driver. `pig-05` arrives on the Google driver; add a hop through `extract_google_metadata` if that Extract function can carry a gateway envelope, otherwise say in the module docstring why it is not pinned.
-- **Classification**: every member is `CONFIGURATION` and never retryable; `DISABLED_INTEGRATION` is `CONTACT_SUPPORT` and the other three `CHANGE_MODEL`; `is_model_not_found` is set for exactly `UNKNOWN_MODEL`; a bare 400 without a recognized code still takes the status ladder.
-- **End to end**: `pig-01` built through Portkey's factory renders `LLMModelNotFoundError` with `model_handle` set — the headline of the ledger item — and `pig-05` renders `LLMCompletionError` with `CHANGE_MODEL` advice that does not say the model was not found.
-- **Rendered advice**: no member renders the generic "review the prompt, parameters, and inputs" line; `pig-01` and `pig-05` are told apart; `pig-02` does not mention the caller's credentials and does not tell them to pick a model.
-- **The scope decision is pinned**: `pig-03` and `pig-04` are not routing refusals (`gateway_routing_refusal is None`), and `pig-09` is an unresolved reference and not a routing refusal. The pin asserts family membership only, not the ladder's verdict for `pig-03`/`pig-04`.
-- **The three families do not shadow each other**: extend the existing disjointness test in the unresolvable-references module — or add a three-way one here — so a code lands in exactly one map.
-
-### 5. Docs and changelog
-
-- `docs/under-the-hood/error-model.md` § "The Gateway's Own Refusals": the opening paragraph says the gateway refuses "for two different reasons" — make it three, and add a third `####` half ("When the model cannot be routed") after the reference one, with the four-code table, the scope table for `pig-03` / `pig-04`, and the decisions above. Update the closing paragraph, which currently says the routing refusals "belong to neither family and classify on their status like anything else" — after this change that sentence is false and must name only the deadline outcomes. Update the two layer-model table rows to name `GatewayRoutingRefusal` and `gateway_routing_refusal`.
-- `CHANGELOG.md` under `[Unreleased]` → Added: one condensed entry in the style of the two existing gateway entries.
-- No config change; no spec / conformance surface touched; the manifold side is untouched.
-
-### 6. Gate
-
-`make agent-check`, then the full `make agent-test` (the new test module and `.test_durations` need the full run).
-
-## Checkpoints
-
-- **Checkpoint 1 — plan ratified (2026-09-02).** Two rulings, both recorded above: `pig-02` is `CONFIGURATION` / `CONTACT_SUPPORT` with the flag unset, not `CHANGE_MODEL`; and the `pig-12` ride-along is split out, because the item it belongs with is the default itself — an unmapped gateway code must stop reading as "review your prompt" (L-260902-b17ff6), with the `pig-12` map entry its own small item (L-260901-0859e8).
-- **Checkpoint 2 — implementation landed on this branch (2026-09-02).** Steps 1–6 are done. `GatewayRoutingRefusal`, `_GATEWAY_ROUTING_REFUSAL_BY_CODE` and the `gateway_routing_refusal` property sit beside the two existing families; the Classify step gains the flag field, `_classify_gateway_routing_refusal` and a third branch ahead of the status ladder; the Render step gains `_render_gateway_routing_refusal_detail` and a third branch ahead of the action-kind match; `tests/unit/pipelex/cogt/inference/test_gateway_routing_refusals.py` covers the chain; the error-model page gained a third `####` half and the closing paragraphs were corrected; the changelog entry sits beside its two siblings. Nothing in the design section changed while building it — the four arms, the `CONTACT_SUPPORT` ruling for `pig-02` and the flag on `pig-01` alone all landed as ratified. What the build added beyond the design:
-
- - **`pig-05` is not reachable from today's runtime at all**, which is stronger than the design's "the runtime's `GoogleLLMWorker` pointed at the gateway". No worker speaks Google's native protocol to a Pipelex-operated gateway: both `gateway_plugin.py` and `manifold_plugin.py` build their LLM workers on the OpenAI substrate, and `ManifoldNativeClient` serves only the `/v1/pipelex/*` extract and search routes. The map entry stays — it is right the day such a path is wired, and it costs nothing — but no Extract hop is pinned for it, and the module docstring and the docs page both say why.
- - **The Google Extract hop would not carry a gateway code even then, and returns a wrong one.** `_google_provider_error_code_from_details` reads `error.status` and then a top-level `status`; the gateway's envelope has no `error.status` and a top-level `status: "failure"`, so the hop returns the string `"failure"` as `provider_error_code` — a value that looks like a real code. Probed, pinned as the trap it is (`test_the_google_hop_would_not_carry_a_gateway_code_and_nothing_reaches_it_today`), stated in the docs, and filed as L-260902-a8f50b to be fixed *before* any native Google path is pointed at a gateway.
- - **The three-way disjointness is asserted as sets, not only per code.** The unresolvable-references module's two-way pins stayed where they are; this module adds a set-level case over all three private maps, which is the direction a per-code table cannot see.
- - **A local environment repair, unrelated to the change**: this worktree's `.venv` carried shebangs from its former path (`_two`), so `pyright`, `pytest` and 97 other console scripts failed with `bad interpreter`. Rewritten in place; nothing in the repo changed.
-
- Next: open the stacked PR for review with `Closes L-260831-9963b5` in its body.
-
-- **Checkpoint 3 — reviewed on PR #1185 (2026-09-02).** A `/review` pass over the diff, with an adversarial second read, produced five changes and one correction. Nothing about the four arms, the `CONTACT_SUPPORT` ruling or the flag placement moved; what moved is the honesty of three claims and the reach of the tests.
-
- - **`pig-01` is hedged, because the code covers more than the design assumed.** The gateway's body reader returns "no model" from a bare `catch` around both the JSON and the multipart read (`pipelex-manifold/src/pig/modelResolver.ts:255-270`), so a body it cannot parse earns `pig-01` alongside "this gateway serves no such model" and "the body names none" — three facts under one code. `is_model_not_found` still fires for all of them, which is right for the common case and cannot be narrowed from the code alone, so the detail now sends the reader to the gateway's own message before it sends them to the deck rather than asserting a deck-versus-gateway disagreement outright. The real fix is gateway-side and is filed as [L-260902-701614](http://localhost:4747/i/L-260902-701614), on the precedent of `pig-12` being drawn out of `pig-09`.
- - **The `pig-03` scope claim is narrowed to what its evidence supports.** "No client the runtime ships produces any of those" was too strong twice over: `test_manifold_clients.py` pins four steering headers *by name* while the gateway refuses on an allow-list, so a `portkey_ai` release sending some other `x-portkey-*` header would earn `pig-03` with that test still green; and `gateway_img_gen_worker.py` does send `x-portkey-config` on every image call, which Portkey's cloud reads and a Pipelex-operated gateway refuses — harmless while `pipelex_gateway` keeps its default endpoint (`gateway_factory.py`: `backend.endpoint or PORTKEY_GATEWAY_URL`), a client bug the day that backend names one of ours. The code stays out of the family; the sentence supporting that decision no longer overstates.
- - **The family's HTTP answer moved from 422 to 500, and now says so.** `CONFIGURATION` implies `ErrorDomain.CONFIG`, which renders as 500, where the `CONTENT` these four used to receive implies `INPUT` and renders as 422. That is the right answer in kind and the same one the status ladder's 404 arm has always given — but it puts these in server-error alerting and hands outer clients a status they retry, which is worth stating beside "never retried" (a claim about `InferenceErrorCategory.is_retryable` inside this process, and about nothing else). Documented in the error-model page and the changelog, and pinned by `TestWhatTheFamilyAnswersOverHTTP`.
- - **A correction to a finding the review raised and the code refuted.** The advice for `pig-01` was reported lost at the pipe boundary, since `PipeOperatorModelAvailabilityError`'s constructor takes no user action. It is not: `PipelexError._enrich_error_report_from_cause` inherits `user_action` and `error_domain` off the `__cause__` chain, and `pipe_operator.py` raises `from` the original. Probed live, and now pinned by `TestTheAdviceSurvivesThePipeBoundary` — which mutation-testing shows goes red both when the category is reverted and when that enrichment line is dropped.
- - **Two doc precision fixes.** The closing "remaining codes" sentence was a closed two-item list that omitted `pig-12` (unmapped, filed as [L-260901-0859e8](http://localhost:4747/i/L-260901-0859e8)); it now names it and says what closes it. And `pig-05`'s path shape is the gateway-prefixed `/v1/<v1|v1alpha|v1beta>/models/<model>:generateContent` with a `streamGenerateContent` twin, not the bare `/v1beta` single form the comment and the page claimed.
-
-- **Checkpoint 4 — landed (2026-09-02).** PR #1185 was squash-merged into `feature/Two-gateways-2` as `6c4b834bc`, with every CI job green: the eight py3.11 test shards, the typecheck, and each lint job (agent-rules, config-sync, drift-contracts, hub layering, keyword-only, ruff + plxt). [L-260831-9963b5](http://localhost:4747/i/L-260831-9963b5) is closed `fixed` against that merge. The merge sits on the stack's own branch and has not yet reached `dev` or `main`, so nothing here is published: it travels with whatever pull request takes `feature/Two-gateways-2` onward, and the repo's open release item is [L-260828-f4e88c](http://localhost:4747/i/L-260828-f4e88c).
-
- The items this campaign filed stay open by design, each recorded above and none of them a loose end of this plan:
-
- - [L-260901-0859e8](http://localhost:4747/i/L-260901-0859e8) — the `pig-12` map entry, split out at checkpoint 1.
- - [L-260902-a8f50b](http://localhost:4747/i/L-260902-a8f50b) — the Google Extract hop returning `"failure"` as a provider error code, to be fixed before any native Google path is pointed at a gateway.
- - [L-260902-701614](http://localhost:4747/i/L-260902-701614) — the gateway-side split of `pig-01`, whose three facts under one code are why the detail is hedged rather than asserting a deck-versus-gateway disagreement.
- - [L-260902-b17ff6](http://localhost:4747/i/L-260902-b17ff6) — the default this campaign kept proving is missing: an unmapped code in the gateway's own namespaces must never degrade to "review your prompt".
diff --git a/wip/gateway-unresolved-references/plan.md b/wip/gateway-unresolved-references/plan.md
deleted file mode 100644
index f8d8bcb4c..000000000
--- a/wip/gateway-unresolved-references/plan.md
+++ /dev/null
@@ -1,140 +0,0 @@
----
-status: landed
-item: L-260901-b0bd98
----
-
-# Classify the gateway's "cannot resolve this reference" refusals
-
-## The bug, verified
-
-The inference gateway's unresolvable-reference refusals arrive at `classify_inference_error` carrying their own error codes, and nothing reads them. They fall through to the `status_code == 400` arm of the status ladder in `pipelex/cogt/inference/error_classify.py`, classify as `CONTENT` / `CHANGE_INPUT`, and render the generic *"The provider rejected the request — review the prompt, parameters, and inputs."* A caller who mistyped a `pipelex-storage://` key, pointed at an object the gateway's role may not read, or aimed a document URL at a host the SSRF guard refuses, is told to revise their prompt.
-
-Probed on this branch — every code in the family renders the generic advice:
-
-```
-pig-09: content / change_input "The provider rejected the request — review the prompt, parameters, and inputs."
-pipelex_storage_uri_invalid: content / change_input (same)
-pipelex_storage_unreadable: content / change_input (same)
-pipelex_storage_uri_unsupported: content / change_input (same)
-pipelex_document_host_refused: content / change_input (same)
-pipelex_document_unreachable: content / change_input (same)
-pipelex_document_unsupported_type: content / change_input (same)
-```
-
-The structural cause: `_GATEWAY_REQUEST_LIMIT_BY_CODE` in `pipelex/cogt/inference/error_classification.py` maps only the request-shape limits (`pig-07`, `pig-08`, `pig-10`, `pig-11`, `pipelex_storage_object_too_large`, `pipelex_document_too_large`). The unresolvable-reference codes are deliberately absent — the `gateway_request_limit` property's docstring even promises they "classify on their status like anything else", which is exactly the behaviour this plan removes.
-
-The codes are readable today because the fix that landed on this PR's branch made the two Pipelex-service Extract hops read `error.code` before `error.type` (`_pipelex_service_error_code_from_body`). Before that, all of these arrived as `invalid_request_error`. The mechanism to classify them — a code-keyed enum ahead of the status ladder, plus a dedicated render branch — already exists for the request-limit family and is the shape this work copies.
-
-## The code inventory, from the manifold source
-
-Verified against `pipelex-manifold/src/pig/`:
-
-| Code | HTTP | Raised by | Meaning |
-|---|---|---|---|
-| `pig-09` | 400 | `modelResolver.ts` (LLM routes) | the one fail-closed slot for "cannot resolve" — every `StorageFailureReason` but `oversize`: no bucket configured, not a storage reference, no such object, an object it cannot read, a type no provider takes, or no way to hand a file to the resolved provider. The message carries the difference; the code does not. |
-| `pipelex_storage_uri_invalid` | 400 | `storage/nativeRoute.ts` | the reference does not obey the key grammar (also the traversal guard) |
-| `pipelex_storage_unreadable` | 400 | `storage/nativeRoute.ts` | the object is not there, or the role may not read it |
-| `pipelex_storage_uri_unsupported` | 400 | `storage/nativeRoute.ts` | no bucket configured — the scheme is not served at all |
-| `pipelex_document_scheme_refused` | 400 | `pipelex/documentFetch.ts` | the document URI is not an http(s) URL |
-| `pipelex_document_host_refused` | 400 | `pipelex/documentFetch.ts` | the SSRF guard refuses the host — a deliberate security refusal |
-| `pipelex_document_address_refused` | 400 | `pipelex/documentFetch.ts` | the resolved address is blocked (private/internal ranges) |
-| `pipelex_document_redirect_refused` | 400 | `pipelex/documentFetch.ts` | the origin answered a redirect, which the gateway refuses to follow |
-| `pipelex_document_unreachable` | 400 | `pipelex/documentFetch.ts` | the origin answered a non-success status |
-| `pipelex_document_empty` | 400 | `pipelex/documentFetch.ts` | the document was served empty |
-| `pipelex_document_unsupported_type` | 400 | `pipelex/documentFetch.ts` | the served MIME type is not one the pipeline accepts |
-| `pipelex_document_bad_data_url` | 400 | `pipelex/documentFetch.ts` | a `data:` URL that cannot be decoded |
-
-Out of scope, noted for completeness: `pig_storage_timeout` (504) and `pig_storage_client_disconnected` (499) are deadline outcomes, not reference verdicts — 504 already classifies transient via the ≥500 arm, which is right for a timeout. They stay with the status ladder.
-
-## The design decision: the arms
-
-This is the work the ledger item names: deciding which `UserActionKind` each member deserves, not just adding map entries. Grouping is by remedy — members share an arm only when the caller's next move is the same — mirroring how `GatewayRequestLimit` folds three codes into `OBJECT_TOO_LARGE`.
-
-New enum `GatewayUnresolvedReference` in `error_classification.py`, beside `GatewayRequestLimit`:
-
-| Member | Codes | Category / action | Advice (gist — final wording at implementation) |
-|---|---|---|---|
-| `REFERENCE_UNRESOLVED` | `pig-09` | `CONTENT` / `CHANGE_INPUT` | a file reference in the request could not be resolved — the error message names the cause; fix the reference it names. Deliberately defers to the message because the code is the LLM routes' single fail-closed slot for every storage failure but "over its cap". |
-| `STORAGE_REFERENCE_INVALID` | `pipelex_storage_uri_invalid` | `CONTENT` / `CHANGE_INPUT` | the `pipelex-storage://` reference is malformed — check the key against what the upload returned |
-| `STORAGE_OBJECT_UNREADABLE` | `pipelex_storage_unreadable` | `CONTENT` / `CHANGE_INPUT` | the referenced object does not exist or cannot be read — check the reference points at an object that was uploaded to this deployment |
-| `STORAGE_NOT_SERVED` | `pipelex_storage_uri_unsupported` | `CONFIGURATION` / `CONTACT_SUPPORT` | this deployment does not serve `pipelex-storage://` references at all — an operator's problem, nothing about the inputs causes it |
-| `DOCUMENT_URL_REFUSED` | `pipelex_document_scheme_refused`, `pipelex_document_address_refused`, `pipelex_document_redirect_refused` | `CONTENT` / `CHANGE_INPUT` | the document URL was refused before or during the fetch — use a plain public http(s) URL, and send the final URL rather than one that redirects |
-| `DOCUMENT_HOST_REFUSED` | `pipelex_document_host_refused` | `CONTENT` / `CHANGE_INPUT` | the gateway refuses to fetch documents from this host — **a security policy, stated as one**: private and internal addresses are not fetchable; host the document publicly or upload it to Pipelex storage. Never "use a smaller file" or "revise the prompt". |
-| `DOCUMENT_UNREACHABLE` | `pipelex_document_unreachable` | `CONTENT` / `CHANGE_INPUT` | the document could not be fetched from its URL — check that it is live and publicly reachable |
-| `DOCUMENT_CONTENT_UNUSABLE` | `pipelex_document_empty`, `pipelex_document_unsupported_type`, `pipelex_document_bad_data_url` | `CONTENT` / `CHANGE_INPUT` | the document was fetched but is unusable — the message says whether it was empty, of an unsupported type, or a malformed `data:` URL |
-
-Decisions taken, and why:
-
-- **`STORAGE_NOT_SERVED` is the one `CONTACT_SUPPORT` arm.** The ledger item calls this out: no bucket configured is a deployment that does not serve the scheme, so telling the caller to fix their input is wrong in kind. `CONFIGURATION` category, matching `BODY_LENGTH_REQUIRED`'s precedent for "an operator's problem".
-- **`DOCUMENT_HOST_REFUSED` keeps `CHANGE_INPUT` but gets its own member.** The caller *can* act (host the file elsewhere, or upload it to storage), so the action kind is right — but the advice must say the refusal is deliberate security policy, not a fault to work around. Folding it into `DOCUMENT_URL_REFUSED` would lose exactly the distinction the item exists for.
-- **`address_refused` groups with the URL-shape refusals, not with `host_refused`.** Both are SSRF-guard outcomes, but `address_refused` fires on the resolved address and reads to the caller the same way as a refused scheme: this URL form is not accepted. If review prefers it beside `host_refused` under the security wording, that is a one-line regroup.
-- **`DOCUMENT_UNREACHABLE` is not retried.** The origin could have been transiently down, but the gateway renders it 400, the runtime's retry would re-run a whole inference call to re-fetch a document, and the common case is a wrong URL. The advice can mention retrying manually if the host was down; the classifier does not.
-- **Nothing in the family is retryable.** Same reasoning as the request limits: the gateway refused before a provider saw the request; an identical retry earns an identical refusal.
-- **Every arm defers numbers and specifics to the gateway's own message.** Same principle as `_render_gateway_limit_detail`: the refusal message beside the detail already names the key, host, status, or type; repeating a guess is how advice contradicts the refusal it explains.
-
-## Implementation steps
-
-### 1. The classification family — `pipelex/cogt/inference/error_classification.py`
-
-- Add `GatewayUnresolvedReference` (StrEnum) with the members above, docstrings citing the wire codes and statuses, following `GatewayRequestLimit`'s style.
-- Add `_GATEWAY_UNRESOLVED_REFERENCE_BY_CODE` mapping all twelve codes. Matched on the code alone with no provider check, for the same reason as the limits map (the codes are the gateway's own namespaces; three SDK hops report three provider names).
-- Add a `gateway_unresolved_reference` property on `ProviderErrorMetadata`, mirroring `gateway_request_limit`.
-- **Rewrite the `gateway_request_limit` docstring's last paragraph**, which currently promises the storage codes "classify on their status like anything else" — after this change that sentence is false.
-
-### 2. The classify step — `pipelex/cogt/inference/error_classify.py`
-
-- Add `gateway_unresolved_reference: GatewayUnresolvedReference | None = None` to `ClassificationResult` (a flag beside `gateway_request_limit`, same rationale: it does not change the retry decision, it lets Render name the refusal).
-- Add `_classify_gateway_unresolved_reference(*, reference: GatewayUnresolvedReference)` returning `CONTENT`/`CHANGE_INPUT` for every member except `STORAGE_NOT_SERVED` → `CONFIGURATION`/`CONTACT_SUPPORT`.
-- In `classify_inference_error`, branch on `metadata.gateway_unresolved_reference` right after the request-limit branch — the two code sets are disjoint, both are explicit verdicts from a service we operate, and both must run ahead of the status ladder.
-
-### 3. The render step — `pipelex/cogt/inference/error_render.py`
-
-- Add `_render_gateway_unresolved_reference_detail(*, reference: GatewayUnresolvedReference) -> str` with one advice string per member (gists above).
-- In `_render_detail`, branch on `classification.gateway_unresolved_reference` beside the existing `gateway_request_limit` branch, ahead of the action-kind match.
-
-### 4. Tests — `tests/unit/pipelex/cogt/inference/test_gateway_unresolved_references.py`
-
-Mirror `test_gateway_request_limits.py`'s structure and its module docstring style:
-
-- **The code is recognized**: each of the twelve codes maps to its member; unknown codes and `None` do not; recognition is provider-blind (`GATEWAY`, `ANTHROPIC`).
-- **The code survives every Extract hop**: through the Portkey substrate (including the payload-discarding SDK path), plain `httpx` on the native routes, the shared Anthropic driver, and the OpenAI substrate — reusing that module's envelope helpers where sharable.
-- **Classification**: every member is `CHANGE_INPUT` except `STORAGE_NOT_SERVED` which is `CONTACT_SUPPORT`; none is transient; a plain 400 without a recognized code still takes the status ladder.
-- **Rendered advice**: `DOCUMENT_HOST_REFUSED` advice names a security refusal and never suggests revising the prompt or shrinking a file; `STORAGE_NOT_SERVED` says contact support, not fix your input; the storage members are told apart from each other; no member renders the generic "review the prompt" line.
-- **The two families do not shadow each other**: `pipelex_storage_object_too_large` still classifies as a request limit, `pipelex_storage_unreadable` as an unresolved reference.
-
-### 5. Docs and changelog
-
-- `docs/under-the-hood/error-model.md` § "The Gateway's Own Refusals": add the second family's table (code / HTTP / member / category-action / what the caller is told) after the request-limit table, and extend the surrounding prose — one refusal family bounds request shape, the other says a reference cannot be resolved. Update the layer-model table row for `error_classification.py` to name the new enum and property.
-- `CHANGELOG.md` under `[Unreleased]` → Added: one condensed entry in the style of the request-limits entry.
-- No new error class is introduced (no `gei`/`gep` needed); no config change; no spec/conformance surface touched.
-
-### 6. Gate
-
-`make agent-check`, then `make agent-test` (full — the new test module and `.test_durations` need the full run).
-
-## Checkpoint — the implementation landed
-
-Every step above is implemented on this branch. What was decided or discovered while building it, beyond what the design section already records:
-
-- **The arms are exactly as designed**; review did not move `address_refused`, so it stays with the URL-shape refusals under `DOCUMENT_URL_REFUSED` and `DOCUMENT_HOST_REFUSED` keeps its own arm.
-- **The two families are pinned as disjoint by a test rather than by a comment.** `TestTheTwoGatewayFamiliesDoNotShadowEachOther` walks both code sets and asserts each reaches one family and not the other, so a code added to the wrong map fails rather than silently borrowing the other family's advice. The `pipelex_storage_*` codes are the case that needs it: `object_too_large` is a limit, `unreadable` is an unresolved reference, and both arrive from the same route.
-- **The test module keeps one parametrize table as its single source of codes** (`_EVERY_CODE_AND_MEMBER`), reused by the recognition, classification, rendering and disjointness cases, plus a case asserting every enum member is reachable from a wire code — a member no code reaches would be advice that never renders for anyone.
-- **The docs section grew two `####` headings** rather than one long run: the existing request-limit half is now "What the request may weigh" and the new half "When a reference cannot be resolved", under the unchanged `### The Gateway's Own Refusals`. Nothing links to those anchors, so the split breaks no reference. The closing paragraph now names `pig_storage_timeout` / `pig_storage_client_disconnected` explicitly as belonging to neither family, which is where the inventory's out-of-scope note now lives in shipped documentation.
-
-## Checkpoint — landed
-
-Merged as pipelex#1181, *"Classify the gateway's unresolvable-reference refusals"*, squashed onto the stack trunk `feature/Two-gateways-2` — the branch this work was stacked on. Commits are named by subject rather than by hash throughout this document, because every rebase of the trunk rewrites them.
-
-What the merge carries, against the steps above: all six are done as written. The two commits on the branch were *"classify the gateway's unresolvable-reference refusals"* (the family, the classify branch, the render branch, the test module, the docs half) and *"recognize the scheme refusal a caller actually reaches"* — the second a review correction adding `pipelex_unsupported_uri_scheme` to `DOCUMENT_URL_REFUSED` beside `pipelex_document_scheme_refused` rather than in place of it. `classifyExtractInput` runs before any fetch and admits only `https:`, `data:` and `pipelex-storage://`, so an `http://` document URL is refused there and never reaches the fetch — which means the inventory's `pipelex_document_scheme_refused`, mapped and kept, is not the code that arm actually sees in practice. The family therefore covers thirteen wire codes, not the twelve this plan's inventory table lists.
-
-Every check on the pull request passed — typecheck, all eight test shards on py3.11, and each lint job including the drift-contract and keyword-only gates.
-
-**Delivery.** The merge is on `feature/Two-gateways-2` only; it has reached neither `dev` nor `main`. It ships when the trunk's own pull request lands, and reaches consumers when a pipelex release is cut after that — the repo's open release item is the one that carries #1154 (`L-260828-f4e88c`), which predates this work and does not yet include it.
-
-**Left for a person.** Nothing this campaign asked for. The neighbouring gateway family — the routing refusals `pig-01`, `pig-02`, `pig-05` and `pig-06`, which still answer 400 and so advise a caller to revise their prompt when the real fault is an unknown model handle — is open work of its own under its own ledger item (`L-260831-9963b5`), not unfinished business here.
-
-## Out of scope
-
-- The manifold side is untouched: every code already exists on the wire and this is purely the runtime's reading of them.
-- `pig_storage_timeout` / `pig_storage_client_disconnected` stay with the status ladder (see inventory).
-- Per-plan / per-tier wording for the hosted product — same deferral as `_render_gateway_limit_detail` records.
diff --git a/wip/github-actions-sha-pinning.md b/wip/github-actions-sha-pinning.md
deleted file mode 100644
index 484493596..000000000
--- a/wip/github-actions-sha-pinning.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# Deferred: pin third-party GitHub Actions to reviewed commit SHAs?
-
-Deferred from PR [#1155](https://github.com/Pipelex/pipelex/pull/1155) review round 1 (2026-08-27). Reported by Greptile and cubic on `.github/workflows/mthds-standard-check.yml:41`:
-
-- [Greptile thread](https://github.com/Pipelex/pipelex/pull/1155#discussion) — `PRRT_kwDOOwmMFc6cwNy5`
-- [cubic thread](https://github.com/Pipelex/pipelex/pull/1155#discussion) — `PRRT_kwDOOwmMFc6cwZvg`
-
-## The issue
-
-The new `mthds-standard-check.yml` workflow references `actions/checkout@v4` and `astral-sh/setup-uv@v7` by mutable major-version tag. A moved tag would silently change the code executed with the workflow's workspace and token permissions. The bots recommend pinning to full commit SHAs.
-
-## Why it deferred
-
-This is not a defect in the PR — it is the repo's standing convention. Existing workflows reference standard actions by mutable tag throughout (`actions/checkout@v4`, `astral-sh/setup-uv@v7`, `actions/setup-python@v5`, …), and SHA pins are reserved for the credential-bearing publish path (`sigstore/gh-action-sigstore-python`, `pypa/gh-action-pypi-publish`, `actions/dependency-review-action`). Pinning three references in one new workflow would change nothing about the repo's supply-chain posture while diverging from its own style. Whether to pin is a repo-wide policy decision, not a per-workflow fix.
-
-## Recommendation
-
-Decide once, for the whole repo: either keep the current tags-for-standard-actions / SHAs-for-privileged-actions split as deliberate policy, or pin every third-party action to a reviewed SHA across all workflows in one sweep (with Dependabot or pin tooling such as `pinact` to keep the pins moving). If pinning wins, the sweep should cover all workflows in `.github/workflows/`, not just the new one.
-
-## Raised again on PR #1184 (2026-09-02)
-
-Greptile reported the identical finding on the new `Tests (ts emission gates)` job in `.github/workflows/tests-check.yml` — thread `PRRT_kwDOOwmMFc6eS72b`, flagging `actions/checkout@v4`, `astral-sh/setup-uv@v7` and `actions/setup-node@v4`. Deferred here unchanged, for the same reason and with one addition specific to that PR: the new job sits in the same file as the eight `matrix-test` shards, which already run `actions/checkout@v4` and `astral-sh/setup-uv@v7` unpinned on every pull request. Pinning only the new job would change nothing about what third-party code executes per PR, while making one job in the file disagree with the rest of it.
-
-The recurrence is itself an argument for the recommendation above: the bots will raise this on every new workflow or job until the repo decides once and sweeps.
diff --git a/wip/inference-config-overrides/plan.md b/wip/inference-config-overrides/plan.md
deleted file mode 100644
index 498f8fd93..000000000
--- a/wip/inference-config-overrides/plan.md
+++ /dev/null
@@ -1,70 +0,0 @@
----
-status: landed
-item: L-260903-9fe4ad
----
-
-# Override files for `backends.toml` and `routing_profiles.toml`
-
-## Problem
-
-The two inference documents, `.pipelex/inference/backends.toml` and `.pipelex/inference/routing_profiles.toml`, each resolved to exactly one file (the project's copy if it existed, otherwise `~/.pipelex/`) and were read whole. A developer who wanted to live on a non-default backend had to flip `[<backend>] enabled` and `active = "<profile>"` in two tracked files the kit mirrors, in every worktree and every sibling project: per-checkout dirt flagged by `check-config-sync`, one `git add -A` away from shipping a personal choice as the default. The concrete need was the manifold beta, which is not on `dev` yet; the mechanism is generic and was built and verified against the backends that are.
-
-## Decisions
-
-1. **Merge sequence is `[resolved base, global override, project override]`.** The base keeps winner-takes-all resolution; the overrides layer over it, global then project. This is deliberately not `pipelex.toml`'s order, where a project base beats a global override: every project carries a tracked `backends.toml`, so a project base that won would defeat a machine-wide override. With an explicit `config_dir` (doctor `--global`, an init targeting one directory) the sequence is that directory's base and its own override, mirroring `load_config(config_dir=)`.
-2. **Two files, no environment variants, no `${VAR}` on `enabled` or `active`** — both are read raw before substitution and a non-empty placeholder string is truthy.
-3. **An override carries only the keys it sets.** `deep_update` semantics: tables merge, scalars and lists replace. The merge runs before validation, which is what makes `active = "…"` alone a complete override of a document whose `active` field is required.
-4. **One path sequence, one loader, every reader.** `ConfigLoader.backends_file_paths()` / `routing_profiles_file_paths()` build the sequence; `load_toml_from_base_and_overrides` reads it (base required, overrides optional); the backend library, the routing loader, `ModelManager.setup`, `is_pipelex_gateway_enabled`, `pipelex show backends` and the doctor's three probes all go through them. No caller builds `config_dir / "inference" / "backends.toml"` by hand any more.
-5. **Writers keep writing the base.** The init flow's backend and routing editors read and write the base file only: their checkboxes must pre-fill from the file they will write, or a personal override would leak into the tracked file on save. `check_is_initialized` checks the base for the same reason. The one init reader that mirrors the boot, the cache-priming gate, reads the merged document.
-6. **Skip lists get the two bare names.** `GIT_IGNORED_CONFIG_FILES` is matched by basename at every depth by the kit mirror, `check-config-sync`, `pipelex init` and the global bootstrap copy, so two names there cover all four.
-7. **Gitignore in both places.** The repo's root `.gitignore` names the two files bare, like `pipelex_override.toml`. The `.pipelex/.gitignore` writer gains one line per personal override file — the two new ones and the three existing ones it never listed — so a fresh `pipelex init` project is safe by default; its create-if-absent contract is untouched, so projects set up earlier add the names to their own root `.gitignore` (filed for the cookbook and `pipelex-server`'s `worker`).
-8. **The migration ledger is untouched.** The registry never enters `.pipelex/inference/` itself, only `inference/backends/`, so the overrides are outside every surface like their base files. One comment in `surfaces.py` says so.
-9. **Two dead boot catches fixed on the way.** `RuntimeBoot` caught `RoutingProfileLibraryNotFoundError` and `RoutingProfileDisabledBackendError`, which the routing loader never raised (it raised `ModelManagerError` and `RoutingProfileLibraryError`), so the half-written override — `active` flipped, the backend still off — surfaced as a raw `CogtError`. The loader now raises the classes the boot names, keeps `RoutingProfileLibraryError` for an invalid document or an unknown `active`, and the boot gained a clause for that one too.
-10. **`InferenceBackendLibrary.check_backend_credentials` deleted**, with `CredentialsValidationReport`: zero callers, and a raw reader of the base file that would have ignored the overrides.
-
-## Steps
-
-1. Constants, `_inference_file_paths`, `backends_file_paths` / `routing_profiles_file_paths` on `ConfigLoader`; `load_toml_from_base_and_overrides` and `describe_toml_base_and_overrides` in `toml_utils`.
-2. Loaders and callers: `backend_library.py`, `routing_profile_loader.py`, `model_manager.py`, `pipelex_service_config.py`, `init/command.py`, `doctor_cmd.py`, `show_cmd.py`, `runtime_boot.py`.
-3. `kit/paths.py`, root `.gitignore`, `.worktreeinclude`, `migration/gitignore.py`, `surfaces.py` comment, `config_check.py` comment, `init/backends.py` docstring.
-4. Tests: the helper, the path sequence, both loaders' override modules, the gate, the doctor probes, the sync exclusion, the written `.gitignore`, the boot clauses through an injected models manager, and an end-to-end module against the global `config_manager` with the kit tree in a faked home.
-5. Docs: `inference-backend-config.md` (tree, "Personal overrides", "Custom deck files", loading process), `features/configuration.md`, `contribute/configuration-defaults-and-overrides.md`, `under-the-hood/init-cli-flows.md`, `migration-ledger.md`, `configuration/index.md`, `tools/cli/show.md`; the two drift acks.
-6. Changelog under `[Unreleased]`: Added, Changed (breaking loader signatures and exception classes), Removed.
-7. `make agent-check`, the targeted suites, `make agent-test`; a manual run in a scratch `HOME` and a project-tier override in this worktree with `git status` and `make check-config-sync` clean.
-8. PR against `dev`, `Closes L-260903-9fe4ad`; `/ledger-land` after the merge.
-
-## Out of scope
-
-- `backends_dir_path` and `deck_dir_path` stay single-directory `str` parameters; the per-backend files and the deck have their own mechanisms (the ledger, the manifest) and no override layer.
-- The CLI's hint texts still send a user to `.pipelex/inference/backends.toml` to enable or disable a backend. That is still the right file for most users; an override-aware hint is a wording change for later.
-- A `pipelex_service.toml` line in the written `.pipelex/.gitignore`: it is not an override and this repo ignores it by path.
-
-## Revisions
-
-- 2026-09-03, while implementing: decision 9 was planned as a fix "on the way" and turned out to need a third clause, because an `active` naming no profile — the likeliest typo in an override — was still `ModelManagerError`, which no clause named. The loader keeps `RoutingProfileLibraryError` for that case and the boot catches it through the same validation-message builder the other libraries use.
-
-- 2026-09-03, pre-landing review of the PR: the sequence's base now comes from the `backends_file_path` / `routing_profiles_file_path` property rather than a second `resolve_config_file` call, because four integration fixtures (and `pipelex-server`'s temporal one) pin a routing profile by patching that property and the sequence read past the patch — every such test booted on the real file, green. The in-repo fixtures now patch `routing_profiles_file_paths` whole, so a developer's personal override cannot layer over the pinned document either; the server fixture is noted on `L-260903-36002a`. Four review decisions taken: the loaders log the override files they merged (the one trace a machine-wide override leaves); a file that does not parse is the library's refusal, raised by the library, the routing loader and `is_pipelex_gateway_enabled` alike, so the boot names the file instead of a raw `TomlError` escaping before any clause; the doctor's Models row catches `RoutingProfileLibraryError`, the class the loader now raises for the likeliest override typo; and `pipelex init` gates the terms prompt on the merged document and warns when declining the terms disables the gateway in a base an override still pins on. A backend whose value is not a table (`acme = false`) is refused by name in both modes rather than crashing on `.copy()`.
-
-## Checkpoint — 2026-09-03, paused with the full suite green, before the PR
-
-Everything in the Steps list through step 7's targeted runs is in the tree on `feature/Inference-config-overrides` (worktree `_pipelex--inference-config-overrides`), and the ledger item is claimed and references this plan.
-
-What is verified:
-
-- `make agent-check` is green end to end, including both drift acks (`config-docs`, `cli-docs`, staged under `.drift/acks/`).
-- The targeted suites (`tests/unit/pipelex/{system,cogt,cli,migration,tools,kit}/`, the two boot modules, `tests/integration/pipelex/cli/commands/init/`, `tests/integration/pipelex/system/`) pass — thousands of tests, one skip that predates this work.
-- By hand, in a scratch `HOME` over this repository's tracked base: the two global overrides put `pipelex show backends` on `all_anthropic` with the gateway gone, `pipelex doctor` reports the merged view, deleting the two files restores `all_pipelex_gateway`. A project-tier `routing_profiles_override.toml` in this worktree is invisible to `git status`, passes `make check-config-sync`, activates `all_mistral`, and its removal restores the default.
-- The ledger follow-ups for the sibling projects' `.gitignore` are filed: `L-260903-6b77c1` (cookbook) and `L-260903-36002a` (`pipelex-server`, member `worker`).
-
-- `make agent-test` passed, with one failure that was this session's own doing and not a defect: the project-tier manual check above wrote `active = "all_mistral"` into this worktree's `routing_profiles_override.toml` while the suite was running in the background, and `tests/unit/pipelex/pipe_operators/pipe_llm/test_template_image_analyzer.py` booted inside that window with a deck holding only Mistral handles. The override reached a real boot, which is the feature working; the module re-run clean after the file was removed passes. Lesson for the manual checks: never write a project-tier override into a worktree while a suite runs in it.
-
-Next session, in order:
-
-1. `ledger claim L-260903-9fe4ad --renew`, then `make agent-check` once more (the formatter is idempotent now).
-2. Open the PR against `dev` with `Closes L-260903-9fe4ad` in the body; `/ledger-land` after the merge.
-
-## Landed — 2026-09-03
-
-PR #1189 merged into `dev` as squash commit `67a2a6f182f4835ee929e1ee594acafcda7e4f73`, with every CI check green, and the landing closed `L-260903-9fe4ad`. The pre-landing review round (the Revisions bullet above) rode in the same PR. The merge had not reached `main` at landing; it ships with the next pipelex release, whose open item is `L-260828-f4e88c`.
-
-Both steps of the previous checkpoint's "next session" list are done. What the review deferred rather than fixed is one ledger item, `L-260903-36da37`: the three-place duplication of the override file names, the doctor's base-only `exists()` pre-checks, a direct test for `describe_toml_base_and_overrides`, a `show backends` test with a real override, the init checkbox editor not signalling override-pinned backends, and `pipelex_temporary_override.toml` missing from `GIT_IGNORED_CONFIG_FILES`. The two sibling-project gitignore follow-ups (`L-260903-6b77c1`, `L-260903-36002a`) stay open in their own repos.
diff --git a/wip/inference-error-domain/plan.md b/wip/inference-error-domain/plan.md
deleted file mode 100644
index 7cdecbe23..000000000
--- a/wip/inference-error-domain/plan.md
+++ /dev/null
@@ -1,93 +0,0 @@
----
-status: landed
-item: L-260831-17614f
----
-
-# Derive `error_domain` for the `CogtError` family from `InferenceErrorCategory`
-
-## Verdict on [L-260831-17614f](http://localhost:4747/i/L-260831-17614f)
-
-The item is justified, and the codebase already expects the fix. Verified on `dev` (2026-08-31):
-
-- `CogtError` (`pipelex/cogt/exceptions.py`) declares `error_category`, `user_action`, `provider_metadata`, `model_handle`, `backend_name` — and no `error_domain`. Reproduced: `LLMCompletionError("boom", error_category=CONTENT).to_error_report()` → `domain: None | status: 500 | category: content | retryable: False`.
-- `error_domain_to_http_status` (`pipelex/base_exceptions.py`) maps `None` → 500, so every caller-fixable inference failure (content-policy refusal, bad prompt parameter, malformed prompt image, gateway request-limit refusal once `feature/Gateway-request-limits` lands) answers as a server error. Only the provider-429 passthrough escapes.
-- The wrapper layer was *built* for this and is currently fed nothing: `PipelineExecutionError`'s docstring (`pipelex/pipeline/exceptions.py`) says it "inherits `error_domain` … from the wrapped `__cause__` chain … and only falls back to a generic RUNTIME / UNKNOWN classification when the cause chain surfaces none". The cause chain surfaces none, always — the fallback fires on every inference failure. The enrichment plumbing (`_enrich_error_report_from_cause`, `report.error_domain or cause_report.error_domain`) needs zero changes; only the leaf family must start supplying a domain.
-- It matches the established direction: [L-260829-643af2](http://localhost:4747/i/L-260829-643af2) (`error_domain=input` on `MethodRefError`) and [L-260829-fa8267](http://localhost:4747/i/L-260829-fa8267) (entry-lookup failures → INPUT) are the same move on neighboring families.
-
-## Design
-
-### The mapping — a property on `InferenceErrorCategory`
-
-Add `InferenceErrorCategory.error_domain`, an exhaustive `match` like the existing `is_retryable`:
-
-| Category | Domain | HTTP effect |
-|---|---|---|
-| `CONTENT` | `INPUT` | **500 → 422** — the behavior change |
-| `CONFIGURATION` | `CONFIG` | 500, unchanged — report becomes truthful |
-| `TRANSIENT`, `CAPACITY`, `AMBIGUOUS` | `RUNTIME` | 500, unchanged |
-| `UNKNOWN` | `None` | 500, unchanged — "could not classify" must not assert a domain |
-
-`UNKNOWN → None` is deliberate: `RUNTIME` would be a false claim, and unclassified already renders 500. `CAPACITY → RUNTIME` does not disturb the provider-429 passthrough, which `ErrorReport.http_status` checks before the domain.
-
-### The derivation — in `CogtError.to_error_report()`
-
-Derive from the **effective** category the report ends up carrying, so `error_domain` and `error_category` can never disagree on the wire:
-
-```python
-effective_category = self.error_category or base_report.error_category
-derived_domain = effective_category.error_domain if effective_category is not None else None
-# in the model_copy update:
-"error_domain": self.error_domain or derived_domain or base_report.error_domain,
-```
-
-Precedence: an explicit class-level `error_domain` wins (the `pipelex/cogt/content_generation/exceptions.py` classes already declaring `INPUT` keep it), then the category derivation, then the cause chain. This is the same wrapper-wins-when-set semantics the method already uses for every other field.
-
-### Semantics check on `CONTENT → INPUT`
-
-`ErrorDomain.INPUT` means "the caller can fix it". Every `CONTENT`-classified class is a property of the submitted material — `LLMPromptSpecError`, `LLMPromptParameterError`, `PromptImageFactoryError`, `PromptImageFormatError`, `PromptDocumentFactoryError`, `ImgGenPromptError`, `ImgGenParameterError` — plus provider content-policy refusals from `classify_inference_error`. On the hosted API the method and its inputs are both caller-side, so 422 is right. If a specific class turns out misclassified, that is a category fix on that class, not a reason to abandon the derivation.
-
-## Implementation steps
-
-1. **`InferenceErrorCategory.error_domain` property** in `pipelex/cogt/exceptions.py` (exhaustive `match`, returns `ErrorDomain | None`). Import `ErrorDomain` — already imported transitively via `base_exceptions`; add the explicit name.
-2. **Derivation in `CogtError.to_error_report()`** as above.
-3. **Tests** (red-green):
- - Parametrized category → domain test, exhaustive over the enum.
- - `LLMCompletionError(category=CONTENT)` report: `error_domain == INPUT`, `http_status == 422`.
- - `CONFIGURATION` leaf → `CONFIG`, 500; `UNKNOWN` leaf → domain `None`, 500.
- - Explicit declaration wins: a `content_generation` INPUT class with a non-CONTENT category keeps INPUT.
- - Chain test: `PipelineExecutionError` wrapping a `CONTENT`-categorized `CogtError` surfaces `INPUT` / 422 through the wrapper (this pins the docstring's promise, which today is vacuously untested).
- - Consistency invariant: for any `CogtError` with a category and no explicit domain, `report.error_domain == report.error_category.error_domain`.
-4. **Sweep existing tests** that pin `error_domain is None` or 500 for cogt/inference errors — at least `tests/unit/pipelex/exceptions/test_wrapper_error_enrichment.py`, `tests/unit/pipelex/providers/azure_rest/test_azure_worker_error_handling.py`, `tests/unit/pipelex/test_error_report_disclosure_mode.py`, plus whatever `make agent-test` reddens.
-5. **Docs**: update `docs/under-the-hood/error-model.md` — the Layer-1 classification section, the `error_domain_to_http_status` section, and the class-tree annotations gain the category→domain derivation. No `gei`/`gep` needed (no class added or renamed).
-6. **Changelog**: `Unreleased`, marked breaking — content-classified inference failures now report `error_domain: input` and answer HTTP 422 instead of 500.
-7. **Cross-repo verification** (read-only, same session): grep `pipelex-api` for hand-mapped inference statuses (it consumes `ErrorReport.http_status`, so it should pick the change up for free) and confirm `pipelex-server/transport/` remains untouched (grep for `error_domain` already comes back empty there). File ledger items only if a consumer hand-maps.
-
-## Implementation record
-
-Ratified and executed on `dev`, and merged there as pull request #1175 (merge commit `b3b496dee45c5d76264bd6a3b8f9a77d5b94a331`). The 500 → 422 change on content-classified inference failures is breaking for consumers of `ErrorReport.http_status`, so it reaches them only with the next published pipelex release; that release is tracked separately in the ledger. Every step above landed as written; what follows is only what the plan could not know in advance.
-
-**The derivation reads `self.error_category`, not the plan's `effective_category`.** The plan proposed deriving from `self.error_category or base_report.error_category`, but `ErrorReport.error_category` is typed `str` — and `model_copy(update=...)` bypasses validation, so what is actually in that field is whatever the previous layer put there. Calling `.error_domain` on it is not type-safe. The shipped form is `self.error_domain or own_domain or base_report.error_domain`, where `own_domain` derives from this error's own typed category, and it produces identical results for every case: an error with no category of its own inherits both fields from the cause chain in the same precedence order, so the two can still never disagree. The consistency invariant test pins that.
-
-**`UNKNOWN` is not in `CATEGORY_RETRYABLE_CASES`.** The existing category table in `tests/unit/pipelex/cogt/test_data.py` was never exhaustive. The new `CATEGORY_DOMAIN_CASES` is, and `test_category_domain_cases_cover_every_category` asserts the exhaustiveness against `set(InferenceErrorCategory)`, so a future category cannot be added without deciding its domain.
-
-**The "explicit declaration wins" precedence needed a synthetic subject.** The plan expected `pipelex/cogt/content_generation/exceptions.py` to supply one, but its three `INPUT`-domain classes are `PipelexError` subclasses, not `CogtError` — they never reach this derivation at all. No `CogtError` subclass declares an `error_domain` today, so the precedence is pinned by a test-only leaf (`_ExplicitInputDomainError`) declaring `INPUT` against a `CONFIGURATION` category.
-
-**A pre-existing bug found next door, and fixed.** `PipelineInputContentError` (`pipelex/pipeline/exceptions.py`) declared `caller_facing_message = True` — the name of the *report field*, not of the class-level flag `_authors_caller_facing_message`. The declaration was inert, so the class's caller-facing message (which names the caller's own url) was replaced by the internal-error placeholder under STRICT disclosure. Fixed, and pinned in the class-level-metadata sweep. Mutation-verified: reverting the flag name reddens the new row.
-
-**Review found the flag could not sit on that class as it stood, and split the family.** One class, two raise sites, two very different messages: `input_normalizer.py`'s blank-url arm states only the accepted schemes, while its unreadable-path arm interpolates `resolved_uri.path` and `type(exc).__name__`. Making the *class* caller-facing let the second one through STRICT too, which turns the report into an existence/permission oracle over the runner's filesystem — `PermissionError` on a path that exists reads differently from `FileNotFoundError` on one that does not — for any authenticated caller of a deployment leaving `is_upload_local_content_enabled` on (the shipped default, and what `pipelex-api`'s own `.pipelex/pipelex.toml` ships; `pipelex-server/api-hosted` sets it `false` in all three env configs after an earlier local-file-disclosure incident, so the hosted plane was never exposed). `PipelineInputUrlMissingError` now carries the blank-url message and the flag; `PipelineInputContentError` keeps the unreadable-path message and no flag. Pinned in both directions, in the metadata sweep and in `test_input_normalizer.py`, and mutation-verified: putting the flag back on the base class reddens both.
-
-**The review also caught a generated artifact the first pass left stale.** `ModelChoiceNotFoundError`'s explicit `error_domain = INPUT` changes its generated error page, and `make gep` had not been re-run. Regenerated alongside the new class's page.
-
-**Cross-repo verification came back clean.** `pipelex-server/transport/` mentions `error_domain` nowhere. `pipelex-api` consumes `ErrorReport.http_status` and picks the change up for free — its `_ERROR_TYPE_STATUS_OVERRIDES` map holds only `MethodRefError` subclasses (the separate [L-260829-643af2](http://localhost:4747/i/L-260829-643af2)) plus two pipeline/temporal classes, none of them `CogtError`, so there is no hand-mapping to unwind and no ledger item to file.
-
-**The sweep in step 4 was incomplete, and only the full suite found it.** `tests/unit/pipelex/cli/test_agent_output.py::test_agent_error_error_domain_and_category_coexist` went red. The cause was a real design collision, not a stale assertion: `agent_error()` reads the domain report-first and falls back to an `AGENT_ERROR_DOMAINS` lookup, and three of that dict's entries are `CogtError` subclasses whose derived domain now pre-empts the lookup. Two agreed with the dict (`ModelDeckPresetValidatonError`, `GatewayUnknownModelError` — both `CONFIGURATION` → `config`) and were removed as unreachable. One conflicted: `ModelChoiceNotFoundError` was mapped `input` there, deliberately, with a matching "check the model name for typos" hint — and derived `config`. Resolved on the class, not in the test: it now declares `error_domain = ErrorDomain.INPUT` explicitly, which the derivation's precedence honours. The category stays `CONFIGURATION`, correctly — the two fields answer different questions here, and the explicit declaration is exactly the escape hatch that precedence exists for.
-
-The module's own rule ("a class that self-describes must NOT appear in these dicts", enforced by `test_agent_output_drift.py`) already covered the class-level-attribute case but was blind to derivation, since `cls.error_domain` is genuinely `None` on those classes. A new arm, `test_category_derived_error_domain_not_duplicated_in_dict`, closes that — mutation-verified by re-adding `GatewayUnknownModelError` and watching it fail. The coexist test itself was rewritten rather than deleted: its premise (lookup domain + report category composing) is still reachable, but now only through an `UNKNOWN`-categorized cause, which is the one category that asserts no domain.
-
-**One consequence the plan did not anticipate: the validate hook's routing improves.** `docs/specs/hook-lint-pipeline.md` routes `error_domain ∈ {config, runtime}` to WARN and everything else — including an absent domain — to BLOCK. A `CONFIGURATION`-categorized failure surfacing through dry-run validate (a model-deck miss, missing credentials, an unknown gateway model) used to fall through to the default block, telling the agent to edit a `.mthds` file that was not at fault; it now warns, which is what that spec's own rationale asks for. `CONTENT`-categorized ones keep blocking, as they did before. The routing rule itself is unchanged, so no spec edit was needed.
-
-## Out of scope
-
-- The gateway request-limit classification itself — that is [L-260831-adcf35](http://localhost:4747/i/L-260831-adcf35), in flight on `feature/Gateway-request-limits` (worktree `_two`). This plan is independent and lands on `dev`; the two compose without ordering constraints.
-- Re-auditing whether each class's `error_category` is correct. The derivation faithfully translates today's classification; category fixes are their own diffs.
-- `MethodRefError` ([L-260829-643af2](http://localhost:4747/i/L-260829-643af2)) and entry-lookup domains ([L-260829-fa8267](http://localhost:4747/i/L-260829-fa8267)) — same direction, separate items.
diff --git a/wip/init-yes-non-interactive-mode.md b/wip/init-yes-non-interactive-mode.md
deleted file mode 100644
index 45c1a73ce..000000000
--- a/wip/init-yes-non-interactive-mode.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# `pipelex init` has no non-interactive mode, and it costs downstream repos their config hygiene
-
-**Status:** Follow-up TODO, raised from the cocode v0.10.0 release (2026-08-18). Not a regression — `init` has never had the flag. Bounded, and `pipelex migrate` already ships the exact shape the fix needs.
-
-## The gap
-
-As of pipelex 0.46.1, `pipelex init --help` offers the `focus` argument (`all|agreement|config|credentials|inference|routing|telemetry`) and exactly two options: `--local / -l` and `--help`. There is no `--yes`, no `--skip-confirmation`, no non-interactive path of any kind.
-
-Its sibling on the same CLI already has one. `pipelex migrate --help` offers `--dry-run` ("Report what would change and write nothing") and `--yes / -y` ("Apply without the interactive confirmation"). The vocabulary, the precedent and the user expectation all exist already; `init` simply never got it.
-
-## Why this matters beyond ergonomics
-
-A CI runner cannot call `pipelex init`. So any repo whose test suite boots Pipelex has to get a `.pipelex/` config into place some other way, and with no non-interactive init the only remaining way is to commit one into the repo.
-
-cocode hit this concretely and the workaround is still load-bearing there. On 2026-06-05, inside its `release/v0.7.0` branch:
-
-- 08:55 `1dd8831` — de-vendored `.pipelex/` entirely, on the stated reasoning "uses your global config unless you create a specific config"
-- 08:56 `8ab1904` — added `.pipelex/` to `.gitignore`, the correct companion to that decision
-- 12:52 `6c6c689` — "re-vendored config for CI": the files came back, forced past the ignore rule with `git add -f`, because CI has neither a global `~/.pipelex/` nor an init step
-- 13:05 — squash-merged as `6b9b072`, which is why the merged history shows only a confusing net result rather than this sequence
-
-As of 2026-08-18 cocode still force-tracks its `.pipelex/` directory past its own `.gitignore`, so that ignore line has been contradicting reality ever since. The practical cost is that every pipelex config-schema change lands in a cocode release diff as a wall of vendored TOML: the 0.46 config-root reshape plus the `prompting_target` removal dragged cocode's whole vendored backend directory into its v0.10.0 release. Note that `--disable-inference` does not sidestep any of this — it swaps in mock inference, it does not skip initialization.
-
-## What the fix looks like
-
-Give `init` the same treatment `migrate` already has, or at minimum `--yes`:
-
-- `pipelex init --yes --local` writes a project `.pipelex/` with every prompt taking its default and no TTY required.
-- CI runs that as a step ahead of its test target, and the downstream repo deletes its vendored config and keeps the honest `.gitignore` line it wrote in the first place.
-
-Auto-detecting a non-TTY or `CI=true` environment is the obvious alternative, but an explicit flag is the safer contract: an `init` that silently writes files because it could not find a terminal is a worse surprise than one that refuses.
-
-Recorded when this was last examined, against an earlier pipelex — **re-verify against 0.46.x before scoping**: `init_cmd` already accepted a `skip_confirmation` argument, and every init prompt already carried a usable `default=`. That is what made this look like wiring rather than a redesign.
-
-## Downstream unblock
-
-Once this ships and cocode re-pins to it:
-
-- add `pipelex init --yes --local` to cocode's `tests-check.yml`, ahead of `make gha-tests`
-- `git rm -r --cached .pipelex/` in cocode and let the existing ignore rule finally mean what it says
-- cocode's `tests/conftest.py` boots Pipelex and needs config present; the specifics of that gate live in cocode's repo, not here
diff --git a/wip/input-form/import-protocol-models.md b/wip/input-form/import-protocol-models.md
deleted file mode 100644
index 01b9f8880..000000000
--- a/wip/input-form/import-protocol-models.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# Import the standard's wire models for the input-form descriptor and the pipe I/O contracts
-
-This is the `pipelex` half of item 3.1 of the workspace input-form program (`../../../wip/input-form/plan.md` at the workspace root, ledger item `L-260826-db8dd5`). The program's decision D-1 gives the wire types of the input-form descriptor and of `pipe_io_contracts` to the standard's clients — `mthds/protocol` in TypeScript, `mthds.protocol` in Python — and D-3 says the engines import those models for what they emit rather than restating them. This document records what that meant here, and the calls taken along the way.
-
-## What moved
-
-`pipelex/pipeline/pipe_io_contracts.py` and `pipelex/pipeline/input_form.py` used to declare the wire shapes themselves. They no longer do: both modules now import the models from `mthds.protocol.pipe_io_contracts` and `mthds.protocol.input_form`, re-export them for the callers that already read them from here, and keep only what is genuinely this engine's — the builders, the deriver, and the exception conversion. The `mthds` floor moves to the release that carries those modules.
-
-The wire is unchanged. Every field name, every value and every absent-versus-null rule is the one the engine already emitted; the derivation is the same derivation. What changed is which package declares the shape.
-
-## The three shape differences the import forced
-
-The standard's models are not a transcription of what this engine declared, so importing them was not a delete-and-import. Three differences did real work.
-
-**The descriptor is a discriminated union, not one model with optional per-kind slots.** The standard declares `TextField`, `ProseField`, `DateField`, `NumberField`, `BooleanField`, `EnumField`, `DocumentField`, `ImageField`, `ObjectField`, `ListField` and `UnknownField`, each closed, with `InputFormField` the union discriminated on `kind`. That is strictly better than what was here — a `text` node can no longer carry `choices`, and a kind's required slots are simply required fields — but it means a node's kind is now its class. Two consequences ran through the deriver: constructing a node picks a class instead of passing a `kind=`, and the place that used to flip an existing node's kind by `model_copy(update={"kind": ...})` now rebuilds the node as the target class. That place is the intent-hint stamp, and the rebuild it needs is narrower than it first looks: `prose` and `label` are the only intent words that feed the kind, and both apply to text-valued sites alone, so the flip is always `text` ⟷ `prose` — two models sharing a base and therefore sharing every slot. `_recast_text_kind` is that rebuild, and it carries the shared text constraints across unchanged. It also states rather than asserts the invariant: a node that somehow reached it without being text-valued degrades to a plain hint stamp instead of raising.
-
-**`FieldKind.is_list` and `is_object` are gone, and are not missed.** They existed to ask a flat model which arm it was on. With the union the question is `isinstance(node, ListField)` / `isinstance(node, ObjectField)`, which also narrows the type, so the callers that used to reach for `slot.fields` after an `is_object` check now do it with the type checker's agreement instead of against it.
-
-**`datetime_flag` is `datetime`.** The old model spelled the slot `datetime_flag` in Python and renamed it in a serializer, to keep the attribute from shadowing the stdlib module name. The standard's `DateField` simply declares `datetime`, which is legal as a pydantic field and never shadows anything at module scope, so the serializer rename went with the declaration.
-
-## `PresenceMarker` is now the standard's
-
-The standard declares `PresenceMarker` in `mthds.protocol.pipe_io_contracts`, because the marker is part of the contract's wire vocabulary. This engine declared its own in `pipelex/core/pipes/variable_multiplicity.py`, with the same three members and the same meaning. Keeping both was not an option once the engine constructs the standard's models: the two enums are unrelated classes to a type checker, so every construction site would have needed a conversion, and the workspace would have kept two declarations of one wire enum — the thing D-1 exists to end.
-
-So `variable_multiplicity.py` re-exports the standard's `PresenceMarker`. The three helpers it used to carry that are grammar rather than wire — parsing a marker symbol, rendering one, and asking whether a marker is the force assertion — became module-level functions in the same module (`presence_from_symbol`, `presence_symbol`, `is_force_presence`), so nothing about the `.mthds` suffix grammar left this repo. `is_optional` and `is_plain` come from the standard's enum, which declares both.
-
-## How the unchanged wire was proved, not asserted
-
-`mthds-python` commits one real payload pair captured from this engine's own derivation, byte-for-byte, as its Stage 2.3 parity fixture: `tests/fixtures/protocol/input_form.json` and `pipe_io_contracts.json`, produced by `pipelex-dev trace-input-semantics tests/data/input_semantics/hinted_bundle.mthds tests/data/input_semantics/probe_bundle.mthds` on `pipelex` 0.53.0 at checkout `bc97dad0b` — which is this change's merge base. Re-running that same command after the import and diffing the two hop-5 outputs against the committed fixture reports no difference on either artifact. The probe bundles exercise every construct the language accepts, so that is the whole emission, not a sample of it.
-
-## The parse-time gates this turned on
-
-The standard's models are closed shapes (`extra="forbid"`) and enforce cross-field invariants at the parse. Constructing them makes those invariants live gates on what this engine emits, which is the point: a divergence between the engine and the standard now fails loudly at derivation instead of silently on the wire. The gates that bear on the emission are the `item_count`/`multiplicity` pairing on both contract sides, the rule that a presence marker is never combined with multiplicity, the rule that a fixed count is at least two, the rule that a field never carries both `required: true` and a `default_value`, and the placement rule that `presence` and `gating` are stated on every top-level descriptor field and absent everywhere below it.
-
-## Deliberately out of scope
-
-The program's item 4.5 collects the engine-emission corrections the standard's pages made necessary — the fabricated `refines: ["native.Text"]` on description-only concepts and the `name` member on a list's `item` (`L-260826-0ed8dd`), `native.Date` emitted as `kind: "date"` and `native.Html` as `prose` where the standard's ordered table puts both on `object` (`L-260826-236839`), and `css_class` becoming optional on `native.Html` (`L-260826-3cea94`). None of them is a shape question, so none of them blocks this import, and none is folded in here. They are their own change.
diff --git a/wip/input-semantics/audit.md b/wip/input-semantics/audit.md
deleted file mode 100644
index e7719350c..000000000
--- a/wip/input-semantics/audit.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# S1 — The input-semantics audit: brief
-
-**Status:** brief written 2026-08-21 by the workspace strategy session, for the `pipelex` session working in this worktree. This is a brief for an audit — the deliverable is a written gap list, not code. Read this, read the two workspace docs below, then conduct the audit and write its findings beside this file. The milestone is **S1** of the input-form roadmap.
-
-**Read first, in order:**
-
-1. `../wip/devx/input-form-projection.md` — the adopted direction. The layer this audit serves is Layer 2: *enrich the semantic layer first, before any UI vocabulary*. The diagnosis that motivates it: information that existed in the method was destroyed by projecting through Pydantic JSON Schema, and every UI downstream is guessing it back.
-2. `../wip/devx/input-form-roadmap.md` — the schedule. S1 starts now, in parallel with work in other repos. Two things wait on your output, which is why this audit should be days, not weeks: **S2** (closing the engine-side gaps, here) takes your engine-side list as its worklist, and **D1** (the descriptor spec, workspace-side) freezes its slots for constraints, defaults, and examples against your list — the spec *drafts* without you, but it will not freeze until you've said what the language and engine actually know.
-
-(Paths are relative to this worktree's root — the workspace root is one level up, same as from any sub-repo.)
-
-## The question
-
-For each piece of knowledge a method author writes — or would obviously want to write — about an input: **does it reach the `json_schema` emitted on `pipe_io_contracts`, and if not, where does it die?**
-
-The chain to trace runs end to end in this repo: `.mthds` structure syntax → `ConceptStructureBlueprint` (`pipelex/core/concepts/concept_structure_blueprint.py`) → the generated structure class (`pipelex/core/concepts/structure_generation/generator.py` threads `description` and `default_value` into the emitted `Field(...)`) → Pydantic's `model_json_schema()` → `build_pipe_io_contracts` (`pipelex/pipeline/pipe_io_contracts.py`) → the wire as `PipeInputContract { concept_ref, optional, json_schema }`.
-
-Measure, don't read: the honest way to run this audit is a probe bundle that exercises every expressible construct — every field type, choices, defaults, required and optional, `?` and `[]` markers, concept and native refinements, nesting, lists — run through validate, then a diff of what was authored against what the emitted schema says. Reading the code tells you where to look; only the emitted schema tells you what survived.
-
-## The classification rule — the load-bearing part
-
-Every gap you find gets one of two marks, and the two lists are the deliverable:
-
-- **Engine-side:** the language can say it, and the emission drops or mangles it. Example candidates to verify, not conclusions: does a field's required `description` survive to the schema property? Does the *concept's* own description become the schema's top-level `description`? Does `default_value` appear as the schema's `default`? Do the `date` / `datetime` / `time` field types emit their `format`? Does `choices` arrive as `enum`?
-- **Language-side:** MTHDS cannot express it at all today. The blueprint shows the ceiling: `description`, a type, `choices`, `default_value`, `required` — and nothing else. No numeric ranges, no string lengths or patterns, no examples, no units, no per-input-slot description on a pipe (the `inputs = { … }` declaration names a concept and multiplicity, nothing more). Confirm and complete that list from the parsing layer, not from this paragraph.
-
-The distinction is what keeps the workspace honest downstream: the engine-side list is closable here with zero client changes (S2), while the language-side list feeds the MTHDS design session (Track H) so that **missing semantics get semantic homes and are never smuggled in as UI hints**. When in doubt about a fact's side, the test is: could a `.mthds` author write it today, in any syntax the parser accepts?
-
-## What each entry should carry
-
-For every fact, three things — evidence at `path/file.py:line` where the claim is about code:
-
-- **Where it is authored** (or the demonstration that it cannot be).
-- **Where it is lost**, if it is — the exact hop in the chain above.
-- **Who guesses because of it, today.** The direction doc's evidence from `pipelex-app` is your downstream column: native concepts hardcoded as ref sets because the schema carries no concept identity beyond the top-level `concept_ref`; "is this a document" answered by object-shape sniffing on one surface and description-substring matching on another; prose-vs-label decided by nesting depth. A gap nobody downstream works around is still a gap, but the worked-around ones rank first.
-
-Two wrinkles to place rather than force into the two-sided scheme:
-
-- **Engine-authored semantics on native content classes.** The descriptions on `TextContent`, `DocumentContent` and friends are written in this repo, not by method authors — and at least one is load-bearing far away: the app's upload dropzone keys on the "pipelex storage url" / "document url" wording of `DocumentContent.url`'s description. Catalogue these; changing any of them is S2 work with a blast radius, and the audit should say which ones are contracts-in-disguise.
-- **What a fact *means*, not just whether it travels.** `default_value` today is a structure-level default — the audit should say whether that semantic is "prefill the form with this" or something else, because the descriptor spec (D1) must not adopt a slot whose meaning it guessed. Same question for `required` versus the `?` optional marker, which live at different levels and both reach the wire by different routes.
-
-## Out of scope
-
-- **Fixing anything.** Even a one-line fix — an obviously droppable gap goes on the engine-side list with its evidence, and S2 closes it. The audit stays an audit so it ships fast.
-- **Designing the descriptor or the hints.** D1 and H1 own those; your output is an input to both, written in facts, not proposals. Resist the pull — a sentence of recommendation per entry is fine, a design section is scope creep.
-- **Wire changes of any kind.**
-
-## The gate — S1 is done when
-
-- The gap list is written beside this file, every entry marked engine-side or language-side, with evidence.
-- The engine-side list is phrased so S2 can be scoped directly from it, and the language-side list so the MTHDS session can read it without this repo's context.
-- The workspace roadmap's checkpoint protocol is honored: update `../wip/devx/input-form-roadmap.md` when the milestone closes — the D1 freeze is waiting on the news.
diff --git a/wip/input-semantics/d2-input-form-descriptor-plan-DONE.md b/wip/input-semantics/d2-input-form-descriptor-plan-DONE.md
deleted file mode 100644
index f28106f29..000000000
--- a/wip/input-semantics/d2-input-form-descriptor-plan-DONE.md
+++ /dev/null
@@ -1,113 +0,0 @@
-# D2 — Input-form descriptor: reference derivation + report carriage (✅ done — all phases complete 2026-08-22)
-
-> **Archived 2026-08-23 from the repo-root `TODOS.md`, where it was the live tracker while D2 was built.** Every phase and checkpoint below is complete; this file is kept as the as-built record — the settled design decisions, the decisions taken while implementing, and what landed where. Paths in this document are relative to the repo root, not to this file's own directory. What is still open lives outside this repo: the two `../wip/inbox/` items filed in Phase 6, both waiting on a `pipelex` release that carries the derivation.
-
-Implements `../wip/inbox/2026-08-22-pipelex-d2-input-form-descriptor-derivation.md` on the stacked branch `feature/Input-semantics-D2` (program branch `feature/Input-semantics`; no PR to `dev`, per the program's branch ruling).
-
-**Contract:** `docs/specs/mthds-input-form-descriptor.md` (workspace root) — every section. **Gate:** the skip-gated skeletons in `conformance/tests/pipelex_api/test_validate_input_form.py` de-gated and green against the booted sibling `pipelex-api`, plus the per-kind assignment coverage. The two live absent-by-default tests must keep passing untouched. The de-gating itself rides the `pipelex-api` inbox item (Phase 6) because the sibling boots a **pinned PyPI runtime** — this repo's deliverable is the derivation, the report carriage, the pinned assignment table, and the follow-up filings.
-
-## Settled design decisions (read before implementing)
-
-- **Derivation input = loaded pipes + the qualified (NOT normalized) crate.** The slot key space and slot list come from the loaded pipes (`result.pipes` → `pipe.inputs.root` `StuffSpec`s), guaranteeing key-set equality with `pipe_io_contracts` by construction (same iteration, including `PipeSignature` placeholders and controller-inferred inputs). Concept facts (description, `refines`, structure fields) come from a crate built as `qualify_crate(LibraryCrateFactory.make_from_blueprints(result.blueprints))` — **not** `normalize_crate`, because normalization flattens in-crate refinement and drops the `refines` links the descriptor must report as a chain (`crate_normalization.py` step 3 vs spec's `refines` slot). Never read the emitted JSON Schema (the whole point — the E1/E2/E3/E4 losses live downstream of the blueprint).
-- **Fact sources per node:** authored concepts → their `ConceptBlueprint.structure` (`ConceptStructureBlueprint` retains `default_value`, `choices`, `required`, descriptions, `concept_ref`/`item_concept_ref` — everything the schema loses); natives → `materialize_native_concept` pinned blueprints; class-backed concepts (`structure = "ClassName"`) → class-registry reflection (generalize the faithful-or-absent approach of `codegen/native_expansion.reflect_native_structure`), falling back to `kind: "unknown"` when unmappable. A pipe slot whose concept is absent from the crate (e.g. loaded from `library_dirs`) still gets a descriptor: slot facts from the loaded `StuffSpec`, concept payload via natives/reflection/`unknown`.
-- **Slot facts from `StuffSpec`:** `presence: PresenceMarker` is already the spec's exact three-valued wire vocabulary (`plain`/`optional`/`force`) — reuse it. `multiplicity: VariableMultiplicity | None` keeps the fixed `[N]` int (E4's fact) — `None` → single node, `True` → `list` (no `item_count`), int → `list` with `item_count`.
-- **Derived booleans (in the deriver, per spec):** top-level `required = presence != optional`; `gating = required and not (kind == "list" and item_count is None)`. Fixed-count lists gate. Nested fields carry neither `presence` nor `gating`.
-- **E3 honesty:** a field authored `required = true` **and** `default_value` reports both — read from the blueprint, so the hop-2 accident never enters. `default_value` emitted only when authored (never the emission's `null`-for-optional artifact).
-- **E10:** `choices` always a list on the wire, even one member.
-- **Report carriage:** `PipelexValidationReport.input_form: dict[str, PipeInputFormDescriptor]` as a **required** field, `build_validation_report(..., input_form=...)` as a **required** kwarg. No default — the pipelex-server worker path must fail loudly at its next pipelex bump (shared-assembly rule: populated everywhere or nowhere), fixed by its own inbox item. The report always carries it; absence-by-default on the HTTP wire is the route's pop (the `rendered_markdown` precedent), which is `pipelex-api`'s item.
-- **Wire absence of inapplicable slots:** the valid arm is dumped **without** `exclude_none`, so a flat model with `None`s would leak `"presence": null` everywhere. Give the field model a None-dropping `@model_serializer` (no slot legitimately carries JSON `null`: TOML cannot author a null default). Flat recursive model + per-kind validators, not a discriminated union — simpler, and D4 owns the TS types.
-- **`title`: omitted in D2** (slot exists on the model; renderer falls back to `name` — never the mangled class name). H2 refines.
-- **`description` for a flattened scalar:** the concept's authored description, else the payload field's. This is the E6 fix on the descriptor side: class-backed and native concepts get their blueprint/pinned description.
-- **Cycle guard:** track the concept-ref path while recursing objects/lists; on revisit emit `unknown` (json_schema's `$ref`s keep the payload contract; the descriptor stays finite).
-- **`refines` chain:** walk authored links immediate-parent-first to the end, qualified. A string-described / description-only concept reports `kind: "prose"` with `refines: ["native.Text"]` — this engine's stated fact (it generates a `TextContent` subclass and its `json_schema` is `{text}`), not shape invention.
-- **Kind assignment table** (pinned by tests in Phase 3; chain-membership decides, never shape sniffing):
- - chain bottoms at / is `native.Text` (incl. string-promoted concepts) → `prose`; `native.Html` → `prose`; `native.Number` → `number` (`integer: false`); `native.YesNo` → `boolean`; `native.Date` → `date` (`datetime: false`); `native.Time` → `text` + `format: "time"`; `native.Document` → `document`; `native.Image` → `image`; `native.Page`, `native.TextAndImages`, `native.SearchResult` → `object` (pinned-blueprint fields); `native.Dynamic`, `native.Anything`, `native.JSON`, `native.Composite` → `unknown`.
- - structured concept → `object` (fields in declared order, recursing); nested field types: `text`→`text`, `integer`→`number`(`integer: true`), `number`→`number`, `boolean`→`boolean`, `date`→`date`(`datetime: false`), `datetime`→`date`(`datetime: true`), `time`→`text`+`format:"time"`, `choices` present → `enum` (choices win over `type`, matching the generator), `concept`→ recurse (with `concept_ref` — the E1 fact), `list`→`list` (item from `item_type`/`item_concept_ref`; inner `list` item → `unknown`), `dict`→`unknown`.
- - multi-field custom concept never flattens; flattening applies only via the native-chain rules above.
-- **No new error class** — the derivation is total (`unknown` is the escape hatch); no `gei`/`gep` needed.
-- **Keyword-only rule:** new functions keyword-only; if `build_input_form(pipes, ...)` keeps a positional subject, record the grant (`make sgr`) BEFORE running `make agent-check` (the auto-fixer silently keyword-onlys ungranted subjects).
-- Rich ready-made fixture for tests: `tests/data/input_semantics/probe_bundle.mthds` (chains, class-backed, natives, defaults, single choice, `[N]`, `!`, `?`).
-
-## Close-out state (2026-08-22) — what landed where
-
-**All phases done.** What landed where:
-
-- `pipelex/pipeline/input_form.py` — wire models, `build_input_form`, `InputFormDeriver`; `pipelex/codegen/native_expansion.py` — `reflect_structure_class`; `pipelex/pipeline/validation_report.py` + `validate_in_process.py` — the required `input_form` carriage.
-- Tests: `tests/integration/pipelex/pipeline/test_input_form.py` (probe bundle + kind-table bundle), `tests/unit/pipelex/pipeline/test_input_form_models.py`, `tests/unit/pipelex/pipeline/test_input_form_deriver.py`, plus the carriage sweep and the trace-harness test.
-- Docs: `docs/under-the-hood/input-form-descriptor.md` (nav'd), `docs/contribute/trace-input-semantics.md` (the `hop5_input_form.json` capture), the `## [Unreleased]` changelog entry.
-- Sibling repos: `conformance/` branch `feature/Input-form-kind-table` (per-kind skeletons, skip-gated); workspace root `dev` (the spec's two new `> Verified by:` lines).
-- Inbox: `../wip/inbox/2026-08-22-pipelex-api-validate-views-input-form.md` (the `views` opt-in + OpenAPI + the de-gating of the whole conformance module once the pin moves — this closes D2's gate) and `../wip/inbox/2026-08-22-pipelex-server-worker-input-form-carriage.md` (`temporal/`: carry `input_form` on `DryValidateResult`; rides the D3 pin cascade, fails loudly until then by design).
-
-**Waiting on:** a `pipelex` release carrying the derivation, then the two inbox items. Nothing else in this repo.
-
-Decisions taken while implementing (beyond the settled list above):
-
-- **Signature is `build_input_form(pipes, *, blueprints)`**, not `crate=`: the deriver builds the qualified crate itself (`qualify_crate(LibraryCrateFactory.make_from_blueprints(...))`) so both assembly paths hand it the same thing they already hold. The `pipes` subject is granted in `subject_grants.toml`. The deriver class is public (`InputFormDeriver`, with `derive_slot` and `derive_concept`) so its escape hatches can be unit-tested on a hand-built crate without private access.
-- **Inheritance of structure along a chain.** A refining concept with no structure of its own (`SpecialEntity refines BaseEntity`) is an `object` whose fields are the merged authored structures along its chain, base fields first, a refining concept overriding its parents' — because the validator requires `fields` on `object` and the test pins `object` for exactly this case. Precedence per node: merged dict structure → `object`; else the first `structure = "ClassName"` on the chain (self first) → class-backed; else a chain bottoming at a native → that native's kind with the concept's own `concept_ref`/description/`refines`; else prose promotion (`refines` = chain + `["native.Text"]`).
-- **Class-backed reflection** goes through a new public `reflect_structure_class(*, structure_class)` in `pipelex/codegen/native_expansion.py` (the native probe now delegates to it). A native class name maps by identity (`TextContent` → the `native.Text` rules); any other registered `BaseModel` is reflected into blueprint form and rendered as `object`; unregistered or unmappable → `unknown`. A concept absent from the crate (a `library_dirs` load) takes the same path with the class named by its code.
-- **Constraint slots come only from reflected classes.** The blueprint parser drops unknown keys (E7), so an authored `minimum = 0` never reaches the deriver; a registered class's `Field(gt=, ge=, lt=, le=, min_length=, max_length=, pattern=)` does, read from `FieldInfo.metadata` and stamped on `number` (bounds) and `text` (length/pattern) nodes only.
-- **`[1]` is a single node.** The parser keeps `multiplicity = 1`, but `StuffSpec.is_multiple()` is `count > 1`, so the runtime takes one value, not a one-element list — the descriptor says the same (no `item`, no `item_count`, `gating: true`).
-- **The cycle guard is unreachable from a bundle**: the library loader rejects concept cycles (`Cycle detected in concept references`) before `build_input_form` runs. It stays, because the derivation must be total on any crate handed to it, and is pinned at the deriver level.
-- **Remaining natives as inputs** (`TextAndImages`, `SearchResult`, `Dynamic`, `Anything`, `JSON`) are exercised through a `PipeCompose`, because a PipeLLM's dry run treats a `Dynamic` input as an image. `Composite` is not a pipe input and has no row.
-- **Nested concept fields** take the blueprint field's `description` and `required` over the concept's (the author described the field); a flattened scalar at the top level keeps the concept's description (E6).
-- **Item nodes** reuse the parent field's `name` and report `required: true` (a list element is a value); nested `list` nodes copy the element's `concept_ref`/`refines` per the spec.
-- **Enum comparisons** go through properties (`PresenceMarker.is_optional`, a new `FieldKind.is_list`) per the house match/case rule; the scalar-type mapping is one exhaustive `match` in `_scalar_field`.
-- `make agent-check`'s keyword-only auto-fixer silently rewrote an internal helper's positional parameter mid-session — the helper was replaced by a keyword-only one; nothing else was touched by it.
-
-## Phase 1 — Wire models + derivation (`pipelex/pipeline/input_form.py`)
-
-- [x] TDD red: derivation + model tests written (see Session state above; paths differ slightly from the original sketch — integration tests live in `tests/integration/pipelex/pipeline/test_input_form.py`, model tests in `tests/unit/pipelex/pipeline/test_input_form_models.py`): key set equals `build_pipe_io_contracts`'s; authored slot order preserved; presence three-valued (`!` ≠ plain — E5); `required`/`gating` incl. the divergence (plain scalar `gating: true` vs plain `Concept[]` `required: true, gating: false`) and `?` (`required: false, gating: false`); `[N]` → `item_count` + `gating: true` (E4); empty-inputs pipe → `{ "fields": [] }`; namespaced `concept_ref` on every concept node incl. nested (E1); `refines` chain walked to the end, absent when nothing refined (E2); E3 both-facts; single-member `choices` list (E10); serialization drops inapplicable slots (no `null`s in `model_dump(mode="json")`).
-- [x] Models: `FieldKind` StrEnum (closed union), recursive `InputFormField` (common slots + per-kind slots + reserved `examples`/`hints`), `PipeInputFormDescriptor` (`fields: list[InputFormField]`), all snake_case wire names per the spec's common-slots table (MTHDS-owned artifact — no `pipelex_` prefixes), None-dropping serializer, per-kind validators (`datetime` required on `date`, `choices` on `enum`, `fields` on `object`, `item` on `list`, `integer` on `number`).
-- [x] Deriver: `build_input_form(pipes, *, blueprints) -> dict[str, PipeInputFormDescriptor]` — one public function per the spec's shared-assembly rule; internals per the decisions above.
-- [x] Green + `make agent-check`.
-
-## Phase 2 — Report carriage (both in-repo assembly points)
-
-- [x] `PipelexValidationReport.input_form` (required field, docstringed per house style) + required `input_form` kwarg on `build_validation_report`.
-- [x] `validate_in_process.py`: build the qualified crate and call `build_input_form` inside the library window, right beside `build_pipe_io_contracts` (the descriptor must be assembled before teardown for the same class-registry reason).
-- [x] Sweep other report producers/consumers in-repo: `tests/unit/pipelex/pipeline/test_validation_report.py`, `test_runner_validate_plumbing.py`, `test_direct_bundle_validator.py`, `test_protocol_validate.py`, the agent-CLI validate envelope, `format_validate_markdown` — update constructions; nothing renders the descriptor in Markdown (it is a structured view, not text).
-- [x] Integration assertion in `test_protocol_validate.py` (or a sibling): the in-process report carries `input_form` keyed like `pipe_io_contracts`.
-
-**CP1 — DONE (commit "D2 CP1: input-form descriptor derivation + report carriage"):** models + derivation + carriage, `make agent-check` and the pipeline/codegen suites green. Decisions recorded in the session state above.
-
-## Phase 3 — Pin the full kind-assignment table (pipelex tests)
-
-- [x] Extend the unit tests with the complete per-native ruling (every `NativeConceptCode` as a direct input → its kind above), string-promoted concept → `prose` + `refines: ["native.Text"]`, class-backed reflection (e.g. `structure = "TextContent"` → flattened `prose` carrying the concept description — E6) and the unmappable → `unknown` fallback, nested `dict`/inner-list → `unknown`, `datetime`/`time` formats, cycle guard.
-- [x] Pin whatever the parser does for `[1]` (an `is_multiple()` edge) in one test, reporting it as authored.
-- [x] Constraint slots: populate from reflected `FieldInfo` metadata where the engine states them (`Gt`/`Ge`/`Lt`/`Le`/`MinLen`/`MaxLen`/pattern → `exclusive_minimum` etc.); test on a registered class with a constrained field (the `ImageContent.width` precedent).
-
-**CP2 — DONE (commit "D2 CP2: pin the kind-assignment table and reflected constraint slots"):** assignment table pinned; `make agent-check` + full `make agent-test` green.
-
-## Phase 4 — Conformance: per-kind coverage (sibling repo `conformance/`, own commit there)
-
-- [x] Add per-kind skeleton tests to `conformance/tests/pipelex_api/test_validate_input_form.py`, skip-gated with the same `SKELETON_REASON` (the sibling boots a pinned PyPI runtime that predates the derivation): one bundle exercising the assignment table end to end (prose/document/image/number/boolean/single-member-enum/object-with-nested-concept_ref/list-with-`[N]`-item_count/date/unknown-dict), asserting kinds, `refines` membership, `presence`, E3 both-facts, and no-`null` inapplicable slots.
-- [x] Do NOT touch the two live absent-by-default tests.
-- [x] `make check-spec-links` in `conformance/` (new tests join the already-linked module; verify nothing drifted). Follow that repo's branch/PR convention for the commit.
-
-**CP3 — DONE:** `conformance/` branch `feature/Input-form-kind-table` (commit "Pin the kind-assignment table skeletons in the input-form descriptor module", `make agent-check` green there) plus the spec's two new `> Verified by:` lines under *Field kinds* and *Structured multiplicity*, committed on the workspace root's `dev` ("Link the field-kinds and structured-multiplicity sections to their conformance skeletons"). The kind-table bundle was derived locally on this branch before the assertions were written, so the skeletons state what the deriver already produces.
-
-## Phase 5 — Docs + changelog (this repo)
-
-- [x] New docs page documenting the descriptor derivation: where it lives, the fact sources, the kind-assignment table, the gating rule, pointer to the workspace spec as the contract. Link it from the docs nav where natural (MkDocs conventions: blank line before lists).
-- [x] `docs/contribute/trace-input-semantics.md` + harness: add the descriptor as a trace artifact (a hop beside `hop5_pipe_io_contracts.json`) so a mangled authored fact localizes into the new projection too — small, per the keep-useful-harnesses rule.
-- [x] `CHANGELOG.md` under `## [Unreleased]`: bold-label condensed entry (breaking: `build_validation_report` requires `input_form`; the report gains the field).
-
-## Phase 6 — File the two cross-repo follow-ups (workspace `wip/inbox/`, from here `../wip/inbox/`)
-
-- [x] `YYYY-MM-DD-pipelex-api-validate-views-input-form.md` (use `_TEMPLATE.md`): add `views: list[str]` beside `render` with identical lenient mechanics (`validate.py:31/:59` precedent), resolve-then-attach-or-pop `input_form` on the valid arm only, regenerate the committed OpenAPI, bump the `pipelex` pin once released, then **de-gate the whole conformance module** (this closes D2's gate). Carry the evidence pointers (spec section, skeleton file/lines, this branch's derivation site).
-- [x] `YYYY-MM-DD-pipelex-server-worker-input-form-carriage.md`: carry `input_form` on `DryValidateResult` inside the library window (`act_dry_validate.py:52`) and hand it to `build_validation_report` (`temporal_bundle_validator.py:107`); state plainly that the next pipelex bump fails loudly on the missing kwarg by design (shared-assembly rule) — rides D3's cascade. Name the member (`temporal/`) in the body.
-
-## Phase 7 — Close out
-
-- [x] Full `make agent-check` + `make agent-test` (the full suite — new test modules only get seen there).
-- [x] Commit remaining work on `feature/Input-semantics-D2` with the CP structure above; no PR to `dev` (program ruling) — the PR is stacked on `feature/Input-semantics`.
-- [x] Final checkpoint note in this file: what landed where, decisions taken, what the two inbox items are waiting on.
-- [x] PR #1146 review round (stacked on `feature/Input-semantics`): greptile's one finding (library-dir concepts degraded to `unknown`) led to deriving over the library's accumulated crate instead of the bundle blueprints — `build_input_form(pipes)` no longer takes `blueprints`; the gstack pre-landing review's two clear wins (description-only and refining library-dir concepts) are covered by the same change and its test; its two decision-first items are deferred in `wip/input-semantics/deferred-descriptor-reflection-and-roundtrip.md`. cubic and Codex were out of quota for this PR.
-- [x] `make check` + serial `make test` before the PR: one order-dependent failure in a `pipe_func` workdir test, unrelated to D2 (passes alone and under `agent-test`); deferred to `wip/input-semantics/deferred-serial-make-test-flake.md`.
-
-## Deliberately out of scope (do not widen the diff)
-
-- The `pipelex-api` route change (`views`) — Phase 6 item 1.
-- The `pipelex-server/temporal/` worker carriage — Phase 6 item 2.
-- Any S2 emission fix (E1–E10 in the schema chain): the descriptor reports authored intent from the blueprint, so none are prerequisites.
-- The kernel swap (M1), SDK types (D4), hints (H1/H2), `@pipelex/runtime` parity (E1-track).
diff --git a/wip/input-semantics/deferred-cross-package-refines-runtime-shape.md b/wip/input-semantics/deferred-cross-package-refines-runtime-shape.md
deleted file mode 100644
index ac582936e..000000000
--- a/wip/input-semantics/deferred-cross-package-refines-runtime-shape.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# Deferred: what should a cross-package refinement generate at runtime?
-
-**Raised during** the review-bot triage of PR #1151 (release/v0.52.0), while verifying a Codex finding on `input_form`. Not itself bot-reported — it surfaced from the code the finding pointed at.
-
-## The open question
-
-When a concept refines a cross-package base (`alias->domain.Code`), the base class is not available locally. `ConceptFactory._handle_refines` (`pipelex/core/concepts/concept_factory.py`, the `QualifiedRef.has_cross_package_prefix(current_refine)` branch) handles this by generating a standalone structure class with an empty structure blueprint and **no** `base_class_name`. `StructureGenerator` defaults that to `StructuredContent`, so the result is a **field-less `StructuredContent` subclass**. The refinement itself survives only as the `refine_string` on the concept model, for runtime compatibility checks.
-
-The comment above that branch used to say it generated a `TextContent` subclass — which the code has never done. That comment has been corrected to describe the actual behaviour, but correcting it does not settle the question it was hiding: **is a field-less `StructuredContent` the right thing to generate here at all?**
-
-Three candidate answers, none obviously correct:
-
-1. **Keep `StructuredContent`** — honest about knowing nothing, and structurally compatible with whatever the base turns out to be. But a field-less structured object is not usable shape information for anything downstream.
-2. **`TextContent`, as the stale comment claimed** — makes the concept usable as prose, but invents a shape the base may not have. If the dependency's concept is structured, this is a lie with consequences at execution time, not just in a descriptor.
-3. **Resolve the base from the dependency's child library** — the only answer that is actually informed. Costly: dependency concepts load into an isolated `child_library` and are deliberately not in the consuming crate, so this would mean crossing a boundary the loader draws on purpose.
-
-## Why it is deferred rather than fixed
-
-The descriptor half of this is already fixed and does not depend on the answer. `build_input_form` now reports such a concept as `unknown` (with its real `refines` chain preserved) instead of promoting it to `prose` with a fabricated `native.Text` link — see `_blueprint_node_for_chain` in `pipelex/pipeline/input_form.py` and the pinning test `test_chain_ending_at_a_base_absent_from_the_crate_is_unknown` in `tests/unit/pipelex/pipeline/test_input_form_deriver.py`. That is correct **under all three answers above**: `input_form` cannot know the base's shape in any of them, so `unknown` is the honest report either way.
-
-What remains is a runtime design decision about what the engine should back these concepts with, and that is not a call a PR-review pass should make unilaterally — particularly not on a release branch.
-
-## Where to look
-
-- `pipelex/core/concepts/concept_factory.py` — `_handle_refines`, the cross-package branch.
-- `pipelex/libraries/concept/concept_library.py` — `validation_static`, which hard-rejects every dangling `refines` *except* a cross-package one. That carve-out is what makes this path reachable at all.
-- `pipelex/libraries/library_manager.py` — `_load_single_dependency`, which builds the isolated child library. This is why the base never appears in the consuming crate, loaded or not.
-- `tests/data/packages/refining_consumer/refining.mthds` — a fixture already shipping this shape (`PkgTestRefinedScore` refines a dependency's concept).
-
-## Related
-
-- [[deferred-descriptor-reflection-and-roundtrip]] — the other descriptor-side follow-up from this workstream.
-- PR thread: <https://github.com/Pipelex/pipelex/pull/1151#discussion_r> (Codex, `pipelex/pipeline/input_form.py`) — the descriptor fix that thread asked for has landed; this note is the runtime question left behind it.
diff --git a/wip/input-semantics/deferred-descriptor-reflection-and-roundtrip.md b/wip/input-semantics/deferred-descriptor-reflection-and-roundtrip.md
deleted file mode 100644
index f5a4532f8..000000000
--- a/wip/input-semantics/deferred-descriptor-reflection-and-roundtrip.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Deferred: two input-form descriptor gaps surfaced by the D2 pre-landing review
-
-Neither is a live bug on the surfaces that exist today; both need a decision before code, so they are recorded here rather than fixed in D2 (`feature/Input-semantics-D2`).
-
-## Reflected classes never read a field's default
-
-`pipelex/codegen/native_expansion.py` derives `required` for a reflected class field from an `X | None` annotation only and never reads `field_info.default`, so a class field such as `count: int = Field(default=0)` lands in the descriptor as `required: true` with no `default_value` (the blueprint-side fields do carry `default_value`). The mechanical fix is small — `field_info.is_required()` for the flag and `field_info.default` unless it is `PydanticUndefined`, stamped in `_with_reflected_constraints` in `pipelex/pipeline/input_form.py` — but it changes what "required" means for reflected classes relative to the schema chain (the S2 finding E3), and the spec says defaults are authored facts. Decide whether a pydantic default counts as an authored fact first; then it is a one-function change plus a row in `TestKindAssignmentTable`.
-
-## The wire descriptor does not round-trip through its own model
-
-`InputFormField` serializes `datetime_flag` under the spec's `datetime` wire name but declares no validation alias, so `InputFormField.model_validate(field.model_dump(mode="json"))` fails on every `date` node, and the FastAPI `response_model` documents the attribute name rather than the wire name. No consumer re-validates the descriptor with the Python model today (neither `pipelex-api`, `pipelex-server`, `mthds-python` nor `pipelex-sdk-python` reference it yet), so this bites only when the Python SDK grows descriptor models — that is D4's concern, where the right move is a `validation_alias` / `populate_by_name` pair or a renamed attribute, chosen together with the SDK types.
diff --git a/wip/input-semantics/deferred-report-artifacts-on-cli-channels.md b/wip/input-semantics/deferred-report-artifacts-on-cli-channels.md
deleted file mode 100644
index 82951397e..000000000
--- a/wip/input-semantics/deferred-report-artifacts-on-cli-channels.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# Deferred: report-only artifacts are absent from the CLI validate channels
-
-Surfaced by the PR #1150 review triage (three bots independently flagged the same two claims on `docs/tools/cli/agent-cli.md`). The documentation was corrected in that PR — the claims now name the protocol validation report, which is the artifact that actually carries them. What follows is the runtime work those corrections make visible. Neither item is a defect; each needs a decision rather than a patch.
-
-## 1. Hint lints reach only the protocol report
-
-Already tracked at [`wip/engine-hints/deferred.md`](../engine-hints/deferred.md), first bullet — read that entry first; this is an addendum, not a duplicate.
-
-What the review established beyond it: the wiring really is mechanically available at every site. `build_current_library_hint_warnings()` needs only a current library with a crate, and all three agent-CLI sites sit inside an open, current validation window — `acquire_library` leaves the library current, and `validate_bundle` deliberately leaves its validation library open and current on success. So the appends themselves are one-liners.
-
-The prerequisite recorded in the engine-hints note still stands and should gate the work: authored hint content is interpolated raw and unbounded into `ValidationErrorItem.message`, one item per unknown key, so a hostile or merely sloppy bundle can inflate the warning payload. Cap the per-site findings and elide long tokens **before** the lint reaches a channel an author invokes casually. The same note's design preference also stands — build one shared "all advisory warnings" composition point rather than an eighth copy of the `build_optionality_warnings(...)` pattern.
-
-Blast radius, for whoever picks this up: the bare human CLI (`pipelex/cli/commands/validate/_validate_core.py`), the agent CLI (`pipelex/cli/agent_cli/commands/validate/_validate_core.py`, three sites) and the builder ops (`pipelex/builder/operations/validate_ops.py`, three sites) are all equally hint-blind.
-
-## 2. `pipe_io_contracts` / `input_form` on the agent CLI envelope — needs a design decision
-
-**Do not wire this without deciding the shape first.** The mechanics are trivial and that is exactly the trap.
-
-`build_pipe_io_contracts` and `build_input_form` both take a `Sequence[PipeAbstract]`, and every agent-CLI validate site already has the pipes in hand inside its open window. Appending both to the success envelope would take minutes.
-
-The reason not to: it would put a full JSON Schema per input, per pipe, into **every** `validate` success envelope on a CLI whose whole point is cheap machine-readable output. The protocol report puts these behind an explicit opt-in for precisely that reason — `PipelexValidationReport.input_form`'s own docstring says the HTTP route decides whether the field travels on the wire, absent unless a caller opts in via `views`, and [`docs/under-the-hood/input-form-descriptor.md`](../../docs/under-the-hood/input-form-descriptor.md) repeats it.
-
-So the open question is not "should the CLI expose the contracts" but "what is the CLI's equivalent of `views`". Candidates: a `--views` / `--include` flag mirroring the protocol parameter, or a separate `pipelex-agent contracts` command that returns them without pretending they are part of a validation verdict. Deciding that is what unblocks the work.
-
-Until then, `docs/under-the-hood/pipe-io-contracts.md` states the boundary explicitly in its "Which surfaces carry it" section, so a reader is told which surface to reach for rather than discovering the absence.
diff --git a/wip/input-semantics/deferred-serial-make-test-flake.md b/wip/input-semantics/deferred-serial-make-test-flake.md
deleted file mode 100644
index adfc6ac34..000000000
--- a/wip/input-semantics/deferred-serial-make-test-flake.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# Deferred: order-dependent failure under serial `make test`
-
-Seen while closing D2 (`feature/Input-semantics-D2`): the serial `make test` run failed exactly one test, `tests/unit/pipelex/pipe_operators/pipe_func/test_direct_executor_workdir.py::TestDirectExecutorWorkdir::test_transported_run_generates_concept_structures`, with `Function 'greet_it' not found in registry`. The same test passes in isolation and under the parallel `make agent-test`, and D2 touches nothing under `pipe_func`. So an earlier test in the serial ordering leaves the func registry in a state this test does not expect — a test-isolation leak on the base branch, not a D2 regression.
-
-Not fixed here: it is outside the D2 diff and the right fix (which fixture resets the func registry, and which earlier test pollutes it) needs its own bisect. Reproduce with the serial `make test` ordering and bisect with `pytest -p no:randomly tests/unit/pipelex/pipe_operators/pipe_func/test_direct_executor_workdir.py <suspect earlier module>`.
diff --git a/wip/input-semantics/findings.md b/wip/input-semantics/findings.md
deleted file mode 100644
index 8a3e3d025..000000000
--- a/wip/input-semantics/findings.md
+++ /dev/null
@@ -1,184 +0,0 @@
-# S1 — Input-semantics audit: findings
-
-**Status:** written 2026-08-21, closing milestone S1 of the input-form roadmap. Evidence base: the measured survival table ([`survival-table.md`](survival-table.md), captures under [`probe/`](probe/), regenerable with `.venv/bin/pipelex-dev trace-input-semantics tests/data/input_semantics/probe_bundle.mthds -o wip/input-semantics/probe`), a read-only sweep of `pipelex-app`'s two input-form stacks, and a trace of where `default_value` is actually consumed at runtime. Per the brief: facts only — at most one sentence of recommendation per entry, no design.
-
-The hop numbering used throughout: **hop 1** parse (TOML → blueprint), **hop 2** generate (blueprint → structure-class source), **hop 3** pydantic (`model_json_schema()`), **hop 4** render (SCHEMA representation), **hop 5** contract (`PipeInputContract`). Measured once and worth repeating: **hop 3 → hop 5 is lossless** (byte-identical for a single input; the render only adds the envelope and the array wrap), so every loss below sits in the language, the parse, or the generator — never in the render or contract plumbing.
-
----
-
-## A. Engine-side gaps — the S2 worklist
-
-The language can say it; the emission drops or mangles it. Each entry is phrased as a closable work item.
-
-### E1. Concept identity of a field is not recoverable from the schema
-
-- **Authored:** `type = "concept"`, `concept_ref = "domain.Gadget"` (or `item_concept_ref` on lists) on a structure field — `pipelex/core/concepts/concept_structure_blueprint.py:59-60`.
-- **Lost:** hop 2/3 — the generator emits a forward ref to the mangled class name, so the schema inlines the shape under `$defs` keyed by the class-name spelling (`input_semantics_probe__Gadget`); native fields appear as bare content-class names (`ImageContent`). Nothing in the schema states the concept ref.
-- **Who guesses:** the app's primary field dispatch is seven hardcoded native-ref sets (`pipelex-app/src/lib/run-form/field-model.ts:133-139`), with a second *drifted* copy (`src/lib/input-format.ts:27-30` — missing `native.Date`/`native.HTML`, so the two stacks disagree on text wrapping) and a third for the wire wrapper (`src/lib/run-form/run-values.ts:35-48`). The app also deliberately discards `schema.title` because it is "the pydantic model name … and would mask the stuff name" (`field-model.ts:210-215`).
-- **Recommendation:** carry the concept ref for every concept-typed node (top-level and nested) on the descriptor or schema.
-
-### E2. The refinement chain leaves no trace
-
-- **Authored:** `refines = "native.Document"` (or a custom chain) — `pipelex/core/concepts/concept_blueprint.py:20`.
-- **Lost:** between hop 2 and hop 3 — the generated class *inherits* from the refined class, so only inherited field shapes survive; the link itself is gone. Measured on `RefinedDoc` and the `BaseEntity ← SpecialEntity ← ExtraSpecialEntity` chain.
-- **Who guesses:** "does this refine Document" is answered by object-shape sniffing on one surface — `isDocumentObject` is `Boolean(schema.properties?.url)` "and nothing more" (`pipelex-app/src/lib/run-form/field-model.ts:186-197`) — and by description-substring matching on the other (`src/components/method/document-url-widget.tsx:130-136`, matching lowercased `"pipelex storage url"` / `"document url"`). A value-side twin hardcodes `DocumentContent`'s field names as a sniff set (`src/lib/input-format.ts:176-182`).
-- **Measured drift, worth flagging in S2's blast radius:** the current `DocumentContent.url` description is "The document URL: a storage URI, an HTTP(S) URL, or a base64 data URL" (`pipelex/core/stuffs/document_content.py:16`) — the `"pipelex storage url"` branch of the app's matcher **already matches nothing** (the app's own test fixture pins the older wording); only `"document url"` still fires. `ImageContent.url` ("The image URL: …", `image_content.py:20`) matches neither substring, so image URL fields never get the RJSF dropzone by this route.
-- **Recommendation:** expose the refinement chain (at least "refines `native.X`") as a fact on the wire. The half-dead matcher is filed app-side as `../wip/inbox/2026-08-21-pipelex-app-document-dropzone-matcher-half-dead.md`.
-
-### E3. `required = true` plus `default_value` silently drops the required-ness
-
-- **Authored:** both keys on one field — legal, validated green (probe field `titled_default`).
-- **Lost:** hop 2 — the generator's parameter ordering emits `default=…` and never the `...` sentinel when a default is present (`pipelex/core/concepts/structure_generation/generator.py:307-313`), so the field leaves pydantic's `required` list.
-- **Who guesses:** nobody compensates; the authored intent is just gone. (At runtime the two are genuinely conflicting instructions — see the meaning note in §C — but today the conflict is resolved silently instead of being rejected or honored.)
-- **Recommendation:** decide the combination's meaning (likely: reject it at validation) rather than resolving it by accident of parameter ordering.
-
-### E4. `[N]` fixed multiplicity dies at the render
-
-- **Authored:** `inputs = { gadgets = "Gadget[2]" }` — parsed to `multiplicity: 2` (`pipelex/core/pipes/variable_multiplicity.py:169-171`).
-- **Lost:** hop 4 — `StuffSpec.is_multiple()` collapses multiplicity to a bool before rendering (`pipelex/core/pipes/stuff_spec/stuff_spec.py:58`), so the schema is a plain `array` with no `minItems`/`maxItems`; the contract memo key `(concept_ref, is_multiple())` (`pipelex/pipeline/pipe_io_contracts.py:104`) makes the count structurally unreachable there.
-- **Who guesses:** nobody — a form cannot enforce "exactly 2" because the wire never says it.
-- **Recommendation:** thread the real multiplicity through the render and memo key, emitting `minItems`/`maxItems`.
-
-### E5. `!` (force) is indistinguishable from plain on the contract
-
-- **Authored:** `inputs = { doc = "Document!" }` — parsed to `presence: force` (`variable_multiplicity.py:26`).
-- **Lost:** hop 5 — `optional=stuff_spec.presence.is_optional` maps force and plain both to `optional: false` (`pipe_io_contracts.py:123`).
-- **Who guesses:** nobody today — for a top-level run form the two are equivalent (the caller must supply the value either way), but the contract cannot express the distinction for any consumer that would care (e.g. a lint or graph surface showing where assertions live).
-- **Recommendation:** a presence enum (or a `force` flag) on the contract if any consumer materializes; low urgency.
-
-### E6. Class-backed concepts lose their description; most native inputs never had one
-
-- **Authored:** the concept's `description` beside `structure = "TextContent"` (probe concept `ClassBacked`).
-- **Lost:** hop 2 — a pre-existing class receives no docstring from the concept, so the schema has no top-level `description` at all. Related, measured on native concepts as direct inputs: only `DateContent` and `TimeContent` carry class docstrings; `Text`, `Image`, `Document`, `Page`, `Number`, `Html`, `YesNo` render schemas with **no top-level description**.
-- **Who guesses:** the RJSF stack *overwrites* the top-level description with the concept ref as a label stand-in (`pipelex-app/src/lib/run-form/run-gate.ts:44-48`), which is also why its dropzone matcher can only ever match nested property descriptions.
-- **Recommendation:** inject the concept description into class-backed and native renders (top-level `description`), same as generated classes already get.
-
-### E7. Unknown keys on a structure field vanish silently at parse
-
-- **Authored:** anything hopeful — `minimum = 0`, `maximum = 10`, `examples = […]`, `unit = "kg"` all author fine and validate green.
-- **Lost:** hop 1 — `ConceptStructureBlueprint` has no `extra="forbid"` (`concept_structure_blueprint.py:50`), so extras are dropped before the blueprint dump; measured absent. The asymmetry is stark: `ConceptBlueprint` itself *does* forbid extras (`concept_blueprint.py:13`), so a typo on a concept fails loudly while a typo (or a hopeful constraint) on a field dies silently.
-- **Who guesses:** the author, who believes they expressed something. Only the (stale) MTHDS lint-hook schema even warns.
-- **Recommendation:** `extra="forbid"` on `ConceptStructureBlueprint` — this also makes the language ceiling (§B) enforceable instead of silent.
-
-### E8. The builder writes `default` instead of `default_value` — the default is silently dropped on re-load
-
-- **Authored:** via the builder / agent-CLI `concept` command — `structure_field_to_dict` emits the TOML key `default` (`pipelex/builder/operations/concept_ops.py:115-116`).
-- **Lost:** hop 1 on the round trip — `ConceptStructureBlueprint` has no alias for `default`, and extras are ignored (E7), so a builder-emitted default validates green and reaches nothing (verified by direct `model_validate`). Docs and fixtures agree the authored spelling is `default_value`; only this writer disagrees.
-- **Who guesses:** any agent or user authoring through the builder — their default evaporates without a signal.
-- **Recommendation:** one-line fix in `concept_ops.py` (write `default_value`); E7's `extra="forbid"` would have caught this as a hard failure. Filed as `../wip/inbox/2026-08-21-pipelex-builder-default-key-dropped.md` so it need not wait for the whole S2 milestone.
-
-### E9. Multiplicity survives only as schema shape, never as a contract field
-
-- **Authored:** the `[]` suffix on the input ref.
-- **Lost:** not lost exactly — transformed at hop 4 into `{type: "array", items: …}` — but the contract's `concept_ref` comes back *without* the suffix and no structured multiplicity field exists, so array-ness is only recoverable by inspecting the schema.
-- **Who guesses:** the app rebuilds `[]` from `json_schema.type === "array"` in three independent places (`pipelex-app/src/lib/input-format.ts:270-284`, `src/lib/pipe-io-contracts.ts:42-44`, `src/lib/run-form/field-model.ts:142-146`), and the divergence between two of those rules produced a real gating bug the app documents at `field-model.ts:398-409`.
-- **Recommendation:** a structured multiplicity field on the contract (which E4's fix would need anyway).
-
-### E10. Single-entry `choices` emit `const`, not `enum` — and the main consumer doesn't read `const`
-
-- **Authored:** `choices = ["only_option"]`.
-- **Transformed:** hop 3 — pydantic renders a one-member `Literal` as `const: "x"` with no `enum` array. Not a loss, but a wire-shape hazard.
-- **Who guesses:** the app branches on `Array.isArray(schema.enum)` only (`field-model.ts:235-238`); `const` is unhandled anywhere in its `src/`, so a single-choice field renders as free text the user can fill wrongly.
-- **Recommendation:** either normalize `const` to a one-member `enum` at the render, or document `const` as part of the contract consumers must read.
-
----
-
-## B. Language-side ceiling — input to the MTHDS design session (Track H)
-
-MTHDS cannot express these today, in any syntax the parser accepts. The complete authoring surface, for context: a concept carries `description`, `structure` XOR `refines`, and optional `source` (`ConceptBlueprint`, extras forbidden); a structure field carries `description`, `type`, `key_type`/`value_type`, `item_type`, `concept_ref`/`item_concept_ref`, `choices` (strings only), `default_value`, `required` (`ConceptStructureBlueprint` — extras silently ignored, see E7); a pipe's `inputs` values are ref strings whose entire grammar is `concept ref + [] / [N] + ? / !` (`pipelex/pipe_machinery/pipe_blueprint.py:186`; `variable_multiplicity.py:16`). Everything below falls outside that surface:
-
-- **Numeric ranges** (`minimum` / `maximum` / exclusive bounds) — no syntax; note the engine grants *itself* this power (`ImageContent.width` is `gt=0`, `pipelex/core/stuffs/image_content.py:27`), so the schema vocabulary is proven, only the language lacks it. This is the direction doc's slider example.
-- **String constraints** — no length bounds, no pattern.
-- **Examples** — none, at field, concept, or input-slot level. (The inputs template synthesizes placeholders from the *type* instead — `concept_representation_generator.py:143`.)
-- **Units** — no way to say a number is kilograms or euros.
-- **Per-input-slot description on a pipe** — `inputs` values are ref strings only; the table form is rejected (fixture `rejected/per_input_description.mthds_invalid`). A pipe cannot say what *this use* of a concept means.
-- **Per-slot defaults or examples** — same ceiling as above.
-- **Non-string choices** — `choices: list[str]`; `[1, 2, 3]` is rejected.
-- **Choice labels** — a choice is a bare string; no display label or per-choice description.
-- **Inner type of nested lists** — `item_type = "list"` has no syntax for the inner item type; emitted as `list[list[Any]]`, so the wire schema's inner `items` is empty.
-- **Multiple refinement** — `refines` is a single ref (`concept_blueprint.py:20`, TODO recorded at line 19).
-- **Refine-and-extend** — `refines` and `structure` are mutually exclusive (`concept_blueprint.py:95`): a refinement of `native.Document` cannot add fields. Any "Invoice is a Document plus an amount" concept is inexpressible.
-- **Defaults on concept-typed fields** — rejected by design (`concept_structure_blueprint.py:111`); listed for completeness, arguably a correct ceiling.
-- **Rendering intent** (prose vs label, rating, quantity…) — nothing expressible; today the app decides prose-vs-label by nesting depth with a `maxLength > 120` magic number (`field-model.ts:283-289`). This is Layer 3 territory (intent vocabulary), listed here because the *absence* is a language fact.
-
-One asymmetry worth the design session's attention: because of E7, most of this ceiling fails *silently* — an author who writes `minimum = 0` today is told nothing.
-
----
-
-## C. The two meaning questions, settled by evidence
-
-### What `default_value` means today
-
-It is an **execution-level default applied on absence**, not a form-prefill hint:
-
-- The one runtime ingestion seam for pipe inputs ends at `StuffContentFactory.make_content_from_value` → `stuff_content_subclass.model_validate(obj=value)` (`pipelex/core/stuffs/stuff_content_factory.py:35`), a plain validate — an omitted field with a default gets the default on the instantiated object.
-- The same applies to **LLM structured output**: workers hand the live generated class to instructor as the response model (e.g. `pipelex/providers/google/google_llm_worker.py:268`), so a field the LLM omits is filled by the default too.
-- The **inputs template deliberately omits defaulted fields** rather than prefilling them: the JSON representation is generated with `include_optional=False` (`pipelex/core/concepts/concept.py:183-184`) and the generator skips every non-required field (`concept_representation_generator.py:136-138`) — and a defaulted field is non-required (E3). The template never reads `field_info.default`.
-- The default **is exposed on the wire** (`"default": X` in the hop-3 schema, surviving verbatim to hop 5), so a form *may* render it as a prefill — but that is a consumer's choice layered on the real semantic.
-- Under **dry-run mocks** the default is ignored: polyfactory builds with `__use_defaults__` unset (default `False`), so every field gets a random value (`pipelex/core/memory/working_memory_factory.py:219-225`).
-
-Consequence for D1: the slot's honest name is "value used when the caller omits the field" — prefill is a safe *rendering* of that, but the two are not the same slot. And authoring a default currently *implies* optionality on the wire (E3), which D1 should treat as an engine accident, not a semantic.
-
-### `required` versus `?` — two levels, two routes
-
-They govern different things and travel independently:
-
-- **`required` (structure-field level):** whether a field must be present *within the concept's payload*. Travels inside the `json_schema` as membership in pydantic's `required` array; a non-required field becomes `X | null` with `default: null` (the shape behind the app's flatten-then-repair round trip — `prepareSchemaForRjsf` collapsing the null arm, then `pruneEmptyOptionals` un-blocking untouched optional fields, `pipelex-app/src/lib/input-format.ts:388-421`).
-- **`?` (pipe-slot level):** whether the whole input slot may hold no value. Travels as the `optional: true` flag on the contract (`pipe_io_contracts.py:123`); the `json_schema` itself is unchanged. This is the gating rule — the app stamps its Run gate from the contract flag (`field-model.ts:345-351`).
-- **`!` (pipe-slot level):** a *use-site assertion* that a maybe-absent slot is present at run time — meaningless on outputs (rejected, `pipe_blueprint.py:335`), linted as redundant when every flow guarantees the slot (`pipelex/pipeline/optionality_warnings.py`). On the contract it is flattened into plain (E5).
-
-The two levels never interact in the emission: `?` on a slot does not touch the payload schema, and a field's `required` never bubbles up to the slot.
-
----
-
-## D. Engine-authored semantics on native content classes — the catalogue
-
-Descriptions and field names written in this repo, not by method authors. The ones marked ⚠ are **contracts-in-disguise**: a downstream surface keys on them today, so changing them is S2 work with a blast radius.
-
-| Class / field | Engine-authored text or shape | Downstream coupling |
-|---|---|---|
-| `DocumentContent.url` (`document_content.py:16`) | "The document URL: a storage URI, an HTTP(S) URL, or a base64 data URL" | ⚠ Matched by substring (lowercased `"document url"`) to assign the upload dropzone (`pipelex-app/src/components/method/document-url-widget.tsx:130-136`). The matcher's other branch, `"pipelex storage url"`, **already matches nothing** — the wording drifted and half the contract is dead. Renaming away "document url" silently removes every dropzone in the MethodViewer panel. |
-| `DocumentContent` field names (`url`, `public_url`, `mime_type`, `filename`, `title`, `snippet`) | the model's shape | ⚠ Hardcoded as a value-sniff set (`pipelex-app/src/lib/input-format.ts:176-182`) and `properties.url` alone makes any concept a document with a dropzone (`field-model.ts:186-197`, also `:362-365` for run-gating readiness). Renaming `url` breaks document detection, upload, and gating in both stacks. |
-| `TextContent.text` (`text_content.py:17`) | "The text" + the single-field `{text}` shape | ⚠ The `{text: "…"}` wrapper shape is assumed by the app's wrapping sets (`run-values.ts:35-48`, applied at `:129`), the deflate/inflate rules (`input-format.ts:78-136`), and `healStringWrappers` (`input-format.ts:312-369`). Renaming `text` breaks text round-tripping everywhere. |
-| `ImageContent.url` (`image_content.py:20`) | "The image URL: a storage URI, an HTTP(S) URL, or a base64 data URL" | Matches neither dropzone substring (measured) — image upload in the runner stack works only via the hardcoded concept sets (E1); shape-wise, `properties.url` makes images sniff as documents. |
-| `ImageContent.width` / `.height` (`image_content.py:27-28`) | `gt=0` constraints + descriptions | Proof the engine can emit numeric bounds the language cannot author (§B). |
-| `DateContent` / `TimeContent` docstrings (`date_content.py:17`, `time_content.py:16`) | the only two native classes whose schemas carry a top-level description | `DateContent.time` (optional, `format: time`) is the app's canonical flatten-then-repair casualty, cited in `pruneEmptyOptionals`' docstring (`input-format.ts:371-386`). |
-| `PageContent.text_and_images` / `.page_view` (`page_content.py:14-15`) | extraction-oriented descriptions | No known coupling; `native.Page` is folded into the app's document branch by concept set, not by these. |
-| `NumberContent.number`, `HtmlContent.inner_html`/`.css_class`, `YesNoContent.yes_no`, `TextAndImagesContent.*` | plain descriptive prose | No known coupling beyond the generic wrapper handling. |
-
-Sweep method note: couplings were found by searching `pipelex-app` for description substrings, field-name sniff sets, and wrapper-shape assumptions; `base_64` / `source_prompt` sniffing was explicitly checked for and does not exist — those shapes fall through to the raw-JSON field, i.e. they are uncompensated gaps, not contracts.
-
----
-
-## E. Ranking for S2
-
-Worked-around gaps first, per the brief:
-
-1. **E1 + E2** (concept identity, refinement chain) — compensated by three drifted hardcoded ref-set copies, two shape sniffs, and a half-dead description matcher; every one of the app's heaviest heuristics traces to these two.
-2. **E6** (missing top-level descriptions) — compensated by clobbering description with the concept ref.
-3. **E9** (multiplicity as shape only) — compensated three times, with one documented gating bug.
-4. **E7 + E8** (silent extras; builder `default` key) — nobody *can* work around silent loss; E8 is a live data-loss bug in the authoring path.
-5. **E3** (`required` + `default_value`) — silent semantic rewrite, uncompensated.
-6. **E10** (`const` unread) — a real form-correctness hole, one-line-ish on either side.
-7. **E4, E5** (`[N]`, `!`) — uncompensated and currently consequence-free; close them when touching the adjacent code (E4 rides E9's contract change).
-
----
-
-## F. S2 closure evidence (2026-08-23, `feature/Enrich`)
-
-Every engine-side entry of §A/§E is closed; the evidence standard is the audit's own — each closure is visible as a before/after row change in the [survival table](survival-table.md) against the regenerated captures under `probe/`. Design and rulings: `wip/enrich/design.md`; wire spec: `docs/specs/pipelex-mthds-protocol.md` (workspace root).
-
-| Entry | Closure | Evidence |
-|---|---|---|
-| E1 concept identity | Top-level schema `title` is the concept ref, injected at `_render_schema_representation` (`concept.py`). Nested `$defs` identity stays descriptor-only, per the design ruling. | `probe/hop4_schema_renders/*.json` — every render's `content.title` is the concept ref (e.g. `native.Text`, `input_semantics_probe.ClassBacked`). |
-| E2 refinement chain | Ruled closed by the descriptor (`refines` list); no schema change, by design. | Descriptor spec + `hop5_input_form.json`. |
-| E3 required + default | The pair is rejected by a `ConceptStructureBlueprint` model validator; the generator's silent tiebreak is now an explicit raising invariant; a reflected class's pydantic default counts as an authored fact (`required: false` + `default_value`, closing the D2 deferral's first item). | `rejected/required_with_default.mthds_invalid`; unit seams `test_concept_structure_blueprint_required_default.py`, `test_structure_generator_required_default_invariant.py`; reflected row in `test_input_form.py`. Survival-table row now "rejected at hop 1". |
-| E4 `[N]` multiplicity | Real multiplicity threaded through `render_stuff_spec` → `render_concept_representation`; fixed counts emit `minItems`/`maxItems`; memo key normalized (no `hash(True)==hash(1)` collision); `[1]` stays single. | `probe/hop4_schema_renders/input_semantics_probe.probe_markers.two.json` (`minItems: 2`, `maxItems: 2`); `many` unbounded. |
-| E5 `!` on the contract | `PipeInputContract.presence` (three-valued, replacing `optional`) — protocol change, spec-first. | `probe/hop5_pipe_io_contracts.json`: `forced` reports `presence: "force"`. Conformance arms at the re-pin (shape-detected skip). |
-| E6 missing descriptions | Top-level schema `description` is the concept's authored description for every species; the seven bare native content classes gained docstrings (instructor-side schemas carry them too). | `probe/hop4_schema_renders/…classbacked.json` (authored description present); native renders carry pinned descriptions. |
-| E7 silent extras | `extra="forbid"` on `ConceptStructureBlueprint` (hint content stays lenient). | `rejected/unknown_structure_field_key.mthds_invalid`; `test_concept_structure_blueprint_extra_keys.py`. |
-| E8 builder `default` key | Builder writes `default_value`; write-then-validate round trip pinned. | `concept_ops.py` + `test_concept_spec_to_toml.py`; inbox item delivered and removed. |
-| E9 multiplicity on contract | Input and output contracts carry three-valued `multiplicity` + `item_count` (`make_io_multiplicity`); the fixed-reports-as-variable ruling retired. | `probe/hop5_pipe_io_contracts.json`: `two` reports `("fixed", 2)` on input and output; `many` `("variable", null)`. |
-| E10 `const` vs `enum` | Schema stays pydantic-canonical; `const` documented as part of the contract (protocol spec sentence). Descriptor half closed by D2. | Spec `pipe_io_contracts` row; `only_choice` render shows `const`. |
-
-The §B language ceiling is untouched (out of scope, by design §9); its absence is now loud where it used to be silent (E7). Cross-repo follow-ups filed: `mthds` (the two validation sentences), `pipelex-js` (mirror), `mthds-js` (protocol types at the cascade).
diff --git a/wip/input-semantics/probe/hop1_bundle_blueprints.json b/wip/input-semantics/probe/hop1_bundle_blueprints.json
deleted file mode 100644
index 759a437ad..000000000
--- a/wip/input-semantics/probe/hop1_bundle_blueprints.json
+++ /dev/null
@@ -1,481 +0,0 @@
-[
- {
- "source": "tests/data/input_semantics/probe_bundle.mthds",
- "domain": "input_semantics_probe",
- "description": "PROBE_bundle_desc: probe bundle for the input-semantics audit — every authored fact carries a PROBE_ sentinel so its survival is greppable in every capture",
- "system_prompt": null,
- "main_pipe": "probe_single",
- "concept": {
- "StringNote": "PROBE_desc_concept_StringNote: a concept declared as a bare string",
- "Trinket": {
- "source": null,
- "description": "PROBE_desc_concept_Trinket: leaf structure for two-level nesting",
- "structure": {
- "label": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf"
- },
- "refines": null
- },
- "Gadget": {
- "source": null,
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "structure": {
- "name": {
- "description": "PROBE_desc_field_gadget_name",
- "type": "text",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": null,
- "required": true
- },
- "trinket": {
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two",
- "type": "concept",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": "Trinket",
- "item_concept_ref": null,
- "choices": null,
- "default_value": null,
- "required": false
- }
- },
- "refines": null
- },
- "Widget": {
- "source": null,
- "description": "PROBE_desc_concept_Widget: the full-matrix structure under audit",
- "structure": {
- "shorthand_note": "PROBE_desc_field_shorthand_note: shorthand string field (implies text, required)",
- "title": {
- "description": "PROBE_desc_field_title: required text",
- "type": "text",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": null,
- "required": true
- },
- "subtitle": {
- "description": "PROBE_desc_field_subtitle: optional text (required omitted)",
- "type": "text",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": null,
- "required": false
- },
- "summary": {
- "description": "PROBE_desc_field_summary: optional text (required explicit false)",
- "type": "text",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": null,
- "required": false
- },
- "motto": {
- "description": "PROBE_desc_field_motto: text with default",
- "type": "text",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": "PROBE_default_motto",
- "required": false
- },
- "count": {
- "description": "PROBE_desc_field_count: integer with default",
- "type": "integer",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": 42,
- "required": false
- },
- "enabled": {
- "description": "PROBE_desc_field_enabled: boolean with default",
- "type": "boolean",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": true,
- "required": false
- },
- "price": {
- "description": "PROBE_desc_field_price: number with default",
- "type": "number",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": 9.99,
- "required": false
- },
- "released_on": {
- "description": "PROBE_desc_field_released_on: date with default",
- "type": "date",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": "2026-01-15",
- "required": false
- },
- "launched_at": {
- "description": "PROBE_desc_field_launched_at: datetime with default",
- "type": "datetime",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": "2026-01-15T12:30:00",
- "required": false
- },
- "daily_at": {
- "description": "PROBE_desc_field_daily_at: time with default",
- "type": "time",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": "12:30:00",
- "required": false
- },
- "tags": {
- "description": "PROBE_desc_field_tags: list of text with default",
- "type": "list",
- "key_type": null,
- "value_type": null,
- "item_type": "text",
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": [
- "PROBE_tag_a",
- "PROBE_tag_b"
- ],
- "required": false
- },
- "ratings": {
- "description": "PROBE_desc_field_ratings: list of integer",
- "type": "list",
- "key_type": null,
- "value_type": null,
- "item_type": "integer",
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": null,
- "required": false
- },
- "matrix": {
- "description": "PROBE_desc_field_matrix: nested list with unspecified inner item",
- "type": "list",
- "key_type": null,
- "value_type": null,
- "item_type": "list",
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": null,
- "required": false
- },
- "gadgets": {
- "description": "PROBE_desc_field_gadgets: list of concept",
- "type": "list",
- "key_type": null,
- "value_type": null,
- "item_type": "concept",
- "concept_ref": null,
- "item_concept_ref": "Gadget",
- "choices": null,
- "default_value": null,
- "required": false
- },
- "attributes": {
- "description": "PROBE_desc_field_attributes: dict text to text",
- "type": "dict",
- "key_type": "text",
- "value_type": "text",
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": null,
- "required": false
- },
- "scores": {
- "description": "PROBE_desc_field_scores: dict text to number with default",
- "type": "dict",
- "key_type": "text",
- "value_type": "number",
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": {
- "speed": 5
- },
- "required": false
- },
- "milestones": {
- "description": "PROBE_desc_field_milestones: dict text to date",
- "type": "dict",
- "key_type": "text",
- "value_type": "date",
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": null,
- "required": false
- },
- "main_gadget": {
- "description": "PROBE_desc_field_main_gadget: required concept field",
- "type": "concept",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": "Gadget",
- "item_concept_ref": null,
- "choices": null,
- "default_value": null,
- "required": true
- },
- "icon": {
- "description": "PROBE_desc_field_icon: native concept field",
- "type": "concept",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": "native.Image",
- "item_concept_ref": null,
- "choices": null,
- "default_value": null,
- "required": false
- },
- "tone": {
- "description": "PROBE_desc_field_tone: choices with default",
- "type": null,
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": [
- "PROBE_choice_formal",
- "PROBE_choice_casual",
- "PROBE_choice_playful"
- ],
- "default_value": "PROBE_choice_casual",
- "required": false
- },
- "only_choice": {
- "description": "PROBE_desc_field_only_choice: single-entry choice list",
- "type": null,
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": [
- "PROBE_choice_single"
- ],
- "default_value": null,
- "required": false
- },
- "typed_choice": {
- "description": "PROBE_desc_field_typed_choice: type AND choices together",
- "type": "text",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": [
- "PROBE_choice_typed_a",
- "PROBE_choice_typed_b"
- ],
- "default_value": null,
- "required": false
- },
- "constrained_count": {
- "description": "PROBE_desc_field_constrained_count: integer carrying unknown constraint keys",
- "type": "integer",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": null,
- "required": false
- }
- },
- "refines": null
- },
- "PlainNote": {
- "source": null,
- "description": "PROBE_desc_concept_PlainNote: description-only concept (basic blueprint)",
- "structure": null,
- "refines": null
- },
- "RefinedDoc": {
- "source": null,
- "description": "PROBE_desc_concept_RefinedDoc: refinement of a native concept",
- "structure": null,
- "refines": "native.Document"
- },
- "BaseEntity": {
- "source": null,
- "description": "PROBE_desc_concept_BaseEntity: base of a custom refinement chain",
- "structure": {
- "ident": {
- "description": "PROBE_desc_field_base_ident: inherited field",
- "type": "text",
- "key_type": null,
- "value_type": null,
- "item_type": null,
- "concept_ref": null,
- "item_concept_ref": null,
- "choices": null,
- "default_value": null,
- "required": true
- }
- },
- "refines": null
- },
- "SpecialEntity": {
- "source": null,
- "description": "PROBE_desc_concept_SpecialEntity: refines a custom concept",
- "structure": null,
- "refines": "BaseEntity"
- },
- "ExtraSpecialEntity": {
- "source": null,
- "description": "PROBE_desc_concept_ExtraSpecialEntity: second link of the refinement chain",
- "structure": null,
- "refines": "SpecialEntity"
- },
- "ClassBacked": {
- "source": null,
- "description": "PROBE_desc_concept_ClassBacked: structure declared as an existing class name",
- "structure": "TextContent",
- "refines": null
- }
- },
- "pipe": {
- "probe_single": {
- "source": null,
- "pipe_category": "PipeOperator",
- "type": "PipeLLM",
- "description": "PROBE_pipe_probe_single: plain structured, qualified, and description-only inputs",
- "inputs": {
- "widget": "Widget",
- "gadget_q": "input_semantics_probe.Gadget",
- "note": "PlainNote"
- },
- "output": "Text",
- "model": null,
- "model_to_structure": null,
- "system_prompt": null,
- "prompt": "Consider the widget:\n@widget\nAnd the gadget:\n@gadget_q\nAnd the note:\n@note\n",
- "structuring_method": null,
- "templating_style": null
- },
- "probe_native_inputs": {
- "source": null,
- "pipe_category": "PipeOperator",
- "type": "PipeLLM",
- "description": "PROBE_pipe_probe_native_inputs: native concepts as direct inputs",
- "inputs": {
- "text_in": "Text",
- "image_in": "Image",
- "document_in": "Document",
- "page_in": "Page",
- "number_in": "Number",
- "date_in": "Date",
- "time_in": "Time",
- "html_in": "Html",
- "yesno_in": "YesNo"
- },
- "output": "Text",
- "model": null,
- "model_to_structure": null,
- "system_prompt": null,
- "prompt": "@text_in\n@image_in\n@document_in\n@page_in\n@number_in\n@date_in\n@time_in\n@html_in\n@yesno_in\n",
- "structuring_method": null,
- "templating_style": null
- },
- "probe_markers": {
- "source": null,
- "pipe_category": "PipeOperator",
- "type": "PipeLLM",
- "description": "PROBE_pipe_probe_markers: optional, list, fixed-count, and force markers",
- "inputs": {
- "opt": "Widget?",
- "many": "Widget[]",
- "two": "Gadget[2]",
- "forced": "Text!"
- },
- "output": "Text",
- "model": null,
- "model_to_structure": null,
- "system_prompt": null,
- "prompt": "@?opt\nMany widgets:\n@many\nTwo gadgets:\n@two\nForced text:\n@forced\n",
- "structuring_method": null,
- "templating_style": null
- },
- "probe_refined": {
- "source": null,
- "pipe_category": "PipeOperator",
- "type": "PipeLLM",
- "description": "PROBE_pipe_probe_refined: refinements and class-backed concepts as inputs",
- "inputs": {
- "refdoc": "RefinedDoc",
- "special": "SpecialEntity",
- "extra": "ExtraSpecialEntity",
- "classbacked": "ClassBacked",
- "stringnote": "StringNote"
- },
- "output": "Text",
- "model": null,
- "model_to_structure": null,
- "system_prompt": null,
- "prompt": "@refdoc\n@special\n@extra\n@classbacked\n@stringnote\n",
- "structuring_method": null,
- "templating_style": null
- }
- }
- }
-]
diff --git a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.BaseEntity.py.txt b/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.BaseEntity.py.txt
deleted file mode 100644
index 41982cf5c..000000000
--- a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.BaseEntity.py.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-"""
-AUTOGENERATED CODE - DO NOT EDIT
-
-If you want to customize this structure:
- 1. Copy this file to your own module
- 2. Remove the 'structure' or 'refines' declaration from the concept in the MTHDS file
- and declare it in inline mode (see https://docs.pipelex.com/latest/building-methods/concepts/define_your_concepts/#basic-concept-definition)
- 3. Make sure your custom class is importable and registered
-
-To regenerate: pipelex build structures <target_directory>
-"""
-
-from enum import Enum
-from pipelex.core.stuffs.structured_content import StructuredContent
-from pydantic import Field
-from typing import Any, Literal
-
-
-class input_semantics_probe__BaseEntity(StructuredContent):
- """PROBE_desc_concept_BaseEntity: base of a custom refinement chain"""
-
- ident: str = Field(..., description="PROBE_desc_field_base_ident: inherited field")
diff --git a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.ExtraSpecialEntity.py.txt b/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.ExtraSpecialEntity.py.txt
deleted file mode 100644
index 397db4cd1..000000000
--- a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.ExtraSpecialEntity.py.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-"""
-AUTOGENERATED CODE - DO NOT EDIT
-
-If you want to customize this structure:
- 1. Copy this file to your own module
- 2. Remove the 'structure' or 'refines' declaration from the concept in the MTHDS file
- and declare it in inline mode (see https://docs.pipelex.com/latest/building-methods/concepts/define_your_concepts/#basic-concept-definition)
- 3. Make sure your custom class is importable and registered
-
-To regenerate: pipelex build structures <target_directory>
-"""
-
-from enum import Enum
-from pipelex.core.stuffs.structured_content import StructuredContent
-from pydantic import Field
-from typing import Any, Literal
-
-
-class input_semantics_probe__ExtraSpecialEntity(input_semantics_probe__SpecialEntity):
- """PROBE_desc_concept_ExtraSpecialEntity: second link of the refinement chain"""
-
diff --git a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.Gadget.py.txt b/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.Gadget.py.txt
deleted file mode 100644
index 8c98da57e..000000000
--- a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.Gadget.py.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-"""
-AUTOGENERATED CODE - DO NOT EDIT
-
-If you want to customize this structure:
- 1. Copy this file to your own module
- 2. Remove the 'structure' or 'refines' declaration from the concept in the MTHDS file
- and declare it in inline mode (see https://docs.pipelex.com/latest/building-methods/concepts/define_your_concepts/#basic-concept-definition)
- 3. Make sure your custom class is importable and registered
-
-To regenerate: pipelex build structures <target_directory>
-"""
-
-from enum import Enum
-from pipelex.core.stuffs.structured_content import StructuredContent
-from pydantic import Field
-from typing import Any, Literal
-
-
-class input_semantics_probe__Gadget(StructuredContent):
- """PROBE_desc_concept_Gadget: mid-level structure nested inside Widget"""
-
- name: str = Field(..., description="PROBE_desc_field_gadget_name")
- trinket: "input_semantics_probe__Trinket | None" = Field(default=None, description="PROBE_desc_field_gadget_trinket: nested concept, level two")
diff --git a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.PlainNote.py.txt b/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.PlainNote.py.txt
deleted file mode 100644
index 90c9178db..000000000
--- a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.PlainNote.py.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-"""
-AUTOGENERATED CODE - DO NOT EDIT
-
-If you want to customize this structure:
- 1. Copy this file to your own module
- 2. Remove the 'structure' or 'refines' declaration from the concept in the MTHDS file
- and declare it in inline mode (see https://docs.pipelex.com/latest/building-methods/concepts/define_your_concepts/#basic-concept-definition)
- 3. Make sure your custom class is importable and registered
-
-To regenerate: pipelex build structures <target_directory>
-"""
-
-from enum import Enum
-from pipelex.core.stuffs.structured_content import StructuredContent
-from pipelex.core.stuffs.text_content import TextContent
-from pydantic import Field
-from typing import Any, Literal
-
-
-class input_semantics_probe__PlainNote(TextContent):
- """PROBE_desc_concept_PlainNote: description-only concept (basic blueprint)"""
-
diff --git a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.RefinedDoc.py.txt b/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.RefinedDoc.py.txt
deleted file mode 100644
index c30b9f8f4..000000000
--- a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.RefinedDoc.py.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-"""
-AUTOGENERATED CODE - DO NOT EDIT
-
-If you want to customize this structure:
- 1. Copy this file to your own module
- 2. Remove the 'structure' or 'refines' declaration from the concept in the MTHDS file
- and declare it in inline mode (see https://docs.pipelex.com/latest/building-methods/concepts/define_your_concepts/#basic-concept-definition)
- 3. Make sure your custom class is importable and registered
-
-To regenerate: pipelex build structures <target_directory>
-"""
-
-from enum import Enum
-from pipelex.core.stuffs.document_content import DocumentContent
-from pipelex.core.stuffs.structured_content import StructuredContent
-from pydantic import Field
-from typing import Any, Literal
-
-
-class input_semantics_probe__RefinedDoc(DocumentContent):
- """PROBE_desc_concept_RefinedDoc: refinement of a native concept"""
-
diff --git a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.SpecialEntity.py.txt b/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.SpecialEntity.py.txt
deleted file mode 100644
index 9efc8cfd3..000000000
--- a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.SpecialEntity.py.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-"""
-AUTOGENERATED CODE - DO NOT EDIT
-
-If you want to customize this structure:
- 1. Copy this file to your own module
- 2. Remove the 'structure' or 'refines' declaration from the concept in the MTHDS file
- and declare it in inline mode (see https://docs.pipelex.com/latest/building-methods/concepts/define_your_concepts/#basic-concept-definition)
- 3. Make sure your custom class is importable and registered
-
-To regenerate: pipelex build structures <target_directory>
-"""
-
-from enum import Enum
-from pipelex.core.stuffs.structured_content import StructuredContent
-from pydantic import Field
-from typing import Any, Literal
-
-
-class input_semantics_probe__SpecialEntity(input_semantics_probe__BaseEntity):
- """PROBE_desc_concept_SpecialEntity: refines a custom concept"""
-
diff --git a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.StringNote.py.txt b/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.StringNote.py.txt
deleted file mode 100644
index 32319633e..000000000
--- a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.StringNote.py.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-"""
-AUTOGENERATED CODE - DO NOT EDIT
-
-If you want to customize this structure:
- 1. Copy this file to your own module
- 2. Remove the 'structure' or 'refines' declaration from the concept in the MTHDS file
- and declare it in inline mode (see https://docs.pipelex.com/latest/building-methods/concepts/define_your_concepts/#basic-concept-definition)
- 3. Make sure your custom class is importable and registered
-
-To regenerate: pipelex build structures <target_directory>
-"""
-
-from enum import Enum
-from pipelex.core.stuffs.structured_content import StructuredContent
-from pipelex.core.stuffs.text_content import TextContent
-from pydantic import Field
-from typing import Any, Literal
-
-
-class input_semantics_probe__StringNote(TextContent):
- """PROBE_desc_concept_StringNote: a concept declared as a bare string"""
-
diff --git a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.Trinket.py.txt b/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.Trinket.py.txt
deleted file mode 100644
index fb7fad11f..000000000
--- a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.Trinket.py.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-"""
-AUTOGENERATED CODE - DO NOT EDIT
-
-If you want to customize this structure:
- 1. Copy this file to your own module
- 2. Remove the 'structure' or 'refines' declaration from the concept in the MTHDS file
- and declare it in inline mode (see https://docs.pipelex.com/latest/building-methods/concepts/define_your_concepts/#basic-concept-definition)
- 3. Make sure your custom class is importable and registered
-
-To regenerate: pipelex build structures <target_directory>
-"""
-
-from enum import Enum
-from pipelex.core.stuffs.structured_content import StructuredContent
-from pydantic import Field
-from typing import Any, Literal
-
-
-class input_semantics_probe__Trinket(StructuredContent):
- """PROBE_desc_concept_Trinket: leaf structure for two-level nesting"""
-
- label: str = Field(..., description="PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf")
diff --git a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.Widget.py.txt b/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.Widget.py.txt
deleted file mode 100644
index db7739206..000000000
--- a/wip/input-semantics/probe/hop2_generated_sources/input_semantics_probe.Widget.py.txt
+++ /dev/null
@@ -1,49 +0,0 @@
-"""
-AUTOGENERATED CODE - DO NOT EDIT
-
-If you want to customize this structure:
- 1. Copy this file to your own module
- 2. Remove the 'structure' or 'refines' declaration from the concept in the MTHDS file
- and declare it in inline mode (see https://docs.pipelex.com/latest/building-methods/concepts/define_your_concepts/#basic-concept-definition)
- 3. Make sure your custom class is importable and registered
-
-To regenerate: pipelex build structures <target_directory>
-"""
-
-from datetime import date
-from datetime import datetime
-from datetime import time
-from enum import Enum
-from pipelex.core.stuffs.image_content import ImageContent
-from pipelex.core.stuffs.structured_content import StructuredContent
-from pydantic import Field
-from typing import Any, Literal
-
-
-class input_semantics_probe__Widget(StructuredContent):
- """PROBE_desc_concept_Widget: the full-matrix structure under audit"""
-
- shorthand_note: str = Field(..., description="PROBE_desc_field_shorthand_note: shorthand string field (implies text, required)")
- title: str = Field(..., description="PROBE_desc_field_title: required text")
- subtitle: str | None = Field(default=None, description="PROBE_desc_field_subtitle: optional text (required omitted)")
- summary: str | None = Field(default=None, description="PROBE_desc_field_summary: optional text (required explicit false)")
- motto: str | None = Field(default="PROBE_default_motto", description="PROBE_desc_field_motto: text with default")
- count: int | None = Field(default=42, description="PROBE_desc_field_count: integer with default")
- enabled: bool | None = Field(default=True, description="PROBE_desc_field_enabled: boolean with default")
- price: float | None = Field(default=9.99, description="PROBE_desc_field_price: number with default")
- released_on: date | None = Field(default=date.fromisoformat("2026-01-15"), description="PROBE_desc_field_released_on: date with default")
- launched_at: datetime | None = Field(default=datetime.fromisoformat("2026-01-15T12:30:00"), description="PROBE_desc_field_launched_at: datetime with default")
- daily_at: time | None = Field(default=time.fromisoformat("12:30:00"), description="PROBE_desc_field_daily_at: time with default")
- tags: list[str] | None = Field(default=["PROBE_tag_a", "PROBE_tag_b"], description="PROBE_desc_field_tags: list of text with default")
- ratings: list[int] | None = Field(default=None, description="PROBE_desc_field_ratings: list of integer")
- matrix: list[list[Any]] | None = Field(default=None, description="PROBE_desc_field_matrix: nested list with unspecified inner item")
- gadgets: list["input_semantics_probe__Gadget"] | None = Field(default=None, description="PROBE_desc_field_gadgets: list of concept")
- attributes: dict[str, str] | None = Field(default=None, description="PROBE_desc_field_attributes: dict text to text")
- scores: dict[str, float] | None = Field(default={"speed": 5}, description="PROBE_desc_field_scores: dict text to number with default")
- milestones: dict[str, date] | None = Field(default=None, description="PROBE_desc_field_milestones: dict text to date")
- main_gadget: "input_semantics_probe__Gadget" = Field(..., description="PROBE_desc_field_main_gadget: required concept field")
- icon: ImageContent | None = Field(default=None, description="PROBE_desc_field_icon: native concept field")
- tone: Literal["PROBE_choice_formal", "PROBE_choice_casual", "PROBE_choice_playful"] | None = Field(default="PROBE_choice_casual", description="PROBE_desc_field_tone: choices with default")
- only_choice: Literal["PROBE_choice_single"] | None = Field(default=None, description="PROBE_desc_field_only_choice: single-entry choice list")
- typed_choice: Literal["PROBE_choice_typed_a", "PROBE_choice_typed_b"] | None = Field(default=None, description="PROBE_desc_field_typed_choice: type AND choices together")
- constrained_count: int | None = Field(default=None, description="PROBE_desc_field_constrained_count: integer carrying unknown constraint keys")
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.BaseEntity.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.BaseEntity.json
deleted file mode 100644
index 958247548..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.BaseEntity.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "description": "PROBE_desc_concept_BaseEntity: base of a custom refinement chain",
- "properties": {
- "ident": {
- "description": "PROBE_desc_field_base_ident: inherited field",
- "title": "Ident",
- "type": "string"
- }
- },
- "required": [
- "ident"
- ],
- "title": "input_semantics_probe__BaseEntity",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.ClassBacked.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.ClassBacked.json
deleted file mode 100644
index 6a5afdf39..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.ClassBacked.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "description": "A text",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "TextContent",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.ExtraSpecialEntity.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.ExtraSpecialEntity.json
deleted file mode 100644
index 335f03b25..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.ExtraSpecialEntity.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "description": "PROBE_desc_concept_ExtraSpecialEntity: second link of the refinement chain",
- "properties": {
- "ident": {
- "description": "PROBE_desc_field_base_ident: inherited field",
- "title": "Ident",
- "type": "string"
- }
- },
- "required": [
- "ident"
- ],
- "title": "input_semantics_probe__ExtraSpecialEntity",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.Gadget.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.Gadget.json
deleted file mode 100644
index edad748a0..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.Gadget.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "$defs": {
- "input_semantics_probe__Trinket": {
- "description": "PROBE_desc_concept_Trinket: leaf structure for two-level nesting",
- "properties": {
- "label": {
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "title": "Label",
- "type": "string"
- }
- },
- "required": [
- "label"
- ],
- "title": "input_semantics_probe__Trinket",
- "type": "object"
- }
- },
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "properties": {
- "name": {
- "description": "PROBE_desc_field_gadget_name",
- "title": "Name",
- "type": "string"
- },
- "trinket": {
- "anyOf": [
- {
- "$ref": "#/$defs/input_semantics_probe__Trinket"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two"
- }
- },
- "required": [
- "name"
- ],
- "title": "input_semantics_probe__Gadget",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.PlainNote.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.PlainNote.json
deleted file mode 100644
index fc293e0f6..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.PlainNote.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "description": "PROBE_desc_concept_PlainNote: description-only concept (basic blueprint)",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "input_semantics_probe__PlainNote",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.RefinedDoc.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.RefinedDoc.json
deleted file mode 100644
index 6c3793e79..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.RefinedDoc.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "description": "PROBE_desc_concept_RefinedDoc: refinement of a native concept",
- "properties": {
- "url": {
- "description": "The document URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public HTTPS URL of the document",
- "title": "Public Url"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the document",
- "title": "Mime Type"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the document",
- "title": "Filename"
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The title of the document or source",
- "title": "Title"
- },
- "snippet": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "A text snippet or excerpt from the document",
- "title": "Snippet"
- }
- },
- "required": [
- "url"
- ],
- "title": "input_semantics_probe__RefinedDoc",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.SpecialEntity.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.SpecialEntity.json
deleted file mode 100644
index 7e5c4aa80..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.SpecialEntity.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "description": "PROBE_desc_concept_SpecialEntity: refines a custom concept",
- "properties": {
- "ident": {
- "description": "PROBE_desc_field_base_ident: inherited field",
- "title": "Ident",
- "type": "string"
- }
- },
- "required": [
- "ident"
- ],
- "title": "input_semantics_probe__SpecialEntity",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.StringNote.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.StringNote.json
deleted file mode 100644
index 7c3d3b33e..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.StringNote.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "description": "PROBE_desc_concept_StringNote: a concept declared as a bare string",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "input_semantics_probe__StringNote",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.Trinket.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.Trinket.json
deleted file mode 100644
index 707d94a36..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.Trinket.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "description": "PROBE_desc_concept_Trinket: leaf structure for two-level nesting",
- "properties": {
- "label": {
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "title": "Label",
- "type": "string"
- }
- },
- "required": [
- "label"
- ],
- "title": "input_semantics_probe__Trinket",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.Widget.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.Widget.json
deleted file mode 100644
index 431b2d776..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/input_semantics_probe.Widget.json
+++ /dev/null
@@ -1,504 +0,0 @@
-{
- "$defs": {
- "ImageContent": {
- "description": "An image",
- "properties": {
- "url": {
- "description": "The image URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public URL of the image",
- "title": "Public Url"
- },
- "source_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source prompt of the image",
- "title": "Source Prompt"
- },
- "source_negative_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source negative prompt of the image",
- "title": "Source Negative Prompt"
- },
- "caption": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The caption of the image",
- "title": "Caption"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the image",
- "title": "Mime Type"
- },
- "width": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The width of the image, in pixels",
- "title": "Width"
- },
- "height": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The height of the image, in pixels",
- "title": "Height"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the image",
- "title": "Filename"
- }
- },
- "required": [
- "url"
- ],
- "title": "ImageContent",
- "type": "object"
- },
- "input_semantics_probe__Gadget": {
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "properties": {
- "name": {
- "description": "PROBE_desc_field_gadget_name",
- "title": "Name",
- "type": "string"
- },
- "trinket": {
- "anyOf": [
- {
- "$ref": "#/$defs/input_semantics_probe__Trinket"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two"
- }
- },
- "required": [
- "name"
- ],
- "title": "input_semantics_probe__Gadget",
- "type": "object"
- },
- "input_semantics_probe__Trinket": {
- "description": "PROBE_desc_concept_Trinket: leaf structure for two-level nesting",
- "properties": {
- "label": {
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "title": "Label",
- "type": "string"
- }
- },
- "required": [
- "label"
- ],
- "title": "input_semantics_probe__Trinket",
- "type": "object"
- }
- },
- "description": "PROBE_desc_concept_Widget: the full-matrix structure under audit",
- "properties": {
- "shorthand_note": {
- "description": "PROBE_desc_field_shorthand_note: shorthand string field (implies text, required)",
- "title": "Shorthand Note",
- "type": "string"
- },
- "title": {
- "description": "PROBE_desc_field_title: required text",
- "title": "Title",
- "type": "string"
- },
- "subtitle": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_subtitle: optional text (required omitted)",
- "title": "Subtitle"
- },
- "summary": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_summary: optional text (required explicit false)",
- "title": "Summary"
- },
- "motto": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "PROBE_default_motto",
- "description": "PROBE_desc_field_motto: text with default",
- "title": "Motto"
- },
- "count": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": 42,
- "description": "PROBE_desc_field_count: integer with default",
- "title": "Count"
- },
- "enabled": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": true,
- "description": "PROBE_desc_field_enabled: boolean with default",
- "title": "Enabled"
- },
- "price": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "default": 9.99,
- "description": "PROBE_desc_field_price: number with default",
- "title": "Price"
- },
- "released_on": {
- "anyOf": [
- {
- "format": "date",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "2026-01-15",
- "description": "PROBE_desc_field_released_on: date with default",
- "title": "Released On"
- },
- "launched_at": {
- "anyOf": [
- {
- "format": "date-time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "2026-01-15T12:30:00",
- "description": "PROBE_desc_field_launched_at: datetime with default",
- "title": "Launched At"
- },
- "daily_at": {
- "anyOf": [
- {
- "format": "time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "12:30:00",
- "description": "PROBE_desc_field_daily_at: time with default",
- "title": "Daily At"
- },
- "tags": {
- "anyOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": [
- "PROBE_tag_a",
- "PROBE_tag_b"
- ],
- "description": "PROBE_desc_field_tags: list of text with default",
- "title": "Tags"
- },
- "ratings": {
- "anyOf": [
- {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_ratings: list of integer",
- "title": "Ratings"
- },
- "matrix": {
- "anyOf": [
- {
- "items": {
- "items": {},
- "type": "array"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_matrix: nested list with unspecified inner item",
- "title": "Matrix"
- },
- "gadgets": {
- "anyOf": [
- {
- "items": {
- "$ref": "#/$defs/input_semantics_probe__Gadget"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadgets: list of concept",
- "title": "Gadgets"
- },
- "attributes": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_attributes: dict text to text",
- "title": "Attributes"
- },
- "scores": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "number"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": {
- "speed": 5
- },
- "description": "PROBE_desc_field_scores: dict text to number with default",
- "title": "Scores"
- },
- "milestones": {
- "anyOf": [
- {
- "additionalProperties": {
- "format": "date",
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_milestones: dict text to date",
- "title": "Milestones"
- },
- "main_gadget": {
- "$ref": "#/$defs/input_semantics_probe__Gadget",
- "description": "PROBE_desc_field_main_gadget: required concept field"
- },
- "icon": {
- "anyOf": [
- {
- "$ref": "#/$defs/ImageContent"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_icon: native concept field"
- },
- "tone": {
- "anyOf": [
- {
- "enum": [
- "PROBE_choice_formal",
- "PROBE_choice_casual",
- "PROBE_choice_playful"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "PROBE_choice_casual",
- "description": "PROBE_desc_field_tone: choices with default",
- "title": "Tone"
- },
- "only_choice": {
- "anyOf": [
- {
- "const": "PROBE_choice_single",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_only_choice: single-entry choice list",
- "title": "Only Choice"
- },
- "typed_choice": {
- "anyOf": [
- {
- "enum": [
- "PROBE_choice_typed_a",
- "PROBE_choice_typed_b"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_typed_choice: type AND choices together",
- "title": "Typed Choice"
- },
- "constrained_count": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_constrained_count: integer carrying unknown constraint keys",
- "title": "Constrained Count"
- }
- },
- "required": [
- "shorthand_note",
- "title",
- "main_gadget"
- ],
- "title": "input_semantics_probe__Widget",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Date.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Date.json
deleted file mode 100644
index 76cd0a7fb..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Date.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "description": "A calendar date, optionally with a time of day — as precise as its source states.\n\nThe optional ``time`` carries the UTC offset on its ``tzinfo`` when the source states one\n(fidelity, not normalization). Invalid states are unrepresentable by construction: no time\nwithout a date, no offset without a time.",
- "properties": {
- "date": {
- "description": "The calendar date, in ISO 8601 (e.g. 2026-07-07). Always required.",
- "format": "date",
- "title": "Date",
- "type": "string"
- },
- "time": {
- "anyOf": [
- {
- "format": "time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The time of day, in ISO 8601 (e.g. 15:40:00, or 15:40:00+02:00 with a UTC offset). Include it only when the source states a time — never invent a time. Keep the UTC offset exactly when the source states one.",
- "title": "Time"
- }
- },
- "required": [
- "date"
- ],
- "title": "DateContent",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Document.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Document.json
deleted file mode 100644
index e3ea0d85c..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Document.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "description": "A document",
- "properties": {
- "url": {
- "description": "The document URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public HTTPS URL of the document",
- "title": "Public Url"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the document",
- "title": "Mime Type"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the document",
- "title": "Filename"
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The title of the document or source",
- "title": "Title"
- },
- "snippet": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "A text snippet or excerpt from the document",
- "title": "Snippet"
- }
- },
- "required": [
- "url"
- ],
- "title": "DocumentContent",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Html.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Html.json
deleted file mode 100644
index 8d783264b..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Html.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "description": "HTML content",
- "properties": {
- "inner_html": {
- "description": "The inner HTML of the content",
- "title": "Inner Html",
- "type": "string"
- },
- "css_class": {
- "description": "The CSS class of the content",
- "title": "Css Class",
- "type": "string"
- }
- },
- "required": [
- "inner_html",
- "css_class"
- ],
- "title": "HtmlContent",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Image.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Image.json
deleted file mode 100644
index 2e8c9cdc5..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Image.json
+++ /dev/null
@@ -1,121 +0,0 @@
-{
- "description": "An image",
- "properties": {
- "url": {
- "description": "The image URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public URL of the image",
- "title": "Public Url"
- },
- "source_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source prompt of the image",
- "title": "Source Prompt"
- },
- "source_negative_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source negative prompt of the image",
- "title": "Source Negative Prompt"
- },
- "caption": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The caption of the image",
- "title": "Caption"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the image",
- "title": "Mime Type"
- },
- "width": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The width of the image, in pixels",
- "title": "Width"
- },
- "height": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The height of the image, in pixels",
- "title": "Height"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the image",
- "title": "Filename"
- }
- },
- "required": [
- "url"
- ],
- "title": "ImageContent",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Number.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Number.json
deleted file mode 100644
index bfbd6719c..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Number.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "description": "A number",
- "properties": {
- "number": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "number"
- }
- ],
- "description": "The number",
- "title": "Number"
- }
- },
- "required": [
- "number"
- ],
- "title": "NumberContent",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Page.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Page.json
deleted file mode 100644
index 9fbfd40b2..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Page.json
+++ /dev/null
@@ -1,211 +0,0 @@
-{
- "$defs": {
- "ImageContent": {
- "description": "An image",
- "properties": {
- "url": {
- "description": "The image URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public URL of the image",
- "title": "Public Url"
- },
- "source_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source prompt of the image",
- "title": "Source Prompt"
- },
- "source_negative_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source negative prompt of the image",
- "title": "Source Negative Prompt"
- },
- "caption": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The caption of the image",
- "title": "Caption"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the image",
- "title": "Mime Type"
- },
- "width": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The width of the image, in pixels",
- "title": "Width"
- },
- "height": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The height of the image, in pixels",
- "title": "Height"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the image",
- "title": "Filename"
- }
- },
- "required": [
- "url"
- ],
- "title": "ImageContent",
- "type": "object"
- },
- "TextAndImagesContent": {
- "properties": {
- "text": {
- "anyOf": [
- {
- "$ref": "#/$defs/TextContent"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "A text content"
- },
- "images": {
- "anyOf": [
- {
- "items": {
- "$ref": "#/$defs/ImageContent"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "A list of images that were extracted from the text",
- "title": "Images"
- },
- "raw_html": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The raw HTML of the fetched page, if requested",
- "title": "Raw Html"
- }
- },
- "title": "TextAndImagesContent",
- "type": "object"
- },
- "TextContent": {
- "description": "A text",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "TextContent",
- "type": "object"
- }
- },
- "description": "The content of a page of a document, comprising text and linked images and an optional page view image",
- "properties": {
- "text_and_images": {
- "$ref": "#/$defs/TextAndImagesContent",
- "description": "The text and images content extracted from the page"
- },
- "page_view": {
- "anyOf": [
- {
- "$ref": "#/$defs/ImageContent"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The screenshot of the page"
- }
- },
- "required": [
- "text_and_images"
- ],
- "title": "PageContent",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Text.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Text.json
deleted file mode 100644
index 6a5afdf39..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Text.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "description": "A text",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "TextContent",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Time.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Time.json
deleted file mode 100644
index ae627eca4..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.Time.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "description": "A time of day, optionally with a UTC offset — as precise as its source states.\n\nThe ``time`` carries the UTC offset on its ``tzinfo`` when the source states one\n(fidelity, not normalization). A time of day is not an instant: it has no date to\nattach to, so it never converts to a datetime on its own.",
- "properties": {
- "time": {
- "description": "The time of day, in ISO 8601 (e.g. 15:40:00, or 15:40:00+02:00 with a UTC offset).",
- "format": "time",
- "title": "Time",
- "type": "string"
- }
- },
- "required": [
- "time"
- ],
- "title": "TimeContent",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.YesNo.json b/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.YesNo.json
deleted file mode 100644
index 9e4c6fe26..000000000
--- a/wip/input-semantics/probe/hop3_raw_pydantic_schemas/native.YesNo.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "description": "The answer to a yes/no question",
- "properties": {
- "yes_no": {
- "description": "Whether the answer is yes (true) or no (false).",
- "title": "Yes No",
- "type": "boolean"
- }
- },
- "required": [
- "yes_no"
- ],
- "title": "YesNoContent",
- "type": "object"
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_markers__forced.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_markers__forced.json
deleted file mode 100644
index 7eb5f9166..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_markers__forced.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "concept": "native.Text",
- "content": {
- "description": "A text",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "native.Text",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_markers__many.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_markers__many.json
deleted file mode 100644
index 2582caaba..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_markers__many.json
+++ /dev/null
@@ -1,510 +0,0 @@
-{
- "concept": "input_semantics_probe.Widget",
- "content": {
- "type": "array",
- "items": {
- "$defs": {
- "ImageContent": {
- "description": "An image",
- "properties": {
- "url": {
- "description": "The image URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public URL of the image",
- "title": "Public Url"
- },
- "source_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source prompt of the image",
- "title": "Source Prompt"
- },
- "source_negative_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source negative prompt of the image",
- "title": "Source Negative Prompt"
- },
- "caption": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The caption of the image",
- "title": "Caption"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the image",
- "title": "Mime Type"
- },
- "width": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The width of the image, in pixels",
- "title": "Width"
- },
- "height": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The height of the image, in pixels",
- "title": "Height"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the image",
- "title": "Filename"
- }
- },
- "required": [
- "url"
- ],
- "title": "ImageContent",
- "type": "object"
- },
- "input_semantics_probe__Gadget": {
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "properties": {
- "name": {
- "description": "PROBE_desc_field_gadget_name",
- "title": "Name",
- "type": "string"
- },
- "trinket": {
- "anyOf": [
- {
- "$ref": "#/$defs/input_semantics_probe__Trinket"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two"
- }
- },
- "required": [
- "name"
- ],
- "title": "input_semantics_probe__Gadget",
- "type": "object"
- },
- "input_semantics_probe__Trinket": {
- "description": "PROBE_desc_concept_Trinket: leaf structure for two-level nesting",
- "properties": {
- "label": {
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "title": "Label",
- "type": "string"
- }
- },
- "required": [
- "label"
- ],
- "title": "input_semantics_probe__Trinket",
- "type": "object"
- }
- },
- "description": "PROBE_desc_concept_Widget: the full-matrix structure under audit",
- "properties": {
- "shorthand_note": {
- "description": "PROBE_desc_field_shorthand_note: shorthand string field (implies text, required)",
- "title": "Shorthand Note",
- "type": "string"
- },
- "title": {
- "description": "PROBE_desc_field_title: required text",
- "title": "Title",
- "type": "string"
- },
- "subtitle": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_subtitle: optional text (required omitted)",
- "title": "Subtitle"
- },
- "summary": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_summary: optional text (required explicit false)",
- "title": "Summary"
- },
- "motto": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "PROBE_default_motto",
- "description": "PROBE_desc_field_motto: text with default",
- "title": "Motto"
- },
- "count": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": 42,
- "description": "PROBE_desc_field_count: integer with default",
- "title": "Count"
- },
- "enabled": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": true,
- "description": "PROBE_desc_field_enabled: boolean with default",
- "title": "Enabled"
- },
- "price": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "default": 9.99,
- "description": "PROBE_desc_field_price: number with default",
- "title": "Price"
- },
- "released_on": {
- "anyOf": [
- {
- "format": "date",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "2026-01-15",
- "description": "PROBE_desc_field_released_on: date with default",
- "title": "Released On"
- },
- "launched_at": {
- "anyOf": [
- {
- "format": "date-time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "2026-01-15T12:30:00",
- "description": "PROBE_desc_field_launched_at: datetime with default",
- "title": "Launched At"
- },
- "daily_at": {
- "anyOf": [
- {
- "format": "time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "12:30:00",
- "description": "PROBE_desc_field_daily_at: time with default",
- "title": "Daily At"
- },
- "tags": {
- "anyOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": [
- "PROBE_tag_a",
- "PROBE_tag_b"
- ],
- "description": "PROBE_desc_field_tags: list of text with default",
- "title": "Tags"
- },
- "ratings": {
- "anyOf": [
- {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_ratings: list of integer",
- "title": "Ratings"
- },
- "matrix": {
- "anyOf": [
- {
- "items": {
- "items": {},
- "type": "array"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_matrix: nested list with unspecified inner item",
- "title": "Matrix"
- },
- "gadgets": {
- "anyOf": [
- {
- "items": {
- "$ref": "#/$defs/input_semantics_probe__Gadget"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadgets: list of concept",
- "title": "Gadgets"
- },
- "attributes": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_attributes: dict text to text",
- "title": "Attributes"
- },
- "scores": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "number"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": {
- "speed": 5
- },
- "description": "PROBE_desc_field_scores: dict text to number with default",
- "title": "Scores"
- },
- "milestones": {
- "anyOf": [
- {
- "additionalProperties": {
- "format": "date",
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_milestones: dict text to date",
- "title": "Milestones"
- },
- "main_gadget": {
- "$ref": "#/$defs/input_semantics_probe__Gadget",
- "description": "PROBE_desc_field_main_gadget: required concept field"
- },
- "icon": {
- "anyOf": [
- {
- "$ref": "#/$defs/ImageContent"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_icon: native concept field"
- },
- "tone": {
- "anyOf": [
- {
- "enum": [
- "PROBE_choice_formal",
- "PROBE_choice_casual",
- "PROBE_choice_playful"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "PROBE_choice_casual",
- "description": "PROBE_desc_field_tone: choices with default",
- "title": "Tone"
- },
- "only_choice": {
- "anyOf": [
- {
- "const": "PROBE_choice_single",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_only_choice: single-entry choice list",
- "title": "Only Choice"
- },
- "typed_choice": {
- "anyOf": [
- {
- "enum": [
- "PROBE_choice_typed_a",
- "PROBE_choice_typed_b"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_typed_choice: type AND choices together",
- "title": "Typed Choice"
- },
- "constrained_count": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_constrained_count: integer carrying unknown constraint keys",
- "title": "Constrained Count"
- }
- },
- "required": [
- "shorthand_note",
- "title",
- "main_gadget"
- ],
- "title": "input_semantics_probe.Widget",
- "type": "object"
- }
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_markers__opt.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_markers__opt.json
deleted file mode 100644
index eccb473e3..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_markers__opt.json
+++ /dev/null
@@ -1,507 +0,0 @@
-{
- "concept": "input_semantics_probe.Widget",
- "content": {
- "$defs": {
- "ImageContent": {
- "description": "An image",
- "properties": {
- "url": {
- "description": "The image URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public URL of the image",
- "title": "Public Url"
- },
- "source_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source prompt of the image",
- "title": "Source Prompt"
- },
- "source_negative_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source negative prompt of the image",
- "title": "Source Negative Prompt"
- },
- "caption": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The caption of the image",
- "title": "Caption"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the image",
- "title": "Mime Type"
- },
- "width": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The width of the image, in pixels",
- "title": "Width"
- },
- "height": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The height of the image, in pixels",
- "title": "Height"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the image",
- "title": "Filename"
- }
- },
- "required": [
- "url"
- ],
- "title": "ImageContent",
- "type": "object"
- },
- "input_semantics_probe__Gadget": {
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "properties": {
- "name": {
- "description": "PROBE_desc_field_gadget_name",
- "title": "Name",
- "type": "string"
- },
- "trinket": {
- "anyOf": [
- {
- "$ref": "#/$defs/input_semantics_probe__Trinket"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two"
- }
- },
- "required": [
- "name"
- ],
- "title": "input_semantics_probe__Gadget",
- "type": "object"
- },
- "input_semantics_probe__Trinket": {
- "description": "PROBE_desc_concept_Trinket: leaf structure for two-level nesting",
- "properties": {
- "label": {
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "title": "Label",
- "type": "string"
- }
- },
- "required": [
- "label"
- ],
- "title": "input_semantics_probe__Trinket",
- "type": "object"
- }
- },
- "description": "PROBE_desc_concept_Widget: the full-matrix structure under audit",
- "properties": {
- "shorthand_note": {
- "description": "PROBE_desc_field_shorthand_note: shorthand string field (implies text, required)",
- "title": "Shorthand Note",
- "type": "string"
- },
- "title": {
- "description": "PROBE_desc_field_title: required text",
- "title": "Title",
- "type": "string"
- },
- "subtitle": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_subtitle: optional text (required omitted)",
- "title": "Subtitle"
- },
- "summary": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_summary: optional text (required explicit false)",
- "title": "Summary"
- },
- "motto": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "PROBE_default_motto",
- "description": "PROBE_desc_field_motto: text with default",
- "title": "Motto"
- },
- "count": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": 42,
- "description": "PROBE_desc_field_count: integer with default",
- "title": "Count"
- },
- "enabled": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": true,
- "description": "PROBE_desc_field_enabled: boolean with default",
- "title": "Enabled"
- },
- "price": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "default": 9.99,
- "description": "PROBE_desc_field_price: number with default",
- "title": "Price"
- },
- "released_on": {
- "anyOf": [
- {
- "format": "date",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "2026-01-15",
- "description": "PROBE_desc_field_released_on: date with default",
- "title": "Released On"
- },
- "launched_at": {
- "anyOf": [
- {
- "format": "date-time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "2026-01-15T12:30:00",
- "description": "PROBE_desc_field_launched_at: datetime with default",
- "title": "Launched At"
- },
- "daily_at": {
- "anyOf": [
- {
- "format": "time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "12:30:00",
- "description": "PROBE_desc_field_daily_at: time with default",
- "title": "Daily At"
- },
- "tags": {
- "anyOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": [
- "PROBE_tag_a",
- "PROBE_tag_b"
- ],
- "description": "PROBE_desc_field_tags: list of text with default",
- "title": "Tags"
- },
- "ratings": {
- "anyOf": [
- {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_ratings: list of integer",
- "title": "Ratings"
- },
- "matrix": {
- "anyOf": [
- {
- "items": {
- "items": {},
- "type": "array"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_matrix: nested list with unspecified inner item",
- "title": "Matrix"
- },
- "gadgets": {
- "anyOf": [
- {
- "items": {
- "$ref": "#/$defs/input_semantics_probe__Gadget"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadgets: list of concept",
- "title": "Gadgets"
- },
- "attributes": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_attributes: dict text to text",
- "title": "Attributes"
- },
- "scores": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "number"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": {
- "speed": 5
- },
- "description": "PROBE_desc_field_scores: dict text to number with default",
- "title": "Scores"
- },
- "milestones": {
- "anyOf": [
- {
- "additionalProperties": {
- "format": "date",
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_milestones: dict text to date",
- "title": "Milestones"
- },
- "main_gadget": {
- "$ref": "#/$defs/input_semantics_probe__Gadget",
- "description": "PROBE_desc_field_main_gadget: required concept field"
- },
- "icon": {
- "anyOf": [
- {
- "$ref": "#/$defs/ImageContent"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_icon: native concept field"
- },
- "tone": {
- "anyOf": [
- {
- "enum": [
- "PROBE_choice_formal",
- "PROBE_choice_casual",
- "PROBE_choice_playful"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "PROBE_choice_casual",
- "description": "PROBE_desc_field_tone: choices with default",
- "title": "Tone"
- },
- "only_choice": {
- "anyOf": [
- {
- "const": "PROBE_choice_single",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_only_choice: single-entry choice list",
- "title": "Only Choice"
- },
- "typed_choice": {
- "anyOf": [
- {
- "enum": [
- "PROBE_choice_typed_a",
- "PROBE_choice_typed_b"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_typed_choice: type AND choices together",
- "title": "Typed Choice"
- },
- "constrained_count": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_constrained_count: integer carrying unknown constraint keys",
- "title": "Constrained Count"
- }
- },
- "required": [
- "shorthand_note",
- "title",
- "main_gadget"
- ],
- "title": "input_semantics_probe.Widget",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_markers__two.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_markers__two.json
deleted file mode 100644
index 44f23315d..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_markers__two.json
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- "concept": "input_semantics_probe.Gadget",
- "content": {
- "type": "array",
- "items": {
- "$defs": {
- "input_semantics_probe__Trinket": {
- "description": "PROBE_desc_concept_Trinket: leaf structure for two-level nesting",
- "properties": {
- "label": {
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "title": "Label",
- "type": "string"
- }
- },
- "required": [
- "label"
- ],
- "title": "input_semantics_probe__Trinket",
- "type": "object"
- }
- },
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "properties": {
- "name": {
- "description": "PROBE_desc_field_gadget_name",
- "title": "Name",
- "type": "string"
- },
- "trinket": {
- "anyOf": [
- {
- "$ref": "#/$defs/input_semantics_probe__Trinket"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two"
- }
- },
- "required": [
- "name"
- ],
- "title": "input_semantics_probe.Gadget",
- "type": "object"
- },
- "minItems": 2,
- "maxItems": 2
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__date_in.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__date_in.json
deleted file mode 100644
index 76cb3d254..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__date_in.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "concept": "native.Date",
- "content": {
- "description": "A calendar date, optionally with a time of day — as precise as its source states.",
- "properties": {
- "date": {
- "description": "The calendar date, in ISO 8601 (e.g. 2026-07-07). Always required.",
- "format": "date",
- "title": "Date",
- "type": "string"
- },
- "time": {
- "anyOf": [
- {
- "format": "time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The time of day, in ISO 8601 (e.g. 15:40:00, or 15:40:00+02:00 with a UTC offset). Include it only when the source states a time — never invent a time. Keep the UTC offset exactly when the source states one.",
- "title": "Time"
- }
- },
- "required": [
- "date"
- ],
- "title": "native.Date",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__document_in.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__document_in.json
deleted file mode 100644
index f89bb3500..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__document_in.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "concept": "native.Document",
- "content": {
- "description": "A document",
- "properties": {
- "url": {
- "description": "The document URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public HTTPS URL of the document",
- "title": "Public Url"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the document",
- "title": "Mime Type"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the document",
- "title": "Filename"
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The title of the document or source",
- "title": "Title"
- },
- "snippet": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "A text snippet or excerpt from the document",
- "title": "Snippet"
- }
- },
- "required": [
- "url"
- ],
- "title": "native.Document",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__html_in.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__html_in.json
deleted file mode 100644
index b040a1986..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__html_in.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "concept": "native.Html",
- "content": {
- "description": "HTML content",
- "properties": {
- "inner_html": {
- "description": "The inner HTML of the content",
- "title": "Inner Html",
- "type": "string"
- },
- "css_class": {
- "description": "The CSS class of the content",
- "title": "Css Class",
- "type": "string"
- }
- },
- "required": [
- "inner_html",
- "css_class"
- ],
- "title": "native.Html",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__image_in.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__image_in.json
deleted file mode 100644
index c9d1be941..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__image_in.json
+++ /dev/null
@@ -1,124 +0,0 @@
-{
- "concept": "native.Image",
- "content": {
- "description": "An image",
- "properties": {
- "url": {
- "description": "The image URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public URL of the image",
- "title": "Public Url"
- },
- "source_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source prompt of the image",
- "title": "Source Prompt"
- },
- "source_negative_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source negative prompt of the image",
- "title": "Source Negative Prompt"
- },
- "caption": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The caption of the image",
- "title": "Caption"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the image",
- "title": "Mime Type"
- },
- "width": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The width of the image, in pixels",
- "title": "Width"
- },
- "height": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The height of the image, in pixels",
- "title": "Height"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the image",
- "title": "Filename"
- }
- },
- "required": [
- "url"
- ],
- "title": "native.Image",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__number_in.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__number_in.json
deleted file mode 100644
index 651d85961..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__number_in.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "concept": "native.Number",
- "content": {
- "description": "A number",
- "properties": {
- "number": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "number"
- }
- ],
- "description": "The number",
- "title": "Number"
- }
- },
- "required": [
- "number"
- ],
- "title": "native.Number",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__page_in.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__page_in.json
deleted file mode 100644
index 0984da36b..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__page_in.json
+++ /dev/null
@@ -1,214 +0,0 @@
-{
- "concept": "native.Page",
- "content": {
- "$defs": {
- "ImageContent": {
- "description": "An image",
- "properties": {
- "url": {
- "description": "The image URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public URL of the image",
- "title": "Public Url"
- },
- "source_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source prompt of the image",
- "title": "Source Prompt"
- },
- "source_negative_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source negative prompt of the image",
- "title": "Source Negative Prompt"
- },
- "caption": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The caption of the image",
- "title": "Caption"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the image",
- "title": "Mime Type"
- },
- "width": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The width of the image, in pixels",
- "title": "Width"
- },
- "height": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The height of the image, in pixels",
- "title": "Height"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the image",
- "title": "Filename"
- }
- },
- "required": [
- "url"
- ],
- "title": "ImageContent",
- "type": "object"
- },
- "TextAndImagesContent": {
- "properties": {
- "text": {
- "anyOf": [
- {
- "$ref": "#/$defs/TextContent"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "A text content"
- },
- "images": {
- "anyOf": [
- {
- "items": {
- "$ref": "#/$defs/ImageContent"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "A list of images that were extracted from the text",
- "title": "Images"
- },
- "raw_html": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The raw HTML of the fetched page, if requested",
- "title": "Raw Html"
- }
- },
- "title": "TextAndImagesContent",
- "type": "object"
- },
- "TextContent": {
- "description": "A text",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "TextContent",
- "type": "object"
- }
- },
- "description": "The content of a page of a document, comprising text and linked images and an optional page view image",
- "properties": {
- "text_and_images": {
- "$ref": "#/$defs/TextAndImagesContent",
- "description": "The text and images content extracted from the page"
- },
- "page_view": {
- "anyOf": [
- {
- "$ref": "#/$defs/ImageContent"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The screenshot of the page"
- }
- },
- "required": [
- "text_and_images"
- ],
- "title": "native.Page",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__text_in.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__text_in.json
deleted file mode 100644
index 7eb5f9166..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__text_in.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "concept": "native.Text",
- "content": {
- "description": "A text",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "native.Text",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__time_in.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__time_in.json
deleted file mode 100644
index 334143014..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__time_in.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "concept": "native.Time",
- "content": {
- "description": "A time of day, optionally with a UTC offset — as precise as its source states.",
- "properties": {
- "time": {
- "description": "The time of day, in ISO 8601 (e.g. 15:40:00, or 15:40:00+02:00 with a UTC offset).",
- "format": "time",
- "title": "Time",
- "type": "string"
- }
- },
- "required": [
- "time"
- ],
- "title": "native.Time",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__yesno_in.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__yesno_in.json
deleted file mode 100644
index afb8faf0f..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_native_inputs__yesno_in.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "concept": "native.YesNo",
- "content": {
- "description": "The answer to a yes/no question",
- "properties": {
- "yes_no": {
- "description": "Whether the answer is yes (true) or no (false).",
- "title": "Yes No",
- "type": "boolean"
- }
- },
- "required": [
- "yes_no"
- ],
- "title": "native.YesNo",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__classbacked.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__classbacked.json
deleted file mode 100644
index f385fa0ba..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__classbacked.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "concept": "input_semantics_probe.ClassBacked",
- "content": {
- "description": "PROBE_desc_concept_ClassBacked: structure declared as an existing class name",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "input_semantics_probe.ClassBacked",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__extra.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__extra.json
deleted file mode 100644
index 9b67e9baf..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__extra.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "concept": "input_semantics_probe.ExtraSpecialEntity",
- "content": {
- "description": "PROBE_desc_concept_ExtraSpecialEntity: second link of the refinement chain",
- "properties": {
- "ident": {
- "description": "PROBE_desc_field_base_ident: inherited field",
- "title": "Ident",
- "type": "string"
- }
- },
- "required": [
- "ident"
- ],
- "title": "input_semantics_probe.ExtraSpecialEntity",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__refdoc.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__refdoc.json
deleted file mode 100644
index 0c23883bc..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__refdoc.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "concept": "input_semantics_probe.RefinedDoc",
- "content": {
- "description": "PROBE_desc_concept_RefinedDoc: refinement of a native concept",
- "properties": {
- "url": {
- "description": "The document URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public HTTPS URL of the document",
- "title": "Public Url"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the document",
- "title": "Mime Type"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the document",
- "title": "Filename"
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The title of the document or source",
- "title": "Title"
- },
- "snippet": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "A text snippet or excerpt from the document",
- "title": "Snippet"
- }
- },
- "required": [
- "url"
- ],
- "title": "input_semantics_probe.RefinedDoc",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__special.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__special.json
deleted file mode 100644
index d2b54ec65..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__special.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "concept": "input_semantics_probe.SpecialEntity",
- "content": {
- "description": "PROBE_desc_concept_SpecialEntity: refines a custom concept",
- "properties": {
- "ident": {
- "description": "PROBE_desc_field_base_ident: inherited field",
- "title": "Ident",
- "type": "string"
- }
- },
- "required": [
- "ident"
- ],
- "title": "input_semantics_probe.SpecialEntity",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__stringnote.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__stringnote.json
deleted file mode 100644
index 181ded651..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_refined__stringnote.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "concept": "input_semantics_probe.StringNote",
- "content": {
- "description": "PROBE_desc_concept_StringNote: a concept declared as a bare string",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "input_semantics_probe.StringNote",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_single__gadget_q.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_single__gadget_q.json
deleted file mode 100644
index a2f93fcf8..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_single__gadget_q.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "concept": "input_semantics_probe.Gadget",
- "content": {
- "$defs": {
- "input_semantics_probe__Trinket": {
- "description": "PROBE_desc_concept_Trinket: leaf structure for two-level nesting",
- "properties": {
- "label": {
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "title": "Label",
- "type": "string"
- }
- },
- "required": [
- "label"
- ],
- "title": "input_semantics_probe__Trinket",
- "type": "object"
- }
- },
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "properties": {
- "name": {
- "description": "PROBE_desc_field_gadget_name",
- "title": "Name",
- "type": "string"
- },
- "trinket": {
- "anyOf": [
- {
- "$ref": "#/$defs/input_semantics_probe__Trinket"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two"
- }
- },
- "required": [
- "name"
- ],
- "title": "input_semantics_probe.Gadget",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_single__note.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_single__note.json
deleted file mode 100644
index 84d21054c..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_single__note.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "concept": "input_semantics_probe.PlainNote",
- "content": {
- "description": "PROBE_desc_concept_PlainNote: description-only concept (basic blueprint)",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "input_semantics_probe.PlainNote",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_single__widget.json b/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_single__widget.json
deleted file mode 100644
index eccb473e3..000000000
--- a/wip/input-semantics/probe/hop4_schema_renders/input_semantics_probe.probe_single__widget.json
+++ /dev/null
@@ -1,507 +0,0 @@
-{
- "concept": "input_semantics_probe.Widget",
- "content": {
- "$defs": {
- "ImageContent": {
- "description": "An image",
- "properties": {
- "url": {
- "description": "The image URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public URL of the image",
- "title": "Public Url"
- },
- "source_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source prompt of the image",
- "title": "Source Prompt"
- },
- "source_negative_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source negative prompt of the image",
- "title": "Source Negative Prompt"
- },
- "caption": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The caption of the image",
- "title": "Caption"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the image",
- "title": "Mime Type"
- },
- "width": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The width of the image, in pixels",
- "title": "Width"
- },
- "height": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The height of the image, in pixels",
- "title": "Height"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the image",
- "title": "Filename"
- }
- },
- "required": [
- "url"
- ],
- "title": "ImageContent",
- "type": "object"
- },
- "input_semantics_probe__Gadget": {
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "properties": {
- "name": {
- "description": "PROBE_desc_field_gadget_name",
- "title": "Name",
- "type": "string"
- },
- "trinket": {
- "anyOf": [
- {
- "$ref": "#/$defs/input_semantics_probe__Trinket"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two"
- }
- },
- "required": [
- "name"
- ],
- "title": "input_semantics_probe__Gadget",
- "type": "object"
- },
- "input_semantics_probe__Trinket": {
- "description": "PROBE_desc_concept_Trinket: leaf structure for two-level nesting",
- "properties": {
- "label": {
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "title": "Label",
- "type": "string"
- }
- },
- "required": [
- "label"
- ],
- "title": "input_semantics_probe__Trinket",
- "type": "object"
- }
- },
- "description": "PROBE_desc_concept_Widget: the full-matrix structure under audit",
- "properties": {
- "shorthand_note": {
- "description": "PROBE_desc_field_shorthand_note: shorthand string field (implies text, required)",
- "title": "Shorthand Note",
- "type": "string"
- },
- "title": {
- "description": "PROBE_desc_field_title: required text",
- "title": "Title",
- "type": "string"
- },
- "subtitle": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_subtitle: optional text (required omitted)",
- "title": "Subtitle"
- },
- "summary": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_summary: optional text (required explicit false)",
- "title": "Summary"
- },
- "motto": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "PROBE_default_motto",
- "description": "PROBE_desc_field_motto: text with default",
- "title": "Motto"
- },
- "count": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": 42,
- "description": "PROBE_desc_field_count: integer with default",
- "title": "Count"
- },
- "enabled": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": true,
- "description": "PROBE_desc_field_enabled: boolean with default",
- "title": "Enabled"
- },
- "price": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "default": 9.99,
- "description": "PROBE_desc_field_price: number with default",
- "title": "Price"
- },
- "released_on": {
- "anyOf": [
- {
- "format": "date",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "2026-01-15",
- "description": "PROBE_desc_field_released_on: date with default",
- "title": "Released On"
- },
- "launched_at": {
- "anyOf": [
- {
- "format": "date-time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "2026-01-15T12:30:00",
- "description": "PROBE_desc_field_launched_at: datetime with default",
- "title": "Launched At"
- },
- "daily_at": {
- "anyOf": [
- {
- "format": "time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "12:30:00",
- "description": "PROBE_desc_field_daily_at: time with default",
- "title": "Daily At"
- },
- "tags": {
- "anyOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": [
- "PROBE_tag_a",
- "PROBE_tag_b"
- ],
- "description": "PROBE_desc_field_tags: list of text with default",
- "title": "Tags"
- },
- "ratings": {
- "anyOf": [
- {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_ratings: list of integer",
- "title": "Ratings"
- },
- "matrix": {
- "anyOf": [
- {
- "items": {
- "items": {},
- "type": "array"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_matrix: nested list with unspecified inner item",
- "title": "Matrix"
- },
- "gadgets": {
- "anyOf": [
- {
- "items": {
- "$ref": "#/$defs/input_semantics_probe__Gadget"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadgets: list of concept",
- "title": "Gadgets"
- },
- "attributes": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_attributes: dict text to text",
- "title": "Attributes"
- },
- "scores": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "number"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": {
- "speed": 5
- },
- "description": "PROBE_desc_field_scores: dict text to number with default",
- "title": "Scores"
- },
- "milestones": {
- "anyOf": [
- {
- "additionalProperties": {
- "format": "date",
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_milestones: dict text to date",
- "title": "Milestones"
- },
- "main_gadget": {
- "$ref": "#/$defs/input_semantics_probe__Gadget",
- "description": "PROBE_desc_field_main_gadget: required concept field"
- },
- "icon": {
- "anyOf": [
- {
- "$ref": "#/$defs/ImageContent"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_icon: native concept field"
- },
- "tone": {
- "anyOf": [
- {
- "enum": [
- "PROBE_choice_formal",
- "PROBE_choice_casual",
- "PROBE_choice_playful"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "PROBE_choice_casual",
- "description": "PROBE_desc_field_tone: choices with default",
- "title": "Tone"
- },
- "only_choice": {
- "anyOf": [
- {
- "const": "PROBE_choice_single",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_only_choice: single-entry choice list",
- "title": "Only Choice"
- },
- "typed_choice": {
- "anyOf": [
- {
- "enum": [
- "PROBE_choice_typed_a",
- "PROBE_choice_typed_b"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_typed_choice: type AND choices together",
- "title": "Typed Choice"
- },
- "constrained_count": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_constrained_count: integer carrying unknown constraint keys",
- "title": "Constrained Count"
- }
- },
- "required": [
- "shorthand_note",
- "title",
- "main_gadget"
- ],
- "title": "input_semantics_probe.Widget",
- "type": "object"
- }
-}
diff --git a/wip/input-semantics/probe/hop5_input_form.json b/wip/input-semantics/probe/hop5_input_form.json
deleted file mode 100644
index 91882163a..000000000
--- a/wip/input-semantics/probe/hop5_input_form.json
+++ /dev/null
@@ -1,1101 +0,0 @@
-{
- "input_semantics_probe.probe_single": {
- "fields": [
- {
- "kind": "object",
- "name": "widget",
- "concept_ref": "input_semantics_probe.Widget",
- "description": "PROBE_desc_concept_Widget: the full-matrix structure under audit",
- "required": true,
- "presence": "plain",
- "gating": true,
- "fields": [
- {
- "kind": "text",
- "name": "shorthand_note",
- "description": "PROBE_desc_field_shorthand_note: shorthand string field (implies text, required)",
- "required": true
- },
- {
- "kind": "text",
- "name": "title",
- "description": "PROBE_desc_field_title: required text",
- "required": true
- },
- {
- "kind": "text",
- "name": "subtitle",
- "description": "PROBE_desc_field_subtitle: optional text (required omitted)",
- "required": false
- },
- {
- "kind": "text",
- "name": "summary",
- "description": "PROBE_desc_field_summary: optional text (required explicit false)",
- "required": false
- },
- {
- "kind": "text",
- "name": "motto",
- "description": "PROBE_desc_field_motto: text with default",
- "required": false,
- "default_value": "PROBE_default_motto"
- },
- {
- "kind": "number",
- "name": "count",
- "description": "PROBE_desc_field_count: integer with default",
- "required": false,
- "default_value": 42,
- "integer": true
- },
- {
- "kind": "boolean",
- "name": "enabled",
- "description": "PROBE_desc_field_enabled: boolean with default",
- "required": false,
- "default_value": true
- },
- {
- "kind": "number",
- "name": "price",
- "description": "PROBE_desc_field_price: number with default",
- "required": false,
- "default_value": 9.99,
- "integer": false
- },
- {
- "kind": "date",
- "name": "released_on",
- "description": "PROBE_desc_field_released_on: date with default",
- "required": false,
- "default_value": "2026-01-15",
- "datetime": false
- },
- {
- "kind": "date",
- "name": "launched_at",
- "description": "PROBE_desc_field_launched_at: datetime with default",
- "required": false,
- "default_value": "2026-01-15T12:30:00",
- "datetime": true
- },
- {
- "kind": "text",
- "name": "daily_at",
- "description": "PROBE_desc_field_daily_at: time with default",
- "required": false,
- "default_value": "12:30:00",
- "format": "time"
- },
- {
- "kind": "list",
- "name": "tags",
- "description": "PROBE_desc_field_tags: list of text with default",
- "required": false,
- "default_value": [
- "PROBE_tag_a",
- "PROBE_tag_b"
- ],
- "item": {
- "kind": "text",
- "name": "tags",
- "required": true
- }
- },
- {
- "kind": "list",
- "name": "ratings",
- "description": "PROBE_desc_field_ratings: list of integer",
- "required": false,
- "item": {
- "kind": "number",
- "name": "ratings",
- "required": true,
- "integer": true
- }
- },
- {
- "kind": "list",
- "name": "matrix",
- "description": "PROBE_desc_field_matrix: nested list with unspecified inner item",
- "required": false,
- "item": {
- "kind": "unknown",
- "name": "matrix",
- "required": true
- }
- },
- {
- "kind": "list",
- "name": "gadgets",
- "concept_ref": "input_semantics_probe.Gadget",
- "description": "PROBE_desc_field_gadgets: list of concept",
- "required": false,
- "item": {
- "kind": "object",
- "name": "gadgets",
- "concept_ref": "input_semantics_probe.Gadget",
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "required": true,
- "fields": [
- {
- "kind": "text",
- "name": "name",
- "description": "PROBE_desc_field_gadget_name",
- "required": true
- },
- {
- "kind": "object",
- "name": "trinket",
- "concept_ref": "input_semantics_probe.Trinket",
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two",
- "required": false,
- "fields": [
- {
- "kind": "text",
- "name": "label",
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "required": true
- }
- ]
- }
- ]
- }
- },
- {
- "kind": "unknown",
- "name": "attributes",
- "description": "PROBE_desc_field_attributes: dict text to text",
- "required": false
- },
- {
- "kind": "unknown",
- "name": "scores",
- "description": "PROBE_desc_field_scores: dict text to number with default",
- "required": false,
- "default_value": {
- "speed": 5
- }
- },
- {
- "kind": "unknown",
- "name": "milestones",
- "description": "PROBE_desc_field_milestones: dict text to date",
- "required": false
- },
- {
- "kind": "object",
- "name": "main_gadget",
- "concept_ref": "input_semantics_probe.Gadget",
- "description": "PROBE_desc_field_main_gadget: required concept field",
- "required": true,
- "fields": [
- {
- "kind": "text",
- "name": "name",
- "description": "PROBE_desc_field_gadget_name",
- "required": true
- },
- {
- "kind": "object",
- "name": "trinket",
- "concept_ref": "input_semantics_probe.Trinket",
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two",
- "required": false,
- "fields": [
- {
- "kind": "text",
- "name": "label",
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "required": true
- }
- ]
- }
- ]
- },
- {
- "kind": "image",
- "name": "icon",
- "concept_ref": "native.Image",
- "description": "PROBE_desc_field_icon: native concept field",
- "required": false
- },
- {
- "kind": "enum",
- "name": "tone",
- "description": "PROBE_desc_field_tone: choices with default",
- "required": false,
- "default_value": "PROBE_choice_casual",
- "choices": [
- "PROBE_choice_formal",
- "PROBE_choice_casual",
- "PROBE_choice_playful"
- ]
- },
- {
- "kind": "enum",
- "name": "only_choice",
- "description": "PROBE_desc_field_only_choice: single-entry choice list",
- "required": false,
- "choices": [
- "PROBE_choice_single"
- ]
- },
- {
- "kind": "enum",
- "name": "typed_choice",
- "description": "PROBE_desc_field_typed_choice: type AND choices together",
- "required": false,
- "choices": [
- "PROBE_choice_typed_a",
- "PROBE_choice_typed_b"
- ]
- },
- {
- "kind": "number",
- "name": "constrained_count",
- "description": "PROBE_desc_field_constrained_count: integer carrying unknown constraint keys",
- "required": false,
- "integer": true
- }
- ]
- },
- {
- "kind": "object",
- "name": "gadget_q",
- "concept_ref": "input_semantics_probe.Gadget",
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "required": true,
- "presence": "plain",
- "gating": true,
- "fields": [
- {
- "kind": "text",
- "name": "name",
- "description": "PROBE_desc_field_gadget_name",
- "required": true
- },
- {
- "kind": "object",
- "name": "trinket",
- "concept_ref": "input_semantics_probe.Trinket",
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two",
- "required": false,
- "fields": [
- {
- "kind": "text",
- "name": "label",
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "required": true
- }
- ]
- }
- ]
- },
- {
- "kind": "prose",
- "name": "note",
- "concept_ref": "input_semantics_probe.PlainNote",
- "refines": [
- "native.Text"
- ],
- "description": "PROBE_desc_concept_PlainNote: description-only concept (basic blueprint)",
- "required": true,
- "presence": "plain",
- "gating": true
- }
- ]
- },
- "input_semantics_probe.probe_native_inputs": {
- "fields": [
- {
- "kind": "prose",
- "name": "text_in",
- "concept_ref": "native.Text",
- "description": "A text",
- "required": true,
- "presence": "plain",
- "gating": true
- },
- {
- "kind": "image",
- "name": "image_in",
- "concept_ref": "native.Image",
- "description": "An image",
- "required": true,
- "presence": "plain",
- "gating": true
- },
- {
- "kind": "document",
- "name": "document_in",
- "concept_ref": "native.Document",
- "description": "A document",
- "required": true,
- "presence": "plain",
- "gating": true
- },
- {
- "kind": "object",
- "name": "page_in",
- "concept_ref": "native.Page",
- "description": "The content of a page of a document, comprising text and linked images and an optional page view image",
- "required": true,
- "presence": "plain",
- "gating": true,
- "fields": [
- {
- "kind": "object",
- "name": "text_and_images",
- "concept_ref": "native.TextAndImages",
- "description": "The text and images content extracted from the page",
- "required": true,
- "fields": [
- {
- "kind": "prose",
- "name": "text",
- "concept_ref": "native.Text",
- "description": "A text content",
- "required": false
- },
- {
- "kind": "list",
- "name": "images",
- "concept_ref": "native.Image",
- "description": "A list of images that were extracted from the text",
- "required": false,
- "item": {
- "kind": "image",
- "name": "images",
- "concept_ref": "native.Image",
- "description": "An image",
- "required": true
- }
- },
- {
- "kind": "text",
- "name": "raw_html",
- "description": "The raw HTML of the fetched page, if requested",
- "required": false
- }
- ]
- },
- {
- "kind": "image",
- "name": "page_view",
- "concept_ref": "native.Image",
- "description": "The screenshot of the page",
- "required": false
- }
- ]
- },
- {
- "kind": "number",
- "name": "number_in",
- "concept_ref": "native.Number",
- "description": "A number",
- "required": true,
- "presence": "plain",
- "gating": true,
- "integer": false
- },
- {
- "kind": "date",
- "name": "date_in",
- "concept_ref": "native.Date",
- "description": "A calendar date, optionally with a time of day — as precise as its source states.",
- "required": true,
- "presence": "plain",
- "gating": true,
- "datetime": false
- },
- {
- "kind": "text",
- "name": "time_in",
- "concept_ref": "native.Time",
- "description": "A time of day, optionally with a UTC offset — as precise as its source states.",
- "required": true,
- "presence": "plain",
- "gating": true,
- "format": "time"
- },
- {
- "kind": "prose",
- "name": "html_in",
- "concept_ref": "native.Html",
- "description": "HTML content",
- "required": true,
- "presence": "plain",
- "gating": true
- },
- {
- "kind": "boolean",
- "name": "yesno_in",
- "concept_ref": "native.YesNo",
- "description": "The answer to a yes/no question",
- "required": true,
- "presence": "plain",
- "gating": true
- }
- ]
- },
- "input_semantics_probe.probe_markers": {
- "fields": [
- {
- "kind": "object",
- "name": "opt",
- "concept_ref": "input_semantics_probe.Widget",
- "description": "PROBE_desc_concept_Widget: the full-matrix structure under audit",
- "required": false,
- "presence": "optional",
- "gating": false,
- "fields": [
- {
- "kind": "text",
- "name": "shorthand_note",
- "description": "PROBE_desc_field_shorthand_note: shorthand string field (implies text, required)",
- "required": true
- },
- {
- "kind": "text",
- "name": "title",
- "description": "PROBE_desc_field_title: required text",
- "required": true
- },
- {
- "kind": "text",
- "name": "subtitle",
- "description": "PROBE_desc_field_subtitle: optional text (required omitted)",
- "required": false
- },
- {
- "kind": "text",
- "name": "summary",
- "description": "PROBE_desc_field_summary: optional text (required explicit false)",
- "required": false
- },
- {
- "kind": "text",
- "name": "motto",
- "description": "PROBE_desc_field_motto: text with default",
- "required": false,
- "default_value": "PROBE_default_motto"
- },
- {
- "kind": "number",
- "name": "count",
- "description": "PROBE_desc_field_count: integer with default",
- "required": false,
- "default_value": 42,
- "integer": true
- },
- {
- "kind": "boolean",
- "name": "enabled",
- "description": "PROBE_desc_field_enabled: boolean with default",
- "required": false,
- "default_value": true
- },
- {
- "kind": "number",
- "name": "price",
- "description": "PROBE_desc_field_price: number with default",
- "required": false,
- "default_value": 9.99,
- "integer": false
- },
- {
- "kind": "date",
- "name": "released_on",
- "description": "PROBE_desc_field_released_on: date with default",
- "required": false,
- "default_value": "2026-01-15",
- "datetime": false
- },
- {
- "kind": "date",
- "name": "launched_at",
- "description": "PROBE_desc_field_launched_at: datetime with default",
- "required": false,
- "default_value": "2026-01-15T12:30:00",
- "datetime": true
- },
- {
- "kind": "text",
- "name": "daily_at",
- "description": "PROBE_desc_field_daily_at: time with default",
- "required": false,
- "default_value": "12:30:00",
- "format": "time"
- },
- {
- "kind": "list",
- "name": "tags",
- "description": "PROBE_desc_field_tags: list of text with default",
- "required": false,
- "default_value": [
- "PROBE_tag_a",
- "PROBE_tag_b"
- ],
- "item": {
- "kind": "text",
- "name": "tags",
- "required": true
- }
- },
- {
- "kind": "list",
- "name": "ratings",
- "description": "PROBE_desc_field_ratings: list of integer",
- "required": false,
- "item": {
- "kind": "number",
- "name": "ratings",
- "required": true,
- "integer": true
- }
- },
- {
- "kind": "list",
- "name": "matrix",
- "description": "PROBE_desc_field_matrix: nested list with unspecified inner item",
- "required": false,
- "item": {
- "kind": "unknown",
- "name": "matrix",
- "required": true
- }
- },
- {
- "kind": "list",
- "name": "gadgets",
- "concept_ref": "input_semantics_probe.Gadget",
- "description": "PROBE_desc_field_gadgets: list of concept",
- "required": false,
- "item": {
- "kind": "object",
- "name": "gadgets",
- "concept_ref": "input_semantics_probe.Gadget",
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "required": true,
- "fields": [
- {
- "kind": "text",
- "name": "name",
- "description": "PROBE_desc_field_gadget_name",
- "required": true
- },
- {
- "kind": "object",
- "name": "trinket",
- "concept_ref": "input_semantics_probe.Trinket",
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two",
- "required": false,
- "fields": [
- {
- "kind": "text",
- "name": "label",
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "required": true
- }
- ]
- }
- ]
- }
- },
- {
- "kind": "unknown",
- "name": "attributes",
- "description": "PROBE_desc_field_attributes: dict text to text",
- "required": false
- },
- {
- "kind": "unknown",
- "name": "scores",
- "description": "PROBE_desc_field_scores: dict text to number with default",
- "required": false,
- "default_value": {
- "speed": 5
- }
- },
- {
- "kind": "unknown",
- "name": "milestones",
- "description": "PROBE_desc_field_milestones: dict text to date",
- "required": false
- },
- {
- "kind": "object",
- "name": "main_gadget",
- "concept_ref": "input_semantics_probe.Gadget",
- "description": "PROBE_desc_field_main_gadget: required concept field",
- "required": true,
- "fields": [
- {
- "kind": "text",
- "name": "name",
- "description": "PROBE_desc_field_gadget_name",
- "required": true
- },
- {
- "kind": "object",
- "name": "trinket",
- "concept_ref": "input_semantics_probe.Trinket",
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two",
- "required": false,
- "fields": [
- {
- "kind": "text",
- "name": "label",
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "required": true
- }
- ]
- }
- ]
- },
- {
- "kind": "image",
- "name": "icon",
- "concept_ref": "native.Image",
- "description": "PROBE_desc_field_icon: native concept field",
- "required": false
- },
- {
- "kind": "enum",
- "name": "tone",
- "description": "PROBE_desc_field_tone: choices with default",
- "required": false,
- "default_value": "PROBE_choice_casual",
- "choices": [
- "PROBE_choice_formal",
- "PROBE_choice_casual",
- "PROBE_choice_playful"
- ]
- },
- {
- "kind": "enum",
- "name": "only_choice",
- "description": "PROBE_desc_field_only_choice: single-entry choice list",
- "required": false,
- "choices": [
- "PROBE_choice_single"
- ]
- },
- {
- "kind": "enum",
- "name": "typed_choice",
- "description": "PROBE_desc_field_typed_choice: type AND choices together",
- "required": false,
- "choices": [
- "PROBE_choice_typed_a",
- "PROBE_choice_typed_b"
- ]
- },
- {
- "kind": "number",
- "name": "constrained_count",
- "description": "PROBE_desc_field_constrained_count: integer carrying unknown constraint keys",
- "required": false,
- "integer": true
- }
- ]
- },
- {
- "kind": "list",
- "name": "many",
- "concept_ref": "input_semantics_probe.Widget",
- "description": "PROBE_desc_concept_Widget: the full-matrix structure under audit",
- "required": true,
- "presence": "plain",
- "gating": false,
- "item": {
- "kind": "object",
- "name": "many",
- "concept_ref": "input_semantics_probe.Widget",
- "description": "PROBE_desc_concept_Widget: the full-matrix structure under audit",
- "required": true,
- "fields": [
- {
- "kind": "text",
- "name": "shorthand_note",
- "description": "PROBE_desc_field_shorthand_note: shorthand string field (implies text, required)",
- "required": true
- },
- {
- "kind": "text",
- "name": "title",
- "description": "PROBE_desc_field_title: required text",
- "required": true
- },
- {
- "kind": "text",
- "name": "subtitle",
- "description": "PROBE_desc_field_subtitle: optional text (required omitted)",
- "required": false
- },
- {
- "kind": "text",
- "name": "summary",
- "description": "PROBE_desc_field_summary: optional text (required explicit false)",
- "required": false
- },
- {
- "kind": "text",
- "name": "motto",
- "description": "PROBE_desc_field_motto: text with default",
- "required": false,
- "default_value": "PROBE_default_motto"
- },
- {
- "kind": "number",
- "name": "count",
- "description": "PROBE_desc_field_count: integer with default",
- "required": false,
- "default_value": 42,
- "integer": true
- },
- {
- "kind": "boolean",
- "name": "enabled",
- "description": "PROBE_desc_field_enabled: boolean with default",
- "required": false,
- "default_value": true
- },
- {
- "kind": "number",
- "name": "price",
- "description": "PROBE_desc_field_price: number with default",
- "required": false,
- "default_value": 9.99,
- "integer": false
- },
- {
- "kind": "date",
- "name": "released_on",
- "description": "PROBE_desc_field_released_on: date with default",
- "required": false,
- "default_value": "2026-01-15",
- "datetime": false
- },
- {
- "kind": "date",
- "name": "launched_at",
- "description": "PROBE_desc_field_launched_at: datetime with default",
- "required": false,
- "default_value": "2026-01-15T12:30:00",
- "datetime": true
- },
- {
- "kind": "text",
- "name": "daily_at",
- "description": "PROBE_desc_field_daily_at: time with default",
- "required": false,
- "default_value": "12:30:00",
- "format": "time"
- },
- {
- "kind": "list",
- "name": "tags",
- "description": "PROBE_desc_field_tags: list of text with default",
- "required": false,
- "default_value": [
- "PROBE_tag_a",
- "PROBE_tag_b"
- ],
- "item": {
- "kind": "text",
- "name": "tags",
- "required": true
- }
- },
- {
- "kind": "list",
- "name": "ratings",
- "description": "PROBE_desc_field_ratings: list of integer",
- "required": false,
- "item": {
- "kind": "number",
- "name": "ratings",
- "required": true,
- "integer": true
- }
- },
- {
- "kind": "list",
- "name": "matrix",
- "description": "PROBE_desc_field_matrix: nested list with unspecified inner item",
- "required": false,
- "item": {
- "kind": "unknown",
- "name": "matrix",
- "required": true
- }
- },
- {
- "kind": "list",
- "name": "gadgets",
- "concept_ref": "input_semantics_probe.Gadget",
- "description": "PROBE_desc_field_gadgets: list of concept",
- "required": false,
- "item": {
- "kind": "object",
- "name": "gadgets",
- "concept_ref": "input_semantics_probe.Gadget",
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "required": true,
- "fields": [
- {
- "kind": "text",
- "name": "name",
- "description": "PROBE_desc_field_gadget_name",
- "required": true
- },
- {
- "kind": "object",
- "name": "trinket",
- "concept_ref": "input_semantics_probe.Trinket",
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two",
- "required": false,
- "fields": [
- {
- "kind": "text",
- "name": "label",
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "required": true
- }
- ]
- }
- ]
- }
- },
- {
- "kind": "unknown",
- "name": "attributes",
- "description": "PROBE_desc_field_attributes: dict text to text",
- "required": false
- },
- {
- "kind": "unknown",
- "name": "scores",
- "description": "PROBE_desc_field_scores: dict text to number with default",
- "required": false,
- "default_value": {
- "speed": 5
- }
- },
- {
- "kind": "unknown",
- "name": "milestones",
- "description": "PROBE_desc_field_milestones: dict text to date",
- "required": false
- },
- {
- "kind": "object",
- "name": "main_gadget",
- "concept_ref": "input_semantics_probe.Gadget",
- "description": "PROBE_desc_field_main_gadget: required concept field",
- "required": true,
- "fields": [
- {
- "kind": "text",
- "name": "name",
- "description": "PROBE_desc_field_gadget_name",
- "required": true
- },
- {
- "kind": "object",
- "name": "trinket",
- "concept_ref": "input_semantics_probe.Trinket",
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two",
- "required": false,
- "fields": [
- {
- "kind": "text",
- "name": "label",
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "required": true
- }
- ]
- }
- ]
- },
- {
- "kind": "image",
- "name": "icon",
- "concept_ref": "native.Image",
- "description": "PROBE_desc_field_icon: native concept field",
- "required": false
- },
- {
- "kind": "enum",
- "name": "tone",
- "description": "PROBE_desc_field_tone: choices with default",
- "required": false,
- "default_value": "PROBE_choice_casual",
- "choices": [
- "PROBE_choice_formal",
- "PROBE_choice_casual",
- "PROBE_choice_playful"
- ]
- },
- {
- "kind": "enum",
- "name": "only_choice",
- "description": "PROBE_desc_field_only_choice: single-entry choice list",
- "required": false,
- "choices": [
- "PROBE_choice_single"
- ]
- },
- {
- "kind": "enum",
- "name": "typed_choice",
- "description": "PROBE_desc_field_typed_choice: type AND choices together",
- "required": false,
- "choices": [
- "PROBE_choice_typed_a",
- "PROBE_choice_typed_b"
- ]
- },
- {
- "kind": "number",
- "name": "constrained_count",
- "description": "PROBE_desc_field_constrained_count: integer carrying unknown constraint keys",
- "required": false,
- "integer": true
- }
- ]
- }
- },
- {
- "kind": "list",
- "name": "two",
- "concept_ref": "input_semantics_probe.Gadget",
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "required": true,
- "presence": "plain",
- "gating": true,
- "item": {
- "kind": "object",
- "name": "two",
- "concept_ref": "input_semantics_probe.Gadget",
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "required": true,
- "fields": [
- {
- "kind": "text",
- "name": "name",
- "description": "PROBE_desc_field_gadget_name",
- "required": true
- },
- {
- "kind": "object",
- "name": "trinket",
- "concept_ref": "input_semantics_probe.Trinket",
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two",
- "required": false,
- "fields": [
- {
- "kind": "text",
- "name": "label",
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "required": true
- }
- ]
- }
- ]
- },
- "item_count": 2
- },
- {
- "kind": "prose",
- "name": "forced",
- "concept_ref": "native.Text",
- "description": "A text",
- "required": true,
- "presence": "force",
- "gating": true
- }
- ]
- },
- "input_semantics_probe.probe_refined": {
- "fields": [
- {
- "kind": "document",
- "name": "refdoc",
- "concept_ref": "input_semantics_probe.RefinedDoc",
- "refines": [
- "native.Document"
- ],
- "description": "PROBE_desc_concept_RefinedDoc: refinement of a native concept",
- "required": true,
- "presence": "plain",
- "gating": true
- },
- {
- "kind": "object",
- "name": "special",
- "concept_ref": "input_semantics_probe.SpecialEntity",
- "refines": [
- "input_semantics_probe.BaseEntity"
- ],
- "description": "PROBE_desc_concept_SpecialEntity: refines a custom concept",
- "required": true,
- "presence": "plain",
- "gating": true,
- "fields": [
- {
- "kind": "text",
- "name": "ident",
- "description": "PROBE_desc_field_base_ident: inherited field",
- "required": true
- }
- ]
- },
- {
- "kind": "object",
- "name": "extra",
- "concept_ref": "input_semantics_probe.ExtraSpecialEntity",
- "refines": [
- "input_semantics_probe.SpecialEntity",
- "input_semantics_probe.BaseEntity"
- ],
- "description": "PROBE_desc_concept_ExtraSpecialEntity: second link of the refinement chain",
- "required": true,
- "presence": "plain",
- "gating": true,
- "fields": [
- {
- "kind": "text",
- "name": "ident",
- "description": "PROBE_desc_field_base_ident: inherited field",
- "required": true
- }
- ]
- },
- {
- "kind": "prose",
- "name": "classbacked",
- "concept_ref": "input_semantics_probe.ClassBacked",
- "description": "PROBE_desc_concept_ClassBacked: structure declared as an existing class name",
- "required": true,
- "presence": "plain",
- "gating": true
- },
- {
- "kind": "prose",
- "name": "stringnote",
- "concept_ref": "input_semantics_probe.StringNote",
- "refines": [
- "native.Text"
- ],
- "description": "PROBE_desc_concept_StringNote: a concept declared as a bare string",
- "required": true,
- "presence": "plain",
- "gating": true
- }
- ]
- }
-}
diff --git a/wip/input-semantics/probe/hop5_pipe_io_contracts.json b/wip/input-semantics/probe/hop5_pipe_io_contracts.json
deleted file mode 100644
index 3543df2ce..000000000
--- a/wip/input-semantics/probe/hop5_pipe_io_contracts.json
+++ /dev/null
@@ -1,2477 +0,0 @@
-{
- "input_semantics_probe.probe_single": {
- "inputs": {
- "widget": {
- "concept_ref": "input_semantics_probe.Widget",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "$defs": {
- "ImageContent": {
- "description": "An image",
- "properties": {
- "url": {
- "description": "The image URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public URL of the image",
- "title": "Public Url"
- },
- "source_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source prompt of the image",
- "title": "Source Prompt"
- },
- "source_negative_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source negative prompt of the image",
- "title": "Source Negative Prompt"
- },
- "caption": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The caption of the image",
- "title": "Caption"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the image",
- "title": "Mime Type"
- },
- "width": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The width of the image, in pixels",
- "title": "Width"
- },
- "height": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The height of the image, in pixels",
- "title": "Height"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the image",
- "title": "Filename"
- }
- },
- "required": [
- "url"
- ],
- "title": "ImageContent",
- "type": "object"
- },
- "input_semantics_probe__Gadget": {
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "properties": {
- "name": {
- "description": "PROBE_desc_field_gadget_name",
- "title": "Name",
- "type": "string"
- },
- "trinket": {
- "anyOf": [
- {
- "$ref": "#/$defs/input_semantics_probe__Trinket"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two"
- }
- },
- "required": [
- "name"
- ],
- "title": "input_semantics_probe__Gadget",
- "type": "object"
- },
- "input_semantics_probe__Trinket": {
- "description": "PROBE_desc_concept_Trinket: leaf structure for two-level nesting",
- "properties": {
- "label": {
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "title": "Label",
- "type": "string"
- }
- },
- "required": [
- "label"
- ],
- "title": "input_semantics_probe__Trinket",
- "type": "object"
- }
- },
- "description": "PROBE_desc_concept_Widget: the full-matrix structure under audit",
- "properties": {
- "shorthand_note": {
- "description": "PROBE_desc_field_shorthand_note: shorthand string field (implies text, required)",
- "title": "Shorthand Note",
- "type": "string"
- },
- "title": {
- "description": "PROBE_desc_field_title: required text",
- "title": "Title",
- "type": "string"
- },
- "subtitle": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_subtitle: optional text (required omitted)",
- "title": "Subtitle"
- },
- "summary": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_summary: optional text (required explicit false)",
- "title": "Summary"
- },
- "motto": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "PROBE_default_motto",
- "description": "PROBE_desc_field_motto: text with default",
- "title": "Motto"
- },
- "count": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": 42,
- "description": "PROBE_desc_field_count: integer with default",
- "title": "Count"
- },
- "enabled": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": true,
- "description": "PROBE_desc_field_enabled: boolean with default",
- "title": "Enabled"
- },
- "price": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "default": 9.99,
- "description": "PROBE_desc_field_price: number with default",
- "title": "Price"
- },
- "released_on": {
- "anyOf": [
- {
- "format": "date",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "2026-01-15",
- "description": "PROBE_desc_field_released_on: date with default",
- "title": "Released On"
- },
- "launched_at": {
- "anyOf": [
- {
- "format": "date-time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "2026-01-15T12:30:00",
- "description": "PROBE_desc_field_launched_at: datetime with default",
- "title": "Launched At"
- },
- "daily_at": {
- "anyOf": [
- {
- "format": "time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "12:30:00",
- "description": "PROBE_desc_field_daily_at: time with default",
- "title": "Daily At"
- },
- "tags": {
- "anyOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": [
- "PROBE_tag_a",
- "PROBE_tag_b"
- ],
- "description": "PROBE_desc_field_tags: list of text with default",
- "title": "Tags"
- },
- "ratings": {
- "anyOf": [
- {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_ratings: list of integer",
- "title": "Ratings"
- },
- "matrix": {
- "anyOf": [
- {
- "items": {
- "items": {},
- "type": "array"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_matrix: nested list with unspecified inner item",
- "title": "Matrix"
- },
- "gadgets": {
- "anyOf": [
- {
- "items": {
- "$ref": "#/$defs/input_semantics_probe__Gadget"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadgets: list of concept",
- "title": "Gadgets"
- },
- "attributes": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_attributes: dict text to text",
- "title": "Attributes"
- },
- "scores": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "number"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": {
- "speed": 5
- },
- "description": "PROBE_desc_field_scores: dict text to number with default",
- "title": "Scores"
- },
- "milestones": {
- "anyOf": [
- {
- "additionalProperties": {
- "format": "date",
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_milestones: dict text to date",
- "title": "Milestones"
- },
- "main_gadget": {
- "$ref": "#/$defs/input_semantics_probe__Gadget",
- "description": "PROBE_desc_field_main_gadget: required concept field"
- },
- "icon": {
- "anyOf": [
- {
- "$ref": "#/$defs/ImageContent"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_icon: native concept field"
- },
- "tone": {
- "anyOf": [
- {
- "enum": [
- "PROBE_choice_formal",
- "PROBE_choice_casual",
- "PROBE_choice_playful"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "PROBE_choice_casual",
- "description": "PROBE_desc_field_tone: choices with default",
- "title": "Tone"
- },
- "only_choice": {
- "anyOf": [
- {
- "const": "PROBE_choice_single",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_only_choice: single-entry choice list",
- "title": "Only Choice"
- },
- "typed_choice": {
- "anyOf": [
- {
- "enum": [
- "PROBE_choice_typed_a",
- "PROBE_choice_typed_b"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_typed_choice: type AND choices together",
- "title": "Typed Choice"
- },
- "constrained_count": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_constrained_count: integer carrying unknown constraint keys",
- "title": "Constrained Count"
- }
- },
- "required": [
- "shorthand_note",
- "title",
- "main_gadget"
- ],
- "title": "input_semantics_probe.Widget",
- "type": "object"
- }
- },
- "gadget_q": {
- "concept_ref": "input_semantics_probe.Gadget",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "$defs": {
- "input_semantics_probe__Trinket": {
- "description": "PROBE_desc_concept_Trinket: leaf structure for two-level nesting",
- "properties": {
- "label": {
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "title": "Label",
- "type": "string"
- }
- },
- "required": [
- "label"
- ],
- "title": "input_semantics_probe__Trinket",
- "type": "object"
- }
- },
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "properties": {
- "name": {
- "description": "PROBE_desc_field_gadget_name",
- "title": "Name",
- "type": "string"
- },
- "trinket": {
- "anyOf": [
- {
- "$ref": "#/$defs/input_semantics_probe__Trinket"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two"
- }
- },
- "required": [
- "name"
- ],
- "title": "input_semantics_probe.Gadget",
- "type": "object"
- }
- },
- "note": {
- "concept_ref": "input_semantics_probe.PlainNote",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "PROBE_desc_concept_PlainNote: description-only concept (basic blueprint)",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "input_semantics_probe.PlainNote",
- "type": "object"
- }
- }
- },
- "output": {
- "concept_ref": "native.Text",
- "multiplicity": "single",
- "item_count": null,
- "optional": false
- }
- },
- "input_semantics_probe.probe_native_inputs": {
- "inputs": {
- "text_in": {
- "concept_ref": "native.Text",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "A text",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "native.Text",
- "type": "object"
- }
- },
- "image_in": {
- "concept_ref": "native.Image",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "An image",
- "properties": {
- "url": {
- "description": "The image URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public URL of the image",
- "title": "Public Url"
- },
- "source_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source prompt of the image",
- "title": "Source Prompt"
- },
- "source_negative_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source negative prompt of the image",
- "title": "Source Negative Prompt"
- },
- "caption": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The caption of the image",
- "title": "Caption"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the image",
- "title": "Mime Type"
- },
- "width": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The width of the image, in pixels",
- "title": "Width"
- },
- "height": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The height of the image, in pixels",
- "title": "Height"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the image",
- "title": "Filename"
- }
- },
- "required": [
- "url"
- ],
- "title": "native.Image",
- "type": "object"
- }
- },
- "document_in": {
- "concept_ref": "native.Document",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "A document",
- "properties": {
- "url": {
- "description": "The document URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public HTTPS URL of the document",
- "title": "Public Url"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the document",
- "title": "Mime Type"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the document",
- "title": "Filename"
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The title of the document or source",
- "title": "Title"
- },
- "snippet": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "A text snippet or excerpt from the document",
- "title": "Snippet"
- }
- },
- "required": [
- "url"
- ],
- "title": "native.Document",
- "type": "object"
- }
- },
- "page_in": {
- "concept_ref": "native.Page",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "$defs": {
- "ImageContent": {
- "description": "An image",
- "properties": {
- "url": {
- "description": "The image URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public URL of the image",
- "title": "Public Url"
- },
- "source_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source prompt of the image",
- "title": "Source Prompt"
- },
- "source_negative_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source negative prompt of the image",
- "title": "Source Negative Prompt"
- },
- "caption": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The caption of the image",
- "title": "Caption"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the image",
- "title": "Mime Type"
- },
- "width": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The width of the image, in pixels",
- "title": "Width"
- },
- "height": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The height of the image, in pixels",
- "title": "Height"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the image",
- "title": "Filename"
- }
- },
- "required": [
- "url"
- ],
- "title": "ImageContent",
- "type": "object"
- },
- "TextAndImagesContent": {
- "properties": {
- "text": {
- "anyOf": [
- {
- "$ref": "#/$defs/TextContent"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "A text content"
- },
- "images": {
- "anyOf": [
- {
- "items": {
- "$ref": "#/$defs/ImageContent"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "A list of images that were extracted from the text",
- "title": "Images"
- },
- "raw_html": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The raw HTML of the fetched page, if requested",
- "title": "Raw Html"
- }
- },
- "title": "TextAndImagesContent",
- "type": "object"
- },
- "TextContent": {
- "description": "A text",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "TextContent",
- "type": "object"
- }
- },
- "description": "The content of a page of a document, comprising text and linked images and an optional page view image",
- "properties": {
- "text_and_images": {
- "$ref": "#/$defs/TextAndImagesContent",
- "description": "The text and images content extracted from the page"
- },
- "page_view": {
- "anyOf": [
- {
- "$ref": "#/$defs/ImageContent"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The screenshot of the page"
- }
- },
- "required": [
- "text_and_images"
- ],
- "title": "native.Page",
- "type": "object"
- }
- },
- "number_in": {
- "concept_ref": "native.Number",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "A number",
- "properties": {
- "number": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "number"
- }
- ],
- "description": "The number",
- "title": "Number"
- }
- },
- "required": [
- "number"
- ],
- "title": "native.Number",
- "type": "object"
- }
- },
- "date_in": {
- "concept_ref": "native.Date",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "A calendar date, optionally with a time of day — as precise as its source states.",
- "properties": {
- "date": {
- "description": "The calendar date, in ISO 8601 (e.g. 2026-07-07). Always required.",
- "format": "date",
- "title": "Date",
- "type": "string"
- },
- "time": {
- "anyOf": [
- {
- "format": "time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The time of day, in ISO 8601 (e.g. 15:40:00, or 15:40:00+02:00 with a UTC offset). Include it only when the source states a time — never invent a time. Keep the UTC offset exactly when the source states one.",
- "title": "Time"
- }
- },
- "required": [
- "date"
- ],
- "title": "native.Date",
- "type": "object"
- }
- },
- "time_in": {
- "concept_ref": "native.Time",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "A time of day, optionally with a UTC offset — as precise as its source states.",
- "properties": {
- "time": {
- "description": "The time of day, in ISO 8601 (e.g. 15:40:00, or 15:40:00+02:00 with a UTC offset).",
- "format": "time",
- "title": "Time",
- "type": "string"
- }
- },
- "required": [
- "time"
- ],
- "title": "native.Time",
- "type": "object"
- }
- },
- "html_in": {
- "concept_ref": "native.Html",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "HTML content",
- "properties": {
- "inner_html": {
- "description": "The inner HTML of the content",
- "title": "Inner Html",
- "type": "string"
- },
- "css_class": {
- "description": "The CSS class of the content",
- "title": "Css Class",
- "type": "string"
- }
- },
- "required": [
- "inner_html",
- "css_class"
- ],
- "title": "native.Html",
- "type": "object"
- }
- },
- "yesno_in": {
- "concept_ref": "native.YesNo",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "The answer to a yes/no question",
- "properties": {
- "yes_no": {
- "description": "Whether the answer is yes (true) or no (false).",
- "title": "Yes No",
- "type": "boolean"
- }
- },
- "required": [
- "yes_no"
- ],
- "title": "native.YesNo",
- "type": "object"
- }
- }
- },
- "output": {
- "concept_ref": "native.Text",
- "multiplicity": "single",
- "item_count": null,
- "optional": false
- }
- },
- "input_semantics_probe.probe_markers": {
- "inputs": {
- "opt": {
- "concept_ref": "input_semantics_probe.Widget",
- "presence": "optional",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "$defs": {
- "ImageContent": {
- "description": "An image",
- "properties": {
- "url": {
- "description": "The image URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public URL of the image",
- "title": "Public Url"
- },
- "source_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source prompt of the image",
- "title": "Source Prompt"
- },
- "source_negative_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source negative prompt of the image",
- "title": "Source Negative Prompt"
- },
- "caption": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The caption of the image",
- "title": "Caption"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the image",
- "title": "Mime Type"
- },
- "width": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The width of the image, in pixels",
- "title": "Width"
- },
- "height": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The height of the image, in pixels",
- "title": "Height"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the image",
- "title": "Filename"
- }
- },
- "required": [
- "url"
- ],
- "title": "ImageContent",
- "type": "object"
- },
- "input_semantics_probe__Gadget": {
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "properties": {
- "name": {
- "description": "PROBE_desc_field_gadget_name",
- "title": "Name",
- "type": "string"
- },
- "trinket": {
- "anyOf": [
- {
- "$ref": "#/$defs/input_semantics_probe__Trinket"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two"
- }
- },
- "required": [
- "name"
- ],
- "title": "input_semantics_probe__Gadget",
- "type": "object"
- },
- "input_semantics_probe__Trinket": {
- "description": "PROBE_desc_concept_Trinket: leaf structure for two-level nesting",
- "properties": {
- "label": {
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "title": "Label",
- "type": "string"
- }
- },
- "required": [
- "label"
- ],
- "title": "input_semantics_probe__Trinket",
- "type": "object"
- }
- },
- "description": "PROBE_desc_concept_Widget: the full-matrix structure under audit",
- "properties": {
- "shorthand_note": {
- "description": "PROBE_desc_field_shorthand_note: shorthand string field (implies text, required)",
- "title": "Shorthand Note",
- "type": "string"
- },
- "title": {
- "description": "PROBE_desc_field_title: required text",
- "title": "Title",
- "type": "string"
- },
- "subtitle": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_subtitle: optional text (required omitted)",
- "title": "Subtitle"
- },
- "summary": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_summary: optional text (required explicit false)",
- "title": "Summary"
- },
- "motto": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "PROBE_default_motto",
- "description": "PROBE_desc_field_motto: text with default",
- "title": "Motto"
- },
- "count": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": 42,
- "description": "PROBE_desc_field_count: integer with default",
- "title": "Count"
- },
- "enabled": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": true,
- "description": "PROBE_desc_field_enabled: boolean with default",
- "title": "Enabled"
- },
- "price": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "default": 9.99,
- "description": "PROBE_desc_field_price: number with default",
- "title": "Price"
- },
- "released_on": {
- "anyOf": [
- {
- "format": "date",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "2026-01-15",
- "description": "PROBE_desc_field_released_on: date with default",
- "title": "Released On"
- },
- "launched_at": {
- "anyOf": [
- {
- "format": "date-time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "2026-01-15T12:30:00",
- "description": "PROBE_desc_field_launched_at: datetime with default",
- "title": "Launched At"
- },
- "daily_at": {
- "anyOf": [
- {
- "format": "time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "12:30:00",
- "description": "PROBE_desc_field_daily_at: time with default",
- "title": "Daily At"
- },
- "tags": {
- "anyOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": [
- "PROBE_tag_a",
- "PROBE_tag_b"
- ],
- "description": "PROBE_desc_field_tags: list of text with default",
- "title": "Tags"
- },
- "ratings": {
- "anyOf": [
- {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_ratings: list of integer",
- "title": "Ratings"
- },
- "matrix": {
- "anyOf": [
- {
- "items": {
- "items": {},
- "type": "array"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_matrix: nested list with unspecified inner item",
- "title": "Matrix"
- },
- "gadgets": {
- "anyOf": [
- {
- "items": {
- "$ref": "#/$defs/input_semantics_probe__Gadget"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadgets: list of concept",
- "title": "Gadgets"
- },
- "attributes": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_attributes: dict text to text",
- "title": "Attributes"
- },
- "scores": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "number"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": {
- "speed": 5
- },
- "description": "PROBE_desc_field_scores: dict text to number with default",
- "title": "Scores"
- },
- "milestones": {
- "anyOf": [
- {
- "additionalProperties": {
- "format": "date",
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_milestones: dict text to date",
- "title": "Milestones"
- },
- "main_gadget": {
- "$ref": "#/$defs/input_semantics_probe__Gadget",
- "description": "PROBE_desc_field_main_gadget: required concept field"
- },
- "icon": {
- "anyOf": [
- {
- "$ref": "#/$defs/ImageContent"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_icon: native concept field"
- },
- "tone": {
- "anyOf": [
- {
- "enum": [
- "PROBE_choice_formal",
- "PROBE_choice_casual",
- "PROBE_choice_playful"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "PROBE_choice_casual",
- "description": "PROBE_desc_field_tone: choices with default",
- "title": "Tone"
- },
- "only_choice": {
- "anyOf": [
- {
- "const": "PROBE_choice_single",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_only_choice: single-entry choice list",
- "title": "Only Choice"
- },
- "typed_choice": {
- "anyOf": [
- {
- "enum": [
- "PROBE_choice_typed_a",
- "PROBE_choice_typed_b"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_typed_choice: type AND choices together",
- "title": "Typed Choice"
- },
- "constrained_count": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_constrained_count: integer carrying unknown constraint keys",
- "title": "Constrained Count"
- }
- },
- "required": [
- "shorthand_note",
- "title",
- "main_gadget"
- ],
- "title": "input_semantics_probe.Widget",
- "type": "object"
- }
- },
- "many": {
- "concept_ref": "input_semantics_probe.Widget",
- "presence": "plain",
- "multiplicity": "variable",
- "item_count": null,
- "json_schema": {
- "type": "array",
- "items": {
- "$defs": {
- "ImageContent": {
- "description": "An image",
- "properties": {
- "url": {
- "description": "The image URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public URL of the image",
- "title": "Public Url"
- },
- "source_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source prompt of the image",
- "title": "Source Prompt"
- },
- "source_negative_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The source negative prompt of the image",
- "title": "Source Negative Prompt"
- },
- "caption": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The caption of the image",
- "title": "Caption"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the image",
- "title": "Mime Type"
- },
- "width": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The width of the image, in pixels",
- "title": "Width"
- },
- "height": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The height of the image, in pixels",
- "title": "Height"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the image",
- "title": "Filename"
- }
- },
- "required": [
- "url"
- ],
- "title": "ImageContent",
- "type": "object"
- },
- "input_semantics_probe__Gadget": {
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "properties": {
- "name": {
- "description": "PROBE_desc_field_gadget_name",
- "title": "Name",
- "type": "string"
- },
- "trinket": {
- "anyOf": [
- {
- "$ref": "#/$defs/input_semantics_probe__Trinket"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two"
- }
- },
- "required": [
- "name"
- ],
- "title": "input_semantics_probe__Gadget",
- "type": "object"
- },
- "input_semantics_probe__Trinket": {
- "description": "PROBE_desc_concept_Trinket: leaf structure for two-level nesting",
- "properties": {
- "label": {
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "title": "Label",
- "type": "string"
- }
- },
- "required": [
- "label"
- ],
- "title": "input_semantics_probe__Trinket",
- "type": "object"
- }
- },
- "description": "PROBE_desc_concept_Widget: the full-matrix structure under audit",
- "properties": {
- "shorthand_note": {
- "description": "PROBE_desc_field_shorthand_note: shorthand string field (implies text, required)",
- "title": "Shorthand Note",
- "type": "string"
- },
- "title": {
- "description": "PROBE_desc_field_title: required text",
- "title": "Title",
- "type": "string"
- },
- "subtitle": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_subtitle: optional text (required omitted)",
- "title": "Subtitle"
- },
- "summary": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_summary: optional text (required explicit false)",
- "title": "Summary"
- },
- "motto": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "PROBE_default_motto",
- "description": "PROBE_desc_field_motto: text with default",
- "title": "Motto"
- },
- "count": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": 42,
- "description": "PROBE_desc_field_count: integer with default",
- "title": "Count"
- },
- "enabled": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "default": true,
- "description": "PROBE_desc_field_enabled: boolean with default",
- "title": "Enabled"
- },
- "price": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "default": 9.99,
- "description": "PROBE_desc_field_price: number with default",
- "title": "Price"
- },
- "released_on": {
- "anyOf": [
- {
- "format": "date",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "2026-01-15",
- "description": "PROBE_desc_field_released_on: date with default",
- "title": "Released On"
- },
- "launched_at": {
- "anyOf": [
- {
- "format": "date-time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "2026-01-15T12:30:00",
- "description": "PROBE_desc_field_launched_at: datetime with default",
- "title": "Launched At"
- },
- "daily_at": {
- "anyOf": [
- {
- "format": "time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "12:30:00",
- "description": "PROBE_desc_field_daily_at: time with default",
- "title": "Daily At"
- },
- "tags": {
- "anyOf": [
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": [
- "PROBE_tag_a",
- "PROBE_tag_b"
- ],
- "description": "PROBE_desc_field_tags: list of text with default",
- "title": "Tags"
- },
- "ratings": {
- "anyOf": [
- {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_ratings: list of integer",
- "title": "Ratings"
- },
- "matrix": {
- "anyOf": [
- {
- "items": {
- "items": {},
- "type": "array"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_matrix: nested list with unspecified inner item",
- "title": "Matrix"
- },
- "gadgets": {
- "anyOf": [
- {
- "items": {
- "$ref": "#/$defs/input_semantics_probe__Gadget"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadgets: list of concept",
- "title": "Gadgets"
- },
- "attributes": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_attributes: dict text to text",
- "title": "Attributes"
- },
- "scores": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "number"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": {
- "speed": 5
- },
- "description": "PROBE_desc_field_scores: dict text to number with default",
- "title": "Scores"
- },
- "milestones": {
- "anyOf": [
- {
- "additionalProperties": {
- "format": "date",
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_milestones: dict text to date",
- "title": "Milestones"
- },
- "main_gadget": {
- "$ref": "#/$defs/input_semantics_probe__Gadget",
- "description": "PROBE_desc_field_main_gadget: required concept field"
- },
- "icon": {
- "anyOf": [
- {
- "$ref": "#/$defs/ImageContent"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_icon: native concept field"
- },
- "tone": {
- "anyOf": [
- {
- "enum": [
- "PROBE_choice_formal",
- "PROBE_choice_casual",
- "PROBE_choice_playful"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "PROBE_choice_casual",
- "description": "PROBE_desc_field_tone: choices with default",
- "title": "Tone"
- },
- "only_choice": {
- "anyOf": [
- {
- "const": "PROBE_choice_single",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_only_choice: single-entry choice list",
- "title": "Only Choice"
- },
- "typed_choice": {
- "anyOf": [
- {
- "enum": [
- "PROBE_choice_typed_a",
- "PROBE_choice_typed_b"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_typed_choice: type AND choices together",
- "title": "Typed Choice"
- },
- "constrained_count": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_constrained_count: integer carrying unknown constraint keys",
- "title": "Constrained Count"
- }
- },
- "required": [
- "shorthand_note",
- "title",
- "main_gadget"
- ],
- "title": "input_semantics_probe.Widget",
- "type": "object"
- }
- }
- },
- "two": {
- "concept_ref": "input_semantics_probe.Gadget",
- "presence": "plain",
- "multiplicity": "fixed",
- "item_count": 2,
- "json_schema": {
- "type": "array",
- "items": {
- "$defs": {
- "input_semantics_probe__Trinket": {
- "description": "PROBE_desc_concept_Trinket: leaf structure for two-level nesting",
- "properties": {
- "label": {
- "description": "PROBE_desc_field_trinket_label: shorthand string field on the nesting leaf",
- "title": "Label",
- "type": "string"
- }
- },
- "required": [
- "label"
- ],
- "title": "input_semantics_probe__Trinket",
- "type": "object"
- }
- },
- "description": "PROBE_desc_concept_Gadget: mid-level structure nested inside Widget",
- "properties": {
- "name": {
- "description": "PROBE_desc_field_gadget_name",
- "title": "Name",
- "type": "string"
- },
- "trinket": {
- "anyOf": [
- {
- "$ref": "#/$defs/input_semantics_probe__Trinket"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "PROBE_desc_field_gadget_trinket: nested concept, level two"
- }
- },
- "required": [
- "name"
- ],
- "title": "input_semantics_probe.Gadget",
- "type": "object"
- },
- "minItems": 2,
- "maxItems": 2
- }
- },
- "forced": {
- "concept_ref": "native.Text",
- "presence": "force",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "A text",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "native.Text",
- "type": "object"
- }
- }
- },
- "output": {
- "concept_ref": "native.Text",
- "multiplicity": "single",
- "item_count": null,
- "optional": false
- }
- },
- "input_semantics_probe.probe_refined": {
- "inputs": {
- "refdoc": {
- "concept_ref": "input_semantics_probe.RefinedDoc",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "PROBE_desc_concept_RefinedDoc: refinement of a native concept",
- "properties": {
- "url": {
- "description": "The document URL: a storage URI, an HTTP(S) URL, or a base64 data URL",
- "title": "Url",
- "type": "string"
- },
- "public_url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The public HTTPS URL of the document",
- "title": "Public Url"
- },
- "mime_type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The MIME type of the document",
- "title": "Mime Type"
- },
- "filename": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The original filename of the document",
- "title": "Filename"
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The title of the document or source",
- "title": "Title"
- },
- "snippet": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "A text snippet or excerpt from the document",
- "title": "Snippet"
- }
- },
- "required": [
- "url"
- ],
- "title": "input_semantics_probe.RefinedDoc",
- "type": "object"
- }
- },
- "special": {
- "concept_ref": "input_semantics_probe.SpecialEntity",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "PROBE_desc_concept_SpecialEntity: refines a custom concept",
- "properties": {
- "ident": {
- "description": "PROBE_desc_field_base_ident: inherited field",
- "title": "Ident",
- "type": "string"
- }
- },
- "required": [
- "ident"
- ],
- "title": "input_semantics_probe.SpecialEntity",
- "type": "object"
- }
- },
- "extra": {
- "concept_ref": "input_semantics_probe.ExtraSpecialEntity",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "PROBE_desc_concept_ExtraSpecialEntity: second link of the refinement chain",
- "properties": {
- "ident": {
- "description": "PROBE_desc_field_base_ident: inherited field",
- "title": "Ident",
- "type": "string"
- }
- },
- "required": [
- "ident"
- ],
- "title": "input_semantics_probe.ExtraSpecialEntity",
- "type": "object"
- }
- },
- "classbacked": {
- "concept_ref": "input_semantics_probe.ClassBacked",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "PROBE_desc_concept_ClassBacked: structure declared as an existing class name",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "input_semantics_probe.ClassBacked",
- "type": "object"
- }
- },
- "stringnote": {
- "concept_ref": "input_semantics_probe.StringNote",
- "presence": "plain",
- "multiplicity": "single",
- "item_count": null,
- "json_schema": {
- "description": "PROBE_desc_concept_StringNote: a concept declared as a bare string",
- "properties": {
- "text": {
- "description": "The text",
- "title": "Text",
- "type": "string"
- }
- },
- "required": [
- "text"
- ],
- "title": "input_semantics_probe.StringNote",
- "type": "object"
- }
- }
- },
- "output": {
- "concept_ref": "native.Text",
- "multiplicity": "single",
- "item_count": null,
- "optional": false
- }
- }
-}
diff --git a/wip/input-semantics/probe/trace_manifest.json b/wip/input-semantics/probe/trace_manifest.json
deleted file mode 100644
index c6fdc664a..000000000
--- a/wip/input-semantics/probe/trace_manifest.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "bundle_paths": [
- "tests/data/input_semantics/probe_bundle.mthds"
- ],
- "hop1_bundle_blueprints": "hop1_bundle_blueprints.json",
- "hop2_generated_sources": {
- "input_semantics_probe.StringNote": "hop2_generated_sources/input_semantics_probe.StringNote.py.txt",
- "input_semantics_probe.Trinket": "hop2_generated_sources/input_semantics_probe.Trinket.py.txt",
- "input_semantics_probe.Gadget": "hop2_generated_sources/input_semantics_probe.Gadget.py.txt",
- "input_semantics_probe.Widget": "hop2_generated_sources/input_semantics_probe.Widget.py.txt",
- "input_semantics_probe.PlainNote": "hop2_generated_sources/input_semantics_probe.PlainNote.py.txt",
- "input_semantics_probe.RefinedDoc": "hop2_generated_sources/input_semantics_probe.RefinedDoc.py.txt",
- "input_semantics_probe.BaseEntity": "hop2_generated_sources/input_semantics_probe.BaseEntity.py.txt",
- "input_semantics_probe.SpecialEntity": "hop2_generated_sources/input_semantics_probe.SpecialEntity.py.txt",
- "input_semantics_probe.ExtraSpecialEntity": "hop2_generated_sources/input_semantics_probe.ExtraSpecialEntity.py.txt",
- "input_semantics_probe.ClassBacked": null
- },
- "hop3_raw_pydantic_schemas": {
- "input_semantics_probe.StringNote": "hop3_raw_pydantic_schemas/input_semantics_probe.StringNote.json",
- "input_semantics_probe.Trinket": "hop3_raw_pydantic_schemas/input_semantics_probe.Trinket.json",
- "input_semantics_probe.Gadget": "hop3_raw_pydantic_schemas/input_semantics_probe.Gadget.json",
- "input_semantics_probe.Widget": "hop3_raw_pydantic_schemas/input_semantics_probe.Widget.json",
- "input_semantics_probe.PlainNote": "hop3_raw_pydantic_schemas/input_semantics_probe.PlainNote.json",
- "input_semantics_probe.RefinedDoc": "hop3_raw_pydantic_schemas/input_semantics_probe.RefinedDoc.json",
- "input_semantics_probe.BaseEntity": "hop3_raw_pydantic_schemas/input_semantics_probe.BaseEntity.json",
- "input_semantics_probe.SpecialEntity": "hop3_raw_pydantic_schemas/input_semantics_probe.SpecialEntity.json",
- "input_semantics_probe.ExtraSpecialEntity": "hop3_raw_pydantic_schemas/input_semantics_probe.ExtraSpecialEntity.json",
- "input_semantics_probe.ClassBacked": "hop3_raw_pydantic_schemas/input_semantics_probe.ClassBacked.json",
- "native.Text": "hop3_raw_pydantic_schemas/native.Text.json",
- "native.Image": "hop3_raw_pydantic_schemas/native.Image.json",
- "native.Document": "hop3_raw_pydantic_schemas/native.Document.json",
- "native.Page": "hop3_raw_pydantic_schemas/native.Page.json",
- "native.Number": "hop3_raw_pydantic_schemas/native.Number.json",
- "native.Date": "hop3_raw_pydantic_schemas/native.Date.json",
- "native.Time": "hop3_raw_pydantic_schemas/native.Time.json",
- "native.Html": "hop3_raw_pydantic_schemas/native.Html.json",
- "native.YesNo": "hop3_raw_pydantic_schemas/native.YesNo.json"
- },
- "hop3_skipped": [],
- "hop4_schema_renders": {
- "input_semantics_probe.probe_single.widget": "hop4_schema_renders/input_semantics_probe.probe_single__widget.json",
- "input_semantics_probe.probe_single.gadget_q": "hop4_schema_renders/input_semantics_probe.probe_single__gadget_q.json",
- "input_semantics_probe.probe_single.note": "hop4_schema_renders/input_semantics_probe.probe_single__note.json",
- "input_semantics_probe.probe_native_inputs.text_in": "hop4_schema_renders/input_semantics_probe.probe_native_inputs__text_in.json",
- "input_semantics_probe.probe_native_inputs.image_in": "hop4_schema_renders/input_semantics_probe.probe_native_inputs__image_in.json",
- "input_semantics_probe.probe_native_inputs.document_in": "hop4_schema_renders/input_semantics_probe.probe_native_inputs__document_in.json",
- "input_semantics_probe.probe_native_inputs.page_in": "hop4_schema_renders/input_semantics_probe.probe_native_inputs__page_in.json",
- "input_semantics_probe.probe_native_inputs.number_in": "hop4_schema_renders/input_semantics_probe.probe_native_inputs__number_in.json",
- "input_semantics_probe.probe_native_inputs.date_in": "hop4_schema_renders/input_semantics_probe.probe_native_inputs__date_in.json",
- "input_semantics_probe.probe_native_inputs.time_in": "hop4_schema_renders/input_semantics_probe.probe_native_inputs__time_in.json",
- "input_semantics_probe.probe_native_inputs.html_in": "hop4_schema_renders/input_semantics_probe.probe_native_inputs__html_in.json",
- "input_semantics_probe.probe_native_inputs.yesno_in": "hop4_schema_renders/input_semantics_probe.probe_native_inputs__yesno_in.json",
- "input_semantics_probe.probe_markers.opt": "hop4_schema_renders/input_semantics_probe.probe_markers__opt.json",
- "input_semantics_probe.probe_markers.many": "hop4_schema_renders/input_semantics_probe.probe_markers__many.json",
- "input_semantics_probe.probe_markers.two": "hop4_schema_renders/input_semantics_probe.probe_markers__two.json",
- "input_semantics_probe.probe_markers.forced": "hop4_schema_renders/input_semantics_probe.probe_markers__forced.json",
- "input_semantics_probe.probe_refined.refdoc": "hop4_schema_renders/input_semantics_probe.probe_refined__refdoc.json",
- "input_semantics_probe.probe_refined.special": "hop4_schema_renders/input_semantics_probe.probe_refined__special.json",
- "input_semantics_probe.probe_refined.extra": "hop4_schema_renders/input_semantics_probe.probe_refined__extra.json",
- "input_semantics_probe.probe_refined.classbacked": "hop4_schema_renders/input_semantics_probe.probe_refined__classbacked.json",
- "input_semantics_probe.probe_refined.stringnote": "hop4_schema_renders/input_semantics_probe.probe_refined__stringnote.json"
- },
- "hop5_pipe_io_contracts": "hop5_pipe_io_contracts.json",
- "hop5_input_form": "hop5_input_form.json",
- "wire_framing": [
- {
- "pipe_ref": "input_semantics_probe.probe_single",
- "input_name": "widget",
- "authored_spec": "Widget",
- "concept_ref": "input_semantics_probe.Widget",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_single",
- "input_name": "gadget_q",
- "authored_spec": "input_semantics_probe.Gadget",
- "concept_ref": "input_semantics_probe.Gadget",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_single",
- "input_name": "note",
- "authored_spec": "PlainNote",
- "concept_ref": "input_semantics_probe.PlainNote",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_native_inputs",
- "input_name": "text_in",
- "authored_spec": "Text",
- "concept_ref": "native.Text",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_native_inputs",
- "input_name": "image_in",
- "authored_spec": "Image",
- "concept_ref": "native.Image",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_native_inputs",
- "input_name": "document_in",
- "authored_spec": "Document",
- "concept_ref": "native.Document",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_native_inputs",
- "input_name": "page_in",
- "authored_spec": "Page",
- "concept_ref": "native.Page",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_native_inputs",
- "input_name": "number_in",
- "authored_spec": "Number",
- "concept_ref": "native.Number",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_native_inputs",
- "input_name": "date_in",
- "authored_spec": "Date",
- "concept_ref": "native.Date",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_native_inputs",
- "input_name": "time_in",
- "authored_spec": "Time",
- "concept_ref": "native.Time",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_native_inputs",
- "input_name": "html_in",
- "authored_spec": "Html",
- "concept_ref": "native.Html",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_native_inputs",
- "input_name": "yesno_in",
- "authored_spec": "YesNo",
- "concept_ref": "native.YesNo",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_markers",
- "input_name": "opt",
- "authored_spec": "Widget?",
- "concept_ref": "input_semantics_probe.Widget",
- "multiplicity": null,
- "presence": "optional",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_markers",
- "input_name": "many",
- "authored_spec": "Widget[]",
- "concept_ref": "input_semantics_probe.Widget",
- "multiplicity": true,
- "presence": "plain",
- "is_multiple": true
- },
- {
- "pipe_ref": "input_semantics_probe.probe_markers",
- "input_name": "two",
- "authored_spec": "Gadget[2]",
- "concept_ref": "input_semantics_probe.Gadget",
- "multiplicity": 2,
- "presence": "plain",
- "is_multiple": true
- },
- {
- "pipe_ref": "input_semantics_probe.probe_markers",
- "input_name": "forced",
- "authored_spec": "Text!",
- "concept_ref": "native.Text",
- "multiplicity": null,
- "presence": "force",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_refined",
- "input_name": "refdoc",
- "authored_spec": "RefinedDoc",
- "concept_ref": "input_semantics_probe.RefinedDoc",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_refined",
- "input_name": "special",
- "authored_spec": "SpecialEntity",
- "concept_ref": "input_semantics_probe.SpecialEntity",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_refined",
- "input_name": "extra",
- "authored_spec": "ExtraSpecialEntity",
- "concept_ref": "input_semantics_probe.ExtraSpecialEntity",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_refined",
- "input_name": "classbacked",
- "authored_spec": "ClassBacked",
- "concept_ref": "input_semantics_probe.ClassBacked",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- },
- {
- "pipe_ref": "input_semantics_probe.probe_refined",
- "input_name": "stringnote",
- "authored_spec": "StringNote",
- "concept_ref": "input_semantics_probe.StringNote",
- "multiplicity": null,
- "presence": "plain",
- "is_multiple": false
- }
- ]
-}
diff --git a/wip/input-semantics/s1-audit-plan-DONE.md b/wip/input-semantics/s1-audit-plan-DONE.md
deleted file mode 100644
index 1e2e80040..000000000
--- a/wip/input-semantics/s1-audit-plan-DONE.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# S1 — The input-semantics audit: plan (✅ done — S1 closed 2026-08-21)
-
-**Status:** ✅ **Done.** Every phase below is complete and both checkpoints were reached; the milestone closed on 2026-08-21 with the deliverable in [`findings.md`](findings.md). This file is kept as the as-built record of how the audit was run — plan written 2026-08-21, companion to [`audit.md`](audit.md) (the brief — read it first; this document schedules the audit, it does not re-argue it). Progress is tracked here with checkboxes. The deliverable is `findings.md`, written beside this file when Phase 4 completes. Per the brief: audit only — no fixes, no descriptor design, no wire changes.
-
-## The method, in one sentence
-
-Author a probe bundle that exercises every construct the language accepts, capture what each hop of the emission chain does to every authored fact, and let the diff — not the code — say what survives to the wire.
-
-## The harness is a keeper, not a scratch script
-
-Decision (Louis, 2026-08-21): the capture harness is built as a durable internal tool, not throwaway scaffolding. It lands as a `pipelex-dev` command (home: `pipelex/cli/dev_cli/commands/`, like `generate-mthds-schema` and friends) — call it `trace-input-semantics`: given a bundle, it dumps one artifact per hop of the chain below into an output directory. The probe bundle rides along as a committed fixture the audit (and any future re-run) points the tool at. Scope discipline: build exactly what this audit needs — per-hop captures for a given bundle — and nothing more generic; if another project needs more, it evolves the tool then. When the audit closes, the tool stays, with a short entry in the repo docs so it is findable. The survival *table* stays audit-side (built from the captures), so the tool stays a tracer, not a report generator.
-
-## The chain under audit
-
-Five hops, end to end in this repo. Every probe capture happens at each hop so a lost fact is localized to exactly one:
-
-1. **Parse:** `.mthds` structure syntax → `ConceptStructureBlueprint` (`pipelex/core/concepts/concept_structure_blueprint.py`; the parser that builds it lives in `pipelex/mthds_parsing/` — exact site pinned in Phase 0).
-2. **Resolve + generate:** blueprint → generated structure class source (`pipelex/core/concepts/resolved_fields.py` → `pipelex/core/concepts/structure_generation/generator.py`, which threads `description` and `default_value` into the emitted `Field(...)` and renders `choices` as a `Literal`).
-3. **Schema:** generated class → `model_json_schema()` via the SCHEMA representation (`pipelex/core/concepts/concept_representation_generator.py`, `ConceptRepresentationFormat.SCHEMA`) — including whatever wrapping or stripping that render path applies after pydantic.
-4. **Contract:** schema → `PipeInputContract { concept_ref, optional, json_schema }` in `build_pipe_io_contracts` (`pipelex/pipeline/pipe_io_contracts.py`) — note the memo key is `(concept_ref, is_multiple())`, so multiplicity changes the rendered schema.
-5. **Wire framing:** what the pipe's `inputs = { … }` declaration itself contributes — concept ref, `?` optional, `[]` multiplicity — and nothing else.
-
-## Facts to verify by measurement, not settle by reading
-
-Candidates gathered from the brief and a first pass over the chain code. Each is a question the survival table must answer; none is a conclusion yet:
-
-- Does a field's `description` survive to the schema property's `description`?
-- Does the *concept's* own description become the schema's top-level `description` (it is emitted as the generated class docstring — does pydantic carry a docstring into the schema, and does the SCHEMA render keep it)?
-- Does `default_value` appear as the schema's `default` — for every type it can be authored on (text, integer, boolean, number, date, datetime, time, list, dict, choice)?
-- Do `date` / `datetime` / `time` fields emit their JSON-Schema `format`?
-- Does `choices` arrive as `enum` — and what does a single-entry choice list become (pydantic renders one-member `Literal` as `const`)?
-- What does a non-`required` field look like on the wire — `anyOf: [X, null]` plus `default: null`? This is the shape behind the app's flatten-then-repair round trip; the audit should state it precisely.
-- What survives of a **concept-typed field** (`type = "concept"`): does the nested structure inline via `$defs`, what are the `$defs` keys, and is the nested concept's *identity* (its concept ref) recoverable from the schema or only its shape?
-- What survives of **`refines`**: does the refinement chain (e.g. a refinement of `native.Document`) leave any trace in the emitted schema beyond inherited fields?
-- What do **native concepts as direct inputs** render as — `Text`, `Image`, `Document`, `PDF`, `Page`, and friends — and is anything in those schemas concept-identifying beyond the top-level `concept_ref`?
-- How does `[]` multiplicity change the emitted `json_schema` (array wrapping? at which hop?), given the memo keys on `is_multiple()`?
-- Do the dict constraints (`key_type` restricted to text, `value_type`) render faithfully (`additionalProperties`)?
-- Does anything in the SCHEMA render path strip or rewrite what pydantic emitted (title, `$defs`, metadata fields)?
-
-## Phase 0 — Rig the audit
-
-- [x] Read the direction doc and the roadmap (`../wip/devx/input-form-projection.md`, `../wip/devx/input-form-roadmap.md`) and the chain files named above.
-- [x] Pin the parse hop: TOML structure syntax lands on `PipelexBundleBlueprint.concept: dict[str, ConceptBlueprint | str]` (`pipelex/mthds_parsing/pipelex_bundle_blueprint.py:100`); a concept's `structure` is `str | dict[str, str | ConceptStructureBlueprint]` (`pipelex/core/concepts/concept_blueprint.py:18`), and the shorthand string field normalizes to a required text field in `normalize_structure_blueprint` (`pipelex/core/concepts/helpers.py:70`). The full per-field ceiling is `ConceptStructureBlueprint`'s field list (`concept_structure_blueprint.py:50-64`); the five declaration shapes are `ConceptDeclarationType` (`concept_factory.py:47-86`). ⚠ `ConceptStructureBlueprint` does NOT forbid extras — unknown keys on a field are silently dropped at parse.
-- [x] Pin the schema hop: `StuffSpec.render_stuff_spec` (`pipelex/core/pipes/stuff_spec/stuff_spec.py:42`) → `Concept.render_concept_representation` → `_render_schema_representation` (`pipelex/core/concepts/concept.py:193-214`): raw `model_json_schema()`, wrapped `{type: array, items: …}` when `is_multiple()`, inside a `{"concept", "content"}` envelope — no other transform, measured byte-identical hop 3 → hop 5.
-- [x] Build the capture harness as the `pipelex-dev trace-input-semantics` command: `pipelex/cli/dev_cli/commands/trace_input_semantics_cmd.py`, registered in `_dev_cli.py`. Dumps hop1 blueprint JSON, hop2 regenerated class sources (as `.py.txt` so captures stay inert to linters), hop3 raw pydantic schemas, hop4 SCHEMA renders per pipe input, hop5 contracts, plus `trace_manifest.json` with per-input wire framing (authored spec string, resolved ref, multiplicity, presence). Tests: `tests/integration/pipelex/cli/test_trace_input_semantics_cmd.py` (per-hop assertions on a small bundle + a run over the committed probe).
-- [x] Probe matrix enumerated from the parsing layer and encoded directly in the probe bundle (see Phase 1).
-
-## Phase 1 — The probe bundle
-
-- [x] Probe bundle authored at `tests/data/input_semantics/probe_bundle.mthds` with `PROBE_` sentinels on every authored fact: all field types, choices (multi/single/typed), defaults on every type that allows one, required both ways and required+default together, shorthand fields, dicts (text/number/date values), lists (scalar/concept/nested), two-level concept nesting, a native concept field, refines of a native and a two-link custom chain, class-backed structure, string/basic concept declarations, and pipes covering `?`, `[]`, `[2]`, `!`, bare vs qualified refs, and native concepts as direct inputs.
-- [x] The bundle validates cleanly (pinned by a test). Rejected constructs live in `tests/data/input_semantics/rejected/*.mthds_invalid` (repo convention for deliberately-invalid fixtures): default on a concept field, non-string choices, per-input-slot description, refines+structure, multiple refines — each refusal verified against the real validator.
-
-## Phase 2 — Measure
-
-- [x] Trace run on the probe bundle; captures under `wip/input-semantics/probe/`. Regenerate with `.venv/bin/pipelex-dev trace-input-semantics tests/data/input_semantics/probe_bundle.mthds -o wip/input-semantics/probe`.
-- [x] Survival table written at [`survival-table.md`](survival-table.md): one row per authored fact, per-hop verdicts, plus the rejected-constructs ceiling evidence and the measurement surprises.
-
-**Checkpoint CP1 — measurements in hand. ✅ Reached 2026-08-21.** The probe bundle, harness, and survival table exist; classification (Phase 3) has not started. Surprises the measurement produced, so the next session classifies without re-running anything:
-
-- **Unknown keys on a structure field are silently dropped at parse** (`ConceptStructureBlueprint` has no `extra="forbid"`): `minimum`/`maximum`/`examples`/`unit` authored fine, validated green, and were absent from the hop-1 blueprint dump. The MTHDS lint hook's generated schema flags some of these, the runtime never does.
-- **`required = true` plus `default_value` drops the required-ness at hop 2**: the generator emits `default=…` instead of `...` (`generator.py:308-311`), so the field leaves pydantic's `required` list.
-- **`[N]` fixed count dies at the render**: `stuff_spec.is_multiple()` collapses multiplicity to a bool before rendering, so `Gadget[2]` emits a plain `array` with no `minItems`/`maxItems`; the contract memo key `(concept_ref, is_multiple())` (`pipe_io_contracts.py:104`) makes the count structurally unreachable there.
-- **`!` force marker dies at the contract**: `optional=presence.is_optional` (`pipe_io_contracts.py:123`) maps force and plain to the same `optional: false`.
-- **Hop 3 → hop 5 is lossless** (measured equality of the widget schema at both hops): every gap is upstream — language, blueprint, or generator — never the render or contract plumbing.
-- **Class-backed concepts (`structure = "ClassName"`) lose their concept description entirely**: the pre-existing class carries no docstring from the concept, so the schema has no top-level `description` (measured on `ClassBacked` → `TextContent`).
-- **The stale check-mthds hook schema false-positives on `structure = "TextContent"`** (known issue — trust `make plxt-lint` / the real validator).
-- Sigil constraint worth knowing when authoring probes: `@var` must sit alone on its own line in prompts; inline use is a validation error (use `$var` inline).
-
-## Phase 3 — Classify and place the wrinkles
-
-- [x] Mark every gap **engine-side** or **language-side** using the brief's test: could a `.mthds` author write it today, in any syntax the parser accepts? Evidence as `path/file.py:line` for every engine-side claim. Result: ten engine-side entries (E1–E10 in `findings.md` §A), each a closable work item.
-- [x] Confirm and complete the language-side ceiling from the Phase 0 parser findings — thirteen entries (`findings.md` §B), including three the brief missed: choice labels, inner types of nested lists, and refine-and-extend (`refines` XOR `structure` means a refinement can never add fields, `concept_blueprint.py:95`).
-- [x] Catalogue the engine-authored descriptions on the native content classes (`findings.md` §D). The known contract-in-disguise was verified read-only in `pipelex-app` — and found *already half-drifted*: the app's matcher checks `"pipelex storage url"` and `"document url"`, but the current `DocumentContent.url` wording ("a storage URI") only matches the second. Two more contract families surfaced: `DocumentContent`'s field *names* (a value-sniff set in the app) and `TextContent`'s `{text}` wrapper shape.
-- [x] Settle the two meaning questions (`findings.md` §C). `default_value` is an execution-level default applied on absence at the one input-ingestion seam (`stuff_content_factory.py:35`) and for LLM structured output; the inputs template deliberately omits defaulted fields; dry-run mocks ignore defaults. `required` (payload-level, travels inside the schema) and `?` (slot-level, travels as the contract flag) never interact; `!` is a use-site assertion flattened into plain at the contract.
-- [x] Fill the downstream column — every one of the direction doc's four workaround families pinned to file:line in `pipelex-app`, plus finds the direction doc missed: `const` (single-entry choices) unhandled anywhere in the app, multiplicity rebuilt from `type: "array"` in three independent places (one documented gating bug), and the pydantic `title` discarded/overwritten because it is the class name.
-
-## Phase 4 — Write the findings and close the milestone
-
-- [x] `findings.md` written beside this file: the two lists with *where authored* / *where lost* / *who guesses today* per entry, one sentence of recommendation each, no design sections.
-- [x] Engine-side list phrased as S2 work items with a ranking section (§E, worked-around gaps first); language-side list written repo-context-free for Track H.
-- [x] Native-description catalogue (§D) and the two meaning answers (§C) placed as their own sections.
-
-**Checkpoint CP2 — milestone gate. ✅ Reached 2026-08-21, S1 closed.**
-
-- [x] Tool kept and documented: `docs/contribute/trace-input-semantics.md` (in both mkdocs navs), a `trace-input-semantics` bullet in the kit agent-rules templates (`commands.md` / `codex_commands.md`, regenerated via `make rules`), and a changelog entry under Unreleased.
-- [x] Plan checkboxes updated; decisions and surprises recorded below.
-- [x] `../wip/devx/input-form-roadmap.md` updated per its checkpoint protocol — S1 marked closed with what D1, S2, H1, and K1/M1 each need from the findings.
-
-**Decisions taken and surprises found in Phases 3–4** (beyond the CP1 list, which still stands):
-
-- **A live authoring-path data-loss bug surfaced during the `default_value` trace** (findings E8): the builder's TOML writer emits the key `default` instead of `default_value` (`pipelex/builder/operations/concept_ops.py:115-116`), and because `ConceptStructureBlueprint` ignores extras, a builder-emitted default validates green and evaporates on re-load. Per the brief, not fixed here — it is on the S2 list, and E7's `extra="forbid"` would have caught it.
-- **The app's description-substring contract has already half-broken in the wild**: the `"pipelex storage url"` branch of `document-url-widget.tsx:130-136` matches nothing against the current `DocumentContent.url` wording — the drift the brief warned about had already happened, silently. `ImageContent.url` matches neither substring, so image inputs never get the RJSF dropzone by that route.
-- **The parse-layer extras asymmetry is the ceiling's enforcement gap**: `ConceptBlueprint` forbids unknown keys, `ConceptStructureBlueprint` silently drops them — so almost the whole language-side ceiling fails silently at the field level. Classified engine-side (E7) because the silence, not the ceiling, is the engine's.
-- **Classification judgment call:** `[]` multiplicity was given an engine-side entry (E9) even though it "survives" as array wrapping, because the contract carries no structured multiplicity field and the app rebuilds it from schema shape in three places — the brief's who-guesses test decided it.
-- **Scope discipline held:** no fixes, no descriptor design; the only repo changes besides `wip/` documents are the tool docs, the kit-template bullets, and the changelog entry required by this gate.
diff --git a/wip/input-semantics/survival-table.md b/wip/input-semantics/survival-table.md
deleted file mode 100644
index 57c3a7ba6..000000000
--- a/wip/input-semantics/survival-table.md
+++ /dev/null
@@ -1,77 +0,0 @@
-# S1 — Survival table: what each authored input fact becomes at each hop
-
-**Status:** measured 2026-08-21 from the probe captures under [`probe/`](probe/) (regenerate with `.venv/bin/pipelex-dev trace-input-semantics tests/data/input_semantics/probe_bundle.mthds -o wip/input-semantics/probe`); **re-measured 2026-08-23 on `feature/Enrich` after the S2 closures** — rows an S2 entry changed carry a "**closed by S2**" note stating the before → after, with the new behavior visible in the regenerated captures. The probe bundle is the committed fixture `tests/data/input_semantics/probe_bundle.mthds`; the deliberately-rejected constructs live in `tests/data/input_semantics/rejected/` (extension `.mthds_invalid`, the repo convention that keeps them out of `plxt lint`). This table is evidence, not classification — Phase 3 marks each loss engine-side or language-side.
-
-## The hops
-
-1. **Parse** — `hop1_bundle_blueprints.json`: TOML → `PipelexBundleBlueprint` (`ConceptBlueprint` / `ConceptStructureBlueprint`).
-2. **Generate** — `hop2_generated_sources/`: blueprint → generated structure-class source (`StructureGenerator`).
-3. **Pydantic** — `hop3_raw_pydantic_schemas/`: generated class → raw `model_json_schema()`.
-4. **Render** — `hop4_schema_renders/`: the SCHEMA render per pipe input (`{"concept", "content"}` envelope; array wrap when multiple). Measured: for a single input, `content` is byte-identical to hop 3 — the render adds the envelope and the array wrap, nothing else.
-5. **Contract** — `hop5_pipe_io_contracts.json`: `PipeInputContract { concept_ref, presence, multiplicity, item_count, json_schema }` where `json_schema` is hop 4's `content` verbatim (S1 measured the pre-reshape `{ concept_ref, optional, json_schema }`; E5/E9 reshaped it).
-
-## Structure-field facts
-
-| Authored fact | Hop 1 parse | Hop 2 generate | Hop 3 pydantic | Hop 4/5 wire | Verdict |
-|---|---|---|---|---|---|
-| Field `description` | survived | survived (`Field(description=…)`) | survived (property `description`) | survived | **survives** |
-| Concept's own `description` | survived | survived (class docstring) | survived (schema top-level `description`) | survived | **survives** (except class-backed concepts, below) |
-| `required = true` | survived | survived (`Field(...)`, no `\| None`) | survived (in `required`, no null arm) | survived | **survives** |
-| `required` omitted / `false` (table form) | survived (`required=False` default) | transformed: `X \| None` + `default=None` | `anyOf: [X, null]` + `default: null`, absent from `required` | survived | **survives, transformed** — this is the shape behind the app's flatten-then-repair round trip |
-| Shorthand string field (`field = "desc"`) | transformed: text + `required=True` | survived | survived | survived | **survives** (shorthand implies required text) |
-| `default_value` (text, integer, boolean, number) | survived | survived (`Field(default=…)`) | survived (`default`) | survived | **survives** |
-| `default_value` (date / datetime / time) | survived (TOML temporal literals parse to real `date`/`datetime`/`time`) | survived (`date.fromisoformat("…")` etc.) | survived (`default` as ISO string) | survived | **survives** |
-| `default_value` (list, dict) | survived | survived | survived | survived | **survives** |
-| `required = true` **and** `default_value` together | **closed by S2 (E3): rejected at hop 1** — the blueprint validator refuses the pair as contradictory, and the generator's silent tiebreak became an explicit invariant | — | — | — | S1 measured: both survived hop 1, then **`required` silently dropped at hop 2**. Now an authoring error; the construct moved to `rejected/required_with_default.mthds_invalid` |
-| `type = "date"` / `"datetime"` / `"time"` format | survived | survived (`date`/`datetime`/`time` annotations) | survived (`format: date` / `date-time` / `time`) | survived | **survives** |
-| `choices` (multi) | survived | transformed: `Literal[…]` | `enum: […]` with `type: string` | survived | **survives** |
-| `choices` single entry | survived | `Literal["x"]` | **`const: "x"`**, not `enum` | survived | **survives, shape shifts** — consumers must read both `enum` and `const` |
-| `type` + `choices` together | both survived on the blueprint | transformed: choices win, `type` ignored (`resolved_fields.py:124`) | as choices | survived | `type` is **redundant/dropped** when choices present |
-| `type = "dict"` with `key_type`/`value_type` | survived | `dict[str, X]` | `additionalProperties: {…value type…}`; `key_type` implicit (JSON keys are strings) | survived | **survives** (value type faithful, incl. `format` on `date` values) |
-| `type = "list"`, `item_type` scalar | survived | `list[X]` | `items: {…}` | survived | **survives** |
-| Nested list (`item_type = "list"`) | survived | `list[list[Any]]` with imprecision marker | `items: {items: {}}` — inner shape empty | survived | inner item type **not expressible** → empty schema |
-| `type = "concept"` field | survived (`concept_ref`) | forward ref to qualified class name | inlined via `$refs` into `$defs` keyed by the **class-name spelling** (`input_semantics_probe__Gadget`) | survived | shape survives; **concept identity (its ref) is not recoverable** — only the mangled class name |
-| List of concepts (`item_concept_ref`) | survived | `list["Domain__Code"]` | `items: {$ref: #/$defs/…}` | survived | same identity loss as above |
-| Native concept field (`concept_ref = "native.Image"`) | survived | import of `ImageContent` | `$defs.ImageContent` | survived | shape survives; identity only as the content-class name |
-| Two-level nesting (Widget → Gadget → Trinket) | survived | forward refs | both levels inlined into `$defs` | survived | **survives** structurally |
-| Unknown keys on a field (`minimum`, `maximum`, `examples`, `unit`) | **closed by S2 (E7): rejected at hop 1, loudly** — `ConceptStructureBlueprint` is `extra="forbid"` | — | — | — | S1 measured: **died at hop 1, silently**. Now a validation error; the construct lives in `rejected/unknown_structure_field_key.mthds_invalid` |
-
-## Concept-declaration facts
-
-| Authored fact | Result on the wire | Verdict |
-|---|---|---|
-| Description-only concept (`PlainNote`), string-shorthand concept (`StringNote`) | generated `TextContent` subclass: schema is `{text: string}` with the concept description as top-level `description` | description **survives**; the implicit text-refinement is visible only as the `text` property |
-| `refines = "native.Document"` (`RefinedDoc`) | schema = `DocumentContent`'s fields, title is the refining class name, concept description on top | **the refinement link itself leaves no trace** in the schema — nothing says "this is a Document" except the inherited field shapes |
-| Custom refinement chain (`BaseEntity` ← `SpecialEntity` ← `ExtraSpecialEntity`) | each link's schema = inherited fields + own description; chain not represented | same: **`refines` dies between hop 2 and hop 3** (only inheritance side-effects survive) |
-| `structure = "TextContent"` (class-backed, `ClassBacked`) | **closed by S2 (E1+E6):** the render injects `title` = the concept ref and `description` = the concept's authored description | S1 measured: raw `TextContent` schema with the class-name title and **no description**. Now the authored facts ride every render (visible on `hop4_schema_renders/input_semantics_probe.probe_refined.classbacked.json`) |
-| Native concepts as direct inputs (`Text`, `Image`, `Document`, `Page`, `Number`, `Date`, `Time`, `Html`, `YesNo`) | **closed by S2 (E1+E6):** top-level `title` is the native concept ref (`native.Text`), `description` is the pinned native blueprint's; the native content classes also gained docstrings, so the instructor-side schema carries them too | S1 measured: class-name title, most natives with **no top-level description**. Nested concept identity (`$defs` keyed by class-name spelling) stays descriptor-only, per the E1 ruling |
-
-## Pipe-input framing facts
-
-| Authored fact | Result on the wire | Verdict |
-|---|---|---|
-| Bare vs qualified concept ref (`Widget` vs `input_semantics_probe.Gadget`) | both resolve to the same qualified `concept_ref` on the contract | **survives, normalized** |
-| `?` optional marker | **reshaped by S2 (E5):** `presence: "optional"` on the contract (the two-valued `optional` flag is gone from inputs); the `json_schema` itself is unchanged | **survives**, now three-valued |
-| `[]` list marker | `json_schema` wrapped as `{type: array, items: <hop-3 schema>}` at the hop-4 render, no bounds; the contract states `multiplicity: "variable"` (E9) and the memo key carries the real multiplicity | **survives** as array wrapping + a stated contract fact |
-| `[N]` fixed count (`Gadget[2]`) | **closed by S2 (E4+E9):** the render emits `minItems: N` / `maxItems: N` on the array wrap, and the contract states `multiplicity: "fixed"` + `item_count: N` (`[1]` stays single) | S1 measured: **count dropped at hop 4** (`is_multiple()` collapse). Now visible on `hop4_schema_renders/input_semantics_probe.probe_markers.two.json` and hop 5's `two` entry |
-| `!` force marker | **closed by S2 (E5):** the contract reports `presence: "force"` — the authored assertion reaches lint and graph surfaces | S1 measured: **force/plain distinction dropped at hop 5**. Output presence stays two-valued (`!` is rejected on outputs) |
-| Per-input-slot description | **cannot be authored** — `inputs` values are ref strings only (`pipe_blueprint.py:186`); the table form is rejected (see `rejected/per_input_description.mthds_invalid`) | language ceiling |
-
-## Constructs the language rejects (ceiling evidence, `rejected/`)
-
-- `default_value` on a `concept`-typed field — refused (`concept_structure_blueprint.py:111`).
-- Non-string `choices` (`[1, 2, 3]`) — refused (`choices: list[str]`, pydantic does not coerce).
-- A per-input description table in `inputs` — refused (`inputs: dict[str, str]`).
-- `refines` together with `structure` — refused (`concept_blueprint.py:95`).
-- Multiple `refines` (`["a", "b"]`) — refused (`refines: str | None`; the TODO at `concept_blueprint.py:19` records the restriction).
-- Unknown keys in a structure-field table — refused since S2 (E7, `extra="forbid"`); see `rejected/unknown_structure_field_key.mthds_invalid`.
-- `required = true` together with `default_value` — refused since S2 (E3); see `rejected/required_with_default.mthds_invalid`.
-
-## Measurement surprises worth carrying into Phase 3
-
-All four fed S2 and the first three are closed there (the fourth was the good news that scoped it):
-
-- **Unknown structure-field keys vanish silently at parse.** ~~`ConceptStructureBlueprint` ignores extras~~ — closed by E7 (`extra="forbid"`).
-- **`required` + `default_value` together: the default wins and the required-ness is dropped** by the generator's parameter ordering — closed by E3 (the pair is rejected at validation; the generator branch is now an explicit invariant).
-- **`is_multiple()` collapses `[N]` to a bare bool** before the render — closed by E4 (real multiplicity threaded through the render and the memo key).
-- **The SCHEMA render is otherwise lossless**: hop 3 → hop 5 is verbatim (measured equality), so every gap is upstream of the render — in the language, the blueprint, or the generator. This is what made S2 an upstream-only worklist.
diff --git a/wip/inputs/README.md b/wip/inputs/README.md
deleted file mode 100644
index 918b66287..000000000
--- a/wip/inputs/README.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# Inputs track — roadmap and reading guide
-
-This folder holds the design and as-built records for the **Smart Inputs** feature and its two prerequisite native-concept tracks (`YesNo`, `Date`). **Start here on a cold session.**
-
-## Current state (2026-07-08)
-
-The whole inputs track is **code-complete** on `feature/Smart-inputs-phase5` (worktree `_smart`), tip `86f358f97`, based on main at v0.38.0 (includes TOML inputs #1022 + Optionals phase 1 #1021). The branch carries all three tracks; the per-phase branches (`feature/Smart-inputs-phase2/3/5`) are checkpoint snapshots.
-
-- **`YesNo` native concept — ✅ DONE.** As-built: `yesno-implementation-plan.md`.
-- **`Date` native concept — ✅ DONE.** PR **#1029** (`feature/native-date`) merged into the track. As-built: `datetime-implementation-plan.md`.
-- **Smart Inputs — signature-driven input shaping — ✅ DONE.** All phases 1–5 landed (design D1–D11). As-built: `smart-inputs-implementation-plan.md` (the archived phased plan + per-checkpoint state + micro-decisions log).
-
-PR **#1028** (`feature/Smart-inputs` → `dev`) is the track PR — retitled to cover YesNo + Date + Smart Inputs. Its head still points at an earlier phase tip; **advance its head to the track tip (all phases) before merging**, or the diff will misrepresent what ships.
-
-## What shipped: Smart Inputs
-
-Caller-provided inputs are now interpreted **top-down against the pipe's declared signature** instead of bottom-up from their shape alone. A bare string becomes the *declared* concept (a `legal.Question`, not a generic `native.Text`); a bare number/boolean/date satisfies a `Number`/`YesNo`/`Date`-refining input; a bare URL/path a declared `Image`/`Document` (relative paths resolved against the inputs-file dir); a plain object validates against a structured concept; a list shapes element-wise into `ListContent[declared]` (auto-wrap single, empty legal, `[N]` count-checked); a declared structured list accepts a `.csv` path by signature. The `{concept, content}` envelope stays as a compat-checked escape hatch. Unknown input names now error (D8, the one narrowing). `build inputs` / `pipelex-agent inputs` default to the **light** template, with `--explicit` for the envelope form (D11).
-
-The mechanism: one shaper (`pipelex/core/memory/input_shaper.py`, `InputShaper`) wired into the single seam `WorkingMemoryFactory.make_from_pipeline_inputs(input_specs=…)` that `prepare_pipe_job` feeds `pipe.inputs` — so all surfaces (validate / real-run / dry-run, CLI / Python API / hosted runner) shape through one place. Full rationale + per-phase history in `smart-inputs-implementation-plan.md`.
-
-## What remains: one release cut, one downstream cross-repo wave
-
-Shared across YesNo + Date + Smart Inputs, done **per-release, not per-feature**:
-
-- **D10 protocol widening** — `mthds/protocol/pipeline_inputs.py` `StuffContentOrData` widens to admit bare scalars / lists-of-dicts / empty lists ("any JSON value | StuffContent forms"), with the interpretation semantics spec'd MTHDS-side. Release-gated (Optionals/TOML-inputs de-gate pattern). Runtime already works; this is type-honesty for typed SDK/API callers.
-- **Downstream mirrors** — `mthds-python` + `mthds-js` `PipelineInputs` types, cross-repo spec-suite rows, JSON-schema copies (`mthds-schema-sync` skill), MTHDS spec native-concept + inputs-format sections.
-- **Authoring-guidance surfaces** — `mthds-plugins` skills (`mthds-inputs`, `mthds-build`), `vscode-pipelex` completion lists, and the `ConceptSpec.refines` native-list hint (derive from `NativeConceptCode` — see `refines-hint-native-list-drift.md`).
-- **Off critical path** — LLM-assisted input adaptation (design §8, opt-in); the shared YesNo/Date scalar-native LLM-output ergonomics.
-
-## Deferred notes — Phase-5 triage outcomes (2026-07-08)
-
-Each deferred note was re-verified against the landed shaper and given an outcome:
-
-- **Resolved by the shaper** — `case1-bare-date-arm-gap.md` (a top-level date-literal array now builds `ListContent[DateContent]` on the signature path; pinned) and `bare-file-path-cli-resolution-gap.md` (Phase-3 D3: bare Image/Document paths resolve against the inputs-file dir).
-- **Partially closed** — `input-shaper-multiplicity-gaps.md`: the finalize review re-found Gap A as a *silent* behavior (an explicit `ListContent` stored into a singular slot), so the **unambiguous half of Gap A is now fixed** (`_shape_explicit` rejects list-into-singular and enforces the `[N]` count on explicit lists for shaped concepts, while preserving `native.Dynamic` bottom-up fallback; pinned by new `test_explicit_forms.py` cases). Gap A's auto-wrap sub-question and the broader Gap B (`DYNAMIC` multiplicity peeling for `Dynamic[]`/`Anything[N]`) stay deferred as the genuine tradeoffs.
-- **Re-deferred, reasoning refreshed** — `scalar-envelope-arm-asymmetry.md` (bare path now builds the refining subclass; only the *envelope* escape hatch keeps the base-`TextContent` asymmetry, and closing it means surgery on a shared bottom-up factory arm for near-zero gain); `loader-vs-factory-date-split-duplication.md` (the shaper did not collapse the CLI-format loader — different layers).
-- **Decided leave-it** — `d4-hint-still-envelope.md` (the D4 error hint keeps rendering the envelope shape; option 1, it is a valid unambiguous fallback and making it light is a layer/cycle refactor unjustified by a fallback string).
-- **Still out of scope (structure-field codegen / URI-tools / release-wave authoring)** — `container-default-temporal-codegen-gap.md`, `structure-field-fidelity-guard.md` (both structure-field codegen, untouched by Smart Inputs), `uri-scheme-classification-stopgap.md` (a `tools/uri` `resolve_uri` refactor; no live bug, tested), `refines-hint-native-list-drift.md` (the release-wave authoring-guidance sweep).
-
-## Open regression — `envelope-chaining-vs-d8.md` (2026-07-14)
-
-Unlike the notes above, this one is **not a tradeoff — it is a live regression that v0.39.0 ships**, found by Codex on the release PR #1048 and knowingly deferred out of the release. D8 makes the agent CLI reject its own `--with-memory` output: the stdin envelope carries every `working_memory.root` entry, so chaining into a downstream pipe that declares only a subset now dies with `UnknownInputNameError`. It worked in v0.38.0 (no name check existed), and the chained `run … --with-memory | run …` pattern is taught in the shipped `mthds-plugins` skills. The note carries the repro, the three fix options (recommended: an ignore-extras policy for envelope-derived inputs only, threaded like `inputs_base_dir`), and the open `--runner api` parity question. **Pick this up first when the inputs track reopens.**
-
-## Documents
-
-**Design (source of truth for decisions):**
-
-- `smart-inputs-design.md` — the approved Smart Inputs design: problem, shape at a glance, decisions D1–D11, non-goals, §9 surfaces checklist.
-- `datetime-design.md` — the approved Date-track design (DT1–DT8).
-
-**Implementation plans / as-built records:**
-
-- `smart-inputs-implementation-plan.md` — the Smart Inputs phased plan + as-built (all phases done): cold-start code map, verified mechanism facts, per-checkpoint state lines, micro-decisions log, and per-phase review rounds.
-- `yesno-implementation-plan.md` — YesNo phased plan + as-built.
-- `datetime-implementation-plan.md` — Date phased plan + as-built, incl. the bot rounds and the gstack `/review` finalize.
-
-**Archived:**
-
-- `yesno-pr-reviewers-guide.md` — the former YesNo PR reading guide. Historical.
-
-**Deferred design notes** (triage outcomes above): `case1-bare-date-arm-gap.md`, `bare-file-path-cli-resolution-gap.md`, `scalar-envelope-arm-asymmetry.md`, `loader-vs-factory-date-split-duplication.md`, `input-shaper-multiplicity-gaps.md`, `d4-hint-still-envelope.md`, `container-default-temporal-codegen-gap.md`, `structure-field-fidelity-guard.md`, `uri-scheme-classification-stopgap.md`, `refines-hint-native-list-drift.md`.
-
-**Open regression** (section above): `envelope-chaining-vs-d8.md` — the one item here that is a bug rather than a tradeoff.
-
-**From other tracks, landing on shaper code:**
-
-- `provider-scoped-class-resolution.md` — from the `refactor/Concept-purity` branch (PR #1072). `ConceptLibrary.get_structure_class` resolves against the async context's registry rather than one the provider carries; a `ConceptLibrary` holds no registry at all. Verified unreachable today (provider-library and registry-library are two reads of one ContextVar), and the obvious fix would break the sites that deliberately depend on the ambient read. Carries the four trip-wires that would make it real.
-
-- `unresolvable-structure-class-escapes-the-validate-sweep.md` — from the `refactor/Concept-purity` branch. `ConceptLibrary.is_compatible` now raises instead of silently answering `False` when a structure class does not resolve; `resolve_input_kind` is one of its unguarded callers. Not reachable today (the concept factory refuses to build such a concept), so no guards were added — but if it ever becomes reachable, the fix belongs at the `bundle_validator` sweep boundary, not scattered across call sites. Also records two Phase-2 outcomes on shaper-adjacent code: the dead `except` arm in `resolve_input_kind` was removed, and `--save-csv` was found to run *after* the run library is torn down (a lifecycle smell the old ambient registry read was hiding).
diff --git a/wip/inputs/bare-file-path-cli-resolution-gap.md b/wip/inputs/bare-file-path-cli-resolution-gap.md
deleted file mode 100644
index b09bfb13b..000000000
--- a/wip/inputs/bare-file-path-cli-resolution-gap.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# RESOLVED (Phase 3): bare Image/Document path strings now resolve against the inputs-file dir
-
-**Status:** **RESOLVED in Smart Inputs Phase 3 (2026-07-07).** The fix landed as the Phase-3 D3 arm — see `TODOS.md` Phase 3 + the "Phase 3" micro-decisions. Surfaced by the PR #1030 bot review, 2026-07-07 ([Codex thread](https://github.com/Pipelex/pipelex/pull/1030#discussion_r3538032585), [cubic thread](https://github.com/Pipelex/pipelex/pull/1030#discussion_r3538053292) — the two unresolved threads on `execution_seams.py`). **Both threads are now answerable + resolvable.**
-
-## How it was fixed (differs from the recommendation below)
-
-The chosen mechanism was **thread `inputs_base_dir` into the shaper**, NOT making the CLI resolver signature-aware (the recommendation in the section below). At implementation the signature-aware-CLI-resolver route proved worse on three counts: it would force pipe/library resolution BEFORE the runner call in `_run_core.py`, duplicate the shaper's concept-nature detection in the CLI, and fail to cover the CSV-relative-path case (splitting resolution across two places). Instead: the human CLI (`_run_core.py`) and agent CLI (`parse_cli_inputs` → `ParsedCliInputs` NamedTuple) capture the inputs file's parent dir and hand it to the runner ctor (`inputs_base_dir`); it threads through `pipeline_run_setup` → `prepare_pipe_job` → `make_from_pipeline_inputs` → `InputShaper.shape`, and the shaper's Image/Document arm (and CSV arm) resolve bare relative local paths against it via `is_relative_local_path` (promoted to `pipelex/tools/uri/uri_resolver.py`). API/SDK/in-process callers pass `inputs_base_dir=None` and keep absolute-url semantics. The bare form and the `{"url": …}` form now land on the same resolved result (pinned by the e2e).
-
-The original deferral rationale and the (rejected) recommendation are kept below for the historical record.
-
----
-
-## What the reviewers flagged (verified — the mechanism is real)
-
-With Phase 2 shaping live, a bare string for a declared `Image`/`Document`-family input is shaped into `ImageContent(url=<raw string>)` / `DocumentContent(url=<raw string>)` (the `InputKind.IMAGE | InputKind.DOCUMENT` arm in `pipelex/core/memory/input_shaper.py` does `{"url": value}` → `_make_content`). But the CLI inputs-file path resolver `resolve_url_in_value` (`pipelex/cli/commands/run/_inputs_path_resolver.py`) rewrites relative local paths **only under dict keys literally named `"url"`**, and it runs on the raw parsed dict *before* the pipe signature exists (`_run_core.py` and the agent CLI's `stdin_resolver.py`, base_dir = inputs file's parent).
-
-Net effect: for an inputs file outside the CWD, `{"contract": "docs/a.pdf"}` for a `Document` input stays unresolved and is later read relative to the process CWD — while the explicit `{"url": "docs/a.pdf"}` form IS resolved against the inputs-file dir. Phase 2 made the two forms diverge.
-
-## Why deferred, not fixed in Phase 2
-
-- **It is a known, scheduled gap, not a regression.** `TODOS.md` names it three times: the cold-start "Path resolution today (D3/D7)" fact, the "D3 path-resolution seam" gap (with the recommended fix), and Phase 3's **first task** ("Settle the D3 path-resolution mechanism"). `smart-inputs-design.md` §D3 defers the same question to implementation time. Phase 3 is the immediate next work on this branch.
-- **No previously-working path regresses.** Explicit `{"url": …}`, absolute paths, and storage URIs all resolve exactly as before. Only the *new* bare-string convenience is half-wired.
-- **The common failure is loud, not silent.** An unresolved relative path raises `FileNotFoundError` at extraction. The "reads the wrong file" case requires a same-named file to also exist under the CWD — a narrow footgun.
-- Building the fix now would pull Phase 3 scope forward and duplicate its tests-first sequencing.
-
-## Interim guard → considered and NOT added
-
-The bots' alternative — gate bare *relative local* paths for Image/Document (typed shaping error pointing at absolute paths or `{"url": …}`) until Phase 3 — was considered and rejected: it is churn Phase 3 immediately rips out, for a low-severity window whose common failure mode is already loud.
-
-## The fix (Phase 3, D3 — already planned)
-
-Make the CLI resolver signature-aware: resolve the pipe first, then pass its `InputStuffSpecs` into `resolve_inputs_paths` so bare relative strings whose declared concept is Image/Document-family get resolved against the inputs-file dir *alongside* `"url"` keys — keeping path resolution a CLI concern (API/SDK callers pass absolute URLs / storage URIs; no base_dir leaks into core). Tests first, per the Phase 3 checklist: the e2e must pin both the bare form and the `{"url": …}` form to the same resolved result, driven through the CLI file-load path (the current smart_inputs e2e passes in-process dicts, which never hit `resolve_inputs_paths`).
-
-When Phase 3 lands, answer + resolve the two open PR #1030 threads.
diff --git a/wip/inputs/case1-bare-date-arm-gap.md b/wip/inputs/case1-bare-date-arm-gap.md
deleted file mode 100644
index d9146733e..000000000
--- a/wip/inputs/case1-bare-date-arm-gap.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# RESOLVED (Smart Inputs): a top-level array of date literals now builds `ListContent[DateContent]`
-
-**Status:** **RESOLVED in Smart Inputs (2026-07-08, Phase-5 triage).** The signature-driven shaper closes the one real gap this note held (a top-level TOML date array). The historical framing is kept below for the record.
-
-## What was flagged (Date-track PR review, 2026-07-07)
-
-`StuffFactory.make_stuff_from_stuff_content_or_data` Case 1 (a value passed directly, not wrapped in a `{concept, content}` envelope) has arms for a bare `StuffContent` (1.3) and for `list[str]` / `list[StuffContent]` (1.2/1.4), but **no arm for a bare `datetime.date`/`datetime.datetime` object, nor for a `list[datetime.date]`**. The Date arm was only added to Case 2 (the envelope). So a bare date object or a date array reaching Case 1 falls through to an "unexpected type" / "Cannot create Stuff from list of ..." error.
-
-## Bare scalar date → still DISMISSED (impossible on any real path)
-
-A bare top-level `datetime.date`/`datetime.datetime` cannot reach Case 1:
-
-- **CLI path:** the inputs-file loader's `_convert_temporal_inputs` (`_inputs_file_loader.py`) converts every **top-level** scalar date/datetime literal into a `DateContent` *before* the value reaches the seam. It therefore arrives as a `StuffContent` and is handled by Case 1.3 — never as a bare date.
-- **API/protocol path:** the `StuffContentOrData` union (in mthds-python, `mthds/protocol/pipeline_inputs.py`) does **not** admit bare `datetime` objects. A well-typed caller cannot pass one.
-
-Adding a bare-scalar-date arm to Case 1 would be a dead branch guarding a scenario no real caller produces. Not added.
-
-## Top-level `list[datetime.date]` → RESOLVED by the shaper
-
-The loader converts only top-level **scalar** temporal literals, so a top-level TOML array of date literals (e.g. `deadlines = [2026-01-01, 2026-02-02]`) is left as a `list[datetime.date]` and reaches the pipeline-inputs seam. With Smart Inputs live, that seam is `InputShaper.shape` (signature-driven), not the bottom-up factory: under a declared Date-refining `[]` input the list flows through `_shape_with_multiplicity` → `_shape_list` → the `InputKind.DATE` arm of `_build_item_content` (which accepts a `datetime.date`/`datetime.datetime` element and builds the declared `DateContent` subclass). The result is a `ListContent[DateContent]` typed with the declared concept — exactly what D2 + the shaper's Date arm promise. No Case-1.4 arm was added to the bottom-up factory; the fix is the top-down layer the note anticipated.
-
-Pinned by `tests/unit/pipelex/core/memory/input_shaper/test_multiplicity.py::TestInputShaperMultiplicity` (the `variable-list-of-date-objects` case).
-
-## Residual (unchanged, out of the shaper's scope)
-
-The *no-signature* bottom-up path (`WorkingMemoryFactory.make_from_pipeline_inputs(..., input_specs=None)` → `StuffFactory` directly) still has no Case-1.4 date arm, so a `list[datetime.date]` reaching the factory without a signature still errors cleanly. That is correct: Smart Inputs shapes only when a signature is present, and the signature is what makes a date array interpretable. The broader protocol widening for sequences of scalars (design D10) rides the release wave regardless.
diff --git a/wip/inputs/container-default-temporal-codegen-gap.md b/wip/inputs/container-default-temporal-codegen-gap.md
deleted file mode 100644
index a4d71e60d..000000000
--- a/wip/inputs/container-default-temporal-codegen-gap.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Deferred: temporal defaults inside a list/dict structure-field default aren't codegen-safe
-
-**Status:** deferred design note — no code change. Surfaced during the Date-track PR #1029 adversarial review, 2026-07-07.
-
-## What the reviewer flagged
-
-DT8 taught `StructureGenerator._format_default_value` to render a **scalar** temporal default as `date.fromisoformat("…")` / `datetime.fromisoformat("…")` — because `repr()` module-qualifies a temporal object (`datetime.date(2026, 7, 7)`), and the generated code imports the *bare* classes (`from datetime import date, datetime`) with `exec_globals` binding `datetime` to the datetime *class*. Under those globals, `datetime.date(2026, 7, 7)` resolves to the `datetime.date` method descriptor and raises `TypeError` at exec.
-
-The scalar fix does not recurse into containers. A `date`/`datetime` object nested inside a **list or dict default** falls through to the `repr()` branch, so the same module-qualified form is emitted and the generated class body raises at exec.
-
-## Reachability — real but narrow
-
-Confirmed reachable through a hand-written `.mthds` concept structure field:
-
-- The core `ConceptStructureBlueprint._validate_default_value_type` LIST arm only checks `isinstance(self.default_value, list)` — it does **not** validate element types. So `{type = "list", item_type = "date", default = [2026-07-07]}` passes blueprint validation. (The spec layer forbids list/dict defaults, but the blueprint layer — the one the generator consumes — does not.)
-- The list default then reaches `_format_default_value([date(2026, 7, 7)])`, which is neither `str` nor a scalar `date`/`datetime`, so it hits `repr(...)` → `"[datetime.date(2026, 7, 7)]"` → cryptic `TypeError` (`descriptor 'date' for 'datetime.datetime' objects doesn't apply to a 'int' object`) at concept-build time, on otherwise-valid MTHDS input.
-
-## Why deferred, not fixed in the Date track
-
-- **Not a regression.** The container `repr()`-qualification bug pre-dates DT8: before DT8, a `type = "date"` scalar *and* a list-of-date default both hit `repr()` and broke. DT8 fixed the scalar case; the container case was already broken and stays broken.
-- **Errors, does not silently corrupt.** It fails loudly at concept build, so no wrong data ships.
-- **The fix is a design choice, not a mechanical patch.** Two reasonable shapes: (a) make `_format_default_value` recurse into list/dict/tuple and emit `fromisoformat(...)` per temporal element; or (b) reject container defaults containing temporal objects at blueprint validation with a clear message (turning the cryptic exec error into a proper `default_value type mismatch`). (b) is smaller and arguably the better guard; (a) is more complete. Deciding belongs with whoever revisits structure-field defaults, not bolted onto the Date track.
-
-## Follow-up to consider
-
-When structure-field default handling is next touched (Smart Inputs, or a dedicated codegen pass), pick (a) or (b) above. If (a), share the temporal-formatting helper the scalar branch already uses. Related notes: `case1-bare-date-arm-gap.md`, `loader-vs-factory-date-split-duplication.md`, `structure-field-fidelity-guard.md`.
-
-No action needed inside the Date track.
diff --git a/wip/inputs/d4-hint-still-envelope.md b/wip/inputs/d4-hint-still-envelope.md
deleted file mode 100644
index 7189aa0f1..000000000
--- a/wip/inputs/d4-hint-still-envelope.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# D4 shaping-error hint still renders the envelope shape (not the light shape)
-
-Status: **deferred tradeoff, surfaced during Smart Inputs Phase 4 (2026-07-07).** Not a bug; a consistency question for Phase 5 triage.
-
-## What
-
-Phase 4 flipped the generated inputs template (`build inputs` / `pipelex-agent inputs`) to the **light** signature-driven shape by default (bare values), with the `{concept, content}` envelope behind `--explicit`.
-
-But the D4 shaping-error hint — the "Expected shape:" line every `InputShapingError` renders via `InputShaper._render_expected_shape` → `stuff_spec.render_stuff_spec(ConceptRepresentationFormat.JSON)` — still emits the **envelope** form. So a caller who provides a bare (light) value that fails to shape sees an *envelope*-shaped hint, while the template they generated was light. Mild inconsistency: "you gave me a bare string but here's a `{concept, content}` object" reads slightly off now that bare is the blessed default.
-
-## Why it wasn't fixed in Phase 4
-
-Making the hint light would mean the **shaper** producing the light form. The light transform lives in `input_renderer` (`pipelex/core/pipes/inputs/`), which imports `InputShaper` (`pipelex/core/memory/`). Having the shaper call back into `input_renderer` to render a light hint would be a layer inversion / import cycle (input_renderer → input_shaper today; the reverse would close the loop). The delighten transform would have to move to a neutral home the shaper can import, or be duplicated — both bigger than the Phase-4 surface warranted, and none of the Phase 1–3 e2e error tests pin the exact hint shape (they assert only `"Expected shape:" in message`), so nothing forces the change.
-
-## Options for Phase 5 triage
-
-1. **Leave it.** The envelope hint is unambiguous and always valid input; arguably it's the *most* explicit thing to show someone who just failed to provide a value. Cheapest.
-2. **Make the hint light.** Move the delighten transform (`_delighten_entry` + `_unwrap_scalar_content`) to a home both `input_shaper` and `input_renderer` import (e.g. alongside `resolve_input_kind`), then have `_render_expected_shape` render the light form. Consistent with the template, but a real refactor + a layer decision.
-3. **Show both.** Hint renders the light form as the primary "provide this" and mentions the envelope escape hatch. More words, most helpful.
-
-Recommendation: **option 1 (leave it) unless a Phase-5 doc pass or user feedback shows the envelope hint actively confuses.** The light template is the teaching surface; the error hint is a fallback and being explicit there is defensible.
-
-## Phase-5 triage (Smart Inputs, 2026-07-08) — DECIDED: leave it (option 1)
-
-Settled on **option 1**. The envelope form the hint shows is always valid input and unambiguous — the most explicit "here is a shape that will work" you can hand someone who just failed to provide a value; it is a fallback surface, not the teaching surface (the light template is). Option 2 (make the hint light) still carries the layer/cycle cost described above — the delighten transform lives in `input_renderer`, which imports `input_shaper`, so having the shaper render a light hint means moving that transform to a shared home or duplicating it, a real refactor unjustified by a fallback string. Nothing in the shipped docs pass leans on the hint being light, and no evidence it confuses. Reopen only if user feedback shows the envelope hint actively misleads now that bare is the blessed default.
diff --git a/wip/inputs/datetime-design.md b/wip/inputs/datetime-design.md
deleted file mode 100644
index ea7fa119b..000000000
--- a/wip/inputs/datetime-design.md
+++ /dev/null
@@ -1,137 +0,0 @@
-# Datetime track — a native `Date` concept: design proposal
-
-Status: **design approved — all decisions DT1–DT8 approved by Louis 2026-07-07**. Companion track to `YesNo` (smart-inputs-design.md §D9), step 2 of the execution order in this folder's `README.md`. Time-boxed and abandonable by design: every decision below is severable, and the whole track can stop at any point without blocking YesNo or Smart Inputs. Implementation plan: `datetime-implementation-plan.md`.
-
-## 1. What this must deliver, and the bar it must clear
-
-Three concrete jobs:
-
-- **Retire the TOML rejection.** Since TOML inputs (#1022), TOML's native date/datetime/time literals are rejected wholesale by `InputsDatetimeNotSupportedError` (`pipelex/cli/commands/run/_inputs_file_loader.py:111`) with "quote it as a string in the meantime". The meantime ends here.
-- **Give the native family a temporal concept.** Dates are arguably the most common typed value on the documents Pipelex methods read — contracts (effective date, termination date), invoices (issue date, due date), tickets (departure), certificates (date of birth). Today authors model them as `Text` or as a `date` structure field; there is no concept-level citizen.
-- **Ready the Smart Inputs matrix row.** The D5 interpretation matrix gains a temporal row when this lands (purely additive).
-
-The bar, per Pipelex's identity: the concept must read like something found *on a document*, not in a type system — non-tech authors write `output = "Date"` the way they'd label a column in a spreadsheet. And it must be LLM-native: an agent reading the concept must know instantly what to write, and a PipeLLM constrained to produce it must never be *forced by the schema* to state more than the source document states.
-
-## 2. The central question: one concept or three?
-
-TOML distinguishes four temporal literals (offset date-time, local date-time, local date, local time); Python/pydantic/JSON-Schema split the family into `date`, `time`, `date-time`. The programming answer is therefore "three concepts". We propose the document answer instead: **one**.
-
-**The document test.** Walk the documents Pipelex is built for. A contract says "Effective Date: March 1, 2026". An invoice says "Due date: 2026-08-06". A plane ticket says "Departure: 7 Jul 2026, 15:40". A meeting invite says "Date & time: July 7 at 3:00 PM CET". In plain speech every one of these is *a date* — sometimes with a time, sometimes without. Nobody reading a ticket says "the departure datetime". A time alone, unmoored from any date ("opening hours: 9:00"), is comparatively rare and is not the same kind of thing — it's a recurring time-of-day, not a point in history.
-
-**The LLM-fidelity test — the decisive argument.** Suppose we shipped separate `Date` and `Datetime` concepts. The author of an extraction pipe must now *predict the precision of documents they haven't seen*. Declare `output = "Datetime"` and the document says "delivery by March 15": constrained generation forces the model to fabricate a time — you get `2026-03-15T00:00:00`, hallucinated precision that propagates downstream looking exactly like real data. Declare `Date` and the document carries a full timestamp: the time is silently discarded. Both failure modes are structural — no prompt engineering fixes a schema that demands more (or less) than the source states. A single concept with an *optional* time component makes both failure modes unrepresentable: the LLM states the date, adds the time only when the source has one, and the output's precision *is* the document's precision.
-
-**Precedents from user-friendly systems** (same lineage as the YesNo naming research): Notion's property is "Date" and optionally includes a time; Google Calendar events have a date and optionally a time (all-day vs timed — same model); Airtable's "Date" field has an "include time" toggle; Access says "Date/Time" as one type. The tools built for non-programmers converged on exactly this shape: one thing called a date, time optional.
-
-**Rejected alternatives:**
-
-- **Three natives (`Date`, `Time`, `Datetime`)** — maximal fidelity to TOML/stdlib, but two of the three earn almost nothing on real documents, the native family is precious real estate (every agent holds the whole list in mind), and the author-must-predict-precision trap remains.
-- **Two natives (`Date` + `Datetime`)** — the conventional programming compromise; still has the fabricated-midnight trap, still forces a choice the author can't reliably make, and "Datetime" is database lingo on a surface that speaks contract-and-invoice.
-- **One native named `Datetime` with required time** — the name fails the plain-language test and the required time fails the fidelity test.
-- **One native, time always optional, named `Date`** — **proposed.**
-
-What we give up: time-of-day alone has no native home (TOML local-time literals stay rejected, with a narrowed message — see DT5). If demand materializes, a `Time` native can be added later without disturbing anything decided here.
-
-## 3. The shape at a glance
-
-```toml
-[concept.DueDate]
-description = "The date payment is due"
-refines = "Date"
-
-[concept.Departure]
-description = "The scheduled departure of the flight"
-refines = "Date"
-
-[pipe.extract_departure]
-type = "PipeLLM"
-description = "Extract the departure from the ticket"
-inputs = { ticket = "Ticket" }
-output = "Departure"
-prompt = """Extract the scheduled departure from this ticket: @ticket"""
-```
-
-The LLM sees a schema with a required `date` and an optional `time`, each field description telling it to state only what the source states. From a ticket it produces `{"date": "2026-07-07", "time": "15:40:00"}`; from "delivery by March 15" it produces `{"date": "2026-03-15", "time": null}` — no fabricated midnight.
-
-On the inputs side, TOML literals just work:
-
-```toml
-# inputs.toml
-hearing_date = 2026-09-01 # a Date — date only
-departure = 2026-07-07T15:40:00+02:00 # a Date — with time and offset, faithfully kept
-```
-
-## 4. Proposed decisions
-
-### DT1 — One native concept, named `Date`
-
-`NativeConceptCode.DATE = "Date"`, concept ref `native.Date`, description: *"A calendar date, optionally with a time of day — as precise as its source states."* One new native, not two or three (§2). The track keeps its colloquial "Datetime" name in the roadmap; the concept an author sees is `Date`.
-
-Breaking consequence (native codes are reserved): a bundle declaring its own `[concept.Date]` becomes an error. Workspace grep across every repo finds no such concept today. Changelog: breaking.
-
-### DT2 — Content shape: `DateContent` with `date` + optional `time`
-
-```python
-class DateContent(StuffContent):
- date: datetime.date
- time: datetime.time | None = None
-```
-
-Follows the `NumberContent.number` field-naming pattern. The UTC offset, when the source states one, rides on the `time` field's `tzinfo` — pydantic parses and serializes `"15:40:00+02:00"` natively. This makes the invalid states unrepresentable by construction: no time without a date, no offset without a time (a calendar date alone has no meaningful offset). Field descriptions on the class carry the anti-fabrication instruction ("include the time only when the source states one — never invent a time"), which flows into `model_json_schema()` and is therefore inherited by every refining concept's LLM generation for free.
-
-Helpers kept minimal for core scope: a `to_datetime()` method for Python consumers that need a `datetime.datetime` (behavior when `time is None` — raise vs midnight-default — settled at implementation-plan time; leaning raise, so nobody gets a silent midnight). No comparison/arithmetic surface (non-goal).
-
-### DT3 — Timezone policy: fidelity, not normalization
-
-The concept stores **what the source states — never more, never less**. Offset present in the source → preserved verbatim; absent → naive time, and nothing downstream invents one. No normalization to UTC at the concept level: converting timezones is a *computation*, i.e. a pipe's job, not a data type's. Offsets only, no named-timezone (IANA) support: names require DST arithmetic and a tz database, and the sources we read (ISO strings, TOML literals) carry offsets, not names. "3 PM Paris time" extracts as a naive 15:00 plus whatever the prompt asks for — resolving it to an offset is an explicit pipe step if a method needs it. The naive-vs-aware question dissolves: both are valid states of the same concept, distinguished by what the document said.
-
-### DT4 — Rendering: ISO 8601, truncated to stated precision
-
-`rendered_plain` / `rendered_markdown` / `rendered_html` render the ISO 8601 form of exactly what is stored: `2026-07-07`, `2026-07-07T15:40:00`, `2026-07-07T15:40:00+02:00`. ISO is locale-free, unambiguous, and the temporal notation LLMs know best — this is what a prompt sees when a `Date` input is inserted via `@var`/`$var`. `rendered_json` mirrors the two-field structure (`{"date": ..., "time": ...}`). `short_desc`: "a date (2026-07-07)" / "a date and time (2026-07-07T15:40:00+02:00)". Structured concepts already render embedded dates as ISO (`html_rendering.py:53`), so this is consistent with existing behavior. Human/locale-friendly formatting ("July 7, 2026") is presentation, deliberately left to Jinja filters or downstream renderers — never the concept's job.
-
-### DT5 — Inputs behavior in core scope (pre-Smart-Inputs)
-
-This track ships before signature-driven shaping, so it extends today's bottom-up rules:
-
-- **TOML date and datetime literals map natively.** `tomllib` yields real `datetime.date` / `datetime.datetime` objects; the loader's rejection walk stops rejecting them. Bottom-up: a bare `datetime.date`/`datetime.datetime` value becomes a `native.Date` stuff (mirror of "bare string becomes `native.Text`") — `StuffFactory` gains the arm, `StuffContentFactory.make_content_from_value` gains the `DateContent` special cases (date object, datetime object, ISO string, `{"date","time"}` dict).
-- **TOML local-time literals stay rejected**, with a narrowed error: a time without a date is not a `Date`. The error class survives with a scoped-down name/message (detail for the plan; message should say "a time of day alone has no date to attach to — include the date or quote the value as a string").
-- **JSON bare strings are NOT sniffed.** A top-level `"2026-07-07"` in `inputs.json` stays `Text` under bottom-up rules — guessing "ISO-looking string means date" is exactly the guessy behavior the Smart Inputs non-goals forbid. JSON callers reach `Date` via the envelope (`{"concept": "Date", "content": "2026-07-07T15:40:00"}`) until Smart Inputs lands, at which point the declared signature does it (DT6).
-- **Python API** accepts `datetime.date` / `datetime.datetime` objects directly, same mapping.
-
-### DT6 — The Smart Inputs matrix row (forward note, lands with that feature)
-
-When signature-driven shaping ships, the D5 matrix gains: *Date-refining concept (⊑ `DateContent`)* ← accepted bare values: ISO 8601 `str` (strict — pydantic parsing, no loose formats, no "March 7"), `datetime.date` / `datetime.datetime` objects (TOML/Python), `{"date": ..., "time": ...}` dict. Explicitly rejected: `int`/`float` (no epoch-seconds interpretation — pydantic's lenient number-to-datetime coercion must be disabled, the temporal cousin of the bool-is-not-int guard in D9). ISO-string acceptance here is not cross-type parsing in the forbidden sense: JSON has no temporal type, the string is the only possible carrier, and the declared signature is what disambiguates — the same logic that lets D3 read bare strings as URLs for file concepts.
-
-### DT7 — LLM output: rides the object path day one; ergonomics deferred with YesNo's
-
-`PipeLLM` with a non-Text output already ships the content class's `model_json_schema()` to the LLM (`assignment_models.py:95`), so `output = "Date"` works from day one: the model sees `{date: string/format=date, time: string/format=time | null}` plus the DT2 field descriptions. No special generation path in core scope. Whether scalar-wrapper natives deserve a leaner generation form (the cousin-of-maybe-wrapper question) is already parked as the YesNo LLM-output-ergonomics follow-up — `Date` joins that same follow-up rather than opening its own. Note: `Date` has an easier ride than `YesNo` here, because its object form is genuinely two fields, not a wrapped scalar.
-
-### DT8 — Fix the `date` structure-field misnomer (severable adjacent cleanup)
-
-Discovered while grounding this design: the structure-field type `date` (`ConceptStructureBlueprintFieldType.DATE`) maps to Python `datetime.datetime` (`structure_generation/generator.py:375`), whose JSON schema is `format: date-time`. So **every cookbook extraction with a `type = "date"` field (invoice dates, DPE dates) already forces the LLM to fabricate a time of day today** — the field-level version of the exact hallucination this design eliminates at concept level. Proposed fix, aligned with the no-backward-compat principle: field type `date` maps to `datetime.date` (what the name says), and a new field type `datetime` maps to `datetime.datetime` for the rare field that genuinely wants a timestamp. Touches the generator's two mapping sites, the blueprint default-value validator (`concept_structure_blueprint.py:180` currently checks `isinstance(..., datetime)`), the line-64 TODO, schema regen, and docs (`inline-structures.md`). Breaking for any method that relied on `date` fields carrying time — workspace usages all name calendar dates and would *improve*. Severable: ships as its own commit in the same wave, and dropping it doesn't dent DT1–DT7. An alternative field-level design — making `date` fields carry the DT2 composite — is rejected: structure fields are plain machine types by design; a field wanting document-fidelity semantics can be `type = "concept", concept_ref = "Date"`.
-
-## 5. Non-goals
-
-- **No `Time` native.** Time-of-day alone (opening hours) has no native home; degrade to Text or a structure field. Add later if real demand appears.
-- **No partial dates.** "March 2026", "Q3" are not representable — the precision floor is a full calendar date. Anything fuzzier is `Text` or a domain-structured concept (the EDTF rabbit hole stays closed).
-- **No durations or relative dates.** "Net 30 days", "next Tuesday" are different concepts (a future `Duration` native is imaginable; not now).
-- **No named timezones, no DST math, no normalization** (DT3).
-- **No locale rendering** (DT4) and **no comparison/arithmetic surface** on the concept.
-
-## 6. Core-scope surfaces checklist (for the implementation plan)
-
-- `pipelex/core/concepts/native/concept_native.py` — `DATE = "Date"` + arms in the four exhaustive matches (`structure_class`, `is_composite`, `is_text_concept`, `is_dynamic_concept`).
-- New `pipelex/core/stuffs/date_content.py` — `DateContent` per DT2/DT4.
-- `pipelex/core/registry_models.py` — register `DateContent` in `CoreRegistryModels.STUFF`.
-- `pipelex/core/concepts/concept_factory.py` — `case NativeConceptCode.DATE:` arm with the DT1 description.
-- `pipelex/core/stuffs/stuff_factory.py` + `stuff_content_factory.py` — bottom-up arms per DT5.
-- `pipelex/cli/commands/run/_inputs_file_loader.py` + `run/exceptions.py` — narrow the rejection to time-only per DT5; update both catch sites' expectations; regen error pages (`make gep`).
-- Dry-run mock filling — verify the mock path in `working_memory_factory.py` can synthesize a `Date` (likely free via the registry; confirm at plan time).
-- DT8 (severable): `concept_structure_blueprint.py`, `structure_generation/generator.py`, docs.
-- Schema regen (`pipelex-dev generate-mthds-schema`) — note the native ref itself doesn't change the schema shape; DT8 does (field-type enum).
-- Docs: `docs/building-methods/concepts/native-concepts.md` table entry; inputs docs mention of TOML literals; `inline-structures.md` if DT8 ships.
-- Tests: content-class unit tests (render matrix, offset round-trip), inputs-loader tests replacing the four-flavor rejection parametrization (date ✓, local datetime ✓, offset datetime ✓, local time ✗ narrowed), e2e `.mthds` with TOML date inputs, LLM-output smoke via existing structured-gen harness.
-- Downstream wave (per-release, shared with YesNo/Smart Inputs): MTHDS spec native table (`mthds/docs/language/concepts.md`, `spec/mthds-format.md`), schema sync, mthds-python/mthds-js mirrors, the cross-repo spec suite, skills, editor tooling completion lists.
-
-## 7. Abandonability check
-
-The README's standby clause holds. DT1–DT4 are one enum value, one small class, one factory arm — the irreducible core. DT5 is the payoff (retires the shipped error) but degrades gracefully if dropped (the error simply keeps telling users to quote strings). DT6 belongs to Smart Inputs anyway. DT7 costs nothing. DT8 is explicitly severable. If the composite-content semantics (optional time, offset-on-time) turn out to fight the machinery anywhere — mock filling, kajson round-trips, schema emission — the track stops, nothing else on the train is blocked, and this document records where it stopped and why.
diff --git a/wip/inputs/datetime-implementation-plan.md b/wip/inputs/datetime-implementation-plan.md
deleted file mode 100644
index 196c1167e..000000000
--- a/wip/inputs/datetime-implementation-plan.md
+++ /dev/null
@@ -1,154 +0,0 @@
-# Datetime track — the native `Date` concept (as-built)
-
-Status: **COMPLETE 2026-07-07.** All phases shipped, gates green. Design: `datetime-design.md` (approved, DT1–DT8). Based on main at v0.38.0. Track order (`README.md`): YesNo → **Datetime (this doc)** → Smart Inputs, one release wave. This doc is now the as-built record and the PR reviewer's guide; the phase-by-phase log and checkpoint states below capture exactly what landed and why.
-
-## ⏩ Session handoff — resume here (cold start)
-
-**Where the code lives.** The Date work is its own branch `feature/native-date` (NOT `feature/Smart-inputs`), tip **`c32c7595d`**. It is stacked: `feature/native-date` = the YesNo tip (`772c628c6`, = `origin/feature/Smart-inputs`) + the 6 Date phase commits (`0b6d201bb` → `2d7b3d503`) + the plan-doc rewrite (`dd3db9026`) + two bot-review fix commits (`978698b5c`, `c32c7595d`). Local `feature/Smart-inputs` was reset back to `origin` so it carries only YesNo. Everything is pushed.
-
-**The PR.** **#1029** "Add native Date concept", base **`feature/Smart-inputs`** (so the diff is Date-only), head `feature/native-date`. It is **stacked on the still-open YesNo PR #1028** (base `dev`, head `feature/Smart-inputs`, still OPEN). ➜ **When #1028 merges to `dev`, retarget #1029 to `dev`** (GitHub usually auto-retargets on base-branch merge; verify).
-
-**What's done.** All 5 phases + DT8 (checkpoints 1–4 below). Two bot-review rounds fully arbitrated and **all threads resolved (0 open)**:
-
-- Round 1 (on `978698b5c`): fixed two real DT8-adjacent generator bugs (`build inputs` emitted an unparseable `"date_date"` placeholder for a Date input; temporal `default_value` rendered as module-qualified `datetime.datetime(...)` → `AttributeError` at eval) + three tightenings; dismissed the impossible bare-scalar Case-1 claim (no dead branch), deferred the real list-array gap to `case1-bare-date-arm-gap.md`.
-- Round 2 (on `c32c7595d`): three test-oracle tightenings + one doc sigil fix (`@ticket` → `$ticket`, which the sigil validator rejects inline when the id is a declared input).
-
-**CI.** Green on `978698b5c` across py3.11–3.14 tests + typechecks + both bot *checks* (Greptile pass, cubic pass). `c32c7595d` (test-only + one doc line) pushed after; **re-verify its CI went green** on resume.
-
-**What remains (the goal loop's tail).** The finalize gstack `/review` **has now been run** (2026-07-07, Opus 4.8, testing + maintainability + adversarial-red-team fan-out with pointer-only context). It found one real defect the PR introduced and applied it plus low-risk polish; see the "gstack /review finalize round" subsection below. Only thing genuinely left: **retarget #1029 → `dev` once YesNo #1028 merges** (GitHub usually auto-retargets on base merge; verify). The optional bot re-trigger on the later commits was skipped as low-value (round-2/3 changes are test + doc + comment only; bots were already happy on `978698b5c`).
-
-**Constraints (kept for any future sub-agent):** clean solid software, no over-engineering, don't guard impossible scenarios; on any doubt, defer as a new `.md` under `wip/inputs/`. For `/code-review` fan-outs specifically: pointer-only context (a commit SHA / diff / working-tree files), never the plan or rationale.
-
-**Deferred notes (open):** `wip/inputs/case1-bare-date-arm-gap.md`, `scalar-envelope-arm-asymmetry.md`, `loader-vs-factory-date-split-duplication.md`, `container-default-temporal-codegen-gap.md`, `structure-field-fidelity-guard.md`; shared YesNo/Date LLM-output ergonomics; the release-wave cross-repo sweep (see the bottom section).
-
-## As-built summary — for PR reviewers
-
-**What shipped:** one new native concept `Date` — *"A calendar date, optionally with a time of day — as precise as its source states."* Content class `DateContent(date: datetime.date, time: datetime.time | None)`: a required calendar date plus an *optional* time (its UTC offset kept verbatim on the `time`'s tzinfo). The whole point is document-fidelity: an LLM producing a `Date` states the time only when the source does — no fabricated midnights — and the output's precision *is* the document's. See `datetime-design.md` §2 for the one-vs-three-concepts rationale.
-
-**Where to look, by concern (all one commit per phase):**
-
-- **Concept core** (`0b6d201bb`): `pipelex/core/stuffs/date_content.py` (the class + a `field_validator` that closes pydantic's lax temporal coercions — see the guard note below), `NativeConceptCode.DATE` wired into the four exhaustive enum matches + factory + registry, Number/YesNo-style accessors (`Stuff.is_date`/`as_date`, `WorkingMemory`/`PipeOutput.main_stuff_as_date`), a `datetime.time` arm in `html_rendering.py`. Tests pin the render matrix, the kajson + transport-hydration round-trips (offset preserved — the distributed-decode safety net), and `refines = "Date"`.
-- **Inputs** (`3ca1068f9`): the inputs-file loader converts a **top-level** TOML date/datetime literal to a `DateContent` (it then rides the existing case-1.3 seam as a bare content instance — no mthds-python protocol change); a bare *time-of-day* anywhere is rejected (`InputsTimeOnlyNotSupportedError`, renamed from the wholesale `InputsDatetimeNotSupportedError`); nested date/datetime are left for the factory/pydantic. `StuffContentFactory` / `StuffFactory` gain Date arms (envelope + bare object + strict-ISO string, parsed **date-first** so a date-only string never fabricates a time). `DateContent.rendered_pretty` is overridden (the base crashed on real date objects). e2e bundle under `tests/e2e/pipelex/pipes/date/`.
-- **LLM output** (`b735ebce8`): a test pins that `output = "Date"` takes the object path with `DateContent`'s schema (both field descriptions) — no new generation machinery (DT7 defers ergonomics to the shared YesNo/Date follow-up).
-- **DT8 — the severable field-type fix** (`6dd17e452`): structure-field `type = "date"` used to generate `datetime.datetime` (forcing a fabricated time on every extracted date); now `date` → `datetime.date` and a new `type = "datetime"` → `datetime.datetime`. Mirrored across the blueprint layer (`concept_structure_blueprint.py`, `generator.py`) **and** the spec/authoring layer (`concept_spec.py`); default-value validation splits (a `date` field rejects a datetime default). Docs + breaking changelog entry.
-- **Docs/wrap** (`2d7b3d503`): `native-concepts.md`, `provide-inputs.md`, CHANGELOG, bookkeeping.
-
-**The one guard worth understanding** (`date_content.py` `_reject_lax_temporal`): pydantic's lax mode would silently corrupt data against the concept's own fidelity contract — a bare `int`/`float` or an **all-digit string** read as epoch seconds, and a `datetime` on the `date` field silently truncated (dropping its time + offset). The validator rejects all three (raising `ValueError` so pydantic wraps it into a `ValidationError` the input path catches). The factory's ISO parser rejects all-digit strings too, for consistency.
-
-**Deferred (nothing lost):** `wip/inputs/scalar-envelope-arm-asymmetry.md` and `wip/inputs/loader-vs-factory-date-split-duplication.md` (design tradeoffs to resolve when Smart Inputs unifies the input paths); the shared YesNo/Date LLM-output-ergonomics follow-up; and the per-release cross-repo sweep (schema copies, MTHDS spec tables, mthds-python/mthds-js mirrors, the cross-repo spec suite, skills, cookbook `type = "date"` regen). See "Deferred to the release-wave sweep" at the bottom.
-
-How the log below reads: each phase is checked off, and each CHECKPOINT's "state" line records what landed, the commit, decisions taken, and anything that fought back.
-
-## 0. Cold-start context — read this first
-
-**What ships:** one new native concept `Date` — "A calendar date, optionally with a time of day — as precise as its source states." Content = required `datetime.date` + optional `datetime.time` (UTC offset rides on the time's `tzinfo`). Rationale, rejected alternatives (one-vs-three), timezone policy, rendering, and non-goals are all in `datetime-design.md` — do not relitigate them here.
-
-**Key mechanism facts** (verified 2026-07-07, line numbers approximate):
-
-- **Adding a native concept** = enum value in `NativeConceptCode` (`pipelex/core/concepts/native/concept_native.py:20`) + arms in its exhaustive matches (`structure_class`, `is_composite`, `is_text_concept`, `is_dynamic_concept`) + a `case` in `ConceptFactory.make_native_concept` (`pipelex/core/concepts/concept_factory.py:98`) + content-class registration in `CoreRegistryModels.STUFF` (`pipelex/core/registry_models.py:92`). The library auto-loads natives from the enum (`concept_library.py:63`); reference validation and class-name lookups iterate the enum, so they pick the new value up automatically. Exhaustive `match/case` style means pyright walks you to every remaining site — no `case _` anywhere.
-- **The content-class precedent** is `NumberContent` (`pipelex/core/stuffs/number_content.py`): one file per class in `pipelex/core/stuffs/`, overriding `short_desc`, `rendered_plain`, `rendered_html`, `rendered_markdown`, `rendered_json`. `structure_class_name` is auto-derived as `f"{enum_value}Content"` → the class MUST be named `DateContent`.
-- **Bottom-up input dispatch** lives in `StuffFactory.make_stuff_from_stuff_content_or_data` (`pipelex/core/stuffs/stuff_factory.py:229`). Case 1.3 (bare `StuffContent` instance) infers the concept generically from the class name (`DateContent` → `native.Date`) — **works with zero code change** once the enum value exists. Case 2 (envelope): 2.1 str-content currently *requires* Text-compatibility (`stuff_factory.py:470`) — must learn the Date-compatible arm; content being a bare `datetime.date`/`datetime.datetime` object (TOML envelope) has no arm today and lands in the fallthrough.
-- **`StuffContentFactory.make_content_from_value`** (`pipelex/core/stuffs/stuff_content_factory.py:12`) is where value→content conversion happens (special case: str + `TextContent`). Signature is typed `value: dict[str, Any] | str` — widens for temporal values.
-- **Cross-repo gotcha:** `StuffContentOrData` / `PipelineInputs` live in the **mthds-python** package (`mthds/protocol/pipeline_inputs.py`, a pinned dependency — NOT in this repo). The union admits `str | Sequence[str] | StuffContentAbstract | Sequence[StuffContentAbstract] | dict[str, Any]` — bare `datetime` objects are NOT admitted. **Core-scope answer: don't touch the protocol.** The CLI loader converts TOML temporal literals into `DateContent` instances (admitted via case 1.3) before they hit the seam; datetime objects *nested inside* envelope/structured dicts pass fine (`dict[str, Any]`). Protocol widening to bare scalars rides Smart Inputs D10 with the rest of the downstream wave.
-- **The error being retired:** `InputsDatetimeNotSupportedError` (`pipelex/cli/commands/run/exceptions.py:7`), raised by the recursive walk `_assert_no_datetime_values` (`pipelex/cli/commands/run/_inputs_file_loader.py:111`), caught at `_run_core.py:180` and `agent_cli/commands/run/stdin_resolver.py:200`. Tests: `tests/unit/pipelex/cli/commands/run/test_inputs_file_loader.py:99` (parametrized over the TOML temporal literal flavors) and `tests/unit/pipelex/cli/test_stdin_resolver.py:345`.
-- **Already free, verify only:** LLM structured output ships `model_json_schema()` of the content class (`pipe_llm.py:249` dispatch, object path via `assignment_models.py:95`) — `output = "Date"` works day one, and DT2's field descriptions carry the anti-fabrication instruction into the schema. Dry-run mocks use polyfactory (`WorkingMemoryFactory.make_mock_content`, `working_memory_factory.py:174`), which synthesizes `date`/`time` natively. JSON cleaning already ISO-serializes all temporal types (`tools/misc/json_utils.py:58`). Structured-content HTML rendering ISO-renders `datetime`/`date` (`core/stuffs/html_rendering.py:53`) — check whether a `datetime.time` arm is missing.
-- **Internal JSON serialization (kajson) — verified equipped, must be round-trip-tested.** Two different "JSON"s coexist and must not be confused. (a) The *inputs file* surface (`inputs.json`) is plain stdlib JSON — no kajson, no class metadata; bare ISO strings stay Text there until Smart Inputs (DT5's no-sniffing rule stands). (b) The *internal wire* is kajson (`../kajson` repo): `kajson/kajson.py` registers stock encoder/decoder pairs for the whole temporal family — `datetime.date`, `datetime.datetime`, `datetime.time`, fixed-offset `datetime.timezone`, `ZoneInfo`, `timedelta` — with offset-hardened wire handling for exactly DT2's subtle case (a bare `time` carrying a fixed-offset tzinfo; kajson's own comments note a ZoneInfo on a bare time destroys the offset, reinforcing DT3's offsets-only policy). So `DateContent` needs **no kajson changes** — but the round-trip must be pinned by tests because of the distributed stakes: per the Temporal work, a content class that fails payload *decode* inside a workflow does not fail loudly, it **hangs** (converter exceptions retry forever). The cross-process path: `WorkingMemory.dump_for_transport()` (`working_memory.py:551`) dumps in pydantic *python mode* — real `date`/`time` objects sit in the transport dict (its "JSON-safe" docstring is only true for kajson-or-pydantic-aware wires, not stdlib `json.dumps`) — then hydration goes `hydrate_working_memory` → `hydrate_content` → `model_validate` (`runtime_bridge/primitives/hydration.py:141`), which accepts both real temporal objects (kajson road) and ISO strings (pydantic json-mode road). Existing test module to extend: `tests/unit/pipelex/runtime_bridge/primitives/test_hydration.py`.
-- **DT8 sites** (severable field-type fix): `ConceptStructureBlueprintFieldType.DATE` (`concept_structure_blueprint.py:44`) maps to Python `datetime.datetime` in the structure generator (`structure_generation/generator.py:375` and `:569`); default-value validator checks `isinstance(..., datetime)` (`concept_structure_blueprint.py:180`); stale TODO at `:64`. Docs using `type = "date"`: `docs/building-methods/concepts/inline-structures.md`, `define_your_concepts.md` (+ cookbook pages, cross-repo).
-
-**House rules that bite here:** TDD (tests first, red→green); keyword-only args (bare `*` after the subject — `make cko` gates); error classes only in `exceptions.py` modules; no `case _` in enum matches; `make agent-check` after code changes; `make agent-test` before wrapping a session; `make tb` for a quick boot check; `make gep` regenerates error pages; no hardcoded counts in docs/comments; changelog entries under `[Unreleased]`.
-
-## Phase 1 — Concept core (DT1–DT4)
-
-Tests first, then make them green:
-
-- [x] **Tests** in `tests/unit/pipelex/core/stuffs/date_content/` (split per the neighbouring `yes_no_content/` layout — one TestClass per module: `test_date_content_renders.py`, `test_date_content_smart_dump.py`, `test_date_content_serialization.py`, shared `test_data.py`): construction (date-only; date + naive time; date + offset time); ISO-string parsing on the dict path; the render matrix — `rendered_plain`/`rendered_markdown`/`rendered_html` give truncated ISO 8601 (`2026-07-07`, `2026-07-07T15:40:00`, `2026-07-07T15:40:00+02:00`), `rendered_json` gives the two-field form; `short_desc` distinguishes "a date (...)" vs "a date and time (...)"; `to_datetime()` on the with-time case and the raise on the no-time case; `model_json_schema()` contains both field descriptions.
-- [x] **Serialization round-trip tests**: `kajson.dumps` → `kajson.loads` in each precision state, typed equality + class-registry resolution by name (`test_date_content_serialization.py`). Cross-process transport road added to `test_hydration.py`: a `Date` stuff, one inside a `ListContent` (marker path), offset preserved end-to-end, plus the ISO-string road (json-serialized transport dict → hydrate).
-- [x] **`DateContent`** in `pipelex/core/stuffs/date_content.py`: `date: datetime.date` (required), `time: datetime.time | None = None`, `Field(description=...)` on both (DT2 anti-fabrication), `rendered_*` + `short_desc` (DT4), `to_datetime()`. Added a `field_validator("date","time", mode="before")` that rejects `int`/`float` — empirically the `time` field lax-coerces a bare int to seconds-of-day, so the DT6 no-epoch-seconds guard belongs on the class (raises `TypeError`, pydantic wraps to `ValidationError`).
-- [x] **Enum + matches:** `DATE = "Date"` + arms in `structure_class`, `is_composite`, `is_text_concept`, `is_dynamic_concept` (pyright walked to each).
-- [x] **Factory arm** with the DT1 description.
-- [x] **Registry:** `DateContent` in `CoreRegistryModels.STUFF`.
-- [x] **`html_rendering.py`:** added an explicit `case time():` ISO arm (was landing in the `case _:` fallback).
-- [x] Number-mirrored accessors: `Stuff.is_date`/`as_date`, `WorkingMemory.get_stuff_as_date`/`main_stuff_as_date`, `PipeOutput.main_stuff_as_date`.
-- [x] `make tb`, `make agent-check` (all green), targeted pytest green.
-
-### CHECKPOINT 1 — concept exists and boots
-
-State: **reached 2026-07-07.** `DateContent` exists, boots, round-trips through kajson and the transport hydration path with the offset preserved. `make agent-check` green (pyright 0 / mypy Success / ruff / plxt / cko), `make tb` green, full `make agent-test` green. Micro-decision settled: `to_datetime()` with `time is None` **raises** `DateContentError` (new class in `stuffs/exceptions.py`) — no silent midnight. Extra vs the original checklist: the DT6 lax-coercion guard was pulled forward into the content class, and the Number/YesNo-style typed accessors were added for family consistency. A fanned-out code review surfaced (and this checkpoint fixed) the full set of pydantic lax-coercion leaks the guard must close — see the micro-decision below.
-
-## Phase 2 — Inputs (DT5): TOML literals in, rejection narrowed
-
-- [x] **Tests first.** Reworked `test_inputs_file_loader.py`: rejection narrowed to bare time-of-day (top-level and nested); new cases assert top-level local date → date-only `DateContent`, local datetime → naive `DateContent`, offset datetime → offset preserved, and that a nested date/datetime is left in place. Factory unit tests in `test_stuff_content_factory.py` (date obj, datetime obj split, ISO date-only never fabricates a time, ISO datetime with offset, refining subclass, non-ISO rejected) and `data.py`/`test_stuff_factory_implicit_memory.py` envelope cases (2.15–2.20 + case 1.3, refining `DueDate`, error cases naming `native.Date` / `ISO 8601`). Updated `test_stdin_resolver.py`.
-- [x] **`StuffContentFactory.make_content_from_value`:** widened `value` typing (`… | datetime.date`) and added a `DateContent` arm + `_make_date_content` / `_parse_iso_temporal` helpers — date obj; datetime obj split via `.date()`+`.timetz()` (offset kept); ISO `str` parsed **date-first** so a bare date never fabricates a midnight; dict rides `model_validate`.
-- [x] **`StuffFactory` case 2 (envelope):** case 2.1e — a bare `datetime.date`/`datetime.datetime` routes through the resolved concept's content class (Date-compatible only, else a typed error naming `native.Date`); case 2.1f — a str under a Date-compatible (non-Text) concept builds `DateContent` from the ISO string; the str-arm error message now names both `native.Text` and `native.Date`. Case-list docstring updated.
-- [x] **Loader** (`_inputs_file_loader.py`): replaced `_assert_no_datetime_values` with `_convert_temporal_inputs` — top-level date/datetime → `DateContent` (enters the seam as case 1.3), `_reject_time_of_day` rejects a bare time anywhere, nested date/datetime left in place. Docstrings updated.
-- [x] **Error class:** renamed `InputsDatetimeNotSupportedError` → `InputsTimeOnlyNotSupportedError` (message: a time of day alone has no date to attach to — include the date or quote as a string). Updated docstring, `user_action`, both catch sites (`_run_core.py`, `stdin_resolver.py` incl. its `error_type` string), regenerated error pages (`make gep`).
-- [x] **e2e:** new `tests/e2e/pipelex/pipes/date/date_departure/` bundle (Date input pipe + Date output pipe), `test_date_inputs_run.py` (`gha_disabled` subprocess feeding a TOML offset-datetime literal, offset preserved through the loader), `test_date_dry_run.py` (Date output mocked by polyfactory; Date input flows through).
-- [x] **Dry-run mock check:** polyfactory synthesizes `DateContent` with no generator quirks — no fixes needed.
-- [x] `make agent-check` (all green); targeted sweep 2058 passed.
-
-### CHECKPOINT 2 — TOML temporal literals run end-to-end
-
-State: **reached 2026-07-07.** Error class settled: `InputsTimeOnlyNotSupportedError`. No protocol-typing friction at the seam — the loader converting top-level literals to `DateContent` means they ride case 1.3 (a `StuffContentAbstract`, already admitted by `StuffContentOrData`), so **no mthds-python change was needed** (as §0 predicted). Notable finds fixed this checkpoint: (1) a `datetime.datetime.fromisoformat` on a date-only string fabricates a midnight, so the ISO parser must try `date.fromisoformat` first; (2) `pretty_print` of a `DateContent` crashed — the base `rendered_pretty` feeds `smart_dump()`'s real date objects to stdlib json — fixed by overriding `rendered_pretty` to render the ISO form (any displayed Date output would otherwise crash). `make gep` also surfaced a pre-existing, unrelated doc gap (the v0.38.0 storage/secrets provider error pages were never committed) — left out of scope; only the Date/time-only error pages are staged here. Fanned-out review round: fixed one real bug — the ISO parser's `date.fromisoformat` accepts the basic `YYYYMMDD` form, which let an all-digit epoch-looking string slip past `DateContent`'s no-epoch-seconds guard (now rejected in `_parse_iso_temporal` too, with a test). One duplication finding (the date/datetime split written in both the loader and the factory) deferred as a design tradeoff — see `wip/inputs/loader-vs-factory-date-split-duplication.md`.
-
-## Phase 3 — LLM output verification (DT7)
-
-- [ ] Locate how `output = "Number"` is covered in PipeLLM tests and mirror for `Date`: assert the object path is selected (not the Text path) and the schema handed to content generation is `DateContent`'s with both field descriptions.
-- [ ] Optional, non-gating: one live-gateway smoke of an extraction that should produce date-only vs date+time (manual; not CI).
-
-No new generation machinery: the leaner scalar-native generation form is explicitly deferred to the YesNo LLM-output-ergonomics follow-up (design DT7).
-
-## Phase 4 — DT8: fix the `date` structure-field misnomer (severable — may be dropped without touching Phases 1–3)
-
-- [x] **Tests first:** generator tests assert `type = "date"` emits `datetime.date` (schema `format: date`) and `type = "datetime"` emits `datetime.datetime` (`format: date-time`); blueprint tests assert default-value validation (date accepts a date and rejects a datetime; datetime requires one). Updated the pre-existing normalization test (`birthdate` now `date`).
-- [x] `ConceptStructureBlueprintFieldType`: added `DATETIME = "datetime"`; pyright walked the exhaustive matches (blueprint validation arm, `_validate_default_value_type`, both generator mapping sites, the list-item recursive group).
-- [x] `DATE` arms flip to `datetime.date` (generator import + `exec_globals` gain `date`; default-value check now `isinstance(date) and not isinstance(datetime)`); stale line-64 TODO removed (default-value type is validated).
-- [x] Docs: `inline-structures.md` — split the `date` section into `date` (calendar date, `format: date`) and `datetime` (timestamp, `format: date-time`), added the field-type-vs-`Date`-concept note, fixed the generated-code example. `define_your_concepts.md`'s `issue_date` example is already a calendar date (correct post-DT8), detail lives on the linked page.
-- [x] Regenerated the MTHDS schema (via `make agent-check`) — the `datetime` field-type enum lands in the gitignored `derived/mthds_schema.json`; downstream copies sync in the release wave.
-- [x] Changelog: breaking `### Changed` entry — `date` fields no longer carry a time, `datetime` field type added. No in-repo `.mthds` uses `type = "date"`; cookbook improvements are noted for the cross-repo sweep (not edited here).
-
-### CHECKPOINT 3 — DT8 landed or consciously dropped
-
-State: **LANDED 2026-07-07.** DT8 shipped (not dropped). `type = "date"` → `datetime.date` (`format: date`), new `type = "datetime"` → `datetime.datetime` (`format: date-time`), default-value validation split accordingly, docs + breaking changelog entry in place. `make agent-check` green. Design decision honored: the DATE default-value check rejects a datetime (`isinstance(date) and not isinstance(datetime)`) — a datetime default would carry a time the `date` field silently drops, the exact fabrication DT8 exists to prevent. Stale line-64 TODO (`# TODO: date translator for default_value`) removed — defaults are validated as real date/datetime objects, no translator. Fanned-out review round: the flip left the **spec layer** (`pipelex/builder/concept/concept_spec.py`, the AI-authoring convenience format that mirrors blueprints via `to_blueprint()`) out of step — a reachable break where a spec `type = "date"` with a calendar-date default would fail. Mirrored the same change there (added spec `DATETIME`, flipped the DATE default-value check, walked pyright to every spec match site) with tests, since leaving the authoring path broken is not a complete DT8. Note for the release-wave sweep: cookbook `type = "date"` extractions (invoice/DPE) improve for free but must be re-generated; the downstream schema copies (mthds/vscode-pipelex/mthds-ui) pick up the new field-type enum.
-
-## Phase 5 — Docs, changelog, wrap
-
-- [x] `docs/building-methods/concepts/native-concepts.md`: `Date` table row + a `DateContent` section (date + optional time, fidelity note, `output = "Date"` example, `main_stuff_as_date` reader), mirroring Number/YesNo.
-- [x] Inputs docs: `provide-inputs.md` warning box flipped to a tip — TOML date/datetime literals are native `Date` inputs, bare time-of-day is the remaining unsupported case (kept surgical; full rewrite rides Smart Inputs).
-- [x] `CHANGELOG.md` under `[Unreleased]`: added native `Date` concept (pitch + TOML literal support + reserved-code breaking note); breaking `### Changed` for the narrowed inputs rejection (`InputsTimeOnlyNotSupportedError`); DT8 breaking entry already landed in Phase 4.
-- [x] Track bookkeeping: `wip/inputs/README.md` (Datetime step → done, next = Smart Inputs) and this plan's checkpoint states updated.
-- [x] Full gates: `make agent-check` + `make agent-test`.
-
-### CHECKPOINT 4 — track complete, hand off to the next train car
-
-State: **track complete 2026-07-07.** The native `Date` concept ships end to end on `feature/Smart-inputs` (Phases 1–4, commits `0b6d201bb` → `6dd17e452`, plus this Phase 5 docs/wrap commit). All gates green. Deferred (in `wip/inputs/`): the scalar-envelope arm asymmetry and the loader-vs-factory date-split duplication (both design tradeoffs to resolve when Smart Inputs unifies the input paths); the shared YesNo/Date LLM-output-ergonomics follow-up; and the release-wave cross-repo sweep (schema copies, MTHDS spec tables, mthds-python/mthds-js mirrors, the cross-repo spec suite, skills, cookbook `type = "date"` regen). Next train car: the Smart Inputs step (`smart-inputs-design.md`).
-
-### PR round — #1029 (stacked on YesNo #1028), bot-review pass
-
-The Date work went out as its own PR **#1029**, based on `feature/Smart-inputs` so the diff is Date-only (retargets to `dev` once YesNo #1028 merges). CI green across py3.11–3.14 + both bot *checks* pass. Greptile + cubic + Codex posted inline findings; a fanned-out arbitration pass verified each against the code and fixed the genuine wins, dismissed one impossible-scenario claim, and deferred one out-of-scope gap:
-
-- **Two real generator bugs, both DT8-adjacent, fixed:** (1) `build inputs` emitted an unparseable placeholder (`"date_date"`) for a `Date` input because `ConceptRepresentationGenerator._generate_basic_value` had no temporal branch — the `build inputs` → `run` round-trip was broken; added `datetime.date`/`datetime`/`time` → ISO-example branches. (2) `StructureGenerator._format_default_value` rendered a temporal default via `repr()` → module-qualified `datetime.datetime(...)`, but generated code imports the *bare* classes (`from datetime import date, datetime`), so eval raised `AttributeError`; now emits `datetime.fromisoformat(...)`/`date.fromisoformat(...)` (offset-preserving, uses the imported bare names; `exec_globals` already carries both). The `date`-with-default case was pre-existing and is fixed too. Both pinned by round-trip tests.
-- **Three low-risk tightenings:** the ISO-datetime factory test now also asserts the *date* component; `native-concepts.md` says "top-level" TOML literal (matching `provide-inputs.md`); the `InputsTimeOnlyNotSupportedError` hint unquotes its datetime example (a quoted value is a TOML string → Text, the opposite of "include the date") — error page regenerated via `make gep`.
-- **One dismissed, one deferred:** a claimed missing bare-`datetime.date` arm in `StuffFactory` Case 1 is unreachable (the loader pre-converts top-level scalars to `DateContent`; the `StuffContentOrData` protocol union admits no bare datetimes) — no dead branch added. The one real gap it surfaced — a top-level TOML *array* of date literals errors cleanly instead of building `ListContent[DateContent]` — is unsupported-by-design list surface, deferred to Smart Inputs; captured in `wip/inputs/case1-bare-date-arm-gap.md`. No changelog entry: A/B are fixes inside the still-`[Unreleased]` Date feature, never shipped.
-
-### gstack `/review` finalize round — 2026-07-07
-
-The plan's finalize step ran: gstack `/review` (Opus 4.8) with a testing + maintainability + adversarial-red-team fan-out, each given pointer-only context (branch + base, computes its own diff — no plan/rationale, so the eyes stay independent). Scope check CLEAN; CI verified fully green; my own critical pass (SQL/race/shell/LLM-trust/enum-completeness) clean — enum consumers are all specific-value lookups or generic enum iterations that pick up `DATE` automatically, and the DT8 `exec()` codegen path is injection-safe (validated temporal objects → `.isoformat()` can't inject). One real defect + low-risk polish applied, two design tradeoffs deferred:
-
-- **Real defect fixed — a stale, self-contradicting test.** `tests/unit/pipelex/cli/test_run_core_execution.py::test_toml_datetime_input_file_exits` asserted the *old* rejection behavior (a top-level TOML datetime → exit 1) that Phase 2 reversed (it's now converted to a `DateContent`). Untouched by the diff, it mocked no runner and passed only because execution failed 1 for an unrelated downstream reason — false coverage, and a docstring documenting the opposite of shipped behavior. Phase 2 had updated `test_inputs_file_loader.py` + `test_stdin_resolver.py` but this CLI-level test slipped. Repurposed to a bare time-of-day (`deadline = 12:00:00`) — the one temporal literal the loader still rejects — so it now exercises the real `InputsTimeOnlyNotSupportedError` catch site, and asserts the `"Failed to load input file"` framing to pin that the exit comes from that path (not a downstream failure). Renamed → `test_toml_time_only_input_file_exits`.
-- **Polish.** Dropped a misleading parenthetical in `concept_representation_generator.py` (the temporal example arms are `is`-identity checks, not `isinstance`, so the "checked before date: datetime is a date subclass" ordering rationale was wrong/misleading). Added the two untested `_reject_lax_temporal` arms on the `time` field (datetime-on-time, all-digit-string-on-time — only the int arm was pinned). Added generator tests for `type = "list", item_type = "date"`/`"datetime"` (the DT8 list-item mapping was untested).
-- **Deferred (design tradeoffs, per the "defer on doubt" rule):** `container-default-temporal-codegen-gap.md` (the DT8 scalar `fromisoformat` fix doesn't recurse into list/dict defaults — narrow, pre-existing, errors not silent) and `structure-field-fidelity-guard.md` (generated `date`/`datetime` structure fields don't carry the native `DateContent` anti-fabrication guard — likely an intentional non-goal, but the decision is now recorded). The red-team's third finding (top-level date-list gap) was already the existing `case1-bare-date-arm-gap.md` deferral — confirming that call. No changelog entry: all fixes are inside the still-`[Unreleased]` Date feature.
-
-## Deferred to the release-wave sweep (NOT this plan's scope — listed so nothing is lost)
-
-Shared per-release wave with YesNo + Smart Inputs (see `README.md`): MTHDS spec native-concepts tables (`mthds/docs/language/concepts.md`, `mthds/docs/spec/mthds-format.md`); schema-copy sync via the `mthds-schema-sync` skill; `mthds-python` protocol widening for bare temporal scalars (rides Smart Inputs D10) + any native-list mirrors; `mthds-js` mirrors; cross-repo spec-suite rows; `mthds-plugins` skills (`mthds-inputs`, `mthds-build`); editor tooling completion lists (vscode-pipelex). Plus the YesNo/Date shared follow-up: LLM-output ergonomics for scalar natives.
-
-Our Temporal plugin (private repo): **no code change expected** — its codec serializes the `dump_for_transport` dict via kajson and binds classes through the registry, so `DateContent` flows in with the pipelex version-pin bump. At pin-bump time, add a `Date` case to its converter round-trip tests anyway: the failure mode over there is a hang, not an error, so coverage is cheap insurance.
-
-## Micro-decisions log
-
-- `to_datetime()` with `time is None`: **settled RAISE** (`DateContentError`, in `pipelex/core/stuffs/exceptions.py`) — a silent midnight is exactly the fabrication DT2 forbids.
-- Final narrowed-error class name: **settled `InputsTimeOnlyNotSupportedError`** (Phase 2).
-- ISO string parsing order: **settled date-first** — `datetime.fromisoformat` accepts a date-only string and fabricates a midnight, so `date.fromisoformat` is tried first; a bare time string fails both and correctly errors.
-- `DateContent.rendered_pretty`: **settled override** — the base feeds `smart_dump()`'s real date/time objects to Rich's stdlib-json encoder and crashes; DateContent renders the ISO two-field JSON instead.
-- DT6 lax-coercion guard placement: **settled ON THE CONTENT CLASS** (Phase 1, not Phase 2) — the guard is a class invariant, not just an input-boundary concern, because the dict-content envelope path reaches `model_validate` directly. One `field_validator("date","time", mode="before")` closes every verified pydantic lax leak: bare `int`/`float` (pydantic natively rejects on `date`, but lax-coerces `int`→`time` as seconds-of-day), an **all-digit string** (read as epoch — a real ISO date/time always carries `-`/`:`, so an all-digit string is only ever an epoch), and a **`datetime` on the `date` field** (silently truncated to the date, dropping its time + UTC offset — the exact fidelity loss DT3 forbids). Raises `ValueError` (not `TypeError`) so pydantic wraps it into a `ValidationError` the input path catches — a raw `TypeError` escapes `model_validate` uncaught.
-- Note for Phase 4 (DT8): the older custom `type = "date"` structure-field path (`structure_generation/generator.py`) has the same unguarded epoch-int coercion — same bug class, addressed when DT8 flips that field type.
diff --git a/wip/inputs/envelope-chaining-vs-d8.md b/wip/inputs/envelope-chaining-vs-d8.md
deleted file mode 100644
index e00a00d3d..000000000
--- a/wip/inputs/envelope-chaining-vs-d8.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# Envelope chaining vs D8 — `--with-memory` output is no longer valid input
-
-**Status:** confirmed regression in v0.39.0, **deliberately deferred** out of the release (decision taken 2026-07-14 during the PR #1048 review).
-**Reported by:** Codex (P2) on the [v0.39.0 release PR #1048](https://github.com/Pipelex/pipelex/pull/1048#pullrequestreview-4698103093).
-**Area:** D8 (strict unknown input names) × the agent CLI's stdin working-memory envelope.
-
-## The bug
-
-The agent CLI can no longer consume its own documented output. Piping an upstream `--with-memory` envelope into a downstream pipe that declares only *some* of the carried stuffs fails with `UnknownInputNameError`.
-
-Three hops:
-
-1. `resolve_stdin_inputs` (`pipelex/cli/agent_cli/commands/run/stdin_resolver.py:107-126`) explodes **every** entry of `working_memory.root` into an input entry. Its own docstring names the producer: *"Full envelope: a dict with a `working_memory` key at the top level (from upstream `--with-memory` output)"*.
-2. Those inputs reach the shaper unchanged: `run_pipeline_core` → `PipelexMTHDSProtocol.execute(inputs=…)` → `prepare_pipe_job` (`pipelex/pipeline/execution_seams.py:195-207`, which always passes `input_specs=pipe.inputs`) → `WorkingMemoryFactory.make_from_pipeline_inputs` → `InputShaper.shape`.
-3. `InputShaper._check_input_names` (`pipelex/core/memory/input_shaper.py:136-142`) raises on the **first** provided name absent from `input_specs.declared_names`. There is no envelope-vs-flat distinction, no ignore-extras path, and the only way to skip the shaper entirely is handing `execute` an already-built `WorkingMemory` — which the CLI never does.
-
-An upstream sequence carries its own inputs in the envelope alongside its results, so the very first extra name (`text`) kills the run even though the declared input (`summary`) is present.
-
-## Reproduction
-
-Bundle with a `prepare` sequence (`inputs = { text = "Text" }`, step `result = "summary"`) and a `classify` pipe (`inputs = { summary = "Summary" }`):
-
-```bash
-pipelex-agent run bundle chain.mthds --pipe prepare \
- --inputs '{"text":"The quick brown fox jumps over the lazy dog."}' \
- --dry-run --no-graph --with-memory --format json > up.json
-# working_memory.root keys: ['text', 'summary']; aliases: {'main_stuff': 'summary'}
-
-cat up.json | pipelex-agent run bundle chain.mthds --pipe classify --dry-run --no-graph --format json
-```
-
-```json
-{
- "error": true,
- "error_type": "UnknownInputNameError",
- "message": "Input 'text' is not declared by this pipe. Declared inputs: 'summary'."
-}
-```
-
-## Why it is a regression
-
-`git show v0.38.0:pipelex/core/memory/working_memory_factory.py` — `make_from_pipeline_inputs` took no `input_specs` and performed no name check, so extra envelope entries were carried harmlessly into the working memory. `input_shaper.py` does not exist in v0.38.0; it arrived with Smart Inputs (#1028). v0.39.0 is therefore the first release where the envelope the CLI emits is not an envelope the CLI accepts.
-
-The design anticipated the *class* of breakage but not this instance. `smart-inputs-design.md` (D8, "Risk to weigh") says: *"any workflow deliberately over-providing inputs … would break — if that pattern matters, downgrade to a warning."* What was never considered is that **the CLI itself is a first-party over-providing producer**: `--with-memory` exists precisely to carry the whole memory forward.
-
-## Blast radius
-
-- **The chaining pattern is taught in shipped agent skills.** `mthds-plugins/mthds/skills/mthds-run/SKILL.md` and `mthds-plugins/mthds/skills/shared/mthds-agent-guide.md` both instruct `run … --with-memory | run … --with-memory | run …`, with `--with-memory` on intermediate steps and a bare final step. Those examples are broken until this is fixed — **fixing them (or updating them) is part of the follow-up, and lives in the `mthds-plugins` repo, not here.**
-- **It fails loudly**, with a precise, actionable message — not silent corruption. That is what made deferral acceptable.
-- **Workarounds:** narrow the envelope before piping (`jq '{working_memory: {root: {summary: .working_memory.root.summary}, aliases: .working_memory.aliases}}'`), or drop `--with-memory` and pass `--inputs`.
-- **Narrower than it looks for single-pipe upstreams:** when the upstream is a single pipe, its result lands under the literal key `main_stuff` with empty aliases, so a downstream declaring `summary` finds nothing to bind even with extras ignored. Full-envelope chaining is genuinely useful when the upstream is a *sequence* whose step `result` names match the downstream's declared inputs (the repro above). The fix restores a real but narrow capability.
-
-## Fix options
-
-**1. Core policy param — recommended.** Keep D8 strict for flat/file/inline inputs; make *envelope-derived* inputs lenient about extras. Thread the signal along the rails `inputs_base_dir` already uses (same shape, same call sites): `ParsedCliInputs` (`stdin_resolver.py:20-31`, gains a memory-derived marker set when `resolve_stdin_inputs` saw a `working_memory` key) → `run_pipeline_core` → `PipelexMTHDSProtocol.execute` → `prepare_pipe_job` (`execution_seams.py:172,202`) → `make_from_pipeline_inputs` (`working_memory_factory.py:71-107`) → `InputShaper.shape`. Carry it as a `StrEnum` (`UnknownInputNamePolicy.ERROR | IGNORE`, defaulting to `ERROR` everywhere — project standards ban `bool` params). Under `IGNORE`, filter `pipeline_inputs` down to `input_specs.declared_names` **before both** `_check_input_names` and the build loop — the loop calls `get_required_stuff_spec`, so undeclared names must be *dropped*, not merely un-raised.
-
-**2. CLI-local filter.** After boot the CLI can resolve the target pipe, so it could filter the envelope-derived dict against the pipe's declared names itself. Zero core churn — but it puts the leniency outside the shaper that owns input semantics, and every other envelope consumer (the hosted runner) stays broken.
-
-**3. Downgrade D8 to a warning.** The design doc's own escape hatch. One function, no plumbing, un-breaks every path including `--runner api`. Cost: gives up the misspelled-input safety net D8 was deliberately added to provide. Only worth it if we conclude the typo-catching value was overrated.
-
-## Open question to settle with the fix
-
-**Is envelope chaining a local-runner-only capability?** `--runner api` ships `inputs` as a plain dict to the hosted runner (`_run_core_api.py:22,45`), which applies the same D8 check server-side. A CLI-local policy signal (options 1 and 2) does not reach it, so `--runner api` + envelope chaining stays broken unless the MTHDS protocol carries the same signal — a cross-repo change (`mthds/protocol`, `pipelex-api`). Decide this explicitly rather than letting the local path quietly diverge from the hosted one.
-
-A more principled alternative worth weighing at that point: treat a `working_memory` envelope as a **`WorkingMemory`**, not as inputs — hydrate it CLI-side and hand it to `execute`, which already bypasses the shaper (`execution_seams.py:196-197`). Semantically right ("memory in → memory continues", intermediates stay readable) and needs no shaper change; the cost is a hydrator from `smart_dump()` that needs the class registry loaded, which the CLI does not have before it builds the runner. That is why it was not done, not a reason it is wrong.
-
-## Test approach for whoever fixes it
-
-- **Shaper unit:** the lenient twin of the D8 test at `tests/unit/pipelex/core/memory/input_shaper/test_errors.py` — extras dropped, declared slots still shaped, strict policy still raising.
-- **CLI unit:** `tests/unit/pipelex/cli/test_stdin_resolver.py` — pin that an envelope parse is flagged memory-derived and a flat parse is not.
-- **e2e (the real chain):** `tests/e2e/pipelex/pipes/smart_inputs/` — a fixture bundle with an upstream sequence + downstream consumer; dry-run the upstream, feed the resolved envelope into the downstream, assert success. (`tests/e2e/pipelex/cli/test_toml_inputs_build.py` is the precedent if you want it to shell the real binary.)
diff --git a/wip/inputs/error-reference-grouping-axis.md b/wip/inputs/error-reference-grouping-axis.md
deleted file mode 100644
index 48545f417..000000000
--- a/wip/inputs/error-reference-grouping-axis.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Deferred: the error reference groups by module path, and runtime errors under `core/` land in "Authoring & language"
-
-**Raised:** 2026-07-29, during the `refactor/Layer-boundary` checkpoint review. **Not a regression introduced by that branch** — it is a pre-existing property the branch made visible.
-
-## What was observed
-
-`error_pages_generator.py`'s `_SUBSYSTEM_SECTIONS` keys each error class on the **second dotted segment of its defining module** (`pipelex.<subsystem>.…`), and maps `core` → "Authoring & language". That is right for most of `core/`, which is the value data model and the language's own vocabulary.
-
-It is not obviously right for the run-failure errors that live under `core/pipes/inputs/`. `PipeRunInputsError` and `OptionalValueAbsentError` are raised *while a method runs* — `OptionalValueAbsentError` is literally a data-dependent runtime failure, `error_domain = RUNTIME` — yet the public error reference files both under **Authoring & language / Core language**. Moving `PipeRunError` to `core.pipes.exceptions` put the base class beside them, which is an improvement in consistency (the base and its two subclasses are now in one section instead of two) but does not answer whether that section is the right one for any of the three.
-
-## Why it was left alone
-
-- Nothing about it is *new*. Both subclasses have been filed this way since they were written; the branch only stopped the base from being filed somewhere else.
-- The alternatives are all bigger than the problem. Adding a per-class section override introduces a second, hand-maintained grouping axis that will drift from the module one. Re-keying on `error_domain` instead of the module path changes the section of every error class in the reference at once. Splitting the run-failure errors out of `core/pipes/inputs/` moves code to satisfy a docs grouping, which is the tail wagging the dog.
-- The grouping axis is documented and deliberate: the generator's comment says the subsystem key "groups errors by the area of the codebase they originate from", and by that stated rule the current output is *correct*. The open question is whether that rule is the one a reader of the error reference wants, which is a product question, not a bug.
-
-## What to decide, if this is ever picked up
-
-Does the public error reference group by **where the error lives** (today's rule — stable, mechanical, needs no curation) or by **when the user hits it** (authoring vs running — more useful to a reader, but needs a second manifest and a way to keep it honest)? If the answer is the second, the honest implementation is probably `error_domain`, which already exists on every class and is already load-bearing for HTTP status mapping — not a new hand-maintained list.
-
-Note the related hazard already recorded twice in `wip/drift-contracts/dogfood-log.md`: because the key is the *second segment*, any package move silently reclassifies every error class in it, with `make gep` exiting 0 either way. That is the same mechanism, and it is worth fixing (or gating) independently of the grouping-axis question.
diff --git a/wip/inputs/input-shaper-multiplicity-gaps.md b/wip/inputs/input-shaper-multiplicity-gaps.md
deleted file mode 100644
index 95934b041..000000000
--- a/wip/inputs/input-shaper-multiplicity-gaps.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# Deferred: `InputShaper` multiplicity gaps in the explicit and Dynamic arms
-
-**Status:** deferred design note — no code change. Surfaced during the PR #1028 adversarial review (cubic), 2026-07-07. The `InputShaper` is **Phase-1 dormant** — landed with its full unit-test suite but not yet wired into any run (commit `d72101174`, "not yet wired"); wiring is the D7/Phase-2 job of the upcoming `smart-inputs-implementation-plan`. Both gaps below are therefore latent (no runtime impact today) and belong to that phase, which reworks exactly this multiplicity handling.
-
-## Gap A — `_shape_explicit` bypasses declared multiplicity (D2)
-
-`InputShaper._shape_explicit` (`pipelex/core/memory/input_shaper.py`) builds the explicit form bottom-up and does exactly one check — concept compatibility (`get_concept_library().is_compatible(...)`). It never consults `stuff_spec.multiplicity`. Because `_is_explicit` treats any `StuffContent` — and `ListContent` **is** a `StuffContent` — as explicit, three shape mismatches slip through unchecked, contradicting the D2 invariants the *non-explicit* path enforces in `_shape_with_multiplicity`:
-
-- **singular declared + explicit `ListContent`** (or an envelope whose `content` is a list) → a list is stored into a singular slot, though D2 makes "list where singular is declared" a hard error;
-- **`[N]` declared + explicit `ListContent` of the wrong length** → the count is never validated;
-- **`[]` declared + explicit singular object** → stored as singular, where the non-explicit arm would auto-wrap.
-
-D6 (`smart-inputs-design.md`) governs only *concept* compatibility ("explicit wins when compatible"); it says nothing about multiplicity, and D2 states the list-vs-singular hard error unconditionally. So this is a genuine gap, not a D6 carve-out. **No test asserts either behavior** — `test_explicit_forms.py`'s "multiple" cases pass a bare Python `list` (which is *not* explicit and takes the `_shape_list` path), so the explicit-arm × multiplicity interaction is untested.
-
-**Proposed fix (from the review):** after the compat check in `_shape_explicit`, reconcile the built content's shape against `stuff_spec.multiplicity` using the same rules `_shape_with_multiplicity` applies — reject a `ListContent` against a singular spec (`ListWhereSingularError`), enforce the `[N]` count on a `ListContent` (`MultiplicityCountMismatchError`), reusing the existing error factories so the rendered-shape hint stays consistent.
-
-**Open design question:** the single-vs-`[]` auto-wrap policy for explicit forms — should an explicit singular object under a declared-multiple `[]` input auto-wrap into a one-item `ListContent` (as the bare-value arm does), or is an explicit form taken literally? Decide this when wiring, not by bolting a rule onto the current arm.
-
-## Gap B — the `DYNAMIC` arm skips multiplicity peeling
-
-In `_shape_one`, the `InputKind.DYNAMIC` case returns `StuffFactory.make_stuff_from_stuff_content_or_data(value)` and short-circuits **before** `_shape_with_multiplicity`. `resolve_input_kind` maps `Dynamic`/`Anything`, the out-of-matrix natives, and unregistered structures to `DYNAMIC` keyed on the *concept* only; `stuff_spec.multiplicity` is never consulted for them. So for a declared `native.Dynamic[]` / `native.Anything[N]`:
-
-- **empty list** → the bottom-up factory raises "Cannot create Stuff from empty list" instead of D2's legal empty `ListContent` — a concrete divergence from the Smart Inputs contract;
-- **fixed `[N]`** → no count check;
-- **single → list auto-wrap** → not applied.
-
-This is **partly by design**: D5 says Dynamic/Anything "fall back to today's bottom-up rules (the signature genuinely doesn't know)," and the code comment frames handing the whole raw value (including its own list handling) to the factory as deliberate for *item building*. But D2 frames multiplicity as a *prior* peeling step orthogonal to concept nature ("after D2's multiplicity peeling, dispatch on the declared concept's nature"). Under that reading the DYNAMIC arm should still peel multiplicity (honor `[]`, `[N]`, auto-wrap) and defer only *per-item building* to bottom-up. Practical severity is low — declaring Dynamic/Anything *with* an explicit multiplicity is an unusual signature — but the empty-list case is an observable contradiction with D2.
-
-**Proposed resolution:** either (1) move the multiplicity peel ahead of the kind dispatch so the DYNAMIC arm routes lists through `_shape_list` with per-item bottom-up building (empty→empty `ListContent`, `[N]` count-checked, single auto-wrapped), deferring only per-item concept inference to `StuffFactory`; or (2) if the full fallback is intended, add a one-line design note + a pinning test so "Dynamic ignores declared multiplicity" is a documented decision rather than an accident.
-
-## Follow-up
-
-Resolve both when the `smart-inputs-implementation-plan` wires `InputShaper` (D7) — that phase must decide the D2 multiplicity semantics holistically, and these two arms are exactly where it lands. Add pinning tests for whichever contract is chosen (today `Dynamic[]` + `[]` reproduces the bottom-up "Cannot create Stuff from empty list" error, demonstrating Gap B). Related notes: `scalar-envelope-arm-asymmetry.md`, `case1-bare-date-arm-gap.md`.
-
-No action needed on the PR #1028 merge — the shaper is dormant.
-
-## Phase-5 triage (Smart Inputs, 2026-07-08) — Gap A unambiguous half CLOSED; auto-wrap + Gap B RE-DEFERRED
-
-The Phase-5 finalize doc-accuracy review independently re-found **Gap A** and framed it as a silent behavior: a caller handing an explicit `ListContent` (or an envelope whose `content` is a list) to a singular-declared input had it *silently stored* into the singular slot, contradicting D2's unconditional list-where-singular error. That is exactly the reopen trigger this note recorded, so the **unambiguous half of Gap A is now fixed**:
-
-- `InputShaper._shape_explicit` now calls `_reconcile_explicit_multiplicity` after the D6 compat check: an explicit form whose built content is a `ListContent` raises `ListWhereSingularError` against a singular slot, and `MultiplicityCountMismatchError` against a declared `[N]` of the wrong length — reusing the existing error factories, so the rendered-shape hints stay consistent. The multiplicity peel is shared with the bare-value path via a new `_peel_multiplicity` helper (no duplicated classification). Pinned by `test_explicit_forms.py` (`test_explicit_list_into_singular_raises`, `test_explicit_list_wrong_fixed_count_raises`, `test_explicit_list_into_list_slot_ok`).
-
-**Still deferred (the genuine tradeoffs, not the bug):**
-
-- **Gap A's auto-wrap sub-question.** An *explicit singular* under a declared `[]`/`[N]` is still taken literally (stored as given), not auto-wrapped into a one-item list the way the bare-value path does. Whether an explicit form should auto-wrap or be literal is the open design question the note flags — left to the holistic D2-multiplicity pass. `_reconcile_explicit_multiplicity` only fires on `ListContent` content, so this direction is untouched.
-- **Gap B — the `DYNAMIC` arm skips multiplicity peeling.** `_shape_one`'s `InputKind.DYNAMIC` case still short-circuits to the bottom-up factory before `_shape_with_multiplicity`, so a declared `Dynamic[]`/`Anything[N]` doesn't peel multiplicity (empty-list diverges from D2's empty `ListContent`, no `[N]` check, no auto-wrap). D5 explicitly says Dynamic/Anything "fall back to today's bottom-up rules," and declaring Dynamic *with* a multiplicity is unusual; the empty-list case raises a clean error, not silent corruption. Re-deferred as a documented decision to the holistic D2-multiplicity pass (which must also settle the auto-wrap question above).
-
-## PR #1033 follow-up (2026-07-08) — Dynamic explicit-list regression CLOSED; broader Gap B still deferred
-
-The Phase-5 reconcile introduced a narrower regression: a singular `native.Dynamic` input still accepted a raw Python list through the bottom-up `InputKind.DYNAMIC` path, but rejected an already-built `ListContent` because `_shape_explicit` ran the new list-into-singular guard after the D6 compat check. That over-applied D2 to a slot where D5 says the signature cannot guide shape.
-
-`InputShaper._shape_explicit` now returns immediately after compatibility when the declared concept is exactly `native.Dynamic`, matching the bare-value Dynamic fallback. Pinned by `test_explicit_list_content_into_dynamic_slot_ok`.
-
-This does **not** resolve the broader Gap B above: declared `Dynamic[]`/`Anything[N]` still do not peel multiplicity, and the empty-list/count/auto-wrap semantics remain deferred to the holistic D2 pass.
-
-## Anything-slot review, round 2 (2026-09-27) — the auto-wrap question now reaches `Anything[]`
-
-The anything-slot branch (`wip/anything-slot/`) made every concept compatible with `native.Anything`, so a typed singular envelope such as `{"concept": "native.Text", "content": "hello"}` at an `Anything[]` input is now accepted and, under Gap A's auto-wrap sub-question, stored as a single `TextContent` rather than a one-item `ListContent`. A consumer iterating the input, such as a `PipeBatch`, then refuses it at run time, while the same bare `"hello"` would have been wrapped. Codex's adversarial review rated it medium. It is the same question as above, reached through a new door rather than a new defect, so it stays with the holistic D2 pass. The fixed-count half is settled on that branch: an explicit single value at a `Concept[N]` input now raises `MultiplicityCountMismatchError`.
diff --git a/wip/inputs/loader-vs-factory-date-split-duplication.md b/wip/inputs/loader-vs-factory-date-split-duplication.md
deleted file mode 100644
index 54167984d..000000000
--- a/wip/inputs/loader-vs-factory-date-split-duplication.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# Deferred: the date/datetime→DateContent split is written twice (loader + factory)
-
-**Status:** deferred design note — no code change. Surfaced during the Phase 2 (Date inputs) code review, 2026-07-07.
-
-## What
-
-Two places turn a Python `datetime.date`/`datetime.datetime` object into a `DateContent`, with the same two-line split:
-
-- `pipelex/cli/commands/run/_inputs_file_loader.py` → `_convert_temporal_inputs` (top-level TOML literals):
-
- ```python
- if isinstance(value, datetime.datetime):
- converted[key] = DateContent(date=value.date(), time=value.timetz())
- elif isinstance(value, datetime.date):
- converted[key] = DateContent(date=value)
- ```
-
-- `pipelex/core/stuffs/stuff_content_factory.py` → `_make_date_content` (envelope / concept-resolved values):
-
- ```python
- if isinstance(value, datetime.datetime):
- return date_subclass(date=value.date(), time=value.timetz())
- if isinstance(value, datetime.date):
- return date_subclass(date=value)
- ```
-
-The reviewer's suggestion was to have the loader call `StuffContentFactory.make_content_from_value(stuff_content_subclass=DateContent, value=value)` and delete its inline split.
-
-## Why it is deferred (not applied)
-
-It is a genuine design tradeoff, not a clear win:
-
-- **Different layers, different responsibilities.** The loader is a *format-level* step (CLI, `pipelex/cli/…`) that maps a bare top-level TOML literal to the base `native.Date` content — it knows nothing about concepts. `_make_date_content` is a *concept-level* step that builds the concept's (possibly refining) `structure_class`. They happen to share a two-line split; they are not the same operation.
-- **The reuse introduces a cross-layer dependency.** The loader currently imports only `DateContent`. Routing through `StuffContentFactory` couples the CLI loader to the core factory (and its `hub`/registry import surface) to save two lines of stable, trivial logic.
-- **Low drift risk.** The split (`date=v.date(), time=v.timetz()` for a datetime; `date=v` for a date) is fixed by `datetime`'s own API; it is not the kind of logic that evolves.
-
-## Follow-up to consider (Smart Inputs)
-
-When Smart Inputs (D5/D10) unifies the bottom-up input paths into a shared `input_shaper`, the loader's top-level conversion and the factory's per-concept shaping likely collapse into one interpretation matrix. Resolve the duplication there — by unifying the layer, not by bolting a cross-layer call onto the current two hand-written arms.
-
-No action needed inside the Date track.
-
-## Phase-5 triage (Smart Inputs, 2026-07-08) — RE-DEFERRED
-
-Smart Inputs landed the shaper, but it did **not** collapse this split — and the reason is instructive, not an oversight. The loader (`_convert_temporal_inputs`) runs **before** the pipeline-inputs seam, at the CLI-format layer: it turns a top-level TOML date/datetime *literal* into a `DateContent` while the file is being parsed, with no view of the pipe or its concepts. The shaper runs **at** the seam, top-down against the declared concept. They are genuinely different steps at different layers — the loader's early conversion is what lets a bare TOML date reach the seam as a `StuffContent` (so it takes the shaper's already-built-`StuffContent` path rather than a bare-date arm). Collapsing them would mean either moving concept-aware shaping up into the format loader (wrong layer — the loader has no signature) or deferring the loader's literal conversion down into the shaper (which would still leave the no-signature bottom-up path needing its own conversion). The two-line `date=v.date(), time=v.timetz()` split is fixed by `datetime`'s own API (near-zero drift risk), so the original deferral rationale — different responsibilities, cross-layer-coupling cost, low drift — stands unchanged. Re-deferred to a dedicated `tools`/loader pass if the loader is ever restructured; not worth cross-layer coupling now.
diff --git a/wip/inputs/provider-scoped-class-resolution.md b/wip/inputs/provider-scoped-class-resolution.md
deleted file mode 100644
index 7ed31a576..000000000
--- a/wip/inputs/provider-scoped-class-resolution.md
+++ /dev/null
@@ -1,49 +0,0 @@
-# The concept provider does not carry its own class registry
-
-**Status:** deferred — a real architectural gap with no reachable failure today. Raised by Codex (P1) on PR #1072 (`refactor/Concept-purity`), verified, and declined for that PR. What it *did* change is the branch's own wording: three places claimed a scoping property the code does not deliver, and those were corrected.
-
-## The claim
-
-`ConceptLibrary.get_structure_class` resolves through `get_class_registry()`, which selects a registry from the **current async context**, not from `self`. So passing a specific `ConceptLibrary` as `concept_provider` does not actually scope class resolution to that library: if a caller hands over library A while the context names library B, resolution follows B. Codex's proposed fix was to store or inject the library's registry resolver on the provider.
-
-## Verified: the mechanism is real
-
-- A `ConceptLibrary` **holds no registry**. The per-library `ClassRegistry` lives on `Library` (`libraries/library.py`, `_class_registry` private attr with `get_class_registry` / `set_class_registry`); `ConceptLibrary` is a plain field of `Library` with no back-reference, and `ConceptLibraryAbstract` declares no registry member. So "use `self`'s registry instead" is not a correction — there is nothing to use.
-- Scoping runs `get_class_registry()` → `class_registry_scoping.resolve()` → the resolver `set_interpreter_hub` installs → `_resolve_scoped_class_registry`, which reads the `_library_id` ContextVar and asks `LibraryManager.get_library_class_registry`. Unset, or a library with no registry of its own, falls back to the process-global Kajson registry.
-
-## Verified: the divergence is not reachable
-
-**Provider-library and registry-library are two reads of one variable.** Every non-forwarding `concept_provider=` source in `pipelex/` is `get_concept_library()`, which is `get_interpreter_hub().get_library().concept_library` → `LibraryManager.get_current_library()` → the same `_library_id` ContextVar that `_resolve_scoped_class_registry` reads. They cannot name different libraries.
-
-**Every library the manager holds carries a registry.** `LibraryManager.open_library` attaches one at open time, seeded from the process-global registry, so `get_library_class_registry` answers for any library that can become current. (Before that was the default, the pairing argument was narrower: only `runtime_bridge/primitives/rehydration.py` installed a registry, and it set the registry and the ContextVar in adjacent statements on the same library.)
-
-**The only non-hub provider used to depend on the ambient read, and no longer does.** `cli/commands/run/_run_core.py`'s `--save-csv` step used `ConceptLibrary.make_empty()` *after* the run library was torn down, precisely so the lookup landed on the process-global registry that still held the generated classes. Once `open_library` began attaching a per-library registry, the generated classes went with the run library, and that site now takes the row model off the produced rows — each is an instance of exactly the class the pipeline structured its output into. The name lookup remains only for an empty result, which has no instance to ask.
-
-That is why the fix was declined: no reachable failure motivates it, it would require inventing a registry for every parentless `ConceptLibrary`, and it would end up re-implementing the fallback it replaced. Also worth noting it is **not a regression** — on `dev`, the removed `Concept.get_structure_class()` and `Concept.are_concept_compatible` called `get_class_registry()` from the same module. PR #1072 moved *where* the call lives, never *which* registry it reads.
-
-## What was actually wrong, and was fixed
-
-The branch asserted a scoping property in three places. Two were docstrings written in this PR — `class_registry_access.py` ("scoped to the library you asked rather than to whatever the ambient registry happens to hold") and `stuff_spec.py` ("the rendering can no longer read whatever the ambient registry last held") — and one was the PR body's defect #3. All three overstated: the ambient read left the *wire model*, and gained a single implementation behind one seam, but it is still ambient. `class_registry_access.py`'s docstring is the module's stated architectural rationale, so a reader would have taken it as a guarantee. Corrected in the same PR.
-
-## Trip-wires — any one of these makes it real
-
-1. A caller passes `library_manager.get_library(library_id=X).concept_library` as the provider instead of `get_concept_library()`.
-2. A **dependency/child** library's `concept_library` is used as a provider. Child `Library` objects live in `Library.dependency_libraries` and are *not* in `LibraryManager._libraries`, so `get_library_class_registry` structurally cannot see their registry. Today only the cross-package `_concept_resolver` touches them, never `get_structure_class`.
-3. `InterpreterHub.set_concept_library` gains a live writer (it currently has **zero** callers, so its standalone-library fallback branch is dead).
-4. ~~A `set_class_registry` call site appears that is not paired with `set_current_library` on the same library.~~ Moot: `open_library` now attaches a registry to every library, so a library that becomes current always has one to resolve. What would revive the concern is a caller that *replaces* a library's registry with one belonging to a different library.
-
-## The shape of the fix, if it ever lands
-
-Give `ConceptProviderAbstract` a way to name its registry and have `ConceptLibrary` carry the one from its parent `Library`, falling back to `get_class_registry()` when it has no parent — which keeps `make_empty()` working. One place changes (`ConceptLibrary.get_structure_class`), which is the property the single-seam refactor bought even though it did not use it.
-
-## Related, from the same PR's finalize review
-
-Four items surfaced alongside this one. All are design tradeoffs or pre-existing asymmetries rather than defects, and all share the same reachability gate as the note above.
-
-**The `StuffContent` bound changed the compatibility verdict path too, not just `get_structure_class`.** `ConceptLibrary` resolves with `get_required_subclass(base_class=StuffContent)`, where the old class tier used an unbounded `get_class`. A name registered as a *non*-`StuffContent` class used to flow into `are_classes_equivalent` / `issubclass` and could answer `True`; it now raises. That tightening is deliberate and pinned for `get_structure_class` (`test_get_structure_class_rejects_a_class_that_is_not_stuff_content`), but only the `get_structure_class` half was written down — the compatibility half rides along undocumented. Same unreachability argument applies (the factory refuses to build such a concept), which is why it was recorded rather than reverted.
-
-**`StuffSpec.render_stuff_spec` does not consult `declares_a_structure_class`.** An input declared `native.Anything` raises on the render/template paths while `is_compatible` answers `False` for it. Not a regression — the base commit raised `ConceptValueError` at the same point — but the new property makes the asymmetry visible for the first time. Whether rendering *should* have an `Anything` arm is a real question; it is not this branch's.
-
-**`template_image_analyzer`'s dotted-path branch resolves unconditionally** while the two single-variable branches now answer for `Anything`. So `{{ anything_var }}` is fine and `{{ anything_var.field }}` fails bundle load. Pre-existing in kind, surfaced by the same property.
-
-**`pipe_abstract` is a second read-side resolution, with a weaker bound.** It uses the lenient `get_class` (no `StuffContent` bound, `None` rather than a raise) rather than the provider seam, because importing either hub there is a pyright cycle. Deliberate — the schema is optional decoration on a graph-registry entry — and the honest resolution was to say so in `class_registry_access.py`'s docstring rather than change the code. Worth revisiting only if that module ever escapes the cycle.
diff --git a/wip/inputs/refines-hint-native-list-drift.md b/wip/inputs/refines-hint-native-list-drift.md
deleted file mode 100644
index 824b69b9b..000000000
--- a/wip/inputs/refines-hint-native-list-drift.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# Deferred: `refines` authoring-hint native-concept list drifts from `NativeConceptCode`
-
-**Status:** deferred follow-up — no code change in the YesNo track. Surfaced during the final gstack `/review` of PR #1028 (native `YesNo`), 2026-07-07.
-
-## What
-
-`pipelex/builder/concept/concept_spec.py` — the `ConceptSpec.refines` field hardcodes a list of native concepts in two places:
-
-- the field `description` (~line 250): `"(Text, Html, Image, Document, Number, Page, TextAndImages, JSON, Anything, Dynamic)"`
-- the field `examples` (~line 253): `["Text", "Html", "Image", "Document", "Number", "Page", "TextAndImages", "JSON"]`
-
-Both lists are **already non-exhaustive** against `NativeConceptCode`: they omit `SearchResult` and `Composite` today, and now also omit the new `YesNo`.
-
-## Why it does not block the YesNo PR
-
-This is the builder **spec** layer — a convenience authoring format surfaced to LLM agents, explicitly *not* the MTHDS language (see `pipelex/builder/CLAUDE.md`). The list is an LLM-facing authoring hint only. Runtime is unaffected: `refines = "YesNo"` validates and resolves `YesNoContent` (proven by `tests/unit/pipelex/core/concepts/concept_factory/test_yes_no_refinement.py`). Because pyright can't see string literals, the exhaustive-`match/case` discipline that guarantees every other new-native-code site was updated does not reach this hardcoded string.
-
-## Why defer rather than spot-patch
-
-Appending just `"YesNo"` would be a partial fix that leaves `SearchResult` and `Composite` still missing — it papers over a systemic drift rather than resolving it, and picking which subset to add is a judgment call, not a clear-cut fix. This is the same class of authoring-guidance surface (skills, editor completion lists) the YesNo plan already defers to the shared release-wave sweep.
-
-## The real fix (release-wave / Smart Inputs authoring-guidance sweep)
-
-Either complete the list (`YesNo`, `SearchResult`, `Composite`) **or** — better — derive it from `NativeConceptCode` at model-definition time so it can never drift again. Do this once, in the release-wave sweep, alongside the other authoring-guidance surfaces (`mthds-plugins` skills, `vscode-pipelex` completion lists), not as a per-native-concept patch.
diff --git a/wip/inputs/scalar-envelope-arm-asymmetry.md b/wip/inputs/scalar-envelope-arm-asymmetry.md
deleted file mode 100644
index d06094f87..000000000
--- a/wip/inputs/scalar-envelope-arm-asymmetry.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# Deferred: scalar-envelope arm asymmetry (bool preserves subclass, str flattens to Text)
-
-**Status:** deferred design note — no code change. Surfaced during the Phase 2 (YesNo envelope inputs) code review, 2026-07-07.
-
-## What
-
-`StuffFactory.make_stuff_from_stuff_content_or_data` handles the envelope form `{"concept": ..., "content": <scalar>}` with two adjacent scalar arms that treat a *refining* concept differently:
-
-- **Case 2.1d (bool → YesNo)** routes through `StuffContentFactory.make_stuff_content_from_concept_required`, which resolves the concept's `structure_class_name`. For a concept refining `YesNo` (e.g. a generated `urgency__IsUrgent` subclass of `YesNoContent`), this **preserves the refining subclass** — the produced content is an instance of that subclass, not the base `YesNoContent`.
-- **Case 2.1 (str → Text)** constructs a base `TextContent` directly, **flattening to base** regardless of the concept's own `structure_class_name`.
-
-So the same "scalar under a refining concept" pattern yields a subclass for bool and a base class for str.
-
-## Why it is deliberate (not a bug)
-
-The asymmetry is intentional and tested (see Checkpoint 2 note in `yesno-implementation-plan.md`):
-
-- `YesNo` refinements **do** generate a registered `StuffContent` subclass, and `subclass.model_validate(True)` fails while `subclass(yes_no=value)` works — so routing bool via the concept resolver is the only construction path that honors the refinement.
-- `Text`'s historical behavior flattens string content to base `TextContent`; changing that is out of scope for the YesNo track and would be a behavior change to an unrelated, long-standing path.
-- The no-coercion pin holds either way: a `"yes"`/`"no"` string under a YesNo concept still takes the str arm and errors as not-Text-compatible.
-
-## Follow-up to consider (Smart Inputs generalization)
-
-When Smart Inputs (D5/D10) generalizes these scalar-envelope arms into the shared `input_shaper.py`, revisit whether the str arm should also preserve a refining concept's `structure_class_name` instead of flattening to base `TextContent`. If the two scalar arms are unified under one interpretation matrix, this asymmetry should be resolved by design rather than left as two hand-written arms with divergent behavior.
-
-No action needed inside the YesNo track.
-
-## Phase-5 triage (Smart Inputs, 2026-07-08) — RE-DEFERRED, narrowed
-
-The shaper landed, and it **half-closes** this: the **bare** path — now the blessed default (a plain `"my question"` under a `legal.Question` input) — builds the refining subclass, because `InputShaper._build_item_content`'s TEXT arm wraps the value into the structure class's canonical dict and routes through `StuffContentFactory.make_stuff_content_from_concept_required`, which honors `Question`. So the everyday case is correct.
-
-The asymmetry now survives **only on the envelope escape hatch**: `{"concept": "legal.Question", "content": "text"}` still routes through `InputShaper._shape_explicit` → `StuffFactory.make_stuff_from_stuff_content_or_data` Case 2.1, which builds a base `TextContent` (concept kept, content not the subclass). Re-deferred rather than fixed because:
-
-- **Blast radius.** Closing it means changing `StuffFactory` Case 2.1's str→Text arm (a long-standing bottom-up path used well outside the shaper) or bolting a shaper-local post-build rewrite onto `_shape_explicit` — neither is the clean "unify under one matrix" the note imagined; both are surgery on the escape hatch for a case the blessed path already gets right.
-- **Near-zero practical impact.** A pure Text *refinement* adds no fields over `TextContent` (both carry `text`), so a base `TextContent` with concept `legal.Question` renders and validates identically to `Question(text=...)` for the common refinement; the subclass identity only matters to downstream code doing `isinstance`/subclass-field access on a Text refinement, which is rare.
-
-Real fix, when the bottom-up scalar-envelope arms are next revisited: make `StuffFactory` Case 2.1 resolve the concept's `structure_class_name` like the bool (2.1d) arm does, so both scalar-envelope arms preserve the refining subclass. Not worth pulling into the Smart Inputs finalize.
diff --git a/wip/inputs/smart-inputs-design.md b/wip/inputs/smart-inputs-design.md
deleted file mode 100644
index 7a5ee4186..000000000
--- a/wip/inputs/smart-inputs-design.md
+++ /dev/null
@@ -1,198 +0,0 @@
-# Smart Inputs — signature-driven input shaping: design
-
-Status: **design approved — all decisions D1–D11 decided with Louis** (D1–D4 on 2026-07-06, D5–D11 approved 2026-07-07 with two amendments: the D9 resolution via a native `YesNo` concept as a companion track, and the D11 template-generation `--explicit` flag). Branch `feature/Smart-inputs` (worktree `_smart`), based on main at v0.38.0 (includes TOML inputs #1022 and Optionals phase 1 #1021). Execution order across the whole track (YesNo → Datetime → Smart Inputs, one release) is in this folder's `README.md`. No implementation plan yet — that comes next.
-
-## 1. The problem
-
-When you run a pipeline, the expected shape of every input is already known: the pipe declares `inputs = { question = "legal.Question", priority = "scoring.Priority", cvs = "native.Document[]" }`, and that declaration is parsed into an `InputStuffSpecs` (name → `StuffSpec{concept, multiplicity, presence}`) before any input data is read. Yet the inputs file must be *self-describing*: anything beyond a bare string or list of strings needs the `{"concept": "...", "content": ...}` envelope, repeating type information the runtime already has.
-
-The root cause is architectural, and it is one line wide. Every surface — CLI (JSON/TOML file, inline JSON), Python API, hosted runner — funnels inputs through a single chokepoint: `WorkingMemoryFactory.make_from_pipeline_inputs` → `StuffFactory.make_stuff_from_stuff_content_or_data` (`pipelex/core/stuffs/stuff_factory.py:229`). The call site, `prepare_pipe_job` (`pipelex/pipeline/execution_seams.py:198`), **holds the resolved `pipe` object — `pipe.inputs` is the full signature — and never passes it down.** Interpretation is bottom-up, from the value's shape alone:
-
-| You provide | Declared input | What happens today |
-|---|---|---|
-| `"What are the fees?"` | `legal.Question` (refines Text) | **Silent mistype.** Becomes a `native.Text` stuff, not a `Question`. Runs anyway (`validate_before_run` checks presence only) — the graph, provenance, and concept-driven branching see the wrong type. |
-| `42` | `scoring.Priority` (refines Number) | **Hard error.** `int`/`float` aren't even in the `StuffContentOrData` protocol type. |
-| `{"invoice_number": "INV-001", "amount": 1250.0}` | `accounting.Invoice` (structured) | **Hard error** demanding the envelope: "does not have a 'concept' key". |
-| `[{"name": "Alice"}, {"name": "Bob"}]` | `crm.Person[]` | **Hard error** (list of dicts unsupported without envelope). |
-| `[]` | `contracts.Clause[]` | **Hard error** ("cannot create Stuff from empty list") — even though the signature names the item concept. |
-
-So today's behavior is a mix of hard errors (numbers, dicts) and silent type erosion (strings for refined concepts). Both stem from the same signature-blindness.
-
-The mental-model statement of the fix: **inputs are arguments to a typed function; the signature is the type annotation; the call site should not repeat the types.** Today's inputs file is a serialization of working memory (self-describing, mirror-of-internal-shape). It should instead be *values*, interpreted top-down against the declared signature — with the explicit envelope remaining as the escape hatch, not the default ceremony.
-
-Everything the fix needs already exists as primitives: `ConceptLibrary.is_compatible` (refinement/subsumption, `pipelex/libraries/concept/concept_library.py:98`), `Concept.get_structure_class()` (concept → pydantic model, `pipelex/core/concepts/concept.py:174`), `StuffContentFactory.make_content_from_value` (structure class + str/dict → typed content, `pipelex/core/stuffs/stuff_content_factory.py:12`), and `InputStuffSpecs` itself (`pipelex/core/pipes/inputs/input_stuff_specs.py`). They have just never been composed at the right seam.
-
-## 2. The shape at a glance
-
-Given this method:
-
-```toml
-[concept.Question]
-description = "A question about a legal document"
-refines = "Text"
-
-[concept.Priority]
-description = "A priority level from 1 to 5"
-refines = "Number"
-
-[concept.Invoice]
-description = "An invoice"
-structure = { invoice_number = "text", amount = "number" }
-
-[pipe.analyze_case]
-inputs = { question = "Question", priority = "Priority", invoice = "Invoice", exhibits = "native.Document[]" }
-output = "CaseAnalysis"
-```
-
-Today's `inputs.json`:
-
-```json
-{
- "question": {"concept": "legal.Question", "content": "What are the fees?"},
- "priority": {"concept": "legal.Priority", "content": {"number": 3}},
- "invoice": {"concept": "legal.Invoice", "content": {"invoice_number": "INV-001", "amount": 1250.0}},
- "exhibits": {"concept": "native.Document", "content": [{"url": "exhibit-a.pdf"}]}
-}
-```
-
-With smart inputs:
-
-```json
-{
- "question": "What are the fees?",
- "priority": 3,
- "invoice": {"invoice_number": "INV-001", "amount": 1250.0},
- "exhibits": ["exhibit-a.pdf"]
-}
-```
-
-Every value is interpreted against the declared spec: the string becomes a *`Question`* (the declared concept, correctly typed — not `native.Text`), the number a `Priority`, the dict validates against `Invoice`'s structure class, and the list satisfies `Document[]` element-wise with each string read as a URL/path. The envelope form still works everywhere and is now additionally *checked* against the declaration.
-
-## 3. Options considered for where the smartness lives
-
-- **A. Signature-driven shaping at the core seam (chosen).** Thread `pipe.inputs` into working-memory construction; interpret each provided value against its declared `StuffSpec`. One chokepoint, so every surface benefits at once; fixes both the hard errors and the silent mistyping; strictly widens what is accepted.
-- **B. CLI-layer preprocessing.** Shape the loose file into canonical envelope form inside the CLI before core sees it. Rejected: API/client/SDK users get nothing, the logic duplicates per surface, and the CLI would re-do signature resolution the runtime performs anyway. The smartness would sit on the wrong side of the funnel.
-- **C. Retype-after-build (promotion pass).** Keep bottom-up building, then promote each Stuff's concept to the declared concept when compatible. Rejected as a standalone: bare numbers and dicts explode before promotion ever runs. Retyping is a sub-mechanism of A, not an alternative.
-- **D. LLM-assisted adaptation.** When deterministic shaping fails (a dict whose fields *almost* match the structure, a CSV with different column names), optionally run a mapping step — Pipelex eating its own dog food. Deferred to a later phase as an explicit opt-in (see §8); v1 smartness must be deterministic and predictable.
-
-## 4. Decisions taken (D1–D4, with Louis, 2026-07-06)
-
-### D1 — Activation: always-on, all surfaces, no flag
-
-Signature-driven interpretation is the default behavior wherever a signature exists — CLI file/inline inputs, Python API `execute(inputs=dict)`, hosted runner. No `--smart-inputs` flag, no config knob. Rationale: it strictly widens the accepted input space; the only behavioral change to previously-working inputs is *better typing* (bare strings now typed as the declared concept instead of `native.Text`), which is a fix, not a regression. Consistent with the no-backward-compat principle. Alternatives rejected: opt-in flag (splits docs into two modes, adds ceremony), CLI-only (see option B above).
-
-Out of scope of the flag question: inputs passed as an already-built `WorkingMemory` bypass shaping entirely (they are already typed).
-
-### D2 — Multiplicity: auto-wrap singles, element-wise shaping, empty lists legal
-
-When the declared spec has multiplicity (`X[]` or `X[N]`):
-
-- A JSON list shapes **element-wise**: each item is interpreted against the item concept (strings, numbers, dicts — same rules as singulars), producing a `ListContent` typed with the declared concept.
-- A **single bare value auto-wraps** into a one-item list. Generous, matches the feature's spirit. Fixed-count `[N]` still validates the count — a single value only satisfies `[1]`.
-- An **empty list is legal** and produces an empty `ListContent` typed with the declared item concept. (Today it's an error because there is nothing to infer from; the signature removes the ambiguity. This also aligns with Optionals D4: emptiness is the plural "nothing".)
-- Conversely, a list provided where a singular is declared is a **hard error** (we can't guess which item was meant).
-
-### D3 — File-ish native concepts: a bare string is a URL/path
-
-When the declared concept resolves to a file-carrying native content class (Image, Document, and any concept refining them), a bare string is read as a URL/path: `"photo": "photo.jpg"` satisfies an `Image` input. Unambiguous because these concepts don't refine Text — there is no collision with text interpretation; the signature is what disambiguates. The existing `{"url": ...}` dict form keeps working (and is itself now shaped by the signature, no envelope needed). The CLI's relative-path resolution (`resolve_inputs_paths`) must learn to resolve these bare strings too — today it only walks `"url"` keys; it needs the signature to know which bare strings are paths (see D7, seams).
-
-### D4 — Failure mode: hard error with a rendered template hint
-
-When a provided value cannot be shaped to the declared concept — wrong scalar kind, dict failing structure validation, list where singular is declared, envelope naming an incompatible concept — the run fails with a typed error that names the input, the declared concept ref, what was provided, and **renders the expected shape** by reusing the template machinery (`InputStuffSpecs.build_inputs_template` / `StuffSpec.render_stuff_spec`). No fallback to bottom-up inference on failure: predictability beats forgiveness, and the silent-mistyping path must not survive through a back door. New error classes go in the relevant `exceptions.py` with class-level `error_domain`/`user_action` so docs pages, `type_uri`s, and RFC 7807 rendering come free.
-
-## 5. Decisions D5–D11 (approved 2026-07-07)
-
-### D5 — The interpretation matrix (the core of the mechanism)
-
-For each provided input with a declared `StuffSpec` (after D2's multiplicity peeling), dispatch on the *declared concept's* nature, not the value's shape:
-
-| Declared concept resolves to | Accepted bare values | Result |
-|---|---|---|
-| Text-refining (structure class ⊑ `TextContent`) | `str` | Declared concept's structure class instantiated with the text — the Stuff is typed as the *declared* concept |
-| Number-refining (⊑ `NumberContent`) | `int`, `float` (NOT `bool` — see D9) | Same, `number` field set |
-| Image/Document-refining | `str` (URL/path, D3) or `{"url": ...}`-style dict | Native content class from url |
-| Structured (⊑ `StructuredContent`) | `dict` | `structure_class.model_validate(dict)` — pydantic does the real validation |
-| `Dynamic` / `Anything` | anything | Fall back to today's bottom-up rules (the signature genuinely doesn't know) |
-| YesNo-refining (future, D9 companion track) | `true` / `false` | Typed yes/no content — this row activates when the native `YesNo` concept lands |
-
-Cross-kind mismatches are D4 errors: a string for a Number-refining concept is an error, not a parse attempt (`"42"` stays a string — no coercion across JSON types; JSON already distinguishes). Python-object inputs (`StuffContent` instances, `ListContent`) keep today's behavior, plus the D6 compatibility check.
-
-### D6 — Explicit forms are checked, and explicit wins when compatible
-
-The envelope `{"concept": C, "content": ...}` and direct `StuffContent` objects remain fully supported. Two changes:
-
-- **New check:** the provided/inferred concept must be compatible with the declared concept (`ConceptLibrary.is_compatible(tested=provided, wanted=declared)`), else D4 error. Today there is NO such check — you can feed any envelope concept to any input and nothing notices until something downstream misbehaves. This closes the other half of the silent-mistyping hole.
-- **Explicit wins when compatible:** if the caller names a concept that *refines* the declared one (passes `sales.UrgentQuestion` where `legal.Question` is declared... when compatible), the provided, more specific concept is kept on the Stuff. The caller is volunteering information; the signature only sets the lower bound.
-
-Envelope-shape collision rule: a dict whose keys are exactly `{"concept", "content"}` is always read as an envelope, even if the declared structured concept happens to have fields named `concept` and `content`. The escape hatch for that (pathological) structure is the envelope itself: `{"concept": "x.That", "content": {"concept": ..., "content": ...}}`. One deterministic rule, no sniffing.
-
-### D7 — Where the shaper lives (code seams)
-
-- New module `pipelex/core/memory/input_shaper.py` (name open — see §7): a pure function/class taking `(pipeline_inputs, input_specs: InputStuffSpecs, search_domain_codes)` → `WorkingMemory`, built on the existing `StuffContentFactory` / `is_compatible` primitives.
-- `WorkingMemoryFactory.make_from_pipeline_inputs` gains an `input_specs: InputStuffSpecs | None = None` parameter; `None` keeps today's bottom-up path (callers that genuinely have no signature).
-- `prepare_pipe_job` (`execution_seams.py:198`) passes `pipe.inputs` — the boundary contract, same choice the Optionals code made in the omitted-optional pass right below (`execution_seams.py:226`), NOT `needed_inputs()` (whose aggregation carries children's markers).
-- The signature to shape against is the **entry pipe's** declaration only; sub-pipe inputs flow through working memory internally and are never re-shaped.
-- CLI relative-path resolution (`_inputs_path_resolver.py`) currently rewrites relative `"url"` values before the library is loaded. With D3, bare strings for file concepts also need resolving — simplest is to move/duplicate path resolution after pipe resolution, or resolve lazily at shaping time by threading the base dir. To be settled at implementation-plan time.
-
-### D8 — Unknown input names are errors
-
-With a signature in hand, a provided name absent from `pipe.inputs` is a **typo detector**: error naming the unknown input and listing the declared ones. Today extras are silently carried in working memory and never read. Risk to weigh: any workflow deliberately over-providing inputs (shared inputs file across several pipes of a bundle?) would break — if that pattern matters, downgrade to a warning. Leaning error (loud beats silent), flagging explicitly because it is the one place smart inputs *narrows* accepted behavior.
-
-### D9 — Booleans: an error today, a native `YesNo` concept as a companion track
-
-There is no boolean native concept today (natives: Text, Number, Image, Document, HTML, TextAndImages, Page, JSON, SearchResult, Dynamic, Anything, Composite), so within Smart Inputs a bare `true` at the top level of an input has no declared target it can satisfy — D4 error mentioning that booleans live inside structured concepts (the structure-field level already has a `boolean` field type). Guards that hold regardless: Python `bool` is a subclass of `int`, so the Number arm must explicitly exclude `bool` before accepting ints; `null` at the top level is an error too — absence is expressed by *omitting* the key (Optionals), not by null.
-
-**Resolution (decided 2026-07-07): the gap is real and gets fixed by a native `YesNo` concept, shipped as its own companion track** (same pattern as the planned DATETIME native concept from the TOML-inputs track — a native concept touches LLM structured output, rendering, schema regen, the MTHDS spec and downstream mirrors, not just inputs). LLM pipelines constantly produce yes/no judgments ("does this contract contain a penalty clause?"), and today authors hack them as `Text` answering "yes"/"no" or a single-field structure.
-
-Naming: **`YesNo`**, chosen over Boolean (geeky), TrueFalse, Logical, Truth, and Checkbox. Precedents from user-friendly language history: Microsoft Access named its boolean field type literally "Yes/No"; Excel calls TRUE/FALSE "logical values" (the Logical function category); Inform 7 calls the type a "truth state"; Airtable/Notion/Salesforce say "Checkbox" (names the widget, not the meaning). `YesNo` reads as "the answer to a yes/no question" — exactly what these values are in LLM pipelines (`output = "YesNo"`), fits the plain-noun native family, and the PascalCase compound follows the TextAndImages precedent.
-
-When `YesNo` lands, the D5 matrix gains a row (YesNo-refining concept + JSON `true`/`false` → typed content) and this D9 error arm narrows to genuinely-unshapeable scalars. Open questions parked for that track: the content class field name (`YesNoContent` following the `NumberContent.number` pattern), rendered_plain as "yes"/"no", whether the lowercase `boolean` structure-field type gains a friendlier alias for consistency, and how PipeLLM generates a `YesNo` output.
-
-### D10 — Protocol widening (MTHDS-brand surface)
-
-`StuffContentOrData` / `PipelineInputs` live in `mthds/protocol/pipeline_inputs.py` — MTHDS-brand, spec territory. The type must widen to admit scalars, lists of dicts, and empty lists; honestly it converges toward "any JSON value | StuffContent forms". The interpretation semantics (this design's matrix) should be spec'd on the MTHDS side (the protocol spec + the mthds repo), since signature-driven reading is a property of the protocol's inputs format, not a Pipelex quirk — no `pipelex_` naming anywhere wire-visible. Downstream mirrors (mthds-python, mthds-js `PipelineInputs` types, cross-repo spec-suite rows, JSON schema if any) sweep after the pipelex release, same de-gate pattern as Optionals/TOML-inputs.
-
-### D11 — Interactions with adjacent features
-
-- **Optionals:** unchanged. An omitted `?` input still becomes a not-provided absence record; shaping only applies to *provided* values. Presence markers don't affect the interpretation matrix.
-- **Mock inputs (dry run):** unchanged; mock filling happens after user-input shaping, on whatever is still missing.
-- **CSV tabular inputs:** today the `{"url": "*.csv"}` → `ListContent[rows]` detection requires the envelope (it needs a concept). With shaping, the declared concept powers it: `"people": "people.csv"` (bare string, D3-style) or `"people": {"url": "people.csv"}` under a declared `csv_demo.Person[]` can trigger the CSV reader with no envelope. Nice compounding win; needs the multiplicity-declared arm to try tabular detection before the "string for structured concept" error.
-- **TOML inputs (#1022):** nothing format-specific — both parsers produce the same dict; shaping happens downstream of parsing. TOML templates (`--format toml`) simplify identically.
-- **Template generation (`pipelex build inputs`):** the **default becomes the light, signature-driven shape** — example *values* shaped like what smart inputs accepts — and the fully ceremonial envelope shape stays available behind a flag (decided 2026-07-07; proposed spelling `--explicit`, matching the docs' "Explicit Format" vocabulary; composes with the existing `--format json|toml`). This flips the default template from "here is the required ceremony" to "here are the values to fill in". One thing the envelope template teaches that the light one loses is *which concept each input expects* — in TOML mode the light template can carry that as comments (`# concept: legal.Question`); JSON has no comments, which is another reason to keep the `--explicit` form around.
-
-## 6. What this deliberately does not do (non-goals)
-
-- **No cross-type parsing.** `"42"` for a Number input is an error; JSON already distinguishes scalars. Smart means signature-driven, not guessy.
-- **No LLM in the loop** (v1). See §8.
-- **No fuzzy field matching** on structured dicts — pydantic validation semantics as-is (missing required field = error). Field-level aliasing/mapping is exactly where option D would start.
-- **No change to outputs** or to how working memory serializes — this is strictly the input boundary.
-
-## 7. Naming
-
-Candidates discussed for the feature name and the mechanism term:
-
-- **Smart Inputs** — feature/marketing name (branch already votes for it). Docs headline: "Smart Inputs — just provide the values."
-- **Signature-driven input shaping** — the mechanism term for spec/docs prose; "shaping" says values are molded to a declared shape.
-- Also considered: implicit inputs (sounds magic), loose inputs (sounds sloppy), natural inputs, call-site inference (accurate but jargon).
-
-Internal name proposal: `InputShaper` (module `input_shaper.py`). Open to taste.
-
-## 8. Later-phase candidates (design now, ship later)
-
-- **LLM-assisted adaptation (option D).** Opt-in (`--adapt` or similar): when deterministic shaping fails, run a small mapping pipe to convert the provided value into the declared structure (field renaming, unit conversion, free text → structured). Requires clear provenance ("this input was AI-adapted") and probably a dry-run preview. Powerful for agent-facing flows and the webapp uploader.
-- **Cross-input file references.** `"contract": "contract.txt"` for a Text-refining input — reading bare strings as *file paths to text* is tempting but ambiguous (is the string the content or a path?). Unlike D3, Text refinements collide head-on with literal strings. Any design here needs an explicit marker (e.g. `{"path": ...}`) rather than sniffing. Parked.
-- **Defaults / coalescing.** Input-level defaults belong to the Optionals phase-2 `??` track (see `wip/optionals/optionals-design.md` §15), not here — noted only because both features touch "what happens when the caller provides less".
-
-## 9. Surfaces impacted (checklist for the future plan)
-
-- `pipelex/core/stuffs/stuff_factory.py`, `stuff_content_factory.py` — shaping primitives; keep bottom-up path for the no-signature/Dynamic fallback.
-- New `pipelex/core/memory/input_shaper.py` (or similar) + `WorkingMemoryFactory.make_from_pipeline_inputs(input_specs=...)`.
-- `pipelex/pipeline/execution_seams.py` `prepare_pipe_job` — pass `pipe.inputs`.
-- `pipelex/cli/commands/run/_inputs_path_resolver.py` — bare-string path resolution for file concepts (D3/D7).
-- New error classes in the relevant `exceptions.py` + regenerated error pages (`make gep`).
-- `pipelex/core/pipes/inputs/input_renderer.py` + `pipelex build inputs` / `pipelex-agent inputs` CLIs — light templates by default, `--explicit` flag for the envelope form, concept comments in TOML mode (D11).
-- Companion track (separate design): native `YesNo` concept (D9) — NativeConceptCode entry, content class, structure-generator mapping, LLM output support, schema regen + mthds spec + downstream mirrors.
-- Protocol: `mthds` `pipeline_inputs.py` widening + spec section; downstream mirrors gated on release (D10).
-- Docs: `docs/building-methods/pipes/provide-inputs.md` rewrite (it shrinks dramatically), `docs/tools/cli/run.md`, `build/inputs.md`, agent CLI docs.
-- Tests: unit (shaping matrix, one test class per arm), e2e (bare-values inputs file through `pipelex run`), error-message snapshots for D4.
-- Skills: `mthds-inputs` skill (mthds-plugins) — post-release sweep with the rest of the cross-repo wave.
diff --git a/wip/inputs/smart-inputs-implementation-plan.md b/wip/inputs/smart-inputs-implementation-plan.md
deleted file mode 100644
index f3e35b84b..000000000
--- a/wip/inputs/smart-inputs-implementation-plan.md
+++ /dev/null
@@ -1,224 +0,0 @@
-# Smart Inputs — signature-driven input shaping: implementation plan
-
-Status: **COMPLETE — all phases 1–5 done, checkpoints cleared (as-built record, 2026-07-08).** Design home: `wip/inputs/smart-inputs-design.md` (**approved** — decisions D1–D11 settled). Branch `feature/Smart-inputs-phase5`, worktree `_smart`, based on main at v0.38.0 (TOML inputs #1022 + Optionals phase 1 #1021). Both native-concept prerequisites — `YesNo` (#1028) and `Date` (#1029) — landed first on this branch; Smart Inputs is the final track car, shipping in the same release wave. Remaining work is the shared release-cut cross-repo wave (D10 protocol widening + downstream mirrors), tracked in `wip/inputs/README.md`, **not** this plan. The only checkpoint step not run is the **user-gated finalize gstack `/review`** (CHECKPOINT 5).
-
-How to use this doc: work the phases in order, check boxes as you go, and at each **CHECKPOINT** run the checkpoint protocol (below) and fill in the "state" line so the next session cold-starts from here. This file is the active working plan (mirrors how YesNo/Date used the repo-root `TODOS.md`); on completion it gets archived to `wip/inputs/smart-inputs-implementation-plan.md` as the as-built record.
-
----
-
-## Checkpoint protocol — every CHECKPOINT is a HARD STOP
-
-At each checkpoint the executing agent **must stop** and do all three, in order:
-
-1. **Verify progress.** Run the gates for the phase: `make agent-check` (ruff/plxt/pyright-0/mypy-Success/cko), targeted pytest on the phase's new modules, and — at the phase's end — `make tb` (boot) and `make agent-test` (full suite). A checkpoint is not "reached" until its gates are green. Commit the phase as one commit; record the SHA.
-2. **Gather cold-start context.** Update this file: check the phase's boxes, fill the CHECKPOINT "state" line (what landed, commit SHA, decisions taken, anything that fought back), and append any new settled decision to the micro-decisions log. If a doubt or tradeoff surfaced, capture it as a new `wip/inputs/<name>.md` note rather than silently deciding (the "defer on doubt" rule the Date track used). The goal: a fresh session can resume from this file with zero lost context.
-3. **Fan out a code review.** Spawn a **Sonnet-5 sub-agent** running the `/code-review` skill (or the `pr-review-toolkit:code-reviewer` agent) over **only this phase's changes**. **Pointer-only context** — hand it the phase's commit SHA, `git diff <phase-base>..HEAD`, or the working-tree files, and nothing else: **never** the plan, the design rationale, the decision letters, or your own conclusions. The reviewer's eyes must stay independent. Goal per the brief: *clean solid software, not over-engineering* — no impossible-scenario guards, smallest correct surface. Triage its findings: apply genuine wins, dismiss the unreachable, and defer design-tradeoff findings as `wip/inputs/<name>.md` notes. Record the round in the state line.
-
-The **final** checkpoint (Phase 5) additionally runs the heavier **gstack `/review`** (Opus fan-out: testing + maintainability + adversarial-red-team, each pointer-only) as the finalize pass — **user-gated, never launch it unprompted** (it is billed).
-
----
-
-## 0. Cold-start context — read this first
-
-**What ships:** the inputs a caller provides are interpreted **top-down against the pipe's declared signature** instead of bottom-up from their shape alone. A bare string becomes the *declared* concept (a `legal.Question`, not `native.Text`); a bare number satisfies a `Number`-refining input; a bare dict validates against a structured concept; a JSON list shapes element-wise into `ListContent[declared]`; the `{concept, content}` envelope stays as an escape hatch and is now *compat-checked*. Full problem statement, the shape-at-a-glance example, and D1–D11 with rationale are in `smart-inputs-design.md` — do not relitigate. The plan starts from design **§9 "Surfaces impacted"**.
-
-**The mechanism in one sentence:** every surface (CLI file/inline, Python API, hosted runner) funnels inputs through one chokepoint that is signature-blind today; thread the signature into it and dispatch each value on the *declared concept's nature*.
-
-**Key mechanism facts** (re-verified against the worktree 2026-07-07 — line numbers approximate, re-grep each symbol before citing):
-
-- **The chokepoint.** `StuffFactory.make_stuff_from_stuff_content_or_data` (`pipelex/core/stuffs/stuff_factory.py:230`) shapes each value bottom-up. Its Case 1 (direct: str→Text, list[str]→Text list, `StuffContent`/`ListContent` passthrough, list[StuffContent]) and Case 2 (envelope `{concept, content}` — arms 2.1/2.1d bool→YesNo/2.1e·f date/2.3 StuffContent/2.5 dict/2.6 list) are the behavior Smart Inputs makes top-down. The terminal `Unexpected type for content value` is `:654`. **No signature is consulted anywhere in it.** YesNo/Date already added compat-checked scalar-envelope arms here (2.1d/2.1e/2.1f) — Smart Inputs generalizes that pattern.
-- **The single seam to wire.** `make_from_pipeline_inputs` (`pipelex/core/memory/working_memory_factory.py:68`) has **exactly one caller**: `prepare_pipe_job` (`pipelex/pipeline/execution_seams.py:198`). That function already holds `pipe.inputs` and already reads `pipe.inputs.named_stuff_specs` a few lines down for the Optionals pass (`:226`). `prepare_pipe_job` is itself the single funnel for **all** surfaces — called by `bundle_validator.py` (validate/dry-run), `pipeline_run_setup.py` (real runs), and `dry_run_in_process.py`. Wiring the signature into that one `make_from_pipeline_inputs` call ⇒ D1 (all surfaces) for free.
-- **`pipe.inputs` is an `InputStuffSpecs`** (`pipelex/core/pipes/pipe_abstract.py:95`, `= Field(default_factory=InputStuffSpecs)`). `InputStuffSpecs` (`pipelex/core/pipes/inputs/input_stuff_specs.py:38`) is a `RootModel[dict[str, StuffSpec]]`; useful members already present: `.root`, `.named_stuff_specs`, `.declared_names`, `.required_names`, `.is_variable_existing(name)`, `.get_required_stuff_spec(name)`, `.build_inputs_template()`, `.render_inputs()`. Each `StuffSpec` (`pipelex/core/pipes/stuff_spec/stuff_spec.py:10`) = `concept: Concept` + `multiplicity: VariableMultiplicity | None` + `presence: PresenceMarker`, with `.is_multiple()` and `.render_stuff_spec(fmt)`.
-- **Multiplicity encoding (D2).** `VariableMultiplicity = bool | int` (a **type alias**, not a class, `pipelex/core/pipes/variable_multiplicity.py:10`): `None` = single, `True` = `X[]` (variable list), `int N` = `X[N]` (fixed count). `PresenceMarker(StrEnum)` = PLAIN/OPTIONAL/FORCE with `.is_optional`. Peel multiplicity first, then dispatch the item.
-- **Concept-nature detection (D5).** There is **no** single "which native family does this concept refine" helper. The only tool is `ConceptLibrary.is_compatible(tested_concept, *, wanted_concept, strict=True)` (`pipelex/libraries/concept/concept_library.py:97`) called once per candidate native — exactly what `stuff_factory.py` does today for Text/YesNo/Date (`:477/:494/:504/:522`). `strict=True` = refinement/structural-equivalence only (no field-subset fallback). The 14 native codes (`NativeConceptCode`, `pipelex/core/concepts/native/concept_native.py:22`): Dynamic, Text, Image, Document, Html, TextAndImages, Number, YesNo, Date, Page, JSON, SearchResult, Anything, Composite. `Concept.get_structure_class()` (`pipelex/core/concepts/concept.py:174`) → the content class; a concept is "structured" when that class ⊑ `StructuredContent` and is not a native. `are_concept_compatible` special-cases Dynamic.
-- **Building primitives (reuse, don't reinvent).** `StuffContentFactory.make_content_from_value(subclass, *, value)` and `make_stuff_content_from_concept_required(concept, *, value)` (`pipelex/core/stuffs/stuff_content_factory.py:14/:59`) already turn a str/bool/date/dict into typed content honoring refining subclasses. `make_stuff_content_from_concept_with_fallback` falls back to `TextContent` when unregistered. The shaper composes these + `is_compatible` — the new code is the *top-down dispatch*, not new content builders.
-- **Protocol is runtime-unvalidated (D10 is release-gated, NOT a blocker).** `PipelineInputs` / `StuffContentOrData` (`mthds/protocol/pipeline_inputs.py`, in the **mthds-python** pinned dep) is a bare `TypeAlias` (`dict[str, StuffContentOrData]`), **verified**: no pydantic model, no runtime validation. So a bare `int`/`float`/`bool` in the inputs dict **flows straight to the shaper at runtime** even though the static type doesn't admit it. Core-scope Smart Inputs shapes bare scalars *before* this seam and works day one; the D10 widening only makes the type honest for typed SDK/API callers + downstream mirrors, and rides the release wave (Optionals/TOML-inputs precedent).
-- **Path resolution today (D3/D7).** `resolve_inputs_paths(inputs_dict, *, base_dir)` → `resolve_url_in_value` (`pipelex/cli/commands/run/_inputs_path_resolver.py:75/:45`) recursively rewrites relative paths **only under keys literally named `"url"`** — it has **no** view of the pipe/signature. Called at `_run_core.py:162` and `stdin_resolver.py:191` (base_dir = inputs file's parent). D3 needs bare strings for Image/Document-family concepts resolved too; that needs the signature (Phase 3 settles where).
-- **CSV compounding (D11).** `_try_make_csv_list_stuff(concept, *, content, name, code)` (`stuff_factory.py:138`, called from Case 2.5 `:555`) fires when `content` is exactly `{"url": "<tabular-path>"}` under a **non-native** concept → `ListContent[row-concept]` via `concept.get_structure_class()`. With shaping, `"people": "people.csv"` (bare, D3) or `{"url": "people.csv"}` under a declared `Person[]` can trigger it with no envelope.
-- **D8 has no home today.** Nothing compares provided input names to `pipe.inputs`; `make_from_pipeline_inputs` blindly `add_new_stuff`s every key, and `execution_seams.py:210`'s `provided_names` is used only to subtract from mock-fill. `InputStuffSpecs.is_variable_existing` / `.declared_names` are the predicates a D8 check uses. The shaper is the natural home (it holds both the provided dict and the specs).
-- **Template rendering today (D11).** `input_renderer.py` (`build_inputs_template`, `render_inputs`, `render_inputs_toml`, `serialize_inputs_template_to_toml` via tomlkit) → `InputStuffSpecs.build_inputs_template()` → per-spec `render_stuff_spec(JSON)` → `Concept.render_concept_representation(is_multiple=)` → `ConceptRepresentationGenerator._generate_basic_value` (`pipelex/core/concepts/concept_representation_generator.py:294`, has the temporal branch). Today this emits the **envelope** form; D11 flips the default to bare values. CLI entrypoints: `pipelex build inputs` = `pipelex/cli/commands/build/inputs/pipe_cmd.py` + `_inputs_core.py` (format switch `:92`); `pipelex-agent inputs` = `pipelex/cli/agent_cli/commands/inputs/{pipe_cmd,_inputs_core}.py` + `builder/operations/inputs_ops.py:build_inputs_for_pipe`. Both already carry `--format json|toml` (`InputsTemplateFormat`).
-- **Error homes (D4).** New shaping errors belong in `pipelex/core/memory/exceptions.py` (the shaper's package). The precedent to copy is `pipelex/cli/commands/run/exceptions.py::InputsTimeOnlyNotSupportedError`: class-level `error_domain = ErrorDomain.INPUT`, `user_action = UserAction(kind=UserActionKind.CHANGE_INPUT, detail=…)`, `_authors_caller_facing_message = True`. `OptionalValueAbsentError` (`pipelex/core/pipes/inputs/exceptions.py`) is the other in-tree example. Every error class subclasses `PipelexError`; run `make gep` after adding/renaming.
-
-**Test + e2e layout** (extend these, don't invent new trees): unit — `tests/unit/pipelex/core/stuffs/test_stuff_content_factory.py`, `test_stuff_factory_implicit_memory.py` + its `data.py` (the case table YesNo/Date extended), `tests/unit/pipelex/core/memory/` (working-memory tests); new shaper tests go in `tests/unit/pipelex/core/memory/input_shaper/` (one TestClass per module, mirroring `stuffs/date_content/`). e2e — `tests/e2e/pipelex/pipes/<feature>/<bundle>/<bundle>.mthds` + a `test_*.py` (precedents: `tests/e2e/pipelex/pipes/{date,yes_no}/`).
-
-**House rules that bite here:** TDD (tests first, red→green); keyword-only args (bare `*` after the subject — `make cko` gates, plus a PostToolUse hook at edit time); error classes only in `exceptions.py` modules; exhaustive `match/case` over enums, **never** `case _`; `make agent-check` after code changes; `make agent-test` before wrapping a session (`make atd` if it hangs); `make tb` for a quick boot check; `make gep` regenerates error pages; no hardcoded counts in docs/comments; changelog entries under `[Unreleased]`; docs updated in the same change (§ "Documentation" in CLAUDE.md).
-
----
-
-## Gaps surfaced while planning — confirm defaults (recommendations given, loop not blocked)
-
-The design settled D1–D11; three corners it doesn't spell out. Recommended defaults let execution proceed; flag to Louis if any feels wrong.
-
-- **Out-of-matrix natives.** D5's matrix names Text / Number / Image·Document / Structured / Dynamic·Anything / YesNo / Date. It is silent on a declared input concept refining **Html, JSON, Page, TextAndImages, SearchResult, Composite**. **Recommendation:** treat these like Dynamic — *no* new top-down arm; fall back to today's bottom-up `StuffFactory` for that single input (preserves current behavior, widens nothing, breaks nothing). Revisit per-native only if a real need appears. Confirm.
-- **D3 path-resolution seam.** Where do bare strings for Image/Document concepts get relative-path-resolved, given the current resolver is signature-blind and pre-core? **Recommendation:** make the CLI resolver signature-aware — pass the resolved pipe's `InputStuffSpecs` into `resolve_inputs_paths` so it resolves bare strings whose declared concept is Image/Document-family *in addition to* `"url"` keys — keeping path resolution a CLI concern (API/SDK callers pass absolute URLs/storage URIs, no base_dir). Settle the exact mechanism as Phase 3's first task (it hinges on pipe-resolution ordering in `_run_core.py`).
-- **D8 severity.** Design leans **error** on unknown input names but flags the shared-inputs-file-across-pipes risk. **Recommendation:** error (loud beats silent), with a message that lists the declared names — the one place Smart Inputs narrows behavior. Confirm; downgrade to a warning only if a real over-provisioning workflow surfaces.
-
----
-
-## Phase 1 — The `InputShaper` core (D5 matrix, D2 multiplicity, D6 compat, D8 names, D4 errors)
-
-Build the shaper as a **pure, fully unit-tested unit that is not yet wired** into any run. It reuses the existing primitives (`StuffContentFactory`, `is_compatible`, and delegates Dynamic/out-of-matrix/already-built values to the current `StuffFactory`); the new code is the top-down dispatch. Tests construct `InputStuffSpecs` fixtures directly — no seam needed.
-
-- [x] **Tests first (red→green).** New `tests/unit/pipelex/core/memory/input_shaper/` (one TestClass per module + shared `data.py`): one arm per D5 row — Text-refining ← str; Number-refining ← int/float and **rejects bool** (the `bool ⊑ int` trap) and rejects `"42"` (no cross-type parse); YesNo-refining ← bool; Date-refining ← date/datetime obj + ISO str; Image/Document-refining ← bare str + `{"url":…}` dict; Structured ← dict (pydantic validates; missing-required-field → D4); Dynamic/Anything ← bottom-up passthrough. D2: list shapes element-wise into `ListContent[declared]`; single bare value auto-wraps; empty list → empty `ListContent[declared]`; `X[N]` count-checked (single satisfies `[1]`, not `[2]`); list-under-singular → D4. D6: envelope `{concept, content}` compat-checked, explicit-refining-concept wins, incompatible → D4; the exact-two-keys collision rule. D8: unknown provided name → error listing declared names. D9 guards: top-level `null`/`None` → D4 (absence = omit key); bool never leaks into the Number arm. Each failure asserts the rendered expected-shape template appears in the message. **DONE**: 4 test modules (`test_scalar_arms.py`, `test_multiplicity.py`, `test_explicit_forms.py`, `test_errors.py`) + `conftest.py` (autouse class-scoped library setup) + `data.py` (refining/structured content classes + `build_input_specs` helper), 39 tests, all green.
-- [x] **New module `pipelex/core/memory/input_shaper.py`** — `InputShaper.shape(pipeline_inputs, *, input_specs: InputStuffSpecs, search_domain_codes) -> WorkingMemory`. Internal `resolve_input_kind(concept) -> InputKind` (new `StrEnum`: TEXT/NUMBER/YES_NO/DATE/IMAGE/DOCUMENT/STRUCTURED/DYNAMIC) composed from ordered `is_compatible(concept, get_native_concept(X), strict=True)` checks + the structured/dynamic fallback. Per-input algorithm: D8 name check (batch, first) → look up spec → explicit-form arm (D6 compat, post-hoc) → D9 null guard → D5 kind dispatch (DYNAMIC short-circuits to bottom-up before multiplicity peel) → D2 multiplicity peel → build `Stuff` typed as the declared (or compatible-more-specific) concept. Delegate Dynamic / out-of-matrix natives / explicit forms to `StuffFactory.make_stuff_from_stuff_content_or_data`.
-- [x] **New error classes in `pipelex/core/memory/exceptions.py`** (D4) — `InputShapingError` base + `WrongScalarKindError`, `ListWhereSingularError`, `MultiplicityCountMismatchError`, `StructureValidationError`, `ExplicitConceptIncompatibleError`, `UnknownInputNameError`, `NullInputError`. `error_domain = ErrorDomain.INPUT`, `_authors_caller_facing_message = True`; base carries a per-instance `user_action` (advice differs per failure). Each `make(...)` names the input, the declared concept ref, what was provided, and **renders the expected shape** via `stuff_spec.render_stuff_spec(JSON)`. `make gep` ran (new pages written).
-- [x] `make agent-check` green (pyright 0 / mypy Success / cko PASSED); targeted pytest on the new modules green (39); `make tb` green (9); core memory/stuffs/concepts suite green (855).
-
-### CHECKPOINT 1 — the shaper exists, is unit-green, and is NOT yet wired
-
-Run the checkpoint protocol (verify · cold-start update · Sonnet-5 `/code-review` fan-out, pointer-only). This is the largest reviewable unit and the one most prone to over-engineering — the review's mandate is *smallest correct surface*.
-
-State: **REACHED (2026-07-07).** The `InputShaper` core exists, is unit-green (41 tests), and is NOT wired into any run (pure; Phase 2 wires the seam). Gates: `make agent-check` fully green (pyright 0 / mypy Success / cko PASSED), `make tb` green (9), core memory/stuffs/concepts suite green (855). Cold-start micro-decisions appended below. Committed as the single Phase-1 commit on `feature/Smart-inputs` (message `feat(core): Smart Inputs Phase 1 — the InputShaper core (not yet wired)`; find via `git log --grep "Smart Inputs Phase 1"`).
-
-**Review round 1** — Sonnet-5 `pr-review-toolkit:code-reviewer`, pointer-only (working-tree diff, no plan/design/rationale). One **Critical** + two Minor. Triage:
-
-- **Critical (APPLIED).** A bare Python `list` of already-built `StuffContent` items (e.g. `[Question(text="a"), Question(text="b")]` for a declared `Question[]` — the documented `StuffContentOrData` Case-1.4 form, handled bottom-up today) crashed in per-item shaping (`_build_item_content` only accepted bare scalars/dicts) → `WrongScalarKindError`. Genuine regression vs today's behavior / D1's "no regression, only better typing". **Fix:** `_build_item_content` now handles a `StuffContent` item by building it bottom-up (concept inferred from its class) + D6 compat-check against the declared item concept, mirroring the wrapped-`ListContent` path; `search_domain_codes` threaded down `_shape_with_multiplicity`/`_shape_list`/`_build_item_content`. This preserves D2 for the singular case (list-where-singular still errors) and fixed-count checks. Two regression tests added (`test_list_of_prebuilt_stuff_content_items`, `test_list_of_prebuilt_incompatible_item_raises`).
-- **Minor (no change).** The `InputKind.DYNAMIC` arm in `_build_item_content`'s match is dead but a justified exhaustive-match guard (repo forbids `case _`); reviewer agreed.
-- **Minor (APPLIED).** `test_errors.py`'s `expects_rendered_shape` column was always `True` (dead flexibility) → dropped; the rendered-shape assertion is now unconditional.
-
-No design-tradeoff findings to defer. The one pre-existing asymmetry the shaper does not close (envelope escape hatch still builds plain `TextContent` for a Text-refining concept via `StuffFactory` Case 2.1c, while the bare path builds the refining subclass) is already tracked in `wip/inputs/scalar-envelope-arm-asymmetry.md` for Phase 5 triage.
-
----
-
-## Phase 2 — Wire the seam: top-down shaping goes live on all surfaces (D7, D1, D8)
-
-The behavior-change phase. Small and contained (one factory param, one call site), but this is where real runs start interpreting values top-down — the riskiest integration point, hence its own checkpoint.
-
-- [x] **Tests first.** e2e: a **bare-values inputs file** through the runner in `--dry-run`, asserting each Stuff carries the **declared** concept (not `native.Text`). Error tests for a D4 mismatch and a D8 unknown name. A regression test pinning that a **no-signature** caller (`input_specs=None`) still gets today's bottom-up behavior. A test that a bare `int` survives to the shaper despite the narrow `PipelineInputs` alias (runtime-reachability pin). **DONE**: e2e bundle `tests/e2e/pipelex/pipes/smart_inputs/smart_inputs_triage/` + `test_smart_inputs_dry_run.py` (4 cases: bare-values→declared concepts, empty-list→empty ListContent, wrong-scalar-kind→`WrongScalarKindError`, unknown-name→`UnknownInputNameError`); 2 integration pins added to `test_working_memory_factory.py`. Used `PipelexMTHDSProtocol.execute(...)` (the date/yes_no pattern) rather than shelling the CLI — same seam.
-- [x] **`WorkingMemoryFactory.make_from_pipeline_inputs`** gains `input_specs: InputStuffSpecs | None = None`: `None` → today's bottom-up loop (unchanged); present → delegate to `InputShaper.shape(...)`. **DONE** (top-level `InputShaper` import — no cycle).
-- [x] **`prepare_pipe_job`** passes `input_specs=pipe.inputs` — the method-boundary contract. **DONE**. Confirmed exactly one production caller of `make_from_pipeline_inputs` (the seam); all other callers are tests that stay on the `input_specs=None` bottom-up path. Validator / real-run / dry-run all inherit shaping through `prepare_pipe_job`.
-- [x] **D8 goes live**: unknown provided names now error. **DONE** — and the full suite proved **zero** in-tree fixture relied on silently-ignored extra inputs (no fixture loosening needed).
-- [x] `make agent-check` (pyright 0 / mypy Success / cko PASSED) + full `make agent-test` green. **The only full-suite failures were the 3 pre-existing Phase-1 InputShaper isolation failures — now FIXED here** (see state line); no shaping-caused fallout across the suite.
-
-### CHECKPOINT 2 — top-down shaping is live end-to-end
-
-Run the checkpoint protocol. Emphasize in the cold-start update: any existing-test fallout and how it was resolved (a genuine behavior fix vs a test that encoded the old bottom-up mistyping). Sonnet-5 `/code-review`, pointer-only.
-
-State: **REACHED (2026-07-07).** Top-down shaping is live on all surfaces through the one seam. Wiring: `make_from_pipeline_inputs(input_specs=…)` delegates to `InputShaper.shape` when specs are present (else bottom-up, verbatim); `prepare_pipe_job` passes `input_specs=pipe.inputs`. D8 is live. Committed as the single Phase-2 commit `7fe279d51` (`feat(core): Smart Inputs Phase 2 — top-down shaping goes live on all surfaces`). Gates: `make agent-check` green (pyright 0 / mypy Success / cko PASSED), full `make agent-test` **green**.
-
-**Existing-test fallout: NONE of the behavior kind.** Turning D8 live perturbed zero in-tree fixtures — no bundle relied on silently-ignored extra inputs, so no fixture was loosened. The only full-suite red was the **3 pre-existing Phase-1 InputShaper isolation failures** (bare class-name collision in the shared kajson class registry: an integration test's `Person(role)`/`Invoice` silently overwrote the shaper's), which are **fixed here** by `Shaper`-prefixing the shaper test's structured class **and** concept codes (they must match — the bottom-up factory infers a prebuilt `StuffContent`'s concept from its class name). Proven deterministic by running the colliding integration suite + shaper unit suite in one process (`-n0`) → all green. This supersedes the "pre-existing full-suite fail" note in the project memory.
-
-**Review round 1** — Sonnet-5 `pr-review-toolkit:code-reviewer`, pointer-only (commit SHA + diff, no plan/design/rationale). **Correctness-clean, zero findings.** It independently confirmed the two failure modes this phase could have had: (a) controller pipes — `PipeAbstract.generic_validate_inputs_with_library` (`pipe_abstract.py`, `@final`) enforces exact name-set equality between `self.inputs` and `needed_inputs().declared_names` at library-load time, so the D8 check on `pipe.inputs` can never diverge from what a controller actually needs (validates the `pipe.inputs`-not-`needed_inputs()` choice); (b) the new e2e fixture's inline `[concept.Invoice.structure]` registers under a **domain-qualified** class name (`smart_inputs_demo__Invoice` via `make_qualified_structure_class_name`), not bare `Invoice`, so it does not reintroduce the collision the rename fixes. Nothing to apply, nothing to defer.
-
----
-
-## Phase 3 — File-ish concepts (D3/D7) + CSV-by-signature (D11 compounding)
-
-- [x] **Settle the D3 path-resolution mechanism** (first task — decide, then implement). **DECIDED: thread `inputs_base_dir` into the shaper** (the plan's second option), NOT the signature-aware CLI resolver. Rationale below. Base_dir is a `Path | None` optional param, `None` for API/SDK/in-process callers; the shaper is the ONE place that both knows each input's declared-concept nature and does the building, so it resolves file-ish AND CSV relative paths in one spot with no concept-nature detection duplicated into the CLI and no pipe-resolution reordering in `_run_core.py`.
-- [x] **Tests first.** Unit: `test_file_paths.py` (bare relative→base_dir-resolved, absolute/remote/scheme untouched, no-base_dir→CWD contract, list element-wise, `{"url":…}` dict left to CLI walk) + `test_csv_by_signature.py` (bare + exact `{"url":…}` under `ShaperPerson[]`, relative+base_dir, fixed-count ok/mismatch, singular→wrong-kind, non-tabular fall-through, sibling-keys stays record, remote→CsvError). E2e: `smart_inputs_files` bundle + `test_smart_inputs_files_dry_run.py` (bare photo/exhibits/csv resolve; `{"url":…}` form matches bare; normalization disabled so the resolved path is assertable). CLI wiring: `parse_cli_inputs` base-dir contract in `test_stdin_resolver.py`, human-CLI `inputs_base_dir` in `test_run_core_execution.py`, agent-CLI in `test_run_core_inputs_base_dir.py`.
-- [x] Implement the D3 bare-string→url/path arm (shaper Image/Document dispatch resolves via `_resolve_local_path`) + CSV detection (`_try_shape_csv` ahead of element-wise shaping, reusing extracted `StuffFactory.try_make_csv_list_content`); threaded `inputs_base_dir` shaper→factory→`prepare_pipe_job`→`pipeline_run_setup`→runner ctor→both CLIs.
-- [x] `make agent-check` green (pyright 0 / mypy Success / cko PASSED); targeted e2e green; `make tb` green (9); full `make agent-test` green.
-
-### CHECKPOINT 3 — file-ish inputs and CSV-by-signature work
-
-Run the checkpoint protocol. Sonnet-5 `/code-review`, pointer-only.
-
-State: **REACHED (2026-07-07).** Bare file-ish strings (Image/Document-refining) and bare CSV references (under a declared structured `X[]`) now shape top-down with no envelope, and relative paths resolve against the inputs file's directory. **D3 mechanism = `inputs_base_dir` threaded into the shaper** (settled — see the first checkbox + micro-decisions; the signature-aware-CLI-resolver alternative was rejected because it would split path resolution across two places, duplicate the shaper's concept-nature detection in the CLI, and force pipe-resolution reordering in `_run_core.py`). `is_relative_local_path` moved from the CLI resolver to `pipelex/tools/uri/uri_resolver.py` (shared, no re-export). `StuffFactory._try_make_csv_list_stuff` split into a public content-returning `try_make_csv_list_content` (shaper + Case-2.5 both call it; Case 2.5 behavior byte-identical). Agent-CLI `parse_cli_inputs` now returns a `ParsedCliInputs` NamedTuple (`pipeline_inputs` + `inputs_base_dir`) — the file-load branch carries the parent dir; inline-JSON / stdin carry `None`. Both PR #1030 threads (Codex + cubic on the bare-file-path gap) are now answerable+resolvable. Gates: `make agent-check` fully green, `make tb` green (9), full `make agent-test` **green**. Micro-decisions appended below. Commit: single Phase-3 commit `d73d1aa3c` (`feat(core): Smart Inputs Phase 3 — file-ish inputs (D3) + CSV-by-signature (D11)`).
-
-**Review round 1** — Sonnet-5 `pr-review-toolkit:code-reviewer`, pointer-only (commit `d73d1aa3c` + diff, no plan/design/rationale). **Correctness-clean, zero findings.** It traced the full `inputs_base_dir` chain, verified the CLI-level `resolve_inputs_paths` (`"url"`-key walk) and shaper-level `_resolve_local_path` (bare strings) are non-overlapping + idempotent on absolute paths (no double-resolution), re-ran ruff/pyright/mypy/cko + the new unit + e2e tests, and confirmed the `StuffFactory` split is byte-identical (all Case-2.5 gates still exercised). It named two **intentional** boundaries (not bugs, not new — both pre-existing or documented): (a) the `--runner api` path doesn't get D3 base_dir resolution (deliberate — API callers pass absolute urls; captured in the micro-decisions), and (b) a bare CSV path *list-wrapped* (`["people.csv"]`) under `Person[]` is a loud `WrongScalarKindError` rather than CSV-detected (CSV detection runs on the value the caller wrote, before the multiplicity auto-wrap; clear non-silent failure). Nothing to apply, nothing to defer.
-
----
-
-## Phase 4 — Template generation flips to the light shape (D11)
-
-The default `pipelex build inputs` / `pipelex-agent inputs` template becomes the **light, signature-driven values** (example values shaped like what the shaper accepts); the ceremonial envelope form moves behind an **`--explicit`** flag, composing with the existing `--format json|toml`. TOML light templates carry the declared concept as a comment (`# concept: legal.Question`); JSON can't (no comments), which is itself a reason to keep `--explicit`.
-
-- [x] **Tests first.** Golden-template tests: light JSON + light TOML (with concept comments) for a mixed-signature pipe; `--explicit` reproduces today's envelope template; both compose with `--format`. **Round-trip test** (the bug the Date `/review` caught — a template that won't `run` is worthless): `build inputs` (light default) → `run --dry-run` succeeds against the same pipe. **DONE**: unit `tests/unit/pipelex/core/pipes/test_input_renderer_light.py` (delighten arms + light-TOML inline-table/comment/ordering, mocked kind — no library); integration golden `tests/integration/pipelex/core/pipes/test_input_renderer_light_golden.py` (real triage+files bundles, real `resolve_input_kind` — light JSON, light TOML+comments, `--explicit` reproduces envelope, both formats compose); round-trips — in-process `tests/e2e/pipelex/pipes/smart_inputs/test_smart_inputs_light_roundtrip.py` (render light JSON → dry-run COMPLETED + declared concepts) and real-binary `tests/e2e/pipelex/cli/test_toml_inputs_build.py` (rewritten: light-default TOML → dry-run **and** `--explicit` TOML → dry-run).
-- [x] Implement: light-vs-explicit switch. **Mechanism = a post-hoc delighten transform in `input_renderer` (NOT threading a flag through `Concept.render_concept_representation` / `render_stuff_spec` / `InputStuffSpecs.build_inputs_template`).** Those stay the single-purpose envelope generator (outputs/schema/runner-code still use them unchanged); `input_renderer.build_inputs_template(explicit=…)` builds the envelope then unwraps it per declared-concept kind via `InputShaper.resolve_input_kind` (single source of truth, no duplicated classification). `--explicit` added to `build inputs` (pipe/bundle/method + `_inputs_core`) and `pipelex-agent inputs` (pipe/bundle/method + `_inputs_core` + `inputs_ops`). TOML concept comments + inline-table layout via `serialize_inputs_template_to_toml(light=True, concept_comments=…)`.
-- [x] `make agent-check` green (pyright 0 / mypy Success / cko PASSED); targeted tests green; `make tb` green (9); full `make agent-test` **green**.
-
-### CHECKPOINT 4 — templates default to light, `--explicit` restores the envelope
-
-Run the checkpoint protocol. Sonnet-5 `/code-review`, pointer-only.
-
-State: **REACHED (2026-07-07).** `pipelex build inputs` / `pipelex-agent inputs` now emit the **light** signature-driven template by default (bare string for Text-refining, bare number for Number-refining, content dict for structured, bare URL for file-ish, all wrapped in a list for declared-multiple); the ceremonial `{concept, content}` envelope moved behind **`--explicit`**, composing with `--format json|toml`. Light TOML uses **inline tables** (so a bare scalar declared after a structured value stays valid TOML — the ordering footgun) and carries the declared concept as a `# concept: <ref>` comment per key **on both CLI surfaces** (human file + agent stream — see review round 1). **D3-style file-ish inputs and structured-lists round-trip** (verified real-binary + in-process). Gates: `make agent-check` fully green, `make tb` green (9), full `make agent-test` **green** (re-run green after the review fix). Commit: single Phase-4 commit **`4f7ce32e7`** (`feat(core): Smart Inputs Phase 4 — template generation flips to the light shape (D11)`; the review fix was amended into it — SHA supersedes the pre-review `86d547311`). Micro-decisions appended below.
-
-**Review round 1** — Sonnet-5 `pr-review-toolkit:code-reviewer`, pointer-only (commit + diff, no plan/design/rationale). One **Important** finding + confirmation the rest is clean. Triage:
-
-- **Important (APPLIED).** `pipelex-agent inputs --format toml` silently dropped the `# concept:` comments that the human `build inputs --format toml` writes — one surface got concept hints, the parallel surface didn't, with no test catching it (the agent-TOML test mocked `inputs_core`, and the golden test called `render_inputs_toml` directly, never the agent emit path). This reversed my earlier Phase-4 "deliberate asymmetry" micro-decision (format-follows-consumer): consistency between two documented-parallel surfaces wins, and an agent reading the TOML genuinely benefits from the hints. **Fix:** promoted `_concept_comments` → public `build_concept_comments`; `build_inputs_for_pipe` now returns a `concept_comments` map in its result; `emit_inputs_result` **pops** it (so the JSON envelope stays the plain `success`/`pipe_code`/`inputs` shape — no contract change, respecting the design's "JSON has no comments → use `--explicit`" stance) and passes it to the light-TOML serializer. Two new tests cover it (agent TOML carries comments; JSON strips the internal key). Verified real-binary. `test_inputs_ops` fixture/assertion updated for the new result key.
-- **No correctness/round-trip/over-engineering findings.** The reviewer traced every delighten arm against the shaper's actual re-wrap, confirmed inline-table TOML validity + ordering, no import cycle, and the extra-required-fields envelope fallback. It flagged one pre-existing quirk (fixed-count `X[N]` always renders one example item) as **out of scope** — present at parent `d73d1aa3c`, in the unchanged shared envelope generator. Not deferred as new (already how the generator works).
-- One doubt captured mid-implementation as a deferred note: `wip/inputs/d4-hint-still-envelope.md` (the D4 shaping-error "Expected shape:" hint still renders the envelope while templates default to light — recommendation: leave-it; a layer/cycle concern to weigh in Phase 5).
-
----
-
-## Phase 5 — Docs, changelog, deferred-notes triage, wrap + finalize review
-
-- [x] **Docs.** Rewrite `docs/building-methods/pipes/provide-inputs.md` (it shrinks dramatically — "just provide the values", envelope demoted to the escape hatch); update `docs/tools/cli/run.md`, `build/inputs.md`, and the agent-CLI inputs docs for the light-template default + `--explicit`.
-- [x] **Triage the deferred notes Smart Inputs was meant to unify** — for each, apply-and-delete or re-defer with a reason: `scalar-envelope-arm-asymmetry.md` (str arm should now preserve a refining concept's subclass, like the bool arm — unify in the shaper); `loader-vs-factory-date-split-duplication.md` (the top-level-literal conversion and per-concept shaping collapse into the shaper's Date arm); `case1-bare-date-arm-gap.md` (a top-level array of date literals should now build `ListContent[DateContent]` via D2 + the shaper); `d4-hint-still-envelope.md` (Phase-4: the shaping-error "Expected shape:" hint still renders the envelope while templates default to light — recommendation there is leave-it unless it confuses); note `container-default-temporal-codegen-gap.md`, `structure-field-fidelity-guard.md`, `refines-hint-native-list-drift.md` as still-out-of-scope (structure-field codegen / release-wave authoring sweep) unless naturally touched.
-- [x] **Changelog** under `[Unreleased]`: Smart Inputs — signature-driven input shaping (bare values accepted, declared-concept typing, envelope compat-checked, unknown-name detection). Breaking where it narrows (D8). No `wip/` mentions.
-- [x] **Bookkeeping.** Update `wip/inputs/README.md` (Smart Inputs → done; the track's remaining work is the one release-cut cross-repo wave) and archive this file to `wip/inputs/smart-inputs-implementation-plan.md`.
-- [x] Full `make agent-check` + `make agent-test` green.
-
-### CHECKPOINT 5 — track complete; finalize review
-
-Run the checkpoint protocol, **plus** the finalize **gstack `/review`** (Opus fan-out: testing + maintainability + adversarial-red-team, each pointer-only) — **user-gated: do not launch it unprompted.** Then the track is ready for the release wave.
-
-State: **REACHED (2026-07-08).** Smart Inputs track complete. **Docs** rewritten around the light "just provide the values" model — `provide-inputs.md` shrank dramatically (envelope demoted to a compat-checked escape hatch), with `build/inputs.md`, `run.md`, the agent-CLI `inputs` docs, and the adjacent `executing-pipelines.md` / `csv-input-and-output.md` updated for the light default + `--explicit`; two **pre-existing** doc bugs fixed in passing (`run.md`'s stale "TOML datetimes not supported" warning now that Date shipped; `executing-pipelines.md`'s wrong `results/inputs.json` claim for `build inputs bundle`). **Deferred-notes triage** done — `case1-bare-date-arm-gap` **resolved by the shaper** (pinned), the rest re-deferred / leave-it with refreshed reasoning; full rollup in `wip/inputs/README.md`. **Changelog**: Smart Inputs umbrella entry under `[Unreleased] → Added` + the template-default flip under `Changed` (breaking narrowings noted). Gates: `make agent-check` green (pyright 0 / mypy Success / cko PASSED), full `make agent-test` **green** (re-run green after the review fix). This file is archived to `wip/inputs/smart-inputs-implementation-plan.md` as the as-built record.
-
-**Review round 1** — independent Sonnet-5 doc-accuracy review, pointer-only (working-tree diff + the shaper/CLI/loader source to verify against; no plan / design / rationale). It confirmed the light templates are byte-accurate and every flag / default / error-message matches the code, and surfaced **one genuine silent-failure**: an explicit `ListContent` (or envelope-with-list) handed to a **singular**-declared input was *silently* stored into the singular slot — a D2 violation on the escape-hatch path (Gap A of `input-shaper-multiplicity-gaps.md`). That was exactly the reopen trigger the deferred note recorded, so I **applied the unambiguous half**: `_shape_explicit` now reconciles a built `ListContent` against multiplicity (`ListWhereSingularError` / `MultiplicityCountMismatchError`) via a shared new `_peel_multiplicity` helper, pinned by three new `test_explicit_forms.py` cases; PR #1033 later added the `native.Dynamic` carve-out so this guard does not overrule the bottom-up Dynamic fallback. The auto-wrap sub-question and the broader Dynamic-arm gap (Gap B) stay deferred as the genuine tradeoffs. All other findings were doc-accuracy fixes (the structurally-wrong TOML `--explicit` fragment, the "array of envelope items" mischaracterization, example keys dropped from the unknown-name / explicit examples, a bare-scalar-in-typed-Python caveat for the not-yet-widened protocol type, and `run.md` reframed light-first) — applied. Gates re-run green after the fix.
-
-**Finalize gstack `/review` (Opus fan-out): NOT run — user-gated.** Awaiting the user's go-ahead; then the track is ready for the release wave (D10 protocol widening + the cross-repo mirrors, per `wip/inputs/README.md`).
-
----
-
-## Deferred / release-wave sweep — NOT this plan's scope (listed so nothing is lost)
-
-Shared per-release wave with YesNo + Date (see `wip/inputs/README.md`), done once, not per-feature:
-
-- **D10 protocol widening** — `mthds/protocol/pipeline_inputs.py` `StuffContentOrData` widens to admit bare scalars / lists-of-dicts / empty lists (converges to "any JSON value | StuffContent forms"), with the interpretation semantics spec'd MTHDS-side (the protocol spec + the `mthds` repo). Release-gated (Optionals/TOML-inputs de-gate pattern). Runtime already works; this is type-honesty for typed callers.
-- **Downstream mirrors** — `mthds-python` + `mthds-js` `PipelineInputs` types, cross-repo spec-suite rows, JSON schema copies (`mthds-schema-sync` skill), MTHDS spec native-concept + inputs-format sections.
-- **Authoring-guidance surfaces** — `mthds-plugins` skills (`mthds-inputs`, `mthds-build`), `vscode-pipelex` completion lists, and the `ConceptSpec.refines` native-list hint (derive from `NativeConceptCode` — `refines-hint-native-list-drift.md`).
-- **Off critical path** — LLM-assisted input adaptation (design §8, opt-in); the shared YesNo/Date scalar-native LLM-output ergonomics.
-
----
-
-## Micro-decisions log
-
-_(append settled decisions here as phases land — mirrors the Date/YesNo plans)_
-
-- Shaper location & shape: **module `pipelex/core/memory/input_shaper.py`, class `InputShaper`** (design D7). Reuses `StuffContentFactory` / `is_compatible` / the existing `StuffFactory` fallback — the new code is only the top-down dispatch.
-- Concept-nature resolution: **a local `resolve_input_kind(concept) -> InputKind` in the shaper**, composed from ordered `is_compatible(…, strict=True)` checks (no in-tree "which family" helper exists to reuse).
-- D8 home: **the shaper** (holds both provided dict and specs). Severity **error** by default (see Gaps).
-- D10: **not a blocker** — `PipelineInputs` is a runtime-unvalidated `TypeAlias`, so bare scalars reach the shaper at runtime; the widening is release-gated type-honesty.
-- Out-of-matrix natives (Html/JSON/Page/TextAndImages/SearchResult/Composite): **bottom-up fallback** (see Gaps — confirm).
-- D3 path resolution: **signature-aware CLI resolver** recommended; exact mechanism settled as Phase 3's first task (see Gaps).
-
-**Phase 1 (2026-07-07) — settled while building the shaper:**
-
-- **Explicit forms unified into one post-hoc-compat path.** Envelope `{concept, content}` dict, `DictStuff`, and directly-provided `StuffContent`/`ListContent` all route to one `_shape_explicit`: build via `StuffFactory.make_stuff_from_stuff_content_or_data` (today's behavior, so the explicit — possibly more-specific — concept wins), then `is_compatible(tested=built.concept, wanted=declared)`; incompatible → D4 `ExplicitConceptIncompatibleError`. Chosen over pre-resolving the envelope's concept ref because `DictStuff.concept` may be a `DictConcept` object, not a str — pre-resolution was fragile. Trade-off: an envelope naming a concept that is *both* incompatible *and* unbuildable surfaces StuffFactory's build error first (not D4); the buildable-but-incompatible case (the interesting one) gives D4. Acceptable.
-- **Scalar building via canonical-dict-wrap — zero changes to `StuffContentFactory`.** Each arm wraps the bare value into the structure class's canonical field dict (`{"text": v}` / `{"number": v}` / `{"url": v}`; date/str and bool passed through directly since `make_content_from_value` already honors those), then calls `StuffContentFactory.make_stuff_content_from_concept_required(concept, value=…)`. This makes a Text/Number-**refining** subclass build correctly (e.g. `Question(text=…)`, `Priority(number=…)`) without touching `make_content_from_value` (whose str-arm still uses `== TextContent`, not `issubclass`). Consequence: the `scalar-envelope-arm-asymmetry.md` note stays deferred — the shaper's **bare** path now builds the refining subclass, but the **envelope** escape hatch still delegates to `StuffFactory` Case 2.1c which builds a plain `TextContent` (concept kept, content not the subclass). Flag for Phase 5 triage.
-- **`value` typed `Any` inside the shaper.** The public `shape(pipeline_inputs: PipelineInputs, …)` keeps the declared contract, but internal value params are `Any` because the runtime admits bare `int`/`float`/`bool`/`None`/list-of-dicts that the narrow `PipelineInputs`/`StuffContentOrData` alias does not (D10 widening is release-gated). This is what lets the D9 null guard and the Number/scalar arms be reachable without pyright flagging them unreachable.
-- **`InputKind` keeps a `DYNAMIC` member; the per-item builder has one guarded unreachable branch.** `_shape_one` short-circuits `DYNAMIC` to the bottom-up factory before multiplicity peeling, so `_build_item_content` never sees `DYNAMIC` — but its `match` over `InputKind` stays exhaustive (house rule: no `case _`) with a `DYNAMIC` arm that raises `PipelexUnexpectedError`. Justified exhaustive-match guard, not an impossible-input guard on caller data.
-- **`resolve_input_kind` order:** `is_dynamic_concept` short-circuit → ordered strict `is_compatible` against YesNo, Date, Number, Image, Document, Text (mutually exclusive natives, order safe) → non-native `StructuredContent` subclass → `STRUCTURED`; else `DYNAMIC` (covers out-of-matrix natives Html/JSON/Page/TextAndImages/SearchResult/Composite/Anything and any unregistered class, via a `ConceptValueError` catch).
-
-**Phase 2 (2026-07-07) — settled while wiring the seam:**
-
-- **One seam, `pipe.inputs` (not `needed_inputs()`).** `make_from_pipeline_inputs` gained `input_specs: InputStuffSpecs | None = None`; `prepare_pipe_job` passes `input_specs=pipe.inputs` — the method-boundary contract, matching the Optionals pass. `make_from_pipeline_inputs` has exactly one production caller (the seam); every other caller is a test that omits `input_specs` and keeps the bottom-up loop. So wiring that one call gives D1 (all surfaces: validate / real-run / dry-run) for free. `None` → today's bottom-up loop verbatim (regression-pinned); present → `InputShaper.shape`. `InputShaper` is a top-level import in `working_memory_factory` — no cycle (its closure never re-imports `working_memory_factory`).
-- **D8 broke nothing.** Turning unknown-name detection live caused **zero** fallout across the full suite — no in-tree bundle/fixture relied on silently-ignored extra inputs. The design's "loud beats silent" default holds without any fixture loosening.
-- **Envelope-CSV through the runner stays green.** The CSV full-pipeline e2e feeds the `{"concept": "csv_demo.Person", "content": {"url": "…csv"}}` **envelope**, which routes through `_shape_explicit` → bottom-up `StuffFactory` (today's CSV codec) → concept compat-check. Bare-`{"url": …}`-under-`Person[]` CSV (no envelope) is the Phase-3 arm; Phase 2 does not touch it, so no CSV regression.
-- **Shaping errors reach the caller raw.** `prepare_pipe_job` runs under `pipeline_run_setup`'s `try/finally` (no wrapping `except`), and `runner.execute`'s `except PipelexError` re-raises when `pipe_job is None` (setup-time failure) — so a D4/D8 `InputShapingError` surfaces to the caller unwrapped (the e2e error tests assert on the raw class + message).
-- **Phase-1 test-isolation bug fixed here (was the only full-suite red).** The shaper's structured test concepts (`Invoice`/`Person`/`Weird`) collided by **bare class name** in the shared, name-keyed class registry with an integration test's `Person(role)`/`Invoice` (first-registration-wins → the wrong class shadowed the shaper's, failing 3 tests only under the full suite). Fix: `Shaper`-prefix both the class name **and** the concept code (they must match — the bottom-up factory maps a prebuilt `StuffContent` to its concept by class name; concept codes are domain-qualified so they never collide, only the class-registry name did). Proven by running the colliding integration suite + shaper unit suite in one process (`-n0`) → all green. **Supersedes the memory note's "pre-existing full-suite fail" — that is now resolved.**
-
-**Phase 3 (2026-07-07) — settled while adding file-ish + CSV-by-signature:**
-
-- **D3 mechanism = `inputs_base_dir` threaded into the shaper (NOT the signature-aware CLI resolver).** The plan offered two options; chose threading a `Path | None` base_dir through the seam (`InputShaper.shape` → `make_from_pipeline_inputs` → `prepare_pipe_job` → `pipeline_run_setup` → runner ctor → both CLIs), `None` for API/SDK/in-process callers. Rejected the CLI-resolver-signature-aware alternative (which the gap doc had *recommended*) for three concrete reasons discovered at implementation: (1) it would force the CLI to resolve the pipe / load the library BEFORE the runner call just to see `pipe.inputs` — a real reordering in `_run_core.py`; (2) it would duplicate the shaper's `resolve_input_kind` concept-nature detection inside the CLI (which native family is Image/Document?) — drift risk; (3) it does **not** naturally cover the CSV-relative-path case (CSV rows aren't Image/Document), so path resolution would end up split across two places. Threading base_dir into the shaper keeps ONE resolution point that covers both D3 and D11. This is *not* "base_dir leaking into core" in the harmful sense — it is an optional param the shaper's file-ish/CSV arms consult; the resolution helper (`is_relative_local_path` + `base_dir / url`) lives in the shaper (core/memory), which already owns the building.
-- **`is_relative_local_path` promoted to `pipelex/tools/uri/uri_resolver.py`.** It was a private helper in the CLI's `_inputs_path_resolver.py`; the shaper needs the same predicate, so it moved to the shared uri module (no re-export; both the CLI resolver and the shaper import it directly). Behavior byte-identical (same `://`-scheme stopgap for `s3://`/`gs://`).
-- **CSV builder extracted, not duplicated.** `StuffFactory._try_make_csv_list_stuff` (returns a `Stuff`, Case-2.5 envelope path) split into a public `try_make_csv_list_content(concept, *, content, name) -> ListContent | None` (returns the *content*), with `_try_make_csv_list_stuff` now a thin `make_stuff` wrapper. The shaper's `_try_shape_csv` calls the content version. Case 2.5 behavior is byte-identical (same detection gates, same `CsvError` redaction). The shaper resolves a relative CSV path against `inputs_base_dir` BEFORE calling in, so the factory's own local-only gates operate on an already-resolved path.
-- **CSV detection lives in the multiplicity peel, before element-wise shaping.** `_shape_with_multiplicity` now peels `(is_list, fixed_count)` once up front (cleaner than the old two-branch int/bool dance — and it dodged a pyright `reportUnnecessaryIsInstance` that surfaced once `multiplicity` was narrowed non-None). For a structured LIST input it tries CSV first; a bare tabular string or exact `{"url": <tabular>}` becomes `ListContent[row]`, and `fixed_count` is re-checked against the row count (→ `MultiplicityCountMismatchError`). A non-tabular / sibling-keyed / singular value returns `None` from `_try_shape_csv` and falls through to normal shaping (so `people.txt` under `Person[]` → `WrongScalarKindError`, a CSV under singular `Person` → `WrongScalarKindError`). Added `InputKind.is_structured` (exhaustive `match`, no `case _`) as the gate.
-- **`parse_cli_inputs` now returns `ParsedCliInputs` (NamedTuple), never a bare dict.** `(pipeline_inputs: dict | None, inputs_base_dir: Path | None)`. The file-load branch (and auto-detected default file) carries the file's parent dir; inline-JSON and stdin carry `None` (no anchoring file → CWD contract preserved). NamedTuple is the right shape per standards (small fixed record, never serialized, in-process CLI→runner only). Blast radius: the three run command callers (`pipe_cmd`/`bundle_cmd`/`method_cmd`) read `.pipeline_inputs` + thread `.inputs_base_dir` into `run_pipeline_core`→runner ctor; the API-runner path ignores base_dir (API callers pass absolute urls); ~20 existing `test_stdin_resolver` assertions rewrote `result ==`→`result.pipeline_inputs ==`; three mocks that returned `None` for `parse_cli_inputs` became `ParsedCliInputs(None, None)`.
-- **e2e disables data-url→storage normalization to assert the resolved path.** `is_normalize_data_urls_to_storage` is on in the test env; after the shaper resolves a bare relative Image path to an absolute filesystem path, normalization rewrites it to a `pipelex-storage://…` URI (a legitimate downstream step). The e2e builds an execution_config with normalization off so the assertion can pin the exact D3-resolved filesystem path — the resolution is what this phase must prove, not the normalization.
-
-**Phase 4 (2026-07-07) — settled while flipping template generation to the light shape:**
-
-- **Mechanism = post-hoc delighten transform at the `input_renderer` layer, NOT a flag threaded through `Concept.render_concept_representation`.** The plan proposed threading an `explicit` bool through the whole render chain (`build_inputs_template` / `render_stuff_spec` / `render_concept_representation`) and gating the envelope wrapping there. Rejected for a cleaner design discovered at implementation: `render_concept_representation` / `render_stuff_spec` / `InputStuffSpecs.build_inputs_template` are **shared** by outputs, JSON-schema, and runner-code generation — the light/explicit choice is an *input-template presentation* concern that has no business in those general-purpose methods. So they stay untouched (single-purpose envelope generators), and `input_renderer.build_inputs_template(explicit=…)` builds the envelope as today, then — when light — unwraps each entry per the declared concept's kind. Smaller blast radius (only `input_renderer` + the two CLIs + `inputs_ops`), cleaner separation, and still DRY: the unwrap reuses `InputShaper.resolve_input_kind` (the single source of truth from Phase 1), it does **not** duplicate concept-nature classification. Import is top-level (`input_renderer` → `input_shaper`); no cycle (nothing in the shaper's closure imports `input_renderer`; `make tb` green).
-- **The delighten arms mirror the shaper's arms exactly (round-trip guarantee).** `_delighten_entry(entry, *, kind)`: DYNAMIC → keep the whole envelope (bottom-up shaping genuinely needs it — a bare value for an out-of-matrix native like Html would be mis-built); STRUCTURED → the content dict verbatim (`dict` or `[dict]` for a list); scalar (TEXT/NUMBER/YES_NO/DATE/IMAGE/DOCUMENT) → unwrap the single content field element-wise. Because the generator (`include_optional=False`) emits exactly one required field for every scalar native (`{text}`/`{number}`/`{url}`/`{date}`/`{yes_no}`), and the shaper re-wraps that same bare value, the light template is exactly what the shaper accepts. A scalar content that is *not* a single-field dict (a refining scalar with extra required fields — which the shaper can't build from a bare value anyway) **keeps its envelope** so the template still runs (the `_unwrap_scalar_content` fallback). `match` over `InputKind` is exhaustive (no `case _`).
-- **Light TOML uses inline tables to dodge the ordering footgun.** Envelope templates are all-tables, so `tomlkit.dumps` (today's path, `light=False`) is order-safe and unchanged — existing TOML tests pass verbatim. But a **light** template interleaves bare top-level scalars with structured values; a `[section]` table emitted before a trailing bare scalar would swallow that scalar. So `serialize_inputs_template_to_toml(light=True)` renders every dict/list value as an **inline table / array-of-inline-tables** (`_to_toml_value`), keeping everything at the top level in declaration order, and attaches the `# concept: <bundle_representation>` comment (with `[]`/`?`/`!` suffixes) per key via a `tomlkit.document()`. Multi-line strings are a non-issue: the generator only emits single-line `{field}_value` placeholders, so no inline-table newline hazard in practice.
-- **Agent-CLI TOML carries concept comments too (settled via review round 1 — my first cut had it NOT, that asymmetry was reversed).** Both `pipelex build inputs --format toml` and `pipelex-agent inputs --format toml` now emit the `# concept:` comment per key. My initial "format-follows-consumer" argument for dropping them on the agent stream was weaker than plain consistency between two documented-parallel surfaces (and an agent reading the TOML benefits from the hints). Implementation: `build_concept_comments` (public in `input_renderer`) is called by both `render_inputs_toml` (human) and `build_inputs_for_pipe` (agent, returns the map in its result under `concept_comments`); `emit_inputs_result` **pops** that map before the JSON `agent_success` so the **agent-CLI JSON contract is unchanged** (plain `success`/`pipe_code`/`inputs`, `inputs` flipped envelope→light) and passes it to the light-TOML serializer. The JSON-stays-pure choice respects the design's stance ("JSON has no comments → `--explicit` teaches concepts"); the sidecar map is internal plumbing, never emitted as JSON.
-- **`build_inputs_for_pipe(explicit=False)` default = light everywhere.** The agent CLI's `inputs` result field is now the light template by default (verified real-binary). The module-level `input_renderer.{build_inputs_template,render_inputs,render_inputs_toml}` all default `explicit=False` (they are input-template-specific; the envelope-producing method `InputStuffSpecs.build_inputs_template()` is what they wrap and is untouched). Existing-test fallout was minimal: `test_inputs_ops::test_happy_path_return_shape` call-arg assertion (`render_inputs(..., explicit=False)`) and the `test_toml_inputs_build` e2e (rewritten to assert the light default + a new `--explicit` case) — both genuine behavior updates, not test-encoded-old-mistakes.
-
-**Phase 5 (2026-07-08) — settled while finalizing (docs / triage / review):**
-
-- **Docs lead with the light model; the bottom-up Case 1.x/2.x enumeration is dropped as the user-facing frame.** `provide-inputs.md` was rewritten top-down ("provide the values that match the signature"), with the `{concept, content}` envelope demoted to a compat-checked escape-hatch section. The old Case 1.1–2.6 catalogue was the `StuffContentOrData` *protocol* contract — still true underneath (Dynamic + explicit forms use it), but no longer the teaching surface. Search-domain concept-name resolution moved *under* the escape hatch, because a bare light value takes its concept from the signature — there is no name to resolve on the fast path.
-- **Gap A's unambiguous half was fixed (not deferred), triggered by the finalize review.** The pointer-only doc-accuracy review re-found the explicit-`ListContent`-into-singular *silent store* as a D2 violation — exactly the reopen criterion `input-shaper-multiplicity-gaps.md` had recorded. So `_shape_explicit` now reconciles a built `ListContent` against `stuff_spec.multiplicity` (reject list-into-singular for shaped concepts; enforce the `[N]` count), and the multiplicity peel was extracted to a shared `_peel_multiplicity` so the explicit reconcile and the bare-value path use one classification (no duplication). PR #1033 added the `native.Dynamic` carve-out so explicit `ListContent` preserves the same bottom-up fallback as raw lists in Dynamic slots. The auto-wrap sub-question (explicit singular under `[]`) and the broader Gap B (`DYNAMIC` multiplicity peeling for `Dynamic[]`/`Anything[N]`) stay deferred as the genuine design tradeoffs.
-- **Pre-existing doc bugs fixed in-scope** (CLAUDE.md "flag and fix existing bugs"): `run.md`'s stale "TOML datetimes are not supported yet" warning (Date shipped on this branch), and `executing-pipelines.md`'s claim that `build inputs bundle` writes `results/inputs.json` (it writes next to the bundle; the `results/` default is the `build inputs pipe` behavior).
-- **Bare scalars from strictly-typed Python get a caveat, not a silent overclaim.** The `PipelineInputs` / `StuffContentOrData` alias is not yet widened for bare `int`/`float`/`bool` (D10, release-gated), so a strict type-checker flags `"priority": 3`. The Python-API doc notes this (use `dict[str, Any]` or the envelope) rather than pretending it type-checks today.
diff --git a/wip/inputs/smart-inputs-pr1028-explainer.html b/wip/inputs/smart-inputs-pr1028-explainer.html
deleted file mode 100644
index 542206cf1..000000000
--- a/wip/inputs/smart-inputs-pr1028-explainer.html
+++ /dev/null
@@ -1,968 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <title>PR 1028 - Native YesNo, Native Date, and Smart Inputs</title>
- <style>
- :root {
- --ink: #151923;
- --muted: #5d6678;
- --faint: #eef1f6;
- --panel: #ffffff;
- --panel-soft: #f8fafc;
- --line: #d9dee8;
- --blue: #2458d3;
- --green: #147557;
- --amber: #8a5a00;
- --red: #b42318;
- --code-bg: #101623;
- --code-ink: #e8eefc;
- --shadow: 0 12px 36px rgba(16, 24, 40, 0.09);
- }
-
- * {
- box-sizing: border-box;
- }
-
- body {
- margin: 0;
- color: var(--ink);
- background:
- linear-gradient(180deg, #f4f7fb 0%, #ffffff 42%),
- #ffffff;
- font-family:
- Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
- sans-serif;
- line-height: 1.5;
- }
-
- a {
- color: var(--blue);
- text-decoration: none;
- font-weight: 650;
- }
-
- a:hover {
- text-decoration: underline;
- }
-
- .shell {
- width: min(1180px, calc(100vw - 36px));
- margin: 0 auto;
- }
-
- header {
- padding: 44px 0 26px;
- }
-
- .eyebrow {
- margin: 0 0 10px;
- color: var(--green);
- font-size: 0.78rem;
- font-weight: 800;
- letter-spacing: 0.08em;
- text-transform: uppercase;
- }
-
- h1 {
- max-width: 920px;
- margin: 0;
- font-size: clamp(2.1rem, 5vw, 4.7rem);
- line-height: 0.96;
- letter-spacing: 0;
- }
-
- .subtitle {
- max-width: 820px;
- margin: 18px 0 0;
- color: var(--muted);
- font-size: 1.15rem;
- }
-
- .meta {
- display: flex;
- flex-wrap: wrap;
- gap: 10px;
- margin-top: 22px;
- }
-
- .pill {
- display: inline-flex;
- align-items: center;
- gap: 7px;
- min-height: 32px;
- padding: 6px 10px;
- border: 1px solid var(--line);
- border-radius: 999px;
- background: rgba(255, 255, 255, 0.76);
- color: #323b4c;
- font-size: 0.88rem;
- font-weight: 650;
- }
-
- .hero-grid {
- display: grid;
- grid-template-columns: 1.1fr 0.9fr;
- gap: 22px;
- align-items: stretch;
- margin: 22px 0 34px;
- }
-
- .panel {
- border: 1px solid var(--line);
- border-radius: 8px;
- background: var(--panel);
- box-shadow: var(--shadow);
- }
-
- .panel-pad {
- padding: 22px;
- }
-
- .tldr {
- border-left: 5px solid var(--green);
- }
-
- .tldr h2,
- section h2 {
- margin: 0 0 12px;
- font-size: 1.36rem;
- letter-spacing: 0;
- }
-
- .tldr p {
- margin: 0;
- font-size: 1.1rem;
- }
-
- .tldr strong {
- color: var(--green);
- }
-
- .stats {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 10px;
- height: 100%;
- }
-
- .stat {
- padding: 16px;
- border: 1px solid var(--line);
- border-radius: 8px;
- background: var(--panel-soft);
- }
-
- .stat b {
- display: block;
- margin-bottom: 4px;
- font-size: 1.45rem;
- line-height: 1;
- }
-
- .stat span {
- color: var(--muted);
- font-size: 0.92rem;
- }
-
- section {
- margin: 36px 0;
- }
-
- .section-lead {
- max-width: 820px;
- margin: 0 0 16px;
- color: var(--muted);
- }
-
- .before-after {
- display: grid;
- grid-template-columns: repeat(3, minmax(0, 1fr));
- gap: 16px;
- }
-
- .before-after .side {
- border: 1px solid var(--line);
- border-radius: 8px;
- overflow: hidden;
- background: var(--panel);
- }
-
- .side h3 {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 10px;
- margin: 0;
- padding: 14px 16px;
- border-bottom: 1px solid var(--line);
- background: #f9fafc;
- font-size: 1.02rem;
- }
-
- .side.before h3 {
- color: var(--red);
- }
-
- .side.after h3 {
- color: var(--green);
- }
-
- .side-body {
- padding: 16px;
- }
-
- .plain-list {
- margin: 0;
- padding-left: 20px;
- }
-
- .plain-list li {
- margin: 7px 0;
- }
-
- .value-grid {
- display: grid;
- grid-template-columns: repeat(3, minmax(0, 1fr));
- gap: 14px;
- }
-
- .value-card {
- border: 1px solid var(--line);
- border-radius: 8px;
- background: var(--panel);
- padding: 18px;
- }
-
- .value-card h3 {
- margin: 0 0 8px;
- font-size: 1.05rem;
- }
-
- .value-card p {
- margin: 0;
- color: var(--muted);
- }
-
- .two-col {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 16px;
- align-items: start;
- }
-
- .diagram-card {
- border: 1px solid var(--line);
- border-radius: 8px;
- background: var(--panel);
- padding: 18px;
- overflow: auto;
- }
-
- .diagram-card h3 {
- margin: 0 0 12px;
- font-size: 1rem;
- }
-
- .flow-svg {
- width: 100%;
- min-width: 540px;
- height: auto;
- display: block;
- }
-
- .mermaid {
- margin: 0;
- padding: 0;
- color: var(--ink);
- background: transparent;
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
- font-size: 0.88rem;
- white-space: pre;
- }
-
- pre {
- margin: 12px 0 0;
- overflow: auto;
- border-radius: 8px;
- background: var(--code-bg);
- color: var(--code-ink);
- font-size: 0.84rem;
- line-height: 1.48;
- }
-
- code {
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
- }
-
- pre code {
- display: block;
- padding: 15px;
- }
-
- .diff .add {
- color: #7ee2a8;
- }
-
- .diff .del {
- color: #ff9b9b;
- }
-
- .diff .file {
- color: #99b8ff;
- }
-
- .diff .ctx {
- color: #b9c4d8;
- }
-
- .table-wrap {
- overflow: auto;
- border: 1px solid var(--line);
- border-radius: 8px;
- background: var(--panel);
- }
-
- table {
- width: 100%;
- min-width: 760px;
- border-collapse: collapse;
- font-size: 0.94rem;
- }
-
- th,
- td {
- padding: 12px 14px;
- border-bottom: 1px solid var(--line);
- text-align: left;
- vertical-align: top;
- }
-
- th {
- background: #f7f9fc;
- color: #333b4c;
- font-size: 0.78rem;
- letter-spacing: 0.06em;
- text-transform: uppercase;
- }
-
- tr:last-child td {
- border-bottom: 0;
- }
-
- .tag {
- display: inline-block;
- padding: 2px 8px;
- border-radius: 999px;
- background: #e8f2ff;
- color: #1a4bb8;
- font-size: 0.78rem;
- font-weight: 700;
- white-space: nowrap;
- }
-
- .tag.green {
- background: #e7f6ef;
- color: var(--green);
- }
-
- .tag.amber {
- background: #fff2d8;
- color: var(--amber);
- }
-
- details {
- border: 1px solid var(--line);
- border-radius: 8px;
- background: var(--panel);
- margin: 12px 0;
- overflow: hidden;
- }
-
- summary {
- cursor: pointer;
- padding: 14px 16px;
- background: #f8fafc;
- font-weight: 760;
- }
-
- details > div {
- padding: 0 16px 16px;
- }
-
- .callout {
- border: 1px solid #c9ddff;
- border-left: 5px solid var(--blue);
- border-radius: 8px;
- background: #f3f7ff;
- padding: 16px;
- }
-
- .callout p {
- margin: 0;
- }
-
- .link-list {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 10px;
- }
-
- .link-card {
- border: 1px solid var(--line);
- border-radius: 8px;
- background: var(--panel);
- padding: 14px;
- }
-
- .link-card span {
- display: block;
- margin-top: 4px;
- color: var(--muted);
- font-size: 0.9rem;
- }
-
- footer {
- margin: 48px 0 34px;
- padding-top: 18px;
- border-top: 1px solid var(--line);
- color: var(--muted);
- font-size: 0.9rem;
- }
-
- @media (max-width: 900px) {
- .hero-grid,
- .before-after,
- .value-grid,
- .two-col,
- .link-list {
- grid-template-columns: 1fr;
- }
-
- .stats {
- grid-template-columns: 1fr 1fr;
- }
- }
-
- @media (max-width: 560px) {
- .shell {
- width: min(100vw - 24px, 1180px);
- }
-
- header {
- padding-top: 26px;
- }
-
- .stats {
- grid-template-columns: 1fr;
- }
-
- .panel-pad {
- padding: 16px;
- }
- }
- </style>
-</head>
-<body>
- <header>
- <div class="shell">
- <p class="eyebrow">PR 1028 explainer</p>
- <h1>Smart Inputs: from protocol envelopes to plain business values.</h1>
- <p class="subtitle">
- Before this PR, users had to feed Pipelex inputs in Pipelex's internal shape. After this PR, they provide the values they already have, and the pipe signature turns those values into typed working memory.
- </p>
- <div class="meta">
- <span class="pill">Branch: <code>feature/Smart-inputs</code></span>
- <span class="pill">Base: <code>dev</code></span>
- <span class="pill">Scope: native concepts + runner/CLI/API input seam</span>
- <span class="pill">Generated: 2026-07-08</span>
- </div>
- </div>
- </header>
-
- <main class="shell">
- <div class="hero-grid">
- <section class="panel panel-pad tldr" aria-labelledby="tldr-title">
- <h2 id="tldr-title">TL;DR</h2>
- <p>
- <strong>Before Smart Inputs:</strong> a caller had to know the ceremony: concept envelopes, content field names, file wrappers, and list shapes. <strong>After Smart Inputs:</strong> a caller gives Pipelex ordinary values like <code>"contract.pdf"</code>, <code>true</code>, <code>2026-07-07</code>, or rows from <code>people.csv</code>; Pipelex reads the declared signature, builds the right typed data, and fails loudly when the value cannot match the contract.
- </p>
- </section>
-
- <aside class="stats" aria-label="PR scope stats">
- <div class="stat">
- <b>Plain</b>
- <span>callers now provide business values, not Pipelex protocol envelopes</span>
- </div>
- <div class="stat">
- <b>1</b>
- <span>shared Smart Inputs seam across CLI, Python API, and hosted runner</span>
- </div>
- <div class="stat">
- <b>Typed</b>
- <span>values become declared concepts such as <code>Question</code>, <code>YesNo</code>, <code>Date</code>, <code>Document</code>, and structured rows</span>
- </div>
- <div class="stat">
- <b>Safer</b>
- <span>unknown names, bad scalar kinds, wrong list counts, nulls, and incompatible envelopes are typed errors</span>
- </div>
- </aside>
- </div>
-
- <section aria-labelledby="exec-before-after">
- <h2 id="exec-before-after">Before / After For Executives</h2>
- <p class="section-lead">
- The business change is simple: users now fill in the values they actually have. Pipelex owns the typing, validation, file resolution, and exact rendering.
- </p>
-
- <div class="before-after">
- <div class="side before">
- <h3>Before <span class="tag amber">protocol-shaped</span></h3>
- <div class="side-body">
- <ul class="plain-list">
- <li>Users had to understand Pipelex envelopes: <code>{"concept", "content"}</code>.</li>
- <li>A yes/no judgment could come back as text that callers had to parse.</li>
- <li>A calendar date could be forced into a datetime, quietly inventing midnight.</li>
- <li>Input names not declared by the pipe could be ignored silently.</li>
- <li>Generated templates did not look like the values accepted by <code>pipelex run</code>.</li>
- </ul>
- <pre><code>{
- "question": {
- "concept": "legal.Question",
- "content": { "text": "Does this contract include a penalty clause?" }
- },
- "verdict": {
- "concept": "YesNo",
- "content": { "yes_no": true }
- },
- "signed_on": {
- "concept": "Date",
- "content": { "date": "2026-07-07" }
- }
-}</code></pre>
- </div>
- </div>
-
- <div class="side after">
- <h3>After JSON <span class="tag green">value-shaped</span></h3>
- <div class="side-body">
- <ul class="plain-list">
- <li>Users provide plain values; the pipe signature supplies the meaning.</li>
- <li><code>YesNo</code> is a real boolean concept with prompt rendering as <code>yes</code> or <code>no</code>.</li>
- <li><code>Date</code> stores a date and only stores time when the source states one.</li>
- <li>Unknown inputs, incompatible envelopes, nulls, wrong scalar kinds, and bad list counts fail with typed errors.</li>
- <li>The generated light template is the template you can fill and run.</li>
- </ul>
- <pre><code>{
- "question": "Does this contract include a penalty clause?",
- "verdict": true,
- "signed_on": "2026-07-07",
- "contract": "contract.pdf"
-}</code></pre>
- </div>
- </div>
-
- <div class="side after">
- <h3>After TOML <span class="tag green">value-shaped</span></h3>
- <div class="side-body">
- <ul class="plain-list">
- <li>Same Smart Inputs model as JSON.</li>
- <li>TOML keeps the shape compact for editable input files.</li>
- <li>Date literals can stay native TOML dates.</li>
- <li>The file path stays a plain string.</li>
- </ul>
- <pre><code>question = "Does this contract include a penalty clause?"
-verdict = true
-signed_on = 2026-07-07
-contract = "contract.pdf"</code></pre>
- </div>
- </div>
- </div>
- </section>
-
- <section aria-labelledby="what-built">
- <h2 id="what-built">What We Built</h2>
- <div class="value-grid">
- <article class="value-card">
- <h3>Native <code>YesNo</code></h3>
- <p>
- A built-in native concept backed by <code>YesNoContent</code>. It carries one strict boolean, renders as <code>yes</code>/<code>no</code>, and supports refinements like any other native concept.
- </p>
- </article>
- <article class="value-card">
- <h3>Native <code>Date</code></h3>
- <p>
- A built-in native concept backed by <code>DateContent</code>. It preserves source precision: date-only stays date-only; time and offset appear only when the source states them.
- </p>
- </article>
- <article class="value-card">
- <h3>Smart Inputs</h3>
- <p>
- A new <code>InputShaper</code> interprets caller input from the declared pipe signature, not from raw value shape alone. One seam covers CLI files, inline inputs, Python callers, and hosted runs.
- </p>
- </article>
- </div>
- </section>
-
- <section aria-labelledby="architecture">
- <h2 id="architecture">Architecture</h2>
- <p class="section-lead">
- The key decision: shaping is a runtime boundary concern, not a CLI feature. The CLI passes the inputs file base directory when it has one; the shared shaper decides how each value maps to the declared concept.
- </p>
-
- <div class="two-col">
- <div class="diagram-card">
- <h3>Smart Inputs flow (Mermaid)</h3>
- <pre class="mermaid">flowchart LR
- Caller["Caller input"]
- Surface["CLI / Python API / hosted runner"]
- Specs["Entry pipe input signature"]
- Shaper["InputShaper"]
- WM["WorkingMemory"]
- Pipe["Pipe execution"]
-
- Caller -- "plain values or explicit envelope" --&gt; Surface
- Specs -- "declared concept, multiplicity, presence" --&gt; Shaper
- Surface -- "PipelineInputs + optional inputs_base_dir" --&gt; Shaper
- Shaper -- "typed Stuff / ListContent / errors" --&gt; WM
- WM -- "rendered into prompts and operators" --&gt; Pipe</pre>
- </div>
-
- <div class="diagram-card">
- <h3>Concept dispatch map (SVG)</h3>
- <svg class="flow-svg" viewBox="0 0 900 420" role="img" aria-labelledby="svg-title svg-desc">
- <title id="svg-title">Smart Inputs dispatch map</title>
- <desc id="svg-desc">A signature dispatch map from declared concepts to expected caller shapes.</desc>
- <defs>
- <marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto" markerUnits="strokeWidth">
- <path d="M0,0 L0,6 L9,3 z" fill="#2458d3" />
- </marker>
- </defs>
- <rect x="24" y="28" width="210" height="60" rx="8" fill="#f3f7ff" stroke="#b7c9f7" />
- <text x="129" y="54" text-anchor="middle" font-size="17" font-weight="700" fill="#151923">Declared input</text>
- <text x="129" y="76" text-anchor="middle" font-size="13" fill="#5d6678">from pipe signature</text>
-
- <rect x="334" y="28" width="230" height="60" rx="8" fill="#eefaf4" stroke="#addcc8" />
- <text x="449" y="54" text-anchor="middle" font-size="17" font-weight="700" fill="#151923">InputShaper</text>
- <text x="449" y="76" text-anchor="middle" font-size="13" fill="#5d6678">one shared dispatch point</text>
-
- <rect x="666" y="28" width="210" height="60" rx="8" fill="#fff8eb" stroke="#f0ce8d" />
- <text x="771" y="54" text-anchor="middle" font-size="17" font-weight="700" fill="#151923">Typed Stuff</text>
- <text x="771" y="76" text-anchor="middle" font-size="13" fill="#5d6678">or typed shaping error</text>
-
- <line x1="234" y1="58" x2="334" y2="58" stroke="#2458d3" stroke-width="2.4" marker-end="url(#arrow)" />
- <line x1="564" y1="58" x2="666" y2="58" stroke="#2458d3" stroke-width="2.4" marker-end="url(#arrow)" />
-
- <g font-size="14" fill="#151923">
- <rect x="60" y="142" width="190" height="44" rx="8" fill="#ffffff" stroke="#d9dee8" />
- <text x="155" y="170" text-anchor="middle">Text-refining</text>
- <line x1="250" y1="164" x2="366" y2="164" stroke="#2458d3" stroke-width="2" marker-end="url(#arrow)" />
- <rect x="366" y="142" width="190" height="44" rx="8" fill="#ffffff" stroke="#d9dee8" />
- <text x="461" y="170" text-anchor="middle">bare string</text>
- <line x1="556" y1="164" x2="672" y2="164" stroke="#2458d3" stroke-width="2" marker-end="url(#arrow)" />
- <rect x="672" y="142" width="168" height="44" rx="8" fill="#ffffff" stroke="#d9dee8" />
- <text x="756" y="170" text-anchor="middle">declared concept</text>
-
- <rect x="60" y="205" width="190" height="44" rx="8" fill="#ffffff" stroke="#d9dee8" />
- <text x="155" y="233" text-anchor="middle">YesNo-refining</text>
- <line x1="250" y1="227" x2="366" y2="227" stroke="#2458d3" stroke-width="2" marker-end="url(#arrow)" />
- <rect x="366" y="205" width="190" height="44" rx="8" fill="#ffffff" stroke="#d9dee8" />
- <text x="461" y="233" text-anchor="middle">bare boolean</text>
- <line x1="556" y1="227" x2="672" y2="227" stroke="#2458d3" stroke-width="2" marker-end="url(#arrow)" />
- <rect x="672" y="205" width="168" height="44" rx="8" fill="#ffffff" stroke="#d9dee8" />
- <text x="756" y="233" text-anchor="middle">YesNoContent</text>
-
- <rect x="60" y="268" width="190" height="44" rx="8" fill="#ffffff" stroke="#d9dee8" />
- <text x="155" y="296" text-anchor="middle">Date-refining</text>
- <line x1="250" y1="290" x2="366" y2="290" stroke="#2458d3" stroke-width="2" marker-end="url(#arrow)" />
- <rect x="366" y="268" width="190" height="44" rx="8" fill="#ffffff" stroke="#d9dee8" />
- <text x="461" y="296" text-anchor="middle">ISO date or TOML date</text>
- <line x1="556" y1="290" x2="672" y2="290" stroke="#2458d3" stroke-width="2" marker-end="url(#arrow)" />
- <rect x="672" y="268" width="168" height="44" rx="8" fill="#ffffff" stroke="#d9dee8" />
- <text x="756" y="296" text-anchor="middle">DateContent</text>
-
- <rect x="60" y="331" width="190" height="44" rx="8" fill="#ffffff" stroke="#d9dee8" />
- <text x="155" y="359" text-anchor="middle">Document[] structure</text>
- <line x1="250" y1="353" x2="366" y2="353" stroke="#2458d3" stroke-width="2" marker-end="url(#arrow)" />
- <rect x="366" y="331" width="190" height="44" rx="8" fill="#ffffff" stroke="#d9dee8" />
- <text x="461" y="359" text-anchor="middle">path / CSV / list</text>
- <line x1="556" y1="353" x2="672" y2="353" stroke="#2458d3" stroke-width="2" marker-end="url(#arrow)" />
- <rect x="672" y="331" width="168" height="44" rx="8" fill="#ffffff" stroke="#d9dee8" />
- <text x="756" y="359" text-anchor="middle">ListContent</text>
- </g>
- </svg>
- </div>
- </div>
- </section>
-
- <section aria-labelledby="developer-impact">
- <h2 id="developer-impact">Developer Impact</h2>
- <div class="table-wrap">
- <table>
- <thead>
- <tr>
- <th>Area</th>
- <th>What changed</th>
- <th>Why co-developers should care</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><span class="tag green">Native data</span></td>
- <td><code>NativeConceptCode</code> now includes <code>YesNo</code> and <code>Date</code>, with corresponding content classes and rendering.</td>
- <td>No more local string conventions for two common extraction/judgment outputs.</td>
- </tr>
- <tr>
- <td><span class="tag green">Input shaping</span></td>
- <td><code>InputShaper</code> maps bare values to the declared concept, checks envelopes, applies multiplicity rules, and raises typed errors.</td>
- <td>Every surface gets the same behavior. A CLI fix is not stranded in the CLI.</td>
- </tr>
- <tr>
- <td><span class="tag">Files and tables</span></td>
- <td>Relative file-ish strings resolve against the inputs file directory; declared structured lists can accept a CSV path by signature.</td>
- <td>Common user artifacts, like <code>contract.pdf</code> and <code>people.csv</code>, become first-class inputs without wrappers.</td>
- </tr>
- <tr>
- <td><span class="tag">Templates</span></td>
- <td><code>build inputs</code> and <code>pipelex-agent inputs</code> default to the light shape; <code>--explicit</code> keeps the old envelope.</td>
- <td>Generated examples now teach the recommended model and round-trip into <code>run</code>.</td>
- </tr>
- <tr>
- <td><span class="tag amber">Breaking edge</span></td>
- <td><code>YesNo</code> and <code>Date</code> are reserved native concept codes; unknown inputs and top-level nulls are hard errors.</td>
- <td>Breakage is intentional: it removes silent wrong work and makes author mistakes visible at the boundary.</td>
- </tr>
- </tbody>
- </table>
- </div>
- </section>
-
- <section aria-labelledby="runtime-story">
- <h2 id="runtime-story">One Seam, All Surfaces</h2>
- <p class="section-lead">
- The implementation deliberately routes the behavior through working-memory construction. That keeps CLI, Python, agent CLI, and hosted runner behavior aligned.
- </p>
-
- <div class="callout">
- <p>
- The old bottom-up path remains when no signature is available. When a signature exists, Smart Inputs is opt-in by data: pass <code>input_specs</code> and the same <code>PipelineInputs</code> are shaped top-down.
- </p>
- </div>
-
- <pre><code>caller values + entry pipe signature
- -&gt; WorkingMemoryFactory.make_from_pipeline_inputs(..., input_specs=...)
- -&gt; InputShaper.shape(...)
- -&gt; WorkingMemory full of typed Stuff
- -&gt; normal pipe execution</code></pre>
- </section>
-
- <section aria-labelledby="critical-diff">
- <h2 id="critical-diff">Minimal Critical Diff</h2>
- <p class="section-lead">
- These are not exhaustive patches. They are the few lines that explain the architecture and product behavior.
- </p>
-
- <details open>
- <summary>1. Native concepts become first-class</summary>
- <div>
- <pre class="diff"><code><span class="file">pipelex/core/concepts/native/concept_native.py</span>
-<span class="ctx"> class NativeConceptCode(StrEnum):</span>
-<span class="add">+ YES_NO = "YesNo"</span>
-<span class="add">+ DATE = "Date"</span>
-
-<span class="ctx"> def structure_class(self) -&gt; type[StuffContent]:</span>
-<span class="add">+ case NativeConceptCode.YES_NO:</span>
-<span class="add">+ return YesNoContent</span>
-<span class="add">+ case NativeConceptCode.DATE:</span>
-<span class="add">+ return DateContent</span></code></pre>
- </div>
- </details>
-
- <details>
- <summary>2. Date refuses fidelity loss</summary>
- <div>
- <pre class="diff"><code><span class="file">pipelex/core/stuffs/date_content.py</span>
-<span class="add">+class DateContent(StuffContent):</span>
-<span class="add">+ date: datetime.date</span>
-<span class="add">+ time: datetime.time | None = None</span>
-
-<span class="add">+ def to_datetime(self) -&gt; datetime.datetime:</span>
-<span class="add">+ if self.time is None:</span>
-<span class="add">+ msg = "This Date has no time of day, so it cannot be converted to a datetime without inventing one."</span>
-<span class="add">+ raise DateContentError(msg)</span>
-<span class="add">+ return datetime.datetime.combine(self.date, self.time)</span></code></pre>
- </div>
- </details>
-
- <details>
- <summary>3. The shared seam calls the shaper when the signature is available</summary>
- <div>
- <pre class="diff"><code><span class="file">pipelex/core/memory/working_memory_factory.py</span>
-<span class="ctx"> def make_from_pipeline_inputs(</span>
-<span class="ctx"> pipeline_inputs: PipelineInputs,</span>
-<span class="add">+ *,</span>
-<span class="add">+ input_specs: InputStuffSpecs | None = None,</span>
-<span class="add">+ inputs_base_dir: Path | None = None,</span>
-<span class="ctx"> ) -&gt; WorkingMemory:</span>
-<span class="add">+ if input_specs is not None:</span>
-<span class="add">+ return InputShaper.shape(</span>
-<span class="add">+ pipeline_inputs,</span>
-<span class="add">+ input_specs=input_specs,</span>
-<span class="add">+ search_domain_codes=search_domain_codes,</span>
-<span class="add">+ inputs_base_dir=inputs_base_dir,</span>
-<span class="add">+ )</span></code></pre>
- </div>
- </details>
-
- <details>
- <summary>4. Top-down dispatch replaces shape guessing</summary>
- <div>
- <pre class="diff"><code><span class="file">pipelex/core/memory/input_shaper.py</span>
-<span class="add">+input_kind = cls.resolve_input_kind(declared_concept)</span>
-<span class="add">+match input_kind:</span>
-<span class="add">+ case InputKind.TEXT:</span>
-<span class="add">+ return cls._make_content(concept, value={"text": value}, ...)</span>
-<span class="add">+ case InputKind.NUMBER:</span>
-<span class="add">+ if isinstance(value, bool) or not isinstance(value, (int, float)):</span>
-<span class="add">+ raise cls._wrong_kind(...)</span>
-<span class="add">+ return cls._make_content(concept, value={"number": value}, ...)</span>
-<span class="add">+ case InputKind.YES_NO:</span>
-<span class="add">+ return cls._make_content(concept, value=value, ...)</span>
-<span class="add">+ case InputKind.DATE:</span>
-<span class="add">+ return cls._make_content(concept, value=value, ...)</span>
-<span class="add">+ case InputKind.IMAGE | InputKind.DOCUMENT:</span>
-<span class="add">+ canonical = {"url": cls._resolve_local_path(value, inputs_base_dir=inputs_base_dir)}</span>
-<span class="add">+ case InputKind.STRUCTURED:</span>
-<span class="add">+ return cls._make_content(concept, value=value, ...)</span></code></pre>
- </div>
- </details>
-
- <details>
- <summary>5. Generated templates flip to the light shape</summary>
- <div>
- <pre class="diff"><code><span class="file">pipelex/core/pipes/inputs/input_renderer.py</span>
-<span class="del">-def build_inputs_template(the_pipe: PipeAbstract) -&gt; dict[str, Any]:</span>
-<span class="add">+def build_inputs_template(the_pipe: PipeAbstract, *, explicit: bool = False) -&gt; dict[str, Any]:</span>
-<span class="add">+ envelope_template = the_pipe.inputs.build_inputs_template()</span>
-<span class="add">+ if explicit:</span>
-<span class="add">+ return envelope_template</span>
-<span class="add">+ return _delighten_template(envelope_template, input_specs=the_pipe.inputs)</span>
-
-<span class="add">+def _delighten_entry(entry: dict[str, Any], *, kind: InputKind) -&gt; Any:</span>
-<span class="add">+ match kind:</span>
-<span class="add">+ case InputKind.DYNAMIC:</span>
-<span class="add">+ return entry</span>
-<span class="add">+ case InputKind.STRUCTURED:</span>
-<span class="add">+ return entry["content"]</span>
-<span class="add">+ case InputKind.TEXT | InputKind.NUMBER | InputKind.YES_NO | InputKind.DATE | InputKind.IMAGE | InputKind.DOCUMENT:</span>
-<span class="add">+ return _unwrap_scalar_content(entry["content"], envelope=entry)</span></code></pre>
- </div>
- </details>
- </section>
-
- <section aria-labelledby="quality">
- <h2 id="quality">Quality Net</h2>
- <p class="section-lead">
- The PR is not just a parser shortcut. The test surface follows the feature across native content, shaping arms, CLI loading, template generation, runner wiring, and dry-run E2E behavior.
- </p>
-
- <div class="table-wrap">
- <table>
- <thead>
- <tr>
- <th>Risk</th>
- <th>Guard</th>
- <th>Examples in this PR</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>LLM returns "yes" text instead of typed output</td>
- <td>Object output path verifies <code>YesNoContent</code> schema and result type.</td>
- <td><code>test_pipe_llm_yes_no_output_path.py</code>, <code>test_yes_no_dry_run.py</code></td>
- </tr>
- <tr>
- <td>Date-only value silently becomes midnight</td>
- <td><code>DateContent</code> rejects datetime-on-date and raises if callers ask for datetime without a time.</td>
- <td><code>test_date_content_renders.py</code>, <code>test_pipe_llm_date_output_path.py</code></td>
- </tr>
- <tr>
- <td>Bare values shape to the wrong concept</td>
- <td>Scalar arm tests assert declared concept retention for text, number, yes/no, date, image/document, and structured values.</td>
- <td><code>test_scalar_arms.py</code>, <code>test_explicit_forms.py</code>, <code>test_errors.py</code></td>
- </tr>
- <tr>
- <td>Generated template does not run</td>
- <td>Light template round-trip tests generate inputs, feed them back into a run, and keep <code>--explicit</code> as a compatibility path.</td>
- <td><code>test_input_renderer_light.py</code>, <code>test_input_renderer_light_golden.py</code>, <code>test_smart_inputs_light_roundtrip.py</code></td>
- </tr>
- <tr>
- <td>File inputs work in one surface but not another</td>
- <td><code>inputs_base_dir</code> is threaded through the runner and tested from CLI file loading into shaping.</td>
- <td><code>test_file_paths.py</code>, <code>test_csv_by_signature.py</code>, <code>test_run_core_inputs_base_dir.py</code></td>
- </tr>
- </tbody>
- </table>
- </div>
- </section>
-
- <section aria-labelledby="migration">
- <h2 id="migration">Migration Notes</h2>
- <p class="section-lead">
- These breaking changes are the cost of making wrong inputs visible instead of silently tolerated.
- </p>
- <ul class="plain-list">
- <li><code>YesNo</code> and <code>Date</code> are now reserved native concept codes. Bundles declaring concepts with those exact codes now error.</li>
- <li>Unknown input names are hard errors with the declared names listed.</li>
- <li>Top-level <code>null</code> is rejected. Omit the key to express absence.</li>
- <li>TOML date and datetime literals now map to <code>Date</code>; bare time-of-day values remain invalid.</li>
- <li>Structure field <code>type = "date"</code> now means <code>datetime.date</code>. Use <code>type = "datetime"</code> for a timestamp.</li>
- <li><code>build inputs</code> defaults to the light template. Use <code>--explicit</code> when you want the old envelope form.</li>
- </ul>
- </section>
-
- <section aria-labelledby="links">
- <h2 id="links">Related PRs</h2>
- <p class="section-lead">
- All related PRs found for this work are in this repository. No cross-repo PR was required for the changelog scope covered here.
- </p>
- <div class="link-list">
- <div class="link-card">
- <a href="https://github.com/Pipelex/pipelex/pull/1028">#1028 - Native YesNo and Date concepts + Smart Inputs</a>
- <span>Open umbrella PR against <code>dev</code>.</span>
- </div>
- <div class="link-card">
- <a href="https://github.com/Pipelex/pipelex/pull/1029">#1029 - Add native Date concept</a>
- <span>Merged into <code>feature/Smart-inputs</code>.</span>
- </div>
- <div class="link-card">
- <a href="https://github.com/Pipelex/pipelex/pull/1030">#1030 - Smart Inputs Phase 2</a>
- <span>Top-down shaping goes live on all surfaces.</span>
- </div>
- <div class="link-card">
- <a href="https://github.com/Pipelex/pipelex/pull/1032">#1032 - Smart Inputs Phase 3 + 4</a>
- <span>File-ish inputs, CSV-by-signature, and light templates.</span>
- </div>
- <div class="link-card">
- <a href="https://github.com/Pipelex/pipelex/pull/1033">#1033 - Smart Inputs Phase 5</a>
- <span>Light-model docs, changelog, and explicit-form multiplicity guard.</span>
- </div>
- </div>
- </section>
-
- <footer>
- <p>
- Source basis: <code>CHANGELOG.md</code> lines 5-17, diff against <code>origin/dev</code>, and GitHub PR metadata queried on 2026-07-08.
- </p>
- </footer>
- </main>
-
- <script src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js"></script>
- <script>
- if (window.mermaid) {
- window.mermaid.initialize({ startOnLoad: true, securityLevel: "strict", theme: "default" });
- }
- </script>
-</body>
-</html>
diff --git a/wip/inputs/structure-field-fidelity-guard.md b/wip/inputs/structure-field-fidelity-guard.md
deleted file mode 100644
index abac9ac00..000000000
--- a/wip/inputs/structure-field-fidelity-guard.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# Deferred: `date`/`datetime` structure fields don't carry the native Date fidelity guard
-
-**Status:** deferred design note — no code change. Surfaced during the Date-track PR #1029 adversarial review, 2026-07-07.
-
-## What the reviewer flagged
-
-The native `Date` concept is deliberately fidelity-strict: `DateContent._reject_lax_temporal` closes pydantic's lax-mode coercions that would silently corrupt data — a bare `int`/`float` or an all-digit string read as epoch seconds (DT6), a `datetime` on the `date` field truncated to drop its time and offset (DT3), no invented midnight (DT2).
-
-DT8's severable field-type fix (`type = "date"` → `datetime.date`, `type = "datetime"` → `datetime.datetime`) generates **plain** pydantic `date`/`datetime` fields on user-defined structure classes. Those generated fields have **no** equivalent guard, so pydantic's lax coercion applies there:
-
-- a `date` string into a `datetime` structure field silently becomes a midnight `datetime` (an invented time),
-- a midnight-epoch int into a `date` structure field silently becomes that calendar date.
-
-So the fidelity guarantees the native concept enforces are not enforced on user structure fields.
-
-## Why this is a decision, not obviously a bug
-
-- **Different surfaces, different contracts.** The native `Date` concept exists specifically to enforce document-fidelity. A user-defined structure field of `type = "date"` is an ordinary pydantic field on an arbitrary model — a more permissive surface. DT8's scope was the *type misnomer* (a `date` field should not force a time), explicitly **not** porting the native concept's anti-fabrication guard to every generated temporal field.
-- **Porting the guard is broad and opinionated.** Making all generated `date`/`datetime` fields strict would change how every extraction into such a field behaves and could break pipelines that today rely on lax coercion (e.g. an LLM emitting a date string into a `datetime` field). That is a runtime-behavior change with a wide blast radius, not a local fix.
-
-## Follow-up to consider
-
-Decide, when structure-field temporal handling is revisited, whether to:
-
-1. Leave structure fields permissive (document that only the native `Date` concept is fidelity-strict) — the likely intended non-goal; or
-2. Emit a shared before-validator (or use pydantic strict / `Annotated` types) on generated `date`/`datetime` fields mirroring `DateContent._reject_lax_temporal`, so the native concept and structure fields behave consistently.
-
-If (2), factor `_reject_lax_temporal` into a reusable validator so the two surfaces cannot drift. Related notes: `container-default-temporal-codegen-gap.md`.
-
-No action needed inside the Date track.
diff --git a/wip/inputs/unresolvable-structure-class-escapes-the-validate-sweep.md b/wip/inputs/unresolvable-structure-class-escapes-the-validate-sweep.md
deleted file mode 100644
index edf4ae5d5..000000000
--- a/wip/inputs/unresolvable-structure-class-escapes-the-validate-sweep.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# An unresolvable structure class would escape the `/validate` sweep
-
-**Status:** deferred — a latent granularity tradeoff, not a live bug. Raised by the Phase-1 code review on `refactor/Concept-purity`, and rejected for Phase 1 after checking reachability.
-
-## The claim
-
-Phase 1 made `ConceptLibrary.is_compatible` **raise** `ConceptStructureClassNotFoundError` when a concept's declared `structure_class_name` does not resolve, where `Concept.are_concept_compatible` used to silently return `False`. That is the branch's stated fix (b): a name that should have resolved and didn't is not an answer to "are these compatible?", and answering `False` makes it indistinguishable from a genuine "incompatible" verdict.
-
-The review observed that `is_compatible` is called from many pre-existing sites that do **not** guard against a raise, and proposed adding `except` guards at each. The named sites: `core/memory/input_shaper.py:236` (`resolve_input_kind`), `core/stuffs/stuff_factory.py` (the dict-building arms), `pipe_operators/compose/pipe_compose.py`, `.../extract/pipe_extract{,_factory}.py`, `.../structure/pipe_structure.py`, `.../img_gen/pipe_img_gen.py`, `.../search/pipe_search_factory.py`.
-
-## Why it is not reachable today
-
-`ConceptFactory` refuses to build a concept whose declared structure class does not resolve:
-
-- `concept_factory.py:305` — a `structure = "SomeClass"` declaration that is not a registered `StuffContent` subclass raises `ConceptFactoryError` at concept-construction time.
-- The basic-blueprint path (`concept_factory.py:371-385`) either finds an existing registered class or **generates** one.
-
-Every `Concept(...)` construction in `pipelex/` source lives inside `concept_factory.py`. So a concept sitting in a loaded library always has a resolvable structure class, and the raise cannot fire on the loader path. The two direct `Concept.model_validate` sites (`pipe_run/delivery_executor.py:212`, `runtime_bridge/primitives/hydration.py:155`) rehydrate a stuff's concept in a process that has the bundle loaded.
-
-Applying the proposed guards would convert the loud failure back into the silent degradation this branch exists to remove — at eight call sites, for a state the factory already refuses to produce. That is the "don't guard impossible scenarios" line.
-
-## Why it is still worth writing down
-
-If the state ever *does* become reachable — a concept deserialized into a process where the bundle's generated classes were never registered is the plausible route — the failure mode is coarser than it should be:
-
-`pipeline/bundle_validator.py:214-225` sweeps pipes with `pipe.validate_with_libraries()` inside a `try` that catches **only** `PipeNotFoundError`. A `ConceptStructureClassNotFoundError` is a `ConceptValueError` is a `ValueError`, so it would escape the sweep and abort the whole bundle rather than reporting the one offending pipe as failed.
-
-This is not a hypothesis about the codebase's opinion — `pipe_controllers/parallel/pipe_parallel.py:159-176` already wraps its `get_structure_class()` call for exactly this reason, and says so: *"A plain ValueError would escape the /validate sweep and abort the whole bundle; convert it so this pipe alone is reported as failed."*
-
-The right shape, if it ever needs doing, is **not** eight scattered `except` blocks. It is one decision at the sweep boundary: `bundle_validator` catching `ConceptValueError` alongside `PipeNotFoundError` and recording the pipe as failed — one place, matching the granularity contract the sweep already implements for unresolved dependencies.
-
-## Resolved in Phase 2: the `input_shaper` fallback arm
-
-`input_shaper.resolve_input_kind` carried an `except ConceptValueError: return InputKind.DYNAMIC` around `concept.get_structure_class()`, and a comment listing "any concept whose class is unregistered" among the cases that fall back to bottom-up building. Given the factory guard above, that arm was unreachable and the comment overstated it. Phase 2 migrated the call site to `concept_provider.get_structure_class(...)` and **dropped the guard**: keeping it would have converted the loud raise straight back into the silent fallback fix (b) exists to remove, for a state the factory refuses to produce. The comment now names only the cases that actually reach it.
-
-## Also declined in Phase 2: guarding the two run-path lookups
-
-The branch's own inventory flagged `pipe_parallel.py` (the combine step) and `pipe_search.py` (the structured-output step) as pre-existing bugs — they call `get_structure_class()` unguarded on run paths where their *validation* siblings convert to `PipeValidationError`. Phase 2 migrated all three onto the library but **did not add a third guard**, for two reasons:
-
-- Same reachability argument as above. A concept sitting in a loaded library always has a resolvable structure class, and both sites run mid-execution with that library loaded.
-- The complaint has partly aged out. It was written against `ConceptValueError("Concept class 'X' not found")`, which named neither the concept nor the pipe. Phase 1 replaced that with `ConceptStructureClassNotFoundError`, whose message carries the concept ref *and* the declared class name — so a raw escape is already self-describing. What a `PipeRunError` wrapper would add is `pipe_code` and `run_mode`.
-
-The asymmetry with the guarded validation siblings is deliberate and already explained in place: the `/validate` sweep needs per-pipe granularity or one bad pipe aborts the whole bundle, and a run has no sweep. If the conversion is ever wanted, it is a few lines at each site — but it should be motivated by a reachable failure, not by symmetry.
-
-## Discovered in Phase 2: `--save-csv` runs outside the library window
-
-Migrating `_run_core.py`'s `--save-csv` step to `get_concept_library()` broke `tests/e2e/pipelex/cli/test_csv_run.py` with `RuntimeError: No current library set` — `PipelexMTHDSProtocol.execute` tears the run library down on its way out (`runner.py:298-310`), so **everything** after it in `_execute_run` (the CSV save, the pretty print, the working-memory dump) runs with no current library.
-
-The old code did not notice because `concept.get_structure_class()` read the process-global class registry, which is never unregistered at teardown — the exact wart `pipe_io_contracts.py`'s module docstring documents for its own rendering. Phase 2 resolves through `ConceptLibrary.make_empty()` instead, which reads the same process-global registry but keeps the single typed "name → `StuffContent` subclass, or `ConceptStructureClassNotFoundError`" implementation.
-
-That is correct for the CLI (direct execution puts generated classes in the process-global registry) but it is a lifecycle smell, not a design: a post-run step that needs the method's *declarations* is running after the method is gone. The real fix is to give `_execute_run` a result object that carries what the post-run steps need, or to hold the library window open across them — both larger than this branch. Tracked at workspace level alongside the registry-teardown question.
diff --git a/wip/inputs/uri-scheme-classification-stopgap.md b/wip/inputs/uri-scheme-classification-stopgap.md
deleted file mode 100644
index 6f3b2bfbb..000000000
--- a/wip/inputs/uri-scheme-classification-stopgap.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# Deferred: the duplicated `"://"` scheme stopgap (make `resolve_uri` classify unknown schemes)
-
-**Status:** deferred design tradeoff — **no live bug**, fully tested. Surfaced by the PR #1032 cubic-dev-ai review ([thread](https://github.com/Pipelex/pipelex/pull/1032) on `stuff_factory.py`). The acknowledgment already lived in a code comment; this note promotes it so the follow-up isn't lost.
-
-## What the reviewer flagged (verified — the duplication is real)
-
-`resolve_uri` (`pipelex/tools/uri/uri_resolver.py`) only recognizes `data:` / `pipelex-storage://` / `file://` / `http(s)://`; **everything else falls into `ResolvedLocalPath`**. So an unrecognized scheme like `s3://bucket/x.csv` or `gs://bucket/x.csv` arrives as a `ResolvedLocalPath` whose `.path` still contains `"://"`. Two independent sites bolt on the same `"://"` check to compensate — treat such a value as *not* a genuine local path:
-
-- `uri_resolver.py` → `is_relative_local_path()`: `if "://" in resolved.path: return False` — so a scheme-like value is never rewritten as relative (it would otherwise be mangled into `<base_dir>/s3:/bucket/x`). Shared by the shaper's file/CSV arms (via `resolve_local_path_reference`) and the CLI url-key walk (`_inputs_path_resolver`).
-- `stuff_factory.py` → `try_make_csv_list_content()`: `if not isinstance(resolved, ResolvedLocalPath) or "://" in resolved.path:` — the CSV local-only guard, raising a redacted `CsvError` for a remote/scheme url. Shared by the bottom-up factory (Case 2.5 envelope) and the top-down `InputShaper._try_shape_csv`.
-
-The existing code already names this a stopgap (`uri_resolver.py`, in `is_relative_local_path`'s body): *"Mirrors the same `"://"` stopgap in the CSV input hook; both go away once `resolve_uri` classifies schemes (tools/uri follow-up)."*
-
-## Why this is deferred, not fixed now
-
-- **No live bug.** All sites behave identically today; `s3://` / `gs://` are correctly left-untouched / rejected, with coverage at `tests/unit/pipelex/core/memory/input_shaper/test_file_paths.py` (remote/scheme params), `tests/unit/pipelex/cli/test_inputs_path_resolver.py` (`S3_URL`, `GS_URL`), and `tests/integration/pipelex/csv/test_csv_input_detection.py`.
-- **The reviewer's "top-down vs bottom-up CSV flows drift apart" framing is imprecise.** Both CSV flows converge on the *same* line in `try_make_csv_list_content`, so CSV scheme-rejection is not duplicated between them. The real duplication is the CSV guard vs. the relative-path resolver — two sites, not two CSV flows.
-- **The proper fix broadens the URI-classification contract** — out of this PR's scope (it's Smart Inputs D3/D11, not a URI-tools refactor). Per the project's "defer design tradeoffs, don't reflexively apply" convention, it waits for a deliberate `tools/uri` pass.
-- The drift risk is modest-but-real: if someone tightened one site (e.g. switched to `urlsplit().scheme`) without the other, they'd diverge — but the tests above guard against silent divergence.
-
-## The fix (when `tools/uri` is next touched)
-
-- **Proper (root cause):** make `resolve_uri` classify unknown schemes — add a `ResolvedUnknownScheme` / `UriKind` variant in `pipelex/tools/uri/resolved_uri.py` and update every exhaustive `match ResolvedUri` (`extract_filename_from_uri`, `describe_uri`, `make_base64_url_from_any_uri`). Then both `"://"` band-aids delete: `is_relative_local_path` and the CSV guard branch on the typed variant instead.
-- **Partial (if a smaller step is wanted first):** extract `path_has_unrecognized_scheme(path) -> bool` in `tools/uri` and call it from both sites — consolidates the two checks into one place but keeps the heuristic.
-
-Prefer the proper fix; the partial one only removes the duplication, not the stopgap.
diff --git a/wip/inputs/yesno-implementation-plan.md b/wip/inputs/yesno-implementation-plan.md
deleted file mode 100644
index dd65156b0..000000000
--- a/wip/inputs/yesno-implementation-plan.md
+++ /dev/null
@@ -1,102 +0,0 @@
-# YesNo track — implementation plan for the native `YesNo` concept
-
-Status: **plan written 2026-07-07, implementation not started**. Design home: `smart-inputs-design.md` §D9 (**approved** — there is no separate YesNo design doc; naming, rationale, and rejected alternatives all live in D9). Branch `feature/Smart-inputs`, worktree `_smart`, based on main at v0.38.0. Track order (`README.md`): **YesNo (this plan)** → Datetime → Smart Inputs, one release wave. YesNo holds the train.
-
-How to use this doc: work the phases in order, check boxes as you go, and at each CHECKPOINT update the "state" line under it (what landed, commit hashes, open questions) so the next session cold-starts from here.
-
-## 0. Cold-start context — read this first
-
-**What ships:** one new native concept `YesNo` — the answer to a yes/no question. Content = a single required `bool`. LLM pipelines constantly produce yes/no judgments ("does this contract contain a penalty clause?") and today authors hack them as `Text` answering "yes"/"no" or a single-field structure. The name is settled (chosen over Boolean/TrueFalse/Logical/Truth/Checkbox — Access's "Yes/No" field-type precedent; PascalCase compound follows `TextAndImages`) — do not relitigate; see D9.
-
-**Core scope** (per `README.md`): enum entry, content class, structure-class mapping, schema regen (a verification, see below), MTHDS spec entry (drafted here, merged in the release wave). **Deliberately excluded:** the LLM-output ergonomics (a leaner scalar-native generation form — follow-up shared with the Date track, off the critical path) and bare-scalar input shaping (`"is_urgent": true` at the top level of an inputs file — that is the Smart Inputs D5 matrix row, which activates when Smart Inputs lands; this plan only makes the *envelope* form work).
-
-**Key mechanism facts** (verified 2026-07-07 against the worktree; line numbers approximate):
-
-- **Adding a native concept** = enum value `YES_NO = "YesNo"` in `NativeConceptCode` (`pipelex/core/concepts/native/concept_native.py:20`) + arms in its exhaustive matches — `structure_class` (`:74`), `is_composite` (`:39`, False group), `is_text_concept` (`:132`, False group), `is_dynamic_concept` (`:157`, False group) — + a `case` in `ConceptFactory.make_native_concept` (`pipelex/core/concepts/concept_factory.py:98`) + content-class registration in `CoreRegistryModels.STUFF` (`pipelex/core/registry_models.py:92`). The library auto-loads natives from the enum; reference validation and class-name lookups iterate the enum, so they pick the new value up automatically. Exhaustive `match/case` style (never `case _`) means pyright walks you to every remaining site.
-- **`structure_class_name` is auto-derived** as `f"{enum_value}Content"` → the class MUST be named `YesNoContent`, and the concept ref is `native.YesNo`. The class-name→concept inference in `StuffFactory` cases 1.3/1.5 splits on `"Content"` and feeds the prefix back through the enum — `YesNoContent` → `native.YesNo` works with zero code change once the enum value exists.
-- **The content-class precedent** is `NumberContent` (`pipelex/core/stuffs/number_content.py`): one file per class in `pipelex/core/stuffs/`, overriding `short_desc`, `rendered_plain`, `rendered_html`, `rendered_markdown`, `rendered_json`. Test precedent: `tests/unit/pipelex/core/stuffs/number_content/` (renders + smart_dump modules).
-- **The accessor family precedent** (Number's convenience surface, to mirror): `Stuff.is_number` (`pipelex/core/stuffs/stuff.py:92`) and `Stuff.as_number` (`:218`), `WorkingMemory.get_stuff_as_number` (`pipelex/core/memory/working_memory.py:483`) and `main_stuff_as_number` (`:529`), `PipeOutput.main_stuff_as_number` (`pipelex/core/pipes/pipe_output.py:77`).
-- **LLM output works day one, verify only:** PipeLLM dispatch (`pipe_llm.py:249`) sends Text-compatible single outputs down the text path and everything else down the object path with `model_json_schema()` of the structure class — `YesNo` is not Text-compatible, so `output = "YesNo"` takes the object path automatically, and the `Field(description=...)` on the bool field lands in the schema handed to the LLM (contract, not decoration). The structure-prompt machinery already handles `bool` fields (`concept_representation_generator.py:311`). Dry-run mocks use polyfactory, which synthesizes `bool` natively.
-- **Serialization is trivially safe but gets one cheap test:** `bool` is JSON-native — no kajson encoder work, unlike Date. Still pin one transport round-trip (`dump_for_transport` → `hydrate_working_memory`, `tests/unit/pipelex/runtime_bridge/primitives/test_hydration.py`) because the distributed failure mode is a hang, not an error (a content class that fails payload decode inside a Temporal workflow retries forever).
-- **Inputs today:** an envelope `{"concept": "YesNo", "content": true}` falls through `StuffFactory.make_stuff_from_stuff_content_or_data` case 2 to the terminal `Unexpected type for content value: <class 'bool'>` (`stuff_factory.py:603`) — no bool arm exists. `StuffContentFactory.make_content_from_value` (`stuff_content_factory.py:12`) is typed `value: dict[str, Any] | str` and special-cases str+`TextContent`; it widens for bool. The dict-content envelope `{"concept": "YesNo", "content": {"yes_no": true}}` works day one via `model_validate` (case 2.5). The case 2.1 str-content guard (`stuff_factory.py:470`) only admits Text-compatible concepts — a string `"yes"` for a YesNo concept errors there, and **stays** an error (no cross-kind coercion, same policy as Smart Inputs D5 and Datetime DT5).
-- **Cross-repo gotcha:** `StuffContentOrData` / `PipelineInputs` live in the **mthds-python** package (`mthds/protocol/pipeline_inputs.py`, a pinned dependency — NOT in this repo). The union does NOT admit bare `bool` — top-level `true` in an inputs file stays impossible until the Smart Inputs D10 protocol widening (release wave). Envelope dicts are `dict[str, Any]`, so bool content *inside* an envelope passes typing today; bools nested in structured dicts already work. **Core-scope answer: don't touch the protocol.**
-- **Schema regen is a verification, not a change:** `pipelex/language/mthds_schema_generator.py` does not enumerate native concept codes, so adding `YesNo` should produce a no-diff regen. Only the boolean-field-type-alias micro-decision (below), if taken, would alter the schema.
-- **Python gotcha:** `bool` is a subclass of `int`. No int arms exist in the envelope dispatch today, but any bool arm must be written to hold if one ever appears (check bool BEFORE int) — this is also the guard Smart Inputs D9 mandates for its Number arm. pydantic v2 lax mode would accept `"yes"`/`"true"`/`1` for a `bool` field via `model_validate` on the dict-content path; **the field is declared `strict=True`** so that leniency is closed and only a real `bool` validates (post-review hardening — both PR bots flagged the lax dict-content path as a coercion bypass; see the CHECKPOINT 3 procedure note).
-
-**House rules that bite here:** TDD (tests first, red→green); keyword-only args (bare `*` after the subject — `make cko` gates); error classes only in `exceptions.py` modules; no `case _` in enum matches; `make agent-check` after code changes; `make agent-test` before wrapping a session; `make tb` for a quick boot check; no hardcoded counts in docs/comments; changelog entries under `[Unreleased]`.
-
-## Phase 1 — Concept core
-
-Tests first, then make them green:
-
-- [x] **Tests** in `tests/unit/pipelex/core/stuffs/yes_no_content/` (mirror the `number_content/` module split): construction from `yes_no=True`/`False`; the render matrix — `rendered_plain`/`rendered_markdown`/`rendered_html` give `yes`/`no` (per the rendering micro-decision below), `rendered_json` gives `{"yes_no": true}`; `short_desc` (e.g. "a yes/no answer (yes)"); `smart_dump`; `model_json_schema()` contains the field description (the LLM-facing contract); pydantic does NOT accept an `int` where the bool is expected in strict construction paths (pin the `bool`-vs-`int` boundary).
-- [x] **Transport round-trip test:** extend `tests/unit/pipelex/runtime_bridge/primitives/test_hydration.py` with a `YesNo` stuff (and one inside a `ListContent`) through `dump_for_transport` → `hydrate_working_memory` — cheap insurance against the Temporal hang-not-fail decode failure mode.
-- [x] **`YesNoContent`** in new `pipelex/core/stuffs/yes_no_content.py`: `yes_no: bool` with `Field(description=...)` (wording micro-decision — it is what the LLM reads in the generation schema), `rendered_*` overrides + `short_desc` following the `NumberContent` template.
-- [x] **Enum + matches:** `YES_NO = "YesNo"` in `NativeConceptCode` + arms in `structure_class` (→ `YesNoContent`), `is_composite` (False group), `is_text_concept` (False group), `is_dynamic_concept` (False group). Let pyright surface any other exhaustive match over the enum.
-- [x] **Factory arm** in `ConceptFactory.make_native_concept`: description per the micro-decision (proposed: "The answer to a yes/no question").
-- [x] **Registry:** add `YesNoContent` to `CoreRegistryModels.STUFF`.
-- [x] **Accessors** mirroring Number's: `Stuff.is_yes_no` + `Stuff.as_yes_no`, `WorkingMemory.get_stuff_as_yes_no` + `main_stuff_as_yes_no`, `PipeOutput.main_stuff_as_yes_no` — this is how a Python-API caller reads the verdict (`pipe_output.main_stuff_as_yes_no().yes_no`).
-- [x] **Refinement sanity test:** a bundle declaring `[concept.IsUrgent]` with `refines = "YesNo"` validates, and the refining concept resolves `YesNoContent` as its structure class (the machinery is generic — this pins it).
-- [x] `make tb` (boot + registry load), `make agent-check`, targeted pytest on the new test modules.
-
-### CHECKPOINT 1 — concept exists and boots
-
-State: **reached 2026-07-07.** All Phase 1 tasks landed and gates are green (`make tb`, `make agent-check` — ruff/plxt/pyright 0-errors/mypy Success/cko; targeted pytest on the new modules all pass). Schema regen ran inside `agent-check` (no unexpected diff — confirms §0: the generator doesn't enumerate native codes).
-
-Files touched: new `pipelex/core/stuffs/yes_no_content.py`; enum+matches in `concept_native.py`; factory arm in `concept_factory.py`; registry in `registry_models.py`; accessors in `stuff.py` / `working_memory.py` / `pipe_output.py`. Tests: new `tests/unit/pipelex/core/stuffs/yes_no_content/` (renders + smart_dump + test_data), new `tests/unit/pipelex/core/concepts/concept_factory/test_yes_no_refinement.py`, extended `test_hydration.py`.
-
-Settled micro-decisions: field name `yes_no: bool` (declared `strict=True` — see the post-review hardening note in §0); renders `yes`/`no` for plain/markdown/html, `rendered_json` → `{"yes_no": true}`; field description "Whether the answer is yes (true) or no (false)."; native concept description "The answer to a yes/no question"; `short_desc` = "a yes/no answer (yes)"/"(no)". Nothing fought back — the class-name→concept inference and refinement machinery are fully generic (no changes needed there). Boundary tests pin `yes_no` = 2, `"yes"`, and 1 → ValidationError (strict rejects all non-bool, closing the dict-content coercion path).
-
-## Phase 2 — Inputs: envelope viability
-
-Scope guard: bare `true` at the top level of an inputs file (JSON or TOML) **stays an error** until Smart Inputs D5 — do not widen the mthds-python protocol here (that's D10, release wave). This phase only makes the explicit envelope usable so `YesNo` inputs exist at all pre-Smart-Inputs.
-
-- [x] **Tests first** (extended `tests/unit/pipelex/core/stuffs/test_stuff_content_factory.py` + the stuff-factory input tests via `data.py`): envelope `{"concept": "YesNo", "content": true/false}` → `YesNoContent` with concept `native.YesNo`; a refining concept (`{"concept": "test_domain.UrgencyFlag", "content": false}`) keeps its own concept ref and builds the refining subclass; bool content for a concept NOT YesNo-compatible → typed error naming `native.YesNo`; the dict-content form still works; string content `"yes"` for a YesNo concept still errors (no-coercion policy); direct `YesNoContent` instance at top level (case 1.3) infers `native.YesNo`. Confirmed RED (6 fail on the "unexpected type for content value: bool" fall-through) then GREEN.
-- [x] **`StuffContentFactory.make_content_from_value`:** widened `value` typing to `dict | str | bool` and added the arm — `isinstance(value, bool) and issubclass(stuff_content_subclass, YesNoContent)` → `stuff_content_subclass(yes_no=value)`, placed first (bool ⊑ int) and ahead of `model_validate` (which rejects a bare bool). Also widened `make_stuff_content_from_concept_required`'s `value` typing.
-- [x] **`StuffFactory` case 2 (envelope):** added case 2.1d — `isinstance(content, bool)` checked FIRST among the content-type arms (defensive vs future int handling); strict `is_compatible` vs native YesNo (mirrors the Text arm) → content via `make_stuff_content_from_concept_required` (honors refining subclasses, unlike the Text arm's flatten-to-base); else a `StuffFactoryError` naming the concept and "native.YesNo (the content is a boolean)". Case-list docstring updated with 2.1d.
-- [x] **Dry-run check:** new fixture bundle `tests/e2e/pipelex/pipes/yes_no/yes_no_judgment/` (PipeLLM `judge_is_urgent` outputs YesNo; PipeLLM `explain_verdict` takes a YesNo input). `test_yes_no_dry_run.py` — both complete in DRY mode: output mocks a `YesNoContent` via polyfactory (no generator quirks surfaced), envelope input flows through and renders inline. No fixes needed.
-- [x] **e2e:** `tests/e2e/pipelex/cli/test_yes_no_inputs_run.py` (`gha_disabled` subprocess) — `pipelex run pipe explain_verdict --inputs inputs.toml --dry-run` with the envelope form (`concept = "YesNo"`, `content = true`) succeeds; TOML scalar `true` loads via the shared inputs loader (no datetime rejection) into the envelope dict.
-- [x] `make agent-check` (ruff/plxt/pyright 0-errors/mypy Success/cko all green).
-
-### CHECKPOINT 2 — YesNo flows through inputs (envelope) and dry run
-
-State: **reached 2026-07-07.** All Phase 2 tasks landed and `make agent-check` is green. No dispatch-ordering surprises: bool is not str/StuffContent/dict/list, so the new arm slots in cleanly; placed bool-first among Case-2 arms defensively (bool ⊑ int). The Case 2.1 (str) error message needed NO update — a `"yes"` string under a YesNo concept still errors there ("not compatible with native concept 'native.Text'"), which is exactly the no-coercion behavior we wanted, so it doubles as the policy pin. Key design decision: the bool arm routes through `make_stuff_content_from_concept_required` (resolving `structure_class_name`) rather than constructing base `YesNoContent` directly like the Text arm — this honors the generated refinement subclass (`urgency__IsUrgent`), which `model_validate(True)` would reject but `subclass(yes_no=...)` builds fine. Files touched: `stuff_content_factory.py`, `stuff_factory.py`; tests `test_stuff_content_factory.py`, `data.py`, `test_stuff_factory_implicit_memory.py` (fixture registers a `UrgencyFlag(YesNoContent)` refining concept), new `tests/e2e/pipelex/pipes/yes_no/` bundle + dry-run test, new `tests/e2e/pipelex/cli/test_yes_no_inputs_run.py`. Scope guard intact: bare top-level `true` still errors (mthds-python `StuffContentOrData` untouched); only the envelope form works.
-
-## Phase 3 — LLM output verification
-
-- [x] New `tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm_yes_no_output_path.py`: a DRY-mode PipeLLM with `output = NativeConceptCode.YES_NO` is run through the router while `content_generator.make_object` is spied. Asserts the **object path** is selected (`make_object` called once — the text path calls `make_llm_text` instead), the `object_class` handed down is exactly `YesNoContent`, that class's `model_json_schema()` carries the field description (the LLM-facing contract), and the produced verdict `is_yes_no`. Markerless (pure DRY — the leaf mock short-circuits inside `make_object`, no provider called), booted on `load_empty_library` (native concepts only, no bundle). This pins the dispatch: if someone made `YesNo` Text-compatible, the object path would not be taken and the test fails loudly.
-- [ ] Optional, non-gating: one live-gateway smoke of a judgment pipe (`output = "YesNo"`) — manual, not CI.
-
-No new generation machinery: the leaner scalar-native generation form is explicitly deferred to the shared YesNo/Date LLM-output-ergonomics follow-up (D9, off the critical path).
-
-## Phase 4 — Docs, schema, changelog, wrap
-
-- [x] **Settled the boolean-alias micro-decision** (D9 parked it here): **NO alias.** The lowercase `boolean` structure-field type keeps one spelling; a friendlier `yes_no` alias would be a two-spellings drift magnet, and the concept-level brand is `YesNo`. Consequence: nothing to do at the field-type/schema level — the schema-regen step stays a no-op as predicted.
-- [x] `docs/building-methods/concepts/native-concepts.md`: added the `YesNo` table row + a `YesNoContent` section (bool field, `yes`/`no` rendering, `output = "YesNo"` PipeLLM example, `main_stuff_as_yes_no.yes_no` reader), mirroring `NumberContent`.
-- [x] `docs/building-methods/pipes/pipe-output.md`: added the `main_stuff_as_yes_no` accessor entry alongside the other `main_stuff_as_*` accessors.
-- [x] Schema regen: `.venv/bin/pipelex-dev generate-mthds-schema` runs inside `make agent-check` — **no diff**, confirming §0's prediction that the generator doesn't enumerate native codes.
-- [x] **MTHDS spec entry** (cross-repo): added the `YesNo` native-concept rows + field listing to the `mthds/` sibling repo (`docs/language/concepts.md`, `docs/spec/mthds-format.md`) on side branch `feature/native-yes-no-concept` (commit `0f55a58`, not pushed — merge vehicle is the release wave). The mthds repo was restored to `dev` afterward.
-- [x] `CHANGELOG.md` under a fresh `[Unreleased]` section (v0.38.0 was the prior top entry): added native `YesNo` concept — typed yes/no answers for LLM judgments (`output = "YesNo"`) + envelope input support; breaking — `YesNo` is now a reserved native code.
-- [x] Track bookkeeping: updated `wip/inputs/README.md` (YesNo → done, next = Datetime plan) and this plan's checkpoint states.
-- [x] Full gates: `make agent-check` + `make agent-test`.
-
-### CHECKPOINT 3 — track complete, hand off to the next train car
-
-State: **reached 2026-07-07.** All four phases committed on `feature/Smart-inputs` (pushed): Phase 1 `9f6db3765` → Phase 2 `4d1961c75` → Phase 3 `2971bf970` → Phase 4 `efe8c99da`, + `TODOS.md` reviewer's guide `92dfef141`. Full `make agent-check` + `make agent-test` green; each phase cleared a context-free Sonnet-5 `/code-review` (all correctness-clean). **PR #1028 → `dev` opened**; CI green across py3.11–3.14 (tests + typecheck + lint). **Review-bot round:** greptile (P1) + cubic (P2) both flagged the same single issue — the `yes_no` field's lax pydantic validation let the dict-content path coerce `"yes"`/`0`/`1` into a bool, bypassing the no-coercion contract. Verified valid and safe for every legitimate path, applied `strict=True` with red→green pins (`a03a88b2c`). MTHDS spec rows drafted on sibling `mthds` side branch `feature/native-yes-no-concept` (`0f55a58`, not pushed — release wave). Deferred design note: `scalar-envelope-arm-asymmetry.md`. Remaining before merge: re-trigger the bots, then a final gstack `/review` pass.
-
-## Deferred to the release-wave sweep / follow-ups (NOT this plan's scope — listed so nothing is lost)
-
-Shared per-release wave with Datetime + Smart Inputs (see `README.md`): the Smart Inputs D5 matrix row (bare `true`/`false` against a YesNo-declared input) and D10 protocol widening (`mthds-python` `StuffContentOrData`); schema-copy sync via the `mthds-schema-sync` skill; MTHDS spec merge (drafted in Phase 4); `mthds-js` mirrors; cross-repo spec-suite rows; `mthds-plugins` skills (`mthds-inputs`, `mthds-build`); vscode-pipelex completion lists; the `ConceptSpec.refines` authoring-hint native list (drifts from `NativeConceptCode` — derive it from the enum during this sweep; see `refines-hint-native-list-drift.md`).
-
-Follow-up off the critical path (shared with Date): **LLM-output ergonomics for scalar natives** — how PipeLLM produces a `YesNo`/`Date` more leanly than the generic object path (cousin of the Optionals maybe-wrapper).
-
-Our Temporal plugin (private repo): no code change expected — `bool` is JSON-native and the codec binds classes through the registry. At pin-bump time, add a `YesNo` case to its converter round-trip tests anyway (the failure mode over there is a hang, not an error; coverage is cheap insurance).
-
-## Micro-decisions log
-
-- Content field name: **SETTLED `yes_no: bool`** (the `NumberContent.number` pattern — field named after the enum value). Alternatives considered: `answer`, `value`, `is_yes`.
-- Renderings: **SETTLED `yes`/`no`** for plain/markdown/html (reads naturally when injected into downstream prompts; D9's wording); `rendered_json` keeps the raw `{"yes_no": true}`.
-- Field description wording (the LLM generation contract): **SETTLED** "Whether the answer is yes (true) or no (false)."
-- Native concept description (factory arm): **SETTLED** "The answer to a yes/no question" (D9's own phrasing).
-- `boolean` structure-field-type alias: **SETTLED — NO alias** (one way to spell a thing; the concept-level brand is `YesNo`, the field-type primitive stays `boolean`). Keeps the schema-regen a no-op.
-- Envelope string forms (`"content": "yes"`): **rejected** — no cross-kind coercion, consistent with Smart Inputs D5 and Datetime DT5. Not open; recorded so nobody reopens it casually.
diff --git a/wip/inputs/yesno-pr-reviewers-guide.md b/wip/inputs/yesno-pr-reviewers-guide.md
deleted file mode 100644
index d4362e91f..000000000
--- a/wip/inputs/yesno-pr-reviewers-guide.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# PR reviewer's guide — native `YesNo` concept
-
-> **Archived 2026-07-07.** This was the repo-root `TODOS.md` reviewer's guide for the YesNo PR (#1028). YesNo and Date have both landed on `feature/Smart-inputs` (Date via PR #1029, merged), so this guide is now historical. The durable as-built record is `yesno-implementation-plan.md`; the live track roadmap is `README.md`. Kept for the PR-reading narrative only.
-
-This branch (`feature/Smart-inputs`) adds a new built-in native concept **`YesNo`** — the answer to a yes/no question, backed by a single required `bool`. LLM pipelines constantly produce yes/no judgments ("does this contract contain a penalty clause?"); today authors hack them as `Text` answering "yes"/"no" or a one-field structure. `YesNo` makes that a typed first-class concept.
-
-**What is shippable in this PR:** the `YesNo` concept and its input/output plumbing (the diff below). Everything under `wip/inputs/` is planning/design for the broader *Smart Inputs* track (of which `YesNo` is the first of three native-concept prerequisites) — those docs are not implemented here and are not release-facing. Read `wip/inputs/README.md` for the track roadmap and `wip/inputs/yesno-implementation-plan.md` for the phased plan this PR executed (checkboxes + checkpoint state lines record the as-built).
-
-## How to review this
-
-The change is small and purely **additive** — it adds one native code and the arms an exhaustive-match tree requires, plus one factory arm for boolean envelope inputs. No existing behavior changes. Suggested reading order:
-
-1. **`pipelex/core/stuffs/yes_no_content.py`** — the content class. `yes_no: bool` with a `Field(description=...)` (the LLM-facing generation contract), `rendered_*` overrides → `yes`/`no` for plain/markdown/html, `rendered_json` → `{"yes_no": true}`, `short_desc`. Mirrors `NumberContent`.
-2. **`pipelex/core/concepts/native/concept_native.py`** + **`concept_factory.py`** + **`registry_models.py`** — the enum value `YES_NO = "YesNo"`, its arms in the exhaustive matches (`structure_class`, `is_composite`, `is_text_concept`, `is_dynamic_concept` — all in the "not composite / not text / not dynamic" groups), the factory arm ("The answer to a yes/no question"), and the `YesNoContent` registration. `structure_class_name` auto-derives to `YesNoContent`, so class-name→concept inference works with no extra code.
-3. **Accessors** — `Stuff.is_yes_no` / `as_yes_no`, `WorkingMemory.get_stuff_as_yes_no` / `main_stuff_as_yes_no`, `PipeOutput.main_stuff_as_yes_no`. These faithfully mirror the `Number` accessor family layer-for-layer; `main_stuff_as_yes_no.yes_no` is how a Python caller reads a verdict.
-4. **Envelope inputs** — `stuff_content_factory.py` + `stuff_factory.py`. A pipeline input in the envelope form `{"concept": "YesNo", "content": true}` (JSON or TOML) is shaped into a `YesNoContent`. The bool arm is checked **before** any int handling (`bool` ⊑ `int`) and before `model_validate` (which rejects a bare bool), and it routes through the concept resolver so a concept that `refines = "YesNo"` keeps its **own generated subclass** (which `model_validate(True)` would reject but `subclass(yes_no=...)` builds). A bool for a non-YesNo-compatible concept raises a typed error naming `native.YesNo`.
-
-## Test coverage
-
-- **Unit** — `yes_no_content/` (renders + smart_dump + schema-carries-description + the `bool`-vs-`int` boundary); `concept_factory/test_yes_no_refinement.py` (a `refines = "YesNo"` concept resolves `YesNoContent` — the machinery is generic); `test_stuff_content_factory.py` + `data.py` + `test_stuff_factory_implicit_memory.py` (envelope factory arm, refining-subclass preservation, no-coercion pin); `runtime_bridge/.../test_hydration.py` (transport round-trip — cheap insurance against the Temporal decode-hang failure mode, since `bool` is JSON-native).
-- **Integration** — `pipe_llm/test_pipe_llm_yes_no_output_path.py` pins that `output = "YesNo"` takes the LLM **object path** (not the text path): a DRY run spies `content_generator.make_object` and asserts it is called with `object_class=YesNoContent` whose schema carries the field description. Fails loudly if someone ever makes `YesNo` Text-compatible.
-- **E2E** — `pipes/yes_no/` dry-run bundle (`judge_is_urgent` outputs YesNo; `explain_verdict` takes a YesNo input) + `cli/test_yes_no_inputs_run.py` (subprocess: `pipelex run … --inputs inputs.toml --dry-run` with `content = true`).
-
-## Scope guards (deliberate, not omissions)
-
-- **Bare top-level `true`/`false` in an inputs file stays an error.** Only the *envelope* form works here. Bare-scalar input shaping (`"is_urgent": true` at the top level) is the Smart Inputs D5 matrix row, which activates when Smart Inputs lands. The `mthds/protocol/pipeline_inputs.py` `StuffContentOrData` union (in the external `mthds` package) is **untouched** — widening it to admit bare `bool` is the D10 protocol change, deferred to the release wave.
-- **No string→bool coercion.** A `"yes"` string under a YesNo concept still errors (it takes the str path and fails as not-Text-compatible). Consistent with Smart Inputs D5 and the Datetime track.
-- **No new LLM-generation machinery.** `output = "YesNo"` works day one via the existing object path; a leaner scalar-native generation form is an explicit follow-up shared with the Date track, off the critical path.
-- **`boolean` field-type alias: settled NO.** The lowercase `boolean` structure-field primitive keeps one spelling; the concept-level brand is `YesNo`. Consequence: the MTHDS JSON Schema regen is a **no-diff** (the generator doesn't enumerate native codes).
-
-## Cross-repo (release-wave, not in this PR)
-
-- **MTHDS spec:** the `YesNo` native-concept rows + field listing are drafted in the sibling **`mthds`** repo (`docs/language/concepts.md`, `docs/spec/mthds-format.md`) on side branch `feature/native-yes-no-concept` (not pushed). Merge vehicle is the shared release wave.
-- **Deferred to the per-release downstream sweep:** schema-copy sync (`mthds-schema-sync` skill), `mthds-js`/`mthds-python` mirrors, cross-repo spec-suite rows, skills, editor completion lists — all shared with the Datetime + Smart Inputs tracks per `wip/inputs/README.md`.
-- **Our Temporal plugin** (private repo): no code change expected (`bool` is JSON-native, classes bind via the registry); add a `YesNo` converter round-trip test at pin-bump time as cheap insurance.
-
-## Breaking change
-
-`YesNo` is now a reserved native concept code — a bundle declaring `[concept.YesNo]` errors. Noted in the CHANGELOG `[Unreleased]` section.
diff --git a/wip/instructor-117-bump-review-deferrals.md b/wip/instructor-117-bump-review-deferrals.md
deleted file mode 100644
index b23e756c7..000000000
--- a/wip/instructor-117-bump-review-deferrals.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Deferred review findings from the instructor 1.17 and aiobotocore bump
-
-Status: deferred. Each finding below came out of a `/rev` pass on `chore/Bumping` (items L-260927-56ef15 and L-260928-3a6683, with L-260927-61a69f for the aiobotocore swap), and each section says whether it was verified before it was deferred. An unverified finding rests on the reviewers' reading alone, and whoever picks it up should confirm it first.
-
-## The Anthropic worker compares a structure method with `!=` (unverified)
-
-Deferred in round 2 on L-260927-56ef15, at the `defects` bar, which fixes only confirmed defects that matter, so it was sorted as an improvement. Raised by cubic and Codex. `pipelex/providers/anthropic/anthropic_llm_worker.py`, in `_structure_method_kwargs`, tests `structure_method != StructureMethod.INSTRUCTOR_ANTHROPIC_REASONING_TOOLS` to decide whether to leave the tool choice to the model. The repository's standard is to branch on an enum with an exhaustive `match`/`case`, or through a property on the enum, so that adding a member forces someone to decide how it behaves here. As written, a new structure method silently takes the forced-tool-choice path. The suggested shape is a property such as `StructureMethod.forces_tool_choice`, or a `match` over the members that reach the Anthropic worker.
-
-## Gemini tool mode validates structured output in lax mode (verified)
-
-Deferred in round 2 on L-260928-3a6683, at the `defects` bar, on the developer's decision after a verifier confirmed it. Raised by the Codex adversarial reviewer.
-
-**The defect.** `GoogleLLMWorker._validates_structured_output_strictly` in `pipelex/providers/google/google_llm_worker.py` returns `False` under `Mode.TOOLS`, and `_gen_object` passes that as `strict=`. instructor 1.17's `parse_genai_tools` (`instructor/v2/providers/genai/handlers.py`) validates the function-call arguments with `response_model.model_validate(obj=function_call.args, strict=strict)`, so the whole response goes through pydantic's lax Python-mode validation. Driven through `_gen_object` with a faked Gemini response and a schema of `count: int`, `enabled: bool` and an enum field, the payload `{"count": "001", "enabled": "off", "color": "red"}` was accepted after one call as `count=1, enabled=False`, with no schema re-ask. The same payload under `instructor/genai_structured_outputs` was rejected with `int_type` and re-asked.
-
-**Why it went lax.** On `origin/dev`, instructor 1.15.1 validated this path strictly in Python mode, which refuses a string for an enum field, so every schema with an enum failed on Gemini tool calls, and so did ISO date strings. The branch went lax to fix that, and the looser handling of stringified scalars came with it.
-
-**Its reach.** Lax mode only accepts strings that convert cleanly to the declared type, so a re-ask would have converged on the same value; the cost is that schema-nonconforming output skips the re-ask. The shipped `google.toml` now uses `instructor/genai_structured_outputs`, so tool mode is reached only by an older copied backend file that still names `instructor/genai_tools`, or by a per-model override.
-
-**The fix, and why it was not done in the round.** Validating the tool arguments as strict JSON, `model_validate_json(json.dumps(args), strict=True)`, accepts enum strings, nested enums and ISO dates while rejecting `"001"` and `"off"`; instructor 1.17 already parses Anthropic tool calls that way. But instructor resolves its parse handler from a process-wide registry keyed by provider and mode (`instructor.v2.core.registry.mode_registry`), so the fix means registering a pipelex handler for `(Provider.GENAI, Mode.TOOLS)` over instructor's own, which changes the behaviour for every instructor genai client in the process, or asking instructor upstream to parse genai tool calls as JSON the way it does Anthropic's. One risk is unsettled either way: strict JSON rejects a float for an `int` field, which lax mode accepts, and without a live call it is unknown whether Gemini ever sends an integer argument as `1.0`. Whoever takes this should settle that with a live tool-mode call first, and add tests showing enum strings pass while stringified integers and booleans are rejected and re-asked.
diff --git a/wip/keyless/keyless-boot-changes-dry-prompts.md b/wip/keyless/keyless-boot-changes-dry-prompts.md
deleted file mode 100644
index 7600418ed..000000000
--- a/wip/keyless/keyless-boot-changes-dry-prompts.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Bug report — a keyless boot silently changed what a DRY run rendered
-
-**Filed 2026-08-14 as the brief for `fix/Keyless-dry-run`; measured 2026-08-08 and re-verified on the branch at v0.44.0. ✅ CLOSED 2026-08-14 — dissolved, not fixed.** Kept as the record of what the bug was and of the measurement lesson at the end. The residue that survived it is tracked in [`keyless-dry-prompts-fix-plan.md`](keyless-dry-prompts-fix-plan.md).
-
-## What the bug was
-
-A DRY run's whole purpose is to rehearse the real run without spending money — which is why it is documented as needing no keys. That promise reads as "same program, mocked leaves". It was not: **a dry run booted keyless rendered different prompts from a dry run booted with credentials, and nothing in either run said so.**
-
-Take any method where a second `PipeLLM` step's prompt embeds a first step's output, and run it DRY twice — identical inputs, identical method — varying only the boot: `needs_inference=False` (keyless) vs `needs_inference=True` (keyed).
-
-| boot | derived templating style | how step 1's output was tagged into step 2's prompt |
-| --- | --- | --- |
-| keyless | `None` | the Jinja2 filter's own fallback, `` result: ``` `` |
-| keyed | the model's own, e.g. `xml/plain` | `<result>` |
-
-Both runs completed, both reported the same usage records, neither logged anything about the difference. A dry run used for **validation** — "does this method's prompt render?" — was validating a prompt the live run would never send, whenever it ran keyless.
-
-**Why it happened.** `RuntimeBoot.make` derived the boot's need for model specs from `needs_inference`, and — the actual mechanism — a keyless boot loaded the backend library leniently, which skipped every backend whose `${…_API_KEY}` could not substitute. Every shipped backend declares its key that way, so the deck was empty. `derive_templating_style` then took its documented `None` path, written for the external-LLM-plugin case where "the deck has no model for this handle" means the model is real but managed elsewhere; a keyless boot satisfied that condition for **every** model at once and the caller could not tell the two situations apart. `None` reached the Jinja2 filters, whose `TICKS` fallback silently rendered rather than failed.
-
-## Why it is gone
-
-Prompt shape is now an authoring decision — a pipe declares `templating_style`, anything that declares nothing takes one runtime default from config, and **no code path consults the deck, a model spec, or a credential to decide how a prompt is tagged.** A keyless boot and a keyed boot therefore render byte-identical prompts by construction. Both load-bearing facts above are deleted: `derive_templating_style` no longer exists, and the Jinja2 filters raise `Jinja2ContextError` where a style is genuinely absent instead of quietly picking a shape — so the failure mode named in this report's title, *silently*, is unreachable even in principle. Design: [`../prompting-style/prompt-style-as-an-authoring-decision.md`](../prompting-style/prompt-style-as-an-authoring-decision.md); build: [`../prompting-style/templating-style-implementation-plan.md`](../prompting-style/templating-style-implementation-plan.md). The change was **not** undertaken to fix this bug — it was a separate design ruling that happened to dissolve it.
-
-**What did not get fixed.** The boot behaviour this report *diagnosed* is untouched: a keyless boot still drops every backend and still yields an empty deck, which still governs things unrelated to prompting — a skipped `max_prompt_images` check, skipped image-param validation, and handle-pinned bundles rejected on a keyless machine. Those are the subject of the fix plan. One correction from the re-verification is worth carrying: `needs_model_specs=True` is **not** a credential-free seam — it only governs whether the gateway's remote specs are fetched or dummied; the deck is emptied by the lenient backend load, and no flag combination gives a credential-free process a populated deck today.
-
-## Why it stayed invisible — the lesson that outlives the bug
-
-Any gate whose two sides boot the same way cannot see this variable at all, and reads as evidence that it does not matter. Two keyless sides agree with each other perfectly; the divergence only surfaces when a keyless side is compared against a side that *cannot* boot keyless (e.g. a worker whose boot hard-fails without credentials). It first presents as a downstream divergence ("the same program produces different content over there") — it is not; splitting the boot variable isolates it. Any future two-sided gate on this area must vary exactly one thing, credential presence, and nothing else.
diff --git a/wip/keyless/keyless-dry-prompts-fix-plan.md b/wip/keyless/keyless-dry-prompts-fix-plan.md
deleted file mode 100644
index cda5a3022..000000000
--- a/wip/keyless/keyless-dry-prompts-fix-plan.md
+++ /dev/null
@@ -1,156 +0,0 @@
-# Fix plan — a keyless boot must not change what a DRY run validates
-
-**Written 2026-08-14 on `fix/Keyless-dry-run` (measured at v0.44.0), for the brief in [`keyless-boot-changes-dry-prompts.md`](keyless-boot-changes-dry-prompts.md). Re-scoped the same day, when the templating-style change dissolved the headline symptom, and again on 2026-08-15 when Part 4 shipped.** What is left is a real bug and still worth fixing, but a narrower one than the plan was written for: a keyless boot drops every backend, so the deck is empty — and the deck governs things that have nothing to do with prompting.
-
-**Status:**
-
-- **Part 4 — ✅ shipped** on the stacked branch `fix/keyless-followups`: `pipelex run --dry-run` boots keyless, like `pipelex-agent run --dry-run` (§3.4).
-- **Part 2 — ⏸ awaiting Louis' ruling** (§5). It is the core and the expensive half, and its case got weaker when the silent-rewrite symptom vanished; whether it is still worth its blast radius is an open question, not a conclusion this plan has reached.
-- **Parts 0 and 3** — build only with Part 2; they have no meaning without it.
-
-## 0. The mechanism, measured
-
-### 0.1 A keyless boot yields an empty deck
-
-Booting `Pipelex.make(...)` several ways and counting the deck:
-
-| boot | machine | deck `inference_models` |
-| --- | --- | --- |
-| `needs_inference=True` | keyed | every configured model |
-| `needs_inference=False` | keyed | only the backends whose key happens to be set |
-| `needs_inference=False, needs_model_specs=True` | keyed | every configured model |
-| `needs_inference=False` | **no credentials at all** | **0** |
-| `needs_inference=False, needs_model_specs=True` | **no credentials at all** | **0** |
-
-Re-verified live on 2026-08-15 with a scratch `HOME` holding no `.env` and every `*_API_KEY` unset: a bundle pinning `model = "gpt-4o-mini"` fails a dry run with *"Model handle 'gpt-4o-mini' was not found in the model deck"*, and passes on the same code with credentials present.
-
-### 0.2 `needs_model_specs=True` is **not** the credential-free seam
-
-The brief assumed it was. It is not: on a machine with **no credentials**, `needs_model_specs=True` changes nothing, because it only governs whether the *gateway's* remote specs are fetched or dummied (`pipelex/runtime_boot.py`). The thing that actually empties the deck is a different flag on a different axis:
-
-```
-runtime_boot.setup(needs_inference=False)
- → ModelManager.setup(needs_inference=False)
- → InferenceBackendLibrary.load(lenient=True)
- → every backend whose `api_key = "${…}"` cannot substitute
- is SKIPPED entirely (log.verbose only — invisible at default log level)
- → build_deck(enabled_backends=[])
- → deck.inference_models == {}
-```
-
-Every shipped backend declares its key as a `${VAR}` (`pipelex/kit/configs/inference/backends.toml`), the gateway included. So on a keyless machine **`lenient=True` drops every backend**, and `lenient` is wired to `needs_inference`, not to `needs_model_specs`. There is currently *no* flag combination that gives a credential-free process a populated deck. Note that since the templating-style branch, `lenient` swallows *only* `InferenceBackendCredentialsError` — a broken config file is fatal in both modes — so the conflation left to break is exactly "cannot call this provider" vs "do not know what its models are like".
-
-This is not "flip the existing seam on"; it is "build the seam".
-
-### 0.3 The metadata is already credential-free on disk
-
-`max_prompt_images`, `rules`, `inputs`/`outputs` and costs live in the per-backend spec TOMLs, which need no credential to read. Only the *backend entry's* `${VAR}` substitution fails. The load conflates two unrelated things — "can I call this provider" and "do I know what its models are like" — and drops the second because the first failed.
-
-The gateway is the one genuine exception: its specs come from a remote fetch (a public URL, no key needed for the fetch itself), so an offline keyless boot cannot know them. That residual is what §3.3 makes audible instead of silent.
-
-## 1. The decision: faithful, with the residual said out loud
-
-Recommendation, *if Part 2 proceeds at all*: **faithful**, because the metadata is free (§0.3) and because "same program, mocked leaves" is what a dry run is *for* — a rehearsal that quietly skips checks is worth less than no rehearsal. The invariant to establish:
-
-> **Credentials gate inference. They do not gate knowledge of models.** A boot without credentials resolves the same models and the same model constraints as a boot with them; what it cannot do is call a provider.
-
-One thing the invariant deliberately does not promise, handled in §3.3: gateway-hosted models on an **offline** keyless boot are unknowable, so warned.
-
-## 2. Blast radius, enumerated
-
-Everything a keyless boot changes, via the one mechanism "the deck has no `InferenceModelSpec`":
-
-| # | Symptom | Mechanism | Site | Status |
-| --- | --- | --- | --- | --- |
-| 3 | `PipeImgGen`'s `max_prompt_images` limit is not enforced | `model_spec` `None` → limit `None` → check skipped | `pipe_operators/img_gen/pipe_img_gen.py`, `img_gen_prompt_blueprint.py` | code-read, test in §3.1 |
-| 4 | `PipeImgGen` param-support validation is skipped | `spec is None` → early return | `pipe_operators/img_gen/pipe_img_gen.py` | code-read |
-| 5 | A bundle pinning a **bare model handle** is *rejected* on a keyless machine | `is_model_handle_defined` false against an empty deck | `cogt/models/model_deck_check.py` | **measured** (`ModelChoiceNotFoundError`, re-verified 2026-08-15) |
-| 6 | Deck preset validation degrades to log-only noise | every handle missing → `missing_presets_reaction = "log"` | `cogt/models/model_deck.py`, `pipelex.toml` | code-read |
-| 7 | The two CLIs disagreed on a keyless machine | `pipelex run --dry-run` booted **keyed** (failed outright without keys); `pipelex-agent run --dry` booted keyless | `cli/commands/run/_run_core.py` | **✅ fixed** — Part 4 |
-
-**Item 5 is the strongest survivor, and it stands alone.** It used to be paired with a *silent* prompt rewrite; what remains is a keyless process *loudly* rejecting handle-pinned bundles. A loud wrong answer is a much weaker motivation for the Part 2 surgery than a silent one was — it is visible, diagnosable, and arguably defensible ("this machine cannot resolve that handle") — but it does mean a keyless CI runner or an agent authoring before keys are configured gets a false rejection for any method that pins a handle. This is the single biggest input into the ruling in §5.
-
-**Verified non-effects** (so the fix does not chase them): dry-run mock usage records are model-independent — `dry_mock.py` uses fixed `DRY_RUN_INFERENCE_MODEL_*` constants — and mock text length comes from `dry_run_config`, not from any spec.
-
-## 3. The fix
-
-TDD throughout: each part lands its tests first, red, then the implementation that turns them green.
-
-### 3.1 Part 0 — characterization tests (all red before any production edit)
-
-New module `tests/integration/pipelex/system/test_keyless_boot_model_metadata.py`, sibling to the existing `test_keyless_boot_forced_dry.py` (reuse its module-scoped `Pipelex.teardown_if_needed()` fixture pattern).
-
-**The two-sided gate must differ in exactly one variable — credential presence — and nothing else.** Do *not* compare a keyed boot against a keyless one: that varies the boot flag too, and CI machines may or may not carry real keys. Instead inject two secrets providers into an otherwise identical keyless boot:
-
-- `EmptySecretsProvider` — every lookup raises `SecretNotFoundError` (a genuinely keyless machine).
-- `FakeCredentialedSecretsProvider` — every lookup returns `"fake-key"` (a credentialed machine; no call is ever made, the boot is forced-DRY).
-
-Both via `Pipelex.make(secrets_provider=…, needs_inference=False)`. Assertions, all failing today:
-
-1. `len(deck.inference_models)` is equal on both sides (today: 0 vs every configured model).
-2. A bundle pinning a bare handle passes `check_llm_choice_with_deck` on both sides (today: `ModelChoiceNotFoundError` on the empty side — item 5).
-3. A `PipeImgGen` given more input images than the model's `max_prompt_images`, dry-run keyless with `EmptySecretsProvider`, raises — today it passes (item 3).
-
-Optional guard, not a receipt: `tests/integration/pipelex/pipes/test_dry_prompt_parity_keyless.py` — a two-step method whose second `PipeLLM` embeds the first's output, dry-run under both providers, asserting the two rendered prompts are **identical**. It is green before any production edit, because prompt rendering no longer reads the deck; it guards against re-coupling prompt shape to infrastructure and must be labelled as such in its docstring. **Never use it as the mutation-check target for Part 2** — it passes with or without Part 2, so it would produce a false green on the whole gate.
-
-### 3.2 Part 2 — credential-free model metadata (the core)
-
-**The conflation to break:** a lenient load answers "cannot resolve this backend's credential" by dropping the backend, and with it every fact about its models.
-
-Unit module `tests/unit/pipelex/cogt/model_backends/test_backend_library_metadata_load.py` — a temp-dir `backends.toml` + one backend spec TOML + `EmptySecretsProvider`:
-
-1. metadata-only load: the backend **is present**, its `model_specs` carry `max_prompt_images` and friends, `api_key is None`, and `missing_credential_vars == ["…_API_KEY"]`.
-2. credentials-required load (a keyed boot): still raises `InferenceBackendCredentialsError` — unchanged.
-3. metadata-only load of a **malformed** spec file: still fatal — unchanged (a config typo must never silently delete a backend).
-4. a backend with missing credentials is reported as enabled-but-uncredentialed, and is **not** in `all_credentialed_backends()`.
-
-Implementation:
-
-- Replace the `lenient: bool` parameter of `InferenceBackendLibrary.load` with an explicit `BackendLoadMode` StrEnum — `REQUIRE_CREDENTIALS` / `METADATA_ONLY`. Credential errors no longer skip the backend in `METADATA_ONLY`; nothing else changes.
-- Substitution today is all-or-nothing: `apply_to_strings_recursive` raises on the first unresolvable `${VAR}`. Add a collecting variant that, in `METADATA_ONLY`, substitutes what resolves, records the names it could not, and leaves those fields unset. Note `${AZURE_API_BASE}`-style endpoints go the same way — irrelevant to metadata, relevant only to a call.
-- `InferenceBackend` gains `missing_credential_vars: list[str]` and an `is_credentialed` property. Keep `all_enabled_backends()` returning uncredentialed backends — the deck must contain their models — and add `all_credentialed_backends()` for callers that mean "usable for inference".
-- `ModelManager.setup` picks the mode from `needs_inference`.
-- **Guard the live path loudly.** `pipelex/providers/openai/openai_client_factory.py` turns a `None` key into `"unused-no-auth-needed"`, which would surface a missing credential as a provider 401 rather than as our own error. Gate at the point a backend becomes a client/worker: an uncredentialed backend raises `InferenceBackendCredentialsError` there. Defence in depth — a keyless boot is forced-DRY so no worker should be built at all — but the placeholder is a live-fire hazard either way.
-- Sweep `all_enabled_backends()` callers (doctor, `show backends`, the init flows) and move the ones that mean "credentialed" onto the new accessor. This is the part most likely to surprise; do it with a grep, not from memory.
-
-Green after this: every assertion in §3.1 except any gateway-only model on an offline machine.
-
-### 3.3 Part 3 — the residual, made audible
-
-Once Part 2 lands, a missing model spec on a keyless boot means something specific and narrow: *this model's metadata is genuinely unknowable here* (gateway model, no network, dummy specs) — not "we forgot to load anything". Warn exactly there, and only there: at the `max_prompt_images` and param-support checks, when the spec is absent under a forced-dry boot, log that the constraint was not enforced and why.
-
-Dedupe per boot, not per run: keep the already-warned handles on the `ModelDeck` instance, which is rebuilt at each boot. **Not** a ContextVar and not module-global state (payload-first, no ContextVars; a process-global set leaks across runs in a server).
-
-### 3.4 Part 4 — entry-point audit — ✅ shipped
-
-- `pipelex run --dry-run` boots `needs_inference=not dry_run` with `needs_model_specs=True`, the same boot `pipelex-agent run --dry-run` uses. Verified live: on a truly keyless machine the unfixed CLI died with *"Pipelex Gateway API key not set"*, the fixed one completes the dry run. Documented on `docs/tools/cli/run.md` and `docs/features/validation-dry-run.md` (including the item-5 limit, honestly), changelog entry under `[Unreleased]`, `cli-docs` drift contract acked.
-- Still to confirm *if Part 2 lands*: `graph_cmd.py` and `show_cmd.py` boot with `needs_inference=False`; after Part 2 they get metadata anyway — confirm neither then does surprise network I/O. And the programmatic path, plain `Pipelex.make(needs_inference=False)`, becomes faithful for every locally-configured backend without needing `needs_model_specs=True`.
-
-## 4. Sequencing (Parts 0, 2, 3)
-
-1. **Part 0 tests** — commit red (or `xfail` with a reason naming this doc, flipped in step 3). They are the receipt that the bug exists.
-2. **Part 2** — the core. ⛳ *Checkpoint*: re-run the §3.1 gate and record actual numbers in this doc before touching anything else; Part 2 is where a hidden `all_enabled_backends()` consumer would show up.
-3. **Part 3**, then flip the xfails.
-4. **Mutation-check the gate**: revert Part 2 locally and confirm the *deck-count and handle-resolution* assertions go red. Do not mutation-check against the prompt-parity guard.
-5. `make agent-check` && `make agent-test`.
-
-## 5. Decisions for Louis
-
-- **⚠️ The prior question: is Part 2 still worth building?** The symptom that justified "faithful over cheap" — a dry run silently validating a prompt that would never be sent — is gone. Every survivor is either loud (5), a skipped constraint check (3, 4), or already fixed (7). The case *for*: item 5 gives keyless CI runners and pre-setup agents a false rejection on handle-pinned methods, and the invariant in §1 is the right one in principle. The case *against*: it is a loader-semantics change with a caller sweep and a live-path guard, for symptoms that are all visible or minor. If it proceeds, it is its own PR, not a rider.
-- **Faithful over cheap** (§1) — confirm, if Part 2 proceeds. The alternative is a log line and a documented divergence (the docs already state the item-5 limit), which is honest but leaves dry-run-as-validation skipping constraint checks it claims to run.
-- **Handle-pinned bundles start validating keylessly** (item 5). A bundle that today fails `pipelex-agent validate` on a keyless machine will pass. That is a fix, but it changes CI outcomes for keyless runners — say so in the changelog.
-- **Does `needs_model_specs` survive?** After Part 2 it means only "fetch the gateway's remote specs rather than dummy them" — i.e. a *network* flag, not a metadata flag. Either rename it (`needs_gateway_specs`) or document the narrowed meaning. Renaming touches every CLI command that passes it; recommend renaming, since the current name is precisely what made the brief's closing assumption wrong.
-
-## 6. Docs, changelog, drift (with Part 2)
-
-- `docs/features/validation-dry-run.md` — replace the item-5 limit with the guarantee and its one exception (offline gateway models).
-- `docs/under-the-hood/dry-run-mock-generation.md` — the credentials-vs-metadata split, and what the new warning means.
-- Backend config docs — `missing_credential_vars` / uncredentialed-but-enabled as a visible state.
-- `CHANGELOG.md` under `## [Unreleased]`: the keyless-validation change for handle-pinned bundles, and the `needs_model_specs` rename if taken.
-- `make drift-plan` after staging — Part 2 touches config-model and CLI trigger files; ack with an honest rationale.
-
-## 7. Out of scope
-
-- Anything about *live* runs. This is a dry-run faithfulness fix.
-- Making gateway specs available offline (a cache-warming feature, not this bug).
-- The `missing_presets_reaction` policy (item 6) — after Part 2 the deck is populated, so the noise disappears on its own; if it does not, that is its own investigation.
diff --git a/wip/kick-off-drift-hunt.md b/wip/kick-off-drift-hunt.md
deleted file mode 100644
index 9da3a6925..000000000
--- a/wip/kick-off-drift-hunt.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# Drift Hunt — moved
-
-This campaign plan was promoted to the live tracker at the repo-root `TODOS.md` on branch `docs/Drift-hunt` (2026-07-12). All state — decisions D1–D6, stage checklists, checkpoint protocol, cold-start context — lives there now; this stub only preserves the original location for links.
-
-Campaign working artifacts live under `wip/drift-hunt/`.
diff --git a/wip/line-endings-writer-sweep.md b/wip/line-endings-writer-sweep.md
deleted file mode 100644
index 3428b79d0..000000000
--- a/wip/line-endings-writer-sweep.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# Line endings: the writer-by-writer half
-
-Surfaced by the U4 fix on `feature/Codegen-followups` (PR #1127), during the `/review` pass on 2026-08-19. **Not a codegen item** — U4 is closed and every codegen write path is covered. This is the pre-existing repo-wide residue that U4 made visible, and it is deliberately not part of that PR.
-
-## What is already done
-
-`.gitattributes` now carries `* text=auto eol=lf`, so every **tracked** file is normalised to LF in the index and on checkout whatever the platform. That closes the user-visible half of the problem — no churning diffs, no CRLF landing in a commit — and it cost one line. No tracked file contained CRLF when it landed, so it introduced no renormalisation diff.
-
-## What is left, and why it still matters
-
-`.gitattributes` fixes the files git owns. It does not fix the writers, and two things still follow from that:
-
-- A file written **outside** a git checkout (a consumer's output directory, a temp tree, a container) still lands with the host's line endings.
-- A content hash taken over an in-memory LF string still stops describing the bytes on disk, which is the property `save_text_to_path` was fixed to restore.
-
-Each site below writes a **tracked** artifact today and passes no `newline` argument, so Python translates every `\n` to `os.linesep`. The fix in each case is the same one U4 applied: route the write through `pipelex.tools.misc.file_utils.save_text_to_path`, which passes `newline="\n"`.
-
-| Site | Writes | Gated by |
-|---|---|---|
-| `pipelex/kit/single_file_agent_rules.py:139` | repo-root `CLAUDE.md`, `AGENTS.md` | `make check-rules` |
-| `pipelex/tools/misc/toml_utils.py:75` (`save_toml_to_path`) | `subject_grants.toml`, `.drift/acks/*.toml` | `make check-keyword-only`, `make drift-check` |
-| `pipelex/migration/goldens.py:105,112` | `pipelex/migration/goldens/**` | `make check-migration-schemas`, `make check-ledger` |
-| `pipelex/errors/error_pages_generator.py:367` | `docs/errors/*.md` | `make docs-check` |
-| `pipelex/cli/dev_cli/commands/generate_error_identity_cmd.py:44` | `tests/data/errors/error_identity.txt` | `test_error_identity_snapshot.py` |
-| `pipelex/cli/dev_cli/commands/duration_map.py:66` | `.test_durations` | `test_test_durations_paths.py` |
-| `pipelex/cli/dev_cli/commands/update_gateway_models_cmd.py:142-143` | the gateway model reference pairs | `make check-gateway-models` |
-| `pipelex/cli/dev_cli/commands/keyword_only_guard.py:923` | any `pipelex/**/*.py` the fixer rewrites | `make check-keyword-only` |
-| `pipelex/cli/dev_cli/commands/refresh_graph_ui_sri_cmd.py:198` | `pipelex/graph/reactflow/standalone_assets.py` | manual |
-| `pipelex/graph/graph_factory.py:159-177` | graphspec JSON, Mermaid, ReactFlow HTML | not tracked; user output |
-| `pipelex/cogt/models/deck_manifest.py:160` | `.pipelex/inference/deck/.kit_manifest.json` | not diff-gated |
-
-`save_toml_to_path` is the one that is not a one-liner: it hands an open file to `tomlkit.dump` rather than writing a string, so it needs `open(path, "w", encoding="utf-8", newline="\n")` instead of a call swap.
-
-## The trap that hid this
-
-The sweep behind U4 grepped for `os.linesep` and found nothing, which read as a clean bill. That is the wrong probe: the bug is the **absence** of an explicit `newline="\n"`, never the presence of `os.linesep`. Grep for `write_text(` and `open(..., "w")` instead.
-
-The second trap is why none of the gates above would have caught it. Every one of them compares a freshly rendered string against `path.read_text(...)`, and that read uses universal newlines — so it folds CRLF back to LF *before* the comparison. A CRLF-corrupted committed file passes its own freshness check while being byte-different from what the tool writes. The check is blind to exactly the corruption it looks like it would catch.
-
-## Known, and deliberately left alone
-
-- **`keyword_only_guard.py` reads with translation too**, so its CRLF-preservation branch in `fix_source` — the one `test_crlf_line_endings_preserved_and_fixed` pins byte-for-byte — is unreachable through the only caller that touches the filesystem. Fixing the write without deciding the read leaves it half-done. The open question is whether the fixer should genuinely preserve CRLF (read and write with `newline=""`) or declare itself LF-only and delete the branch. Decide that on its own terms.
-- **`load_text_from_path` still reads with universal newlines** while `save_text_to_path` now writes verbatim. One consequence is worth knowing rather than fixing: a generated file already on disk as CRLF reads back as LF, compares equal to the canonical content, and is therefore never rewritten by `_write_if_changed` — so the LF fix does not heal a tree that was already corrupted, it only stops new corruption. The tree is stable either way (nothing rewrites it, so nothing churns), which is why this is a note and not a bug.
diff --git a/wip/llm-max-tokens-fallback-dead-code.md b/wip/llm-max-tokens-fallback-dead-code.md
deleted file mode 100644
index 07a700df3..000000000
--- a/wip/llm-max-tokens-fallback-dead-code.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# LLM `max_tokens` model fallback in `_apply_constraints` is (almost) dead code
-
-**Status:** Deferred design tradeoff (not a regression — pre-existing on `main`, moved byte-equivalently by the plugins refactor). Flagged by cubic on PR #1020.
-
-## Current behavior
-
-`LLMWorkerAbstract._apply_constraints` (`pipelex/cogt/llm/llm_worker_abstract.py`; previously identical in `llm_worker_internal_abstract.py` on `main`) computes a max-tokens fallback but only ships it when a *temperature* rule fires:
-
-```python
-max_tokens = original_params.max_tokens or self.inference_model.max_tokens
-new_max_tokens = max_tokens
-has_changes = False
-# ... only temperature constraints set has_changes = True ...
-if not has_changes:
- return None # applied_job_params stays None → workers use the original params
-return original_params.model_copy(update={"temperature": new_temperature, "max_tokens": new_max_tokens})
-```
-
-Every worker consumes `llm_job.applied_job_params or llm_job.job_params`, then sends `job_params.max_tokens or omit`. So when a job omits `max_tokens`:
-
-- **No temperature constraint on the model** → no cap is sent; the provider default applies.
-- **A temperature constraint fires** → the model's `max_tokens` from the spec IS sent as the request cap.
-
-The cap a provider receives depends on an unrelated temperature rule — an inconsistency, though each individual outcome is defensible.
-
-## Options
-
-1. **Mark the fallback as a change** (cubic's suggestion: `has_changes = new_max_tokens != original_params.max_tokens`): the model spec's `max_tokens` is always sent explicitly when the job omits it. Consistent, "model constraints actually enforced" — but changes wire behavior for every provider/backend on every capless request.
-2. **Remove the fallback**: `new_max_tokens = original_params.max_tokens` unchanged; when a temperature rule fires, the applied params keep the job's own (possibly absent) cap. Provider default semantics become uniform — also a wire behavior change, in the opposite direction, limited to constraint-firing models.
-3. **Status quo**: keep the inconsistency documented here.
-
-## Decision needed
-
-Pick 1 or 2 in a normal dev cycle (not a release branch) with a targeted live-inference sanity pass, since either option changes what gets sent on the wire. Whichever way it goes, add a unit test on `_apply_constraints` pinning the chosen `max_tokens` semantics.
diff --git a/wip/log-trace-fields-current/design.md b/wip/log-trace-fields-current/design.md
deleted file mode 100644
index e6ca940d9..000000000
--- a/wip/log-trace-fields-current/design.md
+++ /dev/null
@@ -1,69 +0,0 @@
----
-status: landed
-item: L-260927-6b356b
----
-
-# A log line's standard trace fields name OpenTelemetry's current span
-
-This is the log-line half of the ruling Louis took on L-260925-247280 on 2026-09-27, option L2: the standard trace fields of a log line always name OpenTelemetry's current span in the process, and the Pipelex span active in the task travels beside them as `pipelex.trace_id` and `pipelex.span_id`. The span half of the same ruling, the `join_host_trace` opt-in that makes Pipelex's spans current, is L-260927-f30a84 and is out of scope here.
-
-## What the code does today
-
-The item's claims were checked against `dev` at `4520b42a2` and hold.
-
-- `pipelex/system/telemetry/current_span.py`: `span_context_for_logs()` returns the held Pipelex span's context whenever one is held, and falls back to OpenTelemetry's current span only outside a Pipelex span. `otel_context_for_logs()` does the same for the OpenTelemetry API that takes a context, by building a context with the Pipelex span set in it.
-- `pipelex/tools/log/json_log_sink.py`: `_trace_context()` writes `trace_id`, `span_id` and `trace_flags` from `span_context_for_logs()`.
-- `pipelex/tools/log/otlp_log_sink.py`: `OtlpLogHandler.emit` files each record under `otel_context_for_logs()`, so the OTLP record's own trace context names the Pipelex span.
-- `pipelex/tools/log/gcp_log_sink.py`: the entry's `trace` field is `trace_name_for_run(...)`, a trace id derived from the record's `pipeline_run_id` by the tracer's own hash, whether or not any tracer exists, and the entry carries no `spanId` and no `traceSampled`.
-- Every line already carries `pipeline_run_id` (`pipelex/tools/log/log_context.py`), and the `gcp` sink carries it as a label, so a run stays joinable without the standard fields.
-- The behaviour shipped in v0.66.0 (the CHANGELOG entry "Log lines carry the trace context of the span they were logged in"), so this is a change to a released wire shape.
-- Neither `pipelex-server` nor `pipelex-api` reads these helpers, registers a global tracer provider, or instruments FastAPI; nothing in the hosted plane consumes `trace_id` from a log line. Two docs describe the current behaviour: `pipelex-api/docs/logging.md:28` says the trace fields are present "for a line the runtime emits from inside a traced run", which this change makes false, and `pipelex-server/docs/logging.md:14`.
-
-## The rule
-
-For every sink that writes trace context:
-
-- **The standard fields** (`trace_id`, `span_id`, `trace_flags`, or the sink's own equivalent) name OpenTelemetry's current span in the process when it is valid, and are absent otherwise. Pipelex only reads that span; it never sets it.
-- **The Pipelex fields** `pipelex.trace_id` and `pipelex.span_id` name the Pipelex span held in the task by `pipelex_span_active`, when one is held, and are absent otherwise.
-
-The two are independent: a line can carry both, either, or neither. Inside a run with a host span it carries both, naming different traces; inside a run with no host span only the Pipelex fields; outside a run under a host span only the standard fields; outside everything, neither. Once L-260927-f30a84 makes the Pipelex span current under its opt-in, the two sets coincide inside a run, and nothing on the log side has to change for that.
-
-## Wire shape per sink
-
-| Sink | Standard fields, from OpenTelemetry's current span | Pipelex fields, from the held Pipelex span |
-| --- | --- | --- |
-| `json` | `trace_id` (32 hex), `span_id` (16 hex), `trace_flags` (2 hex), as today | `pipelex.trace_id` (32 hex), `pipelex.span_id` (16 hex), right after the standard ones and before the carried fields |
-| `otlp` | The log record's own trace context, from `get_current()` | Attributes `pipelex.trace_id` and `pipelex.span_id`, hex |
-| `gcp` | The entry's `trace` (`projects/<project>/traces/<32 hex>`), `span_id` (16 hex) and `trace_sampled` (the sampled bit) | Payload keys `pipelex.trace_id` and `pipelex.span_id`, hex |
-
-The `console` sink writes no trace context and is untouched.
-
-## Decisions
-
-- **Flat dotted keys, not a nested `pipelex` object.** `pipelex.trace_id` is the OpenTelemetry attribute-namespace spelling, which the `otlp` sink needs anyway, and the span attributes Pipelex already exports use the same prefix (`pipelex.run.user_id`). One spelling across the three sinks keeps a field's wire name independent of the sink, which is the rule the sinks already follow for every other key. A backend that flattens nested JSON into dotted names, CloudWatch Logs Insights among them, addresses the flat key the way it would a nested one.
-- **The Pipelex fields are written whenever a Pipelex span is held, even when they equal the standard ones.** A consumer that joins on `pipelex.trace_id` must find it on every line of a traced run, whatever the operator's configuration. Omitting it when it duplicates the standard fields would save a few bytes and make the key conditional on a setting the reader cannot see.
-- **No `pipelex.trace_flags`.** The ruling names the trace and span ids only, and the Pipelex span's flags are the hard-coded `SAMPLED` of its synthetic parent (`pipe_abstract.py`, `llm_worker_abstract.py`), which says nothing a reader can use. L-260927-f30a84 replaces that flag with the host's decision; if the flag ever carries information on its own, adding the key is additive.
-- **The `gcp` sink stops deriving a trace from `pipeline_run_id`.** `trace_name_for_run` goes; the `trace` field is built from the current span's trace id, and `span_id` and `trace_sampled` are passed beside it, which the client library's `BackgroundThreadTransport.send` forwards as keyword arguments to the entry (checked against the installed `google-cloud-logging`: `send(record, message, **kwargs)` enqueues the kwargs, and `Batch.log(message=None, **kw)` builds the entry from them). The derivation was also wrong in a way the item does not mention: it filed a line under a trace even when no tracer existed, and under the opt-in the Pipelex trace id will no longer be the hash of `pipeline_run_id` at all. The Pipelex fields in the payload come from the held span, never from a derivation, for the same reason.
-- **The new keys are reserved like the others.** `pipelex.trace_id` and `pipelex.span_id` join the `json` sink's `FIXED_KEYS`, which the `gcp` sink reuses as its reserved payload keys, and the `otlp` sink's `RESERVED_ATTRIBUTE_KEYS`, so a carried field of the same name is written under the `field_` prefix on every line, with or without a span.
-- **The readers are renamed, not re-pointed.** `span_context_for_logs()` keeps a name while changing its meaning, and every caller of it, the sinks and the tests that assert which Pipelex span a pipe, an LLM call or the Bedrock thread holds, needs to decide which of the two spans it means. `current_span.py` exposes instead:
- - `current_span_context_for_logs() -> SpanContext | None`: OpenTelemetry's current span when valid.
- - `pipelex_span_context_for_logs() -> SpanContext | None`: the held Pipelex span's context.
- - `pipelex_trace_fields_for_logs() -> dict[str, str]`: the two Pipelex fields, hex-encoded, or an empty dict, which all three sinks write.
- - `PIPELEX_TRACE_ID_KEY` and `PIPELEX_SPAN_ID_KEY`, the one place the two names are spelled.
-
- `otel_context_for_logs()` is deleted: the `otlp` sink passes `get_current()`. The old names disappear rather than stay as aliases, per the workspace's no-backward-compatibility rule; `docs/under-the-hood/log-sink-plugins.md` documents them for sink-plugin authors, so the CHANGELOG entry names the rename.
-- **The held span keeps being held.** `pipelex_span_active` and its call sites in `pipe_abstract.py` and `llm_worker_abstract.py` are unchanged: the private context variable is now read only for the `pipelex.*` fields, and it is still what L-260927-f30a84 builds on.
-
-## What it costs
-
-- **An operator who exports Pipelex's spans to their own backend loses the standard-field join inside a run until the opt-in exists.** With an OTLP, Langfuse or custom-PostHog destination and the `json` or `otlp` log sink, a line inside a run today carries the Pipelex span in `trace_id`, so the backend links it to the Pipelex span it received. After this change that line carries the host's span, or none, in `trace_id`, and the Pipelex span only under `pipelex.trace_id`, which a backend's trace view does not follow on its own. The ruling accepted this: the opt-in L-260927-f30a84 is where the two coincide. If both are close to done, releasing them together removes the window; if not, the CHANGELOG entry tells such an operator to join on `pipelex.trace_id` until the opt-in ships.
-- **The hosted plane's lines inside a run lose `trace_id` until it opts in.** The runner and the worker register no host tracer, so after this change their JSON lines carry only `pipelex.trace_id` and `pipelex.span_id` inside a run. Nothing there consumes `trace_id` today; L-260927-f30932 turns the opt-in on.
-- **A `gcp` line inside a run with no host span is no longer grouped under a trace in Cloud Logging.** The derived trace grouped a run's lines in the Logs Explorer's trace view even with no spans exported anywhere. The `pipeline_run_id` label still selects the run's lines, which is the join the ruling relies on.
-- **A released wire shape and a documented plugin API change.** The field semantics shipped in v0.66.0, and the reader names are in the sink-plugin page. Both go in the CHANGELOG as breaking.
-
-## Out of scope
-
-- Making Pipelex's spans current, following the host's sampler, and seeding the run's trace from the host span: L-260927-f30a84.
-- Turning the opt-in on in the hosted plane: L-260927-f30932.
-- Emitting Pipelex's spans through the host's global provider: L-260927-0355ff.
-- The `pipelex-api` and `pipelex-server` logging docs, which describe the fields as they are today: L-260927-a12b10 and L-260927-4e4777, owned by those repos and blocked by this item.
diff --git a/wip/log-trace-fields-current/plan.md b/wip/log-trace-fields-current/plan.md
deleted file mode 100644
index 7ed72b813..000000000
--- a/wip/log-trace-fields-current/plan.md
+++ /dev/null
@@ -1,34 +0,0 @@
----
-status: landed
-item: L-260927-6b356b
----
-
-# Plan: log trace fields follow OpenTelemetry's current span
-
-The design is [`design.md`](design.md). The work is one pull request on `feature/Log-trace-fields-current`, in the order below, tests first at each step. Its size does not call for checkpoints between steps; the one review gate is before the PR opens.
-
-## Steps
-
-1. **The readers** (`pipelex/system/telemetry/current_span.py`). Rewrite `tests/unit/pipelex/system/telemetry/test_current_span.py` first: the current-span reader returns the host's valid span inside and outside a held Pipelex span and `None` with no valid current span; the Pipelex reader returns the innermost held span and `None` outside one; the fields helper renders both ids zero-padded, or nothing; the existing guarantees keep their tests (an exception crossing the block restores the previous span, `None` and a span naming no trace hold nothing, OpenTelemetry's current span is never touched). Then replace `span_context_for_logs` and `otel_context_for_logs` with `current_span_context_for_logs`, `pipelex_span_context_for_logs`, `pipelex_trace_fields_for_logs` and the two key constants, and rewrite the module docstring around the two-span rule.
-2. **The `json` sink.** In `tests/unit/pipelex/tools/test_log_json_trace_context.py`, replace the "Pipelex span rather than the host's" test with the four cases of the rule (inside a run with a host span, inside a run without one, outside a run under a host span, outside everything), add the key order (standard trace keys, then the Pipelex ones, then the fields), the reservation of the two new keys with and without a span, and keep the held-boot-line test, now asserting both sets. Then `_trace_context()` reads the current span, the payload adds `pipelex_trace_fields_for_logs()`, and `FIXED_KEYS` gains the two keys.
-3. **The `otlp` sink.** In `tests/unit/pipelex/tools/test_log_otlp_trace_context.py`, the same four cases against the in-memory exporter: the record's trace context names the host span or nothing, and the `pipelex.*` attributes name the held span or are absent; plus the reservation. Then `emit` passes `get_current()`, `_attributes` writes the Pipelex fields right after the source location, and `RESERVED_ATTRIBUTE_KEYS` gains the two keys.
-4. **The `gcp` sink.** In `tests/unit/pipelex/tools/test_log_gcp_sink.py`, replace the "run's own trace id" test with the four cases on the fake transport: `trace`, `span_id` and `trace_sampled` from the current span or absent, the Pipelex fields in the payload or absent, and a record carrying `pipeline_run_id` with no span getting no `trace`. Extend `test_log_gcp_client_library_contract.py` so the installed library renders the `trace`, `span_id` and `trace_sampled` the sink passes into the entry, and drop the `trace_name_for_run` test from `test_log_gcp_sink_mapping.py`. Then replace `trace_name_for_run` with a builder taking the project and a trace id, pass the three kwargs only when a current span exists, write the Pipelex fields into the payload, and drop the `hash_md5_to_int` import. Check `test_log_gcp_json_payload_parity.py` still holds with the new reserved keys.
-5. **The span-holding tests.** `test_live_run_pipe_current_span.py`, `test_llm_worker_current_span.py` and `test_bedrock_boto3_current_span.py` assert which Pipelex span the runtime holds; move them to `pipelex_span_context_for_logs()`, and in the Bedrock test assert the thread sees the host span through `current_span_context_for_logs()` as well.
-6. **The docs.**
- - `docs/tools/logging.md`, "The trace context": replace the three-step precedence with the two independent sets and the four cases, keep the paragraph on which spans the runtime holds, and say the `pipelex.*` fields are the ones that name the pipe or the LLM call.
- - `docs/setup/telemetry.md`, "Pipelex's spans in your process": the third bullet says the standard fields name your current span and the Pipelex span rides under `pipelex.*`, and what an operator exporting Pipelex's spans joins on until the opt-in exists.
- - `docs/configuration/config-practical/logging-config.md`: the `json` line description and its example line, and the `gcp` entry's `trace`, `span_id` and `trace_sampled` and payload keys.
- - `docs/under-the-hood/log-sink-plugins.md`: the reader functions a sink plugin calls, the reserved keys, and the `json` row of the sink table.
- - The module docstrings of the three sinks.
-7. **The CHANGELOG**, under `[Unreleased]`, one breaking entry: the standard trace fields name OpenTelemetry's current span, the Pipelex span rides as `pipelex.trace_id` and `pipelex.span_id` in the `json`, `otlp` and `gcp` sinks, the `gcp` sink's `trace` is no longer derived from `pipeline_run_id` and now carries `span_id` and `trace_sampled`, and `span_context_for_logs` and `otel_context_for_logs` are replaced by the new readers.
-8. **The gates.** `make agent-check`, then `make agent-test`, then `/rev` at the depth `ledger review-profile` derives, then the PR `feature/Log-trace-fields-current · L-260927-6b356b` with `Closes L-260927-6b356b`. Flip this plan and the design to `landed` inside the PR.
-
-## Follow-ups filed with this plan
-
-- `pipelex-api/docs/logging.md:28` describes the trace fields as present on any line inside a traced run, which stops being true: L-260927-a12b10, owned by `pipelex-api`.
-- `pipelex-server/docs/logging.md:14` describes the trace fields without the Pipelex ones: L-260927-4e4777, owned by `pipelex-server` and related to L-260927-f30932, which changes the same paragraph again when the hosted plane opts in.
-
-## Decided while building
-
-- **Landed independently of L-260927-f30a84**, as the plan recommended: the change is small and the opt-in is not. Whether they ship in one release is the release's call; the CHANGELOG entry tells an operator exporting Pipelex's spans to join on `pipelex.trace_id` meanwhile.
-- **Beyond the steps above**, the `json`/`gcp` payload-parity test gained the two `pipelex.*` keys (same spelling under both sinks, prefixed under both when a field collides), the client-library contract test drives `trace`, `span_id` and `trace_sampled` through the real worker queue and `Batch.log` rather than a hand-built entry, and the comments at the `pipelex_span_active` call sites (`pipe_abstract.py`, `llm_worker_abstract.py`, `bedrock_client_boto3.py`) say which fields the held span now reaches.
diff --git a/wip/migrator/migrator-comment-fidelity.md b/wip/migrator/migrator-comment-fidelity.md
deleted file mode 100644
index 05ec7af0d..000000000
--- a/wip/migrator/migrator-comment-fidelity.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# Comment fidelity across a move — the bug report after v0.46.0, and what closed it
-
-**Status: fixed on `fix/Migrator` (PR #1118, merged to `dev`), shipped in v0.46.1.** The applier now keeps a comment on the item it introduces through `move_key`, `delete_key` and `delete_table`, and settles what `set_key` and `ensure_table` insert before a table's trailing banner rather than after it. This note records why the phase-0 spike wrote the behaviour off as unfixable, why that was wrong, the rule that was chosen and where it is a reading rather than a fact, and what it does not do for files already migrated by v0.46.0.
-
-## The report
-
-> "The migration moves tables but not the comment banners, so banners ended up above the wrong tables."
-
-Exactly the consequence the phase-0 spike measured on the kit template and the S1 contract then stated as a limitation (`docs/migration-ledger.md` → "Limits you will meet", now rewritten). A `~/.pipelex/pipelex.toml` seeded from the kit template is a banner block per section plus a comment per key; the reshape entry `pipelex-config@3` moved most sections, and each banner stayed where it was while its section left, so the migrated file read `# Log Config` above one section and `# Plugins` above another. Valid TOML, lying comments.
-
-## Why the spike thought it could not be fixed, and why it can
-
-The spike's finding was that tomlkit stores a banner "as trailing trivia of the previous sibling, inside that sibling's serialized string", so carrying it "would mean string surgery on a neighbour's tail". The first half is right and the second is not. Comments and blank lines are discrete keyless body entries — `(None, Comment)` and `(None, Whitespace)` — of whichever container the parser was filling when it met them: a comment above a key sits before that key in the same container, and a banner above a `[table]` header sits at the *tail of the previous table in document order*, inside its deepest last container, because everything up to the next header belongs to the table being parsed. Discrete entries can be located, detached and re-inserted; nothing about it is string surgery. What the library does not have is any notion of which item a run of trivia is *about*, and that is the part that needs a rule.
-
-Three symptoms share the root cause, and a fix has to take all three: a moved table left its banner behind; a moved table carried the *next* table's banner away, because that banner sat at the moved table's own tail; and a table appended under an existing parent landed *after* that parent's trailing banner, stealing it the same way. The same held for keys — a moved scalar landed after the destination's trailing banner, and a deleted key left its own comment dangling onto the next one — and for the `.mthds` fix path, where a comment above a stripped native-concept redeclaration used to reflow onto the next table (a test pinned that as a "known artifact"; it now pins the fix).
-
-## The rule
-
-**A run of own-line comments and blank lines introduces whatever comes next.** A moved item takes its introduction along and leaves its trailing run — the next item's introduction — where it was; a deleted item drops its introduction and keeps its trailing run in place; an item inserted at the end of a table — a moved one, a key `set_key` adds, a table `ensure_table` creates — lands before that table's trailing run, never after it. Everything is put back where the parser would have put it — a previous table's deepest tail rather than an implicit parent's own body — because a comment inside a super table's body is exactly what makes tomlkit start rendering a `[parent]` header the file never had.
-
-Two refinements decide the ambiguous cases, and both were forced by real files rather than invented:
-
-- **Only the last comment block travels.** The kit template opens with a thirty-line file preamble, a blank line, the first section's banner, a blank line, then `[runtime.storage]` — one contiguous run of trivia. Taking the whole run would move the preamble to wherever the storage section lands. So what travels is the last block of consecutive comments, with the blank line above it and whatever follows it; earlier blocks stay. A run with no comment at all is spacing and moves whole. At the very top of the document, a *lone* comment block that a blank line separates from what follows is treated as the file's preamble and stays — only the blank line after it travels — so a hand-written config that starts `# My pipelex config` and then a section keeps its header line at the top.
-- **The first entry of an implicit parent is introduced by what sits above the parent.** `[runtime.storage]` opening a file that never writes `[runtime]` is the first entry of a super table whose header is not rendered; its banner is at the root, above the `runtime` item. The applier climbs through such parents in both directions (finding the introduction, and putting the trailing run back), and only through them — a parent that renders a header owns what sits above it. A dotted assignment is the same shape — `pipelex.storage_config = { … }` at the top of a hand-written override is a `pipelex` super table whose header tomlkit never writes because the owning key is dotted, so the predicate that decides whether a parent renders a header takes the owning key into account, exactly as tomlkit's renderer does. The same climb handles a key that is the first entry of one *chunk* of an out-of-order table (`[email protected]`, the frozen pre-reshape defaults, is written that way, and the reshape's `templating_config` move hit exactly this), and the case where deleting the last key of such a chunk makes tomlkit drop the emptied chunk from the parent altogether.
-
-The rule is a reading and the doc says so: it is right for banners above sections, for the kit's per-key comments, and for preambles; it is wrong for a comment written on its own line *below* a key to annotate it, which will follow the next item. Inline tables are left alone — their whitespace entries are layout.
-
-## What is pinned
-
-`tests/unit/pipelex/pipeline/fixes/test_fix_applier_comment_fidelity.py` compares bytes: the three-symptom cases, the kit-style per-key comments, a table with a sub-table, deletes, the top-of-file shapes, an empty explicit destination, a nested created parent, an array of tables, a wildcard op applying several times over one document, and — the case the report was about — the shipped `pipelex-config` ledger replayed over the frozen pre-reshape defaults, asserting banner by banner that each `# <Name> config` still introduces its section wherever it moved, that the deleted section's banner is gone, and that every banner in the migrated file introduces a header. `test_fix_applier_config_surface_shapes.py`'s banner test now goes through the applier and asserts the guarantee instead of the limitation.
-
-## What it does not do
-
-- **Files already migrated by v0.46.0 are not repaired.** Replay is neutral on a current file, so nothing touches them again; the misplaced banners in such a file are a matter of hand-tidying, or of restoring the `.bak` beside it and running `pipelex migrate` again. The changelog says so.
-- **A comment written below a key to annotate it** follows the next item. Stated in the contract as the cost of the rule; no heuristic distinguishes it from a banner without a blank line above the header, and the kit's own per-key style (comment glued above the key) is the far more common shape.
-- **A comment sitting between two dotted chunks of one key** (`k.x = 1`, a comment, `k.y = 2`) is orphaned when `k` moves — tomlkit merges the chunks on the way and the applier does not chase the gap. Rare, and no worse than before.
diff --git a/wip/migrator/migrator-phase0-spike.md b/wip/migrator/migrator-phase0-spike.md
deleted file mode 100644
index dfc3eaf91..000000000
--- a/wip/migrator/migrator-phase0-spike.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# Migrator Phase 0 — the spike result
-
-> Session S0 of the Migrator v3 runbook (`wip/migrator-3/sequencing.md` in the workspace-root repo). Read-only investigation: nothing in `pipelex/` was changed. Measured on 2026-08-15 against `dev` at `d2d666419` (v0.45.0 plus #1104/#1106/#1109), tomlkit 0.14.0, Python 3.12.
->
-> Everything below is a measurement, not a prediction. Each one is pinned by a checked-in test in `tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py`, which replaces the throwaway probe the plan carried (`wip/migrator-3/probe_tomlkit_reshape_shapes.py` in the workspace repo) — so a tomlkit bump that changes any of it fails CI instead of silently corrupting somebody's configuration file.
-
-## The answer Phase 1 was waiting for: extend, do not widen
-
-**Phase 1 extends the applier's op vocabulary. It does not need to widen the addressing model first.**
-
-The charter's premise was that `table_path` might not reach what our configuration files actually contain, because `_resolve_table` walks dict-likes only. Measured across every configuration file this repository tracks, that premise does not hold: every table in every file is addressable today. The one shape the model cannot reach — an element of an array of tables — appears in exactly one tracked file, `plxt.toml`, which is not a migration surface and is not in any surface's file glob. It is also handled safely rather than dangerously: the path simply fails to resolve and the op is reported as skipped, never raised.
-
-So the work in Phase 1 is what the plan already lists — the `FixOp` discriminated union, `move_key` and `remap_value`, the `*` wildcard, the `CONFLICT` outcome, the `ensure_table` fixes — with no addressing-model detour ahead of it.
-
-## The charter, item by item
-
-### The path model against real configuration files
-
-Every table in every tracked configuration file is reachable by its `table_path`. This was measured through the public applier rather than by calling the private resolver: a `delete_key` for a key no configuration file declares always skips, and the *reason* it gives is the measurement — "table … not found in document" means the path model could not walk there, "key … not found in table …" means it could. Every table path in every file reports the latter.
-
-The exotic shapes, each measured:
-
-- **Inline tables are ordinary tables to the path model.** `default_templating_style = { tag_style = "xml" }` and the `quality_to_steps_maps` entries resolve and accept a rename, and the rename touches exactly the one line it should. tomlkit drops the quoting on the key it rewrites (`flux = { lowest = 14, "medium" = 28, … }`), which is harmless because the key is changing anyway.
-- **Dotted-key assignments are tables.** `nested.leaf = 1` gives a real table node at `nested`, so `["section", "nested"]` addresses it, and a rename of `leaf` re-renders as a dotted key rather than exploding into a block table.
-- **A quoted key containing a dot is one path segment.** `["outer.inner"]` is addressed as the single segment `outer.inner`, and a renamed key that needs quoting keeps it.
-- **Arrays of tables are invisible to the model, and that is safe.** An `[[rule]]` node is a `list`, so no `table_path` reaches it or anything under it. The guarded-skip contract turns this into a report rather than a crash. No migration surface contains one; if one ever appears, the `*` wildcard has no array syntax and the ledger would need a new segment kind — a decision for that day, not this one.
-- **Comment attachment is the one real limitation.** See its own section below.
-
-### Byte-identity of an untouched round trip
-
-`tomlkit.dumps(tomlkit.parse(text)) == text` holds for every tracked configuration file: the packaged defaults, all the kit templates, the repository's own `.pipelex/` files, and the unit-test config. Replay neutrality and the transform goldens are byte-level claims that rest entirely on this, so it is now a parametrized test rather than an assumption.
-
-### The out-of-order table proxy
-
-The packaged defaults document is written out of order, and this is worse than the plan recorded: **two** root tables resolve to `OutOfOrderTableProxy`, not one. `pipelex` is split into three chunks and `migration` into two, because `[pipelex.kit_config]` and `[migration.migration_maps.telemetry]` sit near the end of the file after `[cogt]` and each other. Every proxy question the plan left open is now answered, and all of them answer favourably:
-
-- **`delete_table` works on a proxy**, both for a table nested inside one (`pipelex.log_config`) and for a whole multi-chunk proxy addressed at the root (`migration`, `pipelex`). Every chunk goes; no orphaned header is left behind; the result reparses.
-- **A root-level rename of a proxy works.** Renaming `pipelex` to `interpreter` rewrote every child header across all three chunks and the content compares equal to the original subtree. This is the configuration reshape's hardest shape and it goes through `Container._replace`, a tomlkit internal — which is precisely why it now has a dedicated test.
-- **Inserting a new block table into a proxy lands it at the end of the proxy's first chunk**, not at the end of the file. Inserting into a plain table lands it at the end of that table's span. Neither placement is wrong, but they differ, and `move_key`'s placement rule has to describe both.
-- **`ensure_table` still emits `key = {}`**, an inline table, confirmed on a proxy as well. That is the known `.mthds` bug the plan already schedules for Phase 1; it is pinned by a test now so the fix is a visible change to an expectation rather than a silent one.
-
-### The reshape's three shapes, and then the whole entry
-
-The three shapes the reshape needs — a root super-table rename, a table-valued cross-parent move, and renames inside the out-of-order proxy — all behave. Rather than stop there, the spike ran **the reshape's complete ledger entry as written in `reshape.md`**, in order, with a throwaway `move_key` built the obvious way (pop the value, create missing destination parents as block tables, re-add), over the packaged defaults, the kit template, the repository's project config and override, and the unit-test config.
-
-It works. On the packaged defaults nearly every op applies; the two that skip are the two the entry itself predicts will skip on a file that never set them (`plugins.boot_orchestrator` and the root `session_id`). The result reparses, the root tables are exactly `runtime`, `inference`, `interpreter` and `kit`, and on the sparser files each op skips or applies exactly according to what that file happens to contain. Most importantly: **replaying the whole entry over the already-migrated document applies nothing and changes no bytes**, on every file tried. Replay neutrality — the engine's central guarantee — holds against the real entry on real documents, before a line of the engine exists.
-
-This does not retire any of Phase 2's checks; it is one witness, not the convergence check, and the ledger entry it exercised is still hand-written prose in a plan document. What it does is remove the risk that the reshape turns out to be unexpressible in the vocabulary Phase 1 is about to build.
-
-### Repeated application and whitespace
-
-Applying an op twice to the same DOM, and re-applying it to the reparsed output, both leave the bytes unchanged; the second application reports itself skipped because its source is gone. So the blank line the earlier probe noticed does not accumulate.
-
-It is worth being exact about what a *first* application does to whitespace, because a migrated file will not be byte-minimal and users will notice:
-
-- Renaming a plain root table adds one line.
-- Renaming a three-chunk proxy adds four lines and **drops the table's own bare header** — the empty `[pipelex]` line at the top of the packaged file has no `[interpreter]` counterpart afterwards. A plain table keeps its bare header (`[cogt]` renames to a still-present `[inference]`). Both are semantically identical, since a parent with only sub-tables is implicit in TOML, but the asymmetry should not surprise a reviewer reading a migration diff.
-- Renaming inside a proxy adds one line.
-
-All three are stable under replay.
-
-### Comment attachment on moved nodes — the one thing that does not work
-
-> **Superseded.** This section's conclusion was wrong and the behaviour was fixed after a field bug report following v0.46.0 — see `migrator-comment-fidelity.md`. The observed placement below is accurate, but its "inside that sibling's serialized string" explanation and its "cannot be fixed" reading are not: the trivia are discrete body entries — `(None, Comment)` and `(None, Whitespace)` — not part of a serialized string.
-
-**A comment block preceding a table does not travel when the table moves, and this cannot be fixed by being cleverer with the move.** tomlkit does not attach such a block to the table it appears to introduce; it stores it as trailing trivia of the *previous sibling*, inside that sibling's serialized string. Measured directly: in the kit template, the `# Storage Config` banner is part of `tracing_config`'s rendering, not of `storage_config`'s. Carrying it would mean string surgery on a neighbour's tail plus a heuristic for which comments "belong" to what follows.
-
-The consequence is real and user-visible. `ensure_global_config_exists` seeds every `~/.pipelex/pipelex.toml` as a full copy of the kit template, and that template is heavily commented — a banner block per section plus per-key explanations. Running the reshape entry over it leaves the banners in place while their sections move away, so the migrated file ends up with `# Log Config` above `[inference.model_deck]` and `# Plugins` above `[runtime.storage]`. The TOML is correct; the comments now lie.
-
-Comments *inside* a moved table are fine — the whole body travels, including trailing inline comments on individual keys. It is only the introducing banner that stays behind.
-
-Three things follow, and they are for S1 and S4 rather than for this session:
-
-1. **The contract must state it** (S1): a moved table arrives without its introducing comment, and comments near a move may end up labelling the wrong section. Nothing in the engine may rely on comment fidelity across a move.
-2. **The reshape should not inherit the damage in the files it owns** (S4): `reshape.md` already rewrites the packaged defaults by hand and regenerates the kit template through the sync, so both come out correctly commented. That is now a requirement rather than a convenience.
-3. **The `migrate` command should say so** (S6): a user whose global config was seeded from the template will see mislabelled banners, and the report is the place to tell them, since we will not be rewriting their comments for them.
-
-### The tomlkit-bump tripwire
-
-The existing golden byte-compare in the `.mthds` fix tests is a real tripwire but not a sufficient one for this project: it exercises `set_key` and `delete_key` on one `.mthds` fixture, downstream of the MTHDS formatter's whole-file reflow — which is exactly the step migration does not use. It would not notice a tomlkit change to proxy handling, to header re-rendering under `Container._replace`, or to comment attachment.
-
-The recommendation is not to make the transform goldens byte-exact — `design.md` is right that they compare paths and op-written values, and a byte-exact golden over a reflowing dependency would be a maintenance tax that teaches nothing. Put the byte-level tripwire where byte-level behaviour is actually claimed:
-
-- The characterization test added by this spike, which pins round-trip identity, proxy behaviour, the root-level proxy rename and the comment limitation against the real files.
-- The convergence check (Phase 2), which replays each entry over the real reference documents and asserts the bytes do not move — the strongest byte-level signal in the project, because it runs on real documents rather than a fixture.
-
-Together those two fail loudly on a tomlkit change; the transform goldens stay parsed-level, as designed.
-
-## What this changes downstream
-
-Nothing in the plan needs restructuring. Three items get sharper:
-
-- **S1, the contract.** Add: arrays of tables are unaddressable and reserved (no `table_path` segment syntax reaches them, and no surface has one today); a moved table loses its introducing comment; a migration is not byte-minimal — expect small whitespace growth and possibly a dropped empty parent header; and the placement rule needs both halves measured here (a created root parent lands at the end of the file, while a table inserted into an existing out-of-order parent lands at the end of that parent's first chunk).
-- **S2, Phase 1.** No addressing work. The `ensure_table` block-table fix now has a failing-on-change expectation waiting for it in the new test module.
-- **S4, the reshape.** The hand-written packaged defaults and the regenerated kit template are the mechanism that keeps our own files correctly commented; the entry as written in `reshape.md` needs no changes — it was executed end to end here.
diff --git a/wip/migrator/migrator-phase3-progress.md b/wip/migrator/migrator-phase3-progress.md
deleted file mode 100644
index 4bce65135..000000000
--- a/wip/migrator/migrator-phase3-progress.md
+++ /dev/null
@@ -1,699 +0,0 @@
-# S6 — Migrator Phase 3: working tracker
-
-The charter is [`wip/migrator-3/sequencing.md` § S6](../../../wip/migrator-3/sequencing.md) at the **workspace root** (from this repo: `../wip/migrator-3/sequencing.md`), with the phase content in `plan.md § Phase 3`. This file is the session-crossing record of what S6 has built, what it decided, and what is still open. Open the charter first, then this.
-
-**Venue.** S6 lands as **two** PRs, not the one the charter assumes.
-
-- **Part 1 — `feature/Migrator-3`: MERGED.** PR [#1113](https://github.com/Pipelex/pipelex/pull/1113), `dev` = `490d189df`. Milestones 1–4 below. The branch is deleted local and remote.
-- **Part 2 — `feature/Migrator-3b`: BUILT, REVIEWED, OPEN.** PR [#1114](https://github.com/Pipelex/pipelex/pull/1114) against `dev`, head `d74b899d4`, every required check green; two bot review rounds executed on the branch, six threads left open as the recorded deferrals in [`migrator-pr-1114-review-followups.md`](./migrator-pr-1114-review-followups.md). Milestones 5–10 below. **Merging it is Louis' call** — squash only, then delete the branch local and remote.
-- **Part 3 — `feature/Migrator-3c`**, to be cut from `dev` once #1114 is squash-merged (`git fetch origin dev && git switch -c feature/Migrator-3c origin/dev && git branch --unset-upstream`; first push is `git push -u origin feature/Migrator-3c`). This is the branch a new session works on. Items 6–9 of [What is actually left](#what-is-actually-left): no code — the drift-contract review list, the two skills, the spec rows, publishing the contract.
-
-Record all three numbers against S6.
-
-✅ **Cold-start state (part 1, on `dev`).** Two commits, both pushed, working tree clean:
-
-1. *"Migrator Phase 3, milestone 1: settle the golden format before S7 freezes it"*
-2. *"Migrator Phase 3, milestones 2-3: what an unsafe entry promises, and catching a narrowing"* — milestones 2 and 3 together, plus the fixes from a `/code-review high` pass over them.
-
-`make agent-check` and the full `make agent-test` are both green on the branch as pushed.
-
-✅ **S6 part 3 is complete and up for review — PR [#1115](https://github.com/Pipelex/pipelex/pull/1115), `feature/Migrator-3c` → `dev`, head `b1f3102ae` after the review pass.** Items 6–9 of [What is actually left](#what-is-actually-left) are Milestones 11–14; the two parked #1114 review items that were routed to part 3 are Milestones 15 (§2, *a remedy is named only where it would write*) and 16 (§4, the doctor's unescaped Rich fields). `agent-check`, `agent-test`, `cmig`, `docs-check` and `check-spec-links` all green. One companion change lands in a **different repo** — Milestone 13 is pushed on `feature/Migrator` in the workspace-root repo, with no PR of its own. **The bot review pass on #1115 is executed** (Codex, Greptile, Cubic — one round, ten threads, all answered and resolved; the fixes are the fourth commit, *"answer the PR #1115 review"*, and the one item deferred is in [`migrator-pr-1115-review-followups.md`](./migrator-pr-1115-review-followups.md), a repo-wide test-layout decision rather than a migrator item). Every required check is green on the head and the merge state is clean. **⏸ C is not reached**: it waits on #1115 being merged, since its cold-start checks read the files off `dev`.
-
-**S6's three parts are all built.** The pre-S7 bucket is on `dev` (part 1, #1113); the two `migrate` commands (milestone 5), the downgrade diagnosis (milestone 6), boot tolerance (milestone 7), the validation-error report (milestone 8), the telemetry-remedy retirement (milestone 9) and the `doctor` pending-migrations row with `--fix` (milestone 10) are on `dev` (part 2, #1114); the drift-contract review list, the two skills, the spec section, the published contract and the two parked #1114 items (milestones 11–16) are part 3, #1115, reviewed and waiting for the merge. What follows the merge is not on this branch: ⏸ C's cold-start check in the runbook, then S7. See [What is actually left](#what-is-actually-left) at the bottom for the small items that ride with whoever next touches their module.
-
-## Build order chosen for this session
-
-The charter lists a great many deliverables without an order. The order below was chosen so that everything touching the **golden format** happens first and the goldens are regenerated exactly once, before any other work can be built on top of a format that then moves:
-
-1. **The golden-format bucket + the narrowing relation** — done, see below.
-2. **R9 + the "what does `unsafe` promise" pass** — done, see Milestone 2 below.
-3. **The applier's dotted-key rename policy, the backup/replace semantics pass, the `UNWRITABLE` wording** — done, see Milestone 3 below. That closes the "must be settled before S7" bucket.
-4. **The commands** — `pipelex migrate`, `pipelex-agent migrate`, the rendering-rule test — done, see Milestone 5 below. The **downgrade diagnosis** (`unexplained[]`) was deliberately carried out of this milestone and is where the next session starts.
-5. **The downgrade diagnosis** — done, see Milestone 6 below.
-6. **Boot tolerance** — done, see Milestone 7 below.
-7. **`report_validation_error` on the real plan** — done, see Milestone 8 below.
-8. **The telemetry remedies retired** — done, see Milestone 9 below.
-9. **The `doctor` pending-migrations row and `--fix` delegating to the migrate command** — done, see Milestone 10 below.
-10. **The skills (`add-migration`, `/release` step 3b), the `config-docs` drift-contract review list, `command-surface-map.md` rows, publishing the contract in the nav** — not started. **This is part 3, where the next session starts**, on `feature/Migrator-3c` once #1114 is on `dev`.
-
-## Milestone 1 — the golden-format bucket (DONE)
-
-The charter required this to be *decided and recorded* in S6, before S7 freezes the format. All three questions are answered, the goldens were regenerated once, and the contract moved in the same change.
-
-### (a) P — a binding bound merged with a union member's own
-
-**Decided: the two sources do not merge the same way, and are intersected rather than pooled.**
-
-`_collect_constraints` (`pipelex/migration/fingerprint.py`) used to flatten the field's own metadata and every union member's `Annotated` carriers into one list and take the widest of each kind. That recorded `le=100` for a field whose own `Field(le=6)` was the real ceiling — verified against pydantic, which applies the field-level bound on top of the member's. Now:
-
-- the **binding** pool (field metadata, plus any `Annotated` wrapper met before a union) merges by **strictest**, because pydantic applies all of them;
-- each **union member** gets its own pool merged by strictest, and the pools merge across each other by **widest**, because a union accepts a value if any member does;
-- the two results are **intersected** (strictest), because a value must satisfy the binding bound *and* land in some member's domain.
-
-One overclaim is kept deliberately and is now written down in the contract: a kind present on some members and not others is kept rather than dropped, so a tightening stays visible on the common `Annotated[int, Field(ge=1)] | Literal["auto"]` shape.
-
-**No golden moved** — no live surface has the mixing shape.
-
-### (b) `key = "*"` under a `remap_value`
-
-**Decided: both halves of the "teach the applier" reading, not the "stop gathering" reading.**
-
-- `RemapValueOp` now accepts `key = "*"`, meaning *each key of the addressed table*. The applier (`pipelex/pipeline/fixes/applier.py`, `_remap_every_value`) rewrites every string value the mapping names; any rewrite makes the operation `APPLIED`, none makes it `SKIPPED`, and a remap cannot collide so there is no conflict rule to invent. This is the **only** shape in which a member renamed beneath an open mapping can be repaired at all, since the keys are the user's.
-- Every **other** kind refuses a `*` key when the op is parsed (`_refuse_wildcard_key` in `pipelex/suggested_fix.py`, on `set_key`, `delete_key`, `rename_table_key` both sides, `move_key` both sides). Unrefused they are *dead* operations — a literal lookup for a key spelled `*` that skips forever.
-- `_gather_enum_members` now **stops at an open mapping's boundary**. The members belong to the `*` child record, whose own value is the enumerated one; recording them on the container as well made coverage demand a remap at a path whose value is a table, a demand with no legal answer. Every other container is still descended into — a `list[enum]` has no child record, so the list's own path is the only place a lost member is visible.
-- Coverage now only **credits** a remap on a path a remap can reach (`is_remappable` in `narrowing.py`: the path's own value must be string-typed). For a `list[enum]` it names `unsafe` as the only remedy instead of offering a remap the author would write and never see fire.
-
-**The one golden move of this session**, and the only one: `pipelex-config/[email protected]` lost the duplicated `enum_members` on `pipelex.log_config.package_log_levels`. `preferred_agent_targets` (a `list[enum]`) keeps its members, by design.
-
-### (c) `list[Model]` recorded as a terminal `list[table]`
-
-**Decided: the blind spot stays, and the reason is now in the contract.** Recording an item model's fields under a synthetic segment would make a renamed field inside an `OtlpExporterConfig` *visible* to the coverage gate — and then *demanded*, with no operation in the vocabulary able to address anything beneath an array of tables and therefore no remedy an author could write. A gate whose refusal has no legal answer is worse than a blind spot the contract names. The revisit trigger is recorded: the day an addressing syntax for arrays of tables exists, the two are one change.
-
-### Alongside, in the same milestone
-
-- **Q, the crying-wolf shapes in the narrowing relation** (relation only, no format move): a container whose argument widened (`list[int]` → `list[int | str]`) is now read structurally; `int` is absorbed by `float`; `enum` and `literal` absorb each other, since what moved between two member *sets* is `lost_enumerated_spellings`' to report; and over an integral type `gt=n` and `ge=n+1` are folded to the same bound, so the swap stops reading as a tightening. `_is_integral` sets the string-typed members aside first, so `int | literal` counts.
-- **`umig` no longer rides in `make up`**, and refuses to overwrite a head golden recording a path, spelling or value domain the models lost (`_refuse_a_destructive_head_overwrite`, `MigrationSnapshotRefusedError`). The refusal names both readings — a real removal wants a bump and an entry, a format change over an unreleased version wants `make umigf` (new target, `--force`). This is what makes the *first* golden regeneration of this session an explicit act rather than muscle memory.
-- **The head-link remedy text** in `coverage.py` now names the `make umigf` escape beside the bump, which was Session 9's finding.
-
-### Files touched in milestone 1
-
-```
-pipelex/migration/fingerprint.py binding/member constraint split; enum gathering stops at an open mapping; INTEGER_TYPE / REAL_TYPE
-pipelex/migration/narrowing.py is_remappable; structural container widening; int→float; enum↔literal; integral bound folding
-pipelex/migration/coverage.py credit only reachable remaps; head-link remedy text
-pipelex/migration/snapshot.py the head-overwrite refusal
-pipelex/migration/exceptions.py MigrationSnapshotRefusedError
-pipelex/suggested_fix.py _refuse_wildcard_key on every kind but remap_value
-pipelex/pipeline/fixes/applier.py _remap_one_value / _remap_every_value (the `*` key)
-pipelex/cli/dev_cli/_dev_cli.py --force on update-migration-schemas
-pipelex/cli/dev_cli/commands/update_migration_schemas_cmd.py
-Makefile umigf; umig out of `up`
-docs/migration-ledger.md the three decisions, the wildcard-key rule, the regenerator paragraph
-pipelex/migration/goldens/pipelex-config/[email protected] the one format move
-tests/unit/pipelex/migration/test_fingerprint.py
-tests/unit/pipelex/migration/test_narrowing.py
-tests/unit/pipelex/migration/test_coverage_gate.py
-tests/unit/pipelex/migration/test_ledger_check.py
-tests/unit/pipelex/migration/test_snapshot_guard.py (new)
-tests/unit/pipelex/test_fix_op_union.py
-tests/unit/pipelex/pipeline/fixes/test_fix_applier_migration_ops.py
-tests/data/errors/error_identity.txt regenerated (`make gei`) for the new error class
-docs/errors/migration-snapshot-refused-error.md, docs/errors/platform-and-tooling.md regenerated (`make gep`)
-```
-
-A new `PipelexError` subclass needs both regenerators, and neither is in `agent-check`: `make gei`
-(the identity snapshot, caught only by the *full* `agent-test`) and `make gep` (the per-class
-reference page, caught by nothing at all). `MigrationSnapshotRefusedError` is the one this session
-added.
-
-### Verified at the pause
-
-`make agent-check` green. `make cl` green, `make cmig` green. `make umig` is a no-op on the tree as committed. Full `make agent-test` green — every test passed, working tree clean.
-
-## Milestone 2 — what an `unsafe` entry promises (DONE, committed and pushed)
-
-R9 (ruled option 2 on 2026-08-16) and the round-2 sibling — an `unsafe` entry silenced by a later `safe` rename of its target — were built as the single pass the charter asked for. The promise is now written once, in `docs/migration-ledger.md` § "What an `unsafe` entry promises":
-
-> An `unsafe` entry is reported on every run, to every file that still carries the material it is about — at whatever spelling that material has reached — and to no other file.
-
-### The two halves
-
-**(a) R9 — the entry declares what it is about.** `MigrationEntry.declared_narrowed_paths` is a new ledger field carrying the paths whose *value domain* narrowed, spelled as the fingerprint at the entry's own version records them (`*` included). An op-free entry must carry one (refused at parse otherwise, since it could be reported to nobody, ever); a `safe` entry may not carry one at all (a narrowing a remap repairs is that remap's business, one it cannot repair is what `unsafe` means). `check-ledger` gained `DECLARED_NARROWED_PATH_IS_ABSENT`: a declared path the entry's own version does not record is either a misspelling or a *removal*, and a removal is accounted for by the operation that removes it.
-
-**And the coverage gate no longer accepts the bare word.** `_check_narrowing_accounting` and `_check_enum_accounting` used to `return []` for any `unsafe` entry. They now require the narrowed / member-losing path to appear in `declared_narrowed_paths`. Without that, R9 would have been half-built: the ledger would accept a declaration and the gate would never ask for one.
-
-**(b) The sibling — material moves, and the entry follows it.** New module `pipelex/migration/material.py`: pure ledger arithmetic (no fingerprint, no model, no filesystem, so the engine stays the function the gates replay) that traces an entry's material **back** through the entry's own operations — it is never applied, so a file it blocks keeps the previous spelling — and **forward** through every later `safe` entry. A later `unsafe` entry moves nothing (never applied); material a later entry deletes stops being traced. `unsafe_op_variants` respells the operations' **sources only**, because only the source decides whether the rehearsal would do something.
-
-**Scope boundary, deliberate and recorded in the contract: a rehearsal may guess, an application may not.** Forward tracing is confined to `unsafe` entries, whose operations are rehearsed against a copy and discarded — the worst a wrong guess costs is one report too many. A **`safe`** entry silenced the same way (by its own `CONFLICT`, after which a later entry renames the table around it) has the identical mechanism and is left alone, because repairing it would mean *writing* at a spelling its author never wrote. **That is an open question for a later session** — it is a question about what a `safe` entry promises, and it was not in R9's scope.
-
-### The collision this uncovered, and how it was resolved
-
-The declaration's predicate is **presence**, not violation — the engine is model-free by design, and R9's ruling explicitly refused to thread a model into it. So a *current* reference document sets the narrowed path like every healthy file does, the entry speaks, and `_check_convergence` refused the ledger: **R9's ruled shape was unbuildable as first written** (reproduced before it was fixed).
-
-Resolved as narrowly as it can be: a third `BlockedEntryReason`, `VALUE_DOMAIN_NARROWED`, weaker than `UNSAFE` — *this file sets a key whose accepted values narrowed, check it by hand*, versus *this file has the old shape*. Convergence exempts that reason and nothing else; an `unsafe` entry whose **operations** fire on a witness still fails, because that says the checked-in reference document carries retired material. `BlockedEntry.narrowed_paths` lists the paths **as the ledger spells them** (`levels.*`, never the user's own `levels.my_package`), so the rendering rule holds for keys as well as values.
-
-### Files touched in milestone 2
-
-```
-pipelex/migration/material.py NEW — back/forward tracing of an entry's material through the ledger
-pipelex/migration/ledger.py declared_narrowed_paths + two validators
-pipelex/migration/engine.py the two predicates split; the new reason; ledger passed to the rehearsal
-pipelex/migration/plan.py BlockedEntryReason.VALUE_DOMAIN_NARROWED; BlockedEntry.narrowed_paths
-pipelex/migration/documents.py document_carries_path — `*` matches exactly one segment
-pipelex/migration/ledger_check.py DECLARED_NARROWED_PATH_IS_ABSENT; the convergence exemption
-pipelex/migration/coverage.py unsafe must declare, on both the narrowing and the enum half
-docs/migration-ledger.md § "What an `unsafe` entry promises" + the rules threaded through
-CHANGELOG.md one Added bullet
-tests/unit/pipelex/migration/test_unsafe_promise.py NEW
-tests/unit/pipelex/migration/{conftest,test_ledger_models,test_ledger_check,test_coverage_gate,test_transform_check}.py
-```
-
-The new tests were mutation-tested against the pre-fix engine: five of them go red, which is the guarantee they are meant to hold.
-
-### Verified at the pause
-
-`make agent-check` green, `make cl` green, `make cmig` green, and the full `make agent-test` green — every test passed.
-
-## Milestone 3 — the write path: dotted keys, backups, and what a blocked file means (DONE, committed and pushed)
-
-The last of the "must be settled before S7" bucket. Three things the charter listed separately turned out to be one pass over the code that actually touches a user's file.
-
-### (a) The dotted-key rename — fixed at the root, not refused
-
-The defect reproduced immediately and is worse than the round-3 note recorded. `[a]` / `k.x = 1` / `m = 3`, rename `k` → `kk`, gives `[a.kk]` with **`m` beneath it** — `a.m` became `a.kk.m`, verdict `applied`, nothing said. Renaming an *inner* segment of `k.x.y = 1` re-rendered the chain as a top-level `[k.xx]`, moving the subtree out of `[a]` entirely and leaving `a` empty. Both are silent data corruption on an ordinary TOML layout.
-
-**Root cause:** dotted-ness is a private flag tomlkit's parser sets on the key, not a property of the name, and `Container._replace_at` builds a fresh `SingleKey` whenever the name changes. The renderer then emits a block header — and a block header absorbs every scalar after it in the same table.
-
-**Decided: preserve, do not refuse.** A rename has exactly one correct answer on a dotted key, the layout is ordinary TOML no formatter rewrites, and refusing would strand the reshape's table renames on any file written that way. Same shape as round 3's stale `display_name`, fixed the same way.
-
-`_replace_key_in_container` no longer calls `Container._replace` at all; it renames the container's body entries where they sit. That drops three things the primitive did that a *rename* has no business doing: losing the dotted flag, collapsing a key written as several dotted lines into one rebuilt value (the dict facade for that shape holds only the last chunk), and injecting a cosmetic blank line after the renamed table. Index bookkeeping stays byte-for-byte what `_replace_at` did, **including its asymmetry** — the raw-storage staleness is deliberately not half-repaired here, because the stale facade for a nested rename is the parent `Table`'s own dict, a different object holding items rather than values. Repairing every facade kind is its own pass; `test_fix_applier_rename_dom_consistency.py` now says so and pins both halves.
-
-### (b) The backup and replace semantics pass
-
-Five questions, five policies, all written into the contract's "Backups" paragraph:
-
-- **A run never overwrites or removes a copy it did not make** (M). The stamp resolves to the second, so two runs can address one name; `write_backup` now *reserves* it with an exclusive create and keeps whatever is there — an older copy is the original, if anything is — and reports `was_created` so `_discard_backup` skips a copy this run merely found. The reachable damage was a concurrent run's refused write unlinking the other run's real backup.
-- **Symlinks are followed** (N). The runner resolves before reading, exactly as the `.mthds` fix loop already resolves its own targets, so the two callers of the shared primitive now agree and `file_transaction.py` needed no change. The plan keeps naming the walked path; the backup lands beside the file that was actually rewritten.
-- **A copy the run cannot vouch for leaves the rotation.** It is renamed `.bak.` → `.rescue.`, which `existing_backups_of` does not match, so the next successful run cannot prune away the copy the report told the user to go and get.
-- **Ownership, ACLs and xattrs are not carried across** — decided, documented, not implemented. An atomic replace cannot preserve what the process has no right to set, and re-attaching an attribute blindly (a quarantine flag, a security label) is a worse guess than leaving it off. Mode is carried, and that is the security-relevant bit.
-- **A directory `fsync` is owed, once** — after the backup lands, before the target is replaced. That is what makes "back up first, replace second" hold across a power loss. The target's own replacement is deliberately not synced: always-replay means a migration lost to a crash is replayed, while a lost backup is lost.
-
-### (c) `UNWRITABLE`, and the reason enum
-
-The round-3 reading is confirmed: for the single-file commit the runner performs, a failed replace re-raises its own `OSError`/`FixWriteConflictError` (a rollback of nothing is trivially complete), so the only `FixTransactionError` reaching a plan is the post-commit cleanup one. `FileBlockedReason` now carries one member per **state the file is in** rather than per exception caught — `UNREADABLE`, `UNPARSEABLE`, `UNWRITABLE`, `CHANGED_DURING_RUN`, `STATE_UNCERTAIN` — each with its own docstring and a row in the contract. `STATE_UNCERTAIN` is the only one that cannot promise the file is as it was found, which is exactly why it is not folded into `UNWRITABLE`: the next move is to compare against the rescue copy, not to fix a permission and re-run. Its wording no longer asserts which way the write went, because the runner genuinely cannot tell — only that the file does not hold what it wrote.
-
-### Files touched in milestone 3
-
-```
-pipelex/pipeline/fixes/applier.py _replace_key_in_container rewritten; _renamed_key; _rehome_key_indexes
-pipelex/migration/backup.py WrittenBackup; name reservation; rescue names; directory fsync
-pipelex/migration/runner.py symlink resolution; the new reasons; rescue on an uncertain write
-pipelex/migration/plan.py FileBlockedReason: UNREADABLE + STATE_UNCERTAIN, all documented
-docs/migration-ledger.md "A rename changes a name"; the blocked-reason table; Backups rewritten
-CHANGELOG.md a Fixed section
-tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py the dotted red/green fixtures
-tests/unit/pipelex/pipeline/fixes/test_fix_applier_rename_dom_consistency.py re-aimed at the new implementation
-tests/unit/pipelex/migration/test_runner.py symlink, collision, rescue, the reasons
-```
-
-Every new runner test was mutation-tested: dropping the resolve, clobbering the backup, discarding unconditionally, skipping the rescue rename, and folding `.rescue.` back into `.bak.` each turn exactly the intended test red.
-
-### Verified at the pause
-
-`make agent-check` green, `make cl` green, `make cmig` green, `make docs-check` green, `make drift-check` green **with the changes staged**. Full `make agent-test` green.
-
-## Already true before this session started (do not rebuild)
-
-- **The directory walk's overlap refusal** — the S6 "Done when" item carried from the #1110 review — **is already built and tested**: `SurfaceRegistry.surface_for_file_name` raises `MigrationRegistryError` naming the file, and `tests/unit/pipelex/migration/test_surface_resolution.py::test_a_file_two_globs_both_claim_stops_by_name` proves it with the `pipelex_*.toml` / `*_local.toml` pair. It landed in Phase 2 ahead of schedule, and the synthetic pair stays — a two-claimant refusal needs two globs that both match, which no real file in the tree produces. **What is still owed** is the #1111 note-5 half, which is a *different* claim about a *different* specimen: that the walk is **non-recursive**, pinned with the real `.pipelex/inference/backends/pipelex_gateway.toml`. That file matches the `pipelex-config` tier glob but sits one directory down, and `files_by_surface_in_directory` skips anything that is not a file, so the walk never descends to it — which is exactly what the test would assert. That is a test, not a behaviour change, and it neither replaces nor re-aims the overlap test.
-
-## Still open, in the charter's own words
-
-Everything in [§ S6](../../../wip/migrator-3/sequencing.md#s6--migrator-phase-3) not listed under Milestone 1 above. The ones that must be settled *here* rather than at S7:
-
-- ~~**The dotted-key rename policy**~~ — done, see Milestone 3(a).
-- ~~**The backup and replace semantics pass**~~ — done, see Milestone 3(b).
-- ~~**The `UNWRITABLE` wording and the reason enum**~~ — done, see Milestone 3(c).
-- ~~**R9**~~ — done, see Milestone 2. What it left open: **a `safe` entry silenced by its own `CONFLICT` plus a later rename** has the same mechanism and was deliberately not fixed, because repairing it means writing at a guessed spelling.
-- ~~**The #1111 note-5 half** (the walk is non-recursive, pinned with the real specimen)~~ — done, see Milestone 5.
-- ~~**The symlink write scope**~~ — decided in Milestone 5 and written into the contract: the write scope is the resolved target of any file the walk claims.
-
-**The "must be settled before S7" bucket is closed.** Two named follow-ups came out of it, neither blocking: the tomlkit raw-storage staleness wants one pass over every facade kind (`Container`, `Table`, `OutOfOrderTableProxy`) rather than the half-repair a rename can reach; and the `safe`-entry sibling above.
-
-Then the phase's own body: the two commands, boot tolerance, `report_validation_error`, the downgrade diagnosis, the telemetry-remedy retirement, `doctor`, the drift-contract review list (plus the four validator sites R8 names), the `add-migration` skill, `/release` step 3b, the `command-surface-map.md` rows, and publishing the contract in the nav.
-
-## Milestone 4 — the review pass over milestones 2-3 (DONE, in the same commit)
-
-A `/code-review high` over the staged changes produced five findings. Two were fixed, three were deferred with their options written down in [`wip/migrator-write-scope-and-rename-fidelity.md`](./migrator-write-scope-and-rename-fidelity.md).
-
-**Fixed.** The `value_domain_narrowed` report named the spelling the document carried *when the replay reached the entry*, and the later `safe` entries of the same run then renamed the material before the file was written — so a run reporting `reporting.retries` handed back a file calling it `output.retries`. `material.py` gained `spelling_after_replay`, and the report now names the end of that forward trace. Separately, the `state_uncertain` detail promised the pre-migration copy was "kept" on paths where it had not been moved out of the pruning rotation at all — another run's copy, a taken rescue name, or a rename that would not go. `keep_backup_for_rescue` now returns `RescuedBackup(path, was_rescued)` and the report asks the user to take the copy now when it could not be secured.
-
-**Deferred, with the decision spelled out for each.** The migration runner resolves symlinks without the write-scope guard its `.mthds` sibling pairs with `.resolve()`, so a configuration file symlinked outside every walked directory is migrated where it actually lives — keep it and say so, or guard it like the fix loop. A rename still renormalises the assignment's separator and drops a deliberate quoting, which is not a regression but sits against two claims made elsewhere in the same changeset. And a backup name already taken is reported as this run's copy — the documented policy working as designed, whose only misleading cases need a same-UTC-second collision from a non-run source.
-
-The contract's symlink paragraph was trimmed in the same change: it claimed "the two callers of the shared transaction primitive now agree", which on the write-scope half they do not.
-
-## Milestone 5 — the two `migrate` commands (DONE, on `feature/Migrator-3b`)
-
-The first milestone of part 2, and the one the reshape is gated on: until `pipelex migrate` exists, merging the reshape strands every existing `pipelex.toml` in the field.
-
-### What was built
-
-**`pipelex/migration/run.py` — the aiming.** `runner.py` answers *how* a file is migrated and takes everything as a parameter, which is what lets the gates replay it over documents nobody writes. The new module answers *what a real run is aimed at*: the package's own registry, the ledgers shipped beside it, and `config_directories_to_migrate()` — the global `~/.pipelex/` then the project `.pipelex/`, each only if it exists, and a project rooted at the home directory walked once rather than twice. Both commands and (later) `report_validation_error` must aim at the same files, or a user is told one thing by their boot and another by their tool.
-
-**`pipelex migrate`** (`pipelex/cli/commands/migrate_cmd.py`) plans, shows the plan, and asks; `--yes` skips the question, `--dry-run` stops after the plan. Two passes deliberately: the rehearsal is what the user is shown and asked about, the second is the one that writes, and where they disagree the transaction refuses rather than writing over work it never saw. Registered in `_CORE_COMMAND_ORDER` and added to the app callback's skip set, so no readiness check or deck notice runs ahead of a command whose whole point is a broken machine.
-
-**`pipelex-agent migrate`** (`pipelex/cli/agent_cli/commands/migrate_cmd.py`) is the same run for a machine. **It writes only with `--yes`** — it cannot ask, so the default is the safe half of the question — and `--dry-run` is the explicit spelling of that default, which is the loop the charter names. The two together are **refused, exit 2**, rather than resolved: an agent that asks for both has a bug a silent winner would hide. `needs_attention` is the verdict and is deliberately not "did anything get written"; the exit code and the rendering are presentation.
-
-`describe_op` is shared between them, and renders an operation from ledger-supplied material only.
-
-### The end-to-end tests use the real shipped migration
-
-The one thing that made an honest E2E possible today: **`telemetry-config@2` is a real entry about a real file**. A flat first-generation `telemetry.toml` fails `TelemetryConfig`'s `extra="forbid"` and breaks the boot right now, so the charter's "failing boot → migrate → boot succeeds" runs against the package's own `goldens/telemetry-config/[email protected]` and the ledger the package ships — no fixture invented, no monkeypatching. `tests/e2e/pipelex/cli/test_migrate_commands.py` plants that file in a hermetic HOME **and** a flat `telemetry_override.toml` in a temp project (the tier the telemetry loader actually merges, which is what keeps the boot failure honest), then proves: the boot fails, both files are migrated, exactly one backup each holding what that file used to say, the report names both, and the boot succeeds. The agent loop (`--dry-run --format json` → `--yes`) is the same scenario read as JSON.
-
-**The boot probe is `pipelex-agent models`** — the cheapest command that performs a full boot including the telemetry load. `pipelex show config` is *not* a probe: it exits 0 on a machine whose telemetry cannot load, because it never reads it. Worth knowing before inventing a lighter one.
-
-**The bootstrap proof** plants a root key no model knows at the top of `pipelex.toml`, confirms a booting command exits 1 on it, and shows both `migrate` commands still run. A second test in the same class is the one that matters more: with that same broken `pipelex.toml` in place, a stale `telemetry.toml` beside it is **still migrated**. A command that ran but declined to do anything would pass the first test and be useless.
-
-**The rendering rule**, on the two channels that exist: a realistic secret is planted as the old `project_api_key`, which the shipped entry *moves*, and asserted absent from stdout and stderr of four invocations (human dry-run, human apply, agent JSON, agent Markdown) while the migrated file demonstrably carries it. The third channel — the `migration` block on a configuration validation error — joins when `report_validation_error` lands, and the test's docstring says so.
-
-### `min_supported_schema_version` now has a reader
-
-The charter's "the command reads them or they go", settled for the floor by **giving it a reader** rather than softening the sentence. `declared_schema_version` (in `config_surface.py`, beside the strip that already lived there) reads the reserved `[meta] schema_version` **exactly as tolerantly as boot strips it** — a string, a float, a `bool`, a non-table `[meta]` are all "no declaration", because a malformed declaration boots fine and migration must not be stricter than the reader the key exists for. `migrate_file` refuses a file below its ledger's floor with a new `FileBlockedReason.UNSUPPORTED_SCHEMA_VERSION`, writing nothing. Dormant today (every floor is 0, and nothing writes the key) and pinned with a synthetic ledger; it earns its place the day a squash moves a floor.
-
-Note what this uncovered: **a squash cannot actually be expressed today** — `check_entries_are_contiguous_and_named_for_their_version` requires entries to start at 2 and be contiguous — so the floor is a *declaration* the reader now enforces, not something derivable from the entries. That is worth knowing before anyone tries to squash a ledger.
-
-`MigrationReport` gained `changed_plans`, `unexplained_plans` and `needs_attention`; `written_plans` and `blocked_plans` finally have readers. **`MigrationLedger.entry_for_version` still has none** — see below.
-
-### Decisions taken in this milestone
-
-- **The symlink write scope is settled and written into the contract**, closing §1 of `migrator-write-scope-and-rename-fidelity.md` in favour of keeping the current behaviour and saying so: *a migration's write scope is the resolved target of any file the walk claims*. The `.mthds` fix loop guards its scope because it is handed a bundle directory; a configuration directory is a place a user keeps links to files they own, and a dotfiles repository is the ordinary reason one is there. Refusing it would decline to migrate exactly the machines whose owner was most deliberate.
-- **The walk is not recursive, and that is now pinned with the real specimen** (#1111 note 5): `.pipelex/inference/backends/pipelex_gateway.toml` matches the `pipelex-config` tier glob exactly. Both halves are tested — it is not claimed where it lives, *and* the same name at the top level is claimed — because without the second half the first would still pass if the glob stopped matching, and would be proving nothing about recursion.
-- **The replay-time `TOMLKitError` catch got an honest message.** The parse now happens up front (for the floor read), so a `TOMLKitError` from the replay is an operation failing on a document that is valid TOML — an applier bug, not a bad file. It is still caught at the per-file boundary rather than aborting the walk, and the detail now says what it is.
-
-### Files touched in milestone 5
-
-```
-pipelex/migration/run.py NEW — which directories, which registry, which ledgers
-pipelex/migration/runner.py up-front parse; the floor refusal; the honest replay-error detail
-pipelex/migration/plan.py UNSUPPORTED_SCHEMA_VERSION; changed_plans/unexplained_plans/needs_attention
-pipelex/system/configuration/config_surface.py declared_schema_version
-pipelex/cli/commands/migrate_cmd.py NEW — the human command + describe_op
-pipelex/cli/agent_cli/commands/migrate_cmd.py NEW — the machine command
-pipelex/cli/_cli.py, pipelex/cli/agent_cli/_agent_cli.py registration, ordering, the no-boot skip set
-subject_grants.toml _render_markdown (positional-Callable protocol)
-docs/migration-ledger.md NEW § "The commands"; the floor bullet; the blocked-reason row; the symlink decision
-docs/tools/cli/migrate.md NEW user-facing page (+ index row, + mkdocs nav)
-pipelex/cli/agent_cli/CLAUDE.md the migrate row and its markdown structure
-CHANGELOG.md two Added bullets
-tests/e2e/pipelex/cli/test_migrate_commands.py NEW — both commands, the bootstrap, the rendering rule
-tests/unit/pipelex/migration/test_migration_run.py NEW — directories, walk depth, the floor, the reserved-key read
-tests/unit/pipelex/migration/conftest.py build_ledger gained min_supported_schema_version
-.drift/acks/{cli-docs,config-docs}.toml both contracts reviewed and acked
-```
-
-Mutation-tested: dropping the project directory from the walk, making `--yes` not write, removing the floor refusal, and making the walk recursive each turn exactly the intended tests red.
-
-## Milestone 6 — the downgrade diagnosis (DONE, on `feature/Migrator-3b`)
-
-`unexplained[]` had renderers on both commands and nothing ever put anything in it. It does now, and the charter's sentence about the downgrade direction — *"that diagnosis is computable from the ledger alone"* — turned out to be wrong and was corrected in the contract in the same change.
-
-### Where it runs, and why there
-
-**In the runner, on the document the run leaves behind.** `run.py` was the other candidate and cannot do it: on a dry run the migrated document exists only in memory, and re-reading the file afterwards would diagnose the *pre*-migration shape — reporting every stale key the ledger is about to repair. So `migrate_file` diagnoses `replay.text`, which is the only place that document is.
-
-**It is the first thing in the migration package that needs a model, and the engine stayed model-free.** The question goes to the surface's *fingerprint*, not to the model directly, which is what keeps the new module (`diagnosis.py`) as pure as `material.py`: a fingerprint, a document, a ledger and the blocked entries in, a list of `UnexplainedPath` out. `compute_surface_fingerprint` moved off `snapshot.py` (the *regenerator*) and onto `Surface.fingerprint_at()`, where both readers can have it without the runner importing the golden-writing machinery. It costs about 2 ms per file and reads nothing but the package's own files, so the bootstrap property is untouched.
-
-### The four rules that make the answer worth reading
-
-- **A tree walk, not a diff of two flat path sets.** That is what buys the two properties a set diff cannot have: an unknown *table* is named once instead of once per key inside it, and the schema spelling of every ancestor is known by the time a child is reported.
-- **A blocked entry answers for its own material.** An `unsafe` entry is never applied, so the old shape it is about is still in the file — already reported, by name, with the entry's guidance. Calling the same key an unexplained typo would contradict the report two lines above it. The subtraction **deliberately over-covers** (op sources plus `declared_removed_paths`, each also traced forward through later `safe` entries), because every path it removes is one the same report names in `blocked[]`. A `remap_value` contributes nothing: it moves a value and leaves the path where it was, so subtracting it would silence a real typo sitting at a remapped key. This is `MigrationLedger.entry_for_version`'s **first caller** — the #1113 review's open "remove it or keep it" question is answered by keeping it.
-- **A key the user chose is never rendered.** Beneath an open mapping the schema says `levels.*` where the file says `levels.my_package`, and a typo *inside* such an entry is reported at `queues.*.retreis`. Same rule as `narrowed_paths[]`, and the walk gets it for free by carrying the schema spelling alongside the document path.
-- **A document nesting below a path the schema says is a scalar is left alone.** That is a type error, which the model reports far better, and descending would invent unknown paths beneath a path the schema knows perfectly well. Together with the reserved-`[meta]` strip — performed exactly as boot performs it — that is what keeps the diagnosis silent on files it has nothing to say about.
-
-### What the note says
-
-One note for every finding, and deliberately so: *the current schema has no setting there, and no ledger entry retires it — either the name is a typo, or this file was written by a newer pipelex than the one running, so check whether you are on an older branch or an older build.* The two readings are indistinguishable to a schema that knows neither name, and guessing would send half the users to the wrong fix.
-
-**A reserved-path cross-reference was considered and rejected.** `derive_reserved_registry` could say "this path was retired at version N and is still here" — but a reserved path surviving a replay means a *blocked* entry, which the subtraction above already accounts for, so the branch would never fire.
-
-### The witnesses
-
-- **Every real surface's reference document and kit template diagnose clean** (`test_real_surfaces.py`). Both are at the current schema by construction, so a finding in either is the diagnosis being wrong about our own schema rather than a stale document. It was green on the first run, which is what made the design trustworthy before any of the unit tests existed.
-- **The e2e bootstrap fixture was already the specimen.** `_break_the_configuration` plants `not_a_real_setting = true` at the top of `pipelex.toml` — a root key no model knows and no entry removes — so the diagnosis is now asserted against the very file that breaks the boot, through the real binary. Both bootstrap tests changed exit expectation from 0 to **1**: `needs_attention` is now true on that machine, which is correct, and the second one is the better test for it — a broken `pipelex.toml` needing a human does not stop the stale `telemetry.toml` beside it from being migrated.
-
-### Files touched in milestone 6
-
-```
-pipelex/migration/diagnosis.py NEW — the walk, the blocked-entry subtraction, the note
-pipelex/migration/documents.py path_matches_pattern / path_is_at_or_under_pattern extracted; one definition of `*`
-pipelex/migration/runner.py _diagnose, on the migrated document
-pipelex/migration/surfaces.py Surface.fingerprint_at()
-pipelex/migration/snapshot.py compute_surface_fingerprint removed, calls the method
-docs/migration-ledger.md "The downgrade direction" rewritten; the unexplained rule in "What the engine reports"
-CHANGELOG.md one Added bullet
-tests/unit/pipelex/migration/test_diagnosis.py NEW
-tests/unit/pipelex/migration/test_real_surfaces.py the clean-witness over our own documents
-tests/unit/pipelex/migration/test_migration_run.py the migrated-document-not-the-read-one pair
-tests/unit/pipelex/migration/conftest.py ExampleConfig grew the paths its fixtures' migrated documents carry
-tests/e2e/pipelex/cli/test_migrate_commands.py the diagnosis through the real binary; two bootstrap exit codes
-```
-
-`ExampleConfig` growing a `reporting` block is worth noticing rather than skipping: the synthetic surface's model now has to name the paths the synthetic *migrated* documents carry, or the diagnosis reports them and every runner test gains noise about something it was not testing.
-
-Mutation-tested: dropping the reserved-meta strip, the open-node `*` fallback, the blocked-entry subtraction, the stop-at-an-unknown-table, the scalar-descend guard, the schema spelling, the remap exclusion, the forward trace, the `declared_removed_paths` source, and diagnosing the document as it was read each turn exactly the intended tests red.
-
-## Milestone 7 — boot tolerance (DONE, on `feature/Migrator-3b`)
-
-A stale configuration no longer stops the boot. Each surface's loader validates as it always did and, only when that fails, replays its ledger over the same files **in memory**, re-runs its own post-merge step, and validates again — booting with a warning that names the files and the `pipelex migrate` remedy. Nothing is written; a tolerated boot leaves the directory exactly as it found it, which is why the warning keeps coming back until the command is run.
-
-**The shared helper owns the failure path, not the load** — `replay_surface_files_in_memory` in `config_surface.py`, which was already the home of the reserved-`[meta]` strip. The three loaders differ between their merge and their validate (programmatic overrides / `${VAR}` substitution / nothing), so a helper owning the whole load would have to know about all three. It takes the surface id and the same ordered path list the loader merged, and hands back the migrated merge plus a `MigrationPlan` per file. The overrides in particular are re-applied by the caller, because they are a layer of the *load* while the replay only sees the *files*.
-
-### Three things the groundwork had wrong or had not seen
-
-**The engine cannot be imported at module level, and the mechanical guard would not have caught it.** `pipelex/migration/engine.py` imports `pipelex.pipeline.fixes.applier` — `pipeline` is an *interpreter* package, and the configuration loaders sit in `runtime_hub`'s closure, the kernel layer whose stated property is that importing it loads zero interpreter modules. The previous session's groundwork checked the reverse direction only (that the engine pulls in no configuration model, which is true) and concluded a module-level import was fine. It is not. And `make agent-check` would not have caught it: `check-hub-layering` does reachability to `interpreter_hub`, which `pipeline.fixes.applier` does not reach, so the lint stays green. Measured rather than assumed — a module-level import there was tried, and it turns **nine** entry points of `tests/unit/pipelex/test_kernel_layer_import_closure.py` red while every gate in `agent-check` passes. Only the full `make agent-test` sees it. So the engine import is deferred into the retry — which also makes "the healthy path is untouched" literal rather than approximate. `migration.plan` and `migration.ledger` are clean and are imported normally.
-
-**`PipelexConfig` does not raise `ValidationError`.** `ConfigRoot` gives itself a custom `__init__` that translates pydantic's error into `ConfigValidationError`, and pydantic v2 routes `model_validate` through a custom `__init__` — so the main configuration raises the translated one while a plain-model surface raises pydantic's. An `except ValidationError` would have switched boot tolerance off for the one surface everything depends on, silently and with every test passing. Both are caught, via `CONFIG_REFUSED` in `config_loader.py`.
-
-⚠ **The same fact makes an existing branch dead, and it belongs to item 3.** `runtime_boot.py`'s `except ValidationError as validation_error:` around `setup_config` — the one that calls `report_validation_error(category="config", ...)` and raises `PipelexConfigError` — can never fire, because what `setup_config` raises is `ConfigValidationError`. Pre-existing, unchanged by this milestone, and precisely item 3's business, since that dead branch is one of `report_validation_error`'s two config-side callers. Verified by hand, not inferred.
-
-**A failure *inside* the retry must never become the failure the user sees.** A missing ledger came back as `MigrationLedgerError` and replaced a legible "extra forbidden field: `not_a_real_setting`" with an internal path nobody can act on. The retry now declines on `MigrationLedgerError`; a broken packaged ledger stays loud where it should be loud (`make cl`, `pipelex migrate`). Same reasoning already applied to an unparseable file — and there the retry abandons *entirely* rather than skipping the file, because skipping drops a layer from the merge and a re-validation that then succeeded would boot on a configuration the user does not have.
-
-### Decisions recorded in the contract
-
-**Boot tolerance does not run the downgrade diagnosis.** On this path the model has already spoken, and pydantic's extra-field list is the same answer and a better one — it knows about validators, which a path walk does not. The diagnosis is for `pipelex migrate`, where nothing validates the file.
-
-**The re-validation is what decides, and that is stronger than a second gate.** The contract's "unsafe entries, conflicts and unexplained paths still fail the boot" reads as a *description of why the re-validation fails*, not as an extra refusal on top of it: material an `unsafe` entry is about is still in the file, so the model refuses it; and a `VALUE_DOMAIN_NARROWED` report the model accepts was never a reason to refuse a boot, since that report says *check this key* and the model has now checked it.
-
-### The two e2e tests changed premise, and a fourth finding came out of it
-
-`test_migrate_commands.py` opened both of its end-to-end tests by asserting **the machine does not boot** — that was the scenario. Boot tolerance makes it boot, so the full `make agent-test` caught them (nothing in `agent-check` did). They now assert the machine boots on *both* sides of every command, which is the tolerance property itself, and the migration is still measured on the files.
-
-⚠ **The agent CLI cannot see the warning, by contract.** The boot probe is `pipelex-agent models`, and `pipelex-agent` calls `silence_logging_for_agent_cli()` as its first act so nothing pollutes its two structured streams. So the e2e asserts the boot, not the warning — the warning is asserted per surface in `test_boot_tolerance.py`. The consequence is worth carrying into item 5: **a machine consumer never learns of a pending migration from a boot.** It has to ask — `pipelex-agent migrate --dry-run`, or the `doctor` pending-migrations row — which makes that row more load-bearing than it looked when it was listed.
-
-### Where it landed
-
-```
-pipelex/system/configuration/config_surface.py the helper, the warning builder, the three surface-id constants
-pipelex/system/configuration/config_loader.py config_file_paths extracted; load_config_validated; CONFIG_REFUSED
-pipelex/system/telemetry/telemetry_config.py the retry, re-running the ${VAR} substitution
-pipelex/system/pipelex_service/pipelex_service_config.py the retry, one file
-pipelex/runtime_hub.py setup_config goes through load_config_validated
-pipelex/cli/commands/plugins_cmd.py same, for free
-pipelex/migration/ledger.py packaged_migration_dir moved here off the registry
-pipelex/migration/surfaces.py imports the surface-id constants instead of spelling them
-docs/migration-ledger.md "Boot tolerance" rewritten against what was built
-CHANGELOG.md one Added bullet
-tests/unit/pipelex/system/configuration/test_boot_tolerance.py NEW
-tests/e2e/pipelex/cli/test_migrate_commands.py both e2e tests re-premised on a machine that boots
-docs/tools/cli/migrate.md the boot warning is how users will meet the command
-docs/contribute/hub-layering.md pipelex.migration accounted for (see the drift ack)
-```
-
-`packaged_migration_dir` moved off `surfaces.py` (the registry, which imports every configuration model) and onto `ledger.py`, so a loader can reach a ledger without reaching a registry. The surface ids are now constants in `config_surface.py` that the registry imports, so the loader and the registry cannot drift apart on a string literal.
-
-The stale documents in the tests are **real** where they can be: `telemetry-config@2` and its shipped `[email protected]`. The other two surfaces have empty ledgers, so their tests plant a synthetic one in a temporary migration directory via `packaged_migration_dir` — the wiring is what is under test there.
-
-Mutation-tested: dropping the reserved-meta strip, skipping an unparseable file instead of abandoning the retry, abandoning on a missing file instead of skipping it, reporting a clean surface as stale, letting a ledger failure escape, merging the text as read instead of as replayed, dropping the programmatic overrides from the retry, catching only pydantic's `ValidationError`, re-raising from a failed retry instead of yielding, and building the warning from the file instead of from the ledger — each turned exactly the intended tests red.
-
-⚠ **A process note worth keeping.** During that mutation loop a `git checkout <file>` reverted an *unstaged* edit and silently undid part of the milestone; the next three test runs were measuring a tree that no longer had the code. Mutation loops over uncommitted work must back up with `cp` and restore with `cp` — never with git.
-
-## Milestone 8 — `report_validation_error` on the real plan (DONE, on `feature/Migrator-3b`)
-
-The old `MigrationConfig` / `migration_maps` consumer is gone and a **dry-run scan of the surface that refused** has taken its place, riding the error twice: as a paragraph in the message and as the structured `migration` block a machine consumer branches on. `error_domain` stays `"config"`.
-
-### The signature changed, and `category` did not survive it
-
-`report_validation_error(*, category, validation_error) -> str` became `report_validation_error(*, validation_error, surface_id=None) -> ValidationErrorReport`. `category` selected a renaming map and had no other reader, so with the maps retired it named nothing; `surface_id` expresses the one asymmetry left — **naming a surface is what turns the scan on**. The two `.mthds` callers (`validate_bundle.py`, `library_manager.py`) and `runtime_boot`'s backend/deck helper name none, deliberately: none of those has a ledger, and a `pipelex migrate` remedy for a `.mthds` bundle sends a user to a command with nothing to do. That is pinned twice — no block, *and* the walk never happens.
-
-`MigrationConfig` keeps `migration_maps` and loses both methods, with the reason in its docstring: the field is dead but the `[migration]` table ships and `extra="forbid"` would refuse every user file still carrying one, so the reshape entry is what removes both halves — sequencing rule 3. Two now-dead subject grants came out of `subject_grants.toml` with the methods.
-
-### The block had to live in `base_exceptions.py`, and that cost a module move
-
-`ErrorReport` references the block as a typed field, and `base_exceptions` cannot import the migration package: `plan.py` → `ledger.py` → `migration.exceptions` → `base_exceptions`. The precedent is `ValidationErrorItem`, which lives there for exactly this reason.
-
-Rather than declare a second projection of `MigrationPlan` that would drift from the first, the cycle was **broken**: `MigrationSafety` moved out of `ledger.py` into a new `pipelex/migration/safety.py`, which leaves `plan.py` depending only on stdlib, pydantic, `safety` and `suggested_fix` — all already in `base_exceptions`' closure. `plan.py`'s docstring now states that constraint the way `suggested_fix.py` states its own. So `MigrationErrorBlock.plans` is `list[MigrationPlan]`: **the same shape `pipelex-agent migrate --dry-run --format json` emits under its own `plans` key**, and an agent that parses one has already parsed the other.
-
-`migration` is deliberately **not** in `_STRICT_KEPT_FIELDS`, and the contrast with `validation_errors` is written beside it: validation errors describe the caller's own submitted bundle, a pending migration describes the *host's* configuration directories.
-
-### Three defects found, all real, all fixed
-
-**(a) Scoping the scan by building a one-surface registry silently corrupted the answer.** `SurfaceRegistry.surface_for_file_name` resolves ownership by *"an exact base file claims before any glob, **across all surfaces**"* — and its docstring names `pipelex_service.toml` as the very case it exists for, since that file is one surface's base file and a match for `pipelex-config`'s `pipelex_*.toml`. Handing `migrate_directories` a registry holding only `pipelex-config` removed the other claimant from that arbitration, so the glob won: the file was replayed under the wrong ledger and diagnosed against the wrong model, and its perfectly ordinary `agreement` and `onboarding` settings came back reported as *paths this build knows nothing about*. **Measured in a real run's stderr, not reasoned about.** The fix is `migrate_directories(only_surface_id=...)`: arbitration first with the full registry, filter second. Mutation-tested — reverting it turns the regression test red on exactly `pipelex_service.toml`.
-
-**(b) The boot's `except ValidationError` around `setup_config` was dead**, as Milestone 7 predicted, and so was the doctor's. `PipelexConfig` is a `ConfigRoot`, whose custom `__init__` translates pydantic's error into `ConfigValidationError`, so neither arm ever fired for the one configuration everything depends on — a bad `pipelex.toml` produced a bare traceback rather than the field-level translation the arm existed to produce. Both now catch `CONFIG_REFUSED` and go through one shared `raise_config_setup_error`, with `pydantic_error_behind` (new, beside `CONFIG_REFUSED` in `config_loader.py`) reaching through either shape. A refusal carrying no pydantic error is re-raised as itself.
-
-**(c) The agent CLI printed two error envelopes on one stream.** `agent_error` leaves through `typer.Exit`, which is a `RuntimeError` and **not** a `SystemExit`, so `models_cmd`'s `except SystemExit: raise` never caught it and the broad `except Exception` below reported it a second time. Two JSON documents on stderr is not JSON — `json.loads` gives *"Extra data"*. Pre-existing, and found because the new e2e is the first test to parse that stream instead of substring-matching it. Fixed at both sites (`models_cmd`, `check_model_cmd`) and pinned by an explicit single-envelope assertion.
-
-**(d) And one trap this milestone introduced and closed in the same pass.** `MigrationPlan` carries real `Path` values, so `ErrorReport.to_dict()` — the documented serialization surface, handed straight to `json.dumps` by the webhook delivery path — could no longer be serialized once a block rode on it. Not reachable from a pipeline run today, since nothing raises a `PipelexConfigError` inside one, but leaving it would be a trap for whoever wires the next consumer. `to_dict` now dumps that one field in JSON mode; dumping the whole report in JSON mode would have re-serialized every other field and every round-trip with it. `from_dict` still round-trips, because pydantic accepts a string for a `Path`.
-
-### Decisions taken in this milestone
-
-- **The scan runs only on the failure path and only when a surface is named**, so it is a filesystem walk and a ledger replay that a healthy boot never pays for — and the migration import is deferred inside the function, for the kernel-layer reason Milestone 7 established (`core/validation.py` is in `runtime_boot`'s closure; `make agent-check` would not catch a module-level import, only the full `make agent-test`).
-- **A failure inside the scan never becomes the failure the user sees**, same rule as the boot retry — but the catch is `(MigrationError, OSError)` rather than blanket, so an applier bug still surfaces as the bug it is. Both halves are tested.
-- **The block is present iff the scan found something**, and only non-clean plans are listed. Absence is the verdict "this is not staleness", which is what "consumers branch on the block's presence" requires to mean anything.
-- **The message is presentation** and carries the pydantic analysis plus a paragraph in the same order as `stale_configuration_warning`, because the two are read in the same places.
-
-### Files touched in milestone 8
-
-```
-pipelex/migration/safety.py NEW — MigrationSafety, moved out of ledger.py to break the cycle
-pipelex/migration/plan.py the low-level constraint stated; imports safety
-pipelex/migration/ledger.py + 5 siblings + 7 test modules re-pointed at migration.safety
-pipelex/migration/runner.py migrate_directories(only_surface_id=...)
-pipelex/migration/run.py scan_config_surface — the dry run, aimed at one surface
-pipelex/base_exceptions.py MigrationErrorBlock; ErrorReport.migration; PipelexConfigError carries it
-pipelex/core/validation.py REWRITTEN — the scan, the block, the prose, raise_config_setup_error
-pipelex/system/configuration/config_loader.py pydantic_error_behind, beside CONFIG_REFUSED
-pipelex/system/configuration/configs.py MigrationConfig: methods retired, field and reason kept
-pipelex/runtime_boot.py, pipelex/cli/commands/doctor_cmd.py the dead arms fixed, one shared helper
-pipelex/cli/agent_cli/commands/agent_output.py the migration block on the error payload
-pipelex/cli/agent_cli/commands/{models,check_model}_cmd.py the double-envelope fix
-pipelex/pipeline/validate_bundle.py, pipelex/libraries/library_manager.py .message, no surface
-subject_grants.toml two dead grants removed
-docs/migration-ledger.md NEW § "Reporting a stale configuration on a validation error"
-docs/tools/cli/agent-cli.md the error envelope: one document, and the `migration` field
-docs/tools/cli/migrate.md the boot-failure path names the command; the agent loop
-docs/configuration/index.md the `[migration]` line, which the previous config-docs ack parked for here
-pipelex/cli/agent_cli/CLAUDE.md the migration-field bullet
-CHANGELOG.md one Added bullet, two Fixed
-tests/unit/pipelex/core/test_validation_report.py RE-AIMED — was about hub state, is now about the scan
-tests/e2e/pipelex/cli/test_migrate_commands.py NEW class: the third channel, through the real binary
-.drift/acks/{config-docs,cli-docs}.toml both reviewed and acked
-```
-
-Mutation-tested: building the scan's registry from one surface, dropping the JSON-mode dump of the `migration` field, widening the scan's catch to a blanket `except Exception`, and returning a block when the scan found nothing — each turned exactly the intended tests red.
-
-The re-aiming of `test_validation_report.py` is worth noticing rather than skipping: its two tests existed because the helper *read the hub* and crashed when there was not one. It no longer touches the hub at all, so that concern moved — the bootstrap property is now that the **scan** runs on a machine with no hub and no configuration, which is where it is asserted.
-
-⚠ **The e2e's boot assertion changed, and it is a contract change.** `TestTheBootstrapPath` asserted `"ConfigValidationError" in boot.stderr`; a boot failure now reports `PipelexConfigError`, which is the class that carries `error_domain: "config"` and the block. Anything downstream matching on that error type sees a different name.
-
-## Milestone 9 — the two telemetry remedies retired (DONE, on `feature/Migrator-3b`)
-
-Both of them told a user to re-initialize a file the shipped `telemetry-config@2` entry exists to carry forward. `pipelex init telemetry` **writes a fresh file**, so on the one case they named — the flat pre-`[custom_posthog]` format — the remedy discarded the PostHog key, the Langfuse credentials and the OTLP exporters it was supposed to be helping with. There turned out to be a third one, and a fourth site that was worse than any of them.
-
-### There were four, not two
-
-The tracker named `check_telemetry_config`'s old-shape sniff and `handle_telemetry_config_validation_error`'s banner. Also found and retired:
-
-- **`AGENT_ERROR_HINTS["TelemetryConfigValidationError"]`** — the agent-side twin of the banner, and leaving it would have had the human CLI say `pipelex migrate` while the agent CLI said `pipelex init telemetry` about the same file.
-- **`doctor --fix`'s prompt**, which is the one that could actually destroy something. `can_fix_telemetry` was `"format has changed" in telemetry_message.lower()`, and on a match `--fix` offered *"Reset telemetry configuration using the new format?"* → `init_cmd(focus=InitFocus.TELEMETRY)`. Answering yes on a migratable file rewrote it from the template.
-
-That last one is also why the row could not simply be reworded: the message **was** the contract between the probe and the repair machinery, in three places (`display_health_report`, `do_doctor_cmd` twice). Rewording it would have switched the whole `--fix` telemetry path off in silence, with every test still green.
-
-### What was built
-
-**The error carries the answer.** `load_telemetry_config` now raises through `report_validation_error(surface_id=TELEMETRY_CONFIG_SURFACE_ID)`, so a `TelemetryConfigValidationError` carries the same `MigrationErrorBlock` a `PipelexConfigError` does. The message is byte-identical to before plus the migration paragraph — `format_pydantic_validation_error` is literally `analyze_pydantic_validation_error(exc).error_msg`, which is what `report_validation_error` builds on.
-
-**`TelemetryConfigError` is now a `PipelexConfigError`.** It is one — and the reparenting is what gives it both halves for free: `error_domain = CONFIG` from the class (so its `AGENT_ERROR_DOMAINS` entry went, which `test_agent_output_drift.py` — the lookup-dict guard, not a drift *contract* — requires the moment a class declares its own) and the ability to carry a block. Checked every `except PipelexConfigError` site before doing it: `reporting_manager`, `tracing_assembly` and both doctors, none of which load telemetry — `setup_doctor_runtime` only does `setup_config`.
-
-**The doctor row is a verdict, not a sentence.** `check_telemetry_config` returns a `TelemetryConfigCheck(finding, message)` over a new `TelemetryConfigFinding` — `HEALTHY`, `NOT_FOUND`, `UNPARSEABLE`, `OUT_OF_DATE`, `INVALID` — and every caller branches on it. `finding.is_repaired_by_initializing` is the property that answers the destructive question, and it is True for exactly one member: there is nothing in a file that is not there to lose. `OUT_OF_DATE` gets `pipelex migrate`, `UNPARSEABLE`/`INVALID` get a person, and regeneration is still offered on those two but described as what it is — *"start the file over, discarding what is in it"*. The agent doctor emits `finding` on the envelope and derives one recommended action per finding through a match/case.
-
-### Two defects fixed along the way
-
-**(a) The probe was stricter than the loader it reports on.** `check_telemetry_config` validated the raw document without `strip_reserved_meta`, so a `telemetry.toml` carrying the migration machinery's reserved `[meta]` table booted perfectly well and was reported invalid. Dormant today (nothing writes the key) and reachable the moment anything does.
-
-**(b) The scan had to be scoped to the directory the probe read.** `scan_config_surface` gained `config_dirs`, because the doctor validates *one* resolved file — `--global` inspects `~/.pipelex/` — while the default walk is both directories. Without it, a stale global file would make a `--global`-inspected project file report `out_of_date`, sending the reader to a migration that does nothing for the file on their screen. Mutation-tested: reverting it turns two tests red.
-
-### One I nearly shipped
-
-The doctor's scan had no guard around it. Milestone 8's rule — *a failure inside the scan is never the failure the user sees* — costs more in the doctor than anywhere else: an exception escaping the probe reaches `doctor_cmd`'s own outer handler, which prints one line and exits, so a broken packaged ledger would have replaced **every row the user came for** with "Unexpected error". Caught in self-review, not by a test. The catch is `(MigrationError, OSError)` like the others, and both halves are now pinned — the fallback, and an applier bug still surfacing as itself.
-
-### The module split this forced, and why it was the right answer
-
-`make agent-check`'s pyright caught a **real import cycle**: `telemetry_config → core.validation → migration.run → migration.runner → migration.surfaces → telemetry_config`. `surfaces.py` builds the registry and therefore imports every configuration model, this surface's included.
-
-**Deferring the import does not help** — `core.validation`'s reach into `migration.run` is already deferred and pyright counts it as an edge all the same. Tried it; the cycle report was unchanged. Worth knowing before anyone tries the same thing on `pipelex_service_config.py`.
-
-So the module was split the way `system/configuration/` already splits: **`telemetry_config.py` keeps the models, the new `telemetry_loader.py` holds `load_telemetry_config`**. That makes the edges run one way — the registry reads the models, the loader reads the registry — and it is cheap, because everything in the registry's closure (`otel_factory`, `surfaces` itself) imports only models. `telemetry_factory.py` was the single production importer of the loader.
-
-This is the same shape Milestone 7 hit and solved by moving `packaged_migration_dir` off `surfaces.py` onto `ledger.py`, one level up: *a loader must be able to reach the migration package without reaching the registry.*
-
-### Deliberately not done
-
-**`pipelex_service_config.py` is the third surface and was left alone.** It has boot tolerance and no block — but it also has **no hardcoded remedy to retire**, anywhere: nothing in the CLI catches `PipelexServiceConfigValidationError` by name, and it carries agreement/onboarding state rather than settings a user tuned. Closing the gap means the same models/loader split (`surfaces.py` imports `PipelexServiceConfig` from it), which is a change item 4 does not justify. Named here so it reads as a decision rather than an oversight.
-
-**`--fix` does not yet run the migration.** `OUT_OF_DATE` is reported and `pipelex migrate` is named, but fix mode offers nothing for it — deliberately, because "`--fix` delegating to the migrate command" is item 5, whose pending-migrations row covers every surface and would supersede a telemetry-only version built here. What item 4 owed was that fix mode stop offering the *destructive* thing, and it does.
-
-### Files touched in milestone 9
-
-```
-pipelex/system/telemetry/exceptions.py TelemetryConfigError is a PipelexConfigError
-pipelex/system/telemetry/telemetry_loader.py NEW — the loader, out of the registry's closure
-pipelex/system/telemetry/telemetry_config.py models only now
-pipelex/system/telemetry/telemetry_factory.py re-pointed at the loader
-pipelex/migration/run.py scan_config_surface(config_dirs=...)
-pipelex/cli/commands/doctor_cmd.py TelemetryConfigFinding / TelemetryConfigCheck; every text sniff gone
-pipelex/cli/agent_cli/commands/doctor_cmd.py _telemetry_action; `finding` on the envelope
-pipelex/cli/error_handlers.py the banner rebuilt from the error
-pipelex/cli/agent_cli/commands/agent_output.py the hint rewritten; the domain entry removed
-docs/migration-ledger.md NEW § "Every surface reports it the same way, and none of them says start over"
-docs/configuration/config-practical/telemetry-config.md NEW § "When telemetry.toml will not load"
-docs/tools/cli/{migrate,init,agent-cli}.md, docs/under-the-hood/init-cli-flows.md
-pipelex/cli/agent_cli/CLAUDE.md the doctor row names the finding
-CHANGELOG.md one Changed, two Fixed
-tests/unit/pipelex/system/telemetry/test_telemetry_stale_remedy.py NEW
-tests/unit/pipelex/cli/{test_doctor_config_checks,test_doctor_cmd,test_doctor_display_report,test_doctor_fix_mode,test_agent_doctor_cmd,test_error_handlers_more}.py
-tests/e2e/pipelex/cli/test_migrate_commands.py NEW class: the doctor row and the agent envelope, both through the real binary
-.drift/acks/{config-docs,cli-docs}.toml both reviewed and acked
-```
-
-Mutation-tested: dropping the block from the raise, un-parenting the error class, dropping the migration prose from the message, making a fresh file "repair" an out-of-date one, dropping the reserved-`[meta]` strip, letting the scan inherit the whole walk, giving every finding one remedy again, removing the doctor's scan guard, and widening that guard to a blanket `except` — each turned exactly the intended tests red.
-
-Also corrected in passing: `TestNoValueFromAUsersFileIsEverRendered`'s docstring still said the third rendering channel would arrive "when `report_validation_error` starts reporting the real plan". Milestone 8 landed it, as its own class, for the reason that class's docstring gives.
-
-## Milestone 10 — the `doctor` pending-migrations row and `--fix` (DONE, on `feature/Migrator-3b`)
-
-The last item of the phase body's first half, and the one Milestone 7 made load-bearing: **a machine consumer never learns of a pending migration from a boot.** A configuration the ledger can explain boots with a warning, and `pipelex-agent` cuts logging off process-wide as its first act, so no warning reaches it. Asking was the only channel left, and until now there was nothing to ask.
-
-### What was built
-
-**`check_pending_migrations()` in `doctor_cmd.py`** — a `PendingMigrationsCheck(finding, message, migratable_files, attention_files)` over a new `PendingMigrationsFinding`: `UP_TO_DATE`, `PENDING`, `NEEDS_ATTENTION`, `UNAVAILABLE`. It is **`pipelex migrate`'s own dry run**, not an approximation of it — `migrate_config_directories(config_dirs=config_directories_to_migrate(), dry_run=True)`, the same call the command makes.
-
-Both renderers carry it: a **Configuration Migrations** section in the human report (placed beside Configuration Files, since it is about the same files), and `checks.pending_migrations` on the agent envelope with the finding and the two file lists. `--fix` offers to run the migration.
-
-### The four decisions, each recorded in the contract
-
-- **The row takes no directory.** Every other check reports on a *file* and is scoped to the directory the doctor was pointed at, `--global` included. This one reports on a *command*, and `pipelex migrate` has no `--global`. A row scoped narrower would name a command that then rewrites a file the row never mentioned — the one surprise a tool that writes to a user's files must not spring. Over-reporting is legible instead: every file is named with its full path. Pinned twice, at unit level (`assert_called_once_with()`, no arguments) and against `--global` on the agent doctor.
-- **`UNAVAILABLE` is its own member, and it is not healthy.** A packaging problem of ours must not be reported as a finding about the user's files, and *not knowing* is not the same as *being up to date*.
-- **`PENDING` and `NEEDS_ATTENTION` are separate because only one has a command behind it.** Offering to migrate a file the run would not change is a prompt whose honest outcome is "nothing was written" — the same shape as the reset `--fix` used to offer for an out-of-date `telemetry.toml`. So `is_repaired_by_migrating` is true for `PENDING` alone, and that is what gates fix mode.
-- **A run is usually both at once**, so the row reports **both file lists** and both channels name both moves. The first draft keyed the second move off the *finding* and therefore said nothing about the attention files whenever anything was also pending; found by running the real binary against a planted machine, not by a test.
-
-### `--fix` reaches the command's write pass, and deliberately not the command
-
-`migrate_cmd.py` grew `apply_pending_migrations(config_dirs=...)` — the second of the command's two passes, with no exit code attached. Both callers use it. Calling `migrate_cmd(yes=True)` from the doctor was the obvious move and is wrong: it exits the process when the run leaves something for a person, which would cut off the doctor's remaining fixes, its remaining rows and its own exit code. The doctor's row *is* the dry run, so the two-pass shape is preserved — dry run, ask, write — with the doctor asking the question in the middle.
-
-A `[dim]Re-run pipelex doctor[/dim]` line follows a successful migration, because every row below it was measured before the migration ran.
-
-### One redundancy retired in the same pass
-
-With a machine-wide row in place, the telemetry row's own `pipelex migrate` advice became the same instruction twice at two scopes. It is suppressed when the machine-wide row is reporting a pending run — **and only then**, which is not decoration: a telemetry file whose only pending work is *blocked* leaves the surface-scoped probe saying `out_of_date` while the machine-wide row has nothing to write, and there the telemetry bullet is the only thing that speaks. Both halves are tested.
-
-### Files touched in milestone 10
-
-```
-pipelex/cli/commands/migrate_cmd.py apply_pending_migrations — the write pass, without the exit
-pipelex/cli/commands/doctor_cmd.py PendingMigrationsFinding / PendingMigrationsCheck; the row; the fix
-pipelex/cli/agent_cli/commands/doctor_cmd.py checks.pending_migrations; _pending_migrations_actions; the markdown section
-docs/migration-ledger.md NEW § "The health report"
-docs/tools/cli/migrate.md the doctor row as the third way here
-docs/tools/cli/agent-cli.md the row is the only channel a machine has
-pipelex/cli/agent_cli/CLAUDE.md the doctor row names checks.pending_migrations
-CHANGELOG.md one Added bullet
-tests/unit/pipelex/cli/test_doctor_pending_migrations.py NEW
-tests/unit/pipelex/cli/{test_doctor_cmd,test_doctor_display_report,test_doctor_fix_mode,test_agent_doctor_cmd,test_format_doctor_markdown}.py
-tests/e2e/pipelex/cli/test_migrate_commands.py NEW class: the row and `--fix`, through the real binaries
-.drift/acks/cli-docs.toml reviewed and acked
-```
-
-⚠ **Every doctor test that runs a whole doctor now has to stub this check**, and the reason is worth carrying: unlike every other check it takes no directory, so it walks the *developer's* `~/.pipelex/` and the repo's own `.pipelex/`. Four existing test modules gained the stub. A test that forgets it does not fail — it silently depends on whose laptop the suite is running on.
-
-⚠ **And the agent envelope's shape has a fixture nobody thinks of.** `test_format_doctor_markdown.py` builds the whole result dict by hand, so a new `checks` key makes its renderer raise `KeyError` — nine tests, in a module no part of `agent-check` runs and that a targeted per-area run does not obviously reach. Only the full `make agent-test` caught it. Adding a key to that envelope means editing two `ClassVar` dicts there.
-
-Mutation-tested: scoping the row to one directory, reporting a scan failure as up to date, widening that catch to a blanket `except`, making the row write, dropping the migration from what `--fix` can do, offering it for a file it would not repair, dropping the attention files when something is also pending, repeating the telemetry remedy under the machine-wide row, leaving the row out of either verdict, and making the shared write pass a dry run — each turned exactly the intended tests red.
-
-## Where this session paused
-
-**Paused with PR [#1114](https://github.com/Pipelex/pipelex/pull/1114) open, reviewed and green, awaiting Louis' merge.** Milestones 5–10 were pushed and the PR opened after milestone 10; two bot review rounds (Codex, Cubic) followed and were executed on the branch as *"answer the PR #1114 bot review"* (`3fd7f82cb`) and *"answer the second PR #1114 bot review"* (`d74b899d4`, the head). What each round fixed is in those two commit messages and at the top of [`migrator-pr-1114-review-followups.md`](./migrator-pr-1114-review-followups.md); every thread was answered on the PR (fixed / false positive with the reason / deferred), and the six left open are exactly the deferrals §1–§5 of that note. Every required check is green on the head; `origin/dev` has not moved since the branch base `490d189df`, so the squash is clean. The merge button reads *blocked* only because `dev`'s ruleset requires thread resolution — the same state #1112 merged from, through the team bypass. Working tree clean at the head.
-
-**At the milestone-10 pause, before the PR:** `make agent-check` with everything staged (so `drift-check` is a real green), `make docs-check`, and the full `make agent-test` were all green on the exact tree that was committed.
-
-Only `cli-docs` came open at milestone 10 — no configuration model moved, so `config-docs` stayed shut. Its ack rationale records what was reviewed and what was deliberately left alone (`docs/features/cli.md`, `agent-cli.md`'s command table, `update.md`'s deck claim, and `index.md`, which has no doctor entry at all).
-
-Both drift contracts came open at milestone 9 and were acked with the reviews written into the ack rationales: `config-docs` (which produced the telemetry page's new "When telemetry.toml will not load" section) and `cli-docs` (which produced the finding on the agent doctor's documented envelope, the `agent-cli.md` note that the telemetry error carries the block too, and the honest `init.md` warning that init replaces a file wholesale).
-
-At milestone 8 the same two were acked: `config-docs` produced the `docs/configuration/index.md` fix the *previous* ack had explicitly parked for that milestone, and `cli-docs` produced the agent-CLI error-envelope documentation and the `migrate.md` agent paragraph.
-
-### Milestone 7's own ack record, kept
-
-Three contracts were acked at milestone 7: `hub-layering-convention`, `cli-docs` and `config-docs`.
-
-## What is actually left
-
-Measured against the charter's own **Done when** list ([§ S6](../../../wip/migrator-3/sequencing.md#s6--migrator-phase-3)), verified against the tree rather than against this file:
-
-| Done when | State |
-|---|---|
-| The golden format is final for S7 (format bucket, dotted-key rename, `umig`, backup/replace in the contract) | ✅ Milestones 1 and 3 |
-| R9 is built | ✅ Milestone 2 |
-| The walk stops by name on a file two surfaces' globs both claim | ✅ Behaviour and test landed in Phase 2; the #1111 note-5 half landed in Milestone 5 (`TestTheWalkIsNotRecursive`, both halves, real specimen) |
-| `pipelex migrate --help` / `pipelex-agent migrate --help`, the bootstrap test, both end-to-end tests | ✅ Milestone 5 — and the end-to-end pair runs against the **real** `telemetry-config@2` entry rather than current-shape fixtures, which is stronger than the charter asked for |
-| `release/SKILL.md` step 3b; `.claude/skills/add-migration/` | ❌ Neither exists |
-
-The phase body the charter lists under **Do**, in the order the next session should take it:
-
-1. ~~**The downgrade diagnosis**~~ — done, see Milestone 6.
-2. ~~**Boot tolerance**~~ — done, see Milestone 7.
-3. ~~**`report_validation_error` on the real plan**~~ — done, see Milestone 8. The third channel of the rendering-rule test landed with it, as a new e2e class (`TestABootFailureCarriesThePendingMigration`) rather than inside `TestNoValueFromAUsersFileIsEverRendered`, because the reachable specimen is different: boot tolerance means a file the ledger *can* explain never reaches the error surface at all, so the channel is exercised by a key no entry explains, whose value is the planted secret.
-4. ~~**The two telemetry remedies retired**~~ — done, see Milestone 9. There were four, and the worst of them was `doctor --fix`'s offer to reset a migratable file. The third surface, `pipelex_service_config.py`, was deliberately left alone — it has no wrong remedy to retire, and closing its gap costs the same models/loader split.
-5. ~~**`doctor`: the pending-migrations row and `--fix`**~~ — done, see Milestone 10. Both halves: a row that is `pipelex migrate`'s own dry run across every surface, and fix mode reaching the command's write pass (not the command, which exits). The row deliberately takes no directory — it answers for a command that has no `--global`.
-6. ~~**The `config-docs` drift contract's `review` list**~~ — done, see Milestone 11.
-7. ~~**The skills**~~ — done, see Milestone 12.
-8. ~~**`docs/specs/command-surface-map.md` rows**~~ — done, see Milestone 13 (workspace-root repo, uncommitted there).
-9. ~~**Publish the contract**~~ — done, see Milestone 14.
-
-~~Then the part-3 PR to `dev` from `feature/Migrator-3c`~~ — opened as [#1115](https://github.com/Pipelex/pipelex/pull/1115). Checkpoint C follows its merge.
-
-### Part 3 — Milestones 11 to 14 (uncommitted on `feature/Migrator-3c`)
-
-**Milestone 11 — the `config-docs` drift contract's review list (item 6).** `drift.toml`'s `config-docs` contract now reviews three kinds of target, not one: `docs/configuration/**/*.md` as before, plus `pipelex/migration/ledgers/` and the two modules holding R8's four validator sites (`pipelex/system/configuration/configs.py`, `pipelex/cogt/config_cogt.py`). The `description` names the four qualnames, because `drift plan` prints the description and the review paths and prints no comments — a site named only in a TOML comment reaches nobody at review time. **Two rulings taken here.** *The goldens are deliberately NOT in the review list*, against the tracker's own parenthetical: `docs/contribute/drift-contracts.md` bars generated artifacts from a review list, `make umig` generates them, and their staleness is already the derived check `check-migration-schemas` — which is the tier the drift doc says such a relationship belongs to. `plan.md` says "the ledger files", and the ledgers are the hand-authored half. *No verify command was added* — `check-ledger` and `check-migration-schemas` already gate `make check` and CI, so re-running them under the ack would add the unstaged-file hard error without adding a guarantee (the same reasoning the `hub-layering-convention` contract records). The contract was reviewed and acked for real: `make cl` and `make cmig` both green, no trigger file moved, nothing owed. Two docs moved with it — `docs/migration-ledger.md` now says where the "author's responsibility" for validator-expressed narrowing is *declared*, and `docs/contribute/drift-contracts.md` gained a paragraph saying a review target does not have to be prose, with the bar (a person reads and judges it; never something a command regenerates).
-
-**Milestone 12 — the two skills (item 7).** `.claude/skills/add-migration/SKILL.md` is written. Its spine is one rule — *derive the entry from the gate's refusal, never from memory* — then: read what `cl`/`cmig` say (with a table mapping the issue kinds that mean **an entry is owed** to what it owes, explicitly not the whole kind list), decide `safe` vs `unsafe`, write the two edits to the ledger, handle the reserved-path rule, `make umig` and read its diff, prove with `cl`/`cmig`, add the `**Migration:**` changelog bullet. It also states what it must never do (hand-edit a golden, widen a check, reuse a retired name, put a value in an operation) and carries the `pre_history` special case. `/release` gained **step 3b** between the quality checks and the branch cut: `make check-migration-schemas` blocks the release, a failure routes to `add-migration`, and on a pass it diffs `pipelex/migration/ledgers/` against `origin/main` to confirm a `**Migration:**` bullet and a correct `introduced_in` for every new breaking entry — plus the note that a breaking entry makes the release a minor bump. The Files-touched list and the Important-details list were updated to match.
-
-**Milestone 13 — `docs/specs/command-surface-map.md` (item 8), in the workspace-root repo.** A new `## Configuration migration surface` section rather than rows in the master table, following the precedent the codegen family set — the master table is indexed by hop in the *validate* chain and migrate has no hook, no `mthds-agent` command and no HTTP route. The section carries a chain block for `[M] pipelex migrate`, `[Ma] pipelex-agent migrate` and `[Md] pipelex doctor --fix`, a two-row table with the same columns as the master one, the `needs_attention`-is-the-verdict sentence, the no-user-values rule, and an `<!-- unverified -->` marker explaining why this family is not in `conformance/` (it acts on the invoking machine's own configuration directories). One correction the spec now states rather than overclaiming: `mthds-agent migrate` is **not** a registered command, but under the pipelex runner it still reaches `pipelex-agent migrate` through hop 3's unknown-command passthrough, and under `--runner api` it is an `ArgumentError` — a fallback, not a surface. The front matter's `sources:` gained both command modules. `make check-spec-links` in `conformance/` is **green** (the CLAUDE.md note about 35 issues is stale — the pair is passing today). ⚠ **This change is uncommitted in the workspace-root repo on branch `feature/Migrator`**, a different repo from this branch.
-
-**Milestone 14 — publishing the contract (item 9).** `docs/migration-ledger.md` lost its Status banner, `mkdocs.yml` lost the `migration-ledger.md` line from `not_in_nav` and the comment block explaining when to move it, and the page gained a `Migration Ledger` row in the nav's Project section beside `Drift Contracts`. A trap worth recording: `mkdocs.yml` contains **two** structures that look like a nav — the real `nav:` at the bottom, and the `llmstxt-md` plugin's `sections:` map several hundred lines above it, whose entries have the same `- path.md: "Title"` shape. The row was added to both (the llms.txt listing wants it too), and `make docs-check` is what caught that the first one was not the nav. Docs build clean under `--strict`.
-
-### Milestone 15 — the §2 ruling, built
-
-**The ruling.** *A remedy is named only where it would write.* The presence of a `migration` block means the migration engine has something to say about these files — **not** that the remedy would rewrite them. What separates the two is a field, not a sentence: `MigrationErrorBlock` carries **`would_write: bool`** (`any(plan.did_change for plan in plans)`), and every surface that used to name `pipelex migrate` on the block's mere presence now branches on it, pointing at the **dry run** where nothing would be written, because the dry run is what actually carries the answer. This is Milestone 10's ruling one step along — *a fix is offered only where a command would actually write* — and Milestone 9's — *a probe's verdict is a field its callers branch on, never a sentence they search*. The two flags are independent and never both false: a file with nothing to write and nothing for a person is clean, and clean files are not in `plans`.
-
-**Where it landed — five surfaces, not the four the follow-up named.** (1) `pipelex/base_exceptions.py` — the field with its docstring. (2) `pipelex/core/validation.py` — `_pending_migration` computes it, and `_migration_prose` swaps both its opening and its closing sentence on it. When `would_write` is false the "what it would carry forward" sentence is absent by construction, since `carried` reads `plan.steps` and a plan with steps changes. (3) `pipelex/cli/commands/doctor_cmd.py` — `_telemetry_is_out_of_date_or_wrong` branches on `own_plan.did_change` rather than `not own_plan.is_clean`, so a file the migration would only report on falls to `INVALID` (which routes to Manual Fixes and is what `--fix` declines to offer a command for), and the `INVALID` message gains the `--dry-run` pointer **only when a scan actually found something** — a genuinely wrong file gets no pointer, which is what keeps `test_check_telemetry_config_invalid_new_format_names_the_field`'s `MIGRATE_COMMAND not in message` true. (4) `pipelex/cli/agent_cli/commands/agent_output.py` — the hint is now three-way and tells the agent to read `migration.would_write` off the payload it already holds rather than to run a command to learn it. (5) **`pipelex/cli/error_handlers.py`, which the follow-up did not name** — the human telemetry handler had exactly the same `if exc.migration is not None:` shape and is the surface a person actually reads; it now has three arms, and the middle one keeps "never offer `init telemetry`" while sending the reader to the dry run.
-
-**The docs that would otherwise have disagreed with the CLI.** `docs/migration-ledger.md` — the structured-block bullet lists the field, a new blockquote states the rule, the three per-surface bullets under "Every surface reports it the same way" are rewritten three-way, and the `doctor`-row bullet now says `out_of_date` means the plan would rewrite that file. `docs/tools/cli/agent-cli.md` and `pipelex/cli/agent_cli/CLAUDE.md` — both said presence was "the whole signal" and sent an agent to `migrate --yes` from it. The `cli-docs` drift contract opened on the three `pipelex/cli/**` edits and was reviewed and acked; `docs/tools/cli/migrate.md` needed nothing, since it describes the command and the `pending_migrations` row and neither moved.
-
-**Changelog.** Folded into the two existing `[Unreleased]` bullets rather than added as a new one — the block has never shipped without `would_write`, so a bullet describing a fix to it would be describing a fix to something no user has seen.
-
-**Tests, written first and red before the code.** `TestARemedyIsNamedOnlyWhereItWouldWrite` in `tests/unit/pipelex/core/test_validation_report.py` (both sides plus the never-both-false invariant on a specimen that is both at once), `TestTheRemedyIsNamedOnlyWhereItWouldWrite` in `tests/unit/pipelex/system/telemetry/test_telemetry_stale_remedy.py` (the same pair through the real loader), `TestTheTelemetryRowNamesMigrateOnlyWhereItWouldWrite` in `tests/unit/pipelex/cli/test_doctor_config_checks.py` (including the regression guard that a genuinely stale file is *still* `out_of_date`), and the would-not-write arm of the human handler in `test_error_handlers_more.py`.
-
-### Milestone 16 — §4, the doctor's unescaped Rich fields
-
-The last parked #1114 item. `display_health_report` printed nearly every dynamic value straight through Rich's markup parser: a `[dev]` path segment was silently dropped and an unbalanced `[/b]` raised `MarkupError` and took the whole report down — and the fields most likely to carry brackets are the ones quoting what went wrong, so the report failed hardest exactly when it mattered. One pass now escapes the four row messages (`config_message` embeds `report_validation_error(...).message`, which quotes the user's own keys), every path off `ConfigLocationInfo`, backend names, environment-variable names, deck filenames, the first line of a backend file's error, and `str(exc)` at each site the `--fix` pass reports one. Two things deliberately stay raw: `status_rich_label(status)`, which returns markup on purpose, and the module constant `MIGRATE_COMMAND`.
-
-**One residual, recorded rather than half-fixed.** `console.print(error_msg)` prints `BackendCredentialsErrorMsgFactory.make_comprehensive_error_msg(...)`, a plain-string builder that already hardcodes a Rich `\[` in one of its lines — escaping it at the print site would render that as a literal backslash. It is the same layer question §4 already ruled on for `stale_configuration_warning`: a builder whose consumers include non-Rich sinks cannot escape for one of them.
-
-`TestEveryDynamicFieldSurvivesRichMarkup` covers it with the recorded-console pattern, and each assertion was mutation-tested — the escape reverted, the test watched go red, the escape restored.
-
-### Deferred from the #1114 review
-
-The items the review-bot pass on PR #1114 raised and this branch parked rather than fixed are in [`migrator-pr-1114-review-followups.md`](./migrator-pr-1114-review-followups.md), each verified against the code and each with its trigger, and their owners are recorded in the charter's [S6 Session 4](../../../wip/migrator-3/sequencing.md#s6-session-4--milestones-6-to-10-pr-1114-and-the-two-review-rounds):
-
-- **§1, the out-of-walk warning text** → S7's final join, because the reshape's `pipelex-config@2` is the first `pipelex-config` entry and is what makes it live (no consumer in the workspace passes `config_dir=` outside tests, so it is an embedder wording fix, not a blocker).
-- **§2, what a `migration` block's *presence* means for an unexplained-only plan** (agent hint, `_migration_prose`, the doctor's telemetry row, and the contract's own sentence — one ruling over four surfaces) → **part 3**, as a wording ruling the session may take on its own authority; not blocking S7, but S7's first machine is where a real user first meets it.
-- **§3, the service loader warning before logging exists** (`pipelex init`, `pipelex plugins`) → named trigger: the first `pipelex-service-config` entry; the `warnings.warn` shape is on record.
-- **§4, the doctor's remaining unescaped Rich fields** → part 3 if there is room, else any session; the log-channel half is deliberately not owed anywhere.
-- **§5, a below-floor file that still validates boots silently** → named trigger: the first squash that moves a floor; documented design, and the doctor row already reports such a file.
-
-### Small items still owed, folded in from the #1113 review
-
-- ~~**`MigrationLedger.entry_for_version` still has no caller.**~~ Answered by Milestone 6: the downgrade diagnosis looks a blocked entry's own operations up from the `to_schema_version` its `BlockedEntry` carries, which is the first real caller. It stays.
-- **`is_remappable` has no direct unit test** and gates two accountings; and §1 of `pr-1113-review-notes.md` (credit a union by its string branches alone and say so, or ask the non-string branches — about four lines on `_records_enumerated_members`) is still undecided. Cheap, and it belongs with whoever next touches `coverage.py`.
-- **The rescue-copy race** (`pr-1113-review-notes.md` §3): a third run's prune can take the `.bak.` a rescue is about to rename. The commands now make concurrent runs producible, so this is decidable — revisit as an age-sparing prune, not a lock.
-- Deliberately past S7's freeze, with named triggers, in `pr-1113-review-notes.md` and `migrator-write-scope-and-rename-fidelity.md`: per-member bounds in the golden, the `safe`-entry sibling, the tomlkit raw-storage staleness pass, rename fidelity (§2), the taken-backup-name report, and the residual. §1 of the write-scope note is **closed** by Milestone 5.
-
-✅ **Part 3 is done, over two sessions.** Session 1 built items 6 through 9 (Milestones 11–14), committed as *"the review obligation, the two skills, and publishing the contract"*. Session 2 built the two parked #1114 review items routed here — Milestone 15 (§2) and Milestone 16 (§4) — committed as *"a remedy is named only where it would write, and the doctor stops eating brackets"*. Both are pushed as [#1115](https://github.com/Pipelex/pipelex/pull/1115), and a third, shorter session answered its bot review — the last unescaped doctor line, the closing sentence of the migration paragraph, the `add-migration` closing rule, the `/release` ledger-diff baseline, and the two test modules folded back to one class each — committed as *"answer the PR #1115 review"* (head `b1f3102ae`). One item is deferred, in [`migrator-pr-1115-review-followups.md`](./migrator-pr-1115-review-followups.md): whether the one-TestClass-per-module rule holds against the narrative multi-class layout that predates this PR in two of the touched modules and dozens more — a repo-wide decision, not this branch's. Nothing is left on this branch; ⏸ C waits on the merge.
-
-Milestone 7's inherited finding — the dead `except ValidationError` around `setup_config` — **is fixed**, at both of that function's config-side callers, and the same defect turned out to exist in the doctor.
-
-## Rulings this session took on its own authority
-
-The charter says the format bucket is to be "decided and recorded here" — it does not route it to Louis, unlike R1–R9. The three decisions above were taken on that basis, each with its reasoning written into `docs/migration-ledger.md` rather than only here. **R9 itself is already ruled** (option 2, 2026-08-16) and is a build task, not a decision.
-
-Milestone 3 took the policy calls the charter routed here by name — preserve dotted-ness rather than refuse it; follow a symlink rather than refuse or clobber it; never overwrite or remove a copy this run did not make; take a copy the run cannot vouch for out of the pruning rotation by name; carry the mode and not the ownership or the extended attributes; `fsync` the directory once, after the backup and before the replace. Each is written into `docs/migration-ledger.md` rather than only here.
-
-Milestone 5 took two on the same basis, both written into `docs/migration-ledger.md`: **a migration's write scope is the resolved target of any file the walk claims** (the `.mthds` fix loop's scope guard is not copied, because a configuration directory is where a user keeps links to files they own); and **`min_supported_schema_version` gets a reader rather than a softened sentence** — a file declaring a version below its ledger's floor is refused by name, reading the reserved key exactly as tolerantly as boot strips it.
-
-Milestone 2 took three further rulings on that same basis, each written into `docs/migration-ledger.md` rather than only here: the coverage gate now demands a declaration from an `unsafe` entry rather than accepting the word (without it R9 is half-built); convergence exempts a `VALUE_DOMAIN_NARROWED` report and nothing else (without it R9's ruled shape cannot be written at all); and forward tracing stops at `unsafe` entries (a rehearsal may guess, an application may not). The third is the one that leaves a named open question, listed above.
-
-Milestone 9 took three on that basis, all written into `docs/migration-ledger.md`: **writing a fresh file repairs exactly one finding, a missing one** — every other unhealthy state holds the user's own settings, so an out-of-date file gets the migration and a broken one gets a person; **a probe's verdict is a field its callers branch on, never a sentence they search** — the doctor's own `--fix` had made the opposite choice and would have lost its repair path to a reword; and **a loader must be able to reach the migration package without reaching the registry**, which is what put the telemetry models and the telemetry loader in two modules. The scope call — leaving `pipelex_service_config.py` alone — is recorded in Milestone 9 above rather than in the contract, because it is a decision about this branch rather than about the ledger.
-
-Milestone 10 took four on that basis, all written into `docs/migration-ledger.md`'s new § "The health report": **a row that reports on a command is scoped by that command, not by the flag the report was invoked with** — `pipelex migrate` has no `--global`, so a narrower row would name a command that rewrites a file it never mentioned; **not knowing is a finding of its own and is never health** — `UNAVAILABLE` sits beside the three verdicts rather than folding into `UP_TO_DATE`; **a fix is offered only where a command would actually write** — a prompt whose honest outcome is "nothing was written" is the same defect as Milestone 9's reset, one step along; and **a caller that has already asked its own question reaches the write pass, never the command** — a command owns the process's exit code, and a caller with rows still to render cannot let it.
-
-Milestone 8 took four, each written into `docs/migration-ledger.md` rather than only here: **the scan is scoped by the surface the caller names**, so a `.mthds` bundle or a backend file pays for no walk and is offered no remedy it has none for; **the block carries `MigrationPlan` itself** rather than a projection of it, which is what forced `MigrationSafety` out of `ledger.py` into `safety.py` — a second shape would have drifted from the commands' own; **scoping narrows the answer and never the registry**, because ownership is decided across all surfaces and a one-surface registry hands `pipelex_service.toml` to the wrong ledger; and **a failure inside the scan declines quietly, but only on `(MigrationError, OSError)`** — an applier bug is not a field condition and must keep surfacing.
diff --git a/wip/migrator/migrator-pr-1114-review-followups.md b/wip/migrator/migrator-pr-1114-review-followups.md
deleted file mode 100644
index 1449decb1..000000000
--- a/wip/migrator/migrator-pr-1114-review-followups.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# Migrator Phase 3, part 2 — items deferred from the PR #1114 review
-
-What the review-bot pass on [PR #1114](https://github.com/Pipelex/pipelex/pull/1114) surfaced and this branch did **not** fix, with why. Each was verified against the code before being parked; none is a live user-facing defect today. The confirmed important items of the first round — `changed_plans` blind to a partly-applied entry, the boot-tolerance warning logged before logging exists, the retry ignoring the schema-version floor, the diagnosis scanning the wrong directories under `--global`, and the doctor's unescaped Rich fields — were fixed on the branch. The second round fixed three more: the doctor's telemetry row answering for the whole directory rather than the file it read, the `pipelex migrate` cancel path exiting 0 with something left for a person, and the summary panel reporting a green "Migrated" over a file whose write could not be confirmed.
-
-## 1. The stale warning names `pipelex migrate` for a directory the command never walks
-
-**Reporters:** Codex (`config_loader.py`, `_config_the_ledger_can_explain`), Cubic (`migration/run.py`, `config_directories_to_migrate`) — [thread](https://github.com/Pipelex/pipelex/pull/1114#discussion_r3792653243), [thread](https://github.com/Pipelex/pipelex/pull/1114#discussion_r3792679325).
-
-An embedder's `Pipelex.make(config_dir=…)` outside `~/.pipelex/` and the project `.pipelex/` is read by boot tolerance (the retry replays exactly the files the loader merged) but not by `pipelex migrate`, whose walk is fixed to the two directories by design (`docs/migration-ledger.md` → "Where the ledgers are"). So a stale file there would boot with a warning whose closing sentence — "run `pipelex migrate` to bring the files up to date" — names a command that will not touch it, on every boot.
-
-**Why deferred:** unreachable today. The `pipelex-config` ledger ships no entry, so its retry never fires; the telemetry loader takes no `config_dir`; the service configuration is loaded from the global directory, which is in the walk. It goes live with the first `pipelex-config` entry. The docs now say plainly that such a directory is the embedder's to update; the warning text does not yet.
-
-**Recommendation:** when the first `pipelex-config` entry ships, have `stale_configuration_warning` take the walked directories and, for a stale file outside them, say "this file is outside `pipelex migrate`'s reach — update it where it lives" instead of naming the command. Do **not** add `pipelex migrate --config-dir`: `check_pending_migrations` deliberately takes no directory so the doctor row can never name a command that then rewrites a file it did not mention. This sits beside `migrator-write-scope-and-rename-fidelity.md`, which parks the sibling question of writing outside the walk.
-
-## 2. What the presence of a `migration` block means when the plan is unexplained-only — **RESOLVED on `feature/Migrator-3c`**
-
-**Reporter:** Cubic (`agent_output.py`, the `TelemetryConfigValidationError` hint) — [thread](https://github.com/Pipelex/pipelex/pull/1114#discussion_r3792679317).
-
-`_pending_migration` attaches the block whenever any plan is not clean, and a plan carrying only `unexplained` paths is not clean. So a misspelled key in `telemetry.toml` — `extra="forbid"` refuses it, the diagnosis reports it as unexplained, the retry does not repair it — produces a `migration` block with `needs_attention: true` and empty `steps`. The agent hint then says "the configuration is out of date: run `migrate --dry-run`, then `migrate --yes`", and `--yes` writes nothing. The mechanism is correct; the wording over-claims.
-
-**Why deferred:** the hint faithfully implements a documented contract — `docs/tools/cli/agent-cli.md` ("Its presence is the whole signal: the configuration is *out of date* rather than wrong") and `docs/migration-ledger.md` → "Reporting a stale configuration on a validation error" say the same — and `_migration_prose` ends the human message with the same unconditional "run `pipelex migrate`". Rewording the hint alone would leave the CLI and its spec disagreeing. This is one ruling over four surfaces: what "presence" means, or whether the block should carry (or the hint should point at) "is there anything the command would write" as distinct from "is there anything a person must look at". The `--dry-run` the hint sends the agent to does print the unexplained note ("either the name is a typo, or this file was written by a newer pipelex"), so the wasted round trip is the whole harm.
-
-The doctor's telemetry row is a further surface of the same ruling ([thread](https://github.com/Pipelex/pipelex/pull/1114#discussion_r3792785607), which reported the sibling-file bug that was fixed): `_telemetry_is_out_of_date_or_wrong` read the plan of the file the row is about, but branched on `not plan.is_clean`, so an unexplained-only file — a typo under `extra="forbid"` — read `out_of_date`, named `pipelex migrate` (which writes nothing), and suppressed the manual-fixes section.
-
-**The ruling, taken and built in part 3:** *a remedy is named only where it would write.* `MigrationErrorBlock` carries a `would_write: bool` (`any(plan.did_change for plan in plans)`), presence keeps meaning only *the migration history has something to say about these files*, and every surface branches on the field: the agent hint, the human handler in `error_handlers.py` (a fifth surface, which this section did not name and which had the identical shape), `_migration_prose`'s opening and closing sentences, and the doctor row, whose `out_of_date` now requires `own_plan.did_change` so an unexplained-only file falls to `invalid` and reaches Manual Fixes with the dry run's pointer. The three docs that stated the old contract moved with it. See `wip/migrator/migrator-phase3-progress.md` → Milestone 15.
-
-## 3. The service-configuration loader still warns directly, and two commands load it before logging exists
-
-**Surfaced by:** the fix for Cubic's `runtime_hub.py` finding — [thread](https://github.com/Pipelex/pipelex/pull/1114#discussion_r3792679304).
-
-The main configuration's warning is now parked on the loader and emitted after `log.configure` (the main configuration *is* the log configuration, so nothing else was possible). The telemetry and service loaders kept their direct `log.warning`, which is safe on every path that exists today for telemetry (loaded inside `setup()`) — but `load_pipelex_service_config_if_exists` is also called from `pipelex init` (`cli/commands/init/command.py`) and its warning would raise `LogConfig is not set` there once the `pipelex-service-config` ledger gains an entry. `pipelex plugins` calls `load_config_validated` without configuring logging and would now silently drop the parked warning rather than crash.
-
-**Recommendation:** when either ledger gains an entry, a `StaleConfigurationWarning(UserWarning)` raised through `warnings.warn` on the `RemoteConfigStaleWarning` pattern (`pipelex_service/exceptions.py`, captured by the agent CLI factory) covers all three loaders and every entry point uniformly, at the cost of a second presentation channel. Not worth building against an empty ledger.
-
-## 4. Pre-existing unescaped Rich fields in the doctor report — **RESOLVED on `feature/Migrator-3c`**
-
-**Surfaced by:** Cubic's two escape findings on `doctor_cmd.py` — [thread](https://github.com/Pipelex/pipelex/pull/1114#discussion_r3792679312), [thread](https://github.com/Pipelex/pipelex/pull/1114#discussion_r3792679315).
-
-The telemetry row and the pending-migrations row escaped what they printed (PR #1114 is what put user-file content into the telemetry message); everything else in `display_health_report` interpolated raw. Rich reads `[...]` in a printed string as markup, so a path segment like `[dev]` was silently dropped and a `[/x]` sequence raised `MarkupError` and took the whole report down — worst exactly when the report matters most, since the fields carrying brackets are the ones quoting what went wrong.
-
-**Done in part 3.** One pass over the whole function and the fix-mode and Manual-Fixes blocks it owns: the four row messages (`config_message`, which embeds `report_validation_error(...).message`, plus `backends_message`, `models_message`, `deck_message`), every path off `ConfigLocationInfo`, backend names, environment-variable names, deck filenames, the first line of a backend file's error, and the `str(exc)` of every caught exception the fix mode reports. `status_rich_label(status)` is deliberately **not** escaped — it returns markup on purpose — and neither are the module constant `MIGRATE_COMMAND` nor an `int`. `TestEveryDynamicFieldSurvivesRichMarkup` in `test_doctor_display_report.py` covers it with the recorded-console pattern, using a bracketed directory and an unbalanced `[/b]`; each assertion was mutation-tested by reverting its escape and watching it go red.
-
-**One residual, and it is at the builder layer rather than here.** `console.print(error_msg)` prints `BackendCredentialsErrorMsgFactory.make_comprehensive_error_msg(...)`, which already hardcodes a Rich `\[` in one line — so escaping it at the print site would render that as a literal backslash. It carries dynamic backend names, and its correct fix is the same shape as the `stale_configuration_warning` one this section already ruled the wrong layer: a plain-string builder whose consumers include non-Rich sinks cannot escape for one of them. Left alone deliberately.
-
-Cubic raised the escaping again in the second round for `config_message` specifically (this PR routes `report_validation_error(...).message` into it) and, in the same run, asked for the paths in `stale_configuration_warning` (`config_surface.py`) to be escaped. The second one stays refused, on the layer argument: that function is a plain-string builder whose consumers are `log.warning` — which feeds a `RichHandler(markup=True)` under `is_markup_enabled` *and* a plain `StreamHandler` in `POOR` mode — and two Rich render sites that already `escape()`; a `\[`-escaped string is corrupt in the poor sink, and no builder in the tree escapes (`core/validation.py` builds the identical list unescaped). The residual is a property of the log channel — every logged path or exception text across the codebase is interpreted as markup — and its one correct home, if it is ever wanted, is the rich branch of the log dispatch, not the builders.
-
-## 5. A file declaring a version below the floor still boots when its body validates
-
-**Reporter:** Cubic (`config_loader.py`, `load_config_validated`, P1) — [thread](https://github.com/Pipelex/pipelex/pull/1114#discussion_r3792785605).
-
-The trace is accurate: `load_config` strips `[meta]` before validation, `load_config_validated` returns on the first clean `model_validate` without consulting a ledger, and `version_declared_below_the_floor` runs only inside `replay_surface_files_in_memory` — the failure path. So a file declaring a schema version below `min_supported_schema_version` whose body happens to match the current model boots silently. The same holds for the telemetry and service-configuration loaders; the bot reported one instance of a uniform structure.
-
-**Why deferred:** it is the documented design, not an oversight, and the proposed fix breaks two invariants at once. `docs/migration-ledger.md` → "The healthy path is untouched" says a current configuration never reads a ledger, never re-parses a document, never imports the migration engine — checking the floor *before* validation means tomlkit-parsing every merged path plus a ledger load on every healthy boot, because the floor is per file and the merged dict cannot answer it. The floor's stated purpose is that `pipelex migrate` never reports a squashed-over file clean; the retry declines through the same predicate so boot never carries forward a file the command then refuses. Refusing at boot would turn a working configuration into a hard failure with no in-product remedy, since `migrate` refuses such a file too ("migrate it with a release that still carries the entries, or re-create the file"). And it is dormant: every shipped ledger has `min_supported_schema_version = 0`, and `declared_schema_version` returns `None` for anything that is not a plain non-bool integer. The channel that does report it exists: `check_pending_migrations` runs the dry run unconditionally, so such a file lands as a blocked plan → `attention_files` → `needs_attention` in `pipelex doctor`.
-
-**Recommendation:** the day a squash actually moves a floor, decide whether a below-floor-but-valid file should *warn* at boot. If yes, the shape is an extension of the doctor row plus, at most, a warning through the parked-warning channel (`take_stale_configuration_warning`) — never a refusal, never a pre-validation parse of every file on a machine whose floors are all 0. Tests would follow `tests/unit/pipelex/system/configuration/test_boot_tolerance.py::TestTheRetryHonoursTheSchemaVersionFloor` (it already has the synthetic-ledger and declared-version fixtures) and `test_migration_run.py::test_a_file_declaring_a_version_below_the_floor_is_refused_and_left_alone`.
diff --git a/wip/migrator/migrator-pr-1115-review-followups.md b/wip/migrator/migrator-pr-1115-review-followups.md
deleted file mode 100644
index d6925458f..000000000
--- a/wip/migrator/migrator-pr-1115-review-followups.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Migrator Phase 3, part 3 — items deferred from the PR #1115 review
-
-What the review-bot pass on [PR #1115](https://github.com/Pipelex/pipelex/pull/1115) surfaced and this branch did **not** fix, with why. The confirmed items were fixed on the branch: the doctor's PowerShell credential line was the one platform example still printing a variable name through Rich's markup parser (its regression test uses a lowercase bracket segment, because Rich only reads a tag that starts with a lowercase letter, `#`, `/` or `@` — an uppercase `[TEST]` is inert and proves nothing); the `add-migration` skill's closing rule forbade "any value in an operation", which would have told an agent to mark an entry `unsafe` whose `remap_value` mapping is exactly the safe repair the skill's own table asks for; the `/release` skill's ledger diff was baselined on `origin/main`, which is empty when the skill is invoked from `main`, and now uses the previous release's tag; the two test modules this PR turned multi-class were folded back to one class each; and the migration paragraph on a validation error, in the case where the command would write *and* something it cannot repair sits in the same files, closes on "carry forward what it can; the rest is yours to fix" rather than promising the files come out up to date. Two of Cubic's items were false positives and are answered on the thread: `.claude/settings.json`'s allow list only skips prompts (an unlisted `make umig` prompts, it is not blocked, like every other skill's targets), and the closing "fix these files by hand" on a file the command would not touch does not contradict the below-floor guidance, which the same paragraph's "What it cannot do for you" sentence carries verbatim — and no surface has a floor above zero today.
-
-## 1. The one-TestClass-per-module rule against the narrative multi-class layout
-
-**Reporter:** Codex (`tests/unit/pipelex/cli/test_doctor_config_checks.py`, and by extension `test_doctor_display_report.py`, `core/test_validation_report.py`, `system/telemetry/test_telemetry_stale_remedy.py`) — [thread](https://github.com/Pipelex/pipelex/pull/1115#discussion_r3792986025).
-
-`AGENTS.md` says one TestClass per module, and this PR broke it in four modules. Two of them (`test_doctor_config_checks.py`, `test_doctor_display_report.py`) had one class before the PR, and the branch folded the new tests back into it. The other two — `tests/unit/pipelex/core/test_validation_report.py` and `tests/unit/pipelex/system/telemetry/test_telemetry_stale_remedy.py` — were already multi-class before this PR, laid out as one class per concern with a narrative name (`TestNoValueFromAUsersFileIsEverRendered`, `TestTheRemedyIsNamedOnlyWhereItWouldWrite`), and the PR's added class followed each file's own layout. Dozens of modules across `tests/` are laid out the same way.
-
-**Why deferred:** reworking modules whose layout predates the PR is not a review fix, and the two directions are genuinely different decisions. Either the rule holds — and those modules are split into one file per class (a mechanical sweep, but a large diff touching many modules the migrator work never opened) — or the narrative one-class-per-concern layout is accepted for a module that tests one seam from several angles, and `AGENTS.md` (which is generated — edit the source, not the file) is relaxed to say so.
-
-**Recommendation:** decide once, repo-wide, rather than per PR. If the rule holds, sweep the two migrator modules first since they are the ones this branch touched, then the rest in a `chore/` PR of its own. Until then, a new test in an already multi-class module should follow that module's layout — mixing both styles in one file is the worst outcome.
diff --git a/wip/migrator/migrator-pr-1116-review-followups.md b/wip/migrator/migrator-pr-1116-review-followups.md
deleted file mode 100644
index 6247d8e44..000000000
--- a/wip/migrator/migrator-pr-1116-review-followups.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# The fourth surface — items deferred from the PR #1116 review
-
-What the review-bot pass on [PR #1116](https://github.com/Pipelex/pipelex/pull/1116) surfaced and this branch did **not** fix, with why. Four of the confirmed items were fixed on the branch: the boot-tolerance retry rebuilt a backend's file path with `Path(dir) / name` while the load that preceded it used an f-string, which agree for every ordinary name and diverge for an absolute one — the two are now one `backend_toml_path` helper, so the retry reads the file the load read by construction rather than by coincidence; the "claims no file" guard on both the ledger's `[surface]` block and the registry's `Surface` tested `is None`, so an empty `base_file` or `tier_glob` parsed, claimed nothing and migrated nothing in silence, and both now reject empty alongside absent; the stale-backend e2e class promised in its own docstring that the kit's `pipelex_gateway.toml` is asserted untouched while its neighbours snapshot filtered out every `.toml` in the directory, so the one file the whole `(directory, name)` claiming rule exists to protect was the one file nothing checked — it excludes the two aged files by name now, and a simulated rewrite of the gateway file reddens it; and the `/release` skill's renumbering paragraph said "unbullet-ed". Two of the highest-severity findings — the boot catching only `InferenceBackendLibraryValidationError` when the loader raises its sibling, and `[defaults]` being admitted as if it were a model table — were already fixed by the branch's head commit before the bots' verdicts were read, and are answered on the threads with the code and the pinning tests. Three were refuted: `fingerprint@2` is not inverted against `@3` (the chain runs the other way — `fingerprint@N` is the shape *at* version N, `pipelex-config@3` *is* the reshape, and `check-ledger` and `check-migration-schemas` are both green); the `cli-docs` drift ack does not mismatch (`make drift-check` passes on a clean tree, and the recorded trigger blob OIDs equal `git rev-parse :<path>` — the bot most likely recomputed against GitHub's PR merge commit); and the private-repo-names finding is about text this PR only relocates, byte-identical to what has been on public `main` since `#1099`.
-
-## 1. A backend name is never checked for being a path
-
-**Reporter:** Cubic (`pipelex/cogt/model_backends/backend_library.py`) — [thread](https://github.com/Pipelex/pipelex/pull/1116#discussion_r3797076387).
-
-The fix that landed makes an absolute backend name *harmless* — both the load and the retry now resolve it under the backends directory — but it leaves the name itself unexamined. A backend name is a raw top-level table key of the user's own `inference/backends.toml`, TOML permits a quoted `["/abs/path"]` or `["../elsewhere"]` key, and nothing between the file and `InferenceBackend.name` (a plain `str`) rejects one. The same shape is built a third time for the health report at `pipelex/cli/commands/doctor_cmd.py`, which still uses the `/` operator.
-
-**Why deferred:** rejecting a path-like key is a *new refusal* on a user-facing surface, not a review fix — it decides that a configuration which loads today stops loading, and it needs its own message, its own error class placement (`InferenceBackendLibraryValidationError`, so it lands in `BACKEND_LIBRARY_REFUSED` and inherits the surface-aware migration report for free) and its own migration question. Nothing is broken while it is absent.
-
-**Recommendation:** add the guard in `load`, right after the enabled/CI skips, refusing a name that is absolute, contains a separator, or is `.`/`..`, and naming the backend and `backends.toml` the way the index-file refusal already does. Do it together with a sweep of the doctor's own path construction onto `backend_toml_path`, so all three sites are one spelling rather than two.
-
-## 2. The diagnosis reports a header's name, never its value
-
-**Reporter:** Cubic, second half of the admission finding (`pipelex/migration/surfaces.py`) — [thread](https://github.com/Pipelex/pipelex/pull/1116#discussion_r3797076393).
-
-The first half — `[defaults]` treated as a model table — was already fixed on the branch. The half that remains is real: a header-shaped key on a *model* table whose value the loader refuses (`x-foo = 3`, or a value with a line break or a trailing space) is admitted by `admits_unnamed_key` and therefore never appears in a downgrade diagnosis, because only the key's spelling is examined. The illegal-header-*name* case the same comment raises is already closed by `is_legal_header_name`.
-
-**Why deferred — and this one is a "no", not a "later".** The diagnosis has exactly one sentence to say about a key it reports: *the current schema has no setting there, and no ledger entry retires it — either the name is a typo, or this file was written by a newer pipelex*. For `x-foo = 3` both halves of that are false, so reporting it would replace silence with wrong advice. It would also make the backend the only surface whose diagnosis reads values (`[runtime.log] level = 42` is accepted by the main configuration's diagnosis the same way), and it would fix nothing the user is missing: a scan that finds nothing attaches no migration block, so the loader's own sentence reaches them whole, naming the model, the backend and the file. The reasoning is now recorded in the `admits_unnamed_key` docstring, where the next reader will find it.
-
-**Recommendation:** leave it. Revisit only if the diagnosis ever grows a second note — a *this key is known but its value is not usable* verdict — at which point admitting the value half becomes cheap and honest at the same time.
-
-## 3. Private repo names and deep paths in committed docs of a public repo
-
-**Reporter:** Cubic (`wip/pipe-refs/implementation-plan.md`) — [thread](https://github.com/Pipelex/pipelex/pull/1116#discussion_r3797076399).
-
-The observation about the doc is accurate — it names internal sibling repos and their exact file paths, and it is internally inconsistent about it, calling the transport layer "the layer that is not open core" on one line and spelling its exact path two lines down. The claim *about this PR*, though, does not hold: those paragraphs are byte-identical to `TODOS.md` on public `main`, where they landed with `#1099`, and this PR only moves them into `wip/pipe-refs/`. Net new public exposure is zero. The bot's own private/public list is also partly wrong: one repo it calls private is public in a different org, and two of the names it flags do not exist under those names at all.
-
-**Why deferred:** the real question is repo-wide and predates this branch. It is not answerable inside a PR that relocates already-published text, and answering it there would leave every other occurrence standing while looking like the matter was handled.
-
-**Recommendation:** decide once whether internal repo names belong in this repo's committed docs at all, then sweep. The sweep must start with shipped code, not docs — `pipelex/pipe_run/delivery_executor.py` names an internal repo and a path inside it in a comment that goes out in the PyPI wheel, which is a wider audience than a `wip/` doc has. If the answer is "role language only", the `#1099` genericization pass simply needs finishing; if it is "these names are fine", the doc's inconsistency should be resolved the other way, by naming the transport layer plainly on both lines.
diff --git a/wip/migrator/migrator-pr-1117-review-followups.md b/wip/migrator/migrator-pr-1117-review-followups.md
deleted file mode 100644
index efe7183d7..000000000
--- a/wip/migrator/migrator-pr-1117-review-followups.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# The release PR — items deferred from the PR #1117 review
-
-What the review-bot pass on [PR #1117](https://github.com/Pipelex/pipelex/pull/1117) surfaced and this branch did **not** fix, with why.
-
-**Read the pass itself before reading its findings.** Two of the three bots never reviewed this PR at all: Greptile refused on file count (517 files against a 200-file limit) and Cubic on size (51,431 reviewable changed lines against a 50,000 limit, most of it `.test_durations` and the three `[email protected]` goldens). Neither posted a single comment. So the near-silence on this PR is evidence of a diff too large to review, **not** evidence of a clean one — and the reflex it should provoke is about the release PR's shape rather than about the code: a release branch that carries a whole phase of migrator work in one diff is a branch no automated reviewer will read. The per-feature PRs that fed it (#1111, #1114, #1115, #1116) were each reviewed in full, which is where the coverage actually came from.
-
-That left one thread, from Codex, and it is confirmed. Its documentation half was fixed on the branch: the `migrate_cmd` module docstring claimed that where the rehearsal and the write pass disagree "the transaction refuses rather than writing over work it never saw", which conflates two windows of very different widths and leaves a reader believing an edit made at the prompt is refused. It is not. The docstring now separates them — what the second pass is authoritative over, and the much narrower thing the per-file transaction actually guards. The behavior half is item 1 below.
-
-Item 2 came from running the suite rather than from a bot, and it is the more interesting of the two.
-
-## 1. The rehearsal a user answered is not binding on the write
-
-**Reporter:** Codex, P2 (`pipelex/cli/commands/migrate_cmd.py`) — [thread](https://github.com/Pipelex/pipelex/pull/1117#discussion_r3798218312).
-
-The mechanism is real and worth stating precisely, because the two file-reads involved sit close enough together to be mistaken for one. `migrate_cmd` rehearses, prints, and asks; on a yes it calls `apply_pending_migrations`, which starts a **completely fresh** pass. That pass re-reads every file from disk (`read_file_snapshot(file_path.resolve())` in `migration/runner.py`) and replays the ledger over whatever it now finds. The conflict guard, `assert_snapshot_unchanged` in `pipeline/fixes/file_transaction.py`, compares against the snapshot taken *inside that second pass* — so its window is pass-2-read → replace, a matter of milliseconds. A file edited while `Confirm.ask` was on screen is outside it entirely: the edit is adopted as the new basis for the migration, and operations the user never previewed are applied on a yes that answered a different report.
-
-**Why deferred — and the reason is that the consequence is much milder than the promise the docstring made.** Nothing is lost: `_write_migrated_file` backs up the exact bytes it is about to replace, taken from that same second-pass snapshot, so the user's just-edited content is what lands in the `.bak.` copy. Nothing is misreported either: the summary printed afterwards is the second pass's own report, so the user is told what actually happened rather than what was rehearsed. And what lands is correct — the second pass is byte-for-byte what a fresh `pipelex migrate` would do to that file, which is what always-replay means. The gap is a consent gap, not a data-integrity one.
-
-Set against that, the stricter behavior is a genuine tradeoff rather than an obvious win. Refusing on any change-since-rehearsal means a user who fixes a typo at the prompt has their *repair* command refuse them and has to run it again — on a command whose entire reason to exist is repairing a machine that will not boot. Nor is it a small change: making the promise true means carrying a digest of each rehearsed file forward on `MigrationPlan`, threading an expected-digest parameter down `migrate_config_directories` → `migrate_directories` → `migrate_file`, and deciding what the *other* caller does. That caller is `doctor --fix`, which reaches the same write pass with its own row as the dry run, and whose confirm window is wider still — several rows and possibly several other prompts separate the two. A release branch is the wrong place to add plumbing to the write path of a command that rewrites user configuration files.
-
-**Recommendation:** decide the question before building for it, because the two answers want different code.
-
-If the answer is *the rehearsal binds*, the shape is the one above — a `source_digest` on `MigrationPlan`, an optional `expected_digests: dict[Path, str] | None` on `migrate_directories` that `migrate_file` checks before replaying, and a mismatch returning a blocked plan under `FileBlockedReason.CHANGED_DURING_RUN`, whose existing docstring ("between the read and the write") would need widening to match. `doctor --fix` then has to pass the digests its row measured, or explicitly opt out and say why.
-
-If the answer is *the write pass binds* — which is what ships today, and is defensible — then nothing is owed in code and the remaining work is a sentence in `docs/tools/cli/migrate.md` telling the user plainly that the file is re-read after they answer, so that the guarantee is stated where a user reads it rather than only where a maintainer does.
-
-The one option to rule out is leaving the prose ahead of the code again. That is what this thread caught.
-
-## 2. The kernel boot contract holds only while no configuration file is stale
-
-**Reporter:** none — found by running `make agent-test` on this branch, on a machine whose configuration had not been migrated.
-
-Three tests fail here and pass in CI, and the gap between those two facts is the finding. `tests/unit/pipelex/kernel/test_kernel_boot_contract.py::test_every_kernel_call_runs_on_a_kernel_only_boot_with_no_library`, `tests/unit/pipelex/test_runtime_boot_closure.py::test_booting_the_kernel_layer_loads_no_interpreter_module_and_installs_no_interpreter_hub`, and `tests/integration/pipelex/system/test_load_config.py::test_load_config` all fail on one condition: this checkout's `.pipelex/pipelex_override.toml` still carries the pre-reshape `[pipelex.*]` root that `#1111` removed. That file is **gitignored** — a personal, machine-local override — so CI checks out a tree without it and never meets the condition.
-
-The first two do not fail *because* the configuration is stale. They fail because of what tolerating it costs. The boot handles the stale file exactly as designed: it reads it as if migrated, warns, writes nothing, and names `pipelex migrate`. But the retry that does the tolerating reaches the migration engine, and `pipelex/migration/engine.py` imports `apply_fix_ops` from `pipelex.pipeline.fixes.applier` — an interpreter package. So the kernel-only boot ends up having loaded `pipelex.pipeline`, `pipelex.pipeline.fixes` and `pipelex.pipeline.fixes.applier`, and the contract test reports precisely that: `the kernel call loaded 3 interpreter module(s)`.
-
-**The hazard was known, and half of it is already mitigated — which is the part worth reading before reaching for a fix.** The retry's import of the engine is function-local, and the comment above it at `pipelex/system/configuration/config_surface.py` says why in as many words: the engine's applier lives under `pipelex.pipeline`, an interpreter package, while that module sits in `runtime_hub`'s import closure. Deferring the import buys a real and deliberate guarantee — *a boot whose configuration validates never imports the migration engine at all*. That guarantee holds. What it does not cover, and what the comment does not claim, is the stale path: there the import fires, and the closure is no longer clean. So the accurate statement is not "the kernel contract is broken" but **"the kernel contract is conditional on the healthy path, and the test asserts it unconditionally"** — the two disagree only where a configuration is stale.
-
-**Severity is narrow, and worth stating so nobody fixes this in a panic.** Three modules get imported. No interpreter hub is installed — the boot-closure test checks both and only the import half trips — so no ambient interpreter state is created, nothing changes behavior, and nothing crashes. The cost is import-closure purity in a slim or kernel-only deployment, which matters for the distributed-activity wrapping the kernel doctrine is designed to keep cheap, and not much before then.
-
-The causal chain was checked rather than assumed. Running the contract test's own subprocess script from a working directory with no stale override returns `0` and prints `kernel boot contract OK`; running it from this repository returns `1` and names the three modules. Nothing else differs between the two runs.
-
-**Why deferred:** it is pre-existing, it is not what this PR is about, and the sharing underneath it is deliberate — the migration engine and the `.mthds` fix loop want one applier and one set of transaction primitives, and duplicating them to satisfy a layer boundary would be the worse trade. With the mitigation already in place and the severity as narrow as it is, there is nothing here urgent enough to change on a release branch.
-
-**Recommendation:** treat it as a hub-layering question, not a migration one, and pick one of three.
-
-The narrow structural move is to lift the op-application core out of `pipelex/pipeline/fixes/` into a layer both callers may import. `applier.py` and `file_transaction.py` hold no fix-loop or pipeline concepts — op application, snapshot, stage, atomic replace, rollback — so their present address under `pipelex.pipeline` is historical rather than structural, and moving them would make the contract unconditional instead of healthy-path-only.
-
-The cheap honest move is to leave the code alone and teach the two tests the condition the code already documents: assert the contract on a healthy configuration, and assert separately that the stale path is the *only* thing that breaches it. That converts a test which fails on developer machines for an understood reason into one that pins the reason.
-
-The move to rule out is widening the comment and doing nothing else. The comment is already accurate about what it claims; the gap is between what it claims and what the test asserts.
-
-One thing to fix regardless of which is chosen: `check-hub-layering` cannot see this. It chases `interpreter_hub` installation, and this offender installs no hub — it only imports modules. So the sole detector today is a full `make agent-test` on a machine that happens to be stale, which is the opposite of a reliable signal, and it is why this went unnoticed until a dogfooding run turned it up.
diff --git a/wip/migrator/migrator-s7b-inference-backend-surface-plan.md b/wip/migrator/migrator-s7b-inference-backend-surface-plan.md
deleted file mode 100644
index 5c6e37ca5..000000000
--- a/wip/migrator/migrator-s7b-inference-backend-surface-plan.md
+++ /dev/null
@@ -1,384 +0,0 @@
-# S7b — the inference-backend surface: implementation plan
-
-> **Archived 2026-08-17 from the repo-root `TODOS.md`, where it was the live tracker while S7b was built.** The work shipped: `feature/Backend-surface` became PR [#1116](https://github.com/Pipelex/pipelex/pull/1116), merged to `dev`, and rode out in release v0.46.0. Kept as the decision record — the Status block below is the account of what was built, what the CP3 review found, and what was deliberately deferred. Paths in this document are relative to the repo root, not to this file's own directory.
->
-> **Charter:** [`wip/migrator-3/sequencing.md § S7b`](../../../wip/migrator-3/sequencing.md) (workspace root). **Substance:** [`wip/migrator-3/backend-config-surface.md`](../../../wip/migrator-3/backend-config-surface.md). **Ruling:** R10 (2026-08-17) — build the real fourth surface, not a doctor row and not an `update` bolt-on. Both documents were read in full when this plan was written (2026-08-17); this file orders the work, they hold the reasoning. When they disagree with what the code turns out to do, the code was measured later — record the disagreement in the Status block and in the substance document's *Decisions owed*, do not silently pick one.
->
-> **Venue:** this worktree, `_backend/`, on `feature/Backend-surface`, cut from `dev` = `61c4786b6` (the reshape merge). Treat this worktree as the repo root; paths below are relative to it. `pipelex/` (the sibling checkout) stays on `dev` and is not touched. Nothing runs alongside S7b.
->
-> **Why it blocks the release, in one sentence:** the reshape release is the first to carry `#1104`, which deleted `prompting_target` from the model-spec blueprint and from every backend TOML we ship — but `pipelex init` never overwrites, so the key survives in `inference/backends/*.toml` of every existing installation, where it is fatal twice (`extra_forbidden` from `[defaults]`; `NOT_HEADER_SHAPED`, fatal even leniently since `#1109`, from per-model entries), and no surface claims those files, no walk reaches them, and the coverage gate never asks because `#1104` predates the schema-1 cut. The remedy must ship *in* the release that breaks the file, since a user runs `pipelex migrate` after upgrading.
-
-**What we are doing in one sentence:** make `<config dir>/inference/backends/*.toml` a real migration surface (`inference-backend`, registry + ledger + goldens + boot tolerance), ship its first entry — a `pre_history` `delete_key` of `prompting_target` over every root table — and, in the same PR, account for the `pipelex.toml` half of `#1104` with a `pre_history` entry inserted as `pipelex-config@2`, renumbering the reshape to `@3`.
-
-## The shape of the change, in one picture
-
-```
-today after S7b
-───── ─────────
-registry: 3 surfaces, claim by file NAME registry: 4 surfaces, claim by (subdirectory, name)
-walk: root dir only, iterdir, not recursive walk: each surface's own dir = root / surface.subdirectory
- ~/.pipelex/pipelex.toml pipelex-config ~/.pipelex/inference/backends/openai.toml inference-backend
- ~/.pipelex/telemetry.toml telemetry-config ~/.pipelex/inference/backends/pipelex_gateway.toml
- ~/.pipelex/pipelex_service.toml service-config ↑ matches pipelex_*.toml, must NOT go to pipelex-config
- (the landmine; test first)
-ledgers ledgers
- pipelex-config@2 = reshape pipelex-config@2 = pre_history: prompting_config → templating_config
- telemetry-config@2 = pre_history pipelex-config@3 = reshape (renumbered)
- telemetry-config@2 = pre_history (unchanged)
- inference-backend@2 = pre_history: delete_key ["*"] prompting_target
-boot: 3 loaders warn on a stale file boot: 4 loaders — InferenceBackendLibrary.load joins them
-```
-
-## Rules of engagement
-
-- **Checkpoints are mandatory stops.** At each ⛔ CHECKPOINT below the agent MUST stop working, complete the checkpoint checklist (status update, gates, commit), and end the session — even if context feels fresh. The next session cold-starts from this file's Status block, the charter and the substance document. Two of the checkpoints are also **(Louis)** goes: the design ratification at CP1 and the merge at CP4.
-- **Update this file as you go.** Tick checkboxes when items complete; record decisions in the Status block the moment they are taken, not at the end. The four *Decisions owed* (D1–D4 below) each get a one-line ruling in Status **and** in `wip/migrator-3/backend-config-surface.md § Decisions owed` (workspace repo — edit it, say so in the hand-off, do not commit it; that is Louis' call).
-- **TDD.** Every behaviour below is written as a failing test first (red), then made green. Mutation-test the tests that guard a rule (break the rule, watch the test go red) — the collision test and the "no walk into `deck/`" test in particular.
-- **Verify, don't assume.** The workspace has watched premises die on re-measurement. Phase 0 re-measures the breakage on this laptop before a line is written.
-- **The tool migrates this laptop, not the agent.** `~/.pipelex/inference/backends/` is a genuine stale specimen and is the first-machine evidence for S7's release step. **Do not hand-edit it, do not `pipelex init --reset`, do not run `pipelex migrate` for real (non-`--dry-run`) on it during this session.** Read-only probes only. If a value from it is needed in a fixture, hand-author the fixture from the file's table headers — never copy a personal file into the tree.
-- **A ledger says what *we* removed.** The backend entry deletes `prompting_target` and nothing else. It must not touch `pipelex_gateway.toml`'s *served* specs (they are not in the file) and must not try to repair a user's own unknown per-model key (that is `#1109`'s rejection, and its message already names file, key and fix).
-- **Rules from the memory index that bite here:** `git checkout` restores from the INDEX and deletes unstaged work — never "restore" with git mid-loop; `make umig` on an unchanged head is a no-op, and a `umigf` is only for an unreleased format change; drift-check reads the index (stage first); a new error class needs `make gei` + `make gep` and only the **full** `agent-test` catches it; a type projection cannot decide schema membership; a generated artifact (the goldens) is never a drift review target; record a subject grant BEFORE the first `agent-check` on a new module.
-
-### Gates — the full checklist, run at every checkpoint
-
-`make agent-check` and `make agent-test` do not cover everything this plan disturbs.
-
-1. `make agent-check` clean.
-2. `make cl` (`check-ledger`) and `make cmig` (`check-migration-schemas`) green — `cmig` is **not** in `agent-check`; it is in `make check`. Run both by name.
-3. `make tb` (boot smoke) green — the registry imports the real config models, and a fourth surface that cannot build its defaults layer fails here first.
-4. Full `make agent-test` green — this is what catches a new error class needing `make gei` / `make gep`, and a renamed test leaving `.test_durations` stale.
-5. **`git add` the work, THEN `make drift-check`.** `drift-check` reads the git *index*; unstaged work reads as a false green. Touching `pipelex/system/configuration/config_surface.py` or `config_loader.py` opens `config-docs` (review: `docs/configuration/**`, `pipelex/migration/ledgers/`, `configs.py`, `config_cogt.py`); touching `pipelex/cli/commands/init/*.py` or `doctor_cmd.py` opens `cli-docs`. Resolve via the drift-review flow (`make drift-plan`, review for real, `make drift-ack CONTRACT=… RATIONALE="…"`); no bypass. Nothing in `drift.toml` triggers on `pipelex/migration/**` or `pipelex/cogt/model_backends/**` — so those edits open no contract, and their docs (`docs/migration-ledger.md`, `docs/configuration/config-technical/inference-backend-config.md`) must be updated by discipline, not by a gate.
-6. `make docs-check` (strict mkdocs build) after any `docs/` edit.
-7. Reconcile `.test_durations` after any test file/class/function rename (`.venv/bin/pytest --collect-only -q -m ""` to list ids).
-8. `make check` once before the PR (it is what CI runs; it includes `cmig`, `openapi-check` and the drift gate).
-
-## Status
-
-**Current phase:** Phase 0 **done**; **Phase A done and committed** (`feae4db1a`); **Phase B done and committed** (`4237a51c5` + `The kit's backend directory on the walk, and the ledger doc's open root`); **CP1 cleared** — Louis ratified D1–D4 as they stand on 2026-08-17; **Phase C done and committed** as two commits (`81554b3bd` C1, `c765430d4` C2); **CP2 cleared** (`c2a104a7a`); **Phase D done and committed** (`b7f093c31`); **Phase E done and committed**; **a CP3 review found two defects and both are fixed, and a second pass on its two judgement calls fixed those too, plus a third hole it found** (see the blocks below, uncommitted at the time of writing). ▶️ **CP3 is reached: every gate is green and the first-machine dry run is taken; the only thing left before Phase F is Louis' go to push.** Nothing is pushed.
-
-**The CP3 review, and the two things it found. Both were measured through the real CLI rather than argued, and both are fixed with tests that go red under mutation.**
-
-- **Phase E's own behaviour change was unreachable, and its test could not tell.** The `BootComponent.migration_surface_id` wiring is only entered from `except InferenceBackendLibraryValidationError` — and that class is raised at exactly one site (`backend_library.py`'s `except ValidationError` around `load_toml_from_path`, which raises `TomlError`/`FileNotFoundError` and never a pydantic error), so **it is raised nowhere at all**. What a stale-and-unexplainable backend file actually raises is `InferenceBackendLibraryError`, which no clause in `RuntimeBoot.setup` named — so it escaped `setup` as a bare traceback, with no `PipelexSetupError`, no migration block and no `pipelex migrate`. The test passed because it built the exception by hand and assigned `__cause__`. **Fixed** by naming the family once, `BACKEND_LIBRARY_REFUSED`, beside `BootComponent` and for the same reason (a clause naming one class of a family is a hole rather than an error), and by routing the message through a new `report_config_refusal` — because the second shape a backend file refuses in carries **no** pydantic error at all: a per-model key rejected by name arrives with no `__cause__`, and the old builder threw the refusal's own message away on the way to saying `Unexpexted error:None`. The test now takes every refusal from the real loader, so the `pytest.raises(BACKEND_LIBRARY_REFUSED)` inside the fixture *is* the assertion that the boot catches what the loader raises.
-- **The diagnosis was silent about a header in `[defaults]`, which is fatal there.** `admits_unnamed_key` read the *schema* path, where `[defaults]` and a model table are the same node (`*` under an open root) — but the loader splits header-shaped keys off a model table and copies `[defaults]` in **unsplit**, so a header there is `extra_forbidden` on every model of the file. Measured: `x-portkey-provider` in `ollama.toml`'s `[defaults]` crashed the boot while `pipelex migrate --dry-run` said *"Every configuration file on this machine is at the current schema"* — on the very command the boot error sends that reader to for the diagnosis. `describe_model_spec_document_rejection` had it right all along; only the diagnosis was wrong. **Fixed** by passing `document_node_path` (which `_diagnose_table` already had beside the schema path) and excluding `MODEL_SPEC_DEFAULTS_TABLE`. Second benefit, now pinned by a test: a file that is wrong without being old earns a `would_write = false` block naming the path, which points at `migrate --dry-run` instead of promising a rewrite.
-- **Verified after the fix, same isolated fake home:** the boot now names the key, the file, *"What `pipelex migrate` would carry forward: Drop prompting_target from every backend definition"*, the unexplained path as the user's part, and no `pipelex init config` tail; the dry run reports `? *.x-portkey-provider` beside the `v2` entry. Also verified on that home, which the earlier phases never did for real: a **non-dry-run** `pipelex migrate` repairs three planted files with one backup each, leaves `pipelex_gateway.toml` byte-identical (D1 holding on a write, not only on a dry run), and a second run writes nothing and adds no backup. `prune_backups_except` keeps one backup per file, which answers the *Open questions* worry about accumulation. **The protected `~/.pipelex/` specimen was never touched** — all thirteen files still carry the key and it holds no backup.
-- **Three mutations, none applied with git** (the harness held each original in memory and wrote it back): narrowing `BACKEND_LIBRARY_REFUSED` back to the `…ValidationError` sibling reddens six cases; making `report_config_refusal` require a pydantic error reddens exactly the two no-cause parametrizations; dropping the `[defaults]` exclusion reddens the new diagnosis test and nothing else.
-- **Prose that had gone false, now corrected:** the CHANGELOG bullet for the boot error (it claimed a behaviour that could not fire) and the same bullet's account of the surface's silence about headers. `docs/tools/cli/migrate.md`'s *"That error names this command too"* needed no edit — it is true now. `inference-backend-config.md` § *Sending extra request headers per model* gained the paragraph saying a header belongs on a model table and cannot go in `[defaults]`, with the reason.
-
-**A second pass on the review's two judgement calls, at Louis' request — both fixed, and a third hole found on the way.** Measured on the isolated fake home, before and after:
-
-- **The loader's own sentence was thrown away whenever a pydantic error was behind it.** `report_config_refusal` reached through to the `ValidationError` and translated *that*, so a bad value on `[gemma3-4b]` in `ollama.toml` reached the user as `max_prompt_images: int_type: Input should be a valid integer` — no model, no backend, no file, in a directory of a dozen files that all have that field — while the loader had said `Invalid inference model spec 'gemma3-4b' for backend 'ollama' from file '…/ollama.toml': …` one frame down. Pre-existing on the model deck path (its old builder did the same), new on the backend path only because that path had never been reachable. **Fixed**: the body is `str(refusal)`, and only a *bare* `ValidationError` is translated. The deck's message keeps its paths now too.
-- **The gateway raise site the widened `except` routes to is reachable from a boot only through a disagreement between two readers of `backends.toml`.** `is_pipelex_gateway_enabled` read `enabled` as *is the literal `true`*, the loader reads the raw value's truthiness — so `enabled = 1` fetched no gateway specs for a backend the loader then loaded: refused as *"remote model specs were not provided"* on a strict boot, silently dropped from the deck on a lenient one (measured: `show backends` listed no `pipelex_gateway`). **Fixed** by making the flag read the value the way the loader does; the raise site's message now says it is the caller's omission (`pass gateway_config, or disable the backend`), because that is the only way left to reach it. The *framing* worry dissolves: no user file reaches that sentence any more.
-- **Found on the way: a bad value in `backends.toml` itself escaped as pydantic's bare `ValidationError`.** `InferenceBackendBlueprint.model_validate` was unwrapped, and the boot named no clause for a bare pydantic error — `endpoint = 42` under `[ollama]` was a raw traceback naming a field and neither the table nor the file. **Fixed** by wrapping it as `InferenceBackendLibraryValidationError` — which gives that class its first real raise site, naming backend and file — and by removing the dead `except ValidationError` around `load_toml_from_path` that had made the class *look* raised. Verified through the CLI: `Invalid inference backend 'ollama' in '…/backends.toml': … endpoint: string_type …` plus the plain tail.
-- **Three more mutations, restored from scratchpad copies**: reaching through to the pydantic error again reddens the two location-asserting cases; unwrapping the blueprint validation reddens the index-file case; `is True` back in the flag reddens the `1` and `"yes"` parametrizations. Every backend refusal in the boot test is still produced by the real loader.
-- **Seen and left alone, deliberately:** a TOML *syntax* error in any configuration file — `pipelex.toml`, `backends.toml`, a per-model file — still reaches the user as a `TomlError` traceback. It names the file (not the position — that sits on the exception as `lineno`/`colno` and never reaches the message), it is uniform across every surface including the main configuration, and the agent CLI classifies it as `error_domain: "input"` because only the loader knows the file was configuration. Turning it into a proper configuration error is a cross-surface change of its own; so is the wider fact that the human CLI renders *every* boot configuration failure as a traceback with the message underneath. Both are written up as a follow-up brief in `wip/config-errors-toml-syntax-and-cli-panels.md`.
-
-**Cold-start for the next session, in order:**
-
-1. Read this Status block whole. Phases B, C, D and E are no longer designs — they are code and prose, and the *What Phase X actually built* sections below are the maps of them. Do not re-derive B1–B9 or the C/D/E items (they are kept only as the record of what was predicted and where the prediction was wrong).
-2. Skim the charter (`wip/migrator-3/sequencing.md § S7b`) and the substance (`wip/migrator-3/backend-config-surface.md`) for *why*; this file holds the *what* and the *order*.
-3. **There is no work left before the push.** The next action is Phase F: `git push -u origin feature/Backend-surface` and the PR against `dev`. Everything before that line is local and done.
-4. Read *Open questions* below before the PR description is written — three of them are things a reviewer will raise, and two are deliberate deferrals with a named cost.
-
-**What Phase E actually built, so the next session reads the diff rather than re-deriving it:**
-
-- **The docs items landed as listed, and the four Phase-B spots were re-read against the finished code rather than trusted.** § *The fingerprint*'s open-root blockquote, § *The defaults layer*'s copied-not-layered paragraph, § *Surfaces*' fourth table row and the defaults-layer-kinds sentence all still describe what the code does; none needed an edit. What did change in `docs/migration-ledger.md`: § *What migrates* gained a paragraph putting the content/structure split **on one file** (which models a backend declares is content and no ledger will ever add one; which keys a model table may carry is structure and is a surface); "all three configuration surfaces" became "every configuration surface"; § *The helper owns the failure path* now names the fourth loader as the one that does the most between merge and validate, and gained a blockquote on why a surface of independent documents calls the helper **once per file** (the helper deep-merges, and merging two backend files would produce a backend nobody has); § *Boot tolerance* gained the fourth loader's parked-warning bullet, whose reason is **a caller and not boot order** — the doctor's per-backend probe.
-- **`docs/tools/cli/migrate.md` § *What it touches* had one genuinely ambiguous sentence** ("Nothing there is ever rewritten" could be read as *nothing in `inference/backends/`*), now unambiguous, plus a new paragraph saying a migration only ever undoes a change *we* made. § *The warning that sends you here* now says the warning covers backend definitions too and arrives with the model setup.
-- **`docs/configuration/config-technical/inference-backend-config.md`** gained the section the Phase B drift ack promised, in the page's own instructional voice: why `pipelex init` not overwriting is what leaves a file behind, the warning quoted **faithfully** (it is one paragraph of sentences, not the multi-line block the plan imagined — read from `config_surface.py:256-275`), the two commands, and a four-bullet what-it-touches list ending on the backup. `docs/configuration/index.md:62` already carried the pointer from Phase B and its link now resolves to a real section.
-- **CHANGELOG.** The `:10` non-recursive sentence was rewritten to the (directory, name) rule; the surfaces bullet stopped saying "all three start at schema version 1 … it migrates nothing", which was **already false before S7b** (the reshape and the telemetry entry both land in this same Unreleased block) and is now "each is cut at schema version 1; the entries this release ships on top of that baseline are the bullets below"; the `.mthds`-bundle/backend/deck list in the validation-error bullet dropped the backend file. Two new bullets: an **Added** one for the fourth surface carrying the `inference-backend@2` `**Migration:**` clause, and a `**Migration:**` clause appended to the templating-style **Changed** bullet for `pipelex-config@2` and the renumber. A **Fixed** bullet covers the behaviour change below.
-- **Skills.** `add-migration` gained the eight-step *Inserting a pre-history entry below existing entries* procedure this session performed in C2 — renumber, `git mv` highest-first, copy the frozen link, **hand-edit the one `"schema_version"` line** (the single sanctioned exception to "never hand-edit a golden", and the "never" bullet now says so), hand-author `before@N`, and `umig` must then be a byte-pure no-op *which is the proof*; plus the id sweep and the two-changelog-mentions rule. `release` step 3b gained the paragraph saying a renumber shows up as two ids and is one insertion, so the pushed-up id is not treated as an unbullet-ed new entry. `add-model` gained F12's coupling: editing the kit's `portkey.toml` reddens `cmig` until `make umig` runs, and no other backend TOML is coupled that way.
-- **A behaviour change this phase took, deliberately, outside its declared docs-only scope — read this one.** Three places asserted that an inference backend file is *not* a configuration surface (`core/validation.py`'s docstring, a comment in `runtime_boot.py`, and `docs/migration-ledger.md` § *The scan is named, not guessed*), which S7b made false. Correcting only the prose would have meant writing down a hole, because the boot **acts** on that claim: `RuntimeBoot._get_validation_error_msg` named no surface, so a backend file that is *both* behind and carrying something we cannot explain — the one case that gets past boot tolerance — was reported on its unknown key alone, while identical staleness in `pipelex.toml` produced the full migration block. Fixed: a new **`BootComponent` StrEnum** pairs each late-refusing component with its surface (`INFERENCE_BACKEND_LIBRARY` → the surface id; `MODEL_DECK` and `ROUTING_PROFILE_LIBRARY` → `None`), stated once instead of at each `except` clause, which is what makes the wiring testable — the test parametrizes over the same constant the call site passes. It replaced the bare `component_name: str` on both message helpers, so the five call sites no longer repeat string literals. Second half: a message carrying a migration block **stops appending** *"or run `pipelex init config` to regenerate them … resets all config files to their default values"* — the contract's own "none of them says start over" rule, which that tail broke the moment the backend became a surface. The deck keeps the tail; for it, it is the only answer there is.
-- **New `tests/unit/pipelex/test_runtime_boot_stale_backend_error.py`** (`TestAStaleBackendFileTheLedgerCannotFullyExplain`), following the house `test_runtime_boot_*.py` pattern. Four cases: the message names the stale file and the entry while still being about the user's own key; the regenerate tail is gone *and the block was found* (so the tail is not dropped for the wrong reason); the model deck is byte-for-byte unchanged in treatment; and a machine with nothing stale keeps the plain message, so naming a surface cannot invent a block. `_get_validation_error_msg` had **no** tests before. Two mutations, neither applied with git (the harness held the original in memory and wrote it back): making the backend return `None` for its surface reddens the first two; forcing the block branch off reddens the tail test alone.
-- **`config_surface.py`'s module docstring was self-contradictory and is now honest.** It listed "backend definitions" among the readers that should keep *rejecting* the reserved `[meta]` table, in the same paragraph that names them a configuration surface. The real asymmetry, now written down: the backend loader reads through the generic TOML reader (`load_toml_from_path`) rather than through `config_surface`, so a backend file carrying `[meta]` would be refused as an unknown model table even though the migration engine reads the key there. **Nothing writes that key on any surface**, so it is latent, not live — see *Open questions*.
-- **One local-environment cleanup, and a finding under it.** `make check` failed on `check-config-sync`, because Phase A's one-off `pipelex migrate --yes` left `.pipelex/pipelex_override.toml.bak.20260817T113323Z` — gitignored since Phase A, but the sync checker compares directories on disk and excludes by exact file **name**, which a timestamp cannot be. The backup was diffed against the live file first (pure pre-reshape shape; every setting present at its new address, `default_log_level` and `package_log_levels.pipelex` confirmed by eye) and then removed. The finding it exposes is in *Open questions* and is worth a reviewer's attention.
-
-**The first-machine dry run, taken read-only at CP3 (`pipelex migrate --dry-run`, never a real run):**
-
-- The real `~/.pipelex/inference/backends/` holds `.toml` files plus the two `.md` files. The report claims the backend `.toml`s that need it — `anthropic`, `azure_openai`, `bedrock`, `fal`, `google`, `minimax`, `mistral`, `ollama`, `openai`, `pipelex_inference`, `portkey`, `vertexai`, `xai` — each under `(inference-backend)`, each naming `→ v2 Drop prompting_target from every backend definition`, and each rendering the op as **`deleted 'prompting_target' from every table of the document`**. That is Phase D's wildcard wording, confirmed on real output rather than only in its unit test.
-- **`pipelex_gateway.toml` is present in that directory, is clean, and is absent from the report** — absent because it needs nothing, not because it went unclaimed. That is D1 holding on a real machine: the collision specimen was claimed by `inference-backend` and not by `pipelex-config`, whose ledger would have rewritten it. The two `.md` files and `inference/backends.toml` are likewise absent.
-- **No value read from any file appears anywhere in the report** — paths, entry titles and op kinds only. `pipelex_inference.toml`, which is this machine's own and not kit-shipped, is claimed like any other `*.toml`, which is the glob doing what D1 says.
-- Neither configuration root reported a `pipelex-config` or `telemetry-config` file: both are already current. Ends on `Dry run — nothing was written.`, and the specimen still carries its `prompting_target` occurrences in `portkey.toml` afterwards. **It has still never been edited, reset, or migrated for real.**
-
-**Gates at the Phase E commit — the full checklist, all eight:** `make agent-check` clean (pyright 0 errors, mypy clean over 2528 files, `cl` 4 ledgers legal and convergent, keyword-only PASSED, hub-layering PASSED); `make cmig` 4 surfaces accounted for; `make tb` 46 passed; **full `make agent-test` green** (the first full run since Phase C — no new error class, so no `gei`/`gep` was owed, and no test was renamed, so `.test_durations` did not go stale); `make docs-check` builds, with only the one pre-existing anchor INFO in `under-the-hood/orchestrator-plugins.md`, a file this session did not touch; `make drift-check` PASSED **after** staging and acking `config-docs` for real (it opened on `config_surface.py`; ack text in `.drift/acks/config-docs.toml`); `make check` green end to end, pylint 10.00/10.
-
-**What Phase D actually built (`b7f093c31`), so the next session reads the diff rather than re-deriving it:**
-
-- **The retry lives in `InferenceBackendLibrary.load`, per backend, once.** The per-model build was extracted to `_build_backend_model_specs` (a classmethod: pop `[defaults]` from a *copy*, split, merge, validate) so the retry can run the loader's own steps a second time without duplicating them. `_local_model_specs_the_ledger_can_explain` replays the ledger over **that one file**, re-substitutes `${VAR}`, rebuilds, and returns `RecoveredModelSpecs(model_specs, plans)` — or `None`, on which the caller's bare `raise` re-raises the error the file actually produced.
-- **The warning is parked, not logged, and the reason is a caller rather than boot order.** `take_stale_configuration_warning()` on the library; `ModelManager.setup` takes it and emits it. **This is a deliberate deviation from the plan's recommendation of `runtime_boot.py`**, and the measurement behind it is `doctor_cmd.py:597`: the doctor probes backend files by loading the *whole* library once per backend, so a loader that logged for itself would repeat one directory's warning a dozen times. Emitting from `ModelManager.setup` gives a boot exactly one copy, gives `pipelex doctor`'s `check_models` one, and leaves the doctor's probe and `show_cmd`'s `--all` library silent by construction — with **no** widening of `ModelManagerAbstract`, which is a public injection point. One warning per `load()` covering every stale file, not one per backend.
-- **The gateway is left out of the retry, and the plan's item for it rested on a false premise.** `GatewayConfigMerger.merge` **ignores a local `[defaults]` outright** and keeps only `sdk`/`structure_method` from a per-model override, so a stale key in `pipelex_gateway.toml` is filtered out before any spec is built and **can never be what refused a load**. There is nothing to carry forward at boot. `pipelex migrate` still repairs the file on disk — the surface claims every `*.toml` in the directory. A test pins the claim (`test_a_stale_gateway_override_never_reaches_the_loader_at_all`) and a two-part mutation of the merger reddens it, which is the day the gateway path would need a retry too.
-- **A user-facing wording bug this PR itself introduced, found by the e2e and fixed here.** `inference-backend@2` is the **first** shipped entry with a wildcard `table_path`, and `describe_op` rendered it literally: *"deleted 'prompting_target' from '\*'"*. `_table_in_words` now reads a **trailing** wildcard as *"every table of the document"* (empty parent) or *"every entry of '<table>'"*; a wildcard anywhere else keeps the literal dotted spelling, because nothing addresses that shape and inventing a phrase would be guessing. New `tests/unit/pipelex/cli/test_migrate_op_wording.py` — `describe_op` had **no** tests at all before.
-- **Tests.** New `tests/unit/pipelex/cogt/model_backends/test_backend_boot_tolerance.py` (`TestAStaleBackendDirectory`): the fixture copies the **kit's** backend directory into a faked home and plants `prompting_target` back — into `openai.toml`'s `[defaults]` and two of `portkey.toml`'s model tables — and both plantings **raise** if their anchor is gone. The strong assertion is `recovered.root == pristine.root`: what boots is byte-for-byte the library the untouched kit files produce, which is what makes "everything else intact" a real claim. New `TestAStaleBackendDirectory` in `tests/e2e/pipelex/cli/test_migrate_commands.py` — human repair with one backup per file, a second run that writes nothing and adds no backup, the `.md` files and `inference/backends.toml` byte-identical throughout, the agent loop naming both files with `entry_id` and `("delete_key", "prompting_target")`, the doctor row going `pending` → `up_to_date`, and the **warning through the human binary** (`pipelex show backends`), which is the half `pipelex-agent` cannot show because it silences logging process-wide.
-- **Four mutations, all reddening the intended test, none applied with git** (the harness held the original text in memory and wrote it back): making the retry always decline reddens the "loads the same models the current files would" test; making the gateway merger permissive on both halves reddens the gateway test; and leaking the file's text into either the human report or the agent JSON payload reddens `test_no_channel_renders_the_value_the_files_carry`.
-- **Two things measured and found already correct, so nothing changed.** `runtime_boot.py:488-500` is unchanged in kind — the retry sits inside `load` and either recovers or gets out of the way. And `"out of date"` was too weak an assertion for the warning: the same boot prints a *deck*-staleness notice containing that phrase, so the e2e matches the warning's own opening, `"Your configuration is out of date"`.
-- **`docs/tools/cli/migrate.md:25` was false, not merely stale**, and the `cli-docs` drift contract is what surfaced it: it said the command does not descend into subdirectories and that inference backends are never rewritten by it. Rewritten to say what it now does *and* what it still does not — one level, only into a directory some configuration family owns, so `inference/deck/` and the `inference/backends.toml` beside the directory stay out. The ack text is in `.drift/acks/cli-docs.toml`.
-
-**Gates at the Phase D commit:** `make agent-check` clean (pyright 0 errors, mypy clean over 2527 files, `cl` 4 ledgers legal and convergent, keyword-only PASSED, hub-layering PASSED); `make cmig` 4 surfaces accounted for; `make tb` 46 passed; `make docs-check` builds (the one anchor INFO is pre-existing, in a file this session did not touch); `make drift-check` PASSED after acking `cli-docs` on the staged index; targeted suite green — `tests/unit/pipelex/{cogt,cli,migration,system}/`, `tests/integration/pipelex/system/`, `tests/e2e/pipelex/cli/`, 3142 passed. **The full `agent-test` has not been run since Phase D; it is owed at CP3.**
-
-**What Phase C actually built (two commits), so the next session reads the diff rather than re-deriving it:**
-
-- **`inference-backend@2`** (`81554b3bd`) — `pre_history`, `breaking`, `safe`, `introduced_in = "0.46.0"`, `declared_removed_paths = ["*.prompting_target"]`, and **one** op: `delete_key`, `table_path = ["*"]`, `key = "prompting_target"`. `current_schema_version` went 1 → 2. `goldens/inference-backend/[email protected]` is hand-authored — the Portkey shape of the era, trimmed so the key is seen in `[defaults]`, on one model and absent from another, with two header-shaped keys as the neutrality witnesses. `make umig` wrote `[email protected]` + `[email protected]`; **the pair `@1`/`@2` differs by nothing but the `"schema_version"` line, and `defaults@1`/`defaults@2` are byte-identical** — measured with `diff`, which is what `PRE_HISTORY_HAS_A_DIFF` demands.
-- **`pipelex-config@2` + the renumber** (`c765430d4`) — the pre-history entry is **inserted below** the reshape, which became `pipelex-config@3`; `current_schema_version` went 2 → 3. Ops in order: `move_key ["pipelex","prompting_config"] default_prompting_style → ["pipelex","templating_config"] default_templating_style`, `delete_table ["pipelex","prompting_config","prompting_styles"]`, `delete_table ["pipelex","prompting_config"]`. `declared_removed_paths` names the section and the two children the ops address; the parent alone would satisfy `_check_pre_history_source_is_declared_material` (it walks ancestors), and naming all three is the telemetry entry's precedent and the honest record.
-- **The renumber is byte-pure, and here is the proof shape.** `git mv [email protected] [email protected]` + `git mv [email protected] [email protected]`, then `cp [email protected] [email protected]` + `cp [email protected] [email protected]`, then **one hand-edited line per fingerprint** (F10: `"schema_version"` in the body must agree with the filename or `read_fingerprint_golden` raises before `umig` writes). Then `make umig` rewrote the head from live and **every checksum in the directory was unchanged** (`shasum -c`, all seven OK). Against `HEAD`: old `@2` fingerprint vs new `@3` = one line, the version; old `@1` vs new `@2` = one line, the version; both `defaults` diffs empty. `git diff --cached --stat` presents it as `@2` *modified* and `@3` *added* rather than as renames, because the `git mv` was followed by a `cp` into the vacated name — the content is what the proof is about, not git's rename heuristic.
-- **Nothing the checks refused had to be answered.** `make cl` and `make cmig` were green on the first run after each half, `_check_open_node_addressing` accepted `["*"]` at the open root without a further edit, and no golden needed `--force`.
-- **The wildcard was verified by hand as well as by test.** `_expand_table_paths(table_path=["*"])` over the hand-authored document returns `[['defaults'], ['gpt-4o'], ['gemini-2.5-pro']]` — every root table, `[defaults]` included (F5 confirmed). Replaying the shipped ledger over **each** of the kit's backend `*.toml` files returns the *same string object* (`replay.text is original`), so convergence there is byte-neutrality and not merely equality.
-- **Tests:** new `tests/unit/pipelex/migration/test_backend_back_entry.py` (`TestTheBackendBackEntry` — the migrated document is accepted by `describe_model_spec_document_rejection`, the whole document is compared key by key so the header keys are witnessed by value, every surviving *line* is compared as text so comments and quoting are witnessed too, and the replay is idempotent). New `TestAPrePromptingStyleMachine` in `tests/e2e/pipelex/cli/test_migrate_commands.py`: it rewinds `[email protected]` one release by swapping the templating section back to the prompting one (`TEMPLATING_SECTION_AT_SCHEMA_1` / `PROMPTING_SECTION_BEFORE_SCHEMA_1`, and the planting **raises** if the swap matched nothing), plants only the global tier, and proves the two entries compose — the human loop lands on exactly `_todays_pipelex_config_document()` with one backup, and the agent loop's plan names both titles in order.
-- **Phase D is already half-proved, measured read-only at the end of this session.** A temp configuration root seeded with the kit's backend directory, `prompting_target` planted back into `openai.toml`'s `[defaults]` and into one of `portkey.toml`'s model tables, run through the **real** `migrate_config_directories(dry_run=True)`: each file names the entry (*"Drop prompting_target from every backend definition"*), `unexplained` is empty for both, and `needs_attention` is `False`. So the walk half of Phase D's end-to-end item is behaviour that already works — what is genuinely missing is the *loader* half: `InferenceBackendLibrary.load` still raises on such a directory instead of replaying and warning.
-- **Stale quotes swept** (`git grep 'pipelex-config@2'`): `CHANGELOG.md` (the reshape's `**Migration:**` bullet → `@3`), the e2e module docstring, `TestAPreReshapeMachine`'s docstring, and `tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py`. **No test read `[email protected]` as "the packaged file at schema 1"** — the two readers (`_pre_reshape_pipelex_config_document`, `_OUT_OF_ORDER_SPECIMEN`) already named `[email protected]`, so the plan's worry did not materialise; the helper's docstring now says *why* it names schema 1 rather than the version the reshape starts from. Two prose spots that named a version where the number was not the point were rewritten as constructs instead of bumped (`_todays_pipelex_config_document`'s "the head golden", and "the reference document the reshape starts from"). `test_boot_tolerance.py`'s module docstring lost "the other two surfaces have empty ledgers today" — it was already stale before this session, and the honest reason those tests plant a synthetic ledger is that the *wiring* is what they hold still.
-
-**CP1 is closed: D1–D4 are ratified, verbatim as recorded under *Rulings taken* below.** Nothing about the shape is open any more — the `COPIED_DOCUMENT` name stands, `portkey.toml` stands as the reference document (with F12's cost accepted: adding a model to it reddens `cmig` until `make umig` runs), the open document root stands, and the `pipelex-config` pre-history entry ships in this session with the reshape renumbered to `@3`. The rulings block is kept below as the record of *why*, not as an open question. Phase C is the first work that builds on D4, and it is where the renumber happens.
-
-**What Phase B actually built (two commits: `4237a51c5`, then `The kit's backend directory on the walk…`), so the next session reads the diff rather than re-deriving it:**
-
-- **`pipelex/cogt/model_backends/model_spec_document.py`** (new) holds both halves of "a backend file is a document, not a model", so the loader and the gate cannot drift: `InferenceModelSpecFileNode` (the all-optional projection — a **subclass** of the blueprint, `sdk: str | None = None`) and `describe_model_spec_document_rejection` (the loader's own pop-`[defaults]` / split-headers / merge / validate, returning a reason string). `MODEL_SPEC_DEFAULTS_TABLE` is spelled here and `backend_library.py` now reads it instead of the literal `"defaults"`.
-- **`DocumentShape`** (StrEnum, `WHOLE_DOCUMENT` / `MODEL_SPEC_TABLES`) on the `Surface`, with a `document_root_is_open` property. **This replaces B1's plain `Surface.document_root_is_open` bool** — the surface declares the *shape* once and the three behaviours are derived from it, while the **fingerprint** keeps the bool, because a golden should record a path-level fact and not our Python vocabulary.
-- **`DefaultsLayerKind.COPIED_DOCUMENT`** plus the property `is_layered_beneath_the_users_file`. `read_defaults_document()` → `{}` (nothing faked), `render_reference_document()` → the kit's `portkey.toml`, and the reachability validator now pairs each kind with the one document path it reads (a table-driven loop, not a second hand-written `if`).
-- **`Surface.validate_document`** and **`Surface.admits_unnamed_key`**, both `match`ing on `document_shape`. The first replaced `surface.config_model.model_validate` in `transform_check._check_the_migrated_document_is_accepted`, which also stopped deep-merging the reference document under a copied one. The second is the diagnosis seam.
-- **`Surface.kit_template_dir`** beside `kit_template_path` (mutually exclusive, validated), enumerated **lazily** by `reference_documents()` — `is_file()`, matching the surface's own glob, excluding the reference document itself, labelled `kit template '<name>'`. So the whole kit backend directory witnesses convergence.
-- **`compute_fingerprint(document_root_is_open=…)`** and `SurfaceFingerprint.document_root_is_open`. `coverage.check_surface` now goes through `surface.fingerprint_at(...)` so the flag has one route.
-- **`_check_open_node_addressing`** reads `before.document_root_is_open` at index 0.
-- **`diagnose_unexplained_paths`** takes the `surface`; `runner._diagnose` passes it.
-- **The document generator** (`tests/.../document_strategies.py`) seeds from `starting_document(surface=…)` — the reference document for a copied surface — translates the open **root** in `fingerprint_at`, asks `surface.validate_document` rather than `config_model`, and **checks each drop** for a non-layered surface (`_drop_if_accepted`).
-- **Tests:** new `tests/unit/pipelex/cogt/model_backends/test_model_spec_document.py`; open-root cases in `test_fingerprint.py`; three cases in `test_ledger_check.py` (`*` at an open root is legal, naming one root table is `CONCRETE_KEY_UNDER_OPEN_NODE`, `*` at a *closed* root is still refused — that last one is the mutation guard); two in `test_diagnosis.py` (a header key is admitted, a typo is still named); `test_real_surfaces.py` gained the fourth id, the per-kind defaults-layer rule and an open-root assertion; `test_migration_run.py::TestTheWalkIsNotRecursive` flipped to the new rule and gained "a directory no surface owns is never entered".
-- **Ledger + goldens:** `ledgers/inference-backend.toml` at `current_schema_version = 1`, zero entries; `goldens/inference-backend/[email protected]` (20 paths) + `[email protected]`. The fingerprint was **read by eye**: `*` is a table with `required: true`, every blueprint field is `*.<field>` with `required: false`, there is no phantom parent, and there is no `prompting_target` — which is what makes the Phase C entry pre-history.
-- **The walk, over the real kit directory** (second commit): new `tests/unit/pipelex/migration/test_backend_directory_walk.py` (`TestAFreshMachinesBackendDirectory`) copies the kit's backend directory into a temp configuration root the way `pipelex init` does, then asserts three things over the **real** registry and the **real** run — every `.toml` is claimed by `inference-backend` and the `.md` files by nobody; `migrate_config_directories(dry_run=True)` finds every one of them and reports each clean; and a planted misspelling (`maxx_tokens`, in a new root table) *is* reported, at `*.maxx_tokens`. A separate module rather than a fifth class in `test_migration_run.py`, per the one-TestClass-per-module rule.
-- **Docs** (second commit): `docs/migration-ledger.md` § *The fingerprint* gained the open-root blockquote (why a root and not a field, what paths that produces, and why the flag is recorded on the fingerprint rather than read from the surface); § *The defaults layer* gained the copied-not-layered paragraph (no defaults layer, none faked, and what absorbs an additive change instead). Three coherence fixes came with them, because the two new paragraphs would otherwise contradict text a few lines away: the § Surfaces table gained its fourth row, the § Surfaces sentence enumerating the defaults-layer kinds became three, and § Transform goldens' "read the way a user's file is read — beneath the current defaults layer, not alone" now names both readings. The rest of the Phase E docs list is untouched.
-
-**Did the registry-driven machinery absorb the fourth surface without edits? Yes where it counts, no where the document shape is genuinely new — and the split is worth reading, because it is what a *fifth* surface would cost.**
-
-- **The four non-test callers of `build_config_surface_registry()` needed zero edits** — the three dev-CLI commands (`check_ledger`, `check_migration_schemas`, `update_migration_schemas`) and `migration/run.py`, which is what both `migrate` commands, the `doctor` row and the boot diagnosis all go through. That is the R10 assumption, and it held exactly: a fourth `Surface` plus a fourth ledger entered every consumer by data.
-- **Every module that did change, changed because a document root can now be open or a defaults layer can now be unlayered — never because a surface was added.** `fingerprint.py` (the open-root seed and the recorded flag), `ledger_check.py` (`_check_open_node_addressing` reads the root), `transform_check.py` (acceptance goes through `Surface.validate_document`, and a non-layered document is read on its own), `diagnosis.py` + `runner.py` (the surface reaches the diagnosis — F7), `coverage.py` (one line, routing the flag through `fingerprint_at`). A fifth `WHOLE_DOCUMENT` surface with a packaged defaults layer would need none of them.
-- **Two modules outside the migration package:** `config_surface.py` for the surface-id constant (the one place the ids are spelled), and `model_spec_document.py` (new) + one literal in `backend_library.py`, because *what a backend document is* had to be stated where both the loader and the gate read it. That is D3's deliberate cost.
-- **The three existing head goldens gained one line each** (`"document_root_is_open": false`), written by `umig`, and no frozen link moved. The two test exceptions F8 predicted were the only real-surface tests that had to change.
-
-**Findings from Phase B that its own design got wrong (the record, so nobody re-derives them):**
-
-- **B1's seed spelling was wrong in one argument, and it matters.** `ancestry=(config_model,)` makes `_record_field`'s recursion guard fire immediately — `*` is recorded as a table with **nothing beneath it**. The seed must pass `ancestry=()`; `_record_field` then walks with `ancestry=(config_model,)` itself. There is a comment at the call site saying so.
-- **B3's open question is answered, and the answer was better than the prediction.** `cmig` stayed **green over the three existing surfaces before any regeneration** — `_check_head_link` compares *parsed* fingerprints, so a stored golden lacking the new key parses with the default and equals the live one. `make umig` then added exactly one line (`"document_root_is_open": false`) to each of the three head goldens, needed no `--force`, and left every frozen link untouched. So the format move is an addition in the strictest sense.
-- **The projection cannot be a subclass without one type-checker suppression, and both checkers object.** Widening `sdk` in a subclass is a real Liskov violation (`reportIncompatibleVariableOverride` + mypy `[assignment]`), so the line carries both ignores and a docstring paragraph saying why the alternatives are worse: a hand-written twin reopens *annotation* drift (a name-comparison test cannot see a field's type move, and the fingerprint would keep recording the old one — the exact narrowing the gate exists to catch, going quiet), `create_model` drops the per-field metadata the fingerprint reads, and a placeholder default (`sdk: str = ""`) buys silence by putting a value in the model that no file has.
-- **The replay property was vacuous for the new surface, and fixing it was real work.** `test_the_generator_does_not_merely_re_emit_the_reference_document[inference-backend]` failed with `NoSuchExample`, because the generator seeds from `read_defaults_document()` — `{}` here. Three consequences the plan did not anticipate: the seed must be the *reference* document; `fingerprint_at` must translate the open **root** (`gpt-4o.max_tokens` → `*.max_tokens`); and **a drop must be checked** for a non-layered surface, because nothing restores it and dropping `[defaults] sdk` invalidates every model in the file. `test_every_generated_document_is_valid_at_the_current_schema` also had to stop validating the whole document against `config_model` (it would be `extra_forbidden` on every model table) and ask the surface instead.
-- **Three guards were mutation-tested, all without git** (the harness held the original text in memory and wrote it back): widening `admits_unnamed_key` to "any key under a model table" reddens the typo test; *narrowing* it to `return False` reddens two of the three new walk tests, reporting every `x-portkey-*` header in the kit's `portkey.toml` as an unexplained `*.x-portkey-…` path — which is exactly the page a fresh machine would have been greeted with; and dropping the `sdk` override would put the blueprint's `required=True` back into `model_fields`, which is what the projection guard reads.
-- **The convergence gate never asked the diagnosis anything, and that gap was real rather than theoretical.** `_check_convergence` compares a witness's text before and after a replay; nothing in it reports an unexplained path. So the header-admission seam (F7) was, until the walk test, proved only over the two synthetic cases in `test_diagnosis.py` — and what it protects is every request header in a real shipped file. The walk test is where the whole chain is exercised at once: real registry → real ledger → real fingerprint → real diagnosis.
-- **The drift contract `config-docs` opened and was reviewed for real** (ack text in `.drift/acks/config-docs.toml`). One user-facing sentence was genuinely stale: `docs/configuration/index.md:62` said the command walks the two configuration directories, true only while every migratable file sat *directly* in one. It gained a clause about `inference/backends/` pointing at `docs/configuration/config-technical/inference-backend-config.md` — whose own section is Phase E.
-
-**What is NOT done and must not be assumed:** **nothing is pushed, and no PR exists** — the push is Phase F's first line and Louis' go. The workspace plan docs (`wip/migrator-3/{sequencing,backend-config-surface,README,plan}.md`, in the workspace repo, not this one) are updated as CP3 requires but **deliberately not committed** — that is Louis' call. The protected `~/.pipelex/inference/backends/` specimen has still never been edited, reset, or migrated for real; only the CP3 `--dry-run` above was taken, and it wrote nothing. S7's release step, which is where that directory finally gets migrated by the tool, is a different session in a different venue.
-
-**Gates at the CP1 commit:** `make agent-check` clean (pyright 0 errors, mypy clean over 2524 files, `cl` 4 ledgers legal and convergent, keyword-only PASSED, hub-layering PASSED, drift PASSED with no new obligation — nothing in `drift.toml` triggers on `pipelex/migration/**`, and this commit touches no configuration model); `make cmig` 4 surfaces accounted for; `make tb` 46 passed; `make docs-check` builds with no new anchor warning (which is how the three new in-page links were verified); **full `make agent-test` green**. `git status --short` empty, nothing pushed.
-
-**Preconditions as re-measured on 2026-08-17 (Phase 0, read-only):**
-- `git rev-list --left-right --count origin/dev...HEAD` = `0 2` — `dev` has not moved from `61c4786b6`; the branch carries `583f50de7 tidy` and `343bb3fa7 plan` (this file). `git status --short` empty.
-- `grep -rn prompting_target ~/.pipelex/inference/backends/` still finds it: the `[defaults]` block of thirteen backend files there, plus five per-model occurrences in `portkey.toml`. **The premise is alive.**
-- The loader probe from the substance § *Reproducing the evidence*, run from `.venv/bin/python` against the two real files, reproduces both halves exactly: `openai.toml` → `extra_forbidden ('prompting_target',)` on **all** of its model tables (every table fails, because the key sits in `[defaults]` and is merged into each); `portkey.toml` → the same on all of its tables, **plus** five `NOT_HEADER_SHAPED` rejections carrying the full remedy sentence.
-- `~/.pipelex/inference/backends/` also holds `pipelex_inference.toml` (not kit-shipped) and two `.md` files — both specimens are real on this machine.
-- **The registry-driven claim holds** (the assumption R10's cost estimate rests on). `build_config_surface_registry()` has exactly four non-test callers: the three dev-CLI commands (`pipelex/cli/dev_cli/commands/{check_ledger,check_migration_schemas,update_migration_schemas}_cmd.py`) and `migration/run.py`, which is what both `migrate` commands, the `doctor` row and the boot diagnosis go through. Each reaches the registry plus one top-level function. A fourth `Surface` plus a fourth ledger enters all of them without an edit — with the test-side exceptions in F8 below.
-
-**Rulings taken — all four RATIFIED by Louis at CP1 on 2026-08-17, as built. Each carries the measurement that supported it; none is open.**
-- **D1 — the surface claims every `*.toml` directly in `inference/backends/`, and nothing else.** Not `inference/backends.toml`: it sits one level up, it is a different shape (a table per backend, not per model), and `#1104` never touched it. The `.md` files fall out by extension. Reason is in the registry docstring, beside the surface.
- - *Measured:* `TestAFreshMachinesBackendDirectory` copies the real kit backend directory into a configuration root and the real registry claims every `.toml` in it for `inference-backend` and nothing else — the two `.md` files included, by extension and not by an exclusion list. `test_migration_run.py::test_a_directory_no_surface_owns_is_never_entered` pins the other side: `inference/backends.toml` and `inference/deck/x.toml` are claimed by nobody.
-- **D2 — `inference/deck/` and `inference/routing_profiles.toml` do not join.** The deck already has a manifest-driven sync with the `x_custom_*` user-owned carve-out, which the migrator must not duplicate; routing profiles have neither mechanism and no unreleased break. Reason is in the registry docstring beside the surface, not only in the wip document.
- - *Measured:* the same "a directory no surface owns is never entered" test, over the real registry. The cost of the ruling is also known and named: a file in either place is outside every migration, so a future break there is a new surface and not a widened glob.
-- **D3 — the shape, as designed against the code (see F4–F9):**
- - a third `DefaultsLayerKind`, **`COPIED_DOCUMENT`**: *a document shipped in the package and **copied** into the user's directory rather than merged beneath it; the values come from the model's own field defaults, applied to each entry as it is read.* It names the contrast with `PACKAGED_DOCUMENT` (merged beneath) in one word.
- - `reference_document_path` = the kit's **`portkey.toml`**. It is the one shipped backend file that exercises both halves of the document shape — a `[defaults]` block *and* header-shaped per-model keys — and it is the file whose per-model tables carried `prompting_target`, so it is the richest starting document a later non-pre-history entry could be replayed over. (`openai.toml` is the more typical file and would also work; rich was preferred, and ratified.)
- - `reference_documents()` = the reference document plus every other `*.toml` in the kit's backend directory, as convergence/neutrality witnesses.
- - `read_defaults_document()` → `{}`: there is no defaults *document* for this surface and one must not be faked. The defaults-layer rule holds because the projection has no required path, not because a document supplies one.
- - the document shape: `Surface.document_shape` (StrEnum, `WHOLE_DOCUMENT` for today's three, `MODEL_SPEC_TABLES` for this one) drives three things — the open-root fingerprint seed, `validate_document`, and `admits_unnamed_key`. `SurfaceFingerprint.document_root_is_open: bool = False` records the fact in the golden so a frozen link answers for itself.
- - the projection: `InferenceModelSpecFileNode`, in `model_backends/` beside the blueprint — the blueprint with `sdk` optional, nothing else changed, used **only** by the fingerprint. Its guard is a test that no field of it is required, which is what goes red the day a new required field lands on the blueprint.
- - `validate_document` for `MODEL_SPEC_TABLES` is **faithful to the loader**, not to the projection: pop `[defaults]`, split header-shaped keys off each model table, merge, validate against the real `InferenceModelSpecBlueprint`. One helper in `model_backends/` so the loader and the surface cannot drift.
- - *Measured, as built:* `_check_open_node_addressing` needed exactly the one extension F4 predicted and nothing else, and `*` at a *closed* root is still refused (the mutation guard in `test_ledger_check.py`). The defaults-layer rule is vacuous exactly as F6 said, and `test_real_surfaces.py` states it as `check_defaults_layer(...) == []` rather than through a truthiness proxy. The golden-format move was an addition in the strictest sense (B3: `cmig` green before regeneration; `umig` added one line to each head golden, no `--force`, no frozen link touched). `transform_check` now reads a copied document **on its own** rather than beneath a defaults layer it does not have. And the whole chain — registry, ledger, fingerprint, diagnosis — converges on the real kit backend directory, which the convergence gate alone never proved (it never asks the diagnosis anything).
-- **D4 — the `pipelex-config` pre-history entry ships in this session**, with the reshape renumbered to `@3`.
- - *Ratified without a measurement behind it, because it is Phase C's first act — the one ruling nothing had been built against at CP1.* Its cost is known and stands: F10, one hand-edit of the `"schema_version"` line inside each moved fingerprint golden, because `umig` reads the stored head before it writes and would raise on a body disagreeing with its filename. C2 is where this ruling is executed.
-
-**Findings from Phase 0 that the plan did not anticipate:**
-- **F4 — `_check_open_node_addressing` refuses `*` at the root today**, by construction: `parent_record = before.paths.get(parent_path) if index else None`, so index 0 has no parent record and a leading `*` is reported `WILDCARD_NOT_AT_OPEN_NODE`. Its message already renders `parent_label` as *"the document root"*, so the extension is the one the code was written for: at index 0 the parent is the document root, and its openness is `before.document_root_is_open`. Bonus, and it is the behaviour we want: with the root open, an op naming a concrete model (`openai.sdk`) becomes `CONCRETE_KEY_UNDER_OPEN_NODE` — a backend ledger may not address one user's model by name.
-- **F5 — `delete_key` with `table_path = ["*"]` does reach every root table.** `_expand_table_paths` seeds `[[]]`, and `_resolve_table` with an empty path returns the document itself, so the wildcard expands over every root key whose value is a table — `[defaults]` and every model entry alike. Proven by test in C1, not taken on trust.
-- **F6 — the defaults-layer rule is vacuous for an open root, for free.** `check_defaults_layer` skips any path with a `*` segment, and every path of this surface has one.
-- **F7 — the diagnosis needs one seam, and this is the item the plan missed.** An unknown *root* key resolves for free: `_resolve_against_schema` already falls back to the `*` child at the empty prefix, so `gpt-4o` lands on `*` with no change. But a **header-shaped per-model key** (`x-portkey-provider`, in the kit's `portkey.toml` and in every user's) resolves to neither `*.x-portkey-provider` nor `*.*`, so it would be reported `UnexplainedPath` — on **every** `pipelex migrate` run, since `migrate_file` diagnoses every file — and it would fail `test_no_surfaces_own_documents_carry_anything_the_diagnosis_cannot_explain` over the witnesses. Remedy: `diagnose_unexplained_paths` takes the surface (the runner already holds it at the call site) and asks `surface.admits_unnamed_key(node_path=…, key=…)` before reporting. For `MODEL_SPEC_TABLES` that is *the node is a model-spec table (`("*",)`) and the key is header-shaped with a legal header name* — deliberately narrower than "the model allows extras", so a genuine typo (`promting_target`) is still named. **Rejected alternative:** a per-record `accepts_unnamed_keys` on `PathFingerprint`. It is too coarse — it would silence exactly the key class this session exists for — and it would add a line to all ~200 records of every head golden.
-- **F8 — two real-surface tests must change; they are the named exceptions to "absorbed without edits".** `test_the_registry_loads` pins the exact surface-id list, and `test_every_surface_has_a_reachable_defaults_layer` asserts `read_defaults_document()` is *truthy*, which is false for a surface that honestly has no defaults document (D3). The second is amended to state the rule per kind rather than by a truthiness proxy. `test_replay_properties.py` builds `REAL_SURFACES` at module level and the fourth surface joins its property runs automatically — watched, not pre-emptively changed.
-- **F9 — there is no packaged (non-kit) backend directory** (`pipelex/inference/` does not exist), so both the reference document and the witnesses come from the kit. The kit's `pipelex_gateway.toml` is **comments only** — zero paths — which makes it a free witness and a poor reference document.
-- **F10 — the renumber needs one hand-edit per moved golden, which the plan's `git mv`/copy recipe does not mention.** A fingerprint golden carries `"schema_version"` in its body, and `read_fingerprint_golden` refuses a body that disagrees with its filename. `umig` reads the stored head *first* (the destructive-overwrite guard), so a moved `[email protected] → @3.json` still saying `2` makes `umig` raise before it writes. So: move, hand-edit the one version line, then `umig` must be a byte-pure no-op — and that no-op is the proof. Same for the `@1 → @2` copy, which is frozen and never regenerated.
-- **F11 — the loader reads the files `backends.toml` names, not a directory listing** (`f"{backends_dir_path}/{backend_name}.toml"`). So the boot-tolerance retry repairs what the loader *loaded*, while the walk repairs everything it *reaches* — the sentence Phase D owes a docstring. (`backends_dir_path` is a `str` in that API; the retry needs a `Path` at the edge.)
-- **F12 — whichever kit backend file becomes the reference document is now coupled to the goldens.** `_check_head_defaults_document` byte-compares `[email protected]` against it, so adding a model to that file turns `cmig` red until `make umig` runs. That is the designed workflow and the message says so, but the `add-model` skill should say it too (Phase E).
-
-**What Phase A actually built (`feae4db1a`), so the next session can read the diff rather than re-derive it:**
-
-- `Surface` gained `subdirectory: Path = Path()` (`Path()`, `Path("")` and `Path(".")` are all `PosixPath('.')`, and `directory / Path()` is `directory` — verified, so one neutral spelling and no special-casing). `base_file` became `str | None`, with a `check_the_surface_claims_some_file` validator refusing a surface that has neither a base file nor a glob.
-- `surface_for_file_name(file_name=…)` → **`surface_for_file(subdirectory=…, file_name=…)`**. Only surfaces owning the file's directory are candidates; exact names still claim before globs *within* that directory. `files_by_surface_in_directory(directory=…)` keeps its signature (the argument is still the configuration root) and now iterates `sorted({surface.subdirectory …})`, skipping a subdirectory that does not exist, one level, `is_file()` only, `sorted` within each.
-- Duplicate rejection is now per directory: `_reject_duplicates_per_directory` on `(subdirectory, base_file)` and `(subdirectory, tier_glob)`; surface ids stay globally unique. So two surfaces may both glob `*.toml` when they own different directories.
-- `SurfaceBlock` gained `subdirectory: str = ""` and `base_file: str | None`, with the same claims-something validator. `coverage._check_ledger_agrees_with_registry` cross-checks the directory alongside id/base_file/tier_glob, comparing `as_posix()` on both sides so `""` and `"."` cannot read as a disagreement.
-- `config_surface._is_within` now takes the **plan**, not a path, and asks `_subdirectory_owned_by(surface_id=…)`, which reads `load_ledger_cached(...).surface.subdirectory` and falls back to `Path()` on `MigrationLedgerError`. The kernel-layer rule holds: `config_surface.py` still does not import `surfaces.py`. Reach is per surface, so a `telemetry.toml` under `inference/backends/` stays out of reach.
-- Tests: new `tests/unit/pipelex/migration/test_surface_directories.py` (`TestADirectoryIsHalfTheClaim`) holds the collision rule; `test_surface_registry.py` gained the two glob-scoping cases and the claims-nothing refusal; `test_coverage_gate.py` gained `test_a_ledger_describing_another_directory_is_refused`; `test_boot_tolerance.py` gained the in-reach / out-of-reach pair against a synthetic ledger that declares a subdirectory, and `write_synthetic_ledger` gained a `subdirectory=` parameter. `conftest.py` exports `CONFIGURATION_ROOT = Path()` (a module constant, because pyright's `reportCallInDefaultInitializer` refuses `Path()` as a *parameter* default — it is fine as a pydantic field default).
-- **Both guards were mutation-tested.** Making the claim rule name-only again (`candidates = list(self.surfaces)`) reddens three of the four tests in `test_surface_directories.py`; hardcoding `subdirectory = Path()` in `_is_within` reddens `test_a_file_in_the_directory_its_surface_owns_is_in_reach`. Neither mutation was applied with git — the harness held the original text in memory and wrote it back.
-- Docs: `docs/migration-ledger.md` § Surfaces gained a **Directory** column and the (directory, name) claim rule replacing the exact-before-globs quote; § The commands' "the walk is not recursive" paragraph became "each surface's own directory, one level deep"; § Boot tolerance gained the reach-is-per-surface sentence; the registry-vs-ledger paragraph now says why the directory has a second reader. `run.py`'s module docstring rewritten the same way.
-- The three shipped ledgers needed **zero edits** and `make cl` / `make cmig` stayed green — the empty-subdirectory default is what buys that.
-
-**Gates at the Phase A commit:** `agent-check` clean, `cl` + `cmig` green, `tb` green, targeted suite green (`tests/unit/pipelex/migration/`, `tests/unit/pipelex/system/`, `tests/unit/pipelex/cli/`, `tests/e2e/pipelex/cli/`, `tests/integration/pipelex/system/` — 1674 passed), `docs-check` builds, `drift-check` green after acking `config-docs` (the ack text is in `.drift/acks/config-docs.toml`). The **full** `agent-test` has not been run yet; it is owed at CP1.
-
-**One local-environment event, done on Louis' explicit go:** `make tb` and `tests/integration/pipelex/system/test_load_config.py` were failing **at HEAD, before any of this work**, because this worktree's own gitignored `_backend/.pipelex/pipelex_override.toml` was still in the pre-reshape `[pipelex.*]` shape (proved by swapping the five source files back to their `HEAD` text and re-running). `pipelex migrate --yes` was run once; it rewrote exactly that one file, left `pipelex_override.toml.bak.20260817T113323Z` beside it, and touched nothing in `~/.pipelex/` (already at the current schema) — so the protected `~/.pipelex/inference/backends/` specimen is **untouched and still stale**, as S7's release step needs. `.gitignore` gained `*.bak.[0-9]*Z` so the timestamped copy `pipelex migrate` leaves in a project's `.pipelex/` is never committed — by us or by a user.
-
-**B1–B9 — Phase B designed against the code (the reading pass is done; these supersede the prose in the Phase B section below where they differ):**
-
-- **B1 — the open-root seed.** `compute_fingerprint` seeds `_walk_model(prefix=())` from `config_model.model_fields`. For an open root, call `_record_field(path=(WILDCARD_SEGMENT,), annotation=config_model, required=True, defaults_value=None, ancestry=(config_model,), collected=collected)` instead: because `config_model` is a `BaseModel`, `_record_field` writes `collected["*"] = PathFingerprint(value_type=TABLE_TYPE, required=True)` and then walks its fields under the `("*",)` prefix, giving `*.sdk`, `*.enabled`, … with **no phantom parent**. That is exactly the shape D3 asks for, and it needs no new branch inside `_record_field`. Add `document_root_is_open: bool = False` as a parameter of `compute_fingerprint` and as a field of `SurfaceFingerprint`; there are only two non-test callers, `Surface.fingerprint_at` and `coverage.check_surface:456`, and the latter should be switched to `surface.fingerprint_at(schema_version=current_version)` so the flag has one route.
-- **B2 — `_check_open_node_addressing` (F4) needs one edit.** Line ~395: `parent_record = before.paths.get(parent_path) if index else None`. Replace the two lines with `if index: parent_record = …; parent_is_open = parent_record is not None and parent_record.open_node` / `else: parent_is_open = before.document_root_is_open`. The message already renders `parent_label` as *"the document root"* at index 0, so nothing else changes. Red-first in `test_ledger_check.py`.
-- **B3 — the golden format moves for every surface, and that is expected.** `render_fingerprint_golden` dumps with `exclude_none=True`, **not** `exclude_defaults`, so a new `bool` field lands in every head golden as `"document_root_is_open": false` the first time `umig` runs. That is an *addition*, and `_refuse_a_destructive_head_overwrite` only refuses on removals and narrowings — so no `--force` is needed. Confirm `_check_head_link` compares parsed fingerprints (a stored golden lacking the key parses with the default) rather than text, and expect the `umig` diff to touch the three existing head goldens by one line each. **Measure this before writing the ledger**, and if `cmig` goes red on the three untouched surfaces, that is the thing to fix, not to regenerate around.
-- **B4 — `Surface.validate_document(*, document: dict[str, Any]) -> str | None`.** Returns the reason the current schema refuses the document, or `None`. **Returning a reason rather than raising is deliberate: it avoids a new error class, and therefore avoids `make gei` + `make gep` and the full-`agent-test`-only failure they cause.** `transform_check._check_the_migrated_document_is_accepted` (line ~226) calls it in place of `surface.config_model.model_validate(document)` and builds its `MIGRATED_DOCUMENT_REJECTED` issue from the returned string.
-- **B5 — the same function must not deep-merge for a copied document.** `_check_the_migrated_document_is_accepted` loads `after_text` (the `defaults@N` reference) and `deep_update`s the migrated text over it, because a migrated file is read *beneath* its defaults layer. A copied-document surface has no layer beneath it, and merging two independent backend files would validate a hybrid nobody has. Give `DefaultsLayerKind` a property — `is_layered_beneath_the_users_file` — returning `True` for `PACKAGED_DOCUMENT` and `MODEL_DEFAULTS` and `False` for `COPIED_DOCUMENT` (exhaustive `match`, no `case _`), and skip the base load when it is `False`.
-- **B6 — the loader-faithful validation, and where it lives.** `backend_library.load` reads one file, pops `[defaults]`, and for **each** remaining root table runs `split_model_spec_keys` (rejected keys are fatal for `LOCAL_FILE`) then `InferenceModelSpecBlueprint.model_validate({**defaults, **key_split.fields})`. Note the asymmetry that makes the `#1104` breakage double: **`[defaults]` is *not* passed through `split_model_spec_keys`** — it is copied wholesale into every model's blueprint dict, which is why one `prompting_target` there fails *every* table with `extra_forbidden`, while a per-model one is rejected by name as `NOT_HEADER_SHAPED`. Put both the projection and the validator in a new `pipelex/cogt/model_backends/model_spec_document.py`, so the loader and the surface cannot drift.
-- **B7 — the projection is a one-line subclass.** `class InferenceModelSpecFileNode(InferenceModelSpecBlueprint): sdk: str | None = None`. Subclassing makes the field-set drift test true by construction (nothing to keep in sync), and the guard that matters is the one D3 names: **no field of it is required** — which goes red the day a new required field lands on the blueprint. `sdk` still renders as `str` in the fingerprint, since `_strip_annotated` drops the `| None`; only `required` moves.
-- **B8 — the diagnosis seam (F7).** `diagnose_unexplained_paths` gains a `surface` parameter (its one non-test caller, `runner.py:124`, already holds one; `test_real_surfaces.py:48` and `test_diagnosis.py` call it directly and must be updated). In `_diagnose_table`, when `_resolve_against_schema` returns `None`, ask `surface.admits_unnamed_key(node_path=schema_prefix, key=key)` before reporting. For `MODEL_SPEC_TABLES` that is `node_path == (WILDCARD_SEGMENT,) and is_header_shaped(key=key) and is_legal_header_name(key=key)` — deliberately narrower than "the model allows extras", so `promting_target` is still named while `x-portkey-provider` is not. A hyphenated known field (`max-tokens`) is admitted here on purpose: the loader already rejects it by name with the right advice, and this channel has none to add. Confirmed by reading: a root **model name** (`gpt-4o`) already resolves for free, because `_resolve_against_schema` falls back to the `*` child at the empty prefix.
-- **B9 — the kit witnesses.** `kit_template_path: Path | None` gains a sibling `kit_template_dir: Path | None` (mutually exclusive, enforced by a validator), and `reference_documents()` enumerates that directory lazily — `is_file()`, matching the surface's own `tier_glob`, **excluding `reference_document_path` itself** so the reference document is not witnessed twice — labelling each `kit template '<name>'`. Lazy rather than a `list[Path]` resolved at registry-build time, because building the registry must not touch the filesystem. `_check_convergence` (`ledger_check.py:595`) is the only reader.
-
-**Commits on the branch:** `583f50de7 tidy`, `343bb3fa7 plan`, `34fefae4a S7b Phase 0`, `feae4db1a Migration walk: a surface owns a directory, and a file is claimed by (directory, name)`, `7a57f8dc5 S7b pause after Phase A`, `4237a51c5 The inference-backend surface: an open-root document, a copied-document defaults layer, schema 1 cut`, `81554b3bd inference-backend@2: delete prompting_target from every root table (pre-history)`, `c765430d4 pipelex-config@2: the prompting-style half of #1104 accounted for; the reshape becomes @3`, `c2a104a7a CP2 cleared: the two pre-history entries are built, and Phase D is next`, `b7f093c31 A stale backend directory boots with a warning and pipelex migrate repairs it in place`, `20d10c853 Phase D recorded: the fourth loader tolerates, and Phase E is next`, plus the Phase E commit below.
-
-**Open questions found while building:**
-
-- **B3's golden diff is the one unmeasured thing in the Phase B design.** *(Answered in Phase B: `cmig` stayed green over the three existing surfaces before any regeneration, and `umig` added one line to each head golden with no `--force`. Kept as the record of the prediction.)*
-- **Whether `pipelex_override.toml.bak.…` should be pruned.** `pipelex migrate` left one in this worktree's `.pipelex/`; it is now gitignored rather than deleted, and the rotation/pruning behaviour of `backup.py` was not looked at this session. Not S7b's business unless a reviewer raises it.
-- **A machine two entries behind on `pipelex-config` gets one backup, not two, and that is a claim about the runner rather than about the ledger.** The C2 e2e asserts exactly one backup after a run in which two entries applied to one file, which is right — a run writes a file once — but nothing in this session looked at what a *second* run a week later does to that backup, or whether backups accumulate per run. Same territory as the item above; a reviewer may join them.
-- **A second backend directory is repaired by the command but never by the boot, and nobody is told which.** `backends_dir_path` resolves per directory — a project's `.pipelex/inference/backends/` wins the *whole* directory over the global one — so a machine with both loads one and walks two. The warning names the files the load merged, which is right (it is a warning about what booted), and `pipelex migrate` repairs both, which is also right. What is not decided is whether the warning should *say* that the command reaches more than it names. Phase D put the asymmetry in the `load` docstring and left the message alone; a reviewer may want it in the message.
-- **The doctor emits the fourth surface's warning once more than a boot does.** `check_models` calls `ModelManager.setup`, so `pipelex doctor` on a stale machine prints the stale-configuration warning *and* shows the pending-migrations row. Arguably right — they say different things — but nobody chose it deliberately, and `pipelex doctor --fix` therefore warns before it offers the fix.
-- **The `pipelex-config@2` guidance says a tuned `prompting_styles` map is dropped, and nothing tells the user what was in theirs.** The standing rule is that no value from a user's file is ever rendered, so the map cannot be echoed — but the backup beside the file has it, and the guidance does not say so. *(Phase E answered the half it could without touching a shipped message: the **changelog** bullet now says the backup is where the old map remains readable. The ledger entry's own `guidance` string is still silent, and changing it is still a wording call on a shipped message — left to a reviewer.)*
-
-**Open questions Phase E found, none of which it resolved. These are the three a reviewer is most likely to raise, so the PR description should name them first.**
-
-- **`check-config-sync` excludes by exact file name, and a migration backup's name contains a timestamp — so it can never be listed.** `pipelex migrate` writes `<file>.bak.<UTC stamp>` beside every file it rewrites, and `.gitignore` has covered that shape since Phase A (`*.bak.[0-9]*Z`), but the sync checker compares two directories **on disk** and does not read `.gitignore`. So any contributor who runs `pipelex migrate` inside a pipelex checkout fails `make check` afterwards — and **the failure's own recommended action makes it worse**: it says *"If .pipelex is correct, run make ukc"*, which would rsync their timestamped backups into `pipelex/kit/configs/`, from where they would be committed and shipped in the package. S7b makes this likelier rather than causing it (more files migrated, more backups, and now in `inference/backends/` too). The fix is pattern exclusion — `has_diff_dirs` takes only `exclude_files: AbstractSet[str]` today — and the reason it was **not** taken in Phase E is a real design question rather than timidity: the backup-name shape is already spelled in two places (`BACKUP_INFIX` + `_BACKUP_STAMP_PATTERN` in `pipelex/migration/backup.py`, and `.gitignore`), and `pipelex/kit/paths.py` cannot simply import the first — `backup.py` reaches `pipelex.pipeline.fixes.file_transaction`, the interpreter layer. So a third spelling, or a layering decision, is owed. Not S7b's, but S7b's neighbour.
-- **A backend file carrying the reserved `[meta]` table would be refused by the loader, though the migration engine reads the key there.** Every other configuration surface's loader strips `[meta]` through `config_surface`; the backend loader reads through the generic `load_toml_from_path` and would see `[meta]` as one more root table — that is, as an unknown model spec. The contract says the key is reserved on every configuration surface, and the fourth surface is the one where that is not yet true. **Nothing writes the key on any surface today** (the changelog says so explicitly: it exists so a later release can stamp a version without that being breaking), so this is latent and not live — but it becomes live the day anything stamps one, and the wildcard `["*"]` in `inference-backend@2` would also expand over a `[meta]` table if one existed. The docstring in `config_surface.py` now records the asymmetry rather than denying it.
-**Open questions the CP3 review added. None is S7b's to fix, and each was measured rather than suspected.**
-
-- **A blocked `pipelex-config@2` has already deleted the table its move was supposed to empty.** `pipelex-config@2` is the first shipped entry whose ops are a `move_key` out of a table followed by a `delete_table` of that table, and the engine commits whichever ops applied even when one conflicts (`_apply_safe_entry` returns `application.text`, and the runner writes on `did_change_document`). Reproduced: a half-hand-migrated file — the new `[pipelex.templating_config].default_templating_style` already set, the old `[pipelex.prompting_config]` still present — comes out with the old section gone while the entry is reported blocked. **It is milder than it first looks, and the report is why:** `_print_blocked_entry` lists every op that *did* apply, so the two deletes are named on screen; `needs_attention` is set; and the conflict is by definition "the destination is already present", so the source value lost is always the one the user superseded themselves, with the backup beside the file holding it. What remains is that the entry's `guidance` asserts *"`default_prompting_style` travels"* directly under a conflict where it did not. Either roll an entry back on conflict, or word the guidance so it does not promise the move. Pre-existing engine behaviour; this entry is the first shaped to expose it.
-- **A retired field carrying `${VAR}` is expanded before the ledger can delete it.** `_load_local_model_specs` substitutes immediately after reading, and the retry only runs after the spec build fails — so a retired key holding an unresolvable variable becomes an `InferenceBackendCredentialsError`, fatal in strict mode and *silently skipping the whole backend* in lenient mode, with no stale warning parked at all. Not reachable for `prompting_target` (every kit file shipped it as a literal), but it is the shape to check the next time an entry retires a field that could hold a variable.
-- **`pipelex doctor` on a stale machine now says it twice, and nobody chose that.** *(Carried forward from Phase D and still open.)* `check_models` calls `ModelManager.setup`, which is the one caller that emits the parked warning — so the doctor prints the stale-configuration warning **and** shows the pending-migrations row, and `doctor --fix` therefore warns before it offers the fix. Arguably right, since the two say different things; but it was a consequence, not a decision.
-
----
-
-## Phase 0 — re-measure, then read the seams (no code)
-
-Read-only. Nothing is written but this file's Status block.
-
-- [x] Re-verify the venue: `git fetch origin dev && git rev-list --left-right --count origin/dev...HEAD` (expect `0 1` or `0 N` — never `M N` with `M > 0`; if `dev` has moved, `git merge origin/dev` first, never rebase, and re-run the gates before going on). `git status --short` empty.
-- [x] Re-measure the breakage on this laptop, read-only: `grep -rn prompting_target ~/.pipelex/inference/backends/` finds it; run the loader probe from the substance § *Reproducing the evidence* against `~/.pipelex/inference/backends/openai.toml` and `portkey.toml` from `.venv/bin/python` — expect `extra_forbidden ('prompting_target',)` from the `[defaults]` merge and *"'prompting_target' is not a known model-spec field, and not header-shaped"* per per-model occurrence. **If a `pipelex init --reset` has been run since and the key is gone, find another stale specimen (a teammate's machine, or a `git show 60aa77f5^:pipelex/kit/configs/inference/backends/portkey.toml` copy planted in a temp HOME) before building against a dead premise — and say so in Status.**
-- [x] Read, in this order, so the design items in Phase A/B are built against the code and not the plan: `pipelex/migration/surfaces.py` (the `Surface` model, `surface_for_file_name`, `files_by_surface_in_directory`, `build_config_surface_registry`), `pipelex/migration/run.py` (the "walk is not recursive" docstring — it becomes false), `pipelex/migration/fingerprint.py:160-311` (`compute_fingerprint` seeds `prefix=()`; open nodes are `dict[str, X]` fields recorded under a literal `*`; `extra="allow"` keys are invisible; a `RootModel` projects a phantom `root.` prefix), `pipelex/migration/ledger.py:43-66` (`SurfaceBlock`) and `:175-196` (id ↔ version ↔ `current_schema_version` are forced to agree), `pipelex/migration/coverage.py:143-146, 223-266, 415-446, 496-519, 522-584` (pre-history claim, defaults-layer rule, ledger-vs-registry cross-check on exactly `id`/`base_file`/`tier_glob`, stored links), `pipelex/migration/ledger_check.py:157-163, 224-315, 595` (pre-history entries skip the walk entirely; `_check_open_node_addressing`; `_check_convergence` is the only reader of `reference_documents()`), `pipelex/migration/transform_check.py:130-149, 226-255, 279-315` (how `before@N` and `defaults@N` are consumed; the head-only "migrated document is accepted" check — **this validates the migrated document against `config_model`, and an open-root document cannot be validated that way; see Phase B**), `pipelex/migration/snapshot.py:47-104` (`umig` writes the head pair only, never `before@N`), `pipelex/migration/runner.py:296-325` and `backup.py:41-95` (backups land beside the file via `with_name`, so a subdirectory needs nothing there), `pipelex/system/configuration/config_surface.py` (`replay_surface_files_in_memory` **deep-merges** its paths — right for a tier stack, wrong for many independent backend files; `_is_within` says "directly, not underneath"; `stale_configuration_warning`), `pipelex/system/configuration/config_loader.py:129-151, 193-201, 430-487` (`existing_config_dirs` — the one derivation; `backends_dir_path` is resolved **per directory, project wins the whole directory** — different from the tiered merge; the copyable four-step tolerance pattern), `pipelex/system/pipelex_service/pipelex_service_config.py:59-75` (the smallest tolerance caller — the closest template), `pipelex/cogt/model_backends/backend_library.py:58-247, 291-326` (`load`, `_load_local_model_specs`, where a fourth caller hooks in), `pipelex/cogt/model_backends/model_spec_factory.py:18-74` (`InferenceModelSpecBlueprint`: `sdk` is the only required field; `ConfigModel` is `extra="forbid", strict=True`), `pipelex/cogt/model_backends/model_spec_keys.py:1-31, 138-174` (pure, silent, runs before log dispatch on some paths), `pipelex/cogt/models/model_manager.py:64-84` and `pipelex/runtime_boot.py:200-215, 480-505` (the boot path and where the parked warning is emitted), `tests/unit/pipelex/migration/conftest.py` (the synthetic-surface harness: `build_surface`, `build_entry(pre_history=…)`, `build_registry`), `tests/unit/pipelex/migration/test_migration_run.py:96-104` (the test that pins the *current* non-recursive rule with `inference/backends/pipelex_gateway.toml` as SPECIMEN — it flips meaning in Phase A), `tests/unit/pipelex/system/configuration/test_boot_tolerance.py`, `tests/e2e/pipelex/cli/test_migrate_commands.py:354-400` (`TestAPreReshapeMachine`), `docs/migration-ledger.md` § Surfaces (`:15-40`), § The commands (`:513`), § Boot tolerance (`:548`), § Reporting… (`:560`), the chain diagram (`:446`).
-- [x] Verify early the assumption R10's cost estimate rests on: **`cmig`, `umig`, `cl`, `pipelex migrate`, the `doctor` pending-migrations row, `/release` step 3b and the `add-migration` skill are all registry-driven** — grep confirms the dev CLI reaches only `build_config_surface_registry()` plus one top-level function each (`check_ledger_cmd.py`, `check_migration_schemas_cmd.py`, `update_migration_schemas_cmd.py`, `migration/run.py`). Record in Status whether that held (it is a **Record** obligation of the S7b row).
-- [x] Write D1–D4 into Status as *recommended*, with one sentence each, before any code. Phase A/B build to the recommendations; CP1 is where they get ratified or overturned.
-
-## Phase A — the walk reaches a subdirectory, and the claim rule becomes (directory, name)
-
-Pure registry/walk work; independent of D3. **The landmine test comes first.**
-
-- [x] **Red first — the collision test.** In `tests/unit/pipelex/migration/test_surface_registry.py` (or a new `test_surface_directories.py`): a registry with a `pipelex_*.toml`-globbed surface at the root and a `*.toml`-globbed surface at `inference/backends`; a temp directory holding `pipelex.toml`, `pipelex_override.toml`, `inference/backends/pipelex_gateway.toml`, `inference/backends/openai.toml`, `inference/backends/notes.md`, `inference/deck/x.toml`, `inference/backends.toml`. Assert: the two backend `.toml`s are claimed by the backend surface and **not** by the root surface (the `pipelex_gateway.toml` specimen, by name a `pipelex_*.toml` match); `notes.md`, `deck/x.toml` and `inference/backends.toml` are claimed by nobody; the root files are claimed by the root surface only. Mutation-test it: make the claim rule name-only again and watch it go red on `pipelex_gateway.toml`.
-- [x] `Surface` gains `subdirectory: Path` (relative; `Path()` / empty for the three existing surfaces — decide the neutral spelling once and use `Path(".")`-free comparisons; keep `frozen=True`, `extra="forbid"`). `base_file` becomes `str | None` (a family with no distinguished member has none) with a validator: at least one of `base_file` / `tier_glob` is set, and a surface with `base_file=None` **must** carry a glob.
-- [x] `SurfaceRegistry.check_no_surface_shadows_another`: duplicates are now rejected on `(subdirectory, base_file)` and `(subdirectory, tier_glob)` pairs, not bare strings — two surfaces in different directories may share a glob shape. Keep the surface-id uniqueness.
-- [x] `surface_for_file_name(file_name)` → `surface_for_file(*, subdirectory: Path, file_name: str)`: only surfaces whose `subdirectory` equals the file's are candidates; exact base files claim before globs **within that directory**; two globs claiming one file in the same directory stays a `MigrationRegistryError` by name (the contract's rule, unchanged). Update its one caller.
-- [x] `files_by_surface_in_directory(directory)`: for each surface, enumerate `directory / surface.subdirectory` with `iterdir()` (still one level, still `is_file()` only, still "a directory that does not exist is skipped, not refused" — a machine with no `inference/` is an ordinary machine); a symlinked file is still enumerated by `iterdir` and written through (keep the S7 asymmetry: resolve the parent, never the file). Return order stays deterministic (`sorted`).
-- [x] The ledger's `[surface]` block (`SurfaceBlock`) gains `subdirectory: str = ""` (TOML has no Path; convert at the edge) and `base_file` becomes optional there too; `coverage._check_ledger_agrees_with_registry` cross-checks the new field alongside `id`/`base_file`/`tier_glob` (it compares exactly those three today — extend the tuple, and add a red-first test in `test_coverage_gate.py` for a `subdirectory` disagreement). The three existing ledgers need **no** edit if the default is the empty subdirectory — verify `make cl`/`cmig` are still green with zero ledger changes before adding the fourth.
-- [x] `_is_within` in `config_surface.py`: "directly in one of these directories" must become "directly in the directory *this file's surface* owns under one of these roots". Recommendation: `MigrationPlan` already carries `surface_id`; read the surface's `subdirectory` from the cached ledger (`load_ledger_cached(...).surface.subdirectory` — `config_surface.py` already imports `pipelex.migration.ledger`, and may **not** import `surfaces.py`, which imports every config model into the kernel layer's closure) and compare `path.parent.resolve()` against `root.resolve() / subdirectory`. `walked_dirs` stays the roots (`config_manager.existing_config_dirs`) for every caller, so the three existing loaders do not change and the "one derivation" property S7 fought for survives: the roots come from the loader, the subdirectory from the ledger the registry cross-checks. Red-first test in `test_boot_tolerance.py`: a stale plan for `<root>/inference/backends/openai.toml` is *in reach* under `walked_dirs=[root]`, and one for `<root>/inference/deck/x.toml` is not.
-- [x] Rewrite the three places that state the non-recursive rule as a guarantee: `pipelex/migration/run.py:19-23` docstring, `config_surface.py:186-206` docstring, `docs/migration-ledger.md:513` (§ The commands) — the new sentence: *the walk is each surface's own directory under each configuration root, one level, and a subdirectory no surface owns (`deck/`) is never entered*; keep `pipelex_gateway.toml` as the specimen, now for the (directory, name) rule. Flip `tests/unit/pipelex/migration/test_migration_run.py:96-104` from "the specimen is never claimed" to "the specimen is claimed by the backend surface and by nothing else" — once the fourth surface exists (Phase B); until then it must keep asserting the root surface does not claim it.
-- [x] `docs/migration-ledger.md` § Surfaces: describe `subdirectory` and the (directory, name) claim rule; § Legality → *Reserved paths and names* if it names the claim rule; the CHANGELOG bullet at `CHANGELOG.md:10` that says "not recursively, because a subdirectory such as `inference/backends/`…" is rewritten in Phase E, not now.
-- [x] Gates 1–5 (the drift contract `config-docs` will open on `config_surface.py` — review `docs/configuration/**` and `pipelex/migration/ledgers/` for real, then ack). Commit: `Migration walk: a surface owns a directory, and a file is claimed by (directory, name)`.
-
-## Phase B — the fourth surface: model, fingerprint shape, defaults-layer kind, schema-1 cut
-
-This is the central modelling phase. Item 4 of the substance is the question; the recommendation below is a starting point to be **measured** against `compute_fingerprint`, `_check_open_node_addressing`, `_check_the_migrated_document_is_accepted`, and `read_defaults_document`, and overturned if any of them says no.
-
-**The document shape.** A backend file is `[defaults]` + one root table per model name (+ header-shaped keys inside a model table). Neither `[defaults]` nor a model table is an `InferenceModelSpecBlueprint` on its own — only their merge is (`sdk` is required and normally lives in `[defaults]`). So the fingerprint must record the *file-node* shape: every root table is an all-optional partial spec, and the root itself is an open node.
-
-- [x] **The partial projection.** Recommendation: a mechanically-derived all-optional projection of `InferenceModelSpecBlueprint` (every field `X | None = None`, `extra="forbid"` irrelevant to the fingerprint since extras are invisible to it), produced by one function in the migration package (or beside the blueprint) so there is **one** field list — with a test pinning `set(projection.model_fields) == set(InferenceModelSpecBlueprint.model_fields)` so the two can never drift. Alternative if dynamic model creation reads badly under the python standards: an explicit hand-written `InferenceModelSpecFileNode` model beside the blueprint with the same drift test. Either way it is a **projection for the fingerprint and the transform check only** — the loader keeps validating the merge against the real blueprint; nothing about how a backend file boots changes here.
-- [x] **The open root.** `compute_fingerprint` seeds `prefix=()` from `config_model.model_fields`, so a `dict[str, Partial]` has to be a *field* to be recorded as an open node — which puts a phantom parent in every path (`models.*.sdk`) that no TOML document has, and a `RootModel` does the same with `root.`. Recommendation: give the surface a way to say *the document root is itself an open node whose value schema is `config_model`* — the smallest honest extension is a `Surface.document_root_is_open: bool` (name to taste) that `fingerprint_at` turns into a seed at path `("*",)` (one root open-node record with `open_node=True` and no parent, then the projection's fields beneath `*`), so the fingerprint records `*` and `*.sdk`, `*.enabled`, `*.model_type`, … and `[defaults]` is simply one of the `*` keys. Then `delete_key` with `table_path=["*"]`, `key="prompting_target"` addresses `*.prompting_target`, which is exactly the material the entry declares. **Measure `_check_open_node_addressing` against a root `*` before committing to this** — if it requires a recorded parent for the `*` segment, teach it that the root may be the open node (red-first test in `test_ledger_check.py`) rather than inventing a parent. Record the shape as built in Status and in `docs/migration-ledger.md` § The fingerprint.
-- [x] **The third `DefaultsLayerKind`** (D3). Recommendation, name to be ruled at CP1: `OPTIONAL_DOCUMENT` (*"the file is copied, not layered; every key of the document is optional at the document level and the model supplies the value, so an added field is absorbed by construction"*). What it means for the four readers of the kind:
- - `read_defaults_document()` → `{}`: there is no defaults document, and the defaults-layer rule (`coverage.check_defaults_layer` — every *required* path has a default) holds vacuously because the projection has no required path. Say so in the docstring; do not fake a document.
- - `render_reference_document()` → the **representative kit file**, e.g. the kit's `openai.toml`, named on the surface as `reference_document_path` (a new field, not a reuse of `packaged_document_path`, whose name means "merged beneath the user's file", which this is not). This is what `umig` snapshots as `[email protected]`, so a *later, non-pre-history* entry has a real starting document to be replayed over (`transform_check._read_document_the_entry_migrates_from`), and `coverage._check_head_defaults_document` keeps its byte-compare. It is the substance's item 5 answered before a second entry arrives. Alternative considered and rejected: no `[email protected]` for this kind — it works for a pre-history first entry (the head has no `after` and `_check_link` returns `[]`) and breaks the second entry.
- - `reference_documents()` → the reference document **plus every `*.toml` in the kit's backend directory** as convergence/neutrality witnesses (`kit_template_path: Path | None` generalises to `kit_template_paths`, or a `kit_template_dir` + glob — pick the smaller change; the three existing surfaces keep one path). More witnesses than any other surface has, at no cost, and it is exactly the set `pipelex init` copies. `_check_convergence` is the only reader (`ledger_check.py:595`).
- - the `check_defaults_layer_is_reachable` validator: extend the "packaged path ⇔ PACKAGED_DOCUMENT" pairing to "reference document path ⇔ OPTIONAL_DOCUMENT" and keep both mutually exclusive.
- - **`transform_check._check_the_migrated_document_is_accepted`** (head only) validates the migrated document against `config_model` — for an open-root document that means validating *each root table* against the projection (and, since the loader merges `[defaults]` into each model table, the honest acceptance check for this surface is *the merge of `[defaults]` and each model table validates against the real blueprint* — decide which, write it as a `Surface.validate_document(...)` seam the check calls, and say in its docstring which of the two it proves). Red-first test.
-- [x] **Register the surface** in `build_config_surface_registry()`: `surface_id = INFERENCE_BACKEND_CONFIG_SURFACE_ID` (spelled once in `config_surface.py` beside the other three — the constants comment there says "names the same three"; make it four), `title`, `subdirectory = Path("inference") / "backends"` (spell it from `config_loader`'s `INFERENCE_DIR_NAME` / `BACKENDS_DIR_NAME`, not a new literal), `base_file=None`, `tier_glob="*.toml"` (D1 — the `.md` files fall out by extension; `inference/backends.toml` is one level up and never enumerated), `config_model=<the projection>`, `document_root_is_open=True`, `defaults_layer_kind=<D3>`, `reference_document_path=<kit openai.toml>`, kit witnesses = the kit backend directory. Write the D1/D2 reasoning in the docstring right there (why not `backends.toml`, why not `deck/`, why not `routing_profiles.toml`).
-- [x] **The ledger at schema 1**: `pipelex/migration/ledgers/inference-backend.toml` with the `[surface]` block (`subdirectory = "inference/backends"`, no `base_file`, `tier_glob = "*.toml"`, `current_schema_version = 1`, `min_supported_schema_version = 0`) and zero entries. `make umig` writes `goldens/inference-backend/[email protected]` + `[email protected]`. **Read the `[email protected]` by eye**: it must show `*` as an open node and `*.<field>` for every blueprint field, no phantom prefix, no `prompting_target` (the schema-1 cut is post-`#1104`, which is what makes the entry pre-history).
-- [x] Extend `tests/unit/pipelex/migration/test_real_surfaces.py` (`TestTheRealRegistry`, `TestTheCheckedInGoldens`) — they iterate the registry, so they should pass unchanged; add the one assertion that is new: the backend surface's fingerprint has an open root. Update `test_migration_run.py:96-104` (the specimen is now claimed by `inference-backend`, and by nothing else). Add a real-directory test: a temp config root seeded with the **kit** backend directory (`get_kit_configs_dir()/inference/backends`) is walked and every `.toml` is claimed by the backend surface, the `.md`s by nobody, and `pipelex migrate --dry-run` over it reports every file clean (the kit is at the current schema — the convergence property, proved on the walk and not only in the gate).
-- [x] Gates 1–5, plus **the full `agent-test`** (no new error class was added, so `gei`/`gep` were not owed). Committed as `The inference-backend surface: an open-root document, a copied-document defaults layer, schema 1 cut` (the kind was ruled `COPIED_DOCUMENT`, not `OPTIONAL_DOCUMENT`), plus a second commit for the walk test and the ledger doc.
-
-### ⛔ CHECKPOINT CP1 — MANDATORY STOP **(Louis: ratify D1–D4)**
-
-- [x] Status block updated: the shape as built (fingerprint seed, kind name, reference document, witnesses), what `_check_open_node_addressing` and the acceptance check needed, and whether the registry-driven machinery absorbed the fourth surface without edits (name every file outside `surfaces.py` + the new ledger that had to change, and why).
-- [x] D1–D4 written as *recommended* with the measurement that supports each; the substance document's § Decisions owed updated (workspace repo, not committed by this session).
-- [x] Gates 1–5 green; committed; **not pushed** (nothing is outward-facing before CP3).
-- [x] STOP. Louis rules D1–D4 — **all four ratified as built, 2026-08-17, with no change requested.** Next session starts at Phase C.
-
-## Phase C — the two pre-history entries
-
-Both are legal under the rules as they stand; both are checked by the pre-history path (no walk: `coverage.py:143-146`, `ledger_check.py:157-163`), which is exactly what lets a `move_key` land on a destination the frozen previous fingerprint already has.
-
-### C1 — `inference-backend@2`
-
-- [x] **Red first**: a test in `tests/unit/pipelex/migration/` (beside `test_telemetry_back_entry.py`, e.g. `test_backend_back_entry.py`) that replays the packaged `inference-backend` ledger over a hand-authored pre-`#1104` backend document — `[defaults]` with `prompting_target`, one model table with it, one without, one header-shaped key (`x-portkey-config`) that must survive — and asserts: every `prompting_target` gone, every other key byte-untouched, the header key untouched, the replay is idempotent (second pass changes no bytes), the file then validates the way the loader validates it (merge `[defaults]` into each model, `InferenceModelSpecBlueprint.model_validate`, `split_model_spec_keys` reports nothing rejected).
-- [x] Bump `current_schema_version = 2` and append the entry: `id = "inference-backend@2"`, `to_schema_version = 2`, `introduced_in = "0.46.0"` (the reshape release; `/release` step 3b confirms it against the version actually cut), `breaking = true`, `safety = "safe"`, `pre_history = true`, title/description/guidance in the ledger's voice (guidance says: the key is deleted, not moved — the templating style is authored on the pipe now — and that a user's own unknown per-model key is *not* something this entry repairs, the loader's message names it), `declared_removed_paths = ["*.prompting_target"]`, and one op: `kind = "delete_key"`, `table_path = ["*"]`, `key = "prompting_target"`.
-- [x] Hand-author `goldens/inference-backend/[email protected]` from the pre-`#1104` kit shape (`git show 60aa77f5^:pipelex/kit/configs/inference/backends/portkey.toml` is the richest specimen — `[defaults]` *and* per-model occurrences); trim to a few tables; header comment in the style of `goldens/telemetry-config/[email protected]`; **no real value from any personal file**.
-- [x] `make umig` (head is now 2: writes `[email protected]` + `[email protected]`; `fingerprint@1` stays behind frozen; the two must differ by nothing — no removal, no narrowing — or `PRE_HISTORY_HAS_A_DIFF` fires, which is the point). `make cl` and `make cmig` green. If `_check_open_node_addressing` or `_check_pre_history_source_is_declared_material` refuse `*.prompting_target` at the root, that is a Phase B shape defect — go back, do not widen the declaration.
-- [x] Also verify by hand what the substance promises: `["*"]` at the root matches `[defaults]` **and** every model table (both are root tables), the wildcard is a legal `table_path` for `delete_key`, and the op skips silently on a file already at the new shape (every kit file: convergence).
-
-### C2 — `pipelex-config@2` (pre-history) and the reshape renumbered to `@3` (D4)
-
-- [x] **Red first**: extend `tests/e2e/pipelex/cli/test_migrate_commands.py::TestAPreReshapeMachine` (or a sibling class) with a v0.45.0-shaped `pipelex.toml` carrying `[pipelex.prompting_config]` (`default_prompting_style = { tag_style = "xml" }`) and `[pipelex.prompting_config.prompting_styles]` (a couple of targets) — the exact old shape is `git show v0.45.0:pipelex/pipelex.toml` lines 272–279 — and assert both loops carry it onto today's shape: `[inference.templating] default_templating_style = { tag_style = "xml" }`, no `prompting_config` anywhere, no `prompting_styles`, one backup, boot clean; and that the *packaged* `[email protected]` (which never carried `prompting_config`) is unaffected by the new entry (a no-op link).
-- [x] The ledger edit, atomic (`MigrationLedger.check_entries_are_contiguous_and_named_for_their_version` forces id ↔ version ↔ `current_schema_version`): `current_schema_version = 3`; **insert** before the reshape an entry `id = "pipelex-config@2"`, `to_schema_version = 2`, `introduced_in = "0.46.0"`, `breaking = true`, `safety = "safe"`, `pre_history = true`, title *"Prompting styles become a templating default"* (or better), description (what `#1104` did to the file), guidance (per-target styles are gone as a concept — the style is authored on the pipe (`templating_style` on a `PipeLLM`); a tuned per-target map is dropped, and the default travels), `declared_removed_paths` = `pipelex.prompting_config`, `pipelex.prompting_config.default_prompting_style`, `pipelex.prompting_config.prompting_styles` (+ its `*` value paths if the checks want them spelled), ops in this order: `move_key` `["pipelex","prompting_config"] default_prompting_style → ["pipelex","templating_config"] default_templating_style` (creates the destination block table when absent — the Phase-1 placement rule), `delete_table ["pipelex","prompting_config","prompting_styles"]`, `delete_table ["pipelex","prompting_config"]`. **The operations address the true historical spelling `pipelex.…`, before the reshape renames `[pipelex]` — that is why it goes before, not after.** Then the reshape entry: `id = "pipelex-config@3"`, `to_schema_version = 3`, nothing else in it changes (its `move_key pipelex.templating_config → inference.templating` is what carries the new entry's destination onward).
-- [x] The golden chain: `git mv goldens/pipelex-config/[email protected] [email protected]`, `git mv [email protected] [email protected]`; then **copy** `[email protected] → [email protected]` and `[email protected] → [email protected]` (the frozen no-diff link: nothing in the models changed between the two, so the "no removal" claim holds by construction and the reshape's derived accounting is unchanged — the `@2 → @3` diff *is* today's `@1 → @2` diff); hand-author `goldens/pipelex-config/[email protected]` (a small pre-`#1104` document: `[pipelex.prompting_config]` + `prompting_styles`, and one unrelated table so the neutrality of the other ops is witnessed). Then `make umig`: **the head (`@3`) is rewritten from live and must be byte-identical to the files `git mv` produced — `git diff --stat` on the goldens must show only the two copies and the `[email protected]`.** That diff is the proof the renumber was pure; paste its shape into Status.
-- [x] Update every place that quotes the old id or files: `CHANGELOG.md:31` (`pipelex-config@2` → `@3` in the reshape's `**Migration:**` bullet), `tests/e2e/pipelex/cli/test_migrate_commands.py:17, 358`, `tests/unit/pipelex/pipeline/fixes/test_fix_applier_config_surface_shapes.py:55`, and grep the tree (`git grep -n 'pipelex-config@2'` across `pipelex/ tests/ docs/ CHANGELOG.md .claude/ wip/`) — every hit is either the *new* pre-history entry or a stale quote of the reshape; there is no third kind. The tests that read `goldens/pipelex-config/[email protected]` as "the packaged file at schema 1" (`test_migrate_commands.py:9, 96, 117, 379`, `test_boot_tolerance.py:17, 62` and the others listed in the Phase 0 reading) — check each: after the renumber `defaults@2` is *still* the schema-1 shape (a copy), so most keep working by accident; make them read `[email protected]` where they mean "the pre-reshape document", so the meaning is spelled and not inherited from a copy.
-- [x] `test_boot_tolerance.py:15-20` module docstring ("the other two surfaces have empty ledgers today") goes stale — rewrite it.
-- [x] `make cl`, `make cmig`, `make tb`, and the targeted e2e (`.venv/bin/pytest -x -q tests/e2e/pipelex/cli/test_migrate_commands.py`) green.
-- [x] Commit C1 and C2 **separately**: `inference-backend@2: delete prompting_target from every root table (pre-history)` and `pipelex-config@2: the prompting-style half of #1104 accounted for; the reshape becomes @3`.
-
-### ⛔ CHECKPOINT CP2 — MANDATORY STOP
-
-- [x] Status: both entries recorded (ids, ops, declared paths), the `umig` byte-purity diff shape, anything the checks refused and how it was answered. **Nothing was refused** — `cl` and `cmig` were green on the first run after each half.
-- [x] Gates 1–5 green; committed; not pushed. Gate 4 (the **full** `agent-test`) ran to completion after both commits and reported all tests passed; gate 6 (`docs-check`) was not owed — Phase C touched no page under `docs/` — and gate 7 was answered by `tests/unit/repo/test_test_durations_paths.py`, which is green, so the renamed-test/`.test_durations` hazard did not fire.
-- [x] STOP. Next session starts at Phase D.
-
-## Phase D — boot tolerance at the fourth loader, and the end-to-end proof
-
-- [x] **Red first**: in `tests/unit/pipelex/system/configuration/test_boot_tolerance.py` (or a new `tests/unit/pipelex/cogt/model_backends/test_backend_boot_tolerance.py`): a temp `backends_dir_path` seeded from the kit's backend directory with `prompting_target` planted back into `openai.toml`'s `[defaults]` and into two of `portkey.toml`'s model tables (build the fixture by editing the kit copy programmatically — never from `~/.pipelex/`); `InferenceBackendLibrary.load(...)` over it **succeeds** in both `lenient` modes, the loaded model specs carry no `prompting_target` and everything else intact, and a stale-configuration warning is produced that names both files and `pipelex migrate` (in reach: the temp dir is passed as a walked root); a file with a *user's own* unknown key (`foo = 1` on a model) still fails exactly as before — tolerance is not leniency, and the ledger explains only what we removed; a stale `pipelex_gateway.toml` local-override file is repaired the same way (the served specs are untouched). Nothing is written to disk by the load (assert bytes unchanged).
-- [x] The implementation, following the four-step pattern of `pipelex_service_config.py:59-75` / `config_loader.py:459-487`: in `InferenceBackendLibrary`, when a LOCAL_FILE model-spec table is rejected (`key_split.rejected`) **or** the merged blueprint fails validation, and only then, replay the ledger over **that one file** (`replay_surface_files_in_memory(surface_id=INFERENCE_BACKEND_CONFIG_SURFACE_ID, paths=[path])` — one path per call, since the helper deep-merges its paths and backend files are independent documents; if a single-file variant reads better, add it beside the helper rather than bending the loop) — then re-run the loader's own steps over what comes back (variable substitution, `[defaults]` pop, `split_model_spec_keys`, the merge, `model_validate`) and, if that succeeds, keep the result and **park** the warning; if it does not, the original error stands (raise exactly what was raised before). Do the retry per file, once, and structure it so the happy path never imports the migration engine (the contract's "the healthy path is untouched" — `replay_surface_files_in_memory` already defers the engine import).
-- [x] **Where the warning goes.** `model_spec_keys.py` documents that this code runs before `runtime_hub.set_config()` on some paths, and `config_loader` parks its warning for the same reason. Recommendation: `InferenceBackendLibrary` gets `take_stale_configuration_warning()` on the same pattern as `ConfigLoader:62-70`, and `runtime_boot.py` emits it right after models-manager setup (find the spot beside `:210-211`; `doctor_cmd.py:1053-1054` likewise, and the `show_cmd.py:72-76` caller decides for itself — probably emit). `walked_dirs` = `config_manager.existing_config_dirs` (the roots — Phase A made `_is_within` resolve the surface's subdirectory from the ledger). Mind the layered resolution: `backends_dir_path` picks *one* directory (project wins the whole directory), so the files the loader replays are the ones under that directory; the walk still repairs both roots — the warning is about the files that were loaded, the command repairs everything it reaches. Say that in one docstring sentence.
-- [x] `runtime_boot.py:488-500` (`InferenceBackendLibraryNotFoundError` / `…ValidationError` → `PipelexSetupError`): unchanged in kind — the retry sits *inside* `load` and either recovers or gets out of the way.
-- [x] Update the `load` docstring (`backend_library.py:78-83`): leniency still covers credentials only; a stale file the ledger explains is now carried forward with a warning; a malformed file the ledger cannot explain stays fatal in both modes.
-- [x] **End to end, both loops** (`tests/e2e/pipelex/cli/test_migrate_commands.py`, a new class beside `TestAPreReshapeMachine`, e.g. `TestAStaleBackendDirectory`): temp HOME with `~/.pipelex/inference/backends/` seeded from the kit + `prompting_target` planted (and a `pipelex_gateway.toml` in it, so the collision is exercised on the real walk); `pipelex doctor` shows the pending-migrations row naming the backend files; `pipelex migrate --dry-run` lists them with op kinds only (**no value from the file rendered** — the standing rule); `pipelex migrate` rewrites each in place with **one backup per file beside it** (`openai.toml.bak.<stamp>`), a second run is a no-op with no new backup, the `.md` files and `inference/backends.toml` are never touched, and a subsequent boot is clean with no warning; the agent loop (`pipelex-agent migrate`, JSON) reports the same files and op kinds. Mutation-test the "no value rendered" assertion.
-- [x] Gates 1–5 (the `cli-docs` contract opens if `doctor_cmd.py` is touched — review `docs/tools/cli/` for real), full `agent-test`. Commit: `A stale backend directory boots with a warning and pipelex migrate repairs it in place`.
-
-## Phase E — docs, changelog, skills, the stale sentence, and the plan records
-
-- [x] `docs/migration-ledger.md` — **four of its items are already done** (Phase B did § Surfaces' fourth table row and its defaults-layer-kinds sentence, § The fingerprint's open root, § The defaults layer's copied-not-layered paragraph, and § Transform goldens' "beneath the defaults layer, not alone" clause; Phase A did `:513` and the claim rule). **What is left:** `:11` ("a new inference backend … content sync is out of scope") — sharpen: *the content* of a backend file (which models, which endpoints) is still content and out of scope; its *schema* (which keys a table may carry) is now a surface; `:374` "all three configuration surfaces" → write it so no count can go stale; `:548` "the three loaders" → the loaders (name the fourth); `:560` "an inference backend file … none of those has a ledger" → it has one now; the chain diagram `:446` unchanged in shape. Re-read the four already-done spots once against the finished code rather than trusting this note.
-- [x] `docs/configuration/config-technical/inference-backend-config.md`: one short section — *when you upgrade and a backend file is out of date*: what the boot says, that `pipelex migrate` reaches `inference/backends/`, what it will and will not touch (your own unknown key is yours), backups beside the file. Keep it in the page's existing voice; `docs/configuration/index.md:35` gets the one-clause note that backend files are migratable. `make docs-check`.
-- [x] `CHANGELOG.md` (Unreleased): `:10` — rewrite the "not recursively, because a subdirectory such as `inference/backends/`…" sentence to the new rule; `:20` — "each of the three configuration surfaces … all three start at schema version 1" → mention the fourth (`inference/backends/*.toml`) and its ledger; `:31` — the reshape bullet's entry id → `pipelex-config@3` (done in C2, re-check); add two `**Migration:**` bullets in the condensed house style (bold label + 2–4 sentences): the backend entry `inference-backend@2` — *run `pipelex migrate` after upgrading; a stale backend directory boots with a warning until you do* — and `pipelex-config@2` for the prompting-style half of the templating change (and one clause that the reshape entry is now `@3`). Do not mention `wip/` docs.
-- [x] `.claude/skills/add-migration/SKILL.md:17-22` — the surface list gains the fourth (or stops enumerating); § *Special case: a change that predates the first fingerprint* — add the one procedure it lacks and this session performed: **inserting a pre-history entry below existing entries** (renumber, `git mv` the goldens, copy the frozen link, hand-author `before@N`, `umig` must then be a byte-pure no-op on the head — that no-op is the proof). `.claude/skills/release/SKILL.md` step 3b: nothing to change unless the entry-id diff logic assumes ids never move — read `:76-83` and decide; if a renumbered id would read as "a new breaking entry without a bullet", say in the skill that a renumber shows up as two ids and both need the changelog to mention them.
-- [x] `pipelex/system/configuration/config_surface.py:4-5, 100-102` ("all three", "the same three") — the module docstring and the constants comment.
-- [x] `tests/unit/pipelex/migration/test_transform_check.py:242` docstring ("all three surfaces are in today") — reword.
-- [x] `wip/prompting-style/templating-style-implementation-plan.md:184` § *Out of scope here*: since `#1109` a leftover per-model `prompting_target` is a **hard error** (`NOT_HEADER_SHAPED`, fatal even leniently), not a silent outbound header — correct the sentence, and add that the sweep's scope is the repositories we ship, while a user's machine is what the `inference-backend@2` ledger entry now repairs.
-- [x] **Added by Phase D — three spots it touched or created that Phase E must finish.** (a) `docs/tools/cli/migrate.md`'s § *What it touches* was rewritten in Phase D because it had become false; re-read it once against the finished walk, and check § *The warning that sends you here* now that a fourth loader emits one. (b) `describe_op`'s wildcard wording is new user-facing text — if `docs/migration-ledger.md` quotes a rendered operation anywhere, it must match. (c) the fourth loader parks its warning and `ModelManager.setup` emits it, which is **not** where `docs/migration-ledger.md` § *Boot tolerance* says warnings come from for the other three; say what this one does and why (the doctor's per-backend probe).
-- [x] Gates 1–8, including `make check` and the **full** `agent-test`. Commit: `Docs and changelog for the fourth surface and the two pre-history entries`.
-
-### ⛔ CHECKPOINT CP3 — MANDATORY STOP (pre-PR)
-
-- [x] Status: every phase ticked; the S7b **Record** fields drafted here — decisions D1–D4 as taken; whether the registry-driven machinery absorbed the fourth surface without edits (name the exceptions); anything the tool got wrong on the *fixture* backend directory; the read-only `pipelex migrate --dry-run` report shape against **this laptop's real** `~/.pipelex/inference/backends/` (paths and op kinds only — never values; `--dry-run` only, the real run is S7's first-machine step).
-- [x] The workspace plan docs updated and named in the hand-off (not committed by this session): `wip/migrator-3/sequencing.md` S7b row + a session record; `wip/migrator-3/backend-config-surface.md § Decisions owed`; `wip/migrator-3/README.md` — the `Scope` row of the key design decisions amended per R10 (backends are a surface; language and plugins still separate projects); `wip/migrator-3/plan.md § Checkpoint D` gains the S7b record placeholder.
-- [x] `git rev-list --left-right --count origin/dev...HEAD` re-checked — `0 14` on 2026-08-17, `dev` has not moved from `61c4786b6`, so no merge is owed; if `dev` moved, `git merge origin/dev` (never rebase), gates again.
-- [ ] STOP. Louis' go to push and open the PR — everything before this line is local; the push is the first outward-facing action.
-
-## Phase F — the PR, the review rounds, the merge
-
-- [ ] `git push -u origin feature/Backend-surface`; open the PR **against `dev`** titled *The inference-backend surface: a fourth migration surface, and the two pre-history entries #1104 left behind* — description opens with why it blocks the release (one paragraph from the top of this file), then the four decisions as taken, then the byte-purity proof of the renumber, then the first-machine dry-run shape.
-- [ ] Bot review rounds (Codex, Greptile, Cubic — the pattern of #1113–#1115): fix real findings on the branch, answer and resolve every thread; **defer** design-tradeoff findings into `wip/migrator-3/` (workspace) or `wip/` here with an owner, per the standing feedback (a deferral is a recorded item, not an open thread nobody will read again). Re-run gates 1–8 after each round.
-- [ ] `make check` and full `agent-test` green on the final head; PR `MERGEABLE`/`CLEAN`.
-
-### ⛔ CHECKPOINT CP4 — MANDATORY STOP **(Louis go: merge)**
-
-- [ ] Louis merges (squash) to `dev`. Record the PR number and the `dev` merge commit in Status and in `wip/migrator-3/sequencing.md`'s S7b row; verify `git diff --stat origin/dev feature/Backend-surface` is empty after the squash; delete the branch local and remote with `-d` after that check; **the worktree `_backend/` may be removed** (its two records live on `dev` once merged — this file included, if kept; otherwise archive this file into `wip/migrator-3/` per the house rule that the root `TODOS.md` belongs to the work in flight).
-- [ ] STOP. **S7's release step resumes** in `pipelex/` on `dev` — its first line is still restoring this laptop's two `*.pre-reshape.bak` files, and it now has a second thing to prove: the global `inference/backends/` directory migrated **by the tool**, then a clean boot. That is a different session, in a different venue, on Louis' go.
-
-## Known traps and open risks (read before each phase)
-
-- **The pre-history checks skip the walk** (`coverage.py:143-146`, `ledger_check.py:157-163`) — that is why a `move_key` onto a destination the frozen previous fingerprint already has does not trip `DESTINATION_OCCUPIED`, and why every op is instead checked against `declared_removed_paths` at its **literal, pre-entry path** (`_check_pre_history_source_is_declared_material`, no rename chaining). Declare every path an op addresses.
-- **`PRE_HISTORY_HAS_A_DIFF`** fires if the fingerprint pair around a pre-history entry shows any removal or narrowing. For `pipelex-config@2` the pair is (`@1`, a copy of `@1`) — trivially no diff. For `inference-backend@2` it is (`@1`, `@2`) both cut on today's projection — same. If either fires, the goldens were not what the plan says; do not `umigf` your way past it.
-- **`umig` rewrites the head only and refuses a destructive overwrite**; after the renumber the head `@3` must come out byte-identical to the moved `@2` files, and after the backend cut `@2` must equal `@1` but for the version label. Any other diff is a finding.
-- **`replay_surface_files_in_memory` deep-merges its paths** — one path per call for backend files.
-- **`_is_within` resolves the parent, never the file** — keep the S7 asymmetry when it learns about subdirectories (a symlinked backend file out to a dotfiles repo is in reach).
-- **`backends_dir_path` is resolved per directory, project wins the whole directory** — the walk repairs both roots; the loader loads one. Not a bug; a sentence in a docstring.
-- **`extra="allow"` keys are invisible to the fingerprint**, a `RootModel` projects a phantom `root.`, and `compute_fingerprint` seeds `prefix=()` — the open-root seed is the smallest change that makes the paths honest; measure before building.
-- **`InferenceModelSpecBlueprint.sdk` is required** — a `MODEL_DEFAULTS` surface on it raises `MigrationRegistryError` at registry build (`surfaces.py:149-163`); the projection is what makes the surface buildable.
-- **Two `.md` files live in the backend directory** (`pipelex_gateway_models*.md`) and `pipelex_inference.toml` (not kit-shipped) is beside them on this laptop — the glob `*.toml` and the (directory, name) rule handle both; the tests must include both shapes.
-- **`config_surface.py` may not import `surfaces.py`** (kernel-layer closure; `check-hub-layering` chases `interpreter_hub` only, so only the full `agent-test` would see it — see the memory note). Read the subdirectory from the ledger, not the registry.
-- **`.claude/skills/add-migration` says never hand-edit a golden** — copying `fingerprint@1 → @2` and `git mv @2 → @3` is the one sanctioned exception, and its proof is that `umig` is a no-op afterwards; write that into the skill (Phase E) so the next person is not left to argue it.
-- **No hardcoded counts** in the docs you touch — "the four surfaces" is the same trap "the three surfaces" was; write "every surface" where the number is not the point.
diff --git a/wip/migrator/migrator-what-we-built.html b/wip/migrator/migrator-what-we-built.html
deleted file mode 100644
index e5fd9117c..000000000
--- a/wip/migrator/migrator-what-we-built.html
+++ /dev/null
@@ -1,572 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>Configuration migration: repairing a user's file instead of throwing it away</title>
-<style>
- :root {
- --bg: #fbfbfa;
- --surface: #ffffff;
- --surface-2: #f4f4f2;
- --ink: #1a1a18;
- --ink-soft: #55554f;
- --ink-faint: #85857c;
- --rule: #e2e2dc;
- --accent: #9a3412;
- --accent-soft: #fdf0e8;
- --bad: #b42318;
- --bad-soft: #fdf1f0;
- --good: #2b6a45;
- --good-soft: #edf6f0;
- --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
- --sans: ui-sans-serif, -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
- }
- @media (prefers-color-scheme: dark) {
- :root {
- --bg: #16171a;
- --surface: #1d1f23;
- --surface-2: #24262b;
- --ink: #e9e9e4;
- --ink-soft: #b3b3ab;
- --ink-faint: #85857c;
- --rule: #33363c;
- --accent: #f0a072;
- --accent-soft: #2c2018;
- --bad: #f0837a;
- --bad-soft: #2d1c1b;
- --good: #7cc59b;
- --good-soft: #172a20;
- }
- }
- * { box-sizing: border-box; }
- body {
- margin: 0; background: var(--bg); color: var(--ink);
- font-family: var(--sans); font-size: 16px; line-height: 1.62;
- -webkit-text-size-adjust: 100%;
- }
- .wrap { max-width: 62rem; margin: 0 auto; padding: 3rem 1.25rem 6rem; }
- header.masthead { border-bottom: 2px solid var(--ink); padding-bottom: 1.25rem; margin-bottom: 2rem; }
- .eyebrow {
- font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
- color: var(--accent); margin: 0 0 .6rem;
- }
- h1 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); line-height: 1.15; margin: 0 0 .7rem; letter-spacing: -.02em; }
- .standfirst { font-size: 1.06rem; color: var(--ink-soft); margin: 0; max-width: 48rem; }
- .meta { font-family: var(--mono); font-size: .78rem; color: var(--ink-faint); margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
- h2 {
- font-size: 1.3rem; margin: 3rem 0 1rem; letter-spacing: -.01em;
- padding-top: 1.2rem; border-top: 1px solid var(--rule);
- }
- h3 { font-size: 1.02rem; margin: 1.8rem 0 .6rem; }
- p { margin: 0 0 1rem; }
- a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
- code { font-family: var(--mono); font-size: .87em; background: var(--surface-2); padding: .12em .35em; border-radius: 3px; }
- pre { margin: 0; overflow-x: auto; background: var(--surface-2); border: 1px solid var(--rule); border-radius: 6px; padding: .9rem 1rem; }
- pre code { background: none; padding: 0; font-size: .8rem; line-height: 1.55; }
- ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
- li { margin-bottom: .4rem; }
-
- .tldr {
- background: var(--accent-soft); border: 1px solid var(--accent);
- border-radius: 8px; padding: 1.3rem 1.5rem; margin: 0 0 2rem;
- }
- .tldr h2 { margin: 0 0 .7rem; border: none; padding: 0; font-size: 1.05rem; font-family: var(--mono);
- letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
- .tldr p:last-child, .tldr ul:last-child { margin-bottom: 0; }
-
- .note { background: var(--surface); border-left: 3px solid var(--rule); padding: .8rem 1rem; margin: 0 0 1rem; font-size: .93rem; color: var(--ink-soft); }
- .note.warn { border-left-color: var(--bad); background: var(--bad-soft); color: var(--ink); }
- .note.ok { border-left-color: var(--good); background: var(--good-soft); color: var(--ink); }
-
- table { border-collapse: collapse; width: 100%; font-size: .89rem; margin: 0 0 1rem; }
- th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
- th { font-family: var(--mono); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
- .tblwrap { overflow-x: auto; }
-
- details { border: 1px solid var(--rule); border-radius: 6px; margin: 0 0 .8rem; background: var(--surface); }
- summary { cursor: pointer; padding: .65rem .9rem; font-weight: 600; font-size: .93rem; list-style: none; }
- summary::-webkit-details-marker { display: none; }
- summary::before { content: "▸ "; color: var(--accent); font-weight: 400; }
- details[open] summary::before { content: "▾ "; }
- details > div, details > pre { margin: 0 .9rem .9rem; }
- details > pre { margin-top: 0; }
-
- .cols { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 0 0 1rem; }
- @media (max-width: 42rem) { .cols { grid-template-columns: 1fr; } }
- .col-label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin: 0 0 .3rem; }
-
- figure { margin: 1.4rem 0; }
- figure svg { display: block; width: 100%; height: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; }
- figcaption { font-size: .82rem; color: var(--ink-faint); margin-top: .5rem; }
- .svg-box { fill: var(--surface-2); stroke: var(--rule); }
- .svg-box-a { fill: var(--accent-soft); stroke: var(--accent); }
- .svg-box-g { fill: var(--good-soft); stroke: var(--good); }
- .svg-box-b { fill: var(--bad-soft); stroke: var(--bad); }
- .svg-t { fill: var(--ink); font-family: var(--sans); font-size: 12px; }
- .svg-t-s { fill: var(--ink-soft); font-family: var(--sans); font-size: 10.5px; }
- .svg-m { fill: var(--ink); font-family: var(--mono); font-size: 11px; }
- .svg-line { stroke: var(--ink-faint); fill: none; stroke-width: 1.3; }
- .svg-arrow { fill: var(--ink-faint); }
-
- .diff-add { color: var(--good); }
- .diff-del { color: var(--bad); }
- .pillrow { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
- .pill { font-family: var(--mono); font-size: .74rem; border: 1px solid var(--rule); border-radius: 999px; padding: .15rem .6rem; color: var(--ink-soft); background: var(--surface); }
- footer { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: .84rem; color: var(--ink-faint); }
-</style>
-</head>
-<body>
-<div class="wrap">
-
-<header class="masthead">
- <p class="eyebrow">pipelex · v0.46.0</p>
- <h1>Configuration migration: repairing a user's file instead of throwing it away</h1>
- <p class="standfirst">
- We changed the shape of every configuration file pipelex reads — and built the machinery that
- makes that survivable on a machine that already has one. Migration is now recorded as data,
- replayed over real files, and enforced by gates that refuse a schema change nobody accounted for.
- </p>
- <div class="meta">
- <span>Release <strong>v0.46.0</strong></span>
- <span>9 merged PRs · <a href="https://github.com/Pipelex/pipelex/pull/1117">#1117 cuts the release</a></span>
- <span>Author-facing doc — for co-developers</span>
- </div>
-</header>
-
-<div class="tldr">
- <h2>TL;DR</h2>
- <p>
- <strong>The problem:</strong> a schema change used to be a landmine. <code>pipelex init</code> never
- overwrites, so every machine in the field kept its old file, and the next boot died on
- <code>extra="forbid"</code> naming a key the user never chose to have. The only remedy we could offer
- was <code>pipelex init</code> — which resets the file and discards their API keys, buckets and log levels.
- </p>
- <p>
- <strong>What we built:</strong> every configuration surface now carries a checked-in <em>ledger</em>
- recording each shape change as data. <code>pipelex migrate</code> replays it over a user's real files,
- in place, keeping their values and taking a timestamped backup. A stale-but-explainable config no
- longer stops the boot — it warns. Three gates make it impossible to land a schema change without the
- entry that repairs it.
- </p>
- <p>
- <strong>What you need to do:</strong> after pulling, run <code>pipelex migrate</code> once. If you touch
- a config model and <code>make cmig</code> refuses, invoke the <code>add-migration</code> skill — never
- regenerate the goldens to silence it.
- </p>
-</div>
-
-<h2>Why a "just edit the model" change was never just that</h2>
-
-<p>
- Three of the four surfaces below changed shape in this release, and each change was, by itself,
- reasonable. The reshape gave <code>pipelex.toml</code> a scheme. Retiring <code>prompting_target</code>
- made templating an authoring decision. Neither is controversial. What made them dangerous is that
- configuration files are <em>the user's</em>: we ship defaults, they edit and keep them, and we never
- overwrite. So a field we delete lives on in their file forever, and the strict loader that protects
- them from typos is exactly what turns our cleanup into their broken boot.
-</p>
-
-<p>
- The failure had a particularly bad shape. The error named a key — but not which file put it there,
- and certainly not whether that key was correct last month. A user reading
- <code>Extra inputs are not permitted: prompting_target</code> has no way to tell a typo from a field
- that we removed.
-</p>
-
-<h2>The ledger: a migration is data, not code</h2>
-
-<p>
- The core move is that a shape change is recorded, in a checked-in TOML file, as a list of structural
- operations. Not a Python function — data. That is what lets the same record be replayed by the
- command, rehearsed by the boot, verified by a gate, and read by a human.
-</p>
-
-<figure>
-<svg viewBox="0 0 720 250" role="img" aria-label="A ledger is a surface plus ordered entries, each entry a list of structural operations">
- <rect class="svg-box-a" x="8" y="12" width="180" height="60" rx="6"/>
- <text class="svg-t" x="22" y="34" font-weight="600">[surface]</text>
- <text class="svg-m" x="22" y="52">id, base_file,</text>
- <text class="svg-m" x="22" y="66">current_schema_version</text>
-
- <rect class="svg-box" x="8" y="90" width="180" height="66" rx="6"/>
- <text class="svg-t" x="22" y="112" font-weight="600">[[migration]] @2</text>
- <text class="svg-t-s" x="22" y="130">breaking, safety,</text>
- <text class="svg-t-s" x="22" y="146">pre_history, guidance</text>
-
- <rect class="svg-box" x="8" y="174" width="180" height="66" rx="6"/>
- <text class="svg-t" x="22" y="196" font-weight="600">[[migration]] @3</text>
- <text class="svg-t-s" x="22" y="214">ordered — @2 addresses</text>
- <text class="svg-t-s" x="22" y="230">the pre-rename spelling</text>
-
- <path class="svg-line" d="M188 123 H236"/>
- <polygon class="svg-arrow" points="236,119 246,123 236,127"/>
- <path class="svg-line" d="M188 207 H236"/>
- <polygon class="svg-arrow" points="236,203 246,207 236,211"/>
-
- <rect class="svg-box" x="250" y="86" width="200" height="74" rx="6"/>
- <text class="svg-t" x="264" y="108" font-weight="600">[[migration.ops]]</text>
- <text class="svg-m" x="264" y="126">move_key</text>
- <text class="svg-m" x="264" y="142">rename_key · delete_table</text>
- <text class="svg-m" x="264" y="156">remap_value · ensure_table</text>
-
- <rect class="svg-box" x="250" y="174" width="200" height="66" rx="6"/>
- <text class="svg-t-s" x="264" y="196">structural kinds only —</text>
- <text class="svg-t-s" x="264" y="212">an op that would WRITE a</text>
- <text class="svg-t-s" x="264" y="228">value is refused at parse</text>
-
- <path class="svg-line" d="M450 123 H498"/>
- <polygon class="svg-arrow" points="498,119 508,123 498,127"/>
-
- <rect class="svg-box-g" x="512" y="86" width="196" height="74" rx="6"/>
- <text class="svg-t" x="526" y="108" font-weight="600">replay over a real file</text>
- <text class="svg-t-s" x="526" y="128">text in → text out, plus a</text>
- <text class="svg-t-s" x="526" y="144">plan: applied / blocked /</text>
- <text class="svg-t-s" x="526" y="158">unexplained</text>
-
- <text class="svg-t-s" x="512" y="196">One record, four readers:</text>
- <text class="svg-t-s" x="512" y="212">the command, the boot,</text>
- <text class="svg-t-s" x="512" y="228">the gates, and a human.</text>
-</svg>
-<figcaption>A ledger is a surface header plus ordered entries. Order matters: the entry that carries <code>[pipelex.prompting_config]</code> forward sits <em>below</em> the reshape, because it addresses a spelling that only exists while the root table is still called <code>[pipelex]</code>.</figcaption>
-</figure>
-
-<details>
-<summary>The reshape entry, as it actually ships</summary>
-<pre><code>[[migration]]
-id = "pipelex-config@3"
-to_schema_version = 3
-introduced_in = "0.46.0"
-breaking = true
-safety = "safe"
-title = "The configuration reshape: one scheme for the root"
-
-# Children move out of [pipelex] BEFORE [pipelex] itself is renamed, so the
-# rename that follows carries only what belongs to the interpreter.
-[[migration.ops]]
-kind = "move_key"
-table_path = ["pipelex"]
-key = "storage_config"
-new_table_path = ["runtime"]
-new_key = "storage"</code></pre>
-</details>
-
-<h3>The four surfaces</h3>
-
-<div class="tblwrap">
-<table>
-<thead><tr><th>Surface</th><th>Files it claims</th><th>Schema</th><th>Ships in 0.46.0</th></tr></thead>
-<tbody>
-<tr><td><code>pipelex-config</code></td><td><code>pipelex.toml</code> + <code>pipelex_*.toml</code></td><td>v3</td><td><code>@2</code> templating, <code>@3</code> reshape</td></tr>
-<tr><td><code>telemetry-config</code></td><td><code>telemetry.toml</code> + tiers</td><td>v2</td><td><code>@2</code> flat → <code>[custom_posthog]</code></td></tr>
-<tr><td><code>inference-backend</code></td><td><code>inference/backends/*.toml</code></td><td>v2</td><td><code>@2</code> drop <code>prompting_target</code></td></tr>
-<tr><td><code>pipelex-service-config</code></td><td><code>pipelex_service.toml</code></td><td>v1</td><td>baseline, no entries</td></tr>
-</tbody>
-</table>
-</div>
-
-<p>
- The walk is deliberately narrow: the global <code>~/.pipelex/</code> and the project
- <code>.pipelex/</code>, <strong>those two only</strong>, one level deep, and into a subdirectory only
- when a configuration family owns it. <code>inference/backends/</code> is such a directory;
- <code>inference/deck/</code> is not and is never entered. A file is claimed by the <em>pair</em>
- (directory, name) — which is what stops <code>inference/backends/pipelex_gateway.toml</code>, a
- <code>pipelex_*.toml</code> match by name, from being rewritten under the main config's ledger.
-</p>
-
-<h2>Boot tolerance: a stale file warns, it does not stop the world</h2>
-
-<p>
- The command alone would not have been enough. A user upgrades, boots, and dies before they ever see
- a message telling them to run it. So when a surface fails to validate, its ledger is replayed over
- the same files <strong>in memory</strong> and the result re-validated.
-</p>
-
-<figure>
-<svg viewBox="0 0 720 300" role="img" aria-label="Boot tolerance decision flow">
- <rect class="svg-box" x="250" y="8" width="200" height="38" rx="6"/>
- <text class="svg-t" x="350" y="32" text-anchor="middle">load + validate config</text>
-
- <path class="svg-line" d="M350 46 V74"/>
- <polygon class="svg-arrow" points="346,74 350,84 354,74"/>
-
- <rect class="svg-box-g" x="486" y="56" width="222" height="38" rx="6"/>
- <text class="svg-t" x="597" y="80" text-anchor="middle">valid → boot. Zero cost:</text>
- <path class="svg-line" d="M450 75 H486"/>
- <polygon class="svg-arrow" points="486,71 496,75 486,79"/>
- <text class="svg-t-s" x="597" y="110" text-anchor="middle">the engine is never even imported</text>
-
- <rect class="svg-box-b" x="250" y="84" width="200" height="38" rx="6"/>
- <text class="svg-t" x="350" y="108" text-anchor="middle">invalid</text>
-
- <path class="svg-line" d="M350 122 V150"/>
- <polygon class="svg-arrow" points="346,150 350,160 354,150"/>
-
- <rect class="svg-box-a" x="228" y="160" width="244" height="42" rx="6"/>
- <text class="svg-t" x="350" y="178" text-anchor="middle" font-weight="600">replay the ledger IN MEMORY</text>
- <text class="svg-t-s" x="350" y="194" text-anchor="middle">nothing is written, ever</text>
-
- <path class="svg-line" d="M228 181 H120 V226"/>
- <polygon class="svg-arrow" points="116,226 120,236 124,226"/>
- <path class="svg-line" d="M472 181 H600 V226"/>
- <polygon class="svg-arrow" points="596,226 600,236 604,226"/>
-
- <rect class="svg-box-g" x="14" y="236" width="212" height="54" rx="6"/>
- <text class="svg-t" x="120" y="256" text-anchor="middle" font-weight="600">re-validates → BOOT</text>
- <text class="svg-t-s" x="120" y="273" text-anchor="middle">warn, naming the files and</text>
- <text class="svg-t-s" x="120" y="287" text-anchor="middle">`pipelex migrate`</text>
-
- <rect class="svg-box-b" x="494" y="236" width="212" height="54" rx="6"/>
- <text class="svg-t" x="600" y="256" text-anchor="middle" font-weight="600">still invalid → FAIL</text>
- <text class="svg-t-s" x="600" y="273" text-anchor="middle">the user's own error stands —</text>
- <text class="svg-t-s" x="600" y="287" text-anchor="middle">it names the key to fix</text>
-</svg>
-<figcaption>Tolerance widens what <em>starts</em>, never what is <em>accepted</em>: the re-validation is what decides, so material an <code>unsafe</code> entry is about still fails the boot because the model still refuses it.</figcaption>
-</figure>
-
-<details>
-<summary>Critical diff — the retry seam (<code>config_surface.py</code>)</summary>
-<div>
-<p style="font-size:.9rem;color:var(--ink-soft);margin:.8rem 0">
-Two things in here are load-bearing and easy to break. The import is deferred for an
-<em>architectural</em> reason, not for speed; and a file that cannot be read abandons the whole retry
-rather than being skipped.
-</p>
-</div>
-<pre><code><span class="diff-add">+ # Imported here rather than at module level, and the reason is architectural: the
-+ # engine's applier lives under an interpreter package, while this module sits in
-+ # runtime_hub's import closure — the kernel layer, which loads zero interpreter modules.
-+ from pipelex.migration.engine import replay_ledger_over_text # noqa: PLC0415
-+
-+ for path in paths:
-+ try:
-+ text = path.read_text(encoding="utf-8")
-+ except FileNotFoundError:
-+ continue
-+ except (OSError, UnicodeDecodeError):
-+ return None # <- abandon, do NOT skip: dropping a layer from the merge
-+ # could re-validate green and boot a config the user
-+ # does not actually have
-+ replay = replay_ledger_over_text(ledger=ledger, text=text)
-+ deep_update(merged, updates=tomlkit.loads(replay.text).unwrap())
-+
-+ if all(plan.is_clean for plan in plans):
-+ return None # <- the ledger has nothing to say; not staleness.
-+ # The caller's own error stands.</span></code></pre>
-</details>
-
-<div class="note">
- <strong>A healthy configuration pays nothing.</strong> It reads no ledger, re-parses no document, and
- does not even import the migration engine. That deferral is doubly required: the applier lives in the
- interpreter layer and the config loaders sit in the kernel layer, which must not load it.
-</div>
-
-<h2>The gates: you cannot land a schema change without accounting for it</h2>
-
-<p>
- A ledger nobody is forced to write is a ledger that will be forgotten on the one change that mattered.
- Three checks close that.
-</p>
-
-<div class="tblwrap">
-<table>
-<thead><tr><th>Gate</th><th>Question it asks</th><th>Runs in</th></tr></thead>
-<tbody>
-<tr>
- <td><code>make check-ledger</code><br><span class="pill">cl</span></td>
- <td>Is what this entry <em>says</em> legal, and is replaying it harmless? An op may only act on material some version removed; replaying the whole ledger over the reference documents must return the very bytes it was given.</td>
- <td><code>agent-check</code> + <code>check</code></td>
-</tr>
-<tr>
- <td><code>make check-migration-schemas</code><br><span class="pill">cmig</span></td>
- <td>Did a schema change go unaccounted for? Recomputes each surface's fingerprint and refuses a removed path, a lost enum spelling, or a narrowed value domain that no entry repairs. Also <em>performs</em> every migration against frozen before/after documents.</td>
- <td><code>check</code> only</td>
-</tr>
-<tr>
- <td><code>make up-migration-schemas</code><br><span class="pill">umig</span> <span class="pill">umigf</span></td>
- <td>Regenerates the goldens. Deliberately <strong>left <code>make up</code></strong> — rewriting a head golden after deleting a field erases the very removal the gate exists to catch.</td>
- <td>on purpose, by hand</td>
-</tr>
-</tbody>
-</table>
-</div>
-
-<div class="note warn">
- <strong>Because <code>cmig</code> is not in <code>agent-check</code>,</strong> an unaccounted schema change
- reaches a release unseen. That is why <code>/release</code> gained step 3b, which blocks on it and
- confirms a <code>**Migration:**</code> changelog bullet for every new breaking entry.
-</div>
-
-<h3>Catching a narrowing — the class of change that looks additive</h3>
-
-<p>
- A change can keep every path and every enumerated spelling and still break a user's file:
- <code>int</code> becomes <code>str</code>, a free string becomes an enum, a bound moves from
- <code>ge=1</code> to <code>ge=5</code>. Read as a path diff those look like <em>additions</em>, so the
- gate used to ask for a golden regeneration, demand nothing, and let the next boot reject a valid file
- with a green gate behind it. The verdict is now split by <strong>direction</strong>.
-</p>
-
-<p>
- To see a bound at all, the fingerprint has to record one — which is why
- <code>annotated-types</code> became a declared runtime dependency. It is a closed whitelist, and
- <code>pattern</code> is excluded permanently: regex containment is not decidable, so every pattern edit
- would read as a tightening and teach everyone to wave the gate through.
-</p>
-
-<details>
-<summary>Critical diff — the constraint whitelist (<code>fingerprint.py</code>)</summary>
-<pre><code><span class="diff-add">+ from annotated_types import Ge, Gt, Le, Lt, MaxLen, MinLen, MultipleOf
-+
-+ CONSTRAINT_ATTRIBUTE_BY_CARRIER: dict[type[Any], ConstraintKind] = {
-+ Gt: ConstraintKind.GT, Ge: ConstraintKind.GE,
-+ Lt: ConstraintKind.LT, Le: ConstraintKind.LE,
-+ MinLen: ConstraintKind.MIN_LENGTH,
-+ MaxLen: ConstraintKind.MAX_LENGTH,
-+ MultipleOf: ConstraintKind.MULTIPLE_OF,
-+ }
-+ # pattern is excluded ON PURPOSE and permanently.</span></code></pre>
-<div>
-<p style="font-size:.9rem;color:var(--ink-soft);margin:0 0 .8rem">
-The fingerprint is <em>not</em> raw <code>model_json_schema()</code> — that moves for reasons having
-nothing to do with our schema (ref layout, titles, ordering, pydantic's own version). A gate that cries
-wolf gets regenerated reflexively, and that is how a gate dies.
-</p>
-</div>
-</details>
-
-<h3>Replay neutrality, checked rather than asserted</h3>
-
-<p>
- The guarantee every machine depends on: replaying a ledger over a file <em>already valid</em> changes
- not one byte. The reference documents cannot prove it — they carry exactly one value per key, so they
- never reach the other legal spelling of an enumerated field. <code>hypothesis</code> (dev-only) generates
- documents that do, and checks neutrality, idempotence and prefix coherence.
-</p>
-
-<div class="note ok">
- Each generator carries its own <strong>vacuity check</strong> —
- <code>test_the_generator_does_not_merely_re_emit_the_reference_document</code>,
- <code>test_the_generator_reaches_every_mutation_kind</code>. Every one of these properties is trivially
- true over documents nothing acts on, so without those guards a green suite would prove nothing.
-</div>
-
-<h2>The breaking changes that rode along</h2>
-
-<details>
-<summary>The configuration root reshaped — <code>pipelex-config@3</code></summary>
-<div class="cols">
- <div>
- <p class="col-label">before</p>
- <pre><code>[pipelex.log_config.rich_log_config]
-[pipelex.storage_config]
-[cogt.llm_config.instructor_config]
-[plugins]
-[migration.migration_maps]
-session_id = "..."</code></pre>
- </div>
- <div>
- <p class="col-label">after</p>
- <pre><code>[runtime.log.rich_log]
-[runtime.storage]
-[inference.llm.instructor]
-[runtime] / [inference]
-[interpreter] / [kit]
-# dropped</code></pre>
- </div>
-</div>
-<div>
-<p style="font-size:.9rem;color:var(--ink-soft);margin:0 0 .8rem">
-Four roots mirroring the layers the code already had. The redundant <code>_config</code> suffix goes at
-every depth — <em>class</em> names keep theirs, because the redundancy was in the key, not the type.
-Three things are dropped rather than moved: <code>[migration.migration_maps]</code>,
-<code>session_id</code>, and <code>plugins.boot_orchestrator</code> (now strictly a boot argument).
-</p>
-</div>
-</details>
-
-<details>
-<summary>Templating style is now an authoring decision — <code>pipelex-config@2</code> + <code>inference-backend@2</code></summary>
-<div>
-<p style="font-size:.9rem;color:var(--ink-soft);margin:.8rem 0">
-How a pipe's inputs are tagged into a prompt is declared <em>on the pipe</em>, not inferred from the
-model — so the same method renders the same prompt shape everywhere. The global default is now XML tags
-instead of back-ticks, which means <strong>every prompt rendered for an OpenAI-family model changes
-shape</strong>. Compose, image-gen, search and structuring prompts follow the same default.
-</p>
-<p style="font-size:.9rem;color:var(--ink-soft);margin:.8rem 0">
-This is the change that created the <code>inference-backend</code> surface. <code>#1104</code> deleted
-<code>prompting_target</code> from every backend file we ship — but those files were reachable by no
-surface, no walk and no gate, so the key survived on every installation that predates it, where it is
-fatal twice over: in <code>[defaults]</code> it is copied wholesale into every model of the file, and on
-a single model it is rejected by name.
-</p>
-</div>
-</details>
-
-<details>
-<summary>Unknown per-model backend keys must be header-shaped</summary>
-<div>
-<p style="font-size:.9rem;color:var(--ink-soft);margin:.8rem 0">
-An unrecognised key in a per-model table is sent to the provider as an HTTP header. That mechanism is
-now documented and gated on shape: it must contain a hyphen. A typo like <code>max_tokns</code> used to
-go out on the wire silently while the real setting stayed unset; it now fails the boot naming the key,
-the model and the file. The key must also be <em>usable</em> as a header — RFC 7230 token characters,
-printable single-line string value.
-</p>
-</div>
-</details>
-
-<h2>Working with this from now on</h2>
-
-<ol>
- <li><strong>You change a config model.</strong> <code>make cmig</code> refuses, printing a fingerprint diff.</li>
- <li><strong>Invoke the <code>add-migration</code> skill.</strong> It is the only thing that writes a ledger — it derives the entry from what the gate refused, bumps the schema version, regenerates the goldens and adds the changelog bullet.</li>
- <li><strong>Never regenerate goldens to silence the gate.</strong> A green gate over an unaccounted removal is precisely the failure it exists to prevent.</li>
- <li><strong>At release, step 3b blocks</strong> until every new breaking entry has a <code>**Migration:**</code> bullet naming its id, and a correct <code>introduced_in</code>.</li>
-</ol>
-
-<div class="note warn">
- <strong>Dogfood finding from cutting this release.</strong> A stale untracked
- <code>.pipelex/pipelex_override.toml</code> on a dev machine reddened three tests with
- <code>Extra forbidden fields: 'pipelex'</code>. It is not a code defect — it is exactly the situation
- this work exists for. Note that <code>pipelex migrate</code> has <em>no scoping flag</em>: it walks both
- directories, so it will also rewrite your global <code>~/.pipelex/inference/backends/*.toml</code>.
- Backups are automatic, but be aware if you share a global config across worktrees.
-</div>
-
-<h2>PR map</h2>
-
-<div class="tblwrap">
-<table>
-<thead><tr><th>PR</th><th>What landed</th></tr></thead>
-<tbody>
-<tr><td><a href="https://github.com/Pipelex/pipelex/pull/1104">#1104</a></td><td>Templating style as an authoring decision — retire <code>prompting_target</code></td></tr>
-<tr><td><a href="https://github.com/Pipelex/pipelex/pull/1106">#1106</a></td><td>Strict templating tables, keyless <code>pipelex run --dry-run</code></td></tr>
-<tr><td><a href="https://github.com/Pipelex/pipelex/pull/1109">#1109</a></td><td>Rogue outbound headers guard</td></tr>
-<tr><td><a href="https://github.com/Pipelex/pipelex/pull/1110">#1110</a></td><td>Migrator Phases 0–1 — the contract, the operation vocabulary, the schema-1 cut</td></tr>
-<tr><td><a href="https://github.com/Pipelex/pipelex/pull/1111">#1111</a></td><td>Configuration reshape: one scheme for the root</td></tr>
-<tr><td><a href="https://github.com/Pipelex/pipelex/pull/1112">#1112</a></td><td>Migrator Phase 2 — the engine, the gates, the first real migration</td></tr>
-<tr><td><a href="https://github.com/Pipelex/pipelex/pull/1113">#1113</a></td><td>Phase 3.1 — what an <code>unsafe</code> entry promises, catching a narrowing, the write path</td></tr>
-<tr><td><a href="https://github.com/Pipelex/pipelex/pull/1114">#1114</a></td><td>Phase 3.2 — the migrate commands, boot tolerance</td></tr>
-<tr><td><a href="https://github.com/Pipelex/pipelex/pull/1115">#1115</a></td><td>Phase 3.3 — the review obligation, the two skills</td></tr>
-<tr><td><a href="https://github.com/Pipelex/pipelex/pull/1116">#1116</a></td><td>The <code>inference-backend</code> surface + the two pre-history entries</td></tr>
-<tr><td><a href="https://github.com/Pipelex/pipelex/pull/1117">#1117</a></td><td><strong>Release v0.46.0</strong> (open)</td></tr>
-</tbody>
-</table>
-</div>
-
-<div class="note">
- <strong>Downstream, still pending.</strong> The MTHDS JSON Schema gained
- <code>additionalProperties: false</code> on <code>TemplatingStyle</code> and <code>TemplateBlueprint</code>.
- The committed copies in <code>mthds</code>, <code>vscode-pipelex</code> and <code>mthds-ui</code> are
- release-gated and not yet synced — no PRs to link there yet.
-</div>
-
-<footer>
- pipelex · <code>wip/migrator/what-we-built.html</code> · work-in-progress note for co-developers, not release documentation.
-</footer>
-
-</div>
-</body>
-</html>
diff --git a/wip/migrator/migrator-write-scope-and-rename-fidelity.md b/wip/migrator/migrator-write-scope-and-rename-fidelity.md
deleted file mode 100644
index 6bb3d238d..000000000
--- a/wip/migrator/migrator-write-scope-and-rename-fidelity.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# Deferred from the Phase 3 review: write scope, rename fidelity, and a backup name this run did not claim
-
-Three findings from the `/code-review high` pass over the Phase 3 staged changes were deliberately not fixed. Each is a decision rather than a defect, and each is written down here so the decision is taken on purpose rather than by omission. The other findings from that pass — the narrowed-path spelling and the rescue-copy promise — were fixed in the same change.
-
-## 1. The migration runner follows a symlink out of the directories it was told to walk
-
-`migrate_file` in `pipelex/migration/runner.py` calls `read_file_snapshot(file_path.resolve())`, so a configuration file that is a symlink is read, backed up and atomically replaced **at the link's target**. That resolution is deliberate and documented — replacing the link path would put a regular file where the link was and leave the real file unmigrated — and it is what the `.mthds` fix loop does with its own targets.
-
-The difference is what the fix loop does *next*. `pipelex/pipeline/fixes/fix_loop.py` pairs its `.resolve()` with `_partition_by_write_scope` / `is_target_in_write_scope`, so a resolved target that lands outside the directories the loop was given is refused rather than written. The migration runner has no equivalent, so:
-
-> `.pipelex/pipelex.toml` is a symlink to `/somewhere/else/config.toml`. The run rewrites `/somewhere/else/config.toml` and drops a `.bak.<stamp>` beside it — a file and a directory the walk never named.
-
-**Why it is not fixed here.** The behaviour is arguably right: the file the user means *is* the one at the end of the link, and a dotfiles-managed configuration is exactly the case symlink-following exists for. Refusing it would break the setup the resolution was added to support. But "we write outside the walked directories" is a claim worth making on purpose, and today it is made by accident — the docs asserted the two callers agreed, which on this half they did not.
-
-**The decision to take.** One of:
-
-- **Keep it, and say so.** The run's write scope is "the resolved target of any file the walk claims", full stop. Cheapest, and consistent with the reason the resolution exists. The doc sentence in `docs/migration-ledger.md` → "Backups" has already been trimmed to state this honestly.
-- **Guard it like the fix loop.** Add a write-scope check against the walked configuration directories and block a resolved target outside them as `UNWRITABLE`. This makes the two callers genuinely agree, at the cost of refusing the dotfiles case unless the real directory is also walked.
-
-## 2. A rename still rewrites the assignment's spacing and drops a deliberate quoting
-
-`_renamed_key` in `pipelex/pipeline/fixes/applier.py` builds `SingleKey(new_key)` and carries forward only the `_dotted` flag. The separator (`previous.sep`) and the key type (`previous.t`) are left to tomlkit's defaults, so:
-
-```toml
-old = 1 # keep me → new = 1 # keep me
-"old" = 1 → new = 1
-```
-
-The comment and the line's position survive — that is what the body-level rename was written to preserve, and it does preserve it. Column alignment and an intentionally quoted bare-safe key do not.
-
-**Why it is not fixed here.** It is not a regression: the previous `Container._replace` path did the same, and `_renamed_key`'s own docstring states the choice ("Everything else — quoting, separator — is left to tomlkit's own construction, so renaming an ordinary key yields exactly the key the library would have built for it"). But it sits against two claims made elsewhere in the same changeset — `docs/migration-ledger.md` → "A rename changes a name, and nothing else about the line", and the engine's "no canonical reflow, because a one-key rename must not rewrite a user's spacing" — and configuration migration, unlike the `.mthds` path, has no canonical reflow afterwards to normalise the result.
-
-**The decision to take.** Either carry `previous.sep` and `previous.t` forward alongside `_dotted` (a one-line change, and the claims then hold literally), or narrow the claims to what is actually promised: the *line* keeps its position and its comment, the *assignment* is renormalised. Worth checking what a carried-forward `sep` does when the old and new names differ in length — preserving the old padding around a longer name is not obviously better than renormalising it, and that is the real question behind this one.
-
-## 3. A backup name already taken is reported as this run's copy
-
-`write_backup` reserves its name with `O_CREAT | O_EXCL`; when the name is taken it returns `WrittenBackup(path=destination, was_created=False)` — a path it did not write and whose contents it never read. `_write_migrated_file` then commits and reports `backup_path=backup.path, was_written=True`, so the plan names a file this run did not produce.
-
-**Why it is not fixed.** This is the module's documented policy working exactly as intended: the stamp resolves to the second, two runs of the same file can address one name, and the copy already there is a copy of an *older* state — the original, if anything is. Naming it is correct and useful; the user can restore from it.
-
-The scenarios where it is *not* correct both require a file to be sitting at `<file>.bak.<this run's exact UTC second>` from a source other than a concurrent run — a hand-made backup that happens to match the stamp format to the second, or a zero-byte reservation left by a run killed inside the microsecond window between `_reserve_name` and the rename, found by a re-run within the same second. Guarding those would be a guard for a case that does not happen, which this codebase deliberately does not write.
-
-What *was* wrong on this path — the `state_uncertain` report promising to keep a copy it had not moved out of the pruning rotation — is fixed: `keep_backup_for_rescue` now returns `RescuedBackup(path, was_rescued)` and the report tells the user to take the copy now when it could not be secured.
-
-A second thing was wrong on it and is now fixed too, found by the PR #1113 bot review: the *creator* of a shared name could delete a copy the adopting run was already relying on. Run A writes `bak.T`; run B finds the name taken, adopts it as its restore point, commits and prunes; A's commit is then refused *because B's landed*, and `_discard_backup` unlinked `bak.T` on the reasoning that a write that did not happen has nothing to back up. That reasoning is about A's own actions, and it left the migrated file with no copy of the original anywhere. `_discard_backup` now asks the file what it holds: a refused write discards its copy unless the file already carries the text this run was going to write, which only the other run can have put there. A user's own edit is unaffected — the file then holds the user's text, and the copy goes as it always did.
-
-**Residual worth knowing.** If this ever needs revisiting, the honest lever is not a content check but the plan's vocabulary: `MigrationPlan.backup_path` currently means "where a copy of the pre-migration file is", not "where this run wrote one", and nothing in the report distinguishes the two.
-
-## Residual, unrelated to the three above
-
-`_declared_paths_this_file_carries` now reports the spelling the end of the replay leaves. Where a later `safe` entry *deletes* the material, there is no later spelling and the report falls back to the spelling the file carried when the entry was reached — a key the migrated file no longer has. Left alone on purpose: `test_material_a_later_entry_retires_leaves_nothing_to_say_to_a_file_migrated_that_far` pins that such a file is still reported, and changing what happens there is a decision about the reporting *predicate*, not about which spelling to name.
diff --git a/wip/migrator/pr-1119-review-notes.md b/wip/migrator/pr-1119-review-notes.md
deleted file mode 100644
index 0bd56ffde..000000000
--- a/wip/migrator/pr-1119-review-notes.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# PR #1119 review follow-ups — the one finding that was deferred rather than fixed
-
-The v0.46.1 release PR drew three review-bot threads. Two were false positives answered on the spot, and one is deferred here: it names a real imprecision in the applier, but the state it describes cannot be produced by any migration operation today, and the patch the bot suggested would introduce a different wrong answer in its place. Deciding whether to harden the predicate anyway is a judgment call, not something a review pass should settle on its own, so the thread was left open and the reasoning written down here.
-
-## The claim
-
-`cubic` on `pipelex/pipeline/fixes/applier.py`, at `_at_document_start`:
-
-> When an insertion has no trivia immediately before it but a banner after it, this returns `True` solely because the run is empty. `_settle_inserted` can then move the following section's banner above the newly inserted item instead of leaving it with that section; only a non-empty run can establish document-start status.
-
-with the suggested one-liner `return bool(run.positions) and _is_first_entry(container=run.container, index=run.positions[0])`.
-
-## The predicate really is imprecise
-
-`_at_document_start` answers a question about the *run*, but every caller is asking about the *insertion point*. An empty run carries no position, so the function falls back to `not run.positions` — which is right when the insertion sits at index 0 and wrong when it sits anywhere else. The docstring ("whether the run is the first thing in the file") papers over the gap rather than closing it.
-
-The imprecision can only ever surface in one place. At the two `_introduction_of_slot` call sites, and in `_settle_inserted`'s `else` arm, an empty run reaches `_introduction`, which finds no `Comment`, returns at `last_comment is None`, and never looks at the flag. Only `_settle_inserted`'s `if after.positions` arm can consume it, because that arm computes the flag from `before` and then applies it to a *combined* run whose contents come entirely from `after`.
-
-## Why it is unreachable
-
-Instrumented `_settle_inserted` over roughly 1,800 synthetic document/operation combinations (root and nested `set_key`, `ensure_table`, `move_key` in both directions, `delete_key`, `delete_table`, over documents varying the preamble, the banner shape, the blank lines and the tail) and over all 184 real ledger replays — the four shipped ledgers against every golden, kit config and packaged template.
-
-- The flagged state (empty `before` run, root container, non-empty `after` run) is reached 102 times.
-- In **every** one of them the `after` run is pure `Whitespace`. Not one contains a `Comment`, so `_introduction` short-circuits and the flag is never read.
-- Output is byte-identical with and without the suggested patch across the whole corpus — zero differing cases.
-
-The structural reason: tomlkit places a root-level insertion *after* any comment run that precedes the first table. Case A of the probe — `key_a = 1`, a banner, a blank line, `[b]` — puts the new key at body index 2, between the `Comment` and the `Whitespace`, so `before` comes back holding the comment rather than empty. For a comment to sit in the `after` run with nothing in the `before` run, an insertion would have to land *between* a value and the comment below it, which no placement path does.
-
-## Why the suggested patch is not the fix
-
-Forcing the state by hand (parsing a document with the key already in place and calling `_settle_inserted` on it) reproduces exactly what `cubic` described — and also shows the trap. The same patch flips the *genuine* document-start case:
-
-| input | current | with the patch |
-|---|---|---|
-| `new_key = 2` / `# My pipelex config` / blank / `[b]` | preamble stays on top, above `new_key` | `new_key` stays on top, preamble pushed below it |
-
-That first column is the documented preamble rule — "a hand-written config that starts `# My pipelex config` and then a section keeps its header line at the top". The `not run.positions` disjunct is what implements it when the insertion lands at index 0. Replacing it with `bool(run.positions)` trades one unreachable wrong answer for a different unreachable wrong answer, and picks the one that contradicts the stated rule.
-
-## What a real fix would look like, and the open question
-
-The honest repair is not to the run, it is to the signature: decide document-start from the insertion index (`run.positions[0]` when the run has one, `slot.first` when it does not) rather than from the run alone. That means changing `_at_document_start`'s parameters and both other call sites, and pinning it with a test for a state no operation can currently reach.
-
-**Open for a human:** is that worth doing now, purely as hardening? The argument for is that the placement this relies on belongs to tomlkit, not to us, so a library upgrade could make the region live without anything in this repo changing. The argument against is that it is churn plus a test asserting an impossible state, for a defect no user can hit. Left open deliberately; the thread on PR #1119 is still unresolved so the question does not disappear.
diff --git a/wip/native-date-time/README.md b/wip/native-date-time/README.md
deleted file mode 100644
index 968256c06..000000000
--- a/wip/native-date-time/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# `Date` / `Time` natives — live-run fix
-
-Tracks the work behind [PR #1089](https://github.com/Pipelex/pipelex/pull/1089) (`fix/Native-date-time`): the temporal natives could not be produced by a live `PipeLLM`, because instructor validates structured output in strict mode and a `mode="before"` validator forfeits pydantic's strict-JSON acceptance of ISO strings.
-
-**Status:** shipped in the PR, open against `dev`. All CI green, all review threads resolved.
-
-| File | What it is |
-| --- | --- |
-| `what-we-built.html` | The write-up for co-developers — root cause, the fix, what the review uncovered, and what breaks for authors. Start here. |
-| `bug-report.md` | The original report, filed from `mthds-ui` while adding native-concept fixture coverage. |
-| `plan-and-review-log.md` | The working plan (was `TODOS.md` at the repo root) plus the decision record: every accept and decline across six bot rounds and the final independent review, with the reasoning. |
-| `doc-sweep-deferred.md` | The cross-repo doc item deliberately left out of the PR, release-gated. (A second item from the same review concerns another repo and is tracked at workspace level.) |
-| `compose-time-matrix-plan.md` | The follow-up branch `fix/Time-native` (also once the root `TODOS.md`): `Time` was the one native missing from `PipeCompose`'s whole-stuff conversion matrix. Phases 1–3 shipped in this worktree; Phase 4 is an open `mthds-plugins/` doc edit. |
-
-## Still open
-
-- `mthds-ui` (`feature/Native-concepts_stories`): `make fixtures-live ONLY=pipeline_32` replaces the placeholder LIVE fixture with real data — the end-to-end regression check. Gated on a released pipelex carrying the fix.
-- Optional pre-release sanity check: run a gateway `PipeLLM` with `output = "Time"` / `Date[]` against the production path.
-- The item in `doc-sweep-deferred.md`.
-- Phase 4 of `compose-time-matrix-plan.md`: the `mthds-plugins/` reference template still lists the convertible natives without `Time`.
diff --git a/wip/native-date-time/bug-report.md b/wip/native-date-time/bug-report.md
deleted file mode 100644
index cf1ebc23e..000000000
--- a/wip/native-date-time/bug-report.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# `Date` and `Time` cannot be produced by a live `PipeLLM`
-
-## The bug
-
-A `PipeLLM` whose `output` is `Date`, `Date[]`, or `Time` fails every live run with a pydantic validation error. The natives are authorable, validate, and dry-run clean — they only break when a real model answers.
-
-Reproduced on pipelex **0.42.0**, gateway backend, `claude-4.6-sonnet`, deterministic across repeats:
-
-```
-Error generating single object with direct method in pipe 'read_one_time':
-openai inference failed for model 'claude-4.6-sonnet → ...': 1 validation error for TimeContent
-time
- Input should be a valid time [type=time_type, input_value='14:00:00+00:00', input_type=str]
-```
-
-```
-Error generating list of objects with direct method in pipe 'read_dates':
-... 2 validation errors for ListOfDateContent
-items.0.date
- Input should be a valid date [type=date_type, input_value='2025-03-12', input_type=str]
-items.1.date
- Input should be a valid date [type=date_type, input_value='2025-03-14', input_type=str]
-```
-
-A single `Date` fails on **both** its fields (`date` and the optional `time`) in one response.
-
-## Scope
-
-| Native output | Live run |
-| ------------- | -------- |
-| `YesNo` | works |
-| `Date` | fails |
-| `Date[]` | fails |
-| `Time` | fails |
-
-`YesNo` is the control: same bundle shape, same model, same path, succeeds. So this is specific to the temporal contents, not to the recently-added natives as a group.
-
-## Why it looks unintended
-
-The model the LLM returns is JSON. A JSON document has no date or time type, so a `datetime.date` field can only ever arrive as a **string** — `"2025-03-12"` is the correct and only possible representation. Rejecting it makes the concept unusable in the one position authors most want it: an LLM reading a date out of text.
-
-`TimeContent._reject_lax_temporal` (`pipelex/core/stuffs/time_content.py:23`) is written to allow exactly that. It rejects numbers (guarding pydantic's seconds-since-midnight coercion) and `datetime` objects, then **returns the value unchanged** — an ISO string is meant to pass and be coerced. `DateContent` carries the same shape, and both fields' `Field(description=...)` explicitly tell the model to answer "in ISO 8601 (e.g. 2026-07-07)".
-
-The `YesNo` control makes this sharper. `YesNoContent.yes_no` declares `strict=True` **explicitly, on the field**, with a comment explaining why — and it survives a live run, because `bool` is a JSON type so a strict bool is satisfiable. `DateContent.date`, `DateContent.time`, and `TimeContent.time` declare no strictness at all, yet fail with strict-mode errors. So in this codebase strictness is opt-in per field where it is meant, and these three fields did not opt in.
-
-The error code is the tell. Pydantic emits `time_parsing` / `date_parsing` when a _lax_-mode coercion fails on a malformed string, and `time_type` / `date_type` when _strict_ mode refuses a string outright. We get `time_type` / `date_type` on well-formed ISO input — so the structured-output path is validating these models in **strict mode**, which bypasses the coercion `_reject_lax_temporal` was written around. The validator's intent and the validation mode disagree.
-
-## Where to look
-
-The failing call is the `direct` structured-output method through the openai-compatible gateway completions path (`ListOfDateContent` is the generated list wrapper). Whatever constructs or validates the response model there is applying strict validation; `StuffContent` itself declares no `model_config`, so the strictness is coming from the inference/structured-output layer rather than the content models.
-
-**The inputs path is fine — checked.** A `Date` supplied through `inputs.json` as `{"date": "2025-03-12"}` validates and runs green, even though it presents the identical JSON string to the identical field. So the two paths disagree: the same value pipelex happily accepts from an author it refuses from a model. That narrows the fault to the structured-output/inference layer and rules out the content models themselves.
-
-## Impact
-
-`Date` and `Time` are pinned MTHDS natives — part of the standard's vocabulary — that currently cannot be produced by the primary operator. Any author who types `output = "Date"` gets a method that validates, dry-runs green, and then fails in production on the first real call. The dry-run/live gap is the worst part: `--mock-inputs` fabricates real `datetime` objects, so nothing upstream of a paid run reveals it.
-
-## Downstream note
-
-Filed from `mthds-ui` while adding native-concept fixture coverage (`data/pipelines/pipeline_32`, branch `feature/Native-concepts_stories`). That bundle is committed with its honest authored shape — `Date[]` and `Time` as `PipeLLM` outputs — and a **placeholder** LIVE fixture, because pipelex cannot produce a real one. When this is fixed, `make fixtures-live ONLY=pipeline_32` in `mthds-ui` replaces the placeholder with real data and is the natural regression check.
diff --git a/wip/native-date-time/compose-time-matrix-plan.md b/wip/native-date-time/compose-time-matrix-plan.md
deleted file mode 100644
index 0235ae848..000000000
--- a/wip/native-date-time/compose-time-matrix-plan.md
+++ /dev/null
@@ -1,106 +0,0 @@
-# `Time` in the PipeCompose whole-stuff conversion matrix
-
-**Goal: close the one native that does not convert.** `PipeCompose`'s construct block unwraps a whole native stuff copied into a plain-typed field — `Text → str`, `Number → float|int`, `YesNo → bool`, `Date → date`. `Time` has no arm, so `start = { from = "start_time" }` into a `time`-typed field hands over the `TimeContent` wrapper instead of the time. This branch adds the arm, its plural counterpart, the tests, and every doc that enumerates the matrix.
-
-**Branch:** `fix/Time-native`, forked from `dev`. **Worktree:** `_time/` — treat it as the pipelex repo root; every path below is relative to it, not to this file's own directory (it was the root `TODOS.md` while the work was in flight).
-
-**Read first:** `wip/native-concepts/time-native-open-questions.md` — in the workspace repo, not this one, so the path does not resolve from here. It carries the decision and the design rationale — *why* each edit, and the three non-obvious points this plan only restates. If you are cold-starting, read its "Design of the accepted solution" section before touching code; it is the difference between making this change and making it correctly.
-
-## Standing constraints
-
-- **No version bump, no new changelog heading.** A version number is a receipt for a published artifact. This work accumulates under the existing `## [Unreleased]` in `CHANGELOG.md`.
-- **Do not push and do not open a PR without asking.** Same for the `mthds-plugins` half.
-- **Phase 4 is not in this worktree.** It is a `mthds-plugins/` change in the workspace checkout. Doing it here is impossible; forgetting it ships a runtime whose own skills documentation contradicts it.
-- **No backward-compat shim.** The matrix simply gains a row.
-
-## The design in one paragraph
-
-Four edits in `pipelex/pipe_operators/compose/structured_content_composer.py`: widen the `NativeScalarValue` alias, add `datetime.time` to `NATIVE_SCALAR_TARGET_TYPES`, add the `TimeContent` arm to `_extract_native_scalar`, and refresh the matrix in the four docstrings that enumerate it. **The tuple entry is the half that is easy to miss** — it is consulted at `_convert_list_content` (routes `list[time]` to the scalar extractor) and at `_validate_item_compatibility` (turns a wrong item type into a loud error rather than a cryptic pydantic one), and it is the entire reason the `Time[]` case needs its own test. The arm needs **no fidelity guard**, unlike `Date`'s: `TimeContent` holds exactly one required field and its UTC offset lives inside the `time`'s own `tzinfo`, so the copy is lossless.
-
----
-
-## Phase 1 — the runtime arm
-
-- [x] **1.1 — `NativeScalarValue` (`:28`).** Add `datetime.time` to the `TypeAlias`. It types `NativeScalarExtraction.value` and every list-of-scalars return; the new arm does not typecheck without it.
-- [x] **1.2 — `NATIVE_SCALAR_TARGET_TYPES` (`:33`).** Add `datetime.time`. Leave the comment above it as-is — it explains why there is no subclass matching (`datetime` under `date`, `bool` under `int`), which is still exactly right; `time` has no such trap and needs no new prose there.
-- [x] **1.3 — the arm in `_extract_native_scalar`,** as a new `elif` immediately after the `DateContent` branch (`:417`–`:425`), plus `from pipelex.core.stuffs.time_content import TimeContent` at the top:
-
- ```python
- elif isinstance(stuff_content, TimeContent):
- if expected_type is datetime.time:
- return NativeScalarExtraction(matched=True, value=stuff_content.time)
- ```
-
- ⚠ **Identity check, not `_expects_type`.** Matches the `DateContent` arm and, more importantly, matches the plural path — which decides membership with `in` against the tuple, i.e. by identity. Using `_expects_type` here would let a `time` subclass convert as a scalar field and then fail as a list item.
- ⚠ **Do not add a fidelity guard.** There is nothing to drop. If you find yourself writing one, re-read the design doc — the `Date` guard exists because `DateContent` has two fields, not because temporal copies are inherently lossy.
- ⚠ **Do not add a `DateContent → datetime.time` arm.** A whole `Date` into a bare `time` field drops the date; the authored route is the dotted path `from = "the_date.time"`, which already works.
-- [x] **1.4 — the four docstring enumerations.** All in the same file; the last one is a bare parenthetical and is the one that gets forgotten:
- - `_resolve_from_var` (`:169`–`:176`) — the bulleted conversion list.
- - `_convert_for_target_type` (`:329`) — the inline sentence.
- - `_extract_native_scalar` (`:384`–`:390`) — the "Conversion matrix" block. Say explicitly that `TimeContent → time` is lossless and needs no guard, so the asymmetry with the `Date` bullet directly above it reads as deliberate.
- - `_convert_list_items_as_scalars` (`:622`) — the type list *"(str/float/int/bool/date)"*.
-
-## Phase 2 — tests
-
-Both cases go in `tests/integration/pipelex/pipes/operator/pipe_compose_structured/`, in the existing `test_compose_native_scalar_conversion` parametrize list. The class is `@pytest.mark.dry_runnable` — no inference, no marker changes.
-
-- [x] **2.1 — singular: `TimeContent → time`.** Mirror `date_content_to_date_field` exactly:
- - `compose_structured_models.mthds` — a concept line beside `DeadlineHolder` in the "Native scalar conversion testing concepts" block, e.g. `StartTimeHolder = "Holder with a time field"`. Keep the column alignment of that block.
- - `models_for_pipe_compose.py` — a `StartTimeHolder(StructuredContent)` beside `DeadlineHolder`, with `start: time = Field(...)`. The module imports `from datetime import date` today — widen it to `date, time`.
- - `test_data.py` — a `TIME_TO_TIME_CONSTRUCT` beside `DATE_TO_DATE_CONSTRUCT`.
- - the test module — a `pytest.param` with `NativeConceptCode.TIME`, `TimeContent(time=...)`, and `id="time_content_to_time_field"`. **Use a time that carries a UTC offset** (`datetime.time(15, 40, tzinfo=datetime.timezone(datetime.timedelta(hours=2)))`) and assert it survives — that is the claim that the arm is lossless where `Date`'s is guarded, and a naive-time fixture would not test it.
-- [x] **2.2 — plural: `ListContent[TimeContent] → list[time]`.** This is what covers the `NATIVE_SCALAR_TARGET_TYPES` entry from 1.2; without it that line is untested and a future edit can drop it silently. Same four files, following the `text_list_to_required_str_list_field` shape (a module-level `_make_...` helper builds the `ListContent`, and `input_concept_code` stays the singular `NativeConceptCode.TIME`).
-- [x] **2.3 — update the test module's header docstring** (`:3`–`:10`), which enumerates what the module covers and currently stops at *"DateContent to date field"*.
-- [x] **2.4 — run the targeted suite.** Source areas touched: `pipe_operators/` plus a `.mthds` fixture, so per `tests/CLAUDE.md` that is the pipe tests plus the builder ones:
-
- ```bash
- .venv/bin/pytest -n auto \
- -m "(dry_runnable or not (inference or llm or img_gen or extract or search)) and not pipelex_api" \
- -o log_level=WARNING --tb=short -q \
- tests/unit/pipelex/pipe_operators/ tests/integration/pipelex/pipes/ \
- tests/unit/pipelex/builder/ tests/integration/pipelex/builder/
- ```
-
-- [x] **2.5 — confirm the new cases actually fail without the fix.** Stash Phase 1, run 2.1 and 2.2, see them fail; restore. A conversion test that passes against the unfixed runtime is testing nothing — and the two fail differently, which is worth seeing once: the singular quietly hands the `TimeContent` wrapper to the field, while the plural falls all the way through `_validate_item_compatibility`'s four cases (none of which match, precisely because the tuple entry is missing) and dumps the items as dicts, failing later in pydantic validation of `list[time]`. That second trace is the argument for 1.2 in concrete form.
-
-## Phase 3 — docs and changelog
-
-- [x] **3.1 — `docs/building-methods/pipes/pipe-operators/PipeCompose.md`,** section "Copying Whole Inputs Into Native Fields". Three separate spots, all of which go stale together:
- - `:161` — the prose enumeration `(Text, Number, YesNo, Date, or a list of them)`.
- - `:165`–`:174` — the conversion table. Add a `Time` row after `Date` and a `Time[]` row after `Date[]`, keeping the singular-then-plural grouping the table already uses.
- - `:178` — the fidelity-guard paragraph. Add that `Time` needs no such guard, and why (the offset rides inside the time itself, so nothing is dropped). Stating it here is what keeps the next reader from filing the asymmetry as a bug.
-- [x] **3.2 — `CHANGELOG.md`,** a `### Fixed` entry under the existing `## [Unreleased]`. Frame it as the gap it is — `Time` was introduced after the matrix was written and was never added to it — and mention that the plural `Time[]` form is covered too. No version bump, no new heading.
-- [x] **3.3 — `make agent-check`.** ⚠ The auto-fixer runs inside this target and will keyword-only an ungranted positional subject; nothing in this change adds a new `def`, so there should be nothing to grant — if the check reports one, stop and look rather than accepting the rewrite.
-- [x] **3.4 — `make agent-test`,** the full suite, before the branch is considered done.
-
-### 🔶 Checkpoint — pipelex side complete
-
-Stop here and report. Before stopping: tick the boxes above, record under this checkpoint anything that deviated from the design (a line number that had moved, a test that needed a shape the plan did not anticipate, a doc spot the plan missed), and commit so the stop point is a clean tree. Then state plainly that Phase 4 is outstanding and lives in another repo — the change is *not* shippable until it lands, because the plugin's skills would be telling agents that `Time` does not convert while the runtime converts it.
-
-**Reached 2026-08-13. Phases 1–3 complete, `make agent-check` and the full `make agent-test` both green, tree committed.**
-
-Deviations from the design, all minor:
-
-- **A fifth enumeration site the plan did not list.** Beyond the four docstrings in the composer, the *test fixture* module `models_for_pipe_compose.py` carries the matrix in a section-header comment (*"TextContent -> str, NumberContent -> float, YesNoContent -> bool, DateContent -> date"*). It goes stale the same way and was updated. Nothing else in the tree enumerates the matrix — `grep`ed for the wording across `pipelex/`, `docs/` and `tests/`.
-- **Names chosen for the two holders:** `StartTimeHolder.start: time` (singular) and `SlotTimesHolder.slots: list[time]` (plural). Both are ≤ 18 chars so the `.mthds` concept block's column alignment was preserved untouched. The plural fixture puts the UTC offset on the *middle* item, so a list extraction that dropped it would fail on one item and not the others.
-- **Line numbers were all accurate** — nothing had moved since `c0cefb6af`.
-- **2.5's predicted asymmetry held, with one wording correction.** The singular case is not *silent*: the wrapper does reach the field, but `compose()`'s own field-type summary catches it and names it — `start: TimeContent (expected time) <-- MISMATCH`, `time_type`. The plural case failed exactly as described, per-item `slots.0/1/2: time_type` against `{'time': datetime.time(...)}` dicts, having fallen through all four `_validate_item_compatibility` cases. Both traces confirm the tuple entry in 1.2 is load-bearing.
-- **No drift contract fired,** as the design predicted — `make drift-check` passes untouched, no `make drift-ack` in this change.
-
----
-
-## Phase 4 — the cross-repo follow-up (in `mthds-plugins/`, NOT this worktree)
-
-Doc-only, and mandatory: `templates/skills/shared/mthds-reference.md.j2:357` names the convertible natives as `Text`, `Number`, `YesNo`, `Date`. That line is accurate against today's runtime and wrong the moment Phase 1 ships.
-
-- [ ] **4.1 — edit the template**, not the generated files. `templates/skills/shared/mthds-reference.md.j2` is the source; `mthds/`, `mthds-dev/`, `mthds-codex/` and `mthds-sandbox/` are build outputs.
-- [ ] **4.2 — `make build`**, which regenerates all four targets. Verify the four generated `skills/shared/mthds-reference.md` copies moved.
-- [ ] **4.3 — check the neighbours before assuming one line is enough.** Phase 0 of the native-concepts plan found `Time` missing from *every* native enumeration in that repo, not the two files it expected. Grep the templates for the construct-conversion wording rather than trusting this list.
-- [ ] **4.4 — changelog** in `mthds-plugins`.
-- [ ] **4.5 — our internal integration suite** (not open core; its checkout lives in the workspace-level private notes). Required by the workspace rule whenever `mthds-plugins/` is touched: `make build && make agent-test` there, Docker running. ⚠ Known trap recorded during Phase 0: these tests require the local `mthds-js` checkout to be at or ahead of the published npm `mthds` version, or `update-check` assertions fail for reasons unrelated to your change. Fast-forward `mthds-js` first if a `mthds` release has landed recently.
-
-## Deliberately not in scope
-
-- **`test_pipe_llm_time_output_path.py`** (OQ-2). It is an `inference`-marked live-model test on a path this change does not touch. Deferred on purpose — do not fold it in to "finish `Time`". The plural test in 2.2 is *not* this; it is `dry_runnable` and covers the tuple entry.
-- **A `DateContent → time` arm** — see 1.3.
-- **Any release, version bump, or `/runtime-cascade`.** Nothing on the wire changes; this rides the next ordinary pipelex release.
diff --git a/wip/native-date-time/doc-sweep-deferred.md b/wip/native-date-time/doc-sweep-deferred.md
deleted file mode 100644
index 189a38940..000000000
--- a/wip/native-date-time/doc-sweep-deferred.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Deferred: propagate the `Date` / `Time` ISO contract to the docs a model reads
-
-Deferred out of the `fix/Native-date-time` work (PR #1089). Cross-repo and release-gated — not a code defect in `pipelex`, and it does not block that PR. A second deferred item from the same review concerns another repo entirely and is tracked at workspace level.
-
-Background: the fix gave the `Date` and `Time` natives one ISO 8601 contract, owned by `pipelex/core/stuffs/iso_temporal.py` and shared by the content models and `StuffContentFactory`. The natives now accept the **extended** forms only, and refuse the end-of-day `24:00` spelling. See [plan-and-review-log.md](plan-and-review-log.md) for the full plan and the round-by-round review decisions.
-
-## The authoring guidance still says plain "ISO 8601"
-
-`mthds-plugins/mthds/skills/shared/native-content-types.md` (and its sibling copies in the other plugin targets) describes `Date` and `Time` without mentioning the extended-only rule or the `24:00` refusal.
-
-Why it matters: that file is part of what an LLM is prompted with when authoring or filling these natives, so it is a surface of the same contract the code now pins. A model told only "ISO 8601" can legitimately answer `15:40:00+0200` or `24:00:00` and get a validation error the guidance never warned about. The re-ask loop recovers (workers pass `make_instructor_schema_retrying`, and the error message names the expected shape), so this costs a retry rather than a failed run — which is why it is a sweep, not a fix.
-
-Do it when a released `pipelex` carries the fix, alongside the other release-gated plugin sweeps.
-
diff --git a/wip/native-date-time/plan-and-review-log.md b/wip/native-date-time/plan-and-review-log.md
deleted file mode 100644
index 65df7704c..000000000
--- a/wip/native-date-time/plan-and-review-log.md
+++ /dev/null
@@ -1,110 +0,0 @@
-# Fix: `Date` and `Time` natives cannot be produced by a live `PipeLLM`
-
-> **Archived 2026-08-11 — shipped.** This was the working plan at the repo root (`TODOS.md`) while PR [#1089](https://github.com/Pipelex/pipelex/pull/1089) was built. Kept as the decision record: every accept/decline across six bot rounds and the final independent review is argued here. The reader-facing write-up is `what-we-built.html` in this folder.
-
-Bug report: `bug-report.md` (this folder) — **verified 2026-08-10**, reproduced locally without any LLM call. Branch: `fix/Native-date-time`.
-
-## Root cause (established, do not re-derive)
-
-A live `PipeLLM` with `output = "Date"`, `Date[]`, or `Time` fails pydantic validation on the model's response, while `YesNo` works and the `inputs.json` path accepts the identical strings. Three facts combine:
-
-1. **Instructor validates structured outputs in strict mode by default.** Every instructor `create`/`create_with_completion` signature has `strict: bool = True` (instructor 1.15.1: `instructor/core/patch.py:151`, `instructor/core/client.py`), and pipelex's workers never pass `strict` — see `pipelex/providers/openai/openai_completions_llm_worker.py:223` (`create_with_completion` call) and the sibling workers (anthropic, mistral, google, bedrock, openai_responses). So the response JSON is validated with `strict=True` regardless of mode (`parse_tools`, `parse_anthropic_json`, … in `instructor/processing/function_calls.py` all call `model_validate_json(..., strict=strict)`).
-2. **Strict JSON mode would normally be fine** — pydantic strict *JSON* validation accepts ISO strings for `date`/`time` fields (JSON has no temporal type). Plain `datetime.date` fields in user structures survive strict. This is why only the temporal natives break.
-3. **A `mode="before"` field validator disables that JSON-input string acceptance.** The value returned by the before-validator is re-validated as Python input, where strict rejects `str` with `date_type`/`time_type` (the exact reported error codes). Proven with a minimal pair: `class Plain(BaseModel): date: datetime.date` passes `model_validate_json('{"date":"2025-03-12"}', strict=True); adding a no-op `@field_validator("date", mode="before")` makes the same call fail. The before-validators on `DateContent` and `TimeContent` (named `_reject_lax_temporal` at the time of this diagnosis, `_validate_temporal` since the fix) were the only ones on non-JSON-native fields among the natives (`JSONContent`'s is on a `dict[str, Any]`, immune). `YesNoContent` has no before-validator and `bool` is a JSON type — hence the control passing.
-
-Also verified: field-level `Field(strict=False)` does **not** override the call-level `strict=True` (tested; call-level wins), so there is no one-liner escape.
-
-Repro (no network):
-
-```python
-DateContent.model_validate_json('{"date": "2025-03-12", "time": "14:00:00+00:00"}', strict=True)
-# 2 validation errors: date_type on 'date', time_type on 'time' — identical to the live-run failure
-TimeContent.model_validate_json('{"time": "14:00:00+00:00"}', strict=True) # time_type
-DateContent.model_validate({"date": "2025-03-12"}) # lax: passes (the inputs.json path)
-```
-
-## Chosen fix — make the temporal natives validation-mode-proof (model-side, surgical)
-
-Have the before-validators **finish the job**: after the existing rejection guards, parse a `str` into the real `datetime.date`/`datetime.time` via `fromisoformat`, so the inner validation always receives an already-correct Python object and passes under strict Python, strict JSON, and lax alike. Verified experimentally: strict JSON, strict Python, lax, object passthrough, UTC-offset preservation (`14:00:00+00:00` → `tzinfo=UTC`), and `Z` suffix all work.
-
-Explicitly rejected alternative: passing `strict=False` to instructor in every worker. Blast radius spans all providers and all user structures (would re-open the silent lax coercions on LLM outputs that strict currently blocks, and weaken instructor's re-ask signal). The natives fix is the smallest correct surface; strict stays the inference-path policy.
-
-Guard-ordering constraint (matters, keep tested): the numeric-string epoch guard must run **before** parsing — `datetime.date.fromisoformat` happily accepts basic-format `"20250312"`, which the DT6 guard must keep rejecting as an epoch-looking number.
-
-## Tasks
-
-- [x] Verify the bug report (done — see root cause above)
-- [x] **`pipelex/core/stuffs/date_content.py`** — in `_reject_lax_temporal`, after the existing guards (datetime object, int/float/numeric-string epoch, datetime-shaped string on `date`), parse remaining `str` values: `datetime.date.fromisoformat` for `date`, `datetime.time.fromisoformat` for `time`. Wrap the `fromisoformat` `ValueError` in a clear message naming the field and the ISO 8601 expectation (must stay `ValueError` so pydantic wraps it into a `ValidationError`). Non-str values (real `date`/`time` objects, e.g. from `--mock-inputs`) pass through unchanged. Rename the validator (`_validate_temporal` or similar) — it no longer only rejects — and update its comment to state the second purpose: returning a real object is what keeps the model valid under the strict validation instructor applies to LLM responses (a before-validator forfeits pydantic's strict-JSON ISO-string acceptance).
-- [x] **`pipelex/core/stuffs/time_content.py`** — same change for `TimeContent.time`. Note: `fromisoformat` also closes the numeric-string hole (`"3600"`) that this class's guards never covered (DateContent guarded it, TimeContent didn't — flagged in the report as an asymmetry; decide whether to add the explicit epoch guard for the nicer message, mirroring DateContent).
-- [x] **Tests — red first** (`tests/unit/pipelex/core/stuffs/date_content/`, `.../time_content/`): a strict-mode module simulating the instructor path. Cases:
- - `DateContent.model_validate_json(..., strict=True)` with date-only and date+time payloads — the exact reported inputs (`"2025-03-12"`, `"14:00:00+00:00"`)
- - `TimeContent.model_validate_json(..., strict=True)` — offset preserved on `tzinfo` (fidelity), plus `Z` suffix and fractional seconds
- - strict **Python**-mode (`model_validate(..., strict=True)`) for both — instructor modes that validate parsed dicts
- - the generated list wrapper (the reported `ListOfDateContent` case): build it via `stuff_content_factory` list-class generation and validate a two-item payload under strict JSON — *shipped differently, see the decision below: that wrapper is built inline in `llm_generate.py`, not by the factory, so the tests mirror that shape*
- - real `date`/`time` objects still accepted under strict (mock-inputs path)
- - all existing rejections still fire in **both** modes: `86400`, `"86400"`, `"8.64e4"`, `"20250312"` (epoch-lookalike, must NOT be parsed), `datetime` object, `"2026-07-07T00:00:00"` on `date`
- - malformed string (`"not-a-date"`) → `ValidationError` with the clear message
-- [x] Existing lax-path tests stay green (`test_date_content_serialization.py`, `test_time_content.py`, factory/input-shaper tests)
-- [x] `make agent-check`
-- [x] `make agent-test`
-- [x] **CHANGELOG.md** — `[Unreleased]`, bold-label style: `Date`/`Time` natives failed every live structured-output run (strict-mode validation of the LLM's ISO strings); now parse ISO 8601 in their validators so strict and lax paths agree.
-- [x] **Docs** — check `docs/` pages describing the `Date`/`Time` natives for anything stating the accepted forms; update if the parsing behavior is documented. No new page needed.
-
-## Decisions taken while implementing
-
-- **`TimeContent` got the explicit numeric-string guard** (the flagged asymmetry). Not just for the message: `datetime.time.fromisoformat` accepts the basic form, so without the guard `"154000"` would newly parse as `15:40:00` — the DT6 hole the parsing step would otherwise open. Same guard-before-parse ordering as `DateContent`.
-- **The numeric-string predicate moved to `pipelex/tools/misc/string_utils.py`** as `is_numeric_string` (it was private to `date_content.py`), since both temporal natives need it and neither should depend on the other. Its temporal (DT6) rationale stays in the two validators' comments, where it belongs.
-- **The list-wrapper test declares the wrapper inline.** The reported `ListOfDateContent` is built inline in `pipelex/cogt/content_generation/llm_generate.py`, not by `stuff_content_factory` — so the test mirrors that shape (`items: list[DateContent]`) rather than reaching for a factory that does not generate it.
-- **No `docs/` change.** The pages describing `Date`/`Time` (`native-concepts.md`, `provide-inputs.md`) document the ISO 8601 forms accepted and the rendering, both unchanged by the fix — the model-side path simply now honors what they already state.
-- **~~The model layer stays looser than the input layer on exotic ISO forms.~~ Reversed after review** (see below): both layers now share one extended-ISO parser.
-
-## Review round 1 — what the bots found and what was done
-
-Greptile: clean (5/5). Codex: one finding. cubic: four. Verdicts, each verified by probe:
-
-- **`24:00` is silently accepted on Python 3.14 (codex, P2) — REAL, fixed.** `time.fromisoformat("24:00:00")` returns `00:00:00` on 3.14 but raises on 3.11-3.13, and `requires-python` is `>=3.11,<3.15` — so `{"date":"2025-03-12","time":"24:00:00"}` would land as March 12 midnight instead of March 13's, on part of the supported range only. Now rejected explicitly, ahead of the parser, with a message naming the end-of-day meaning. Verified by running the new module under both 3.13 and 3.14: identical behavior.
-- **Basic-format and week/ordinal forms reach the models (cubic, P2/P2/P3) — REAL as a contract split, fixed together.** Not corruption (the parsed values were correct), but `StuffContentFactory` pinned authored inputs to *extended* ISO while the new model path accepted `"2026-W27-2"`, `"2026-189"`, `"154000+00:00"`. One native, two accepted vocabularies. Fixed by extracting `pipelex/core/stuffs/iso_temporal.py` — `parse_iso_date` / `parse_iso_time`, owning the extended pin and the 24:00 rejection — and having the models *and* the factory use it. The factory's duplicated regex is gone, and its `_make_time_content` inherited the 24:00 fix it had the same bug in.
-- **`is_numeric_string` also matches `nan`/`inf`/`1_000` (cubic, P3) — DECLINED.** The observation is true but cosmetic: those inputs are rejected either way, only under the "no epoch-seconds" message rather than the malformed-ISO one, and no model emits them.
-
- *Corrected in round 3, after cubic rightly challenged the original reasoning.* The first version of this note claimed switching to `int()` would "reopen the exponent/decimal epoch hole" and fail `test_numeric_string_is_rejected`. That was wrong: with the extended-ISO shape pin now sitting in front of the parse, a string `int()` declines falls through to the parser and is rejected there anyway, and the test asserts only that a `ValidationError` is raised. Nothing would be reopened and the suite would stay green. The honest reason to decline is narrower — `is_numeric_string` now only selects *which* rejection message appears, and `int()` would make the accurate "no epoch-seconds" message stop covering the exponent and decimal epoch forms (`8.64e4`, `86400.0`), which is a small step backwards for no gain.
-
-## Review round 2 — the unification was incomplete
-
-Nine findings across greptile, codex and cubic; four of them named one real gap, and the probes settled the rest.
-
-- **The combined authored datetime bypassed the shared parser (codex P2, cubic P2×2, greptile P1) — REAL, fixed.** Round 1 routed `_make_time_content` through `parse_iso_time` but left `_parse_iso_temporal` handing the whole string to `datetime.fromisoformat`, so `"2026-07-07T154000"` was accepted on the authored path while `{"date": "2026-07-07", "time": "154000"}` was refused on the model path — the contract split the round-1 message claimed to have closed. It now splits the string and sends each half to `parse_iso_date` / `parse_iso_time`, which is what makes the time half reachable at all. That also makes the end-of-day form uniform: previously `"2026-07-07T24:00:00"` raised on 3.11-3.13 and parsed on 3.14 (correctly rolling to the 8th, so no corruption — greptile's "same day's midnight" claim was wrong), and it is now rejected everywhere.
-- **The offset pattern still allowed the basic `±hhmm` (greptile P1, cubic P3) — REAL, fixed.** `15:40:00+0200` slipped through the "extended only" pin, inherited from the factory's old regex. Tightened to `Z` / `±hh` / `±hh:mm`; `+02` stays because hour-only *is* an extended spelling.
-- **The comma fraction separator was rejected (codex P2, cubic P2) — REAL, fixed.** ISO 8601 allows `15:40:00,500` and `fromisoformat` parses it; the round-1 regex only allowed `.`, so the pin was narrower than the standard it named. One character.
-- **Whitespace was normalized on one side only (cubic P3) — REAL, fixed.** The parsers stripped their input while the factory validated the raw text, so padding was accepted from a model and refused from an author. The parsers now validate the text as given, and padding is refused on both.
-- **Sub-microsecond precision is truncated (cubic P1) — DECLINED.** True (`15:40:00.1234567` → `…123456`), but `datetime.time` cannot represent more, so the only alternative is failing a live run over precision no source states. Truncating to what the type holds is what every Python consumer does; the natives' fidelity rules are about not fabricating or shifting a value, not about sub-microsecond rounding.
-
-## Review round 3
-
-- **An out-of-range offset minute was silently normalized (codex P2, cubic P2) — REAL, fixed.** `15:40:00+02:60` arrived as `+03:00`: the offset components are summed into a `timedelta`, so nothing range-checks the minutes (the offset *hour* does raise, and the time's own minute/second are checked by `fromisoformat`). A stated offset silently becoming a different one is exactly the fidelity loss this native exists to prevent. Offset minutes are now pinned to `[0-5]\d`.
-- **The round-1 declined-reason was factually wrong (cubic P3) — accepted, note corrected in place.** The decision stands; the reasoning behind it did not survive scrutiny. See the corrected bullet above.
-
-## Review round 4
-
-- **The pattern admitted a lower-case `z` the parser refused (codex P2, cubic P3) — REAL, fixed by honoring the pattern.** `[Zz]` matched `15:40:00z`, but `time.fromisoformat` takes only the upper-case designator, so the value fell through to the generic "not a valid ISO 8601" message. The two bots proposed opposite remedies — normalize it, or drop `z` from the pattern. Chose to admit it: pydantic accepted `z` before this parser existed (verified), so dropping it would regress the live LLM path this PR exists to unblock, and RFC 3339 states the two spellings name the same offset. Case-folding a designator is not normalizing the value the way trimming padding would be, so it does not contradict the round-2 decision to validate the text as given.
-
-## Final independent review (gstack `/review`, no inherited context)
-
-Verdict: ship with nits. No correctness hole; the parser's home and shape were judged right, and the tests were confirmed real by mutation (removing the parse call and flipping the `24:00` sentinel turned both strict-mode modules red). Everything it raised is applied:
-
-- **The "guard must stay AHEAD of the parsing" comments were stale.** The extended-form pin rejects `"20250312"` / `"154000"` before `fromisoformat` is ever reached, so the ordering is correct but no longer load-bearing — and `iso_temporal.py`'s header credited the numeric guard for catches the pin actually makes, while the validators credited the pin's catches to the guard. Both now say what each mechanism does. The numeric guard's `int`/`float` arm **is** load-bearing (pydantic coerces `86400`); only its string arm is message-only.
-- **That message-only arm was untested**, so it could have been deleted with the suite still green. Its wording is now pinned, which is the only thing that justifies keeping it.
-- **`_make_time_content` swallowed the parser's specific message** where its `Date` sibling appended it, so a `Time` author got a generic shape hint instead of "24:00 names the next day's midnight". Now consistent.
-- **The CHANGELOG entry did not carry `(Breaking)`** although authored inputs genuinely got stricter (`"15:40:00+0200"`, `"2026-07-07T154000"`, `"24:00:00"`, padding). Marked, with the refused forms named.
-- **Pre-existing:** the datetime guard fires for both fields but its message named only `date`. Reworded to fit either field.
-- **Deferred to `doc-sweep-deferred.md` (this folder):** the plugin authoring guidance an LLM reads still says plain "ISO 8601" (cross-repo, release-gated, costs a re-ask not a failure). A second deferred item belongs to another repo entirely and is tracked at workspace level.
-
-## Follow-ups (out of this repo, after release)
-
-- [ ] `mthds-ui` (branch `feature/Native-concepts_stories`): `make fixtures-live ONLY=pipeline_32` to replace the placeholder LIVE fixture with real data — the natural end-to-end regression check named in the bug report. Gated on a released pipelex version carrying this fix.
-- [ ] Optional live sanity check before release: run a gateway `PipeLLM` with `output = "Time"` / `Date[]` (the repro in the report) to confirm the production path.
-
-## Cold-start pointers
-
-- Failing call chain: `PipeLLM._run_operator_pipe` → `run_llm_object` (`pipelex/pipe_operators/llm/pipe_llm.py`) → worker `_gen_object` → instructor `create_with_completion(response_model=schema, ...)` → `function_calls.py` parse → `model_validate_json(..., strict=True)`.
-- Gateway model config is fetched remotely (`pipelex/kit/configs/inference/backends/pipelex_gateway.toml` only allows `sdk`/`structure_method` overrides); the failing run used the openai-compatible gateway completions path, but the fix is mode-agnostic and provider-agnostic.
-- Instructor pin: 1.15.1 (`.venv/lib/python3.13/site-packages/instructor/`).
diff --git a/wip/native-date-time/what-we-built.html b/wip/native-date-time/what-we-built.html
deleted file mode 100644
index 6200a8548..000000000
--- a/wip/native-date-time/what-we-built.html
+++ /dev/null
@@ -1,498 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>Date &amp; Time natives: one ISO 8601 contract</title>
-<style>
- :root {
- --bg: #fbfbfa;
- --surface: #ffffff;
- --surface-2: #f4f4f2;
- --ink: #1a1a18;
- --ink-soft: #55554f;
- --ink-faint: #85857c;
- --rule: #e2e2dc;
- --accent: #9a3412;
- --accent-soft: #fdf0e8;
- --bad: #b42318;
- --bad-soft: #fdf1f0;
- --good: #2b6a45;
- --good-soft: #edf6f0;
- --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
- --sans: ui-sans-serif, -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
- }
- @media (prefers-color-scheme: dark) {
- :root {
- --bg: #16171a;
- --surface: #1d1f23;
- --surface-2: #24262b;
- --ink: #e9e9e4;
- --ink-soft: #b3b3ab;
- --ink-faint: #85857c;
- --rule: #33363c;
- --accent: #f0a072;
- --accent-soft: #2c2018;
- --bad: #f0837a;
- --bad-soft: #2d1c1b;
- --good: #7cc59b;
- --good-soft: #172a20;
- }
- }
- * { box-sizing: border-box; }
- body {
- margin: 0;
- background: var(--bg);
- color: var(--ink);
- font-family: var(--sans);
- font-size: 16px;
- line-height: 1.62;
- -webkit-text-size-adjust: 100%;
- }
- .wrap { max-width: 60rem; margin: 0 auto; padding: 3rem 1.25rem 6rem; }
- header.masthead { border-bottom: 2px solid var(--ink); padding-bottom: 1.25rem; margin-bottom: 2.5rem; }
- .eyebrow {
- font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
- color: var(--accent); margin: 0 0 .6rem;
- }
- h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); line-height: 1.15; margin: 0 0 .7rem; letter-spacing: -.02em; }
- .standfirst { font-size: 1.08rem; color: var(--ink-soft); margin: 0; max-width: 46rem; }
- .meta { font-family: var(--mono); font-size: .78rem; color: var(--ink-faint); margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
- h2 {
- font-size: 1.32rem; margin: 3.2rem 0 1rem; letter-spacing: -.01em;
- padding-top: 1.2rem; border-top: 1px solid var(--rule);
- }
- h3 { font-size: 1.02rem; margin: 2rem 0 .6rem; }
- p { margin: 0 0 1rem; }
- a { color: var(--accent); text-underline-offset: .18em; }
- code {
- font-family: var(--mono); font-size: .875em;
- background: var(--surface-2); padding: .1em .34em; border-radius: 3px;
- }
- pre {
- font-family: var(--mono); font-size: .8rem; line-height: 1.55;
- background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
- padding: 1rem; overflow-x: auto; margin: 0 0 1.2rem;
- }
- pre code { background: none; padding: 0; font-size: inherit; }
- .add { color: var(--good); }
- .del { color: var(--bad); }
- .dim { color: var(--ink-faint); }
- .tldr {
- background: var(--accent-soft); border: 1px solid var(--accent);
- border-radius: 8px; padding: 1.4rem 1.5rem; margin: 0 0 2rem;
- }
- .tldr h2 { margin: 0 0 .7rem; border: none; padding: 0; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--mono); }
- .tldr ul { margin: 0; padding-left: 1.15rem; }
- .tldr li { margin-bottom: .55rem; }
- .tldr li:last-child { margin-bottom: 0; }
- figure { margin: 1.6rem 0 2rem; }
- figure svg { width: 100%; height: auto; display: block; }
- figcaption { font-size: .85rem; color: var(--ink-faint); margin-top: .7rem; padding-left: .2rem; border-left: 2px solid var(--rule); padding-left: .8rem; }
- .scroll { overflow-x: auto; }
- table { border-collapse: collapse; width: 100%; font-size: .9rem; margin-bottom: 1.2rem; min-width: 34rem; }
- th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
- th { font-family: var(--mono); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
- tbody tr:last-child td { border-bottom: none; }
- details {
- border: 1px solid var(--rule); border-radius: 6px; padding: .1rem 1rem;
- margin-bottom: .8rem; background: var(--surface);
- }
- details[open] { padding-bottom: .8rem; }
- summary { cursor: pointer; padding: .75rem 0; font-weight: 600; font-size: .95rem; }
- summary::marker { color: var(--accent); }
- .tabs { margin: 1.5rem 0 2rem; }
- .tabs input { position: absolute; opacity: 0; pointer-events: none; }
- .tabbar { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--rule); }
- .tabbar label {
- font-family: var(--mono); font-size: .78rem; padding: .5rem .85rem; cursor: pointer;
- color: var(--ink-faint); border: 1px solid transparent; border-bottom: none;
- border-radius: 5px 5px 0 0; margin-bottom: -1px;
- }
- .tabbar label:hover { color: var(--ink); }
- .panel { display: none; padding-top: 1.2rem; }
- #t1:checked ~ .tabbar label[for="t1"],
- #t2:checked ~ .tabbar label[for="t2"],
- #t3:checked ~ .tabbar label[for="t3"] {
- color: var(--ink); background: var(--surface); border-color: var(--rule); font-weight: 600;
- }
- #t1:checked ~ .panels .p1,
- #t2:checked ~ .panels .p2,
- #t3:checked ~ .panels .p3 { display: block; }
- .callout {
- border-left: 3px solid var(--accent); background: var(--surface);
- padding: .9rem 1.1rem; margin: 1.4rem 0; font-size: .95rem;
- }
- .callout.warn { border-left-color: var(--bad); }
- .callout strong { color: var(--accent); }
- .callout.warn strong { color: var(--bad); }
- .pill {
- display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .05em;
- text-transform: uppercase; padding: .15em .5em; border-radius: 3px; vertical-align: .1em;
- }
- .pill.bad { background: var(--bad-soft); color: var(--bad); }
- .pill.good { background: var(--good-soft); color: var(--good); }
- ul.tight li { margin-bottom: .4rem; }
- .linkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .8rem; margin: 1.2rem 0; }
- .linkcard { border: 1px solid var(--rule); border-radius: 6px; padding: .9rem 1rem; background: var(--surface); }
- .linkcard .k { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); display: block; margin-bottom: .3rem; }
- .linkcard .d { font-size: .85rem; color: var(--ink-soft); margin-top: .3rem; }
- footer { margin-top: 4rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: .82rem; color: var(--ink-faint); }
-</style>
-</head>
-<body>
-<div class="wrap">
-
-<header class="masthead">
- <p class="eyebrow">Pipelex · core / stuffs</p>
- <h1><code style="font-size:.82em;background:none;padding:0">Date</code> and <code style="font-size:.82em;background:none;padding:0">Time</code> natives: one ISO 8601 contract</h1>
- <p class="standfirst">Two pinned MTHDS natives could not be produced by the primary operator. They validated, they dry-ran green, and then they failed on every paid call. Here is what broke, why it hid so well, and what we changed.</p>
- <div class="meta">
- <span>PR #1089 → <code>dev</code></span>
- <span>branch <code>fix/Native-date-time</code></span>
- <span>~430 lines, 8 files</span>
- </div>
-</header>
-
-<div class="tldr">
- <h2>TL;DR</h2>
- <ul>
- <li><strong>A <code>PipeLLM</code> with <code>output = "Date"</code>, <code>Date[]</code> or <code>"Time"</code> failed 100% of live runs.</strong> The model answered <code>"2025-03-12"</code> — the only thing JSON can carry — and pydantic refused it with <code>date_type</code>.</li>
- <li><strong>Cause: a <code>mode="before"</code> validator silently forfeits pydantic's strict-JSON acceptance of ISO strings.</strong> Instructor validates every structured response with <code>strict=True</code>; whatever a before-validator returns is re-validated as <em>Python</em> input, where a <code>str</code> is refused outright. <code>YesNo</code> survived only because <code>bool</code> is a JSON type.</li>
- <li><strong>Fix: the validators now parse the ISO string themselves</strong> and return a real <code>date</code>/<code>time</code>, so strict-JSON, strict-Python and lax all agree.</li>
- <li><strong>Then the review found the natives had two contracts</strong> — authored inputs were pinned to extended ISO, model output was not. A new <code>iso_temporal.py</code> now owns what these natives accept, and both paths parse through it.</li>
- <li><strong>Three silent-corruption bugs fell out of that unification</strong>, including one that only appears on Python 3.14: <code>"24:00:00"</code> parsed as <em>this</em> day's midnight instead of the next day's.</li>
- <li><span class="pill bad">Breaking</span> Non-extended spellings authors could previously write (<code>"15:40:00+0200"</code>, <code>"2026-07-07T154000"</code>, <code>"24:00:00"</code>, padded strings) are now refused.</li>
- </ul>
-</div>
-
-<h2>1. The symptom</h2>
-
-<p>Reported from <code>mthds-ui</code> while adding native-concept fixture coverage. Deterministic, on every repeat, on the gateway backend:</p>
-
-<pre><code>Error generating single object with direct method in pipe 'read_one_time':
- 1 validation error for TimeContent
- time
- Input should be a valid time [type=time_type, input_value='14:00:00+00:00', input_type=str]
-
-Error generating list of objects with direct method in pipe 'read_dates':
- 2 validation errors for ListOfDateContent
- items.0.date
- Input should be a valid date [type=date_type, input_value='2025-03-12', input_type=str]</code></pre>
-
-<p>Two things made this worth a careful look rather than a quick patch.</p>
-
-<p><strong>The input was correct.</strong> A JSON document has no date type, so <code>"2025-03-12"</code> is the only representation a model <em>can</em> produce — and the field's own description tells it to answer exactly that. <strong>And the same string worked from <code>inputs.json</code>.</strong> Identical value, identical field, opposite outcome depending on which door it came through.</p>
-
-<p>The error code was the tell. Pydantic emits <code>date_parsing</code> when a lax coercion fails on a malformed string, and <code>date_type</code> when <em>strict</em> mode refuses a string outright. We were getting <code>date_type</code> on well-formed input, so something upstream was validating in strict mode.</p>
-
-<div class="callout">
- <strong>Why nothing caught it.</strong> <code>--mock-inputs</code> fabricates real <code>datetime</code> objects, which sail past the broken path. So the method validated, dry-ran green, and failed on the first real call — the dry-run/live gap at its worst.
-</div>
-
-<h2>2. Root cause</h2>
-
-<p>Three facts had to line up.</p>
-
-<ol>
- <li><strong>Instructor validates structured outputs strictly.</strong> Every <code>create</code>/<code>create_with_completion</code> signature defaults to <code>strict: bool = True</code>, and our workers never pass <code>strict</code> — so every provider's response is validated with <code>model_validate_json(..., strict=True)</code>.</li>
- <li><strong>Strict <em>JSON</em> mode would have been fine.</strong> Pydantic knowingly accepts ISO strings for <code>date</code>/<code>time</code> fields when the input is JSON, precisely because JSON has no temporal type. Plain <code>datetime.date</code> fields in user structures survive strict validation for this reason.</li>
- <li><strong>A <code>mode="before"</code> validator destroys that acceptance.</strong> Its return value is re-validated as <em>Python</em> input — where strict refuses a <code>str</code>. The two temporal natives were the only ones carrying a before-validator on a non-JSON-native field.</li>
-</ol>
-
-<figure>
-<svg viewBox="0 0 860 340" role="img" aria-label="Two lanes showing how a before-validator turns strict-JSON validation into strict-Python validation">
- <defs>
- <marker id="ar" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto">
- <path d="M0,0 L10,5 L0,10 z" fill="currentColor"/>
- </marker>
- </defs>
- <g font-family="ui-monospace, Menlo, monospace" font-size="12.5" color="currentColor">
-
- <text x="0" y="16" font-size="11.5" font-weight="700" letter-spacing="1.2" fill="#2b6a45">WITHOUT A BEFORE-VALIDATOR — e.g. YesNo, or a plain date field</text>
- <rect x="0" y="30" width="150" height="46" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
- <text x="75" y="50" text-anchor="middle" fill="currentColor">JSON from LLM</text>
- <text x="75" y="66" text-anchor="middle" fill="currentColor" opacity=".65">"2025-03-12"</text>
- <line x1="152" y1="53" x2="222" y2="53" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar)"/>
- <rect x="226" y="30" width="200" height="46" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
- <text x="326" y="50" text-anchor="middle" fill="currentColor">strict JSON validation</text>
- <text x="326" y="66" text-anchor="middle" fill="currentColor" opacity=".65">input is still JSON</text>
- <line x1="428" y1="53" x2="498" y2="53" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar)"/>
- <rect x="502" y="30" width="290" height="46" rx="5" fill="#edf6f0" stroke="#2b6a45" stroke-width="1.4"/>
- <text x="647" y="50" text-anchor="middle" fill="#2b6a45" font-weight="700">accepted → date(2025, 3, 12)</text>
- <text x="647" y="66" text-anchor="middle" fill="#2b6a45" opacity=".8">JSON has no date type, so ISO is allowed</text>
-
- <line x1="0" y1="112" x2="860" y2="112" stroke="currentColor" stroke-width="1" opacity=".18"/>
-
- <text x="0" y="146" font-size="11.5" font-weight="700" letter-spacing="1.2" fill="#b42318">WITH A BEFORE-VALIDATOR — Date and Time, before the fix</text>
- <rect x="0" y="160" width="150" height="46" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
- <text x="75" y="180" text-anchor="middle" fill="currentColor">JSON from LLM</text>
- <text x="75" y="196" text-anchor="middle" fill="currentColor" opacity=".65">"2025-03-12"</text>
- <line x1="152" y1="183" x2="222" y2="183" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar)"/>
- <rect x="226" y="160" width="200" height="46" rx="5" fill="none" stroke="#b42318" stroke-width="1.4"/>
- <text x="326" y="180" text-anchor="middle" fill="#b42318">before-validator</text>
- <text x="326" y="196" text-anchor="middle" fill="#b42318" opacity=".8">returns the str unchanged</text>
- <line x1="428" y1="183" x2="498" y2="183" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar)"/>
- <rect x="502" y="160" width="290" height="46" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
- <text x="647" y="180" text-anchor="middle" fill="currentColor">re-validated as PYTHON input</text>
- <text x="647" y="196" text-anchor="middle" fill="currentColor" opacity=".65">the JSON-ness is gone</text>
- <line x1="647" y1="208" x2="647" y2="242" stroke="#b42318" stroke-width="1.4" marker-end="url(#ar)" color="#b42318"/>
- <rect x="452" y="246" width="390" height="42" rx="5" fill="#fdf1f0" stroke="#b42318" stroke-width="1.4"/>
- <text x="647" y="272" text-anchor="middle" fill="#b42318" font-weight="700">refused → date_type: "Input should be a valid date"</text>
-
- <text x="0" y="316" font-size="12" fill="currentColor" opacity=".7">The validator never rejected the value. It simply moved it into a lane where a string is illegal.</text>
- </g>
-</svg>
-<figcaption>The before-validator was written to <em>allow</em> ISO strings — it rejected numbers and datetimes, then returned everything else untouched. Returning the value is what killed it.</figcaption>
-</figure>
-
-<p>We verified the mechanism in isolation, with no pipelex involved: a bare <code>class Plain(BaseModel): date: datetime.date</code> passes <code>model_validate_json('{"date":"2025-03-12"}', strict=True)</code>; adding a <strong>no-op</strong> before-validator to the same field makes the identical call fail.</p>
-
-<details>
-<summary>Why we did not just pass <code>strict=False</code> to instructor</summary>
-<p>It was the obvious one-liner and it was the wrong call. The blast radius is every provider and <em>every user structure</em>, not just these two classes — it would re-open the silent lax coercions that strict currently blocks on all LLM output, and weaken instructor's re-ask signal. Strict stays the inference-path policy; the natives were the smallest correct surface.</p>
-<p>We also checked whether field-level <code>Field(strict=False)</code> could opt out locally. It cannot — the call-level <code>strict=True</code> wins.</p>
-</details>
-
-<h2>3. The fix</h2>
-
-<p>Have the before-validators finish the job: after the existing guards, parse the string into a real object, so the inner validation always receives something already correct. That satisfies strict-JSON, strict-Python and lax alike.</p>
-
-<pre><code> @field_validator("time", mode="before")
- @classmethod
-<span class="del">- def _reject_lax_temporal(cls, value: Any) -> Any:</span>
-<span class="add">+ def _validate_temporal(cls, value: Any) -> Any:</span>
- ...guards: no bare number, no datetime...
-<span class="add">+ # Returning a real object is what keeps this model valid under the strict validation</span>
-<span class="add">+ # instructor applies to every LLM response. Non-str values — real time objects, e.g.</span>
-<span class="add">+ # from `--mock-inputs` — pass through.</span>
-<span class="add">+ if isinstance(value, str):</span>
-<span class="add">+ return parse_iso_time(value)</span>
- return value</code></pre>
-
-<p>That is the whole behavioural fix: about ten lines across the two validators. Everything below is what the review turned up once we started looking.</p>
-
-<h2>4. One contract, not two</h2>
-
-<p>The first review round asked a sharp question: the model path now parses ISO strings — <em>which</em> ISO strings? Because <code>StuffContentFactory</code>, which handles authored inputs, had already pinned itself to <strong>extended</strong> ISO for a documented reason, and the new model path had inherited none of it.</p>
-
-<p>That mattered because <code>fromisoformat</code> is far more permissive than people expect. It accepts the basic spellings (<code>"20260707"</code>, <code>"154000"</code>) and the week and ordinal calendars (<code>"2026-W27-2"</code>, <code>"2026-189"</code>). None of those corrupt a value, but all of them restate it in a calendar the source never used — and the all-digit ones collide with the epoch guard the natives depend on.</p>
-
-<figure>
-<svg viewBox="0 0 860 300" role="img" aria-label="Before: two paths with two contracts. After: both paths through one shared parser.">
- <defs>
- <marker id="ar2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto">
- <path d="M0,0 L10,5 L0,10 z" fill="currentColor"/>
- </marker>
- </defs>
- <g font-family="ui-monospace, Menlo, monospace" font-size="12" color="currentColor">
-
- <text x="0" y="14" font-size="11.5" font-weight="700" letter-spacing="1.2" fill="#b42318">BEFORE — two doors, two vocabularies</text>
-
- <rect x="0" y="28" width="168" height="40" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
- <text x="84" y="53" text-anchor="middle">LLM output</text>
- <rect x="0" y="80" width="168" height="40" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
- <text x="84" y="105" text-anchor="middle">inputs.json / TOML</text>
-
- <line x1="170" y1="48" x2="246" y2="48" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar2)"/>
- <line x1="170" y1="100" x2="246" y2="100" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar2)"/>
-
- <rect x="250" y="28" width="250" height="40" rx="5" fill="none" stroke="#b42318" stroke-width="1.3"/>
- <text x="375" y="53" text-anchor="middle" fill="#b42318">content model validator</text>
- <rect x="250" y="80" width="250" height="40" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
- <text x="375" y="105" text-anchor="middle">StuffContentFactory regex</text>
-
- <line x1="502" y1="48" x2="578" y2="48" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar2)"/>
- <line x1="502" y1="100" x2="578" y2="100" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar2)"/>
-
- <rect x="582" y="28" width="278" height="40" rx="5" fill="#fdf1f0" stroke="#b42318" stroke-width="1.3"/>
- <text x="721" y="53" text-anchor="middle" fill="#b42318">any ISO fromisoformat swallows</text>
- <rect x="582" y="80" width="278" height="40" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
- <text x="721" y="105" text-anchor="middle">extended ISO only</text>
-
- <line x1="0" y1="146" x2="860" y2="146" stroke="currentColor" stroke-width="1" opacity=".18"/>
-
- <text x="0" y="176" font-size="11.5" font-weight="700" letter-spacing="1.2" fill="#2b6a45">AFTER — one parser owns the answer</text>
-
- <rect x="0" y="190" width="168" height="40" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
- <text x="84" y="215" text-anchor="middle">LLM output</text>
- <rect x="0" y="240" width="168" height="40" rx="5" fill="none" stroke="currentColor" stroke-width="1.2"/>
- <text x="84" y="265" text-anchor="middle">inputs.json / TOML</text>
-
- <path d="M170,210 L250,210 L250,232" fill="none" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar2)"/>
- <path d="M170,260 L250,260 L250,242" fill="none" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar2)"/>
-
- <rect x="272" y="214" width="288" height="52" rx="5" fill="#edf6f0" stroke="#2b6a45" stroke-width="1.5"/>
- <text x="416" y="236" text-anchor="middle" fill="#2b6a45" font-weight="700">iso_temporal.py</text>
- <text x="416" y="254" text-anchor="middle" fill="#2b6a45" opacity=".85">parse_iso_date · parse_iso_time</text>
-
- <line x1="562" y1="240" x2="632" y2="240" stroke="currentColor" stroke-width="1.2" marker-end="url(#ar2)"/>
- <rect x="636" y="220" width="224" height="40" rx="5" fill="none" stroke="#2b6a45" stroke-width="1.3"/>
- <text x="748" y="245" text-anchor="middle" fill="#2b6a45">extended ISO, no 24:00</text>
- </g>
-</svg>
-<figcaption>The new module is stdlib-only and sits beside its consumers. The dependency runs one way — models and factory both depend on the parser, never on each other.</figcaption>
-</figure>
-
-<pre><code><span class="dim"># pipelex/core/stuffs/iso_temporal.py</span>
-_EXTENDED_DATE_PATTERN = re.compile(r"\d{4}-\d{2}-\d{2}")
-_EXTENDED_TIME_PATTERN = re.compile(r"(?P&lt;hour&gt;\d{2}):\d{2}(:\d{2}([.,]\d+)?)?([Zz]|[+-]\d{2}(:[0-5]\d)?)?")</code></pre>
-
-<p>Every character of that time pattern was argued for. Fractional seconds take <code>.</code> <em>or</em> <code>,</code> because ISO 8601 permits both. The offset takes <code>Z</code>, <code>±hh</code> or <code>±hh:mm</code> — but not <code>±hhmm</code>, which is the basic spelling. And the offset minutes are range-checked in the pattern, for a reason worth its own section.</p>
-
-<h2>5. What the unification uncovered</h2>
-
-<p>Three of these were silent-corruption bugs. None was hypothetical — each was reproduced before we touched anything.</p>
-
-<div class="scroll">
-<table>
- <thead>
- <tr><th>Input</th><th>Became</th><th>Should be</th><th>Where</th></tr>
- </thead>
- <tbody>
- <tr>
- <td><code>"24:00:00"</code></td>
- <td><code>00:00</code> <span class="dim">same day</span></td>
- <td>next day's midnight</td>
- <td>Python 3.14 only</td>
- </tr>
- <tr>
- <td><code>"15:40:00+02:60"</code></td>
- <td><code>+03:00</code></td>
- <td>rejected</td>
- <td>all versions</td>
- </tr>
- <tr>
- <td><code>"2026-W27-2"</code></td>
- <td><code>2026-07-07</code></td>
- <td>rejected <span class="dim">(right date, wrong calendar)</span></td>
- <td>model path only</td>
- </tr>
- <tr>
- <td><code>"2026-07-07T154000"</code></td>
- <td>accepted</td>
- <td>rejected <span class="dim">(model path already refused it)</span></td>
- <td>author path only</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div class="tabs">
- <input type="radio" name="tabs" id="t1" checked><input type="radio" name="tabs" id="t2"><input type="radio" name="tabs" id="t3">
- <div class="tabbar">
- <label for="t1">The 3.14 day-shift</label>
- <label for="t2">The offset that drifted</label>
- <label for="t3">The half-finished unification</label>
- </div>
- <div class="panels">
- <div class="panel p1">
- <p>ISO 8601's <code>24:00</code> names the <em>end</em> of a day — that is, the next day's midnight. Python disagrees with itself about it:</p>
- <pre><code><span class="dim"># Python 3.13.9</span>
-&gt;&gt;&gt; datetime.time.fromisoformat("24:00:00")
-ValueError: hour must be in 0..23
-
-<span class="dim"># Python 3.14.0</span>
-&gt;&gt;&gt; datetime.time.fromisoformat("24:00:00")
-datetime.time(0, 0) <span class="del">← silently this day's midnight</span></code></pre>
- <p>Our <code>requires-python</code> is <code>&gt;=3.11,&lt;3.15</code>, so 3.14 is squarely in range. A <code>Date</code> carrying <code>{"date": "2025-03-12", "time": "24:00:00"}</code> would land on <strong>March 12th</strong> midnight instead of the 13th — a full day early, silently, on some of our supported interpreters and not others.</p>
- <p>We reject it rather than rolling the date forward: a <code>Time</code> has no date to roll, and fixing only <code>Date</code> would make the two natives disagree. The error message names what the form means so an author can fix it. We verified the guard by loading the new module under both 3.13 and 3.14 — identical behaviour.</p>
- <p class="dim">Worth noting what is <em>not</em> affected: <code>datetime.fromisoformat("2026-07-07T24:00:00")</code> rolls correctly to the 8th on 3.14. Two review bots claimed corruption there; the probe says otherwise. Only the bare time-of-day parse was at risk.</p>
- </div>
- <div class="panel p2">
- <p>An offset's components are summed into a <code>timedelta</code>, so nothing range-checks the minutes:</p>
- <pre><code>&gt;&gt;&gt; datetime.time.fromisoformat("15:40:00+02:60")
-datetime.time(15, 40, tzinfo=timezone(timedelta(seconds=10800)))
- <span class="del">↑ +03:00</span></code></pre>
- <p>A stated offset silently becoming a <em>different</em> offset is precisely the fidelity loss these natives exist to prevent. What makes it easy to miss is that every neighbouring check works: an out-of-range offset <em>hour</em> raises, and the time's own minute and second raise. Only the offset minutes slip through, so the pattern pins them to <code>[0-5]\d</code>.</p>
- </div>
- <div class="panel p3">
- <p>Round one routed the factory's bare-time path through the shared parser and declared the contract unified. It wasn't. <code>_parse_iso_temporal</code> still handed the <em>whole</em> string to <code>datetime.fromisoformat</code>, so the time half never reached the pin:</p>
- <pre><code><span class="del">- if not re.fullmatch(r"\d{4}-\d{2}-\d{2}([Tt ].*)?", value.strip()):</span>
-<span class="dim"> ↑ ".*" — anything goes after the T</span>
-<span class="del">- parsed = datetime.datetime.fromisoformat(value)</span>
-<span class="del">- return parsed.date(), parsed.timetz()</span>
-<span class="add">+ match = re.fullmatch(r"(?P&lt;date&gt;\d{4}-\d{2}-\d{2})(?:[Tt ](?P&lt;time&gt;.+))?", value)</span>
-<span class="add">+ the_date = parse_iso_date(match.group("date"))</span>
-<span class="add">+ the_time = parse_iso_time(time_text) if time_text is not None else None</span></code></pre>
- <p>So <code>"2026-07-07T154000"</code> was accepted from an author while <code>{"date": …, "time": "154000"}</code> was refused from a model. Splitting the string first — rather than delegating to <code>datetime.fromisoformat</code> — is what makes the time half reachable at all.</p>
- </div>
- </div>
-</div>
-
-<h2>6. What we deliberately did not do</h2>
-
-<p>Three reported issues were declined. Recording them matters as much as the fixes, because each is the kind of thing that gets re-reported later.</p>
-
-<details>
-<summary>Sub-microsecond precision is truncated</summary>
-<p><code>"15:40:00.1234567"</code> becomes <code>…123456</code>. True — but <code>datetime.time</code> cannot represent more, so the only alternative is failing a live run over precision no real source states. Truncating to what the type holds is what every Python consumer of that string does. The natives' fidelity rules are about not <em>inventing</em> or <em>shifting</em> a value; sub-microsecond rounding is a different thing.</p>
-</details>
-
-<details>
-<summary>The numeric guard also matches <code>nan</code> / <code>inf</code></summary>
-<p><code>is_numeric_string</code> uses <code>float()</code>, which parses those tokens. They get the "no epoch-seconds" message rather than the malformed-ISO one. Both are rejected either way, no model emits them, and the proposed remedy — switch to <code>int()</code> — would make the accurate epoch message stop covering <code>8.64e4</code> and <code>86400.0</code>, since <code>int()</code> raises on both.</p>
-<p class="dim">Worth flagging honestly: the first version of this rationale claimed the swap would "reopen an epoch hole" and fail the suite. A reviewer challenged it and was right — with the extended pin in front of the parse, anything <code>int()</code> declines is rejected by the parser anyway. The decision held; the reasoning did not, and was corrected on the record.</p>
-</details>
-
-<details>
-<summary>The numeric-string guard itself, now that the pin exists</summary>
-<p>Nearly cut. The extended-form pattern rejects every all-digit spelling before <code>fromisoformat</code> is reached, so the string arm of that guard is no longer load-bearing — it only buys a better message ("never a number (no epoch-seconds)") in place of a generic one. We kept it and <em>pinned the wording in a test</em>, because a branch justified solely by its message and not asserting that message is a branch that can be deleted with the suite still green.</p>
-<p>The <code>int</code>/<code>float</code> arm beside it <strong>is</strong> load-bearing: pydantic will happily coerce a bare <code>86400</code> into a date.</p>
-</details>
-
-<h2>7. What changes for you</h2>
-
-<div class="callout warn">
- <strong>Breaking for authored inputs.</strong> These parsed on <code>dev</code> and are refused now. All four are non-extended spellings; if you have any in a bundle or an <code>inputs.json</code>, they will fail loudly with a message naming the expected shape.
-</div>
-
-<div class="scroll">
-<table>
- <thead><tr><th>No longer accepted</th><th>Write instead</th><th>Why</th></tr></thead>
- <tbody>
- <tr><td><code>"15:40:00+0200"</code></td><td><code>"15:40:00+02:00"</code></td><td>basic offset spelling</td></tr>
- <tr><td><code>"2026-07-07T154000"</code></td><td><code>"2026-07-07T15:40:00"</code></td><td>basic time spelling</td></tr>
- <tr><td><code>"24:00:00"</code></td><td>next day + <code>"00:00:00"</code></td><td>end-of-day form, ambiguous across Python versions</td></tr>
- <tr><td><code>" 15:40:00"</code></td><td><code>"15:40:00"</code></td><td>padding is not part of the value</td></tr>
- </tbody>
-</table>
-</div>
-
-<p>Everything ISO calls <em>extended</em> still works, including the shapes a model plausibly answers: <code>Z</code> and lowercase <code>z</code>, <code>+02</code> and <code>+02:00</code>, both fraction separators, and <code>HH:MM</code> without seconds.</p>
-
-<p><strong>Nothing changes for Python callers</strong> holding real <code>date</code>/<code>time</code> objects — they pass through the validators untouched, which is also why the <code>--mock-inputs</code> path was unaffected throughout. kajson round-trips were verified to still rebuild typed objects, so distributed execution is unaffected.</p>
-
-<h2>8. Testing</h2>
-
-<p>Both strict-mode test modules were written red-first and reproduce the reported failure verbatim before the fix. They cover the exact reported payloads under strict JSON, strict Python mode, the generated <code>ListOf…</code> wrapper, offset fidelity, real objects still accepted, and every rejection firing in <em>both</em> validation modes.</p>
-
-<p>The independent final review mutation-tested them rather than trusting them: removing the parse call and flipping the <code>24:00</code> sentinel turned 23 tests red across the two modules. It also swept the time pattern's whole language — 560 pattern-admitted strings, zero of which <code>fromisoformat</code> then refused — confirming the round-4 bug class (pattern and parser disagreeing) is closed.</p>
-
-<h2>9. Links</h2>
-
-<div class="linkgrid">
- <div class="linkcard">
- <span class="k">Pull request</span>
- <a href="https://github.com/Pipelex/pipelex/pull/1089">Pipelex/pipelex #1089</a>
- <div class="d">Open against <code>dev</code>. Six automated review rounds plus an independent final review, all threads resolved.</div>
- </div>
- <div class="linkcard">
- <span class="k">Origin of the report</span>
- <a href="https://github.com/Pipelex/mthds-ui">Pipelex/mthds-ui</a>
- <div class="d">Filed from branch <code>feature/Native-concepts_stories</code> while adding native-concept fixtures. Its <code>pipeline_32</code> LIVE fixture is a placeholder — <code>make fixtures-live ONLY=pipeline_32</code> replaces it once a released pipelex carries this fix. That is the natural end-to-end regression check.</div>
- </div>
- <div class="linkcard">
- <span class="k">Deferred, release-gated</span>
- <a href="https://github.com/mthds-ai/mthds-plugins">mthds-ai/mthds-plugins</a>
- <div class="d">The authoring guidance an LLM is prompted with still says plain "ISO 8601", with no mention of extended-only or the <code>24:00</code> refusal. Costs a re-ask rather than a failed run, so it is a sweep, not a blocker.</div>
- </div>
-</div>
-
-<footer>
- Written 2026-08-11 · <code>wip/native-date-time/</code> · The decision record for every accept and decline across the review rounds lives alongside this file.
-</footer>
-
-</div>
-</body>
-</html>
diff --git a/wip/open-native-inputs/plan.md b/wip/open-native-inputs/plan.md
deleted file mode 100644
index fc0e543af..000000000
--- a/wip/open-native-inputs/plan.md
+++ /dev/null
@@ -1,130 +0,0 @@
----
-status: active
-item: L-260902-543ad0
----
-
-# Open-shaped natives at input positions: the two fixes the corpus could not ride along with
-
-Two bugs, both found while covering the open-shaped natives at slot positions in the shared inputs-template corpus (L-260831-264cbd), both filed rather than fixed because each needs a ruling of its own:
-
-- **L-260831-8f7c8c** — a `native.Anything` input crashes `build_pipe_io_contracts`: the builder resolves a structure class for every input, and `Anything` is the one concept the standard says has none. The crash sits on the hosted validate path (`validate_in_process.py:109`), so a legal bundle renders HTTP 500 after validation already succeeded.
-- **L-260831-635398** — a `native.Dynamic` input referenced in a `PipeLLM` prompt is classified as a direct image reference (`is_compatible` short-circuits to `True` on dynamic concepts, and the analyzer reads compatibility as identity), so the bundle fails dry-run validation demanding `ImageContent`.
-
-Closing both reopens the corpus work: `native.Anything` joins `scaffold_open_natives`, and a `PipeLLM` covering `native.Dynamic` becomes writable.
-
-## Rulings
-
-These are the decisions the crashes were hiding. They are the reviewable core of the campaign; everything below is mechanics.
-
-### R1 — What JSON Schema an `Anything` input publishes on the wire
-
-**An `Anything` input publishes the permissive schema: no constraint keywords, annotated with the concept's identity like every other rendered input schema** — `{"title": "native.Anything", "description": <the concept's authored description>}`. Annotation keywords constrain nothing, so this is semantically the empty schema `{}` ("any JSON value"), which is what an untyped vehicle honestly means — while keeping the invariant that every `PipeInputContract.json_schema` carries its concept's `title`/`description` (see `Concept._render_schema_representation`, which injects both on every class-backed render). Multiplicity wraps exactly as for class-backed concepts: `Anything[]` becomes `{"type": "array", "items": <the schema>}`, a fixed count adds `minItems`/`maxItems`.
-
-Rejected alternative: bare `{}`. Same validation semantics, but it would be the one schema on the wire with no concept identity, and consumers (`mthds-js`, `mthds-python`, the hosted validate readers) would have to special-case its emptiness to display anything.
-
-### R2 — What example value an `Anything` input renders in a fill-in template
-
-**The empty mapping `{}`.** This matches the ruling the projections already made for `unknown` descriptor nodes — `mthds-python`'s `inputs_template.py` states it as "the escape hatch's only honest value" — so the engine renderer and the two projections agree by construction instead of by recorded difference. This arm is needed because the corpus generator renders the engine's own fill-in template for every pipe (`render_inputs` → `InputStuffSpecs.build_inputs_template` → `render_stuff_spec(JSON)`), which crashes on `Anything` exactly like the SCHEMA path; without it, Phase 3 cannot regenerate.
-
-### R3 — A dynamic concept is never *statically* an image (or a document)
-
-**The prompt analyzers ask "is this definitely an X", and `Dynamic`'s universal compatibility answers a different question — so a dynamic root concept short-circuits to "no static classification" before any compatibility test runs.** A `Dynamic` input referenced in a `PipeLLM` prompt renders as text through the template, same as it already does in a `PipeCompose` `template`; an author who wants image or document attachment declares `Image`/`Document` (or a refining concept). This is the same guard shape the codebase already uses twice for exactly this trap: `PipeLLM.validate_output_with_library` ("Allow Dynamic output concept") and `InputShaper.resolve_input_kind` (dynamic returns `InputKind.DYNAMIC` before the ordered strict-compatibility loop).
-
-Corollary: `| with_images` on a `Dynamic` variable raises `WithImagesFilterError`. Statically unknowable nested images are refused, not guessed; the existing message ("the type has no nested images") stays accurate enough.
-
-## Phase 1 — `Anything` renders instead of crashing (fixes L-260831-8f7c8c)
-
-Branch `fix/Anything-io-contract`, PR → `dev`. Its own PR, per the item: a wire-contract ruling deserves its own review.
-
-1. **Structureless arm in `StuffSpec.render_stuff_spec`** (`pipelex/core/pipes/stuff_spec/stuff_spec.py`). Its docstring already names it "the one place in the whole render chain that resolves a class", so the `declares_a_structure_class` branch belongs here: when the concept declares no class, do not call `concept_provider.get_structure_class` at all — render the structureless representation directly. `Concept.render_concept_representation` keeps its strict `type[StuffContent]` parameter; add a sibling on `Concept` (e.g. `render_structureless_representation(output_format=…, multiplicity=…)`) covering SCHEMA (per R1) and JSON (per R2), sharing the array-wrap/min-max logic with `_render_schema_representation` rather than duplicating it. PYTHON stays out: the output renderer already guards `Anything` at each of its entry points, and a structureless PYTHON render has no consumer.
-2. **`build_pipe_io_contracts` needs no change** — the memo, the `["content"]` indexing and `PipeInputContract` all work once the render returns. Same for the trace command's hop 4 and `InputShaper._render_expected_shape`, which crash on the same lookup today and are healed by the same arm.
-3. **Tests** (red first, per TDD):
- - Unit: `render_stuff_spec` for `Anything` in SCHEMA and JSON formats, at single, `[]`, and fixed-count multiplicity — pins R1 and R2 including the array wrapping.
- - Integration: extend `tests/integration/pipelex/pipeline/test_pipe_io_contracts.py` (class `TestBuildPipeIOContracts`) with a bundle declaring an `anything_in` slot; assert the contract row publishes the R1 schema and that no `PipeIOContractError` is raised. The item's two-line repro bundle is the fixture.
- - Validate-path: one test asserting a bundle with an `Anything` input produces a *verdict* through `validate_in_process` / `direct_bundle_validator` — the regression that matters for the hosted route is "verdict, not 500".
-4. **Docs + changelog**: document the published schema for `Anything` wherever `pipe_io_contracts` / input schemas are documented in `docs/`; one condensed entry under `## [Unreleased]`.
-5. `make agent-check`, `make agent-test`.
-
-**Checkpoint 1** — PR 1 open. Record here: the ruling as reviewed (did R1 survive review as annotated-permissive, or get amended?), and any deferred review findings.
-
-> **Checkpoint 1 recorded (2026-09-01):** PR [#1178](https://github.com/Pipelex/pipelex/pull/1178) open against `dev` (branch `fix/Anything-io-contract`), full `agent-check` + `agent-test` green. R1 implemented as annotated-permissive and R2 as the empty mapping, both as planned; review outcome pending. The structureless arm landed in `StuffSpec.render_stuff_spec` with `Concept.render_structureless_representation` beside `_render_schema_representation`, sharing the array wrap through an extracted `_wrap_schema_for_multiplicity`; PYTHON is refused with `ConceptValueError`. The deferred `error_domain` ruling on `PipeIOContractError`'s residual causes is filed as L-260901-5bb532.
-
-> **Checkpoint 1 — review outcome (2026-09-02):** R1 and R2 both survived review unamended; the reviewed additions to the PR are tests and wording only, no behaviour change. Three findings were deferred to their own items rather than widening the PR, all three the same root cause — a mechanically derived `AnythingContent` that never resolves — at sites this phase did not reach:
->
-> - **L-260902-9546ef (high)** — a `PipeLLM` with `output = "Anything"` still escapes protocol `validate` as `kajson.ClassRegistryNotFoundError`, which is not a `PipelexError` and carries no `error_domain`, so the hosted route renders the same HTTP 500 this phase set out to remove. `pipe_operators/llm/pipe_llm.py:234` reads the class registry directly, bypassing `get_structure_class` and therefore the guard. This is the input fix's mirror image and the phase's biggest blind spot: the regression test is input-only.
-> - **L-260902-db6d1e (normal)** — `pipelex build runner` on an `Anything` input still emits the unfollowable "include that module" advice verbatim (`builder/runner_code.py:102`, `:213`), and a concept declaring `refines = "Anything"` cannot be loaded at all (`core/concepts/concept_factory.py:466`) while codegen treats that declaration as legal.
-> - **R1 is wider than the runtime, and the docs now say so.** An `Anything` input accepts a string only (shaped into a `native.Text` stuff) and refuses number, bool, list and dict — see Phase 3 item 4 below for the measured evidence. R1 stays as ruled: narrowing the published schema would state a runtime limitation as a contract. `docs/under-the-hood/pipe-io-contracts.md` names the gap explicitly so a consumer reading the contract is not surprised by it, and closing it is the shaper's job.
->
-> Also corrected in review: `docs/contribute/generate-projection-corpus.md` still asserted that an `Anything` input crashes the contract builder, which this phase made false; the word *structureless* was carrying two incompatible meanings across `NativeConceptCode.is_structureless_concept` (no structure **class**, `Anything` alone) and `input_form.py` (no **pinned structure**, three natives), and the sites now say which they mean.
-
-> **Checkpoint 1 closed (2026-09-02):** PR [#1178](https://github.com/Pipelex/pipelex/pull/1178) merged to `dev` as `68b6976`, every check green, and L-260831-8f7c8c is closed `fixed` with that merge as evidence. R1 and R2 landed exactly as ruled. The merge has not reached `main` — the release that publishes both this phase and Phase 2 is L-260828-f4e88c. With both PRs merged, Phase 3 is unblocked: the corpus can now be regenerated with `anything_in` in `scaffold_open_natives` and a `PipeLLM` covering `native.Dynamic`, subject to the refusal measured in Phase 3 item 4, which the shaper — not this phase — has to close.
-
-## Phase 2 — dynamic concepts get no static prompt classification (fixes L-260831-635398)
-
-Branch `fix/Dynamic-prompt-classification`, PR → `dev`. Independent of Phase 1 — disjoint files; no stacking needed.
-
-1. **Guard in `TemplateImageAnalyzer._resolve_variable_type`** (`pipelex/pipe_operators/shared/template_image_analyzer.py`): if `NativeConceptCode.is_dynamic_concept(concept_code=root_concept.code)`, return `(False, False, False, None)` before any `is_compatible` call, with a comment naming R3. This fixes both `PipeLLM` (prompt + system prompt) and `PipeImgGen` (prompt + negative prompt), which share the analyzer.
-2. **Same guard in `TemplateDocumentAnalyzer._resolve_variable_type`** (`pipelex/pipe_operators/llm/template_document_analyzer.py`, return `None`): the identical bug shape — a `Dynamic` input is recorded as a DIRECT document reference today and would fail extraction the same way the moment the image misclassification stops masking it. Fixing only the image half ships the same bug one analyzer over.
-3. **Tests** (red first):
- - Unit, in `tests/unit/pipelex/pipe_operators/pipe_llm/test_template_image_analyzer.py`: a `Dynamic` input referenced plainly yields no image references; `Dynamic` with `| with_images` raises `WithImagesFilterError`. A sibling test for the document analyzer: no document references.
- - Integration: the item's minimal repro — a `PipeLLM` taking `dynamic_in = "Dynamic"` and referencing it in its prompt — passes dry-run validation, with both prompt markers (`@dynamic_in` and `$dynamic_in`).
-4. **Docs + changelog**: state R3 (dynamic renders as text in prompts; declare `Image`/`Document` for attachment) on the PipeLLM / prompting docs page; one condensed entry under `## [Unreleased]`.
-5. `make agent-check`, `make agent-test`.
-
-**Checkpoint 2** — PR 2 open. Record review outcomes and anything deferred.
-
-> **Checkpoint 2 recorded (2026-09-01):** PR [#1179](https://github.com/Pipelex/pipelex/pull/1179) open against `dev` (branch `fix/Dynamic-prompt-classification`), full `agent-check` + `agent-test` green. R3 implemented as planned: both analyzers return early for a dynamic root concept before any `is_compatible` call — the image analyzer returns `(False, False, False, None)`, the document analyzer `None` — and `| with_images` on `Dynamic` still raises `WithImagesFilterError`. The integration regression lives in `tests/integration/pipelex/pipeline/test_bundle_validator.py` (chosen because PR 1 does not touch that file, so the two PRs cannot conflict there). The compatibility-as-identity sweep across the other operator sites is filed as L-260901-605377. Review outcome pending on both PRs; Phase 3 stays gated on both merges.
->
-> **Checkpoint 2 closed (2026-09-01):** PR [#1179](https://github.com/Pipelex/pipelex/pull/1179) merged to `dev` as `789726a`, all checks green, and L-260831-635398 is closed `fixed` with that merge as evidence. R3 landed exactly as ruled; nothing was amended in review. One live behaviour is deliberately given up and is now named in `CHANGELOG.md` and `docs/building-methods/pipes/pipe-operators/PipeLLM.md`: an `ImageContent` shaped into a `Dynamic` slot used to reach the model through the DIRECT reference the analyzer wrongly recorded, and now renders as text with no warning. Whether attachment should also be decided at run time, or the silence become a warning, is filed as L-260901-45becb. The merge has not reached `main` — the release that publishes it is L-260828-f4e88c. Phase 3 now waits on PR 1 alone.
-
-## Phase 3 — reopen the corpus coverage (after both PRs merge)
-
-This is the work L-260831-264cbd had to leave behind, and it lands as a fixture change now that neither native crashes.
-
-1. Add `anything_in = "Anything"` to `scaffold_open_natives` in `tests/data/input_semantics/scaffold_bundle.mthds` (inputs and template), alongside its existing `json_in` / `dynamic_in` / `composite_in`. Add a `PipeLLM` pipe covering `native.Dynamic` referenced in a prompt — the coverage item 2's fix makes writable.
-2. Regenerate: `.venv/bin/pipelex-dev generate-projection-corpus tests/data/input_semantics/*.mthds -o /tmp/projection-corpus`; update `tests/integration/pipelex/pipeline/test_input_form.py` expectations where the scaffold grew.
-3. Re-commit the captures in `mthds-js` and `mthds-python`. L-260831-56a78f and L-260831-933a6c are already open for the current regeneration — if still open when Phase 3 runs, note the added coverage on them and let one re-commit carry both; otherwise file fresh items with `ledger new --owner mthds-python|mthds-js`.
-4. **Known risk, now measured — the arm refuses.** The risk this item named is real, and PR 1's review probed it ahead of Phase 3 so the phase starts from a settled question. Against a live library, an `Anything` slot refuses the R2 template in both shapes:
-
- ```
- compact {} REFUSED StuffFactoryError: ... does not have a 'concept' key.
- explicit {"concept": "native.Anything", "content": {}} REFUSED StuffFactoryError: ... 'native.Anything' is not compatible with a dict content
- ```
-
- The refusal is broader than the empty dict. Of the JSON types, an `Anything` input accepts only a string, and shapes it into a `native.Text` stuff rather than an `Anything` one:
-
- ```
- string OK -> concept=native.Text content=TextContent
- number REFUSED bool REFUSED list REFUSED dict REFUSED
- ```
-
- So the choice this item offered — record a deliberate projection difference, or fix the shaper arm — resolves toward **fixing the shaper arm**: recording a difference would pin a template nobody can submit, which is exactly the defect the `native.JSON` entry in the same release says it removed. It also means R1's published schema ("any JSON value") is currently wider than the runtime, which `docs/under-the-hood/pipe-io-contracts.md` now says out loud rather than leaving for a consumer to discover. Adding `anything_in` to `scaffold_open_natives` before the shaper is fixed will fail the round-trip gate; `docs/contribute/generate-projection-corpus.md` records that as the reason the slot is still empty.
-
-**Checkpoint 3** — corpus regenerated and re-committed across the three repos; both bugs closed with the merges as evidence.
-
-> Phase 3 is tracked by L-260902-543ad0, filed when Phase 1 landed: both bug items that used to carry this campaign are closed, so the document's `item:` now names the phase that is still open rather than a finished one.
-
-> **Checkpoint 3 recorded (2026-09-02) — the `pipelex` half.** Both slots are in: `native.Anything` arrives as `scaffold_anything_slot`, a pipe of its own, and a new `scaffold_dynamic_prompt` PipeLLM puts a `native.Dynamic` slot at a prompt position under both markers. One authoring constraint is worth carrying forward: the `@` marker had to move onto its own line, because the sigil produces tag-wrapped block content and rejects an inline use. The capture regenerates deterministically — no divergence class appears or retires, and two runs taken either side of a `plxt fmt` that realigned the new pipe's keys are byte-identical.
->
-> **The item 4 risk resolved as declaring the gap, not as fixing the shaper.** Re-measured on `dev` at `82c56b8e3` through `shape_inputs` with the pipe's own `anything_in` spec, an `Anything` slot accepts a bare string and nothing else, returning it as a `native.Text` stuff; the empty object the contract publishes as its own template is refused in both spellings, as are number, bool, list and dict, and even the *enveloped* string is refused ("not compatible with native concept 'native.Text', 'native.Date', or 'native.Time'") — narrower than the earlier probe recorded, which measured the bare form. So the slot is captured with both its shapes declared in `EXPECTED_UNSHAPEABLE` against L-260902-10eb56, filed for the shaper arm. That is the round-trip gate's own mechanism for a known-open gap rather than a workaround: an entry states the gap, the manifest records it, and the lapse rule fails the command the moment the template starts shaping, so the fix retires its own declaration and forces the regeneration. Declaring it is not the projection difference the phase warned against — a projection difference would pin a *projection* nobody can submit, where this pins the descriptor's only honest rendering and names the runtime as what has to catch up, which is exactly what `docs/under-the-hood/pipe-io-contracts.md` already says about R1's width.
->
-> **Two things a pre-landing review changed, both about a gate that stops measuring.** `anything_in` was first added to `scaffold_open_natives` beside `json_in`, `dynamic_in` and `composite_in`. An `EXPECTED_UNSHAPEABLE` key is a whole template and the shaper aborts at the first slot it refuses, so that one declaration suspended the round-trip check for the three natives beside it — and `json_in`'s dict is the only site in the corpus where `unknown-empty-object` is measured, the class whose committed reason string says in so many words that the empty object round-trips. Measured: the pipe shaped cleanly before the slot arrived and was a declared refusal after, so the loss was real and silent, and any future projection regression at those three slots would have landed inside the declaration and exited 0. Giving `Anything` its own pipe keeps the gap declared and gives the other three their check back. The rule this produced is now stated where the registry is defined and on the contributor page: a known-open gap belongs in a pipe carrying nothing else.
->
-> **And the corpus turned out to be four bundles, not three.** `output_bundle.mthds` has been part of the committed mirror capture since the output-form descriptor landed, but it was never added to the command block on the contributor page, to `CORPUS_BUNDLES` in the CI test, or to the agent rules — which named a glob that also swept it in under the wrong order. Every regeneration recipe therefore said three bundles, and following one produces a capture missing every `input_semantics_output.*` pipe. Because `conformance`'s parity check compares the two mirrors against each other and nothing holds a canonical copy, both mirrors shrinking together is green. All four lists now name the four bundles in the mirrors' own order, with `output_bundle.mthds` last so the existing bytes stay stable.
->
-> **Checkpoint 3 landed — the `pipelex` half.** PR [#1187](https://github.com/Pipelex/pipelex/pull/1187) squash-merged to `dev` as `b182fad40`, every check green. L-260902-543ad0 is **advanced, not closed**: items 1 and 2 of its `## What` are done and item 3, the cross-repo re-commit, is what keeps it open. The merge has not reached `main` — the release that publishes this, together with Phases 1 and 2, is L-260828-f4e88c.
->
-> **The cross-repo half is deliberately not in this branch.** A capture must come from a merged `pipelex` `dev`, and the two mirror pull requests have to merge together or `conformance`'s `check-fixture-drift` goes red on `dev` for everyone. Filed as L-260902-f7d9e7 (`mthds-python`) and L-260902-720ec1 (`mthds-js`), both `blocked_by` this phase's item, each carrying the capture's measured summary so the receiving session can check its own regeneration against it. Note for whoever picks them up: cut the recapture branch from `dev`, not from whatever the mirror checkout happens to be sitting on.
-
-## Ledger
-
-- Both items carry `plan:` refs at this document. Claim (`ledger claim <id>`) at the start of each implementation phase.
-- PR 1 body: `Closes L-260831-8f7c8c`. PR 2 body: `Closes L-260831-635398`. Land with `/ledger-land`.
-
-## Deferred — noted, deliberately not in scope
-
-- **The unshapeable registry declares a ledger item but never an expected error** (L-260902-587766). `ShapingGate.round_trip` catches bare `Exception` and `declared()` only checks key membership, so any exception at a declared key reads as the declared refusal. Isolating each gap in its own pipe narrows the blast radius to that one template, which is why this is deferred rather than blocking, but the declaration still cannot say what it expects. Moves together with L-260831-1e1a71.
-- **A symmetric parity check cannot see a symmetric deletion** (L-260902-e62273, owner `conformance`). `check-protocol-fixture-parity.py` compares the two mirrors against each other and nothing holds a canonical copy, so both mirrors dropping the same pipes is green — which is exactly how the missing `output_bundle.mthds` would have landed unnoticed. Wants a pipe-ref expectation that does not come from the capture under test.
-
-- **`PipeIOContractError` declares no `error_domain`, so its residual causes still render HTTP 500** (a user structure class genuinely missing from the request, a pydantic schema-generation failure). The `Anything` fix removes the illegitimate trigger; whether the remaining ones are INPUT-domain is its own ruling, adjacent to L-260829-fa8267's theme. File a ledger item during Phase 1 rather than widening this PR.
-- **A sweep of other compatibility-as-identity sites.** `grep is_compatible pipelex/pipe_operators/` shows the same pattern deciding behavior in `pipe_extract`, `pipe_img_gen`, `pipe_compose`, `pipe_search`, `pipe_structure`, and `PipeLLM`'s text-vs-object dispatch — each site reachable with a `Dynamic` input or output, each currently answered by the dynamic short-circuit. Some of those leniencies are by design (`validate_output_with_library` says so explicitly); none has been audited. File as a ledger task during Phase 2.
diff --git a/wip/optionals/README.md b/wip/optionals/README.md
deleted file mode 100644
index 3ed8835e6..000000000
--- a/wip/optionals/README.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# Optionals (`?` / `!`) — track folder
-
-## Where things stand
-
-**Phase 1 (the language core) is COMPLETE** — all steps A–F landed, final checkpoint cleared. The authoritative record — checkpoint log, decisions/deviations, hand-off notes — is kept at workspace level, because most of what it logs is the cross-repo landing. PR #1021 → dev is merge-ready; Louis merges.
-
-**Decided:** `??` coalescing is pulled forward from phase 3 into phase 2 — it is the ergonomic replacement for the `continue` pass-through that phase 1 broke (design doc §13 migration note, §17 phasing).
-
-## What comes next — three streams
-
-1. **Release + spec-suite de-gate — DONE (pipelex 0.38.0 / pipelex-api 0.8.0).** The gate-removal checklist (kept at workspace level; the outcome is recorded in [deferred-step-f-notes.md](deferred-step-f-notes.md)) was run against the released runtimes: the pending-feature marker removed, six QA cases generated, probe-skips dropped, the whole optionals surface of our cross-repo spec suite green on both arms. The same pin bump also required reconciling the (separate) PipeSignature-tag retirement in that suite's signature fixtures — see the deferred-step-f note for that + the follow-ups it surfaced (plxt schema propagation, the stale `pipelex#996` gate, the `-L`-path static-pass categorization bug).
-2. **Cross-repo optionals wave — plan to write.** Scope: mthds spec pages, mthds-python `absences` ledger on `DictWorkingMemoryAbstract` (un-gates the `_run_core_api.py` absent arm back here), mthds-js type mirrors, mthds-ui (skipped nodes, optional edges, `skip_reason`, the `conceptRefs.ts` parse-to-null bug), vscode-pipelex (grammar, semantic tokens, the Rust `strip_concept_qualifiers` bug), pipelex-api response models (`warnings` + contract `optional` flags), mthds-plugins skills. **Gated:** lands after the Required-main-stuff Phase 3 sweep (same mthds spec pages) and the release — except the two syntax-highlighting handoffs, which are ungated and already written up at workspace level.
-3. **Phase 2 — plan to write, in-repo and ungated.** The PipeLLM/`Text?` maybe-wrapper with reasons + `??` coalescing (per the decision above). Candidate rider: the PipeBatch ledger-parity observability question from the Step F notes.
-
-## Documents
-
-- [optionals-design.md](optionals-design.md) — the design reference: decisions D1–D11, phasing (§17), decision summary. Still authoritative for future phases.
-- [optionals-plan.md](optionals-plan.md) — the phase-1 narrative plan (steps A–F). CLOSED; kept as the record the tracker implements.
-- [deferred-step-f-notes.md](deferred-step-f-notes.md) — **live follow-ups**: the hosted-wire absence-records pin, the PipeBatch ledger-parity question, a pre-existing template-variable detection quirk, plus the three the release surfaced (plxt schema propagation, the stale `pipelex#996` gate, the `-L`-path categorization bug). Also carries the **DONE** record of the spec-suite gate removal — the step-by-step checklist itself is at workspace level.
-- [deferred-absence-handling-dedup.md](deferred-absence-handling-dedup.md), [deferred-step-d-review-tradeoffs.md](deferred-step-d-review-tradeoffs.md), [deferred-step-e-review-tradeoffs.md](deferred-step-e-review-tradeoffs.md) — design-tradeoff findings from the checkpoint cold reviews, deliberately not applied; triage on demand.
-- [optionals-phase1-highlights.html](optionals-phase1-highlights.html) — presentation artifact summarizing phase 1.
-
-The phase-1 tracker and the cross-repo hand-off docs (vscode-pipelex + mthds-ui marker highlighting) are kept at workspace level.
diff --git a/wip/optionals/deferred-absence-handling-dedup.md b/wip/optionals/deferred-absence-handling-dedup.md
deleted file mode 100644
index d67054dac..000000000
--- a/wip/optionals/deferred-absence-handling-dedup.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Deferred design-tradeoff items from the Checkpoint C cold review
-
-Review findings on the Step C diff (`7d2ed6bf4..0df759bd6`) that are deliberate tradeoffs, not bugs. Recorded here per the checkpoint protocol instead of reflexively applied; revisit when the shapes stabilize (after Step E at the earliest, since Step E touches the same boundaries).
-
-## 1. The tri-state branch-collect pattern is hand-rolled per controller
-
-`resolve_main_stuff()` → `isinstance AbsenceRecord` → policy appears in `pipe_parallel.py` (D11 combine policy), `pipe_batch.py` collect loop (compaction), and `pipe_batch.py` dry stamping (guard). The three policies are genuinely different (omit-or-error vs drop vs skip-stamping), so a shared helper today would abstract only the two-line resolve+isinstance prelude while forcing the policies through a callback. Decision: keep the pattern inline until a fourth site appears (e.g. a future controller); then extract a `resolve_branch_output()` helper with the re-keying rule from `pipe_parallel.py` as part of it.
-
-## 2. `_generate_absence_files` shares the JSON + escaped-`<pre>` triplet with `_generate_main_stuff_files_from_raw`
-
-Both render `clean_json_dumps` + `html.escape` inside `<pre>`. The overlap is a few lines and the markdown bodies are entirely different. Decision: not worth a shared helper for two call sites; if a third "render this dict as json/md/html artifact triplet" site appears in Step E (execute response? CLI?), extract then.
-
-## 3. Nesting depth in `PipeParallel._run_branches_and_combine`
-
-The per-branch loop nests name bookkeeping, the D11 required-field guard, and accumulation. An extraction like `_resolve_branch_or_record_absence(...) -> Stuff | None` would flatten it. Decision: cosmetic; fold into item 1's helper if/when it happens.
-
-## 4. Non-`None` field defaults absorb the absence as the default (documented, kept)
-
-The D11 absorption check is `field_info.is_required()`, so a non-required field with a non-`None` default absorbs an absent branch as that default. This is deliberate: it matches pydantic semantics, and an author-declared default on an optional field is exactly a per-field coalescing declaration (a preview of the phase-2 `??`). Changelog and docs now state "the field's default (`None` unless the author declared another default)" rather than promising `None`.
diff --git a/wip/optionals/deferred-step-d-review-tradeoffs.md b/wip/optionals/deferred-step-d-review-tradeoffs.md
deleted file mode 100644
index 8c6b81d4d..000000000
--- a/wip/optionals/deferred-step-d-review-tradeoffs.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# Deferred design tradeoffs from the Checkpoint D cold review
-
-Findings from the Checkpoint D cold review that are deliberate scoping choices or efficiency polish, not silent bugs. Each entry records the finding, why it is deferred, and what would trigger picking it up. (Correctness findings from the same review were fixed in the checkpoint follow-up commit: the lifted `add_each_output` companion-slot gap, the guard-walker false negatives/positives, the leaking `Jinja2DetectVariablesError`, the PipeSearch/PipeImgGen lint coverage, the prose-in-`variable_names`, and the duplicated taint bookkeeping.)
-
-## 1. `liftable_pipes` only covers pipes in the validated bundle
-
-`build_liftable_pipes` iterates `result.pipes` — the pipes loaded from the validated bundle batch. A cross-package dependency controller (resolved through the hub during a taint walk) is not itself iterated, so ITS liftable branches don't appear as separate entries.
-
-**Why deferred:** whether the valid report should enumerate internals of *other* packages is a real design question — the inventory is keyed to the bundle under validation, and a dependency package's flows are its own validate's concern. The D3 commitment ("every liftable pipe is visible at build time") is satisfied within the bundle; cross-package visibility overlaps with how the protocol wants to scope reports per package.
-
-**Pick up when:** the Step E/F protocol work formalizes `liftable_pipes` on the wire — decide the scoping there (per-bundle vs per-closure) and document it in the spec either way.
-
-## 2. Taint analyses recomputed per validate pass
-
-A controller's taint analysis can run up to three times during one validation: its own `validate_output_with_library`, an enclosing sequence's `analyze_taint` (branch-taint sub-analysis), and `build_liftable_pipes`. Similarly, PipeLLM templates are Jinja2-parsed twice in `validate_inputs_static` (variable detection + guard-lint).
-
-**Why deferred:** validation-time only, small ASTs/flows, no measured pain. Memoizing per-pipe analyses or sharing a parsed AST adds state/invalidation complexity to save milliseconds at author time.
-
-**Pick up when:** validation latency on large libraries becomes a measurable complaint (profile first).
-
-## 3. `_build_full_path` duplicated between jinja2 walkers
-
-`jinja2_optional_guards._build_full_path` mirrors the private helper in `jinja2_required_variables`. Sharing means exporting a private helper or minting a tiny common module.
-
-**Why deferred:** the helper is small and stable; a cross-module private import or a one-function module is more structure than the duplication costs today.
-
-**Pick up when:** a third walker needs it, or either copy needs a behavior change (then unify first).
-
-## 4. Guard shapes deliberately not recognized
-
-The guard walker recognizes `{% if var %}` bodies (including `and`-combos with short-circuit awareness), `is defined` tests, and CondExpr true-arms. Still linted as unguarded, though runtime-safe in principle:
-
-- inverted guards: `{% if not var %}fallback{% else %}{{ var.attr }}{% endif %}` (the else-arm of a negative presence test);
-- the false-arm of a negated inline conditional: `{{ 'x' if not var else var.attr }}`.
-
-**Why deferred:** the walker is documented as deliberately narrow — a conservative lint with a precise fix message beats a clever one; the positive-guard rewrite is always available and arguably clearer.
-
-**Pick up when:** real bundles hit these shapes and the rewrite is genuinely awkward (collect examples first).
diff --git a/wip/optionals/deferred-step-e-review-tradeoffs.md b/wip/optionals/deferred-step-e-review-tradeoffs.md
deleted file mode 100644
index 7b50aeced..000000000
--- a/wip/optionals/deferred-step-e-review-tradeoffs.md
+++ /dev/null
@@ -1,47 +0,0 @@
-# Deferred design tradeoffs from the Checkpoint E cold review
-
-Findings from the Checkpoint E cold review that are deliberate scoping choices, cross-repo-gated work, or pre-existing sharp edges the diff newly exposed — not silent bugs introduced by Step E. Each entry records the finding, why it is deferred, and what would trigger picking it up. (Correctness and consistency findings from the same review were fixed in the checkpoint follow-up commit: the lifted-plural producer registration in both graph builders, the useless-`!` lint wired into the bare CLI and the builder validate_ops twins, the single shared taint walk per validate pass, the shared `output_digest_is_optional` helper, the shared absence JSON/HTML renderers, and the docs for the new graph and validate surfaces.)
-
-## 1. API-runner run path errors on a designed absence (cross-repo gated)
-
-`pipelex-agent run --runner api` raises a "runner contract violation" `PipeExecutionError` when the main output legitimately resolved absent, because the mthds SDK wire model (`DictWorkingMemoryAbstract`, `extra="forbid"`, root + aliases only) cannot carry the absences ledger — so the CLI cannot distinguish a designed absence from a genuinely missing output. The local runner renders a first-class absence document for the same run.
-
-**Why deferred:** fixing it requires the mthds SDK (and the API response models) to carry `absences` on the wire — a cross-repo protocol bump already listed in the tracker's cross-repo hand-off notes. Guessing "absent" from a missing key without the ledger would erase provenance and mask real contract bugs.
-
-**Pick up when:** the mthds SDK working-memory model gains the `absences` field; then implement the absent arm in `_run_core_api.py` (mirror `_run_core.py`'s absence document) and add the API-arm test.
-
-## 2. Builder-generated runner code crashes on an absent optional output (pre-existing, newly exposed)
-
-`pipelex/builder/runner_code.py` scaffolds example scripts that read `pipe_output.main_stuff` / `main_stuff_as(...)` unconditionally. For a pipe with a declared-optional output whose run resolves absent, the generated script dies in `get_main_stuff` (the ledger is not consulted) while every in-repo surface renders an absence document.
-
-**Why deferred:** builder codegen is the spec/authoring layer — making the generated snippet absence-aware (branch on `resolve_main_stuff()`, print the absence summary) is an authoring-UX design choice that belongs with the builder-layer optionals pass, not a one-line patch inside a checkpoint triage.
-
-**Pick up when:** the optionals track reaches the builder/spec layer (specs learn `?`/`!`), or the first user report of a scaffolded script crashing on a designed absence.
-
-## 3. `{{ var | length }}` on singular content still raises (pre-existing sharp edge)
-
-`StuffArtefact.__bool__` fixed the `{% if var %}` truth test, but `__len__` still raises `TypeError` for non-list content, and Jinja2's `length` filter is the `len()` builtin — so `{{ var | length }}` (or `{% if var|length > 0 %}`) on a PRESENT singular value raises the very error the `__bool__` fix targets.
-
-**Why deferred:** giving singular content a `__len__` invents a semantic (1? character count?) that would silently change template behavior far beyond optionals; D4 keeps length a list concept. The truthiness idiom (`{% if var %}`) is the documented guard shape and works on both arms.
-
-**Pick up when:** real bundles hit `|length` on singular optionals — then extend the template guard-lint to flag `|length` applied to a singular slot and point at the truthiness idiom instead (lint, not semantics).
-
-## 4. `GraphTracerManager.add_edge` facade does not expose `optional` (latent)
-
-The tracer-level `add_edge` carries `optional`, but no current caller routes explicit edges through the manager facade with that flag — reviewer-confirmed latent, no behavior impact today.
-
-**Why deferred:** dead parameter-plumbing until a controller actually emits an explicit optional edge; the DATA-edge path (where `optional` is computed) does not go through the facade.
-
-**Pick up when:** a controller needs to emit an explicit edge with the optional marker — extend the facade signature then.
-
-## 5. No OTel span for lifted leaf pipes (pre-existing)
-
-A lifted pipe returns from `run_pipe` before the operator-level OTel span factory runs, so a skipped leaf emits no span at all (the graph, ledger, and parent spans still record the skip). Pre-existing behavior untouched by Step E; the new absence-aware OTel code covers live-run pipes with absent optional inputs/outputs.
-
-**Why deferred:** emitting a dedicated "skipped" span changes the telemetry shape and belongs with a deliberate observability design pass, not a triage patch.
-
-**Pick up when:** operators report needing per-skip spans for tracing dashboards (the graph's `SKIPPED` node + `skip_reason` covers today's "why did this produce nothing?" question).
-
-## 6. Deeper taint-walk memoization still open (carried from Step D)
-
-Step E's triage collapsed the two validate-report projections onto one `collect_controller_taint_analyses` pass, but a controller's analysis can still run again inside `validate_output_with_library` and inside an enclosing controller's walk (Step D deferred item 2). Same reasoning, unchanged: validation-time only, no measured pain — profile before memoizing.
diff --git a/wip/optionals/deferred-step-f-notes.md b/wip/optionals/deferred-step-f-notes.md
deleted file mode 100644
index 8bd9d1b85..000000000
--- a/wip/optionals/deferred-step-f-notes.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# Step F deferred notes
-
-Deferred items surfaced while writing the Step F specs, spec-suite coverage and docs. Same policy as the other deferred docs in this folder: none of these block phase 1; triage them with the cross-repo wave or on demand.
-
-## Pre-existing: inline `$var` followed by ` (` escapes template variable detection
-
-Found while ground-truthing the `optional_input_unguarded` spec-suite fixture. A prompt like `"Greet $name (nickname: $nickname)."` reports `extraneous_input_variable` for `name` — the inline `$name` reference is not detected as a variable use when it is immediately followed by a space and an opening parenthesis. `"Greet $name today, nickname: $nickname."` detects both fine. Most likely the preprocessed Jinja2 parses `name (…)` as a call expression, and the variable walker misses the callee (or the detection regex swallows the call shape). Pre-existing behavior, unrelated to optionals — reproduced with plain (non-optional) inputs too. Worth a small fix in the variable-detection walk (`jinja2` dissection utilities); the workaround is any other punctuation/wording between the variable and the parenthesis.
-
-## Spec-suite optionals coverage was pinned ahead of the runtime — gates removed at release
-
-**DONE** (pipelex 0.38.0 + pipelex-api 0.8.0). Our cross-repo spec suite had written its optionals coverage against an unreleased runtime and gated all of it behind a pending-feature marker; the gate-removal checklist was executed against the released runtimes, and every optionals QA case, categorized row and warnings test now runs ungated on both arms (agent-CLI and hosted HTTP), zero skips. The generic gating infrastructure was kept as dormant, reusable machinery — it is independently tested and still live for another pending-feature gate. The step-by-step execution record lives at workspace level with the rest of that suite's notes.
-
-The same 0.35→0.38 pin bump also swept up the **PipeSignature-tag retirement** (0.38.0 rejects `type = "PipeSignature"` — `unknown_pipe_type`, "no longer a pipe type"; a signature is now a **type-less** pipe, no `type` and no implementation), plus benign wording refreshes in a few unrelated corpus cases (verdict/category/error_type unchanged). The shipped verdict contract was confirmed and kept: a pending signature is `is_valid=true` in BOTH strict and `--allow-signatures` modes, gated only via exit code (strict→1, `--allow-signatures`→0) — `is_valid` ≠ `is_runnable`.
-
-Open follow-ups surfaced (NOT done here — flagged to route):
-
-- **plxt/vscode-pipelex schema propagation.** pipelex 0.38.0's regenerated schema DOES carry `PipeSignatureBlueprint` (type-less, no required `type`), but the plxt-bundled schema is stale and rejects type-less bundles — an `mthds-schema-sync` propagation item (cross-repo wave).
-- **The `pipelex#996` QA gate is now stale.** 0.38.0 emits `blueprint_validation / batch_item_name_collision` structured, so the batch-item-collision case's pending-feature gate is dormant; per the marker-removal policy it should be dropped to close the invisible-regression window.
-- **`-L` directory-load path drops structured `error_type` for static-pass validators.** `library_manager.py:824` (`except ValidationError`) stringifies static-pass `PipeValidationError`s (e.g. `optional_output_required`, `optional_input_unguarded`) instead of categorizing them, so a `-L`-loaded bundle degrades to an uncategorized `blueprint_validation` residual — whereas single-file CLI and HTTP `mthds_contents` both categorize correctly. Latent pipelex bug (pre-existing, predates optionals), independent of this task.
-
-## PipeBatch compaction does not ledger the dropped branches (PipeParallel does)
-
-Surfaced by the Step F cold review. When PipeBatch compacts an absent branch result out of the aggregated list (`pipe_batch.py`, the `AbsenceRecord` arm of the aggregation loop), it only emits a `log.verbose` line — unlike PipeParallel, which calls `working_memory.record_resolved_absence` for an omitted composite component. So a run's absence ledger does not show which batch items were dropped. Design question, not a bug: N dropped branches would add N records (noisy for large batches), and the compacted list itself is a present value at the boundary. If ledger parity is wanted (e.g. for the route-or-skip auditing story), record one absence per dropped branch (or one summarizing record) into the parent working memory during aggregation. Revisit with phase 2 observability work.
-
-## Absence records on the hosted wire — the spec-suite pin awaits the mthds bump
-
-The spec section "Absence records on run artifacts" is `<!-- unverified -->` by design: the hosted `/v1/execute` cannot return the `absences` ledger until the mthds SDK wire models can carry it (cross-repo hand-off item 1 in the tracker). When that lands, add an HTTP-arm test to our cross-repo spec suite (a PipeFunc/PipeCondition-only bundle whose optional output resolves absent) and flip the spec section to `> Verified by:`.
diff --git a/wip/optionals/optionals-design.md b/wip/optionals/optionals-design.md
deleted file mode 100644
index 562b25c7f..000000000
--- a/wip/optionals/optionals-design.md
+++ /dev/null
@@ -1,283 +0,0 @@
-# Optionals in the MTHDS conceptual typing system — design choices
-
-Status: **design approved — all decisions D1–D11 decided.** Branch `feature/Optionals`; implementation plan in `wip/optionals/optionals-plan.md`. This document records the design space for adding optionality (`?`) to concept refs: each decision, the options considered, the chosen option, and its consequences. Decisions are numbered D1–D11 and summarized at the end.
-
-## 1. The problem
-
-MTHDS can express *how many* values flow through a slot (`contracts.PenaltyClause[]`) but not *whether* a value flows at all. Every declared input is unconditionally required and every declared output is unconditionally produced. Real methods constantly need "maybe there is no value", and today authors work around it in four ways, all bad:
-
-- **The empty-string hack.** A required structured field whose description says "empty string if full match" (seen verbatim in the cookbook's `rfp_qualifier`: `gap_description = { ..., description = "... empty string if partial or no match, empty string if full match", required = true }`). The type system says "always a value"; the prompt smuggles in the absence convention. Downstream pipes must know the convention to test for it.
-- **Hallucination pressure.** "Extract the penalty clause" with `output = "PenaltyClause"` gives the model no way to say "there isn't one" — the schema demands a value, so the model invents one. This is the single worst failure mode: it is silent and it is wrong.
-- **The invisible optional in `PipeCondition`.** An outcome mapped to `continue` returns working memory unchanged and produces *no* output — a de-facto optional that the type system cannot see. Validation runs all branches during dry run and never models the "produced nothing" path, so nothing downstream is checked against it.
-- **The cosmetic `@?`.** The prompt sigil `@?var` (→ `{% if var %}{{ var|tag("var") }}{% endif %}`) says "render only if present", but the variable detection still counts it as a required input, and the runtime gate (`validate_before_run`) still hard-fails when it is missing. The author can express optional *rendering* but not optional *presence*.
-
-And when a value genuinely is missing at run time, the user gets one of: a generic `PipeRunInputsError` (whose message says "Dry run of ..." even on live runs — pre-existing bug in `PipeAbstract.validate_before_run`), a `WorkingMemoryStuffNotFoundError` listing valid keys, or a Jinja `UndefinedError` from deep inside template rendering. None of them can say *why* the value is absent, because absence is not a modeled fact — it's just a missing dict key.
-
-Swift's optional model is the guide: declare with `?`, chain with `?`, force with `!`, all checked at compile time so `nil` never surprises you at run time. The translation problem is that MTHDS is declarative and high-level: there is no expression context in which to write `a?.b`, no `if let` statement. The unwrapping constructs must live where MTHDS authors already work — input/output declarations, prompts, and controllers — and the "compile time" is our validation engine.
-
-## 2. The shape at a glance
-
-Before the decision grind, here is the full design on the running example, so the taste is visible end-to-end:
-
-```toml
-[pipe.extract_penalty_clause]
-type = "PipeLLM"
-inputs = { contract = "contracts.Contract" }
-output = "contracts.PenaltyClause?" # NEW: this pipe may legitimately find nothing
-prompt = """Extract the penalty clause from this contract, if there is one.
-@contract"""
-
-[pipe.assess_penalty]
-type = "PipeLLM"
-inputs = { penalty_clause = "contracts.PenaltyClause" } # plain required input
-output = "contracts.PenaltyAssessment"
-prompt = """Assess the severity of this penalty clause. @penalty_clause"""
-
-[pipe.write_report]
-type = "PipeLLM"
-inputs = { contract = "contracts.Contract", assessment = "contracts.PenaltyAssessment?" } # NEW: absorbs absence
-output = "contracts.ContractReport"
-prompt = """Write a contract report.
-@contract
-@?assessment"""
-```
-
-Semantics, in order:
-
-- `extract_penalty_clause` declares an **optional output**. The runtime gives the LLM an explicit way to answer "no penalty clause" (a maybe-wrapper schema carrying a reason), and when it does, the slot is recorded as **absent with provenance** ("no penalty clause found in this contract") instead of holding a hallucinated value.
-- `assess_penalty` declares a plain required input fed by a maybe-absent slot. It is **lifted**: when the clause is absent, the pipe is *skipped* and its own output is recorded absent, provenance chaining back to the extraction. This is Swift's `a?.b` — write `?` once where absence enters; the chain short-circuits.
-- `write_report` declares an **optional input** (`?`): it runs regardless, and its prompt handles both arms via `@?assessment`. This is where the absence chain terminates — the explicit sink.
-- Validation proves the whole thing: every slot that may be absent must terminate in an explicit sink (an optional input, a forced input `!`, or an optional method output), or the bundle is invalid. Absence can never silently reach a consumer that doesn't expect it.
-- If the author instead writes `penalty_clause = "contracts.PenaltyClause!"`, absence becomes a **typed runtime failure** whose report names the variable, the consuming pipe, the producing pipe, and the model's stated reason for the absence.
-
-## 3. Three kinds of "nothing" — and which one this is
-
-The design must not blur three distinct notions, two of which already exist:
-
-| Notion | Where it lives | Existing? | Example |
-|---|---|---|---|
-| Field-level null | Inside a structured content: `required = false` → generated `Optional[T] = None` | Yes | `notes` field of an Invoice is `None` |
-| Plural emptiness | A list slot with zero items: `ListContent(items=[])` | Yes | Extraction found no requirements → `RFPRequirement[]` is empty |
-| Slot absence | A named slot in working memory has **no Stuff at all** | **New** | No penalty clause → no `PenaltyClause` stuff exists |
-
-`?` is about the third notion only. Concepts themselves stay total and singular — the existing multiplicity philosophy ("concepts are always singular; multiplicity is a property of the flow") extends naturally: **concepts are always present; presence is a property of the slot.** So `?`, like `[]`, is legal only where slots are declared (pipe `inputs` and `output`), never on concept definitions, `refines`, `concept_ref`/`item_concept_ref` structure fields, or package export lists.
-
-## 4. The Swift dictionary
-
-| Swift | MTHDS analog | Phase |
-|---|---|---|
-| `T?` declaration | `output = "X?"` / `inputs = { v = "X?" }` | 1 |
-| `nil` | Absent slot, recorded with provenance in working memory | 1 |
-| `a?.b.c` optional chaining | Lifting: a pipe with a plain required input fed by a maybe-absent slot is skipped, its output becomes absent (D3) | 1 |
-| `x!` force unwrap | `inputs = { v = "X!" }` → typed runtime error if absent | 1 |
-| Function taking `T?` | Optional input `X?`: pipe runs, handles absence itself (prompt guards) | 1 |
-| `if let` / `guard let` | `@?var` and `{% if var %}` in prompts; PipeCondition branching on presence | 1 (idiom), 2 (sugar) |
-| `?? default` | Input defaults / fallback values | 2 |
-| `try?` (error → nil) | `on_error = "absent"` on a pipe with optional output | 2 |
-| `compactMap` | PipeBatch whose inner pipe has optional output → absences dropped from result list | 1 or 2 |
-
-## 5. D1 — Grammar: where `?` and `!` may appear
-
-The suffix grammar becomes:
-
-```
-io_ref := concept_ref_or_code marker?
-marker := "[]" | "[" digits "]" | "?" | "!" # v1: markers are mutually exclusive
-```
-
-- `?` is legal on pipe **inputs and outputs** (blueprints and specs), and therefore on method signatures (a method is a pipe).
-- `!` is legal on **inputs only** — it is a use-site assertion, not a type. `!` on an output is meaningless (a producer doesn't unwrap anything) and is a grammar error.
-- In v1, `?` may not combine with `[]`/`[N]` — see D4. If we ever allow it, the order is fixed: multiplicity then presence (`X[]?`), read "the list slot may be absent".
-- `?` and `!` never appear in concept definitions, `refines`, structure-field `concept_ref`s, or `METHODS.toml` refs. Package-layer parsers (`qualified_ref` in pipelex, mthds-js, mthds-python) never see them.
-
-Consequences: the change concentrates in the multiplicity parser (`variable_multiplicity.py` — one regex plus its inline twin), the looser input-factory regex, and the naive `[`-splitter in `concepts/helpers.py` which today would silently pass a `?` through. While touching this file, fix the `MUTLIPLICITY_PATTERN` typo (rename to `MULTIPLICITY_PATTERN`).
-
-An alternative considered and rejected: expressing optionality as an expanded input table (`penalty = { concept = "PenaltyClause", optional = true }`) instead of a suffix. It avoids grammar changes but breaks symmetry with `[]`, is far more verbose, requires inventing an expanded input form that doesn't exist today, and gives outputs no way to be optional at all. The suffix is the right design; the expanded form can arrive later for defaults (D10) without conflict.
-
-Naming: `?` is the **optional marker**, pronounced "optional" (consistent with the `@?` sigil); `!` is the **force marker** (Swift-familiar). These are the terms the spec, docs, error messages, and skills use.
-
-## 6. D2 — What absence *is* at runtime
-
-Options:
-
-- **A. Absent key + absence ledger (chosen).** Absence stays what it mechanically is today — no Stuff under that name — but becomes a *recorded fact*: working memory gains a small side-table of `AbsenceRecord`s (`variable_name`, `producing_pipe`, `kind` = declared-absent | skipped | not-provided, `reason`, and the upstream record it chains to). A pipe that produces absence writes a record instead of a Stuff. `get_optional_stuff` and the run report can then distinguish "declared absent, here's why" from "never produced — that's a bug".
-- **B. Sentinel Stuff (present key, null content).** Make `Stuff.content` nullable or introduce an `AbsentContent`. Rejected: it breaks the strongest invariant in the content model (`Stuff.content` is never None, every accessor assumes it), leaks nulls into templates and the wire, and forces every operator to check for the sentinel. All cost, no benefit over A.
-
-Consequence of A: the wire format for run results needs an explicit representation of absence (D8), because "key missing from the output dict" must now be readable as "absent by design, reason attached" rather than ambiguous. The ledger is also what makes the failure UX (D9) possible — provenance is captured at the moment absence is produced, not reconstructed at failure time.
-
-## 7. D3 — Consuming an optional: the central decision
-
-A slot is **maybe-absent** if it is fed by an optional output, by a liftable (skippable) pipe, or is an optional method input. What may a downstream pipe's input declaration say about such a slot?
-
-The model is a trichotomy on the input marker:
-
-| Input form | Static rule when fed maybe-absent | Runtime behavior when actually absent | Swift analog |
-|---|---|---|---|
-| `v = "X"` (plain) | Allowed; the pipe becomes *liftable* and its output maybe-absent (taint propagates) | Pipe is **skipped**; absence recorded with provenance "skipped because v absent ← ..." | `a?.b` chaining |
-| `v = "X?"` (optional) | Allowed; taint **terminates** here | Pipe **runs**; templates see the var as absent and must guard (D7) | function taking `T?` |
-| `v = "X!"` (forced) | Allowed; taint terminates here | Pipe would run, but absence raises a typed error carrying the provenance chain | `x!` |
-
-And the safety theorem validation enforces: **every absence source must reach an explicit sink** (`?` input, `!` input, or a `?` on the enclosing method's declared output). If taint reaches a non-optional method output or otherwise escapes unhandled, validation fails with a dedicated error naming the source, the path, and the three ways to fix it.
-
-**Decision: implicit lifting**, for user-friendliness. Consequence: the mitigations listed below (liftable-pipe visibility in the validation report, skipped-node rendering in the graph, run-report skip reasons) are commitments of phase 1, not optional extras.
-
-Why implicit lifting for plain inputs (rather than Swift's "consuming an optional without unwrapping is a compile error"):
-
-- It matches Swift more closely than it first appears: in `a?.b.c.d`, you write `?` exactly once — at the point absence enters — and `.b.c.d` are *implicitly* conditional. The MTHDS equivalent of that single `?` is the optional output declaration upstream; the pipes in between are the `.b.c.d`.
-- It is what a high-level declarative language should do: "no penalty clause → no severity assessment" is the obviously-intended semantics, and demanding a marker on every intermediate pipe turns a one-decision design into annotation churn.
-- It keeps pipe signatures reusable. `assess_penalty : PenaltyClause → PenaltyAssessment` stays a total, non-optional pipe; the *flow context* lifts it. The same pipe used in a flow where the clause is guaranteed present is not polluted by optional markers it doesn't need. (This is precisely functorial lifting: the chain applies `(T → U)` to a `T?` and gets a `U?`.)
-- The escape hatches are exactly where Swift puts them: `!` to assert, `?` to absorb.
-
-The honest counter-argument: implicit skipping is action-at-a-distance. An author who *didn't intend* their pipe to be skippable might be surprised a step didn't run. Mitigations, in order of importance: (1) the taint can never appear out of nowhere — some upstream author wrote an explicit `?`, and the sink is also explicit, so the skip zone is bracketed by visible markers; (2) the validation report lists every liftable pipe ("may be skipped when X is absent"), so it is visible at build time, not just run time; (3) the run report and graph render skipped pipes distinctly (D8/D9). If we still find this too implicit in practice, the strict alternative below is a compatible tightening (it turns silently-allowed cases into errors), so starting permissive does not paint us into a corner — whereas starting strict and loosening later would churn every method written in between.
-
-Rejected alternatives:
-
-- **Strict-explicit (Swift-literal).** Plain `X` fed by maybe-absent = validation error; author must write `?`, `!`, or a new chain sigil on every consuming input. Consequence: mid-chain noise, and the "chain sigil" would have to be invented (a third marker meaning "skip me", distinct from `?` which means "run me") — three markers where the trichotomy needs two.
-- **Error-only (no skip at all).** `?` inputs and `!` are the only consumers; feeding maybe-absent into plain `X` is an error. Consequence: every pipe downstream of an extraction must guard its prompt for a value that, when absent, makes the pipe pointless. Authors would immediately ask for skip; PipeCondition + `continue` boilerplate would proliferate.
-
-One more rule: an input may declare `?` even when fed by a guaranteed-present slot (over-tolerance is allowed, exactly as Swift lets you pass a `T` where `T?` is expected). This matters for signature stability — a reusable pipe can declare tolerant inputs without caring what feeds it. `!` on a guaranteed slot is statically useless; it stays legal and is flagged through the `warnings` channel (D6).
-
-## 8. D4 — Optionals and plurals
-
-Should `X[]?` exist? The distinction it would encode is "the list step was skipped" vs "the list step ran and found nothing". Options:
-
-- **A. Forbid `?` on plural refs; absence of a plural normalizes to the empty list (chosen).** `[]` already has a perfectly good "nothing": empty. When a pipe with plural output is skipped by lifting, the runtime writes an **empty ListContent** (plus an absence-flavored note in the ledger for observability) rather than an absent slot. Taint stops there: downstream batch over it runs zero branches (already today's clean behavior), downstream prompts see an empty list.
-- **B. Allow `X[]?` as a distinct state.** Two kinds of nothing for every plural slot; every consumer must consider both; PipeBatch needs an absent-vs-empty policy; templates need to distinguish undefined from empty. High complexity, and the "skipped vs empty" signal is preserved anyway in the ledger and the graph without needing a type-level distinction.
-
-**Decision: option A** — `?` forbidden on plurals; the empty list does the job. It yields a pleasing symmetry: `?` is the absence story for singulars, `[]`-emptiness is the absence story for plurals, and the two never stack. Corollary: `!` on plural inputs is also forbidden (there is nothing to force).
-
-Bonus primitive that falls out: **PipeBatch whose inner pipe has optional output performs compaction** — absent branch results are dropped, so the batch output is `X[]` containing only found items (Swift's `compactMap`). The existing `build_or_skip`-inside-batch test pattern (condition routing rejects to `continue`) is exactly this, done by hand today; optionals make it typed. Whether compaction ships in phase 1 or 2 is a scoping call — the semantics should be fixed now.
-
-## 9. D5 — Producing absence: which pipes can declare `output = "X?"`
-
-Grammar-wise, allow `?` on any pipe's output (uniformity; over-claiming optionality is harmless and preserves signature evolution room — a method may declare `X?` to reserve the right to return absence later). Semantically, absence is actually *produced* in these ways:
-
-- **PipeCondition with special outcomes.** If any outcome maps to `continue` (or `default_outcome = "continue"` is reachable), the declared output MUST be `X?` — this makes today's invisible optional explicit, and validation finally models the no-output path. This is the cleanest immediate win of the whole feature. (Interaction with the required-main-stuff invariant: see §14.)
-- **PipeLLM / structured generation with a maybe-wrapper.** When `output = "X?"`, the response schema becomes a wrapper the model can decline through: conceptually `{ found: bool, reason_if_absent: str, value: X | null }` (instructor's `Maybe` pattern). `found = false` → absence record carrying the model's stated reason. This kills the hallucination pressure *and* harvests the reason that makes downstream error messages excellent. For non-structured text outputs (`Text?`), the same wrapper applies. The exact wrapper shape and prompt scaffolding is an implementation detail of the operator, invisible in the `.mthds` surface.
-- **Lifted (skipped) pipes** — absence propagates per D3, no declaration needed on the intermediate pipe itself (its declared output stays total; effective optionality is computed).
-- **Optional method inputs** — a caller may omit `v = "X?"` from `inputs.json` / the execute request; the slot starts as recorded-absent ("not provided by caller") instead of raising `PipeRunInputsError`.
-
-Note the asymmetry with intermediate pipes: *method-boundary* signatures (the top-level pipe's inputs/output, anything exported/signature-matched) must be explicit about optionality — that's the API contract, and `contract_match` canonicalization must compare presence markers. *Internal* step-to-step effective optionality is inferred. Explicit at boundaries, inferred locally — same balance Swift strikes between API signatures and local type inference.
-
-## 10. D6 — Static validation: the taint pass
-
-The validator gains an absence-propagation pass over each controller's dataflow, computing per-slot presence: `guaranteed` or `maybe-absent`, using exactly the bookkeeping that already exists (`PipeSequence.needed_inputs`'s `generated_outputs` set is where "produced upstream" is tracked; it gains a presence dimension). Checks, all static:
-
-- Optional output feeding the checks in D3's matrix (nothing to check — every arm is legal; the *pipe-level* results are recorded for reporting).
-- Taint reaching a non-optional method output, sequence output, or other boundary → **error** (`OPTIONAL_NOT_HANDLED`, a new `PipeValidationErrorType`), message naming the absence source, the propagation path, and the three fixes (`?` the output, `!` an input, absorb with a `?` input).
-- `continue`-reachable PipeCondition without `?` output → error (`OPTIONAL_OUTPUT_REQUIRED`).
-- `?`/`!` grammar misuse (on plurals, on outputs for `!`, on `refines`...) → error at blueprint parse (`OPTIONAL_MARKER_INVALID`).
-- Optional input referenced unguarded in a template → see D7.
-
-New error types flow automatically through the existing machinery (`build_validation_error_items` → agent CLI JSON/markdown, API 422, our cross-repo spec suite) — the plumbing is already unified; we add enum values, fixtures, and spec-suite rows, not new channels.
-
-Two sub-decisions:
-
-- **Dry-run modeling.** v1: keep the dry run all-present (mock every input, including optional ones) and rely on the static taint pass for the absent arm. Alternative: dual-arm dry run (a second pass with all optionals absent) — better coverage of skip paths and template guards, but doubles dry-run cost and requires the skip machinery to run under DRY. Decision: static-only in v1, dual-arm as a follow-up if the static pass proves insufficient.
-- **Advisory channel.** Some findings are lints, not errors: `!` on a guaranteed slot, `?` output on a pipe that can never produce absence. The validation report is binary today; the only advisory precedent is `pending_signatures`/`is_runnable`. Options: (a) mirror that pattern with a dedicated `optionality_notes` list; (b) add a general `warnings` array to the report (protocol change, spec-suite impact, but the right long-term shape); (c) stay silent on lints in v1. **Decision: option (b)** — a general `warnings` array (same item shape as errors, never flips `is_valid`), bundled into the same protocol bump that adds the `optional` flag to IO contracts, so one bump covers both. Note the split with the *factual* liftable-pipe inventory ("pipe X may be skipped when Y is absent"), which is dataflow information, not a lint — it ships as structured data on the valid report (beside `pipe_io_contracts`), per the D3 implicit-lifting commitment.
-
-## 11. D7 — Prompts and templates: what the author sees
-
-When an optional input is absent, what does the Jinja context contain? Options:
-
-- **A. Nothing — the variable is undefined (chosen).** `{% if var %}` and `@?var` work (falsy), `{{ var }}` renders empty, and a *deep* unguarded use (`{{ var.amount }}`) raises — loud, which is what we want, but today it surfaces as a raw `Jinja2TemplateRenderError`. Pair with the static guard-lint below so authors rarely meet that error.
-- **B. A well-behaved `Absent` object** (falsy, chains safely, renders empty — a ChainableUndefined flavor). Everything renders silently; nothing ever fails. Rejected: silence hides bugs — an unguarded `{{ var.amount }}` producing empty prose *changes the prompt's meaning* without anyone noticing. Swift taste says absence misuse should be loud.
-
-The static companion (this is what makes A safe): validation lints that every template reference to a declared-optional input is **guarded** — reachable only inside `{% if var %}`-style guards, inline presence conditionals (`{{ 'present' if var is defined else 'absent' }}` — the §15 idiom, so the lint must recognize `is defined` tests as guards), or via `@?var`. The AST walk that already extracts required variables (`detect_jinja2_required_variables`) can classify guarded vs unguarded references. Unguarded use of an optional → validation error with a precise fix ("wrap in `{% if assessment %}` or use `@?assessment`").
-
-Two existing warts this design must fix in passing:
-
-- `@?var` currently still *registers the variable as required* (the detection walks both the `{% if %}` condition and body). Under optionals, `@?` on a declared-optional input must not mark it required — this finally makes `@?` mean what it says. `@?` on a *non*-optional input stays as today (cosmetic conditional rendering of a guaranteed value — still occasionally useful for falsy-but-present values, e.g. empty text).
-- The `None`-renders-as-`"None"` gotcha (field-level `None` produces the literal string `None` in prompts, and `|default()` doesn't catch `None`) is adjacent, field-level territory — out of scope for slot optionality, but worth a follow-up lint of its own since users will conflate the two kinds of nothing when debugging prompts.
-
-## 12. D8 — Wire, API, and graph surfaces
-
-- **IO contracts.** `PipeInputContract`/`PipeOutputContract` (and the protocol spec + mthds-js/mthds-python mirrors + `StuffSpecInfo` in mthds-ui) gain `optional: bool`. Neutral, MTHDS-brand naming — this is language surface, not runtime-specific, so no `pipelex_` prefixing anywhere on the wire.
-- **Run results.** An absent output must be *explicitly* absent on the wire, not just a missing key: the result carries the absence records (variable, producing pipe, kind, reason, provenance chain). A run whose main output is absent is a **success with an absent result**, not an error — clients branch on the structured field (presence), never on transport (same presentation-vs-contract rule as `/validate`'s `is_valid`).
-- **Execute requests.** Omitting an optional method input is legal; omitting a required one keeps today's failure but the error can now say "this input is required — the method also has optional inputs X, Y you may omit".
-- **Graph.** `GraphSpec` gains a `skipped` node state (alongside failed) and edges from optional outputs get a marker; mthds-ui renders skipped nodes/optional edges distinctly (dashed is the obvious treatment) and shows the absence reason in the detail panel. This is where "why did my workflow produce nothing?" gets answered visually.
-
-## 13. D9 — Failure UX and the error taxonomy
-
-New error classes (in the relevant `exceptions.py` modules, so docs pages, `type_uri`s, and RFC 7807 rendering come free):
-
-- `OptionalValueAbsentError` — the `!` failure. Carries: variable name, consuming pipe, the full provenance chain from the ledger, and the original reason. `error_domain = RUNTIME` (it is data-dependent — the method's assumption failed on this input data, not the caller's request shape), with a `user_action` explaining that the method force-unwraps (`!`) a value this input data doesn't contain.
-- The validation-side errors from D6 (`OPTIONAL_NOT_HANDLED` etc.) ride the existing `PipeValidationError` machinery.
-
-The concrete failure a user sees when a force-unwrap trips (markdown arm; the JSON/problem+json arm carries the same fields structured):
-
-> **Pipe `assess_penalty` requires `penalty_clause` to be present (declared `contracts.PenaltyClause!`), but it is absent.**
-> Absence origin: pipe `extract_penalty_clause` produced no value — "The contract contains no penalty or liquidated-damages clause."
-> Fix in the method: declare the input `contracts.PenaltyClause?` and guard the prompt, or let the step skip by removing `!`. Fix in the data: provide a contract that contains a penalty clause.
-
-Compare with today's equivalent (`Stuff 'penalty_clause' not found in working memory, valid keys are: [...]`). The delta is the entire point of the feature: absence with provenance turns "mysterious missing key" into "the model looked and found nothing, here is where and why".
-
-Success-path observability matters equally: the run report enumerates recorded absences and skipped pipes even when the run succeeds, so "my report doesn't mention penalties" is answerable without debugging.
-
-## 14. Interactions with merged and in-flight work
-
-- **Required-main-stuff invariant (PR #1014).** The invariant "a pipe run always delivers a main stuff" is enforced and test-pinned at every post-run boundary. Reconciliation: an `AbsenceRecord` satisfies the invariant as the terminal state of `main_stuff` when (and only when) the method output is declared `?` — the invariant generalizes to "main stuff is always *resolved*: a value or a recorded absence". Concrete consequences:
- - **`continue` semantics change (breaking).** Current behavior: `continue` = pass-through-or-error (deliver the current main stuff; `PipeRunError` if there is none, live and dry-run alike), pinned by `test_pipe_condition_continue_delivery.py` including run-id stamping. Phase 1 replaces it with **`continue` = declared output absent, memory otherwise unchanged**: the runtime records an absence for the declared output instead of passing through or raising, the pinned tests are rewritten (not extended), and the dry-run all-special-outcomes guard becomes "legal iff the output is declared `?` → record absence". The pass-through runtime error becomes unreachable for validated bundles once `continue`-reachable ⇒ `?` output is statically enforced (D6's `OPTIONAL_OUTPUT_REQUIRED`).
- - **Migration note — the pass-through capability disappears.** "If the value is already fine, `continue` and deliver it as-is" is expressible today. Under optionals the condition's output is absent instead; the previous value remains in memory under its own name, so downstream consumes it explicitly (`?` input + `@?` guard) — the ergonomic replacement is coalescing (`??`, D10), pulled forward into phase 2 for exactly this reason. The phase-1 docs and changelog must state the migration idiom explicitly (breaking).
- - **The tightened boundaries are the phase-1 absence-arm checklist.** These sites now read the main stuff directly and raise when it is missing; each must learn the "resolved as absent" arm: the graph-tracer epilogue in `pipe_abstract.py` (`get_main_stuff()` direct), the delivery executor (typed and raw-transport arms both raise), the CLI run cores (bare, agent, agent-API), `otel_factory.py`, and `resolve_main_stuff_root_key` in `runtime_bridge/serialization.py` (raises `PipeJobError`).
- - **Wire constraint: `main_stuff_name` stays required.** `PipelexPipeRunOutput` and `PipelexRunResultExecute` require `main_stuff_name: str` (fire-and-forget is a separate `PipelexPipeDispatchAck`). Do not re-optionalize it — that would undo #1014 and re-spread null guards. D8's shape: `main_stuff_name` keeps naming the declared output slot; the run result's absence records mark that slot absent; consumers branch on the structured absence record (presentation-vs-contract, as with `/validate`'s `is_valid`).
- - **No resurrection of `PipeOutput.optional_main_stuff`** (deleted in #1014). The new accessor is tri-state *resolved* (Stuff | AbsenceRecord) — never `None` for a completed run.
- - **Prose sweep:** the invariant wording ("a pipe run always delivers a main stuff") lives in docstrings and error messages across several files; phase 1 rewrites it to "always resolves its declared output: a value or a recorded absence".
-- **D11 — Absent branch results in PipeParallel's always-combine. Decision: absorption requires an optional attribute.** Since #1014, `PipeParallel` unconditionally combines its branch results into the declared `output` concept (`combined_output` deleted; untyped vehicle = `native.Composite`; static field/result-name/type compatibility checks in `validate_output_with_library`). Under optionals a branch may resolve absent (its pipe lifted, or a `?` output produced absence), so the combine needs a policy:
- - **Structured output:** a structure field with `required = false` **absorbs** the absent branch as field-level `None` — slot absence converts to field-level null (§3's first kind of nothing) at the combine boundary, and taint terminates there. A **required** field fed by a maybe-absent branch is a **static validation error** (extends #1014's `validate_output_with_library` checks; part of the D6 taint pass), naming the branch, the field, and the two fixes (make the field optional, or sink the absence upstream).
- - **`Composite` output:** absent components are **omitted** from the composite, with a ledger note for observability (compaction-flavored, mirroring D4's story for plurals). The component-wise transport encoding already tolerates omitted components, so no wire change.
- - Tainting the whole parallel output on any absent branch was rejected: it discards exactly the partial results fan-out exists to collect.
- - Whole-parallel lifting (the parallel's own *input* absent) is plain D3 and needs no new rule.
-- **`@?` required-variable detection** (D7) — the fix lands as part of this feature.
-- **Pre-existing wart to fix while in the area:** structure-field shorthand strings default to `required=True` while the expanded `ConceptStructureBlueprint` defaults `required=False` — opposite defaults for the same concept. Unrelated to slot optionality but adjacent enough to confuse; fix or at least document deliberately.
-- **Not in scope:** structure-field `?` sugar (e.g. `concept_ref = "X?"` meaning `required=false`). It would create two spellings for one thing and blur the slot-vs-field distinction §3 works hard to establish. Revisit only if field/slot unification ever becomes a goal.
-
-## 15. Later-phase candidates (design now, ship later)
-
-- **`try?` analog — `on_error = "absent"`.** A pipe attribute, legal only when the output is `?`: a failing pipe degrades to a recorded absence (kind = `failed`, reason = the error) instead of failing the run. Powerful resilience primitive (flaky enrichment step → absent, not dead run). Two hard requirements inherited from our error-handling principles: the underlying error must still be fully captured in the run report/trace (degraded success, never a swallowed failure), and terminal-failure webhooks/notifications semantics must be worked out so "degraded" is distinguishable from "clean". Scoping to *which* errors degrade (inference errors yes, config errors no?) is the main open design question.
-- **Coalescing — the `??`.** **Committed to phase 2** (it replaces the `continue` pass-through phase 1 broke — §13 migration note). Input-level defaults. For native concepts (Text, Number...) a literal default is easy (`v = { concept = "Text?", default = "N/A" }` — note this finally motivates an expanded input table form). For structured concepts, a default *pipe* (`fallback = "make_default_x"`) is the more MTHDS-native shape. Nothing in phase 1 blocks either form.
-- **Presence-branching sugar for PipeCondition.** The v1 idiom is `expression_template = "{{ 'present' if penalty_clause is defined else 'absent' }}"` with outcomes mapped on `present`/`absent`. If it proves common, add first-class sugar (e.g. `switch_on_presence = "penalty_clause"`). Idiom first, sugar on evidence.
-
-## 16. Blast radius
-
-Inside `pipelex/` (the bulk): grammar (`variable_multiplicity.py` + the input-factory regex + the `[`-splitter in `concepts/helpers.py`), `StuffSpec`/`NamedStuffSpec` gain the presence field, `InputStuffSpecs.required_names` splits required/declared, the three runtime miss-gates (`validate_before_run`, `SubPipe`, PipeCondition's branch check) learn the trichotomy, `PipeSequence.needed_inputs`/`generated_outputs` gain the taint dimension, WorkingMemory gains the absence ledger, PipeLLM gains the maybe-wrapper, mock seeding and the dry-run sweep learn optional slots, validation gains the new error types + template guard-lint, `contract_match` canonicalization compares markers, builder specs mirror blueprint validation, error classes + generated error pages, graph tracer `skipped` state, and docs.
-
-From the #1014 surfaces (§14): PipeCondition's `continue` arms (live + dry) and their pinned tests, PipeParallel's unconditional combine + its static compatibility validation (D11), and the tightened post-run boundary sites that must learn the resolved-as-absent arm — `pipe_abstract.py` tracer epilogue, `delivery_executor.py` (typed + raw), the CLI run cores, `otel_factory.py`, `resolve_main_stuff_root_key`/`payloads.py`/`pipeline_response.py`.
-
-Cross-repo (from the workspace survey):
-
-| Repo | Surfaces | Size |
-|---|---|---|
-| `mthds/` (spec) | Normative suffix table + concept-reference-syntax sections in `mthds-format.md`, per-pipe-type allow/forbid rules, `validation-rules.md`, a new optionality language guide beside `multiplicity.md`, reconcile `@?` docs, regenerate JSON schema | L |
-| `vscode-pipelex/` | `strip_concept_qualifiers` in the LSP (strips `[...]` but not `?` — a trailing `?` breaks resolution today) + tests, TextMate grammar regexes, bundled schema sync, `plxt` format preservation | M |
-| `mthds-ui/` | `StuffSpecInfo.optional`, Shiki grammar copy, skipped-node + optional-edge rendering, detail panels | M |
-| `mthds-plugins/` | Skill templates that teach the ref syntax (`shared/mthds-reference.md.j2`, build/inputs/fix skills) + regeneration; teach the trichotomy and `@?` pairing | M |
-| Protocol spec + cross-repo spec suite | `PipeIOContract.optional` in the protocol spec, new validation-error categories in the locked contract, valid/invalid fixtures (`optional_not_handled.mthds` etc.), error-QA corpus entries | M |
-| `mthds-js` / `mthds-python` | Type mirrors (IO contracts, ValidationErrorItem); package-layer ref parsers untouched by design (D1) | S |
-| `pipelex-api/` | Pass-through; new absence fields in run results, docs | S |
-| JSON schemas | Regenerate only — `inputs`/`output` are unconstrained strings, already `?`-permissive | S |
-
-Sequencing note: per workspace rules, the protocol spec and our cross-repo spec suite move in the same change as the pipelex surface they verify; the mthds spec, tooling, and UI repos can follow the runtime release. The Required-main-stuff Phase 3 cross-repo sweep (release-gated: `combined_output` removal + `Composite` in the spec/schema/skills) touches the same mthds spec pages — land it before the optionals cross-repo wave to avoid colliding edits.
-
-## 17. Phasing
-
-- **Phase 1 — the language core (pipelex + the protocol spec and its verifying suite).** D1 grammar, D2 ledger, D3 trichotomy + lifting, D4 plural rules, PipeCondition `continue` integration, optional method inputs, D6 taint validation + new error types, D7 template guard-lint + `@?` fix, D9 error classes + failure UX, IO-contract `optional` flag, run-result absence records, graph `skipped` state. This is a complete, useful feature on its own — even before LLM maybe-outputs, it legitimizes conditional flows and optional method inputs.
-- **Phase 2 — producing absence from models + coalescing.** PipeLLM/`Text?` maybe-wrapper with reasons, and `??` coalescing/defaults (pulled forward from phase 3: it is the ergonomic replacement for the `continue` pass-through that phase 1 broke — see the §13 migration note). Batch compaction shipped in phase 1 (Step C).
-- **Phase 3 — ergonomics.** `on_error = "absent"`, presence sugar, dual-arm dry run if warranted.
-- **Cross-repo wave** after the pipelex release: mthds spec pages, vscode/plxt, mthds-ui, skills.
-
-## 18. Decision summary
-
-| # | Decision | Chosen option |
-|---|---|---|
-| D1 | Grammar | `?` suffix on inputs+outputs; `!` inputs only; mutually exclusive with `[]` in v1; never on concept definitions/refines/fields |
-| D2 | Runtime absence | Absent key + provenance ledger; no null Stuff |
-| D3 | Consumption | Trichotomy `X` (lift/skip) / `X?` (absorb) / `X!` (force); every absence source must reach an explicit sink |
-| D4 | Plurals | `?` forbidden on plurals; skipped plural output normalizes to empty list |
-| D5 | Producers | `?` output allowed anywhere; `continue`-reachable conditions MUST declare it; LLM maybe-wrapper (phase 2); boundaries explicit, internals inferred |
-| D6 | Validation | Static taint pass, new `PipeValidationErrorType`s; dry run stays all-present in v1; general `warnings` array on the validation report |
-| D7 | Templates | Absent = undefined (loud on deep use) + static guard-lint; `@?` finally means optional |
-| D8 | Wire | `optional` on IO contracts; absence records in run results; absent main output = success, not error |
-| D9 | Errors | `OptionalValueAbsentError` with provenance chain; RFC 7807 + error pages via existing machinery |
-| D10 | Deferred | Coalescing (`??`) — phase 2 (the `continue` migration's ergonomic replacement); `on_error = "absent"` (`try?`), presence sugar — phase 3; semantics sketched now |
-| D11 | Parallel combine | Absent branch → optional structure field absorbs as field-`None` / `Composite` omits the component + ledger note; required field fed maybe-absent = static error |
diff --git a/wip/optionals/optionals-phase1-highlights.html b/wip/optionals/optionals-phase1-highlights.html
deleted file mode 100644
index 738b9d649..000000000
--- a/wip/optionals/optionals-phase1-highlights.html
+++ /dev/null
@@ -1,455 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>Optionals phase 1 — what we built and why it's solid</title>
-<style>
- :root {
- --bg: #ffffff;
- --fg: #1c2230;
- --muted: #5b6474;
- --card: #f6f8fb;
- --border: #dfe4ec;
- --accent: #3556c7;
- --accent-soft: #e8edfb;
- --ok: #1e7d46;
- --ok-soft: #e2f3e9;
- --warn: #a3670a;
- --warn-soft: #fdf1dc;
- --err: #b3372f;
- --err-soft: #fbe7e5;
- --code-bg: #f0f2f7;
- --diff-add: #e2f3e9;
- --diff-del: #fbe7e5;
- --diff-add-fg: #145c33;
- --diff-del-fg: #8a2a24;
- }
- @media (prefers-color-scheme: dark) {
- :root {
- --bg: #14181f;
- --fg: #e4e8ef;
- --muted: #9aa4b5;
- --card: #1c222c;
- --border: #313a48;
- --accent: #7d9bf0;
- --accent-soft: #232d45;
- --ok: #52c07e;
- --ok-soft: #17301f;
- --warn: #dfa447;
- --warn-soft: #33270f;
- --err: #e5766c;
- --err-soft: #381c19;
- --code-bg: #10141a;
- --diff-add: #17301f;
- --diff-del: #381c19;
- --diff-add-fg: #7fd4a2;
- --diff-del-fg: #eb9d96;
- }
- }
- * { box-sizing: border-box; }
- body {
- margin: 0; padding: 0 1.25rem 4rem;
- background: var(--bg); color: var(--fg);
- font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
- }
- main { max-width: 60rem; margin: 0 auto; }
- h1 { font-size: 1.9rem; line-height: 1.25; margin: 2.5rem 0 0.4rem; }
- h2 { font-size: 1.35rem; margin: 3rem 0 0.8rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
- h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
- p { margin: 0.6rem 0; }
- .sub { color: var(--muted); margin-top: 0; }
- a { color: var(--accent); }
- code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85em; }
- code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; }
- pre {
- background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px;
- padding: 0.8rem 1rem; overflow-x: auto; line-height: 1.5;
- }
- pre code { background: none; padding: 0; }
- .tldr {
- background: var(--accent-soft); border: 1px solid var(--accent);
- border-radius: 10px; padding: 1rem 1.3rem; margin: 1.5rem 0;
- }
- .tldr h2 { border: none; margin: 0 0 0.5rem; padding: 0; font-size: 1.1rem; color: var(--accent); }
- .tldr ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
- .tldr li { margin: 0.25rem 0; }
- .card {
- background: var(--card); border: 1px solid var(--border);
- border-radius: 10px; padding: 1rem 1.3rem; margin: 1rem 0;
- }
- .pill {
- display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
- padding: 0.15em 0.6em; border-radius: 999px; vertical-align: 0.12em; text-transform: uppercase;
- }
- .pill.ok { background: var(--ok-soft); color: var(--ok); }
- .pill.warn { background: var(--warn-soft); color: var(--warn); }
- .pill.err { background: var(--err-soft); color: var(--err); }
- .pill.info { background: var(--accent-soft); color: var(--accent); }
- table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.92rem; }
- th, td { text-align: left; padding: 0.5rem 0.7rem; border: 1px solid var(--border); vertical-align: top; }
- th { background: var(--card); }
- .tablewrap { overflow-x: auto; }
- figure { margin: 1.4rem 0; text-align: center; }
- figure svg { max-width: 100%; height: auto; }
- figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; }
- details {
- border: 1px solid var(--border); border-radius: 8px;
- padding: 0.6rem 1rem; margin: 0.8rem 0; background: var(--card);
- }
- details > summary { cursor: pointer; font-weight: 600; }
- details[open] > summary { margin-bottom: 0.6rem; }
- .diff { white-space: pre; }
- .diff .add { display: block; background: var(--diff-add); color: var(--diff-add-fg); }
- .diff .del { display: block; background: var(--diff-del); color: var(--diff-del-fg); }
- .diff .ctx { display: block; color: var(--muted); }
- /* CSS tabs */
- .tabs { margin: 1.2rem 0; }
- .tabs input[type="radio"] { display: none; }
- .tabs label {
- display: inline-block; padding: 0.45rem 1rem; cursor: pointer;
- border: 1px solid var(--border); border-bottom: none;
- border-radius: 8px 8px 0 0; background: var(--card); color: var(--muted);
- font-weight: 600; font-size: 0.92rem; margin-right: 0.25rem;
- }
- .tabs .panel {
- display: none; border: 1px solid var(--border); border-radius: 0 8px 8px 8px;
- padding: 0.4rem 1.2rem 1rem; background: var(--bg);
- }
- #tab-cond:checked ~ label[for="tab-cond"],
- #tab-par:checked ~ label[for="tab-par"],
- #tab-batch:checked ~ label[for="tab-batch"] { background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--bg); position: relative; top: 1px; }
- #tab-cond:checked ~ .panel-cond,
- #tab-par:checked ~ .panel-par,
- #tab-batch:checked ~ .panel-batch { display: block; }
- .footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
- .kbd { font-weight: 700; }
-</style>
-</head>
-<body>
-<main>
-
-<h1>Optionals phase 1 — <code>?</code> and <code>!</code> land in MTHDS</h1>
-<p class="sub">Presence markers, an absence ledger with provenance, implicit lifting, and a static safety net — for co-developers reviewing <a href="https://github.com/Pipelex/pipelex/pull/1021">PR&nbsp;#1021</a>.</p>
-
-<div class="tldr">
- <h2>TL;DR</h2>
- <p>MTHDS methods can now say <em>"this slot may hold nothing"</em> — and both the validator and the runtime take that seriously. One PR (<a href="https://github.com/Pipelex/pipelex/pull/1021">Pipelex/pipelex#1021</a> → <code>dev</code>) delivers the whole of phase 1:</p>
- <ul>
- <li><strong>Grammar:</strong> <code>"PenaltyClause?"</code> (optional) and <code>"PenaltyClause!"</code> (force) on pipe inputs/outputs, beside the existing <code>[]</code> multiplicity.</li>
- <li><strong>Runtime trichotomy:</strong> a pipe fed a recorded absence on a <em>plain</em> input is <strong>skipped</strong> (Swift-style <code>a?.b.c</code> chaining); a <code>?</code> input <strong>absorbs</strong> (the pipe runs both arms); a <code>!</code> input <strong>fails loudly</strong> with the full provenance chain.</li>
- <li><strong>Absence is data, not a crash:</strong> a ledger records <em>why</em> each slot is empty (who skipped, what was never provided, which <code>continue</code> fired), and that record survives serialization, the API wire, CLI artifacts, and graph rendering.</li>
- <li><strong>Static safety theorem:</strong> validation proves at author time that <em>every possible absence reaches an explicit sink</em> — no more "my workflow silently produced nothing".</li>
- <li><strong>Breaking, on purpose:</strong> <code>PipeCondition</code>'s <code>continue</code> no longer passes a value through — it resolves the declared output as absent, killing the language's last invisible optional.</li>
- </ul>
- <p>Status: dev is merged in, CI is green, all review-bot findings are triaged (one real P1 caught &amp; fixed), and the PR awaits merge. Spec-suite coverage and protocol-spec sections are written but ride separate branches in the sibling repos that own them (no PRs yet — they de-gate only once both of the suite's arms run an optionals-speaking pipelex).</p>
-</div>
-
-<h2>Why we did this</h2>
-<p>MTHDS had no way to say "no value here, and that's fine". That gap leaked everywhere:</p>
-<ul>
- <li><strong>Empty-string hacks.</strong> Authors returned <code>""</code> or fabricated placeholder objects when an extraction found nothing — downstream pipes couldn't tell "empty" from "absent".</li>
- <li><strong>Hallucination pressure.</strong> An LLM pipe <em>required</em> to produce a <code>PenaltyClause</code> from a contract that has none will invent one. The type system was actively encouraging hallucination.</li>
- <li><strong>The invisible optional.</strong> <code>PipeCondition</code>'s <code>continue</code> outcome quietly passed the <em>previous</em> main stuff through — a no-output path the type system couldn't see, which crashed delivery, tracing, and telemetry in creative ways.</li>
-</ul>
-
-<h2>The language: two markers, strict rules</h2>
-<pre><code>[pipe.extract_penalty]
-type = "PipeLLM"
-description = "Find the penalty clause, if any"
-inputs = { contract = "Contract" }
-output = "PenaltyClause?" # ← may resolve absent: no clause found is a SUCCESS
-
-[pipe.assess_penalty]
-type = "PipeLLM"
-description = "Assess severity — handles both arms"
-inputs = { clause = "PenaltyClause?" } # ← absorbs: runs even when clause is absent
-prompt = """
-Assess the contract risk.
-@?clause # ← guarded block: rendered only when present
-"""
-
-[pipe.compute_fine]
-type = "PipeLLM"
-description = "Force-unwrap: we KNOW it's there by now"
-inputs = { clause = "PenaltyClause!" } # ← asserts presence; absence = typed error
-</code></pre>
-<p>Grammar misuse is rejected at parse time with a typed error (<code>optional_marker_invalid</code>): markers never combine with multiplicity (<code>X[]?</code> is illegal — an absent plural is just the empty list <code>[]</code>), <code>!</code> is inputs-only, and markers are banned on concept definitions, <code>refines</code>, structure fields, and package refs.</p>
-
-<h2>The runtime: one gate, three arms</h2>
-<figure>
-<svg viewBox="0 0 760 300" role="img" aria-label="Trichotomy diagram: an input slot fed a recorded absence takes one of three arms depending on the declared marker">
- <defs>
- <marker id="arr" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
- <path d="M0,0 L10,5 L0,10 z" fill="currentColor"/>
- </marker>
- </defs>
- <g font-family="ui-monospace, Menlo, monospace" font-size="13">
- <!-- source -->
- <rect x="20" y="115" width="215" height="70" rx="10" fill="var(--card)" stroke="var(--border)"/>
- <text x="127" y="143" text-anchor="middle" fill="var(--fg)" font-weight="bold">input slot holds a</text>
- <text x="127" y="163" text-anchor="middle" fill="var(--fg)" font-weight="bold">recorded ABSENCE</text>
- <!-- arrows -->
- <g stroke="var(--muted)" fill="none" marker-end="url(#arr)" color="var(--muted)">
- <path d="M235 135 C 300 90, 330 60, 390 55"/>
- <path d="M235 150 C 300 150, 330 150, 390 150"/>
- <path d="M235 165 C 300 210, 330 240, 390 245"/>
- </g>
- <text x="305" y="80" fill="var(--muted)">declared plain</text>
- <text x="305" y="142" fill="var(--muted)">declared ?</text>
- <text x="305" y="235" fill="var(--muted)">declared !</text>
- <!-- SKIP arm -->
- <rect x="395" y="25" width="340" height="62" rx="10" fill="var(--warn-soft)" stroke="var(--warn)"/>
- <text x="415" y="50" fill="var(--warn)" font-weight="bold">SKIP (implicit lifting)</text>
- <text x="415" y="70" fill="var(--fg)">pipe doesn't run; its output records absent,</text>
- <text x="415" y="84" fill="var(--fg)" font-size="12">chaining provenance back to the origin</text>
- <!-- RUN arm -->
- <rect x="395" y="120" width="340" height="62" rx="10" fill="var(--ok-soft)" stroke="var(--ok)"/>
- <text x="415" y="145" fill="var(--ok)" font-weight="bold">RUN (absorb)</text>
- <text x="415" y="165" fill="var(--fg)">pipe runs; guarded templates take the</text>
- <text x="415" y="179" fill="var(--fg)" font-size="12">absent arm (@?var, {% if var %})</text>
- <!-- FAIL arm -->
- <rect x="395" y="215" width="340" height="62" rx="10" fill="var(--err-soft)" stroke="var(--err)"/>
- <text x="415" y="240" fill="var(--err)" font-weight="bold">FAIL (force)</text>
- <text x="415" y="260" fill="var(--fg)">typed OptionalValueAbsentError naming the</text>
- <text x="415" y="274" fill="var(--fg)" font-size="12">variable, both pipes, and the original reason</text>
- </g>
-</svg>
-<figcaption>The trichotomy. Write <code>?</code> once where absence enters; every plain consumer downstream short-circuits automatically.</figcaption>
-</figure>
-
-<p>The skip arm is the headline: it makes absence <em>compose</em>. You don't annotate the whole chain — the chain lifts itself, and every skipped pipe's output records an absence that points back at the origin:</p>
-
-<figure>
-<svg viewBox="0 0 780 150" role="img" aria-label="Lift chain: source absent, steps A and B skip, step C declares its input optional and absorbs">
- <defs>
- <marker id="arr2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
- <path d="M0,0 L10,5 L0,10 z" fill="currentColor"/>
- </marker>
- </defs>
- <g font-family="ui-monospace, Menlo, monospace" font-size="13">
- <rect x="10" y="45" width="130" height="60" rx="10" fill="var(--err-soft)" stroke="var(--err)"/>
- <text x="75" y="70" text-anchor="middle" fill="var(--fg)" font-weight="bold">source?</text>
- <text x="75" y="90" text-anchor="middle" fill="var(--err)" font-size="12">not provided</text>
-
- <g stroke="var(--muted)" fill="none" marker-end="url(#arr2)" color="var(--muted)">
- <line x1="140" y1="75" x2="185" y2="75"/>
- <line x1="330" y1="75" x2="375" y2="75"/>
- <line x1="520" y1="75" x2="565" y2="75"/>
- </g>
-
- <rect x="190" y="45" width="140" height="60" rx="10" fill="var(--warn-soft)" stroke="var(--warn)" stroke-dasharray="6 4"/>
- <text x="260" y="70" text-anchor="middle" fill="var(--fg)" font-weight="bold">pipe A</text>
- <text x="260" y="90" text-anchor="middle" fill="var(--warn)" font-size="12">SKIPPED</text>
-
- <rect x="380" y="45" width="140" height="60" rx="10" fill="var(--warn-soft)" stroke="var(--warn)" stroke-dasharray="6 4"/>
- <text x="450" y="70" text-anchor="middle" fill="var(--fg)" font-weight="bold">pipe B</text>
- <text x="450" y="90" text-anchor="middle" fill="var(--warn)" font-size="12">SKIPPED</text>
-
- <rect x="570" y="45" width="195" height="60" rx="10" fill="var(--ok-soft)" stroke="var(--ok)"/>
- <text x="667" y="70" text-anchor="middle" fill="var(--fg)" font-weight="bold">pipe C (b_out?)</text>
- <text x="667" y="90" text-anchor="middle" fill="var(--ok)" font-size="12">RUNS — absorbs, delivers</text>
-
- <text x="390" y="132" text-anchor="middle" fill="var(--muted)" font-size="12">each skip records an AbsenceRecord whose `upstream` chains to the previous one — provenance for free</text>
- </g>
-</svg>
-<figcaption>A lift chain: like Swift's <code>a?.b.c</code>, the <code>?</code> at the boundary is written once; C is the explicit sink.</figcaption>
-</figure>
-
-<h3>Absence is a first-class record, never a null</h3>
-<p>There is no null <code>Stuff</code>. A slot with no value has an <code>AbsenceRecord</code> in the working memory's ledger: variable name, producing pipe, kind (<span class="pill warn">skipped</span> <span class="pill info">declared-absent</span> <span class="pill err">not-provided</span>), a human reason, and an <code>upstream</code> chain. Post-run reads use a tri-state accessor (<code>resolve_stuff</code> → value <em>or</em> record). A slot with <strong>neither</strong> a value <strong>nor</strong> a record is still a hard error: never-produced is a bug, not an absence.</p>
-
-<h2>The static safety net</h2>
-<p>The runtime story would be scary without the compile-time story. Validation now proves the <strong>absence safety theorem</strong>: a taint pass walks every controller's dataflow, computes per-slot presence (<em>guaranteed</em> vs <em>maybe-absent</em>), and rejects any flow where an absence could escape without an explicit sink.</p>
-
-<div class="tablewrap">
-<table>
- <tr><th>Check</th><th>Severity</th><th>What it catches</th></tr>
- <tr><td><code>optional_marker_invalid</code></td><td><span class="pill err">error</span></td><td>Grammar misuse: <code>X[]?</code>, <code>!</code> on outputs, markers on concepts/refines/fields.</td></tr>
- <tr><td><code>optional_not_handled</code></td><td><span class="pill err">error</span></td><td>A maybe-absent slot ends a sequence (or feeds a condition) without the controller declaring a <code>?</code> output. Message names the origin, the propagation path, and three fixes.</td></tr>
- <tr><td><code>optional_output_required</code></td><td><span class="pill err">error</span></td><td>A <code>continue</code>-reachable <code>PipeCondition</code> with a plain output — <code>continue</code> resolves the output absent, so a plain output would hide the no-output path. <strong>Breaking.</strong></td></tr>
- <tr><td><code>optional_branch_required_field</code></td><td><span class="pill err">error</span></td><td>A required structure field of a <code>PipeParallel</code> output fed by a maybe-absent branch.</td></tr>
- <tr><td><code>optional_input_unguarded</code></td><td><span class="pill err">error</span></td><td>A template reference to a <code>?</code> input without a guard (<code>@?var</code>, <code>{% if var %}</code>, inline <code>is defined</code>). Covers PipeLLM, PipeCompose, PipeCondition, PipeSearch, PipeImgGen templates.</td></tr>
- <tr><td><code>optional_force_redundant</code></td><td><span class="pill warn">warning</span></td><td>A <code>!</code> whose slot is guaranteed present in <em>every</em> analyzed flow — dead assertion. Rides the new advisory <code>warnings</code> array (never flips <code>is_valid</code>), aggregated across flows so a <code>!</code> that matters anywhere is never flagged.</td></tr>
-</table>
-</div>
-
-<p>The valid report also gains a <code>liftable_pipes</code> inventory: every pipe that <em>may</em> be skipped, with its trigger slots and absence source. That's what makes implicit lifting acceptable — authors see "may be skipped when X is absent" at <code>/validate</code> time, not by surprise in production.</p>
-
-<h2>Controllers under absence</h2>
-<div class="tabs">
- <input type="radio" name="ctrl" id="tab-cond" checked>
- <input type="radio" name="ctrl" id="tab-par">
- <input type="radio" name="ctrl" id="tab-batch">
- <label for="tab-cond">PipeCondition</label>
- <label for="tab-par">PipeParallel</label>
- <label for="tab-batch">PipeBatch</label>
-
- <div class="panel panel-cond">
- <h3><code>continue</code> now means "no output" — honestly <span class="pill err">breaking</span></h3>
- <p>Before: <code>continue</code> passed the current main stuff through, or errored when there was none — an untyped, invisible optional. Now: it records a <em>declared-absent</em> output (reason = the evaluated expression) and returns success, memory otherwise unchanged. The static rule forces such a condition to declare <code>output = "X?"</code>, so downstream code knows.</p>
- <p><strong>Migration:</strong> the previous value stays in memory under its own name — consume it explicitly by that name (declared <code>?</code> where it may be absent). The ergonomic replacement for pass-through is the phase-2 coalescing operator (<code>??</code>).</p>
- <p>Dry-run parity: an all-special-outcomes condition records the same absence — <em>except</em> a fail-only condition (every outcome maps to <code>fail</code>), which raises in dry run too, since every live path can only raise.</p>
- </div>
-
- <div class="panel panel-par">
- <h3>Combine absorbs absence — by declared shape</h3>
- <ul>
- <li><strong><code>Composite</code> output:</strong> the absent component is simply omitted (a ledger note keeps observability).</li>
- <li><strong>Structured output, non-required field:</strong> the absence becomes the <em>field default</em> (<code>None</code> unless the author declared another default — per-field coalescing avant la lettre).</li>
- <li><strong>Structured output, required field:</strong> a typed runtime error naming the branch, the field, and the fixes — but this shape is already rejected statically by <code>optional_branch_required_field</code>, so the runtime guard is a belt-and-suspenders backstop.</li>
- </ul>
- </div>
-
- <div class="panel panel-batch">
- <h3>Batch compacts</h3>
- <p>Absent branch results are dropped from the aggregated list. Batching a "keep or skip" condition over N items yields only the kept results — a list cannot hold a hole, so compaction is the only lossless behavior. The empty list <code>[]</code> is the whole absence story for plurals: a lifted pipe with a plural output writes a real empty <code>ListContent</code> (plus a ledger note), and taint stops there.</p>
- </div>
-</div>
-
-<h2>First-class on every surface</h2>
-<p>A run whose declared <code>?</code> output resolves absent is a <strong>success</strong> everywhere — no surface treats it as an error or crashes on it:</p>
-<ul>
- <li><strong>Wire:</strong> <code>main_stuff_name</code> still names the declared slot; consumers branch on the absence record carried in the serialized memory (<code>absences</code>), never on transport. The ledger round-trips cross-process — a recorded absence no longer degrades to a hard miss after an API/worker hop.</li>
- <li><strong>Contracts:</strong> <code>PipeInputContract</code>/<code>PipeOutputContract</code> gain <code>optional: bool</code>, so tooling can see optionality without parsing the grammar.</li>
- <li><strong>CLI:</strong> <code>pipelex run</code> prints an explicit absence document; <code>--save-main-stuff</code> writes a <code>main_stuff.json</code> carrying <code>"absent": true</code> plus the provenance chain (and a markdown twin). The agent CLI returns the absence document as its result payload.</li>
- <li><strong>Graphs:</strong> nodes gain a <span class="pill warn">skipped</span> status with a <code>skip_reason</code>, and data edges fed by <code>?</code> outputs carry <code>optional: true</code> — "why did my workflow produce nothing?" is now answerable from the execution graph.</li>
- <li><strong>Telemetry:</strong> OTel/Langfuse capture absence documents for both inputs and outputs.</li>
-</ul>
-
-<figure>
-<svg viewBox="0 0 700 170" role="img" aria-label="Execution graph fragment showing a skipped node and an optional data edge">
- <defs>
- <marker id="arr3" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
- <path d="M0,0 L10,5 L0,10 z" fill="currentColor"/>
- </marker>
- </defs>
- <g font-family="ui-monospace, Menlo, monospace" font-size="13">
- <rect x="15" y="55" width="150" height="60" rx="10" fill="var(--card)" stroke="var(--ok)"/>
- <text x="90" y="80" text-anchor="middle" fill="var(--fg)" font-weight="bold">extract_penalty</text>
- <text x="90" y="100" text-anchor="middle" fill="var(--ok)" font-size="12">success</text>
-
- <g color="var(--muted)">
- <line x1="165" y1="85" x2="255" y2="85" stroke="var(--muted)" stroke-dasharray="5 5" marker-end="url(#arr3)"/>
- <text x="210" y="72" text-anchor="middle" fill="var(--muted)" font-size="11">optional: true</text>
- </g>
-
- <rect x="260" y="55" width="150" height="60" rx="10" fill="var(--warn-soft)" stroke="var(--warn)" stroke-dasharray="6 4"/>
- <text x="335" y="80" text-anchor="middle" fill="var(--fg)" font-weight="bold">compute_fine</text>
- <text x="335" y="100" text-anchor="middle" fill="var(--warn)" font-size="12">skipped</text>
- <text x="335" y="135" text-anchor="middle" fill="var(--muted)" font-size="11">skip_reason: "input 'clause' is absent"</text>
-
- <g color="var(--muted)">
- <line x1="410" y1="85" x2="500" y2="85" stroke="var(--muted)" marker-end="url(#arr3)"/>
- </g>
-
- <rect x="505" y="55" width="175" height="60" rx="10" fill="var(--card)" stroke="var(--ok)"/>
- <text x="592" y="80" text-anchor="middle" fill="var(--fg)" font-weight="bold">summarize (b_out?)</text>
- <text x="592" y="100" text-anchor="middle" fill="var(--ok)" font-size="12">success</text>
- </g>
-</svg>
-<figcaption>Graph rendering of the same story: dashed optional edge, dashed skipped node with its reason.</figcaption>
-</figure>
-
-<h2>The critical changes, as minimal diffs</h2>
-
-<details open>
-<summary>1 — The lift gate (<code>pipe_abstract.py</code>): the trichotomy in four lines</summary>
-<pre class="diff"><code><span class="ctx"> presence_scan = await self.validate_before_run(...) # raises for `!` (force) and for hard misses</span>
-<span class="add">+ if presence_scan.liftable:</span>
-<span class="add">+ # Implicit lifting (D3): a plain input fed a recorded absence skips the pipe;</span>
-<span class="add">+ # its output is recorded absent with provenance chaining to the input's record.</span>
-<span class="add">+ pipe_output = self._make_lifted_output(..., pipe_run_params=pipe_run_params)</span>
-<span class="ctx"> else:</span>
-<span class="ctx"> pipe_output = await self.live_run_pipe(...) # or dry — unchanged</span></code></pre>
-<p>Inside <code>_make_lifted_output</code>, plurality is resolved with the exact rule the run path uses (declared multiplicity + invocation-level override), so a plural lift writes the real empty list downstream consumers were promised — singulars record the absence:</p>
-<pre class="diff"><code><span class="add">+ multiplicity_resolution = output_multiplicity_to_apply(</span>
-<span class="add">+ base_multiplicity=self.output.multiplicity,</span>
-<span class="add">+ override_multiplicity=pipe_run_params.output_multiplicity,</span>
-<span class="add">+ )</span>
-<span class="add">+ if multiplicity_resolution.is_multiple_outputs_enabled:</span>
-<span class="add">+ working_memory.set_new_main_stuff(empty_list_stuff, name=output_name) # [] IS the plural absence</span>
-<span class="add">+ working_memory.record_absence(skip_record) # observability note beside the value</span>
-<span class="add">+ else:</span>
-<span class="add">+ working_memory.record_new_main_absence(skip_record) # the slot's resolution</span></code></pre>
-</details>
-
-<details>
-<summary>2 — The ledger's two write modes (<code>working_memory.py</code>): NOTE vs RESOLUTION</summary>
-<p>This invariant pair is what keeps values and records from fighting. <code>set_stuff</code> pops any record under the written name (value supersedes record); the resolution write is its exact mirror.</p>
-<pre class="diff"><code><span class="add">+ def record_absence(self, record): # NOTE: a value under the name is kept and wins</span>
-<span class="add">+ self.absences[record.variable_name] = record</span>
-<span class="add">+</span>
-<span class="add">+ def record_resolved_absence(self, record): # RESOLUTION: mirror of set_stuff's invariant —</span>
-<span class="add">+ self.remove_stuff(name=record.variable_name) # a stale value must not outrank</span>
-<span class="add">+ self.remove_alias(alias=record.variable_name) # the fresh absence</span>
-<span class="add">+ self.record_absence(record)</span></code></pre>
-</details>
-
-<details>
-<summary>3 — <code>continue</code> resolves the output absent (<code>pipe_condition.py</code>) <span class="pill err">breaking</span></summary>
-<pre class="diff"><code><span class="del">- # 'continue': deliver the current main stuff by passing it through</span>
-<span class="del">- # (raise PipeRunError when there is no main stuff to pass through)</span>
-<span class="add">+ # 'continue': the declared output resolves absent — memory otherwise unchanged</span>
-<span class="add">+ record = AbsenceRecord(</span>
-<span class="add">+ variable_name=output_name or MAIN_STUFF_NAME,</span>
-<span class="add">+ kind=AbsenceKind.DECLARED_ABSENT,</span>
-<span class="add">+ reason=f"expression '{evaluated_expression}' resolved to 'continue'",</span>
-<span class="add">+ producing_pipe=self.code,</span>
-<span class="add">+ )</span>
-<span class="add">+ working_memory.record_new_main_absence(record)</span></code></pre>
-<p>Paired with the static rule: a <code>continue</code>-reachable condition <em>must</em> declare <code>output = "X?"</code> (<code>optional_output_required</code>), so the no-output path is visible in the types.</p>
-</details>
-
-<details>
-<summary>4 — Parallel combine under absence (<code>pipe_parallel.py</code>), incl. the P1 the bots caught</summary>
-<pre class="diff"><code><span class="ctx"> branch_resolved = pipe_output.working_memory.resolve_main_stuff() # tri-state, never raises on absence</span>
-<span class="add">+ if isinstance(branch_resolved, AbsenceRecord):</span>
-<span class="add">+ if not issubclass(structure_class, CompositeContent):</span>
-<span class="add">+ field_info = structure_class.model_fields.get(sub_pipe_output_name)</span>
-<span class="add">+ if field_info is not None and field_info.is_required():</span>
-<span class="add">+ raise PipeRunError(...) # required field fed a hole — statically unreachable backstop</span>
-<span class="add">+ if self.add_each_output: # ← review round 1: parent slots exist ONLY under</span>
-<span class="add">+ working_memory.record_resolved_absence(branch_record) # add_each_output, same as present branches</span>
-<span class="add">+ continue # omitted from the combine; non-required field → field default</span></code></pre>
-<p>The <code>if self.add_each_output</code> gate is the fix for the one P1 of the review round: without it, an absent branch wrote a resolved absence into the <em>parent</em> memory even when branch results aren't parent slots — deleting an unrelated same-named value. Present branches always had the gate; now both arms publish under the same rule.</p>
-</details>
-
-<details>
-<summary>Bonus — the load-bearing one-liner: <code>StuffArtefact.__bool__</code></summary>
-<p>The guard idiom the lint recommends (<code>{% if var %}</code>, which <code>@?var</code> expands to) crashed on a <em>present</em> singular value: Jinja2's truth test fell through to the artefact's list-only <code>__len__</code> and raised <code>TypeError</code>. Found by our own new contract fixture failing its dry run.</p>
-<pre class="diff"><code><span class="add">+ def __bool__(self) -&gt; bool:</span>
-<span class="add">+ if isinstance(self._content, ListContent):</span>
-<span class="add">+ return bool(self._content.items) # empty list is falsy (D4)</span>
-<span class="add">+ return True # a present singular is truthy</span></code></pre>
-</details>
-
-<h2>Why you can trust it</h2>
-<ul>
- <li><strong>One commit per checkpoint, six checkpoints (A–F).</strong> Each ran the full gate set (<code>make agent-check</code> + full <code>make agent-test</code>) plus a <em>context-free</em> cold code review of the step diff by a fresh reviewer with no access to the plan or rationale. Findings were triaged every time: correctness fixed in-step, design tradeoffs recorded as deferred docs, over-engineering simplified.</li>
- <li><strong>TDD throughout:</strong> red tests first for every step — lift chains with provenance assertions, force-failure UX (the message must name the variable, both pipes, and the reason), plural normalization, hydration round-trips, end-to-end absent-main-output runs over every surface.</li>
- <li><strong>Review round 1 on the PR:</strong> 13 bot findings (greptile, cubic, Codex), each adversarially verified before acting — 9 confirmed and fixed (headline: the parallel parent-memory clobber P1), 1 dead-code deletion, 1 refuted with evidence, 1 already-deliberate design decision. All threads answered with commit citations; CI fully green.</li>
- <li><strong>Ground-truth fixtures:</strong> every spec-suite fixture's expectations were generated by running it against the real build before being written down — no guessed error categories.</li>
-</ul>
-
-<h2>What's deliberately NOT in phase 1</h2>
-<div class="card">
-<ul>
- <li><strong>Coalescing <code>??</code></strong> — the ergonomic replacement for <code>continue</code> pass-through. Phase 2. (Non-required parallel fields absorbing as their <em>declared default</em> is a small preview of it.)</li>
- <li><strong>The LLM maybe-wrapper</strong> — making <code>?</code> on operator outputs change the LLM contract ("return nothing rather than invent"). Phase 2; over-claiming <code>?</code> today is deliberately legal as evolution room, and deliberately not linted.</li>
- <li><strong>Cross-repo wave</strong> — mthds wire models carrying the <code>absences</code> ledger (which unblocks the hosted-API absent arm), mthds-ui rendering skipped nodes/optional edges, pipelex-api surfacing <code>warnings</code> + <code>optional</code> contract flags. Gated behind other in-flight work; no PRs yet.</li>
- <li><strong>Spec-suite de-gating</strong> — the suite's optionals coverage is written and validated live against this branch, but stays probe-skipped until <em>both</em> of its arms run an optionals-speaking pipelex (the HTTP arm pins the released <code>pipelex==0.37.0</code>).</li>
-</ul>
-</div>
-
-<h2>Links</h2>
-<ul>
- <li><a href="https://github.com/Pipelex/pipelex/pull/1021">Pipelex/pipelex#1021</a> — the phase-1 PR (feature/Optionals → dev). Everything above lands there.</li>
- <li>Spec-suite coverage and protocol-spec sections are committed on side branches of the sibling repos that own them — PRs will follow once their merge vehicles are chosen.</li>
-</ul>
-
-<p class="footer">Optionals phase 1 · feature/Optionals · generated 2026-07-05 · lives in <code>wip/optionals/</code> (work-in-progress notes, not release docs)</p>
-
-</main>
-</body>
-</html>
diff --git a/wip/optionals/optionals-plan.md b/wip/optionals/optionals-plan.md
deleted file mode 100644
index e52a8538c..000000000
--- a/wip/optionals/optionals-plan.md
+++ /dev/null
@@ -1,70 +0,0 @@
-# Optionals — phase-1 implementation plan (CLOSED — phase 1 complete)
-
-> **Status: COMPLETE.** All steps A–F landed and the FINAL CHECKPOINT cleared — the tracker holding the checkpoint log + hand-off notes is kept at workspace level. Live follow-ups: the release-time spec-suite gate removal and cross-repo wave items in `wip/optionals/deferred-step-f-notes.md`. This document is kept as the narrative record; `wip/optionals/optionals-design.md` remains the design reference (incl. phases 2–3).
-
-Branch `feature/Optionals` (worktree `_optionals`). Design: `wip/optionals/optionals-design.md` — all decisions D1–D11 decided. This plan covers **phase 1 of §17**: the complete language core in pipelex, with the protocol spec and our cross-repo spec suite moving in the same change. The LLM maybe-wrapper (phase 2) and ergonomics (phase 3) are out of scope; the cross-repo wave (mthds spec, vscode/plxt, mthds-ui, skills) follows the pipelex release and must land **after** the Required-main-stuff Phase 3 sweep.
-
-Working rules: TDD (red tests first per step), `make agent-check` after every code change, full `make agent-test` at each checkpoint, one commit per checkpoint, no backward compatibility (breaking changes go in the changelog under `[Unreleased]`).
-
-Live progress tracking (checkboxes, checkpoint log, decisions/deviations) was in `TODOS.md` at the worktree root, now archived as the phase-1 tracker at workspace level; this document stays the narrative plan.
-
-## Step A — grammar and carriers (parse `?` / `!`, no behavior change)
-
-- Extend the marker grammar (D1) in `pipelex/core/pipes/variable_multiplicity.py` (+ its inline twin), the looser regex in `input_stuff_specs_factory.py`, and the naive `[`-splitter in `concepts/helpers.py`. Fix the `MUTLIPLICITY_PATTERN` typo while there.
-- `StuffSpec`/`NamedStuffSpec` gain the presence marker (a `PresenceMarker` StrEnum: plain / optional / force); `InputStuffSpecs.required_names` splits into required vs declared.
-- Blueprint-parse-time grammar errors (`OPTIONAL_MARKER_INVALID`): `?` on plurals, `!` on outputs or plurals, markers on concept definitions / `refines` / structure-field refs / package refs (D1, D4).
-- Builder specs mirror the blueprint rules (`to_blueprint()` passes markers through); `contract_match` canonicalization compares presence markers (D5).
-- Tests: parser unit tests for every marker × multiplicity combination, blueprint + spec accept/reject fixtures.
-
-**CHECKPOINT A** — markers parse, validate, and round-trip; zero runtime behavior change; all gates green; run the checkpoint protocol from the phase-1 tracker (kept at workspace level).
-
-## Step B — absence at runtime (ledger + trichotomy + lifting)
-
-- WorkingMemory gains the absence ledger (D2): `AbsenceRecord` (`variable_name`, `producing_pipe`, `kind` = declared-absent | skipped | not-provided, `reason`, upstream chain). New tri-state resolved accessor (Stuff | AbsenceRecord) for post-run reads — do **not** resurrect `optional_main_stuff` (§14).
-- The three runtime miss-gates learn the trichotomy (D3): `PipeAbstract.validate_before_run` (fix the "Dry run of ..." message bug on the live path), `SubPipe`, PipeCondition's branch check. Plain input fed absence → **skip** (lift) + record skipped-absence for the pipe's output with provenance; `?` input → run; `!` input absent → `OptionalValueAbsentError` (D9: new error class in the relevant `exceptions.py`, provenance chain, RFC 7807 + error page via `pipelex-dev generate-error-pages`).
-- The per-pipe graph-tracer epilogue in `pipe_abstract.py` (the success path reads `working_memory.get_main_stuff()` directly) learns the resolved-as-absent arm **here, not in Step E** — it fires on every pipe run, so the first skipped pipe would crash it. The method-level boundaries (delivery, CLI, telemetry, serialization) still land in Steps C/E, so Step B tests sink every absence before the method boundary (a downstream `?` input); end-to-end absent-main-output coverage belongs to Step E.
-- Skipped plural output normalizes to empty `ListContent` + ledger note (D4); taint stops.
-- Optional method inputs (D5): omitting a `?` input in `inputs.json` / the execute request → not-provided record instead of `PipeRunInputsError`; the required-input error message gains the "these optional inputs may be omitted" hint.
-- Mock seeding / dry-run sweep learn optional slots (dry run stays all-present per D6).
-- Tests: lift-skip chain with provenance, absorb, force-failure UX (assert the message names variable, pipes, and reason), plural normalization, optional method inputs, run-report absence enumeration.
-
-**CHECKPOINT B** — absence exists, propagates, and fails loudly only through `!`; all gates green; run the checkpoint protocol from the phase-1 tracker (kept at workspace level).
-
-## Step C — controllers: `continue` replacement + parallel combine (D11)
-
-- **PipeCondition `continue`** (§14): replace pass-through-or-error with "declared output absent, memory otherwise unchanged" — record the absence (kind = declared-absent, reason = the evaluated expression/outcome), stamp no main stuff, return success. Same in dry run (the all-special-outcomes guard becomes: legal iff output declared `?`). Rewrite `test_pipe_condition_continue_delivery.py` to pin the new semantics (keep the run-id stamping assertions) — these tests exercise the delivery boundary, so `delivery_executor.py` (typed + raw arms: absent main output delivers an explicit absence artifact, not an error) moves up from Step E into this step. Document the migration idiom (previous value stays in memory under its own name; coalescing is the phase-2 answer).
-- **PipeParallel combine under absence** (D11): absent branch result → structured output field with `required = false` absorbs as field-`None`; `Composite` output omits the component + ledger note. Runtime guard raises a typed error if a required field's branch is absent (should be statically unreachable after Step D, but the runtime must not feed `combine_stuffs` a hole).
-- PipeBatch compaction (D4 bonus): inner `?` output → absent branch results dropped from the aggregated list. Ship it here if it falls out of the lifting machinery naturally; otherwise defer to phase 2 with the semantics recorded.
-- Tests: continue-absent (live + dry), parallel with absorbed/omitted/required-absent branches, batch compaction if shipped.
-
-**CHECKPOINT C** — controllers speak absence; the #1014 `continue` tests replaced; all gates green; run the checkpoint protocol from the phase-1 tracker (kept at workspace level).
-
-## Step D — static validation: the taint pass + template lint
-
-- Absence-propagation pass over controller dataflow (D6): `PipeSequence.needed_inputs` / `generated_outputs` gain the presence dimension; per-slot presence computed (`guaranteed` / `maybe-absent`).
-- New `PipeValidationErrorType`s: `OPTIONAL_NOT_HANDLED` (taint reaches a non-optional boundary — message names source, path, three fixes), `OPTIONAL_OUTPUT_REQUIRED` (`continue`-reachable condition without `?` output), the D11 static error (required structure field fed by a maybe-absent branch, extending #1014's `validate_output_with_library` checks).
-- Template guard-lint (D7): classify guarded vs unguarded references to declared-optional inputs in the Jinja AST walk; unguarded → validation error with the precise fix. Fix `@?` so it no longer registers a declared-optional variable as required.
-- Liftable-pipe inventory as structured data on the valid report (D3 phase-1 commitment), beside `pipe_io_contracts`.
-- Tests: taint fixtures (valid + each error type), guard-lint accept/reject, `@?` detection.
-
-**CHECKPOINT D** — validation proves the safety theorem ("every absence source reaches an explicit sink"); all gates green; run the checkpoint protocol from the phase-1 tracker (kept at workspace level).
-
-## Step E — wire, boundaries, and graph
-
-- Protocol bump, one motion (D6 + D8): `optional: bool` on `PipeInputContract`/`PipeOutputContract`, the general `warnings` array on the validation report (same item shape as errors, never flips `is_valid`), absence records on run results. Neutral MTHDS naming, no `pipelex_` prefixes.
-- Populate `warnings` with the useless-`!` lint (`!` on a guaranteed slot — presence data comes from Step D's taint pass). The over-claimed-`?` lint (a `?` output that can never produce absence) is deliberately **not** emitted in phase 1: D5 blesses over-claiming as signature-evolution room, and phase 2 makes `?` on operator outputs meaningful — linting it now would warn on exactly the declarations phase 2 rewards.
-- The remaining post-run boundaries learn the resolved-as-absent arm (§14 checklist; the tracer epilogue is handled in Step B, the delivery executor in Step C): CLI run cores (bare, agent, agent-API), `otel_factory.py`, `resolve_main_stuff_root_key` / `payloads.py` / `pipeline_response.py`. `main_stuff_name: str` **stays required** — it names the declared output slot; consumers branch on the absence record. Absent main output = success with an absent result.
-- Graph (D8): `GraphSpec` gains the `skipped` node state and optional-edge marker; tracer registers skip reasons. (mthds-ui rendering is the cross-repo wave.)
-- Sweep the invariant prose to "a pipe run always resolves its declared output: a value or a recorded absence".
-- Tests: end-to-end absent-main-output run over each surface (delivery artifacts, execute response, CLI output, telemetry), graph skipped-state serialization.
-
-**CHECKPOINT E** — an absent result is a first-class success everywhere in-repo; all gates green; run the checkpoint protocol from the phase-1 tracker (kept at workspace level).
-
-## Step F — specs, spec suite, docs, release prep
-
-- Protocol spec: `optional` flag, `warnings` array, absence records, new validation-error categories; matching fixtures (`optional_not_handled.mthds` etc.) + error-QA corpus rows in our cross-repo spec suite; the spec-link check green.
-- Regenerate the MTHDS JSON schema and error pages; docs: an optionality guide beside `multiplicity.md`'s pipelex counterpart, pipe-page updates (PipeCondition, PipeParallel, PipeBatch), `@?` docs reconciled.
-- Changelog under `[Unreleased]`: breaking — `continue` semantics, `?`/`!` grammar, protocol additions.
-- Full `make agent-test` + `make tb`.
-
-**FINAL CHECKPOINT** — phase 1 complete; hand off to the cross-repo wave (after RMS Phase 3) and phase 2 (LLM maybe-wrapper). Close or fold this doc.
diff --git a/wip/parity/README.md b/wip/parity/README.md
deleted file mode 100644
index 290fbed7f..000000000
--- a/wip/parity/README.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# Parity gaps — one authored fact, two readers that disagree
-
-This track fixes a family of defects that share one shape: a single authored fact (a pipe ref, a concept declaration, a model choice, an emitted line of code) is read by two pipelex implementations that disagree about what it means. The **Phase 1 trio** are silent in the strict sense — both readers succeed, produce plausible output, and diverge with no error attached anywhere — which is why they are batched as one sweep rather than fixed opportunistically. The **Phase 2 kernel items fail differently**, and the difference is worth keeping straight: 2.1 was a *contract* gap whose divergence surfaces one step later as a `StuffContentTypeError` on read-back, 2.3 an *expressiveness* gap where one reader cannot state the fact at all, and 2.2 turned out on re-verification not to be a defect.
-
-**Branch:** `fix/Parity-gaps` (this worktree, `_gaps/`). **PR:** [#1085](https://github.com/Pipelex/pipelex/pull/1085) → `dev`. **Plan:** [`parity-gaps-plan.md`](parity-gaps-plan.md).
-
-## The gaps at a glance
-
-| Gap | The two readers | Buildable |
-| --- | --- | --- |
-| Bare cross-domain pipe refs | `crate_normalization` qualifies with the owner domain; the live `PipeLibrary` searches every domain | now |
-| Structureless concept base class | runtime promotes to a `TextContent` refinement; the `python-structures` projection emits `StructuredContent` + `extra="allow"` | now |
-| Import-block format stability | `render_import_block` never wraps; a consumer's `ruff format` wraps past 88 columns | now |
-| `PipelexKernel.llm_text` narrowness | the façade hardcodes concept/class and requires a model; `run_llm_text` and the interpreter take all three | ✅ fixed **in** #1081 |
-| `PipelexKernel.llm_object` prompting style | the façade derives style from the object setting and drops the `for_text` rung; the interpreter derives style from the text setting | ⚠️ withdrawn — not a live defect |
-| Img-gen prompt constructor | `kernel/prompt_references.py` says the kernel resolves image references; only the interpreter-layer blueprint can actually build an `ImgGenPrompt` | ✅ fixed **in** #1082 |
-
-## Phasing
-
-- **Phase 1 — the dev-buildable trio** (crate qualification, structureless base class, import wrapping). All targets exist on this branch today; each lands with its regression gate.
-- **Phase 2 — the kernel trio.** Originally gated on the kernel-extraction PRs (#1081 façade, #1082 operators) merging to `dev`, to avoid destabilizing finalized PRs. **Louis overrode that gate:** the two live ones (2.1 and 2.3 — 2.2 was withdrawn) are defects *those PRs introduce*, so deferring meant knowingly merging a package whose stated contract is false and re-opening the same files to repair it. Phase 2 therefore shipped **inside** #1081 and #1082, not on this branch.
-
-## Status
-
-- **Phase 0 (planning): ✅ done 2026-08-03.** Plan written, targets verified on this tree, decisions D-1..D-3 posed with recommendations.
-- **Phase 1: ✅ done 2026-08-03.** All three fixes landed with their gates, red-green verified; Checkpoint A recorded in the plan. D-1 settled as crate-wide resolution (not own-domain-first — see [`d1-domain-hint-deferred.md`](d1-domain-hint-deferred.md)); D-2 settled as recommended.
-- **Phase 2: ✅ done 2026-08-04, folded into the kernel stack.** 2.1 fixed in #1081; 2.3 fixed in #1082, with the boot-contract arm it turned out to owe in the same PR and the doc review on #1083 — commits named by subject in [`parity-gaps-plan.md`](parity-gaps-plan.md), because the stack is rebased and hashes do not survive it. 2.2 **withdrawn** on re-verification — the façade's single `model` wins the object resolution's first rung, so the style it derives already matches an interpreted run for every call the façade can express; the surviving narrowness was deferred as KF-16. **KF-16 is now closed, by dissolution rather than by fix** (2026-08-14, branch `fix/Keyless-dry-run`): the model-derived-style mechanism is deleted outright, the style is an authoring decision declared on the pipe, and both `llm_text` and `llm_object` take it as an argument. The façade and the interpreter agree because neither derives anything. Design in [`../prompting-style/prompt-style-as-an-authoring-decision.md`](../prompting-style/prompt-style-as-an-authoring-decision.md), build in [`../prompting-style/templating-style-implementation-plan.md`](../prompting-style/templating-style-implementation-plan.md). D-3 settled as recommended, (a), and its predicted layering cost did not materialise.
-
-## Deferred, not dropped
-
-- [`d1-domain-hint-deferred.md`](d1-domain-hint-deferred.md) — whether `PipeLibrary` should prefer the caller's domain on an ambiguous bare pipe ref. A language call; the normalizer follows for free once settled.
-- [`structureless-concept-with-registered-class.md`](structureless-concept-with-registered-class.md) — a description-only concept bound to a same-named hand-written class through a channel the crate structurally cannot see. Raised on PR #1085, verified pre-existing; the correct fix is a language call.
-- [`deferred-review-observations.md`](deferred-review-observations.md) — four follow-ups from the #1085 finalization review: the cross-package `refines` shape, qualified-ref closedness, a latent test-order flake, and the `mthds/` spec's missing bare-**pipe**-ref rule (a cross-repo edit, ordered *after* D-1).
-
-## Cold start
-
-**Start with [`SESSION-HANDOFF.md`](SESSION-HANDOFF.md)** — where the work stands, what runs next, and the traps. Then read [`parity-gaps-plan.md`](parity-gaps-plan.md) top to bottom — it carries the evidence, the chosen fixes, and the gates. Verify the grounding claims against the tree before building on them (each carries its file:line). Gates for every phase: `make agent-check`, full `make agent-test`, `make drift-check`, and an `[Unreleased]` changelog entry per user-visible fix.
diff --git a/wip/parity/SESSION-HANDOFF.md b/wip/parity/SESSION-HANDOFF.md
deleted file mode 100644
index a9b672256..000000000
--- a/wip/parity/SESSION-HANDOFF.md
+++ /dev/null
@@ -1,137 +0,0 @@
-# Session handoff — parity gaps, both phases built
-
-**Branch:** `fix/Parity-gaps` in the `_gaps/` worktree, off `dev` at `221b8ee0b`. **PR:** [#1085](https://github.com/Pipelex/pipelex/pull/1085) → `dev`, open.
-
-Read this first, then [`README.md`](README.md) and [`parity-gaps-plan.md`](parity-gaps-plan.md) (Checkpoint A holds the full record of what landed).
-
-## Resume here (round 3 fully answered 2026-08-04, ~11:20 local / 04:20 UTC)
-
-**Everything is pushed. Nothing is half-done.** Round 3 ran as four sub-rounds — 3a through 3d, each one cubic re-reviewing the head the previous fix produced — and all of them are arbitrated and answered. The next action is to read whatever comes back on *these* heads, then merge.
-
-**One consistent labelling scheme, since the doc uses it throughout:** rounds 1–2 were the pre-2026-08-04 passes; **round 3** is this session, split into **3a** (the first cubic pass on the round-2 heads), **3b** (the KF-3 holder fix, which rewrote the whole stack), **3c** (the KF range), and **3d** (the spec divergence and the stale-status fixes). Anything below labelled "rounds 3–4" belongs to the *older* #1085-only numbering and is left as written, because it is a historical record of that PR's own cycle.
-
-| PR | Branch / worktree | Round 3 |
-| --- | --- | --- |
-| [#1081](https://github.com/Pipelex/pipelex/pull/1081) (1/3) | `refactor/Kernel` — `_kernel/` | KF-3's wrong holder fixed (3b); cubic clean on head |
-| [#1082](https://github.com/Pipelex/pipelex/pull/1082) (2/3) | `refactor/Kernel-phase2` — `_kernel/` | dead-hash fix (3a); rebased (3b); cubic clean on head |
-| [#1083](https://github.com/Pipelex/pipelex/pull/1083) (3/3) | `refactor/Kernel-phase3` — `_kernel/` | fixes in 3a/3b/3c/3d; rebased twice; cubic clean on head |
-| [#1085](https://github.com/Pipelex/pipelex/pull/1085) | `fix/Parity-gaps` — `_gaps/` | fixes in 3a/3d; **3d's answer is the one to read**; re-pinged |
-
-**Read heads live** — `for p in 1081 1082 1083 1085; do gh pr view $p --json number,headRefOid; done`. Deliberately not written down: the kernel branches are rebased whenever a parent moves, so any head recorded here is wrong within one push.
-
-**What round 3 produced, in order of what matters.**
-
-1. **A real spec divergence, found in 3d and *not* fixed.** The MTHDS spec says bare pipe references "do NOT fall through to other domains"; the runtime searches across domains and Phase 1's 1.1 mirrored it. Both readers agree with each other and both disagree with the standard — in *two* rows, and in opposite directions. Written up in [`bare-pipe-ref-spec-divergence.md`](bare-pipe-ref-spec-divergence.md); it subsumes D-1, so settle the two together and the spec question first.
-2. **KF-3 was pointed at the wrong operator (3b), and the argument rested on it.** `pipe_structure.py` has never referenced `LLMPromptBlueprint` — on any branch, including `dev`. `PipeLLM` holds it as `llm_prompt_spec`. The corrected reading changes the item's shape: **what is production-dead is `make_llm_prompt`, one method — not the model**, which stays. Fixed at the source, hence the stack rewrite.
-3. **Round 2's arbitration had a hole (3a).** Recorded below under the rejected findings — the general lesson is there and it is the one worth carrying forward.
-4. **Three self-staling constructs were converted, not patched**: commit hashes → subjects, a `KF-1..KF-15` range → the file, and a hardcoded helper count → no count. Each had already gone stale at least once; two produced review findings this round.
-
-Backups to roll back to: `backup/parity-pre-round3` and `backup/kernel-{,phase2-,phase3-}pre-round3b`.
-
-**Greptile and Codex have gone quiet, and the dates are the honest way to say it** — neither has posted anything since **2026-08-02** on the three kernel PRs and **2026-08-03** on #1085, across every push and every ping since. (Dates rather than a round count: the count needs editing on each new round and was already inconsistent with itself inside this file.) Cubic is the only live external signal. Before reading "the bots are clean" as coverage, decide deliberately whether to chase them — the finalization review already demonstrated once that a defect can survive every bot plus a cold `/code-review`.
-
-**This table deliberately carries no head SHAs.** It used to, and they were wrong within one push — the three kernel branches are rebased whenever a parent moves, and every branch moves when a review round lands. Read the live heads instead: `for p in 1081 1082 1083 1085; do gh pr view $p --json number,headRefOid; done`.
-
-**What round 2 produced** (a record of that round, not the current state — see the dates above). Cubic came back on all four heads; **Greptile and Codex did not, despite pings** — cubic was already the only fresh external signal by then, so treat "the bots are happy" with corresponding caution. Its findings were mostly doc-accuracy, and the arbitration is recorded in a comment on each PR. The substantive ones:
-
-- **#1081 — the one that mattered.** `wip/prompting-style/README.md` (since superseded by `prompt-style-as-an-authoring-decision.md` in the same directory) described the prompting style as derived "in two places that must agree" and rested its first argument on exactly that. False since the extraction: `pipe_llm.py:223` calls the kernel's `derive_templating_style`, so there is one site. Left alone, KF-16's design basis would have carried a false premise.
-- **#1082.** `ImgGenPromptBlueprint`'s class docstring still advertised the four things it had just delegated to the kernel, contradicting its own module docstring.
-- **Deferred as KF-17**, not fixed: the resolvers select the model choice by truthiness, so `model=""` falls through to the deck default. The chain is verbatim from `dev`'s `pipe_llm.py`, the interpreter calls these same functions so no divergence exists, and pydantic already rejects `""` on every authored path. The honest fix is `LLMModelChoice` rejecting `""` at the type boundary once — a deliberate pass, not a spot edit.
-
-**One finding was rejected on verification — do not re-litigate it:** "the changelog gate conflicts with the Phase 2 record" — the line already reads "per user-visible fix", which is the scoping the finding asked for.
-
-**And one rejection was itself half-wrong, which is the lesson worth keeping.** Round 2 reported that "`model` was already optional on `llm_text`". Checked against the code that was false — pre-fix the façade declared `model: LLMModelChoice` with no default — so it was rejected and the round moved on. Round 3 came back with the same subject from the other end: §2.1's own "✅ Done" record *asserted* `model` was already optional. The bot had been echoing this plan, not misreading the code, and rejecting the code claim left the false sentence sitting in the doc to be re-reported. **When a finding is wrong about the code, check whether it is right about a doc that says so** — a claim has to be traced to its source before "verified false" means anything.
-
-**Next actions, in order:**
-
-1. Read the bot feedback on all four — **review bodies and inline comments, not check states** (see the cubic trap below). Greptile posts as *issue comments*; cubic posts *reviews* + issue comments; Codex posts reviews. If Greptile and Codex stay silent again, decide whether to chase them or proceed on cubic alone.
-2. Fan out an **Opus 5** sub-agent to dedupe, verify each item, and arbitrate — fixing **only clear wins**, no over-engineering, no guarding impossible scenarios. Anything doubtful becomes a `.md` in `wip/parity/`. Tell the sub-agent it is **STRICTLY READ-ONLY**.
-3. Merge in order **#1081 → #1082 → #1083**. #1085 is independent of the stack and can merge whenever Louis chooses.
-
-**A trap this round taught, now written into the kernel plan:** a doc that lives *on* a stacked branch must name commits **by subject, never by SHA**. Every rebase of the parent rewrites every hash on the child, so the SHAs are dead before anyone reads them — including the "corrected" ones a reviewer suggests. Cubic's proposed replacements were themselves already stale when the fix was written.
-
-**Local gates.** `make agent-check` and `make drift-check` green on every branch. Full `make agent-test` green on `refactor/Kernel-phase3`, which is the stack tip and therefore carries all three PRs' content — the only source change in this round is a docstring, so it was not re-run on each branch separately. CI green on all four. Nothing is owed locally.
-
-Each rebase in this round was verified the same way: tag the tip, rebase with `--onto`, then `git diff <pre-rebase-tag>..<new-tip>` and confirm it shows **exactly** the intended change and nothing else. Both rebases conflicted in one file only — the plan's status block, which both sides genuinely edited. That is the legitimate shape; an unexpected conflicted *source* file means the command was wrong, and the right move is to abort rather than resolve.
-
-Backup tags on `origin`, in case a rebase needs undoing: `backup/kernel-pre-fold`, `backup/kernel-phase2-pre-fold`, `backup/kernel-phase3-pre-fold`, `backup/kernel-phase3-pre-2.3`, `backup/kernel-phase3-pre-resplit`, plus this round's `backup/kernel-pre-botround2`, `backup/kernel-phase2-pre-botround2`, `backup/kernel-phase3-pre-botround2`.
-
-## Where the work stands
-
-**Phase 1 is complete and committed.** All three dev-buildable fixes landed with their gates, each red-green verified (gate written first, run against the unfixed tree, observed to fail for the stated reason). Nothing is left to build in Phase 1.
-
-Gates all run and green at `d9efffbfb`:
-
-- `make agent-check` ✅
-- full `make agent-test` ✅ (~19 min)
-- `make drift-check` ✅ — re-run **after** `git add`, because it reads the git index, not the working tree
-- real-world confirmation of 1.1 against `../pipelex-cookbook/examples/wip/advisory_board/`: the dangling ref `advisory_orchestrator.master_advisory_orchestrator -> advisory_orchestrator.present_as_markdown` is gone
-- `[Unreleased]` changelog entry for each of the three fixes
-
-**Phase 2 is built too — but not on this branch.** The plan gated it on #1081/#1082 merging; Louis overrode that gate, because each of these is a defect *those PRs introduce*, so deferring meant merging a package whose stated contract is false and then re-opening the same files to repair it. Phase 2 therefore shipped **inside** the kernel stack, in the `_kernel/` worktree:
-
-| Gap | Outcome | Commit (by subject — the stack is rebased, so hashes die) |
-| --- | --- | --- |
-| 2.1 `llm_text` narrowness | fixed | *make llm_text as wide as the op beneath it* — `refactor/Kernel` (#1081) |
-| 2.2 `llm_object` templating style | **withdrawn** — not a live defect; deferred as KF-16, now **closed** | silenced by the KF-16 numbering commit on #1081, which added the `llm_object` docstring recording why its single `model` is correct (its subject line is truncated in git — *"…to keep the stack's"* — so match on `KF-16`). **KF-16 closed 2026-08-14 by dissolution** on `fix/Keyless-dry-run` (*Phase 1 — templating style becomes an authoring decision on the LLM path*): the derivation is deleted, the style is authored on the pipe, and that docstring goes with it |
-| 2.3 kernel cannot build an `ImgGenPrompt` | fixed | *let a runtime-only caller build the image prompt it has to pass in* — `refactor/Kernel-phase2` (#1082) |
-| — its boot-contract arm | added | *give the image prompt assembler the boot-contract arm the rule owes it* — `refactor/Kernel-phase2` (#1082), same PR as the entry point |
-| — the kernel doc's drift review | recorded | *record the image prompt assembler on the page that specifies the kernel* — `refactor/Kernel-phase3` (#1083), where the doc and its contract live |
-
-**Nothing about Phase 2 lands on `fix/Parity-gaps`.** This branch's only Phase 2 artifact is the plan/README/handoff record you are reading.
-
-## The goal this session was executing
-
-Verbatim, so the new session picks up the same contract:
-
-> execute `wip/parity/parity-gaps-plan.md` until it's all done. But do stop at each required checkpoint and, after recording the progress and running `make check` and `make test`, stage the changes and fan out a **Sonnet-5** sub-agent to run the skill `/code-review`, then sort through the findings with a strict "no over-engineering" judgement.
->
-> Then stack the PRs on `dev`, poll CI and the PR review bots, then fan out an **Opus 5** sub-agent to check their feedback, deduplicate, verify each item, arbitrate to solve it ONLY if it's a clear win (avoid over-engineering, don't guard impossible scenarios). Resolve the threads, push the fixes, rinse and repeat. Pinging `@greptileai` and `@cubic-dev-ai` in a comment re-triggers them.
->
-> When the PR review bots are all happy, fan out an **Opus 5** sub-agent to run gstack's `/review wip/parity/parity-gaps-plan.md` and finalize the PR.
->
-> **No over-engineering.** In case of any doubt, defer the issue for later as a `.md` in `./wip/parity/` — include that instruction in every sub-agent's context.
->
-> **Fan-out convention for `/code-review`:** spawn each review sub-agent with **no inherited context** — hand it only a pointer to the changes under review (the phase's commit SHA, `git diff <base>..HEAD`, or the working-tree files), never the plan, the rationale, or your own conclusions.
-
-## Next actions, in order
-
-1. ~~Checkpoint A's code review (Sonnet-5 `/code-review`, no inherited context, pointed at `d9efffbfb`).~~ Fanned out.
-2. ~~Open the PR.~~ [#1085](https://github.com/Pipelex/pipelex/pull/1085).
-3. ~~Poll CI + the review bots, fan out an Opus 5 sub-agent over their feedback.~~ Done — CI green, Greptile 5/5 clean, cubic clean, Sonnet-5 `/code-review` clean, one Codex P2 verified pre-existing and deferred. Both bot threads answered inline and resolved.
-4. ~~Finalize with gstack's `/review`.~~ Done — verdict **land**. It caught one real defect the other four missed (the `Anything` import omission) plus three doc inaccuracies, all fixed; the rest deferred to [`deferred-review-observations.md`](deferred-review-observations.md).
-5. ~~Rounds 3–4: cubic follow-ups.~~ Done. Round 3 = a fair catch on a stale code comment (fixed, `c4788e47b`); round 4 = a P1 duplicate of Codex's round-1 P2, answered with measurements (`e0f2d2362`).
-6. **Merge decision is Louis'.** Every prescribed review step in the goal has run. That was the state **as of `e0f2d2362`, before round 3** — 23 checks success, 6 skipped, 0 failures, 0 unresolved threads. It is a record of that moment, not of the current head: round 3 (3a–3d) has landed since. The top of this file is the current summary, and heads are read live rather than written down. Check the head before reading "nothing is pending".
-7. ~~**Phase 2** only after #1081 / #1082 merge.~~ Superseded — folded into the kernel stack instead (see above). What remains there is the stack's own review cycle: push the three branches, poll CI and the bots, and merge in order #1081 → #1082 → #1083.
-
-**One open question wants a human ruling** (it does not block Phase 1): whether a hand-written class should have to be *named* in the `.mthds` to bind, or whether the bare-name auto-detect at `concept_factory.py:389` keeps working. Two independent reviewers converged on it — see [`structureless-concept-with-registered-class.md`](structureless-concept-with-registered-class.md), which now carries the measurements.
-
-## What changed, file by file
-
-| File | What |
-| --- | --- |
-| `pipelex/libraries/crate_normalization.py` | `_index_pipe_refs_by_code` + `_qualify_pipe_ref` resolving crate-wide, raising on ambiguity/absence |
-| `pipelex/libraries/exceptions.py` | `CrateNormalizationError` docstring names the new raise reasons (the docstring is the generator source for `docs/errors/crate-normalization-error.md`; it must fit 150 columns on one line) |
-| `pipelex/codegen/emitters/python_structures.py` | `_base_class` emits `TextContent` for a structureless concept, root base for a Python-class-backed one; `_native_class` routes the `Anything` fallback through `_structured_content` so the root base it names is actually imported |
-| `pipelex/codegen/emitters/python_common.py` | `_import_statement` pre-explodes past `PY_EXPLODE_WIDTH` |
-| `tests/unit/pipelex/libraries/test_crate_normalization.py` | `_cross_domain_crate` fixture + closedness / cross-domain / special-outcome / ambiguity / absence tests |
-| `tests/unit/pipelex/codegen/test_projection_agrees_with_runtime_base.py` | new — the four-shape ancestor-agreement gate |
-| `tests/unit/pipelex/codegen/conftest.py`, `test_python_structures_emitter.py` | `refines_anything_crate` fixture + the load-the-module gate for the `Anything` fallback |
-| `tests/unit/pipelex/codegen/test_emitted_artifacts_are_lint_clean.py` | `_assert_ruff_clean` split so the new import-block format-stability test reuses the format half |
-| `docs/under-the-hood/codegen-projections.md`, `docs/errors/crate-normalization-error.md` | doc updates (the errors page is generated — regenerate with `make generate-error-pages`, never hand-edit) |
-| `CHANGELOG.md` | three `[Unreleased]` → `Fixed` entries |
-| `wip/parity/*` | plan (Checkpoint A recorded), README status, D-1 deferral note, this file |
-
-## Things worth knowing before touching this again
-
-- **The D-1 deviation is deliberate and argued.** The plan recommended "own domain first, then crate-wide"; what landed is crate-wide only. `PipeLibrary.get_optional_pipe` does *not* prefer the caller's domain — it raises on an ambiguous bare code — so the own-domain rung would have created a fresh disagreement in the exact case the two resolutions differ. Full table in [`d1-domain-hint-deferred.md`](d1-domain-hint-deferred.md). If a reviewer pushes back, that doc is the answer, not a reason to change the code.
-- **⚠ Crate-wide resolution is a *runtime-parity* choice, not the spec's rule — and the MTHDS standard says the opposite.** The spec sentence is *"Bare pipe references do NOT fall through to other domains or other packages"*, from § *Resolution Order for Bare Pipe References* in the sibling **`mthds/` repo** at the workspace root — **not in this repo**, so it will not resolve from a `pipelex` checkout. The runtime's `get_optional_pipe` searches across domains anyway, and 1.1 mirrored it on purpose. The two readers now agree with each other and **both disagree with the standard, in two places and in opposite directions** — looser on one row, stricter on the other. That is the right stopping point for a parity change and the wrong place to leave the story untold — written up with the full table in [`bare-pipe-ref-spec-divergence.md`](bare-pipe-ref-spec-divergence.md), which also explains why it subsumes D-1. Do not "fix" either reader alone.
-- **One plan grounding claim was stale** and is corrected in Checkpoint A: the lint-clean test already ran `ruff format --check`, parametrized down to line-length 88. The real hole was coverage — no crate shape produces an import line past 88, since each native content class lives in its own module — so 1.3's gate is a direct test on `render_import_block`, not another crate fixture.
-- **`extra="allow"` stayed** on the structureless arm, per the plan, and it is still load-bearing — an earlier version of this note claimed otherwise and was wrong. On a `TextContent` base it preserves every field *alongside* `text`; drop it and pydantic's default `extra="ignore"` strips them silently. What it does not do is let the promoted arm accept an object payload carrying no `text`, because that field is required — and the runtime's class for the same declaration refuses that payload too, which is the agreement 1.2 exists to hold. Verify before re-arguing this: `class X(TextContent): model_config = ConfigDict(extra="allow")` keeps `{"text": …, "source": …}` whole; without it you get `{"text": …}`.
-- **The keyword-only hook fires on every edit** under `pipelex/`. Record a subject grant *before* running checks if a subject should stay positional — `make agent-check` runs the auto-fixer, which will silently keyword-only an ungranted one.
-- **A green cubic *check* does not mean cubic found nothing.** Its check bucket went `pass` on the same run whose review body said "1 issue found". Read `gh api repos/.../pulls/N/reviews` bodies, not just `gh pr checks`. (Cubic also *edits* an earlier review body in place once threads are resolved, so re-fetching an old review can show a different summary than when it was posted.)
-- **The local clock in this worktree is UTC+7.** Filtering the GitHub API with a local-time string silently returns nothing and looks exactly like "the bots have not replied". Always build timestamp filters from `date -u`.
-- **`make agent-test` takes ~19 minutes.** Run it in the background and use the targeted paths from `tests/CLAUDE.md` while iterating.
-- **Stacked rebases need `--onto`.** Folding Phase 2 into the stack meant rebasing #1082 and #1083 onto rewritten parents. `git rebase <new-base> <branch>` replays the branch's *whole* history including the parent commits already rewritten, which conflicts in every file the parent touched; `git rebase --onto <new-base> <old-base> <branch>` is the correct form, with `<old-base>` the parent tip the branch was actually built on. Verify each one by `git diff <pre-rebase-tag>..<new-tip>` — it must show *exactly* the folded change and nothing else.
-- **Never redirect a `git` command's output to `/dev/null`.** `git stash push -- <paths>` refuses when the paths include an untracked file; with the error silenced, the following `git stash pop` applied a *different, unrelated* stash into the tree. It survived only because a conflicted pop does not drop the stash. Use `mv` to set a file aside for a red-green check — `git stash` is the wrong tool whenever untracked files are involved.
-- **A fixture that already registers an import cannot gate a missing one.** The `Anything` defect was invisible to `every_type_kind_crate` because its structured concepts import `StructuredContent` anyway. Gating an *omission* needs a crate where nothing else supplies the thing — hence the single-concept `refines_anything_crate`. Worth remembering before adding a shape to a rich fixture and calling it covered.
diff --git a/wip/parity/bare-pipe-ref-spec-divergence.md b/wip/parity/bare-pipe-ref-spec-divergence.md
deleted file mode 100644
index 633ced409..000000000
--- a/wip/parity/bare-pipe-ref-spec-divergence.md
+++ /dev/null
@@ -1,50 +0,0 @@
-# Bare pipe references resolve across domains, and the MTHDS spec says they must not
-
-**Status:** deferred, deliberately. Surfaced by a review bot against the D-1 note on PR #1085; verified and recorded here rather than fixed. This is a **language decision with cross-repo consequences**, not a parity fix.
-
-## The divergence
-
-The MTHDS standard is explicit. **The spec is not in this repository** — it lives in the sibling `mthds/` repo at the workspace root (the open standard, published to mthds.ai), so a fresh `pipelex` clone cannot resolve the path below. The normative sentences are quoted verbatim here so the claim stays checkable without it; to re-verify against the source, read `docs/spec/namespace-resolution.md` § *Resolution Order for Bare Pipe References* in `mthds/`.
-
-> 1. **Current bundle** — check pipes declared in the same `.mthds` file.
-> 2. **Same domain, other bundles** — if the bundle is part of a package, check pipes in other bundles that declare the same domain.
-> 3. **Error** — if not found, the reference is invalid.
->
-> Bare pipe references do NOT fall through to other domains or other packages.
-
-The runtime does fall through. `PipeLibrary.get_optional_pipe` (`pipelex/libraries/pipe/pipe_library.py`), step 3, is commented *"Bare code fallback — search across domains"* and matches on `val.code == pipe_code` across every non-cross-package entry, ignoring the caller's domain entirely:
-
-| bare ref `foo` used from domain `A` | spec | runtime today | |
-| --- | --- | --- | --- |
-| only `A.foo` exists | `A.foo` | `A.foo` | agree |
-| only `B.foo` exists | **error** — no fall-through | `B.foo` | **differ** |
-| both exist | `A.foo` — found in the own domain at step 1/2, so the search stops before `B` | **raises** `PipeLibraryError` (ambiguous) | **differ** |
-| neither | error | `None` → `PipeNotFoundError` | agree |
-
-**Two rows diverge, and both diverge in outcome.** Row 2 is the fall-through the spec forbids. Row 3 is subtler and easy to get backwards: the spec never reaches an ambiguity at all, because it finds `A.foo` in the caller's own domain and stops — so where the spec quietly succeeds, the runtime raises. A working bundle under the spec is a hard error today.
-
-Row 3 also settles the relationship to D-1: the answer the spec gives there — prefer the own domain — is exactly what a `domain_hint` would produce. Spec compliance therefore delivers D-1's outcome for the ambiguous case *and* closes row 2, which `domain_hint` alone would leave open.
-
-## Why the parity fix mirrored the runtime rather than the spec
-
-Deliberately, and it would be a mistake to "correct" it in isolation. Phase 1's 1.1 made the crate normalizer resolve bare pipe refs the way `get_optional_pipe` does — crate-wide — because the track's entire purpose is that two readers of one authored fact agree. Making the *normalizer* spec-compliant while the runtime stayed permissive would have manufactured a fresh disagreement of exactly the kind being removed: a library that normalizes to an error but runs fine, or vice versa.
-
-So the landed state is coherent: **both readers agree with each other, and both disagree with the spec in the same two places.** That is a strictly better position than where the track started, and it is the correct stopping point for a parity change.
-
-Note the disagreement does not run one way. On row 2 the runtime is *more permissive* than the spec (it resolves where the spec errors); on row 3 it is *stricter* (it raises where the spec quietly returns `A.foo`). "The runtime is looser than the standard" is the tempting one-line summary and it is wrong — worth knowing before anyone reasons about which direction a fix travels.
-
-See [`d1-domain-hint-deferred.md`](d1-domain-hint-deferred.md) for the narrower question this raises (whether `get_optional_pipe` should grow a `domain_hint` and prefer the caller's domain on ambiguity). **Spec compliance subsumes it**: if bare refs never leave their own domain, cross-domain ambiguity cannot arise, and row 3 resolves to `A.foo` — the same answer `domain_hint` was invented to produce. Settle them together, and settle the spec question first, because it decides whether `domain_hint` has anything left to do.
-
-## Why this is not being fixed here
-
-Three reasons, and the third is decisive.
-
-1. **It is a behavior change to the language, not to a reader.** Every `.mthds` in the wild that leans on cross-domain bare resolution stops loading. That is the opposite of a zero-behavior-change parity fix.
-2. **It is cross-repo.** The rule lives in `mthds/` (the standard) and is implemented in `pipelex/`; our cross-repo spec suite would need the case, and any bundle in `pipelex-cookbook/`, the demo repos or the hub that relies on the fall-through would need qualifying. A one-line resolver change does not scope it.
-3. **The direction of the fix is genuinely open, and it is not this track's call.** Either the runtime tightens to the spec, or the spec loosens to describe what every implementation actually does. The second is not obviously wrong — cross-domain bare resolution inside a single crate is convenient and has evidently been relied on. Picking one is a language-owner decision.
-
-## What to do with it
-
-Raise it with whoever owns the MTHDS spec, together with D-1. Whichever way it settles, the change lands in one PR carrying: the resolver, the crate normalizer (they must move together — that is this track's whole lesson), the spec page, a cross-repo spec-suite case, and the sweep of any bundle that relied on the old behavior.
-
-**Do not fix one reader and not the other.** That is the defect class this entire track exists to remove, and it would be an unusually ironic way to reintroduce it.
diff --git a/wip/parity/d1-domain-hint-deferred.md b/wip/parity/d1-domain-hint-deferred.md
deleted file mode 100644
index 226c06878..000000000
--- a/wip/parity/d1-domain-hint-deferred.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# D-1 follow-up — the `domain_hint` conversation, deferred
-
-**Status: CLOSED — subsumed, not implemented.** The `domain_hint` parameter will never be built, because the question it was going to answer stopped existing.
-
-`domain_hint` was a way to make a *search* prefer the caller's domain when a bare code matched several. In-body pipe refs are now qualified to their owner domain at library build time and `PipeLibrary.get_optional_pipe` no longer searches across domains — only the alias-scoped cross-package remainder search survives, per the OQ3 ruling — so a bare in-body code never reaches a lookup that could be ambiguous. The `TODO` quoted below is gone with the fall-through it described.
-
-Note which row of the table settled it: the "both `A.foo` and `B.foo` exist" case now resolves to `A.foo` — the answer the `own-domain-first` column proposed and this note argued against. The argument was sound at the time and its conclusion has been overtaken: own-domain-first was wrong *while* the live library still searched, because it would have made the normalizer disagree with the runtime. Moving both readers together is what made it right. Ambiguity survives in the entry affordance (`get_optional_entry_pipe`), where a human typed the code and guessing on their behalf would be the wrong favour — there it raises and names the candidates — and in the alias-scoped cross-package search `get_optional_pipe` deliberately keeps (OQ3), where an `alias->bare_code` ref matching several domains inside that dependency raises too.
-
-Everything below is the original note, preserved.
-
----
-
-**Status (original):** deferred, deliberately. Raised at 1.1 (Phase 1), not taken.
-
-## What 1.1 actually landed, and how it differs from the plan's recommendation
-
-The plan's D-1 recommendation (a) reads: *"Qualify against the crate, the way the library resolves: **own domain first**, then a crate-wide unique match, raising `CrateNormalizationError` on ambiguity or absence."*
-
-What landed drops the "own domain first" rung: `_qualify_pipe_ref` resolves a bare pipe ref by a **crate-wide** search only — unique match wins, ambiguity raises, absence raises.
-
-The two differ in exactly one case, and in that case "own domain first" would have *created* a new disagreement rather than closing one:
-
-| bare ref `foo` from domain `A` | live `PipeLibrary.get_optional_pipe` | own-domain-first | crate-wide (landed) |
-| --- | --- | --- | --- |
-| only `A.foo` exists | `A.foo` | `A.foo` | `A.foo` |
-| only `B.foo` exists | `B.foo` | `B.foo` | `B.foo` |
-| both `A.foo` and `B.foo` exist | **raises** `PipeLibraryError` (ambiguous) | `A.foo` ✗ | **raises** `CrateNormalizationError` |
-| neither exists | `None` → `PipeNotFoundError` at run | raises | raises |
-
-`get_optional_pipe`'s bare-code fallback (`pipelex/libraries/pipe/pipe_library.py`) searches every non-cross-package entry and raises on more than one match — it does **not** prefer the caller's domain. Its own `TODO` says so in as many words: *"add domain_hint parameter so controllers can prefer their own domain when bare code is ambiguous."* The preference is a thing the runtime is asked to grow, not a thing it has.
-
-So preferring the owner domain in the normalizer would mean a library whose bare ref is ambiguous normalizes happily into a crate that resolves, while an interpreted run of that same library dies on the ambiguity. That is the shape of defect this whole track exists to remove. The plan's own standing rule — *"each fix lands with the test that pins the agreement"* — settles it: mirror the reader that ships.
-
-## The conversation that is deferred
-
-Whether `PipeLibrary.get_optional_pipe` should grow a `domain_hint` and prefer the caller's domain on an ambiguous bare code. This is a **language/runtime decision** (it changes which pipe a runnable bundle calls), not a normalization one, and it belongs with the same person who owns D-1 option (b).
-
-If the answer is yes, the normalizer follows in the same change: `_qualify_pipe_ref` already has `owner_domain` in hand — it is the caller that most obviously knows the hint — and adding the preference rung there is a two-line change plus the ambiguity test flipping from "raises" to "picks own domain". Until then, the two readers agree, which is the property worth holding.
-
-## Why the strictness costs nothing today
-
-An ambiguous or dangling bare pipe ref cannot survive in a library that loads. `Library.validate_library` (`pipelex/libraries/library.py:128`) gates on `isinstance(pipe, PipeController)` — so **every** controller kind, Sequence, Condition, Parallel and Batch alike, not just the two that motivated the check — and puts each of its `pipe_dependencies()` through `get_required_pipe`. An unresolvable one surfaces as a structured `LibraryLoadingError(UNRESOLVED_PIPE_DEPENDENCY)` naming both the referencing controller and the missing ref.
-
-Note the ordering, because it is the opposite of what "validation gates the crate" would suggest: the crate is **built first** (`LibraryCrateFactory.make_from_blueprints`, `library_manager.py:528`) and validated after, inside `load_from_crate` (`:492`). What runs after validation is *normalization* — `get_crate` → `normalize_crate` — and that is the step this fix guards. So the guarantee is not "validation runs first"; it is that no library reaching a normalized crate through the loader has an unresolvable controller dependency, because `validate_library` has already rejected it with a better error.
-
-Raising in the normalizer therefore changes no behavior for any bundle that loads — it only turns a hand-built or transported crate's silent dangling ref into a diagnostic, on the path where nothing else would catch it.
diff --git a/wip/parity/deferred-review-observations.md b/wip/parity/deferred-review-observations.md
deleted file mode 100644
index 864737e3b..000000000
--- a/wip/parity/deferred-review-observations.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# Deferred — observations from the PR #1085 finalization review
-
-Raised by the gstack `/review` pass over Phase 1 (2026-08-03), verified against the tree at `c36feb85b`. Each is real. None is a clear win as a code change *in this PR*, so each is recorded here rather than fixed under the standing "no over-engineering, defer when in doubt" bar. The review's verdict was **land**; these are follow-ups, not blockers.
-
-The two findings that *were* clear wins — the `Anything` import omission and the doc/citation corrections — landed in this PR and are recorded in the plan's Checkpoint A instead.
-
-## 1. A cross-package `refines` target is a fifth structureless shape, ungated on both sides
-
-`test_projection_agrees_with_runtime_base.py` enumerates four authorable concept shapes and claims the enumeration is closed. It is closed only over concepts the crate can resolve on its own. A concept whose `refines` target is absent from the crate — a cross-package base — gets `structureless=True` **with** `base_ref` set (`pipelex/codegen/resolved_concepts.py:127-131`, the `elif value.refines:` branch), so it skips 1.2's new structureless arm and falls to `python_structures.py:89-90`, landing on `StructuredContent`.
-
-That is the same choice this PR just ruled wrong for the in-crate structureless shape, taken in the sibling branch, untested on both sides.
-
-**Why it is not fixed here.** It sits on the same B1-1 floor as the Python-class-backed case: the base is *genuinely* not visible to the crate, so there is nothing to agree with — the runtime resolves it through a package the crate does not carry. Promoting it to `TextContent` would be a guess, and keeping the root base is the honest answer to "we cannot see this". The projection is not silent about it either: that same branch sets `imprecision_reason = "refinement base '<ref>' is not available in this crate"`, which the emitter writes into the class docstring. So the reader is told, which is the bar the "surfacing imprecision, never guessing" rule actually sets. The test docstring has been scoped to say so rather than overclaim closure.
-
-**What would settle it.** Decide whether a cross-package base should be resolved at normalization time (which would make the crate non-self-contained, a contract question) or stay deferred. Until then the root base is correct-by-honesty, not by accident. Related: [`structureless-concept-with-registered-class.md`](structureless-concept-with-registered-class.md), which is the same "the crate cannot see it" floor reached by a different channel.
-
-## 2. Crate closedness is fixture-true, not property-true
-
-`_qualify_pipe_ref` returns any ref containing a `.` unchanged, with **no existence check**. So a typo'd *qualified* ref (`presentation.nope`) still produces a dangling ref in the normalized crate and a run-time `PipeNotFoundError` — exactly what the closedness test's docstring warns against. The test passes because its fixtures contain no such typo.
-
-**Why it is not fixed here.** Pre-existing, and out of Phase 1's scope: 1.1 was about *bare* refs, which had no resolution at all. Adding existence validation for qualified refs is a separate behavioural change with its own blast radius — a hand-built or transported crate legitimately carries refs to pipes it does not hold yet in some load orders, and the loader's `validate_library` already rejects the reachable cases with a better, structured error.
-
-**Trap for whoever extends the test.** The closedness docstring invites adding a cross-package fixture to its `parametrize`. Doing that will fail the test for a legitimate reason — cross-package deps are deliberately deferred, not resolved — unless the comprehension filters them out, mirroring `_index_pipe_refs_by_code`'s own `has_cross_package_prefix` skip.
-
-## 3. Generic concept codes in the parity test are a latent test-order flake
-
-`test_projection_agrees_with_runtime_base.py` names its four shapes `Opaque`, `Structured`, `Refined`, `RefinesNative`. `ConceptFactory._handle_basic_blueprint` looks the **bare** code up in the process-global class registry before falling back to the generated `TextContent`-based class. No collision exists today, but any future `class Opaque(StructuredContent)` registered anywhere in the suite would silently flip `test_structureless_lands_on_text_content` — the test would fail, or worse pass, for a reason unrelated to what it gates.
-
-**Why it is not fixed here.** Speculative today; the fix (namespacing the codes) is free but guards a scenario that does not exist. Worth doing the next time that file is touched for another reason. Recorded so the failure is diagnosable in one read if it ever happens, rather than costing an afternoon.
-
-## 4. Cross-repo — the `mthds/` spec states the bare-ref rule for concepts only
-
-`mthds/docs/spec/library-crate.md` §2 describes bare-reference resolution purely in *concept* terms ("resolve to `domain_path.ConceptCode`"). The bare-**pipe**-ref rule this PR settled — resolve crate-wide, unique match required, error on ambiguity or absence — is unstated there, and that file is the one `crate_normalization.py`'s own header cites as `[Library Crate Format]`.
-
-So the implementation now has a documented behaviour its governing spec does not describe. That is a spec edit in the `mthds/` repo, not this one.
-
-**Note the ordering dependency:** if D-1's `domain_hint` question is answered "yes, prefer the caller's domain" (see [`d1-domain-hint-deferred.md`](d1-domain-hint-deferred.md)), the rule changes and the spec text would have to be written twice. Settle D-1 first, then write the spec paragraph once.
diff --git a/wip/parity/parity-gaps-plan.md b/wip/parity/parity-gaps-plan.md
deleted file mode 100644
index b0ef9ebf2..000000000
--- a/wip/parity/parity-gaps-plan.md
+++ /dev/null
@@ -1,155 +0,0 @@
-# Parity-gaps plan — fix the places where two readers disagree about one authored fact
-
-**Thesis.** pipelex has several surfaces that each claim to be a faithful reading of the same authored source: the live library vs the normalized crate, the runtime concept factory vs the `python-structures` projection, the emitted bytes vs the consumer's formatter, and (once the kernel extraction merges) the `PipelexKernel` façade vs the ops the interpreter actually calls. Where two of them disagree, the result is a *wrong value with no error attached* — both sides succeed, and only downstream behavior reveals the split. This plan fixes every such disagreement currently known, each with the regression gate that would have caught it.
-
-**Standing rules for this branch:**
-
-- Every claim below carries its instrument (file:line or a repro) and its date. Re-verify before building on any of them — code moves.
-- Each fix lands with the test that pins the *agreement*, not just the fixed behavior: the natural gate is "both readers, same answer", asserted mechanically.
-- No backward compatibility (repo principle): where a fix changes observable behavior, it changes it, with a changelog entry — no deprecation shims.
-- Changelog entries go under `[Unreleased]` on this work branch; a versioned heading only at release time.
-
-## Grounding — verified on this tree (`fix/Parity-gaps` at `221b8ee0b`), 2026-08-03
-
-- `pipelex/libraries/crate_normalization.py` — `_qualify_pipe_ref` applied to sequence steps, condition branches, and outcomes (lines 232–239); `CrateNormalizationError` already exists (`pipelex/libraries/exceptions.py`), so the fix needs no new error class.
-- `pipelex/codegen/emitters/python_structures.py:59–63` — the structureless arm emits `ConfigDict(extra="allow")` on a `StructuredContent` base; `pipelex/core/concepts/concept_factory.py:376` — `_handle_basic_blueprint` is the runtime's opposite reading.
-- `pipelex/codegen/emitters/python_common.py:255` — `render_import_block`, no wrapping at any width; `PY_EXPLODE_WIDTH = 88` at line 24; the lint-clean gate is `tests/unit/pipelex/codegen/test_emitted_artifacts_are_lint_clean.py` and it runs `ruff check`, not `ruff format --diff`.
-- `pipelex/pipe_operators/llm/pipe_llm.py:219–237` — the interpreter resolves `llm_setting_main` (text) and `llm_setting_for_object` separately and derives `templating_style` from `llm_setting_main`.
-- `pipelex/kernel/` does **not** exist on this branch. The façade and operator ops arrive with the open kernel-extraction PRs: #1081 (package + LLM slice), #1082 (remaining operators), #1083 (memory boundary). Phase 2 claims are written against those PRs' code and must be re-verified on the merged result. — **Superseded:** Phase 2 shipped inside those PRs instead, so it was re-verified and built on their branches; nothing in Phase 2 lands on this one.
-
-## Phase 1 — the dev-buildable trio
-
-### 1.1 Crate normalization mis-qualifies a bare cross-domain pipe ref
-
-**The defect.** `_qualify_pipe_ref` prefixes a bare pipe ref with the **owner domain** unconditionally, while the live `PipeLibrary.get_optional_pipe` resolves a bare code by **searching every domain** (its bare-code fallback is gated on `"." not in pipe_code`). So a bundle calling a sibling domain's pipe runs correctly through the interpreter and normalizes into a crate whose step names a pipe that does not exist.
-
-**Repro** (measured 2026-08-03): load `pipelex-cookbook/examples/wip/advisory_board/` (domain `advisory_orchestrator` calling `present_as_markdown`, declared in domain `presentation`), normalize, and query both sides: the normalized step ref `advisory_orchestrator.present_as_markdown` is absent from `crate.pipes`, while the live lookup of the bare code succeeds. The library loads and validates green; the crate is silently wrong.
-
-**Why it matters.** (1) The normalized fingerprint hashes the wrong content — two libraries differing only in which domain declares the callee hash as if the caller pointed at its own domain. (2) A crate round-trip breaks the method at run time: decode → `load_from_crate` reinstates the *dotted* ref, which never reaches the bare-code fallback, so the run dies with `PipeNotFoundError`. That is the transport path (sandbox-hosted load, distributed execution payloads), not a hypothetical. (3) Every consumer of `crate.pipes` inherits it, including the per-pipe codegen kinds the spec reserves.
-
-**The fix — decision D-1, recommendation (a).** Qualify against the crate, the way the library resolves: own domain first, then a crate-wide unique match, raising `CrateNormalizationError` on ambiguity or absence. Normalization already sees all domains at once, so this is a lookup change, not a restructuring. The alternative (b) — reject the authored bare cross-domain form as a validation error — is a language decision that needs Louis, breaks authored bundles, and contradicts `get_optional_pipe`'s deliberate fallback (whose own `TODO` asks for a `domain_hint`, i.e. the fallback is intended to stay). Whoever lands (a) should also decide whether that `domain_hint` TODO is the same conversation — normalization is exactly the caller that knows the hint.
-
-**The gate.** Normalize a two-domain crate whose step crosses domains and assert every in-body pipe ref resolves to a key present in `crate.pipes`. Five paths qualify a ref today — a sequence's `steps`, a parallel's `branches`, a condition's `outcomes` **and** its `default_outcome`, and a batch's `branch_pipe_code` — so drive the assertion off `pipe_dependencies` rather than hand-walking the controller kinds, and the sixth arrives already covered. A crate-closedness assertion of that shape would have caught this the day the fallback was written; make it a standing test, not a one-off.
-
-### 1.2 The types projection and the runtime disagree on a structureless concept's base class
-
-**The defect.** A concept declaring only a description — no `structure`, no `refines` — resolves to two different types. The runtime promotes it to a refinement of native `Text`: `ConceptFactory._handle_basic_blueprint` generates its class on a `TextContent` base. The `python-structures` projection emits it as `class X(StructuredContent)` with `ConfigDict(extra="allow")`. `TextContent` and `StructuredContent` are siblings, so the same authored concept is a text type on one side and an object type on the other.
-
-**Why it is worse than the (deliberate) naming difference.** Two things branch on the base class. First, the interpreter's text-vs-object dispatch asks whether the output concept is strictly compatible with native `Text` — `True` with the runtime's class, `False` with the projected one, so the same concept triggers two different LLM calls with different prompts and result shapes. Second, the text path's read-back (`model_validate({"text": ...})`) succeeds on **both** classes with identical dumps — `extra="allow"` swallows the mismatch — so the divergence produces no exception anywhere. Any consumer that generates `structures.py` and hands those classes back to the runtime (the projection's entire point) inherits this. Cookbook bundles authoring structureless output concepts (e.g. `examples/wip/blog_article_generator/`, `examples/wip/write_tweet/tech_tweet.mthds`) are live instances of the shape.
-
-**The fix — decision D-2, recommendation (a).** Make the projection follow the runtime: emit `TextContent` as the base for a structureless concept (one arm in `python_structures`), so the projected class satisfies the same `isinstance` checks the runtime's does and carries a real `text` field — `extra="allow"` stops doing load-bearing work for this shape (it stays, for pass-through of unknown fields, which was its actual job). The alternative (b) — stop the runtime's promotion and make structureless genuinely shapeless — is a language decision: "describe it in prose and get text back" is what a structureless concept currently *means* to authors, and changing that is not a codegen call.
-
-**The gate.** Assert that the projected class and `ConceptFactory`'s generated class for the same blueprint share the same `StuffContent` ancestor, across all four shapes the crate can resolve on its own: structureless, structured, refines-native, refines-in-crate. A cross-package `refines` is a fifth shape and stays deliberately outside this gate — the crate cannot resolve the target without its dependency loaded, so the comparison has nothing to compare; it is written up in [`deferred-review-observations.md`](deferred-review-observations.md). Within the four, one language invariant keeps the sweep closed and should be stated in the test: MTHDS forbids `refines` + `structure` together, so a structured concept refining a structureless one — the shape where a divergence could hide — cannot be authored at all.
-
-### 1.3 `render_import_block` emits lines a consumer's formatter rewrites
-
-**The defect.** Every renderer in `python_common.py` respects `PY_EXPLODE_WIDTH = 88` and pre-explodes past it with a magic trailing comma — the formatter-clean discipline #1070 established, precisely so a consumer's `ruff format` cannot rewrite emitted bytes. `render_import_block` is the one hole: it merges and sorts, but never wraps, at any width. A merged import whose names cross 88 columns renders flat and gets rewritten into the parenthesized form by the first `ruff format` in the consumer's tree. Today's emitted artifacts stay under the threshold, so the defect is latent rather than absent — one more name sharing a module and it fires, and the existing lint-clean test would not notice, since `ruff check` has no opinion on a long import line.
-
-**The fix.** Wrap past `PY_EXPLODE_WIDTH` in the parenthesized form with a magic trailing comma — the same shape the sibling renderers already use and exactly what ruff itself produces, so the emitted bytes become a fixed point of the consumer's formatter at any width ≥ 88.
-
-**The gate.** Extend the lint-clean test to assert `ruff format --diff --line-length 88` is empty for each emitted artifact, not just that `ruff check` passes — and keep #1070's sweep shape (input shapes × targets × widths), because example-based versions of this exact claim have been disproved before. Lint-clean and format-stable are different properties, and only the second is what byte-reproducibility in a consumer's tree rests on.
-
-**🔶 CHECKPOINT A — the dev-buildable trio landed.** ✅ **Reached 2026-08-03.**
-
-All three fixes landed on `fix/Parity-gaps`, each red-green verified against the tree before it (the gate was written first, run against the unfixed code, and observed to fail for the stated reason).
-
-| Fix | What landed | Gate |
-| --- | --- | --- |
-| 1.1 | `_qualify_pipe_ref` resolves a bare pipe ref crate-wide against an index of the crate's own pipe refs, raising `CrateNormalizationError` on ambiguity or absence | `test_crate_normalization.py`: crate-closedness over `pipe_dependencies` (parametrized across both crate shapes), cross-domain resolution at all five call sites, special outcomes untouched, ambiguity, absence |
-| 1.2 | `python_structures._base_class` emits `TextContent` for a structureless concept; a Python-class-backed one keeps the root base | `test_projection_agrees_with_runtime_base.py`: same nearest `StuffContent` ancestor as `ConceptFactory`'s generated class, across all four authorable shapes, plus the named answer and the opaque-class carve-out |
-| 1.3 | `render_import_block` pre-explodes past `PY_EXPLODE_WIDTH` via `_import_statement` | `test_emitted_artifacts_are_lint_clean.py`: `ruff format --check` at `PY_EXPLODE_WIDTH` over a merged block and a single overlong name |
-
-**Real-world confirmation of 1.1.** The plan's repro was run end-to-end against `pipelex-cookbook/examples/wip/advisory_board/`: before the fix, `advisory_orchestrator.master_advisory_orchestrator -> advisory_orchestrator.present_as_markdown` is dangling in the normalized crate; after, the ref reads `presentation.present_as_markdown` and the crate is closed.
-
-**Deviations from the recommendations.**
-
-- **D-1: the "own domain first" rung was dropped.** Recommendation (a) had own-domain-first, then crate-wide. `get_optional_pipe` does not prefer the caller's domain — it raises on an ambiguous bare code — so that rung would have *created* a disagreement in the one case the two differ. What landed mirrors the shipping reader exactly. Written up in [`d1-domain-hint-deferred.md`](d1-domain-hint-deferred.md).
-- **D-1's `domain_hint` conversation: deferred**, not opened. It is a runtime/language decision (which pipe a runnable bundle calls), and the normalizer follows it for free once it is settled — same doc.
-- **1.3's grounding claim was stale.** The plan recorded that the lint-clean gate "runs `ruff check`, not `ruff format --diff`". It already ran `ruff format --check`, including parametrized over consumer line-lengths down to 88. The real hole was coverage, not the assertion: no crate shape produces an import line past 88 (each native content class lives in its own module, so nothing merges far enough), so the gate is a direct test on `render_import_block` rather than another crate fixture. `_assert_ruff_clean` was split so the new test reuses the format-stability half — an import block alone has nothing to *use* its names, so `ruff check` would flag `F401` on a shape no emitter writes.
-- **§1.1's call-site count above was wrong.** It says "steps, branches, outcomes — all three `_qualify_pipe_ref` call sites". There are **five**, across all four controller kinds: `steps` (Sequence), `branches` (Parallel), `outcomes` *and* `default_outcome` (Condition), `branch_pipe_code` (Batch). What shipped covers all five and the gate exercises all five; only the plan's pre-implementation count was short.
-
-**Gates run:** `make agent-check` ✅ · full `make agent-test` ✅ · `make drift-check` ✅ · `[Unreleased]` changelog entry for each of the three ✅.
-
-**Review rounds.** CI green (all shards, lint, typecheck, keyword-only, doc-check). Greptile 5/5 clean; cubic clean across the diff; a Sonnet-5 `/code-review` fan-out (no inherited context) found nothing. Codex raised one P2, verified real but **pre-existing** and deferred with a written argument ([`structureless-concept-with-registered-class.md`](structureless-concept-with-registered-class.md)). A final gstack `/review` returned **land**, and surfaced one genuine defect none of the four had caught, fixed here:
-
-- **`_native_class` named the root base without importing it.** `Anything` is the only native with `structure_class is None`, so it was the one reference that fell through to a bare `"StructuredContent"` string — a module that raises `NameError` on the consumer's first import (`ruff` flags it `F821`). Now routed through `_structured_content`, which registers the import like every other emission in the file. Gated by `test_refines_anything_imports_the_root_base_it_names`, which *loads* the module rather than grepping it. Note the `every_type_kind_crate` fixture cannot gate this — its structured concepts already register the import, masking the omission — hence a dedicated single-concept crate.
-
-That review also corrected three documentation inaccuracies, all fixed: the doc's "opaque is always pass-through, never lossy" claim (false for this target since 1.2 — `TextContent.text` is required, so an object payload now raises), a citation of a `ConceptBlueprint` validator that does not exist, and the mechanism sentence in the D-1 note (the guarantee comes from `validate_library`'s `isinstance(pipe, PipeController)` gate covering *all four* controller kinds, and the crate is built **before** validation, not after). Its remaining observations were judged not-clear-wins and deferred to [`deferred-review-observations.md`](deferred-review-observations.md).
-
-This is the PR boundary: Phase 1 ships on its own, as PR #1085 against `dev`. Phase 2 did not wait behind it — see below.
-
-## Phase 2 — the kernel trio ✅ **RESOLVED, by folding into #1081 / #1082 rather than waiting for the gate**
-
-These three are written against the open kernel-extraction PRs and share a theme: the `pipelex.kernel` package's stated contract — a runtime layer callable without the interpreter, whose façade is a faithful convenience over the ops — is not yet true in three places.
-
-**How this phase actually shipped.** The plan's instruction was to re-verify against the *merged* code and not land these as review feedback on the finalized stacked PRs. That was the right default and it was overridden deliberately, by Louis' call, once the alternative was priced honestly: each of these is a defect *the kernel PRs themselves introduce*, so landing them afterwards would mean knowingly merging a package whose contract is false and then repairing it — and the repair PR would have to re-open the same files. Two of the three folded in; the third dissolved on re-verification.
-
-| Gap | Outcome | Where |
-|---|---|---|
-| 2.1 `llm_text` narrower than its op | Fixed | *make llm_text as wide as the op beneath it*, on `refactor/Kernel` (#1081) |
-| 2.2 `llm_object` templating style | **Not a live defect** — claim overstated; deferred as KF-16, now **closed by dissolution** | *number the prompting-style follow-up KF-16 to keep the stack's*, on `refactor/Kernel` (#1081); closed on `fix/Keyless-dry-run` by *Phase 1 — templating style becomes an authoring decision on the LLM path* |
-| 2.3 kernel cannot build an `ImgGenPrompt` | Fixed | *let a runtime-only caller build the image prompt it has to pass in* + arm *give the image prompt assembler the boot-contract arm the rule owes it*, on `refactor/Kernel-phase2` (#1082); doc review *record the image prompt assembler on the page that specifies the kernel* (#1083) |
-
-**Commits are named by subject, not by SHA, and deliberately.** These fixes live on a three-deep stacked series that is rebased whenever a parent moves, which rewrites every hash on it. An earlier revision of this table named SHAs; the rebase that folded in the review round orphaned three of them, so they resolved from no branch at all. A subject survives the rewrite — `git log --grep` finds it.
-
-The re-verification the plan asked for happened against each PR's own branch rather than against a merged result, which is stricter in one way (the code is exactly what will merge) and weaker in another (it cannot see interactions with a later PR in the stack). Nothing in the stack touches these paths after #1082, so the weakness is not live here.
-
-### 2.1 `PipelexKernel.llm_text` is narrower than the op beneath it
-
-**The defect** (against #1081's code). The façade's text method hardcodes what the op parameterizes, in three ways: output concept (op takes `concept: Concept`; façade hardcodes native `Text`), output class (op takes `output_class`; façade hardcodes `TextContent`), and model (op's resolution accepts `None` and defers to the deck; façade requires a `model`). Its sibling `llm_object` has none of these limits — the asymmetry is between the façade's own two methods. The interpreter passes all three through, with the model choice routinely `None`.
-
-**Why it matters.** A programmatic caller producing a concept that refines native `Text` stores `native.Text`/`TextContent` where an interpreted run stores the declared concept and its generated class — a silent memory divergence, and a hard `StuffContentTypeError` the moment anything reads the result back expecting the declared class. And a model-less call — the normal authored case, since omitting the model defers to the deck exactly like a `$preset` does — is inexpressible through the façade for no semantic reason.
-
-**The fix.** Widen `llm_text` to match `llm_object`: `concept` and `output_class` optional, defaulting to today's hardcoded pair; `model` optional, passed through to the resolution unchanged. Additive — every existing call site keeps working because the defaults are today's behavior.
-
-**✅ Done — *make llm_text as wide as the op beneath it*, on `refactor/Kernel` (#1081).** Re-verified against that branch and held exactly as written: all three widenings were needed. Pre-fix the façade declared `model: LLMModelChoice` with no default — required — and it now declares `model: LLMModelChoice | None = None` alongside the newly optional `concept` and `output_class`. Gated by `tests/unit/pipelex/kernel/test_llm_text_kernel.py`, which asserts on what lands in the returned memory (`type(stuff.content) is MeetingSummary`, the stuff's `concept_ref`) rather than on the signature — a signature assertion would pass on a façade that accepted the arguments and dropped them. No changelog entry: the package is new and unreleased, so there is no shipped behavior to note.
-
-### 2.2 `PipelexKernel.llm_object` renders under the wrong model's prompting style
-
-**The defect** (against #1081's code). A `PipeLLM` carries two model choices (`model` → for_text, `model_to_structure` → for_object). The interpreter resolves **two** settings and derives the templating style from the **text** one (`pipe_llm.py:219–237` on dev — the pipe's main model governs how the prompt is written; the object path differs only in how the answer comes back). The façade collapses to one choice, drops the object chain's `for_text` fallback rung, and derives the style from the **object** setting. Unlike 2.1 this is not narrowness visible in a signature — it is a wrong value.
-
-**When it bites.** A pipe declaring both choices, resolving to models with different prompting targets: the prompt is assembled under the structuring model's style while an interpreted run assembles it under the main model's. Both calls succeed; the prompt text differs. Also, "text model X, object model default" is expressible in MTHDS and inexpressible through the façade.
-
-**The fix.** Give `llm_object` the second choice (`model_for_object`), forward the `for_text` rung into the object resolution, and derive the style from the text setting — mirroring the interpreter line for line. Existing single-choice callers keep working and their style derivation *changes*, which is the point: today it is wrong whenever the two settings differ. Pair with a test asserting the two-choice case — no current test covers a pipe declaring both.
-
-**⚠️ Not built — the claim above is overstated, and the feature it defends is slated for removal.** Two independent reasons, either sufficient:
-
-*The defect is not live.* The façade's single explicit `model` wins `resolve_llm_setting_for_object`'s **first** rung, so the style is derived from that very setting — which is also what an interpreted run derives for a pipe naming only a text model. The two agree for every call the façade can express. Divergence needs a pipe naming *both* choices, and the façade cannot express one. So what remains is narrowness, not a wrong value — the same category as 2.1, and a much weaker instance of it.
-
-*The mechanism is obsolete.* Model-derived prompting style dates from when models were genuinely sensitive to prompt markup. Louis' ruling: rather than widen the derivation, the style becomes an explicit user choice defaulting to XML, and the derivation goes away. Building `model_for_object` here would mean constructing the two-setting derivation that refactor deletes.
-
-Deferred as **KF-16** in the kernel track's deferred-follow-ups doc (now tracked at workspace level), with the design in [`../prompting-style/prompt-style-as-an-authoring-decision.md`](../prompting-style/prompt-style-as-an-authoring-decision.md) — superseding the deferred note that landed with [PR #1081](https://github.com/Pipelex/pipelex/pull/1081). Silenced in #1081 by *number the prompting-style follow-up KF-16 to keep the stack's* — a docstring on `llm_object` recording why its single `model` is correct, carrying the trap explicitly: *do not "fix" this by deriving the style from an object-only resolution, which would introduce the divergence rather than close it.*
-
-**✅ KF-16 closed 2026-08-14, by dissolution — on `fix/Keyless-dry-run`, commit *Phase 1 — templating style becomes an authoring decision on the LLM path*.** The second reason above is what happened: the derivation is deleted, not widened. A `PipeLLM` declares `templating_style` (bare tag-style string or full `{ tag_style, text_format }` table); everything that declares nothing resolves one runtime default; no code path consults a model, a deck, or a credential to decide prompt shape. `llm_text` and `llm_object` both take the style as an optional argument resolved through the same total resolver, so the two-choice case that motivated this gap can no longer diverge — there is nothing left to derive from either setting.
-
-**The trap recorded in the #1081 docstring is now moot, and the docstring carrying it is deleted.** "Do not fix this by deriving the style from an object-only resolution" was a warning about a mechanism that no longer exists; there is no object-only resolution to derive a style from, and no derivation site to put one in. It is preserved here as history only — do not reintroduce it as guidance.
-
-### 2.3 Nothing in the kernel can build an `ImgGenPrompt`
-
-**The defect** (against #1082's code). `kernel.img_gen_ops.run_img_gen` takes a ready `ImgGenPrompt`, by deliberate analogy with `run_llm_text` taking a ready `LlmPromptContent`. The analogy is where it breaks: the kernel ships the LLM prompt's constructor (`llm_prompt_content.make_from_text`) but no image counterpart — the only builder is `ImgGenPromptBlueprint.make_img_gen_prompt`, an interpreter-layer module. So a `RuntimeBoot`-only process can call the text, object, and compose ops and **cannot call the image op at all**. Sharper: `kernel/prompt_references.py` hosts `ImageReference`/`ImageReferenceKind` under a docstring asserting the kernel is what resolves them — and it is not; the blueprint imports those names upward and does the resolving. The vocabulary migrated and the semantics did not, which makes the layer's "callable without the interpreter" guarantee false for one operator — and that guarantee is the kind worth nothing at less than 100%.
-
-**The fix — decision D-3, recommendation (a).** A `pipelex/kernel/img_gen_prompt.py` mirroring `llm_prompt_content.py`: takes memory (as a context provider), the template source/category/style, an optional negative template, and the kernel's own `ImageReference` list; returns an `ImgGenPrompt`. The blueprint keeps its parse-and-validate role and delegates — completing the move its own docstring describes as already done. The honest cost: the assembly pulls `ImageRegistry`, `PromptImageFactory`, `substitute_nested_in_context` and `render_template` with it, so scoping must decide whether those are runtime-layer or tools-layer citizens (most already are). The alternative (b) — export just the render step and let callers assemble — is smaller but leaves the image-registry and `[Image N]` placeholder logic (the genuinely subtle part, where a token-order/`input_images`-order mismatch silently mislabels images) to be re-derived by every caller; acceptable only if explicitly framed as a first step.
-
-**The gate.** A test that builds an `ImgGenPrompt` through the new kernel constructor and through the blueprint from the same authored inputs and asserts they are equal — the same "both readers, same answer" shape as everything above — plus a boot-scoped test that the constructor is importable and usable under `RuntimeBoot` alone.
-
-**✅ Done — *let a runtime-only caller build the image prompt it has to pass in*, on `refactor/Kernel-phase2` (#1082), recommendation (a).** `pipelex/kernel/img_gen_prompt.py` holds `assemble_img_gen_prompt`; `ImgGenPromptBlueprint` drops 296 → 82 lines and delegates, keeping parse-and-validate. `ImgGenPromptBlueprintValueError` becomes the kernel's existing `PromptContentError`, whose docstring already described exactly this failure — the same swap Phase 1 made on the LLM side.
-
-**D-3's scoping question, answered: it cost nothing.** The plan priced the move as dragging `ImageRegistry`, `PromptImageFactory`, `substitute_nested_in_context` and `render_template` across a layer boundary. All four are already `cogt`/`tools` citizens, and the blueprint held exactly **one** interpreter-layer import (`PipeImgGenFactoryError`). Nothing moved layers. `max_prompt_images` deliberately stayed with the blueprint: it is a property of the model the *pipe* chose, its breach is a pipe-level error, and it is a `len()` check rather than the subtlety the kernel module exists to centralise.
-
-**Both gates built, and the boot-scoped one found a real gap.** The equality test is `tests/unit/pipelex/kernel/test_img_gen_prompt_kernel.py`. The boot-scoped half revealed that `assemble_img_gen_prompt` had no arm in `test_kernel_boot_contract.py` — which the kernel's own standing rule requires, because that subprocess is per-function and is the only gate that can see a function-local interpreter import. `assemble_llm_prompt` needs none (both `run_llm_*` call it, so the LLM arms carry its closure); `run_img_gen` takes a *ready* prompt and calls nothing, so the img-gen arm's coverage was incomplete in precisely the way the kernel surface was — it hand-built its `ImgGenPrompt` because nothing in the kernel could build one. Fixed by *give the image prompt assembler the boot-contract arm the rule owes it*, on **#1082**, deliberately not on #1083: an entry point and its only gate belong in the same PR, or #1082 merges to `dev` in violation of the rule its own package docstring states. The arm now assembles then generates, asserting on the `[Image N]` token *and* `input_images`, the two readings of one registry. Only the *doc* half went to #1083, as *record the image prompt assembler on the page that specifies the kernel*, because that is where the kernel page and its drift contract live.
-
-**🔶 CHECKPOINT B — plan complete.** Record: merged-code re-verification results for 2.1–2.3 (what moved, what held), each fix's commit and gates, D-3's scoping outcome (which helpers moved to which layer), and changelog entries. Run the full gate set. Update the README status block and close the track, or spin out whatever the re-verification surfaced.
-
-**Checkpoint B record.** Re-verification: 2.1 held as written in all three of its arms, `model` included; 2.2 did **not** hold and was withdrawn (above); 2.3 held, and its predicted layering cost did not materialise. Commits and gates are recorded per-gap above. D-3 settled on (a) with no helper moving layers. Changelog: one entry extended (`LLMPromptBlueprintValueError` → *and `ImgGenPromptBlueprintValueError`*) plus one new entry for `assemble_img_gen_prompt`, both on #1082; 2.1 needed none. Gate set green on both branches — `make agent-check`, `make drift-check`, and a full `make agent-test`. Spun out: KF-16 / `wip/prompting-style/` (design now at `prompt-style-as-an-authoring-decision.md`).
-
-## Decisions
-
-- **D-1 — bare cross-domain qualification: (a) qualify against the crate (recommended) vs (b) reject the authored form.** (a) matches the runtime the language already ships and fixes fingerprint + round-trip at once; (b) is a breaking language ruling for Louis. Settle at 1.1; note the adjacent `domain_hint` TODO either way.
-- **D-2 — structureless base class: (a) projection follows the runtime (`TextContent` base, recommended) vs (b) runtime stops promoting.** (a) is one arm in the projection and honors what the declaration means to authors today; (b) is a language change. Settle at 1.2.
-- **D-3 — img-gen prompt assembly: (a) kernel constructor module mirroring `llm_prompt_content` (recommended) vs (b) export the bare render step.** (a) completes the layering the kernel already claims in writing; (b) re-distributes the subtle half to every caller. Settle at 2.3, with the helper-scoping question answered explicitly rather than by drift. — **✅ Settled: (a).** The scoping question answered itself: no helper changed layers, because all four were already `cogt`/`tools`. See 2.3.
-
-## Out of scope
-
-- The runtime's structureless *promotion* semantics (D-2 option (b)) and the bare-ref *language rule* (D-1 option (b)) — both are author-facing language decisions, flagged for Louis, not taken here.
-- `PipelexKernel` growing façade methods for the non-LLM operators — a design conversation for after the kernel PRs settle, not a parity defect.
-- Anything in the open kernel PRs themselves — they are finalized and stacked; this branch follows them, it does not amend them.
diff --git a/wip/parity/structureless-concept-with-registered-class.md b/wip/parity/structureless-concept-with-registered-class.md
deleted file mode 100644
index 95036cdf7..000000000
--- a/wip/parity/structureless-concept-with-registered-class.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# Deferred — a structureless concept bound to a registered class through a channel the crate cannot see
-
-**Raised by:** the Codex reviewer on PR #1085 (P2), then **independently re-raised by cubic at P1** two rounds later against the same line. **Verified 2026-08-03**, against the tree at `d9efffbfb`, re-checked and quantified at `c4788e47b`. **Status: deferred** — no fix available at the emitter layer that is a clear win, and the correct fix is a language decision for a separate change.
-
-⚠ **Two independent reviewers converged on this**, which raises its priority above an ordinary deferral. It is the one open question on this PR that a human should rule on. Nothing about the ruling blocks Phase 1 — but it should not sit indefinitely either.
-
-## The shape
-
-`ConceptFactory._handle_basic_blueprint` (`pipelex/core/concepts/concept_factory.py:386-392`) looks the **bare concept code** up in the class registry *before* falling back to the `TextContent`-based generated class. On a hit it binds the concept to that class outright — no promotion, no `refines`. What fills the registry from a user's library directory is `ClassRegistryUtils.import_modules_in_folder(base_class_names=["StructuredContent"])` + `auto_register_all_subclasses(base_class=StructuredContent)` (`pipelex/libraries/library_manager.py:338`, `:372`), so any hand-written `StructuredContent` subclass in `sys.modules` is registered under its bare name.
-
-So a description-only concept `CustomerReview = "..."` sitting beside a hand-written `class CustomerReview(StructuredContent)` resolves, at run time, to the hand-written class.
-
-This is not theoretical. It is **the documented endpoint of a migration guide** — `docs/building-methods/concepts/python-classes.md:162-224` teaches exactly this move ("Structure section removed — now defined in Python"), and it teaches the *bare-name* form rather than the crate-visible `structure = "<ClassName>"` one.
-
-**Measured 2026-08-03**, and the split is what decides the trade:
-
-| Tree | Hand-written content classes | Description-only concepts | Colliding (the shape) |
-| --- | --- | --- | --- |
-| `pipelex/` own test fixtures | — | — | **93** |
-| `pipelex-cookbook/` | 40 | 13 | **0** |
-| `pipelex-starter-python/` | 0 | 0 | **0** |
-
-So the shape is pervasive in this repo's fixtures (e.g. `tests/integration/pipelex/pipes/controller/pipe_sequence/pipe_sequence_2.mthds`'s `CustomerReview = "A single customer review text"` beside `pipe_sequence.py`'s three-field `CustomerReview`) — and **those fixtures are interpreted, never codegen'd**. The trees that *are* the codegen-facing examples hold none: the cookbook's structure classes all use the domain-qualified generated form, which hits the *second* lookup (`concept_factory.py:391`) and lands on the same `TextContent`-based generated class, so no divergence there.
-
-That asymmetry is the argument for what landed. 1.2 makes the projection agree with the runtime for the plain description-only concept — common in every tree, including the 13 in the cookbook — and disagree for the registered-class shape, which does not occur in any tree that runs codegen. Reverting inverts both.
-
-## What PR #1085 changed about it, honestly
-
-Before, the projection emitted `StructuredContent` for every concept with no base. Because the only class reachable through the sanctioned loader path is a `StructuredContent` subclass, the old output happened to match the runtime's *nearest content ancestor* for this shape. After, it emits `TextContent`, which does not.
-
-But the projection was never the runtime class either way: it emits a **fieldless shell with `extra="allow"`**, before and after. The runtime class carries the author's real fields and validators. Keeping the base would not have made the projection usable as a stand-in — that needs the whole class body, which the crate structurally cannot supply.
-
-The ledger, stated in full rather than in the direction that flatters the PR:
-
-- **Worse.** The declared base no longer matches, and `TextContent.text` is required (`pipelex/core/stuffs/text_content.py:17`), so `Projected.model_validate({"title": …})` now *fails* where the old shell absorbed the payload into `extra`.
-- **Better.** The old projected `X(StructuredContent)`, if `structures.py` lands in the library directory, is itself auto-registered and can **win the registry over the author's real class** (`auto_register_all_subclasses` is first-wins, `pipelex/system/registries/class_registry_utils.py:167-170`) — silently substituting an empty shell for a three-field class. The projected `TextContent` subclass is never registered at all, so that hazard is gone.
-- **Unchanged.** The interpreted library. Nothing in the runtime consumes the projected class, so "the projection silently changes object content into text content" overstates the blast radius.
-
-Net: the PR **moves an already-divergent case from "right base, empty body" to "wrong base, empty body"**, and removes a collision hazard on the way. It does not introduce the divergence.
-
-## Why it is not fixed here
-
-Three candidates, none a clear win:
-
-1. **Revert 1.2 to `StructuredContent`.** Re-breaks the common case — every description-only concept with no hand-written class, which is the majority everywhere and the entirety of the cookbook — and reinstates the registry-clobber hazard. Strictly worse.
-2. **Teach the crate the auto-detected class.** The crate builder would have to consult the live class registry — `get_class_registry()` returns the active library's ContextVar-scoped registry when one is set and the process-global one otherwise — making the crate *and its fingerprint* depend on what happened to be importable in the emitting process. (The scoping isolates concurrent runs from each other; it does nothing to make the registry's *contents* reproducible, which is the property at stake here.) That destroys the two properties the crate exists for: portability (it travels to a sandbox as `python_sources`) and a semantic fingerprint the stamp/lock trust chain rests on. A contract break, not a layering nit.
-3. **Drop the bare-name auto-detect at `concept_factory.py:389`, requiring the explicit `structure = "<ClassName>"` form.** This is the *actually correct* resolution: it makes the runtime's binding crate-visible, collapses the case into the already-handled `opaque_python_class` branch, and removes an environment-dependent name binding. Breaking changes are fine in this repo. But it is a language/runtime decision that contradicts a published migration guide and touches many fixtures — far outside "small and obviously correct", and outside this PR's scope.
-
-## What settling it will need
-
-- A ruling on (3): should a hand-written class have to be *named* in the `.mthds` to bind, or should a bare-name match keep working? Same family of question as D-1's `domain_hint` — a language call, not a codegen one.
-- Either way, `docs/building-methods/concepts/python-classes.md:218-221` currently teaches the form that is invisible to codegen. That doc/feature tension needs resolving whichever way the ruling goes.
-- **No test covers this shape today**, for either reader. `test_projection_agrees_with_runtime_base.py` builds its four shapes against an *empty* library, so `concept_factory.py:389` is never taken. Whoever settles this should add the missing coverage as part of it — the branch that binds a concept to a registered class is currently unguarded on both sides.
diff --git a/wip/pinned-natives-version/deferred-review-findings.md b/wip/pinned-natives-version/deferred-review-findings.md
deleted file mode 100644
index 54beb1ff7..000000000
--- a/wip/pinned-natives-version/deferred-review-findings.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-status: active
-item: L-260917-87199b
----
-
-# Deferred review findings — the pinned-natives version constant
-
-Two findings from the round-2 `/rev` pass on `fix/Dead-natives-version-constant` (profile 2, bar `defects`) that were real but not defects that matter at that bar. Both are unverified: no verifier was paid for them, because the bar would have deferred them whatever a verifier said.
-
-## The page-version reader matches "pinned at MTHDS" too loosely (unverified)
-
-`tests/unit/pipelex/core/concepts/test_pinned_natives_vs_standard.py`, in `read_spec_pinned_version`.
-
-The regex is `[Pp]inned at MTHDS\s+`?(\d+\.\d+\.\d+)`?`, collected over the whole page, with every match required to agree. Today the standard's `native-concepts.md` has exactly two matches and both say `2.0.0`, so the reader is correct and the unanimity check is what makes a half-done re-pinning on the page a failure rather than a coin toss.
-
-The claim is that `[Pp]inned` also matches inside `re-pinned`, `un-pinned` and `previously pinned`, so a page that one day writes "previously pinned at MTHDS `2.0.0`" beside a new "Pinned at MTHDS `3.0.0`" would fail the unanimity assertion with a message saying the page states more than one pinned version — a red that is neither a pipelex bug nor the drift the assertion exists to diagnose. Because this module reads the sibling checkout deliberately unpinned, such a red can land on an unrelated pull request.
-
-Nothing on the page has that shape today, so this is a robustness question about wordings the standard has not used. If it is ever worth narrowing, anchoring to the heading spelling alone — the `## The Pinned Set — Pinned at MTHDS <version>` line — is the change, and it trades the prose/heading cross-check away for it.
-
-## The changelog entry narrates its own test coverage (unverified)
-
-`CHANGELOG.md`, the `## [Unreleased]` entry for this constant.
-
-`.claude/rules/changelog.md` asks an entry to say the change a consumer can see and to leave out test rewrites. The entry's second half describes the two readers the change adds. The counter-argument, and why it was left alone: "has no reader" is half of what the ledger item reported as the bug, so the readers are the fix rather than tests incidental to it. The entry is within the rule's one-to-three-sentence bound either way. Worth a second look when the release entry is cut, where a shorter form may read better beside its neighbours.
diff --git a/wip/pipe-compose-whole-stuff-fix.md b/wip/pipe-compose-whole-stuff-fix.md
deleted file mode 100644
index a37c94951..000000000
--- a/wip/pipe-compose-whole-stuff-fix.md
+++ /dev/null
@@ -1,117 +0,0 @@
-# PipeCompose construct: whole-stuff → native-field conversion fixes (archived plan)
-
-**Status: COMPLETE — all phases done. Phases 1+2+3: fix landed and verified (PR #1051 merged to `dev`, shipped in release v0.39.2). Phase 4 cross-repo follow-ups executed 2026-07-18. Archived from the repo-root `TODOS.md` tracker on completion. Related: [pr-1051-review-notes.md](pr-1051-review-notes.md) (deferred hardening notes from the PR's bot-review triage).**
-
-## Cold-start state (as of Checkpoint 2, 2026-07-17)
-
-- **Branch:** `fix/PipeCompose-bug` (off `dev`-lineage tip `e660283bf`), committed and PR'd to `dev` at Checkpoint 2.
-- **The change** (all verified green together — `make agent-check` clean, full `make agent-test` passed):
- - Modified: `pipelex/pipe_operators/compose/structured_content_composer.py` (the whole fix: `_extract_native_scalar` matrix + `NATIVE_SCALAR_TARGET_TYPES` + `NativeScalarExtraction` NamedTuple at module top; Optional unwrap in `_get_field_expected_type`/`_get_nested_field_class`; `_convert_list_items_as_scalars`; loud `_validate_item_compatibility`)
- - Modified: `subject_grants.toml` (grant for `unwrap_optional`'s positional `annotation` param — do not let `make fko` demote it)
- - Modified (test support): `tests/integration/pipelex/pipes/operator/pipe_compose_structured/{compose_structured_models.mthds,models_for_pipe_compose.py,test_data.py}` (new holder concepts/models/constructs for native-scalar cases)
- - New: `pipelex/tools/typing/annotation_utils.py` (`unwrap_optional`)
- - New tests: `tests/e2e/test_pipe_compose_whole_stuff_mthds.py` + `tests/e2e/fixtures/compose_whole_stuff/`, `tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_native_scalar_conversions.py`, `tests/unit/pipelex/tools/test_annotation_utils.py`
- - Docs (Phase 3): `docs/building-methods/pipes/pipe-operators/PipeCompose.md` gained a "Copying Whole Inputs Into Native Fields" section (conversion matrix + worked example with optional fields); `CHANGELOG.md` `[Unreleased]` gained the Fixed entry; docs sweep found no other page describing construct `from` semantics, and the `StructuredContentComposerTypeError` error page is generated boilerplate with no raising-condition prose — nothing else to align.
- - New: this `TODOS.md`
-- **Resume with:** Phase 4 below — ONLY after a pipelex release ships the fix.
-- **Quick re-verify:** the e2e command in "Red test" below (expect all tests passing), or the targeted suites in Phase 2's checklist.
-
-## The problem in one paragraph
-
-A user designing a method with `/pipelex-design` used PipeCompose construct mode to copy whole native stuffs into native-typed fields of a structured output — `rejection_email = { from = "email" }` where `email` is a whole `Text` stuff, and `interview_questions = { from = "questions" }` where `questions` is a whole `Text[5]` stuff. Structural validation accepted it; the dry-run runnable gate rejected it because the composed field received the content wrapper object (`TextContent`, `ListContent[...]`) instead of the native value (`str`, `list[str]`). The user's usage was correct: the PipeCompose reference (`docs/building-methods/pipes/pipe-operators/PipeCompose.md`, "Copy value from input variable or nested field") and the composer's own design (`_resolve_from_var` docstring: "TextContent -> str: extract .text", "ListContent -> list[X]: extract items") both promise exactly this conversion. The implementation has gaps. **Verdict: fix pipelex, do not change the language or warn users off the pattern.**
-
-Full analysis with the user's original bundle and reasoning lives in an internal demos repo, alongside a runnable repro. Note: that write-up's §5/§8 conclude "whole-stuff `from` hands over the wrapper **by design**" — that is a misdiagnosis of these bugs as a language rule; this plan is the correction.
-
-## Diagnosis — three gaps, all in `pipelex/pipe_operators/compose/structured_content_composer.py`
-
-All verified empirically against the dev tree (v0.39.1 era, branch `dev`):
-
-1. **`Optional[...]` target fields are never converted.** Non-required structure fields generate `Optional[X]` annotations (`pipelex/core/concepts/structure_generation/generator.py:302-304`). `_get_field_expected_type` (`structured_content_composer.py:377`) returns the raw union annotation, and every `_expects_*` helper returns False on it (`issubclass(Optional[str], str)` raises TypeError → False at `:392-408`; `get_origin(Optional[List[str]])` is `Union`, not `list`, at `:474-484`), so `_convert_for_target_type` falls into its "unknown target type, return as-is" fallback and pydantic then rejects the wrapper. **Proof of oversight, not decision:** the NESTED path already unwraps Optional in `_get_nested_field_class` (`:704-717`); the FROM_VAR path never got the same treatment. And flipping the field to `required = true` makes the same whole-Text copy convert cleanly to `str`.
-2. **List items that are native scalars are not extracted.** Even with a required `list`/`item_type = "text"` target (`List[str]`), `_convert_list_items_as_dicts` (`:501`) dumps each `TextContent` item as a dict `{"text": "..."}` via `model_dump` instead of extracting `.text` → `questions.N: string_type` pydantic errors. Related: `_validate_item_compatibility` (`:555`) silently no-ops when the expected item type has no `model_validate` (e.g. `str`), so the mismatch surfaces as a confusing downstream pydantic error rather than a clear conversion error.
-3. **Scalar wrappers other than `TextContent` are not handled at all.** `_convert_for_target_type` (`:298`) special-cases only `TextContent` and `ListContent`. A whole `Number` stuff into a required `number` field fails with `NumberContent (expected float)`. Same family presumably applies to `YesNo` → `boolean` and `Date` → `date` fields.
-
-Reference matrix of what worked vs. broke PRE-FIX (v0.39.1 behavior, from the repro — every ❌ row is green since the fix):
-
-| Construct source | Target field | Pre-fix (v0.39.1) |
-|---|---|---|
-| `{ from = "score.candidate_name" }` (dotted path to scalar leaf) | any matching native | ✅ works (raw Python value, skips conversion) |
-| literal (`is_fit = true`) | matching native | ✅ works |
-| `{ from = "<whole Text stuff>" }` | required `text` | ✅ works (designed conversion fires) |
-| `{ from = "<whole Text stuff>" }` | optional `text` | ❌ gap 1 |
-| `{ from = "<whole Text[] stuff>" }` | required `list`/`item_type="text"` | ❌ gap 2 |
-| `{ from = "<whole Text[] stuff>" }` | optional `list`/`item_type="text"` | ❌ gaps 1+2 (the user's exact case) |
-| `{ from = "<whole Number stuff>" }` | required `number` | ❌ gap 3 |
-
-## Red test (already written, this is the gate)
-
-- `tests/e2e/test_pipe_compose_whole_stuff_mthds.py` — one dry-run test (`validate_bundle` must pass the runnable gate on every pipe) + one parametrized live test (deterministic PipeCompose execution, no inference, asserts composed values AND exact native types).
-- Fixture bundle: `tests/e2e/fixtures/compose_whole_stuff/compose_whole_stuff.mthds` — one holder concept + one compose pipe per row of the matrix above.
-- Pre-fix state (red): `whole_text_to_required_text_field` (control) passed; the dry-run test and the other live cases failed with the wrapper-mismatch errors quoted in the diagnosis. All green since Phase 1 landed.
-- Run it: `.venv/bin/pytest -n auto -m "(dry_runnable or not (inference or llm or img_gen or extract or search)) and not pipelex_api" -o log_level=WARNING --tb=short -q tests/e2e/test_pipe_compose_whole_stuff_mthds.py`
-
-## Fix design
-
-All changes in `pipelex/pipe_operators/compose/structured_content_composer.py` (+ possibly a small typing util):
-
-- **Optional unwrap (gap 1):** add a helper that unwraps `Optional[X]`/`X | None` to `X` when there is exactly one non-`None` arm (handle both `typing.Union` and `types.UnionType` origins — mirror the logic already in `_get_nested_field_class:704-717`). Apply it in `_get_field_expected_type`, and refactor `_get_nested_field_class` to use the same helper. Candidate home if made reusable: `pipelex/tools/typing/`.
-- **Scalar wrapper matrix (gap 3):** extend `_convert_for_target_type` so each native scalar wrapper converts to its native target: `NumberContent.number` → `float`/`int`, `YesNoContent.yes_no` → `bool`, and (decision D1) `DateContent` → `date`. Keep the existing "target expects the wrapper class → keep object" behavior symmetrical for each (like `_convert_text_content` does for `TextContent`).
-- **List item scalar extraction (gap 2):** in the `list[X]` target path, when the expected item type is a native scalar (`str`/`float`/`int`/`bool`/`date`), extract the scalar from each item wrapper using the same per-wrapper conversion as above, instead of `model_dump`. Keep dict-dumping for structured item types (that path is correct and tested).
-- **Loud failure for unconvertible items:** make `_validate_item_compatibility` raise `StructuredContentComposerTypeError` when the expected item type is not a model and no scalar extraction applies, instead of silently passing the item through to a cryptic pydantic error.
-- Dotted-path resolution (`_resolve_dotted_path`) already funnels StuffContent leaves through `_convert_for_target_type`, so gaps 1 and 3 fixes benefit it automatically; raw leaves are untouched.
-
-### Decisions to arbitrate (ask Louis if unsure)
-
-- **D1 — matrix scope:** `Text` + `Number` + `YesNo` are clearly in. Is `DateContent` → `date` in scope now (`DateContent` carries `date` + optional `time`; target `date` fields would take `.date`)? Recommendation: include `Date`, skip `Time`/`datetime` until a use case shows up.
-- **D2 — true multi-arm unions** (e.g. a field typed `str | int`): recommendation: unwrap ONLY the Optional shape (single non-None arm); leave genuine unions on the current as-is fallback and revisit on demand.
-- **D3 — static (pre-dry-run) detection:** a structurally impossible construct source (e.g. whole `Image` stuff → `text` field) could be caught at blueprint validation instead of dry-run. Out of scope here; if judged worthwhile, record as a deferred follow-up in `wip/` per the deferred-items convention.
-
-### Rulings taken (Checkpoint 1)
-
-- **D1 ruling:** followed the recommendation — matrix is `TextContent → str`, `NumberContent → float/int` (never `bool`, an `int` subclass), `YesNoContent → bool`, `DateContent → date` (exact `date` target only, never `datetime`, a `date` subclass). `Time`/`datetime` targets deferred until a use case shows up.
-- **D2 ruling:** followed the recommendation — `unwrap_optional` unwraps ONLY the single-non-None-arm shape (both `Optional[X]` and `X | None` origins); genuine multi-arm unions are returned unchanged. Side effect: `_get_nested_field_class` previously picked the *first* non-None arm of a multi-arm union arbitrarily; it now leaves such unions untouched (same as the FROM_VAR path).
-- **D3:** untouched, remains a candidate deferred follow-up.
-
-### Deviations from the fix design (Checkpoint 1)
-
-- Instead of one `_convert_*_content` method per wrapper, a single `_extract_native_scalar` conversion-matrix helper runs first in `_convert_for_target_type` (shared by the field path and the list-item path); wrapper → wrapper-class targets keep flowing through the generic `_convert_content_for_field` path, so the "target expects the wrapper class → keep object" symmetry is preserved for every wrapper. `_convert_text_content`'s str-extraction branch moved into that shared helper.
-- `_validate_item_compatibility` raises only when the expected item type is a **native scalar** (str/float/int/bool/date), not for every non-model type: non-model item types such as `dict[...]` legitimately validate from the `model_dump` output, so a blanket raise would have regressed them. The list[native-scalar] path normally diverts to `_convert_list_items_as_scalars` (which raises its own clear error) before reaching that guard.
-- The unwrap helper landed as `pipelex/tools/typing/annotation_utils.py::unwrap_optional` (subject grant recorded for the positional `annotation` param), unit-tested in `tests/unit/pipelex/tools/test_annotation_utils.py` (flat dir, matching the existing tools test layout).
-- Perimeter tests went into a new sibling module `test_pipe_compose_native_scalar_conversions.py` (1 TestClass per module rule) rather than extending `test_pipe_compose_content_conversions.py`; coverage includes a falsy `YesNoContent(yes_no=False) → bool` case and `DateContent → date`.
-
-## Checklist
-
-### Phase 1 — core fix (red → green)
-
-- [x] Diagnose the failure and validate the three gaps empirically (scratchpad repros: required-vs-optional discriminator, required-list failure, Number failure)
-- [x] Red e2e test: fixture bundle + test module (see "Red test" above), verified red, `make agent-check` green
-- [x] Optional-unwrap helper + use it in `_get_field_expected_type` and `_get_nested_field_class`
-- [x] Scalar wrapper conversion matrix in `_convert_for_target_type` (D1 scope)
-- [x] List-item native-scalar extraction in the `list[X]` path
-- [x] `_validate_item_compatibility` raises clearly on unconvertible item types
-- [x] Red e2e module fully green (dry-run + all live cases)
-
-### Phase 2 — perimeter tests
-
-- [x] Sibling module `test_pipe_compose_native_scalar_conversions.py` with: TextContent → `Optional[str]` field, ListContent → `Optional[list[str]]` field, ListContent[TextContent] → `list[str]`, NumberContent → `float`, YesNo (falsy) → `bool`, Date → `date`, using registered Python models with Optional annotations
-- [x] Unwrap helper unit-tested (`tests/unit/pipelex/tools/test_annotation_utils.py`)
-- [x] `make agent-check` green
-- [x] Targeted suites green: `tests/unit/pipelex/pipe_operators/ tests/integration/pipelex/pipes/` + the e2e module
-- [x] Full `make agent-test` green
-
-**CHECKPOINT 1 — fix landed and verified.** Update this file: check off the boxes, note any deviation from the fix design, record D1/D2 rulings. Good handoff point before docs.
-
-### Phase 3 — docs + changelog (this repo)
-
-- [x] `docs/building-methods/pipes/pipe-operators/PipeCompose.md`: document the whole-stuff copy in construct mode — worked example copying a whole `Text` and a whole `Text[]` input into native fields, including an optional field; state the conversion matrix (wrapper → native target, wrapper → wrapper target)
-- [x] `CHANGELOG.md` `[Unreleased]` → Fixed: PipeCompose construct `{ from = "..." }` now converts whole native stuffs into optional native fields, native-scalar list items, and non-Text scalar wrappers (Number/YesNo/…)
-- [x] Grep `docs/` for other PipeCompose construct mentions that describe or constrain `from` semantics; align them (no other page describes construct `from`; error pages are generated boilerplate — nothing to change)
-
-**CHECKPOINT 2 — ✅ CLOSED.** Committed, gates passed, PR #1051 merged to `dev`; the fix shipped in release v0.39.2.
-
-### Phase 4 — cross-repo follow-ups (de-gated by v0.39.2)
-
-- [x] `pipelex-plugins/skills/pipelex-design/references/writing-mthds.md` (source of truth; per-target copies under `pipelex-plugins/{pipelex,pipelex-vibe,pipelex-codex}/skills/...`): added a worked whole-stuff copy example (ScreeningReport, mirroring the PipeCompose.md docs example) to the PipeCompose construct section; `make build` propagated to all target copies; no warning added
-- [x] `mthds-plugins/templates/skills/shared/mthds-reference.md.j2` (the generated per-target copies come from this template): construct `from` row now reads "Reference a whole input or a nested field" + a note on the whole-native-stuff → native-field automatic conversion; `make build` propagated to all target copies
-- [x] The internal demos write-up: annotated — update banner at top, correction blockquote in §5, update blockquote in §8 with the stale takeaways marked inline; root cause = implementation gaps fixed in pipelex v0.39.2, compose-based design recommended again
-
-**Phase 4 executed 2026-07-18 — TRACK COMPLETE.** Committed per-repo: `pipelex-plugins` 2f97d2d, `mthds-plugins` 4e6288c, plus the internal demos repo.
diff --git a/wip/pipe-refs/README.md b/wip/pipe-refs/README.md
deleted file mode 100644
index 953ffd689..000000000
--- a/wip/pipe-refs/README.md
+++ /dev/null
@@ -1,292 +0,0 @@
-# Bare references resolve across domains; the standard says they must not
-
-**Status (2026-08-11).** Decided: tighten the runtime to the standard, implemented via build-time qualification of in-body references. The design is in [build-time-qualification.md](build-time-qualification.md) and the phased plan in [implementation-plan.md](implementation-plan.md) (archived here from the repo-root `TODOS.md` on 2026-08-17, with the runtime phases done and the release-gated cross-repo tail still open); §7 below was the starting sketch and is superseded by those documents. The evidence in §1–§6 remains the record of why.
-
-**What this is.** A decision brief for the divergence recorded in [`../parity/bare-pipe-ref-spec-divergence.md`](../parity/bare-pipe-ref-spec-divergence.md), which closed with *"the direction of the fix is genuinely open"* and deferred it. This directory re-opens it with measurements instead of priors, and adds two things that note does not contain: the rule turns out to be **load-bearing for `[exports]`**, and the same divergence is **still live for concepts**, one file over from the pipes that were fixed.
-
-**Everything below is reproducible from this checkout.** Two probe scripts and a demo generator live in [`probes/`](probes/); every number and every quoted error in this document was produced by them against this tree. Nothing here is inferred from reading code alone.
-
-**What is being asked of the reader.** Confirm or refute the claims in §1–§5 (each names the file, the line, and the command), then plan the change sketched in §7. Do not treat §7 as settled — it is a proposal, and §8 lists what would have to be true for it to be right.
-
----
-
-## 1. The rule
-
-The normative text is in the sibling `mthds/` repo (the open standard, published to mthds.ai), not here, so a fresh clone cannot resolve the path. From `mthds/docs/spec/namespace-resolution.md`:
-
-> ## Resolution Order for Bare Pipe References
->
-> 1. **Current bundle** — check pipes declared in the same `.mthds` file.
-> 2. **Same domain, other bundles** — if the bundle is part of a package, check pipes in other bundles that declare the same domain.
-> 3. **Error** — if not found, the reference is invalid.
->
-> Bare pipe references do NOT fall through to other domains or other packages.
-
-The same page states the identical rule for concepts (§ *Resolution Order for Bare Concept References*, with natives taking priority at step 1).
-
-Two other sections of that same page **depend** on this rule. They are quoted in §3, because they are the part of the argument the deferred note does not have.
-
-## 2. What this repository does today
-
-> **HISTORICAL as of the pipe-side fix.** The table below records the state that motivated this work, and it is kept as written rather than rewritten — the argument only makes sense against the disagreement it describes. What changed: the pipe readers now qualify a bare in-body ref to its **owner domain** and the live `PipeLibrary` lookup no longer searches across domains for a bare in-body ref, so the two pipe rows agree with each other *and* with the standard. One search survives on purpose: a cross-package `alias->bare_code` ref is still matched across the aliased dependency's domains — alias-scoped, so it can never reach a host pipe; OQ3 in [build-time-qualification.md](build-time-qualification.md) records why. Bare codes a human types at an entry point keep working through a separate, explicitly-named affordance (`get_optional_entry_pipe`), which searches crate-wide and refuses ambiguity. **The concept rows are still accurate** — the concept-side work is not done. Re-measured outcomes are in §3.
-
-Four readers of one authored fact. They do not agree, and only one of them agrees with the standard.
-
-| Reader | Where | Bare ref behaviour |
-| --- | --- | --- |
-| `PipeLibrary.get_optional_pipe` | `pipelex/libraries/pipe/pipe_library.py` (step 3, since deleted) | Searches **every** domain (`# 3. Bare code fallback — search across domains`); one match wins, several raise `PipeLibraryError` |
-| `_qualify_pipe_ref` | then `crate_normalization.py`, now `crate_qualification.py` | Same crate-wide search, **deliberately** mirrored onto the normalizer so the two readers agree (PR #1085) |
-| `_qualify_concept_ref` | then `crate_normalization.py`, now `crate_qualification.py` | Qualifies as `<owner domain>.<Code>`, no search — **this one matches the standard** |
-| `ConceptLibrary.get_required_concept_from_concept_ref_or_code` | `pipelex/libraries/concept/concept_library.py` | With `search_domain_codes=None`, walks every concept in the library and raises on a collision — the same shape as the pipe fallback |
-
-So: **pipes** agree with each other and disagree with the standard. **Concepts** disagree with each other — the normalizer complies, the live library does not. The pipe fix chose which reader to move; it moved the normalizer *away* from the standard, and it did not touch concepts.
-
-Note also where normalization runs: `normalize_crate` is called from `pipelex/pipeline/resolve_bundle.py:86`, `pipelex/cli/commands/crate_loading.py:43` and `pipelex/cli/commands/build/runner/_runner_core.py:107` — the `resolve` / `codegen` / `build` paths. The ordinary library load that backs `pipelex run` does **not** normalize, so the live `PipeLibrary` really does see bare in-body refs at run time. Any plan that hopes to fix this purely in the normalizer has to deal with that first.
-
-## 3. The rule is a visibility boundary, not a lookup convenience
-
-This is the argument that changes the question, and it is checkable in one run.
-
-The standard exempts bare references from the export check **because** they cannot leave their domain (`mthds/docs/spec/namespace-resolution.md` § *Visibility Rules (Intra-Package)*):
-
-> - **Cross-domain references** (within the same package) — the target pipe MUST be exported. […]
-> - **Bare references** — always allowed at the visibility level (they resolve within the same domain).
-
-The visibility checker implements the exemption literally. `mthds/package/visibility.py:82-84` (the installed `mthds` package, reached from `pipelex/libraries/visibility_utils.py:53`, called at `pipelex/libraries/library_manager.py:847`):
-
-```python
-# Bare ref -> always allowed (no domain check)
-if not pipe_ref.is_qualified:
- return True
-```
-
-Combine that with a resolver that *does* let bare refs leave their domain and you get an **export bypass**: the reference form that skips the check is the one that reaches the other domain. Measured, on this tree:
-
-```sh
-DEMOS=$(./wip/pipe-refs/probes/make-demos.sh | tail -1)
-( cd "$DEMOS/export-bypass" && pipelex resolve . ) # bare `helper`
-( cd "$DEMOS/export-bypass-control" && pipelex resolve . ) # qualified `beta.helper`
-```
-
-One package, one manifest, `beta.helper` deliberately absent from `[exports]`. The two runs differ only in how `alpha.run_flow` spells its step:
-
-| Step written as | Exit | Result |
-| --- | --- | --- |
-| `helper` (bare) | `0` | normalizes to **`"pipe": "beta.helper"`** — the non-exported pipe, reached |
-| `beta.helper` (qualified) | `1` | `Pipe 'beta.helper' referenced in pipe.run_flow.steps[0].pipe (domain 'alpha') is not exported by domain 'beta'. Add it to [exports.beta] pipes in METHODS.toml.` |
-
-`[exports]` is unenforceable through the one reference form that is exempt from checking it. That is not a convenience the corpus happens to rely on; it is a hole, and it exists precisely because the resolver and the visibility checker read the same sentence differently.
-
-The same page's § *Conflict Rules* carries the second casualty:
-
-> | Different domains (same package) | Same concept or pipe code | No conflict — different namespaces. |
-
-Crate-wide resolution converts that blessed no-conflict case into an ambiguity error. Two domains reusing a code — explicitly allowed by the standard — becomes a load failure the moment anything names it bare:
-
-```sh
-( cd "$DEMOS/ambiguous" && pipelex resolve . )
-```
-
-```
-exit=1
-Cannot resolve — the library is invalid:
-Error validating pipe 'run_flow' dependency pipe 'summarize' because of: Ambiguous pipe code
-'summarize' found in domains: ['alpha', 'beta']. Use domain-qualified ref.
-```
-
-Under the standard that bundle loads: `alpha.run_flow` names a bare `summarize`, `alpha` declares one, the search stops there. The error is not "the author was ambiguous" — the author was not; the resolver made them ambiguous by widening the search past the point where the standard stops it.
-
-And the fall-through itself, for completeness:
-
-```sh
-( cd "$DEMOS/fallthrough" && pipelex resolve . ) # exit 0, step normalizes to "beta.present"
-```
-
-Three demos, three rows of the divergence table, all reproducible in about ten seconds.
-
-### Re-measured after the pipe-side fix
-
-Same three closures, same commands, on the fixed tree. Every prediction in this section held:
-
-| Closure | Before | After |
-| --- | --- | --- |
-| `export-bypass` | exit `0`, bare `helper` reached the non-exported `beta.helper` | exit `1` — **the hole is closed**; the bare form no longer reaches another domain, so `[exports]` is enforceable through every reference form |
-| `fallthrough` | exit `0`, step normalized to `beta.present` | exit `1`, naming the ref that was tried and suggesting the qualified spelling |
-| `ambiguous` | exit `1`, `Ambiguous pipe code 'summarize' found in domains: ['alpha', 'beta']` | exit `0`, normalizes to **`alpha.summarize`** — the standard's answer. Two domains reusing a code is a no-conflict case again |
-
-`export-bypass-control` is unchanged (exit `1`, the export error) — as it must be: that arm never depended on the resolver.
-
-Both failures take the same shape; the codes differ because the demos reference different pipes. `fallthrough`'s reads:
-
-```
-Pipe 'alpha.run_flow' references 'alpha.present', which does not exist. A pipe reference
-resolves inside its own domain, so 'present' is looked for in domain 'alpha'. Referencing a pipe in
-another domain requires writing that domain out. 'present' is declared elsewhere in this library —
-did you mean 'beta.present'?
-```
-
-`export-bypass` is the same sentence with its own codes — `'helper'` looked for in `'alpha'`, suggesting `'beta.helper'` — because the message is pieced together from the specific ref that failed rather than being a fixed string. (The wording stays origin-neutral on purpose: after qualification, a bare `present` and an explicitly-written `alpha.present` are indistinguishable.)
-
-The suggestion comes from a crate-wide scan that runs **only** on the failure path. It suggests a spelling to a human; it never resolves a reference. Wiring it into a lookup would restore the bypass this section exists to document.
-
-## 4. The same divergence is still live for concepts — and that reader is separately broken
-
-> **HISTORICAL — closed by Phase 3 (2026-08-13).** The table below measures the `search_domain_codes` machinery this section was written about, which no longer exists: `get_required_concept_from_concept_ref_or_code` was replaced by the entry affordance `get_required_entry_concept(code, search_scope=...)`, taking both defects (2) and (3) with it. The probe was rewritten against the replacement; its re-measured table is at the end of this section. The wording below is preserved as the record of what was wrong.
-
-`probes/concept-lookup-matrix.py` built a two-domain library in memory and asked for a bare code under each shape of `search_domain_codes`. Measured output at the time, verbatim:
-
-| Library | `search_domain_codes` | Result |
-| --- | --- | --- |
-| `alpha.Memo` + `beta.Memo` | `None` | `ConceptLibraryConceptNotFoundError: Multiple concepts found for 'Memo'` |
-| `beta.Memo` only | `None` | resolved **`beta.Memo`** — fall-through, from any domain |
-| `alpha.Memo` + `beta.Memo` | `["alpha", "beta"]` | `ConceptLibraryConceptNotFoundError: Multiple concepts found for 'Memo'` |
-| `beta.Memo` only | `["alpha", "beta"]` | `ConceptLibraryError: Concept 'alpha.Memo' not found in the library` |
-| `beta.Memo` only | `["beta", "alpha"]` | `ConceptLibraryError: Concept 'alpha.Memo' not found in the library` |
-| `alpha.Memo` + `beta.Memo` | `["alpha"]` | resolved `alpha.Memo` |
-
-Three things fall out of that table, and the last two are defects nobody has filed:
-
-1. **Rows 1–2 are the pipe divergence, verbatim, for concepts.** Fall-through where the standard errors; an ambiguity raise where the standard quietly succeeds. Meanwhile `_qualify_concept_ref` in the normalizer answers the *same authored text* the standard's way — confirm with `( cd "$DEMOS/concept-collision" && pipelex resolve . )`, which qualifies `alpha`'s bare `Note` to `alpha.Note` and `beta`'s to `beta.Note` and exits 0. Two readers, one fact, disagreeing — the exact defect class the parity track exists to remove, still open one file over from where it was closed for pipes.
-
-2. **Rows 4–5: a multi-domain search list cannot survive a domain that lacks the code.** The `search_domain_codes` loop in `ConceptLibrary.get_required_concept_from_concept_ref_or_code` calls `get_required_concept`, which *raises* rather than returning `None`, so the walrus `if found_concept := …` never sees a falsy value — the first miss escapes the method. Worse, it escapes as `ConceptLibraryError`, and `ConceptLibraryError` is **not** a subclass of the `ConceptLibraryConceptNotFoundError` that every caller in `pipelex/core/stuffs/stuff_factory.py` catches (`pipelex/libraries/concept/exceptions.py` extends `LibraryLoadingError`; `pipelex/core/concepts/exceptions.py` extends `PipelexError` — sibling branches). So the error bypasses the handler that exists to contextualize it.
-
-3. **Row 3 makes the deliberate ordering in `pipeline_run_setup` — the `search_domain_codes.insert(0, pipe.domain_code)` — dead code.** That insert puts the running pipe's domain at position `0` so it wins; the loop then collects *all* matches and raises on `len > 1` before `found_concepts[0]` is ever returned. The own-domain preference it was written to express cannot fire.
-
-**How live is (2) and (3)?** Latent, not live, today: the `pipeline_run_setup` insert produces a single-element list, and no production call site passes a longer one (`grep -rn "search_domain_codes=\[" pipelex tests` finds only test call sites). That is worth stating plainly rather than dressing up — but it also means the multi-domain list is unusable the moment anyone reaches for it, and the standard's rule is exactly what makes the whole `search_domain_codes` parameter unnecessary.
-
-**One thing to confirm rather than assume:** `search_domain_codes` is fixed once from the *entry* pipe's domain and carried on the runner (the `search_domain_codes` constructor field in `pipelex/pipeline/runner.py` and its pass-through into the pipe job). Whether a sub-pipe in another domain can reach a concept-shaping path with the entry domain in hand — and therefore fail to resolve its own bare concept ref — was not established here. It is a good first question for whoever picks this up. *(Answered during the design phase: it cannot — sub-pipe concept refs are qualified or rejected at build, so the defects were latent, entry-only. See the design doc's "The concept side".)*
-
-**Re-measured after Phase 3 (2026-08-13).** The lookup is now `get_required_entry_concept(code, search_scope=...)`, where the scope is derived from the resolved entry pipe (its domain, `alias->domain` when the entry pipe came from a dependency package) instead of being a caller-supplied list. Same probe, same library shapes:
-
-| Library | `search_scope` | Result |
-| --- | --- | --- |
-| `alpha.Memo` + `beta.Memo` | `None` | `ConceptLibraryConceptNotFoundError: Concept code 'Memo' is ambiguous — it is declared by ['alpha.Memo', 'beta.Memo']. Name one of them explicitly.` |
-| `beta.Memo` only | `None` | resolved `beta.Memo` — unique crate-wide match |
-| `alpha.Memo` + `beta.Memo` | `alpha` | resolved **`alpha.Memo`** — the entry pipe's own domain wins (row 3's dead preference, now live) |
-| `beta.Memo` only | `alpha` | resolved `beta.Memo` — a scope lacking the code falls back instead of dying on the miss |
-| `beta.Memo` only | `beta` | resolved `beta.Memo` |
-| empty library | `alpha` | `ConceptLibraryConceptNotFoundError: Concept 'Memo' not found in the library. …` |
-
-Every escape is `ConceptLibraryConceptNotFoundError` — the class the `stuff_factory` handlers actually catch — so defect (2)'s wrong-exception-class bypass is structurally gone, and the walk cannot die mid-scan because there is no scan-per-domain walk left. Note this is the **entry** affordance: a hand-supplied code deliberately still searches crate-wide (excluding aliased dependency entries) when the scope misses, because a human pointing at a concept is not an in-body reference. In-body concept refs were already owner-domain-qualified at build time before this branch.
-
-## 5. The corpus — which direction is actually expensive
-
-> **Superseded and widened (2026-08-11).** The scan below passes a hardcoded list of ten sibling repos, which turns out to reach under a fifth of the bundles outside this repo. Enumerating the workspace instead multiplies the corpus several times over and finds a **second** breaking reference, in `cocode` — a shipped CLI, not a samples directory. The numbers in this section remain accurate *for the roots it scanned*; read [corpus-measurement.md](corpus-measurement.md) for the current figures, what inflates them, and the reproduction command.
-
-The deferred note's decisive reason was migration cost: *"Every `.mthds` in the wild that leans on cross-domain bare resolution stops loading."* That is the claim the probe was written to check.
-
-`probes/classify-bare-refs.py` reads TOML and nothing else — no `pipelex` import, no library load — so it classifies what the corpus **asks for**, independent of what any resolver does with it. For each merge unit it builds `code -> {domains that declare it}` and sorts every bare in-body reference into four buckets.
-
-```sh
-python wip/pipe-refs/probes/classify-bare-refs.py .
-python wip/pipe-refs/probes/classify-bare-refs.py \
- ../pipelex-cookbook ../pipelex-starter-python ../mthds ../pipelex-api ../mthds-js
-# …plus the rest of the workspace's .mthds trees as extra roots (the probe takes roots
-# as argv). Several of those repos are not open core, so the full root list lives in the
-# workspace-level private notes.
-```
-
-| | this repo | every other `.mthds` tree in the workspace |
-| --- | --- | --- |
-| bundles read | 124 | 90 |
-| merge units | 57 | 36 |
-| **bare in-body pipe refs** | **142** | **158** |
-| `own-only` — the referring domain declares it, nobody else. Standard and runtime agree | 136 | 153 |
-| `sibling-only` — ONLY another domain declares it. Standard: error. Runtime: resolves | **0** | **1** |
-| `both` — the referring domain *and* another declare it. Standard: the own one. Runtime: **raises** | 6 | 1 |
-| `nowhere` — nobody declares it. Both error | 0 | 3 |
-| **bare in-body concept refs** | **283** | **367** |
-| `own-only` | 255 | 341 |
-| `sibling-only` | **0** | **0** |
-| `both` | 27 | 22 |
-| `nowhere` | 1 | 4 |
-
-**One bare pipe reference out of 300 leans on cross-domain resolution**, and it is `pipelex-cookbook/examples/wip/advisory_board/bundle.mthds` — `advisory_orchestrator.master_advisory_orchestrator` naming a bare `present_as_markdown` that only the `presentation` domain declares. It is fixed by writing `presentation.present_as_markdown`. **Zero** bare *concept* references lean on it, anywhere. Widening the scan to every `.mthds` tree in the workspace finds a second breaking pipe reference, in `cocode` — a shipped CLI; see [corpus-measurement.md](corpus-measurement.md).
-
-That is the entire migration cost of tightening, across every `.mthds` either repo can see. The cost argument that carried the deferral does not survive contact with the corpus.
-
-**What this measurement does not cover — read before quoting it.**
-
-- **A directory is not always a merge unit.** The probe treats a package (a tree with `METHODS.toml`) as one unit and otherwise groups by containing directory, which is how a `-L <dir>` load behaves. Test-fixture directories whose bundles are loaded *one at a time* are therefore over-grouped: most of the `both` rows are fixture pairs that never actually meet in one library, so the `both` column is an upper bound on "would start working", not a count of live breakage. **The `sibling-only` figure is the robust one.** Grouping is not monotone in general — a coarser unit can promote a `nowhere` ref into `sibling-only` — but every `nowhere` ref in the corpus is a *deliberately invalid* fixture (`missing_pipe_ref.do_two_steps -> 'second_step_missing'`, in three copies; the probe prints them), so none of them can become a real cross-domain reference under any grouping. One is one.
-- **In-body references only.** `main_pipe` and `[exports]` entries are not classified.
-- **Bare concept refs exclude natives**, which take priority by the standard's own step 1.
-- **Customer bundles are out of reach by construction.** But "one in 300, in an `examples/wip/` directory" is a very different prior from "every `.mthds` in the wild".
-- **Do not materialize the demos inside this tree.** `make-demos.sh` writes to a `mktemp` directory by default for exactly this reason — the demo bundles are pathological, and dropping them into the repo would move the counts above.
-
-## 6. Answering the deferral's three reasons
-
-> **1. It is a behavior change to the language, not to a reader.**
-
-True, and the measurement is what sizes it: two references across every `.mthds` tree in the workspace — one in a cookbook `examples/wip/` bundle, one in `cocode`, a shipped CLI ([corpus-measurement.md](corpus-measurement.md)). Worth adding that the *current* state is also a behaviour change to the language — an undeclared one, made by a resolver rather than by a spec edit, which took away two guarantees (§3) the standard still advertises.
-
-> **2. It is cross-repo.**
-
-True, and it stays cross-repo whichever way it settles. That is an argument about how to land it, not about which way.
-
-> **3. The direction of the fix is genuinely open […] cross-domain bare resolution inside a single crate is convenient and has evidently been relied on.**
-
-"Evidently been relied on" is the assumption the numbers contradict: two references in the entire workspace, each fixed by one qualified spelling. And loosening the standard is not a one-line edit either — it means deleting the bare-reference exemption from § *Visibility Rules*, rewriting the § *Conflict Rules* row for different domains in one package, and answering what `[exports]` is for once bare refs route around it (§3). Of the three positions in play — the standard, this runtime's pipe readers, this runtime's concept readers — the standard is the only one that is internally consistent today.
-
-## 7. Proposed shape of the fix
-
-A proposal, not a decision. The deferred note's closing rule — *"Do not fix one reader and not the other"* — is right and extends one step further than it was applied: not one reader and not the other, and **not pipes and not concepts**.
-
-**In this repository:**
-
-- `PipeLibrary.get_optional_pipe` takes the caller's domain and stops at it: own bundle → own domain → not found. The permissive crate-wide search is arguably still right for *entry-point* lookups (a user typing `pipelex run my_pipe` with no domain in hand); if so, keep it there and make it an explicit, separately-named affordance rather than the resolution rule for in-body references. **Deciding that split is the first design question.**
-- `ConceptLibrary.get_required_concept_from_concept_ref_or_code` does the same, which also deletes the `search_domain_codes` machinery's reason to exist and takes the two defects in §4 with it.
-- `_qualify_pipe_ref` in `crate_normalization.py` reverts to owner-domain qualification — becoming the twin of `_qualify_concept_ref` sitting beside it — so the two readers agree by moving the one that is wrong about the standard, rather than the one that is right.
-- **The real work is the call sites** (`grep -rn "get_optional_pipe\|get_required_pipe(" pipelex | grep -v "def get_"`), which today pass a bare code with no domain. Most are inside a `Pipe*` instance and so already hold `self.domain_code` (`PipeAbstract.domain_code`), but the `interpreter_hub` lookup accessors are the funnel and their signature has to change. Scope this before committing to the change.
-
-**Tests that pin today's behaviour and must flip** (they are correct tests of the current rule; they become tests of the new one):
-
-- `tests/unit/pipelex/libraries/test_crate_normalization.py::test_bare_cross_domain_pipe_refs_resolve_to_the_declaring_domain` — its docstring states the fall-through as the intended contract.
-- `tests/unit/pipelex/libraries/test_pipe_library_lookup.py::test_bare_code_ambiguous_raises` and `::test_bare_code_unambiguous` — same, for the library.
-- `pipelex/pipeline/fixes/fix_loop.py:401` carries a comment describing the ambiguity raise as a fact about the library; check whether the surrounding logic depends on it.
-
-**Outside this repository** (each is somebody else's merge, so land them in a coordinated set):
-
-- `mthds/` — **no normative change**. One additive clarification is worth making, because this round is evidence it is needed: say at § *Resolution Order for Bare Pipe References* that no-fall-through is what makes `[exports]` enforceable, so the next reader does not take it for a lookup convenience.
-- our cross-repo spec suite — the four rows of §5's table as executable cases (own-only resolves; sibling-only errors; both resolves to the referring domain's own; nowhere errors), plus the export-bypass case from §3, which is the one nobody would think to write without the visibility argument.
-- `pipelex-cookbook` — qualify one reference in `examples/wip/advisory_board/bundle.mthds`.
-- `cocode` — qualify one reference in `cocode/pipelines/swe_diff/changelog_enhanced.mthds`: write `changelog.format_changelog_as_markdown`.
-
-## 8. What to verify before building
-
-The claims above are measured, but a plan should not rest on someone else's measurements. Re-run them — `probes/` is two scripts and a shell generator, and the whole set takes under a minute — and settle these before writing code:
-
-1. **Does the export bypass reproduce?** It is the load-bearing claim. If it does not, §3 collapses and the question really is open.
-2. **Is the entry-point lookup genuinely a different concern from in-body resolution?** If yes, the fix is two functions rather than one, and the corpus numbers in §5 (which count *in-body* references only) are the right ones to reason from. If no, `pipelex run <bare code>` gets stricter and that is a UX change worth naming.
-3. **Can a sub-pipe in a non-entry domain reach a concept-shaping path?** (§4, last paragraph.) It decides whether the concept side has a live bug or only a latent one.
-4. **What does threading the caller's domain through `interpreter_hub` actually cost?** 63 call sites is a count, not a scope. Some are validation walks, some are hot-path execution; they may not all have a caller domain to offer.
-5. **Are there `.mthds` consumers outside this workspace** — customer bundles, published packages — that the §5 corpus cannot see, and is there any way to sample them?
-
----
-
-## Reproducing everything in this document
-
-```sh
-# corpus classification (§5)
-python wip/pipe-refs/probes/classify-bare-refs.py .
-python wip/pipe-refs/probes/classify-bare-refs.py \
- ../pipelex-cookbook ../pipelex-starter-python ../mthds ../pipelex-api ../mthds-js
-# …plus the rest of the workspace's .mthds trees as extra roots — see the note in §5.
-
-# concept lookup matrix (§4)
-.venv/bin/python wip/pipe-refs/probes/concept-lookup-matrix.py # needs the venv: this probe imports pipelex
-
-# the five demo closures (§3, §4)
-DEMOS=$(./wip/pipe-refs/probes/make-demos.sh | tail -1)
-for case in ambiguous fallthrough export-bypass export-bypass-control concept-collision; do
- printf '\n===== %s =====\n' "$case"
- ( cd "$DEMOS/$case" && pipelex resolve . )
-done
-```
-
-Run these from the repository root with this checkout's environment active, so that `python` and `pipelex` are the ones installed from this tree (`.venv/bin/python`, `.venv/bin/pipelex`) rather than whatever is on `PATH` — the point of every number here is that it describes *this* code. Set `PIPELEX_NO_DECK_NOTICE=1` to silence the model-deck banner; none of these commands needs credentials or reaches an inference backend.
-
-## See also
-
-- [`../parity/bare-pipe-ref-spec-divergence.md`](../parity/bare-pipe-ref-spec-divergence.md) — the deferral this document answers.
-- [`../parity/d1-domain-hint-deferred.md`](../parity/d1-domain-hint-deferred.md) — the narrower `domain_hint` question. Compliance subsumes it: if bare refs never leave their domain, cross-domain ambiguity cannot arise.
-- [`../parity/deferred-review-observations.md`](../parity/deferred-review-observations.md) § 4 — the ordering dependency noted there (settle the resolution rule before writing the spec paragraph) is the reason §7 puts the `mthds/` edit last.
diff --git a/wip/pipe-refs/build-time-qualification.md b/wip/pipe-refs/build-time-qualification.md
deleted file mode 100644
index 841075ae6..000000000
--- a/wip/pipe-refs/build-time-qualification.md
+++ /dev/null
@@ -1,154 +0,0 @@
-# Decided design: in-body references qualify at build time
-
-**Status.** Decided 2026-08-11; Phases 1, 2 and 3 have landed (outcomes recorded below); only the cross-repo Phases 4a/4b remain. This settles the two questions [README.md](README.md) left open: the **direction** — tighten the runtime to the MTHDS standard's resolution rule — and the **mechanism** — qualify in-body references once, at library build time, rather than threading the caller's domain through the lookup API. The README carries the evidence for the direction (the export bypass, the corpus measurement, the concept-side defects); this document records the mechanism, why it won, and the implementation plan.
-
-## The decision in one paragraph
-
-Bare in-body references (pipe steps, branches, outcomes, batch refs, concept I/O refs) are qualified to their **owner domain** when the library is built, exactly as the standard's resolution order prescribes and exactly as `_qualify_concept_ref` in the crate normalizer already does. After the build, the live library only ever sees fully-qualified in-body refs, so lookups are direct key hits and the resolution rule lives in one shared function instead of at every call site. The crate-wide bare search survives only as an explicitly-named **entry-point affordance** for user-supplied codes (`pipelex run my_pipe`, CLI commands, API payloads), which is outside the standard's scope — the standard governs references written in bundles, not what a user may invoke by hand.
-
-## Why build-time qualification won over domain-threading
-
-Three facts, established by reading the code after the README was written:
-
-1. **The ordinary load path already builds a `LibraryCrate`.** The README worried that the run path "does not normalize" and any normalizer-based fix would have to deal with that first. In fact `library_manager` assembles a crate from the parsed blueprints (`LibraryCrateFactory.make_from_blueprints`) on every load path — main, secondary, and dependency loads — and builds each pipe by iterating `crate.pipes`, already asserting the keys are domain-qualified, before calling `PipeFactory.make_from_blueprint` with the owner `domain_code` in hand. What the run path skips is the *normalization pass over that crate*, not the crate itself. The insertion point exists.
-2. **Concepts already follow the spec rule at build time — pipes are the one anomaly.** `PipeFactory.make_from_blueprint` rejects any bare input/output concept ref that is not native or declared in the pipe's own domain, and `StuffSpecFactory` builds the stuff spec against the owner domain. This is why the corpus probe found zero cross-domain bare concept refs anywhere: the build refuses them. Sub-pipe refs are the outlier — `SubPipe.pipe_code` stores the authored string verbatim and resolves it lazily, crate-wide, on every lookup. The change is therefore "make pipe refs do what concept refs already do", not a new architectural layer.
-3. **`get_required_pipe(pipe_code)` is part of the pinned transport boundary.** Its signature is pinned by our cross-repo spec suite's allowed-surface list and it is called with a payload-supplied code by the host-side bridge in the transport layer that is not open core. Threading a caller-domain parameter through the hub accessors changes that pinned signature and drags the boundary spec and its verifying test into the change. Build-time qualification leaves the signature untouched: in-body refs stop needing the fallback because they arrive qualified, and the bridge's call — a payload-supplied code — is an entry-point lookup anyway.
-
-Domain-threading loses on every axis examined: it changes a Protocol, the `interpreter_hub` free functions, and a transport-pinned signature; it keeps authored bare refs live at run time and re-resolves them (with a full library scan) on every lookup; and it distributes the resolution rule across every present and future call site, so the normalizer and the runtime agree by discipline rather than by construction. No scenario was found where threading holds an advantage — the one that would (no crate on the load path, refs needed in authored form at run time) turned out not to exist.
-
-## The design
-
-### One shared qualification pass
-
-Extract the in-body reference qualification step out of `crate_normalization.py` (the application of `_qualify_pipe_ref` / `_qualify_io_ref` inside `_normalize_pipe`, plus the concept-side qualification) into a standalone pass over a `LibraryCrate`, and change the pipe rule from crate-wide search to **owner-domain qualification** — the exact twin of `_qualify_concept_ref` sitting beside it. Both consumers call the same function:
-
-- `normalize_crate` (the `resolve` / `codegen` / `build` paths) — unchanged in shape, now spec-compliant in rule.
-- The library build in `library_manager` — the pass runs on the crate before pipes are constructed, on **all** crate→pipes paths (main load, secondary loads, dependency-package loads).
-
-The normalizer and the live library then cannot disagree about what an authored reference means, structurally rather than by mirrored implementations — the parity track's goal achieved by construction. Note that owner-domain qualification implements the standard's full resolution order on its own: existence is checked afterwards by the ordinary dependency validation, so "bare `foo` from domain `alpha` when only `beta.foo` exists" qualifies to `alpha.foo` and then fails validation with a missing-pipe error, which is exactly the standard's step 3.
-
-Cross-package refs (`alias->…`) are left intact by the pass, as the normalizer already leaves them — canonical cross-package resolution is the packaging project's design work (see the sequencing section).
-
-### The library lookup becomes strict; entry lookups get a named affordance
-
-- `PipeLibrary.get_optional_pipe` drops its step-3 bare-code crate-wide fallback (and with it the `domain_hint` TODO — [d1-domain-hint-deferred](../parity/d1-domain-hint-deferred.md) closes as subsumed). What remains: direct key lookup and the cross-package (`alias->`) handling.
-- The crate-wide unique-match search moves to a separately-named entry affordance on the library (working name `find_pipe_by_bare_code`; final name to be settled at implementation), exposed through a new `interpreter_hub` accessor. Its semantics: exact ref hits directly; a bare code matches crate-wide; ambiguity raises an error that asks the user to qualify. Its docstring states explicitly that it deliberately does **not** consult `[exports]` — a user invoking a pipe by hand is not an in-body reference, so package visibility does not apply.
-- The genuinely entry-shaped call sites migrate to it: the CLI commands (`which`, `show`, `validate`, the `build`/`codegen` groups), `pipeline_run_setup`, the builder operations, and the host-side bridge in the not-open-core transport layer. Everything else — controllers, `sub_pipe`, `signature_walk`, `library` validation — looks up refs that are stored on built objects, which arrive qualified after this change, and needs no edit at all.
-- **Transport boundary:** adding the new hub accessor is an additive change to the pinned surface. Update the transport boundary spec and its verifying allowed-surface test in our cross-repo spec suite in the same change, per the spec/conformance sync rule; exact paths and the current state of that test live in the workspace-level private notes. `get_required_pipe`'s signature does not move.
-
-### The concept side
-
-- `ConceptLibrary.get_required_concept_from_concept_ref_or_code`'s `search_domain_codes` machinery serves only user-supplied codes during run-setup input shaping (`stuff_factory` ← `working_memory_factory` / `input_shaper` / `kernel/memory_ops`) — in-body concept refs never reach it after (indeed, already before) this change. Collapse it into the same entry-affordance shape: prefer the entry pipe's domain, else crate-wide unique match. This deletes the latent defects the README's §4 documents (the multi-domain list dying on the first miss, and escaping as the wrong exception class) and either makes `pipeline_run_setup`'s own-domain-first ordering meaningful or deletes it along with the list parameter.
-- README §8's open question 3 answered itself during this investigation: sub-pipes in non-entry domains cannot hit a bare-concept path at run time, because their concept refs were qualified (or rejected) at build. The defects are confirmed latent, entry-only.
-
-### Consequences inside this repo
-
-- **Perf**: the removed fallback scanned every library entry per bare lookup at execution time; qualified refs are dict hits.
-- **`fix_loop._pipe_codes_by_file`** blocks renames on cross-domain code collisions because the library raises on them; under the spec rule the collision scope shrinks to the domain. Relax it in the same change — it can only over-block today, but it is part of the rule's footprint.
-- **Tests that pin the crate-wide rule flip** (they are correct tests of the old rule; they become tests of the new one): `test_crate_normalization.py::test_bare_cross_domain_pipe_refs_resolve_to_the_declaring_domain`, `test_pipe_library_lookup.py::test_bare_code_ambiguous_raises` and `::test_bare_code_unambiguous`. Tests that construct pipes directly with bare sub-refs (bypassing the crate pass) need their refs qualified once the strict lookup lands.
-- **User-facing surfaces that echo refs** (errors, graphs, `show`) print qualified refs where the author wrote bare — same as the normalized crate already does; arguably clearer.
-- **New conformance-shaped unit coverage** in this repo: the four corpus rows (own-only resolves; sibling-only errors; both-declare resolves to own; nowhere errors) plus the export-bypass closure.
-
-## Deliberate non-goals
-
-- **No full normalization on the load path.** Refinement flattening, native expansion, and string-concept materialization stay crate-only — running them at load would change live library semantics and is not needed for this fix. Only the qualification step is shared.
-- **No cross-package resolution design.** `alias->` refs stay untouched; how a cloned remote package's refs are addressed, folded, and fingerprinted is the packaging project's own question. This change clears the ground so that is the *only* open resolution layer left.
-- **No `mthds/` normative change.** One additive clarification only (see the cross-repo set).
-
-## Why this sequences before the packaging system
-
-The upcoming remote-methods system (GitHub addressing, cloning, version management, integrity checksums) depends on properties the current rule destroys and the spec rule provides:
-
-- **Checksums and lockfiles need a package's meaning to be a function of its content.** Owner-domain qualification makes resolution a local computation — bundle plus its domain — so the publisher's normalized crate and fingerprint equal what any consumer computes, regardless of install context. Crate-wide resolution makes meaning depend on the merge unit: the same file can resolve differently, or stop loading, depending on its neighbors, which is fatal for content-addressed integrity. And once lockfiles pin fingerprints in the wild, changing the canonical form invalidates all of them — settle it first.
-- **Installing a package must never change the meaning of methods already present.** The standard's conflict rule (different domains, same code — no conflict) is what makes composition scale. The current rule inverts it: every added package raises the probability that an unrelated bare ref becomes ambiguous and a working method stops loading, and that failure mode grows with exactly the dimension a catalog is built to grow. After this change, installing a package can affect at most a bare CLI invocation (contained, asks to qualify), never the execution of a loaded method.
-- **`[exports]` becomes the versionable API contract.** Semver-style reasoning about method packages needs an enforceable boundary for "what may a consumer depend on". The measured export bypass means that boundary is currently fiction. Closing it while the migration cost is two references is cheap; closing it after unknown remote consumers lean on fall-through is the ecosystem break the original deferral feared. The cost of tightening is at its all-time minimum and only grows.
-- **Remote execution threads less context.** With lazy bare refs, executing a dependency's pipe correctly needs the caller's domain *and* package carried into every lookup. With refs qualified at load, the domain half is baked into the stored ref; only the package scope remains, which is what `alias->` already expresses.
-
-## Cross-repo set (land as one coordinated change)
-
-- our cross-repo spec suite — executable cases for the four resolution rows and the export-bypass closure (the case nobody would think to write without the visibility argument), plus the additive transport-surface update.
-- `pipelex-cookbook/` — qualify the first reference that leans on fall-through: `presentation.present_as_markdown` in `examples/wip/advisory_board/bundle.mthds`.
-- `cocode/` — qualify the second: `changelog.format_changelog_as_markdown` in `cocode/pipelines/swe_diff/changelog_enhanced.mthds` (a shipped CLI, not a sample — see [corpus-measurement.md](corpus-measurement.md)).
-- `mthds/` — **last**, per the ordering noted in [deferred-review-observations](../parity/deferred-review-observations.md) §4: an additive clarification at § *Resolution Order for Bare Pipe References* saying that no-fall-through is what makes `[exports]` enforceable, so the next reader does not mistake the rule for a lookup convenience.
-
-## Open questions to settle during implementation
-
-1. **Dependency-pipe lookup scoping today. — ANSWERED 2026-08-11, GO.** Measured with [`probes/dep-subpipe-scope.py`](probes/dep-subpipe-scope.py). The execution-time lookup consults the **host** library unconditionally (`sub_pipe.py` → `interpreter_hub.get_required_pipe` → the ambient current library); there is no child-library scoping on that path, and — at measurement time, before Phase 2 — the host's bare-code fall-through explicitly skipped `alias->` entries (Phase 2 has since deleted that fall-through; the host lookup is now strict, so a bare code matches nothing there — same outcome by a different mechanism). So a dependency's own bare sub-pipe ref never reaches the dependency's own pipe: with a plain host the package **fails to load**, and with a host that happens to declare the same bare code it loads and **silently binds the host's pipe**. In the shape a package actually ships — a manifest `[exports]` naming only the entry pipe — it fails earlier and for a second reason: the export filter drops the authored helper from the dependency's own child library, carving out only *synthetic* helpers. That is a pre-existing defect, written up in [dependency-subpipe-scope-deferred.md](dependency-subpipe-scope-deferred.md) and deferred to the packaging project — the fix needs package scope threaded through the lookup **and** export filtering that carries authored helpers, neither of which this change designs.
-
- The go/no-go turns on whether owner-domain qualification makes that worse, and it does not. The qualified ref (`dep_domain.helper`) resolves to `None` in the host exactly as the bare one does, so nothing regresses; the silent host-capture becomes a deterministic not-found naming the scope that should have been searched; and once the lookup is package-scoped, a qualified ref is a direct key hit in the child library, whose own keys are already `dep_domain.helper`. **Proceed.** The Phase 2 item "run the pass on the dependency load path" must not be read as making dependency sub-pipe refs resolve — it cannot, until the lookup is package-scoped.
-
- **Ordering constraint this measurement imposes on Phase 2.** `Library.validate_pipe_library_with_libraries`'s first loop looks up a **bare** sub-pipe code against the child library, whose keys are qualified — so that lookup is served today *only* by the crate-wide fall-through the strict lookup deletes. Running the pass on the dependency load path and deleting the fall-through therefore have to land in the same change; that co-landing is also what makes "`library` validation needs no edit" true.
-2. **Final name and exact semantics of the entry affordance. — ANSWERED 2026-08-11.** A **required/optional pair**, `get_required_entry_pipe` / `get_optional_entry_pipe`, on `PipeLibraryAbstract` + `PipeLibrary` and mirrored as `interpreter_hub` accessors. The pair (rather than one method) is what the migration actually asked for: of the twelve entry-shaped call sites, exactly one — `pipelex which` — wants the optional form and reports the miss itself. The name dropped the working title `find_pipe_by_bare_code` for two reasons: the affordance also accepts fully-qualified refs, so "by bare code" describes only one of its inputs; and the name should carry *why* this lookup differs (it serves an entry point) rather than *how* it searches, since the how is the part most likely to change. The ambiguity message lives in `get_optional_entry_pipe` — the function doing the searching is the only one that knows the candidates.
-3. **Whether `get_optional_pipe` keeps the cross-package bare-remainder search. — ANSWERED 2026-08-11: it keeps it.** The decisive argument is not that it is harmless (though it is — being alias-scoped, it cannot reach a host pipe) but that **there is no migration for the alternative**. The qualification pass deliberately leaves `alias->…` refs alone, because it cannot know a dependency's domain layout; so if the search were deleted, every `alias->bare_code` reference would break with no canonical spelling for its author to move to. Deleting a fall-through is only reasonable when you can tell people what to write instead. Revisit when the packaging design rules on cross-package reference forms — the comment in `get_optional_pipe` says exactly this, so the next reader inherits the reason rather than the conclusion.
-
-## Implementation phases
-
-The executable plan — phases, checkpoints, and per-phase task lists — lives in [implementation-plan.md](implementation-plan.md) and is the plan of record. It was restructured after the engineering review into C0–C4, splitting what this document originally described as one "Phase 1" into a pure-refactor extraction (Phase 1) and the rule flip (Phase 2), so that no checkpoint rests on a tree where the normalizer and the live library disagree. Do not maintain a second phase list here; record **outcomes** below as each checkpoint passes.
-
-### Phase 1 outcome (C1)
-
-**The extraction landed, behavior-identical except for one deliberate change.** The in-body qualification step now lives in `pipelex/libraries/crate_qualification.py` as `qualify_crate(crate) -> QualifiedCrateContent`, and `normalize_crate` consumes it. The rule is unchanged: bare pipe refs still resolve crate-wide.
-
-Equivalence was established by running the committed implementation (loaded from HEAD) beside the working-tree one over the same inputs and comparing the full serialized output, not just the fingerprint:
-
-- every crate buildable from this repo's `.mthds` files — identical, including the crates that raise;
-- ten hand-built crates covering what the repo corpus cannot reach — identical, including all four error paths (ambiguous ref, unresolvable ref, unqualified concept key, unqualified pipe key).
-
-The harness was then mutation-checked, because a comparison that is green on its first run proves nothing. Dropping structure-field qualification turns one case red; applying the Phase 2 owner-domain rule turns three red. Both mutations were reverted and the tree confirmed byte-identical.
-
-**The exception: error precedence between two independent defects.** Qualification now runs as one complete phase ahead of refinement flattening, where HEAD interleaved them (concepts → flatten → pipes). A crate carrying *both* a refinement cycle and an ambiguous bare pipe ref used to report the cycle and now reports the ref.
-
-The differential harness above could not have found this, and it is worth being precise about why: every crate it compares carries at most one defect, so a precedence change between two error paths is invisible to it by construction. The finding came from review. Phase 2 moves considerably more error surface, so its own equivalence checks need at least one multi-defect input.
-
-Accepted rather than fixed. Restoring the old order would mean splitting the pass into a concept half and a pipe half so the normalizer could interleave them — which contradicts "one shared qualification pass" and buys nothing, because Phase 2 runs the pass with no flattening at all. Both errors are `CrateNormalizationError`, the crate is invalid either way, and which of two independent defects is named first is not a contract. It is recorded in `normalize_crate`'s docstring so the next reader meets a decision rather than a surprise.
-
-**The corpus cannot see the Phase 2 flip.** That second mutation *is* the rule Phase 2 installs, and against all 54 crates built from this repo it produces byte-identical output. Every bare in-body pipe ref in this repo already resolves within its own domain. This is exactly the trap the plan's two-domain-fixture item names, now measured: a test grounded in this repo's bundles passes identically under both rules, so the discriminating fixtures must be hand-built and mutation-checked.
-
-**Fingerprint / envelope ruling — the pass does not deal in fingerprints at all.** `qualify_crate` returns a `QualifiedCrateContent` NamedTuple carrying the rewritten `concepts` and `pipes`. It takes a crate and returns content.
-
-The first cut returned a `LibraryCrate` with the envelope carried over verbatim and a paragraph of module docstring explaining why the `fingerprint` it handed back described pre-qualification content. The reasoning was sound as far as it went — a crate does not record which of the two digest schemes produced its value (`compute_fingerprint_from_content` for a merged crate, `compute_normalized_fingerprint` for a normalized one), so the pass cannot recompute correctly and must not guess. But the conclusion was wrong: a return type that needs a paragraph of excuse is the wrong return type. `LibraryCrate.fingerprint` documents itself as "SHA-256 hex digest of the serialized concepts + pipes content", and handing back a crate that violates its own field docstring is a trap for whoever reads it next.
-
-Returning the two mappings makes the contradiction unrepresentable, and it costs the callers nothing — both of them already hold the crate they passed in, so the envelope is right there, and `normalize_crate` constructs a fresh crate anyway. Phase 2's `load_from_crate` keys idempotency on the **incoming** crate's fingerprint, which is what external callers pass to `is_crate_loaded`; nothing downstream ever wanted a fingerprint from the pass. It also dissolves a second issue for free: with no envelope to carry, there is no question of whether `source_map` / `domains` / `python_sources` come back aliased or copied.
-
-The neighbouring bug this originally guarded against is unaffected and still real: `normalize_crate` builds its result field by field and drops `python_sources` (deferred, [normalize-crate-drops-python-sources-deferred.md](normalize-crate-drops-python-sources-deferred.md) — the one-line fix moves customer Python source into a CLI stdout stream and an HTTP response body, which is a disclosure decision, not a typo correction).
-
-**A test-design trap worth carrying into Phase 2.** The pass's own test module was first written around a fixture full of bare refs, asserting the envelope, non-mutation, and idempotency — and every one of those tests passed against a `qualify_crate` replaced by a no-op, because none of them read a ref *out of the result*. The envelope looked right, the input was untouched, and two no-ops compared equal. The rule itself was covered (a no-op reddens fifteen tests in the normalizer suite), so nothing was actually unguarded — but the module that existed to state the pass's contract could not tell the pass from a stub. It now reads a qualified ref back out in every test, and a no-op reddens twelve of fourteen.
-
-The shape of that mistake — a fixture rich enough to look thorough, assertions that never touch the transformed value — is exactly what Phase 2's resolution-row tests are exposed to, on top of the single-domain blindness already noted. Both are only caught by mutating the thing under test.
-
-**Consumer inventory:** [normalized-crate-consumers.md](normalized-crate-consumers.md). The headline is that the plan's worst case does not exist — nothing writes a normalized crate back over a `.mthds` source file. `pipelex fix` rewrites user files but never through a crate, and no fix op writes a pipe ref at all (a property Phase 2 should re-check rather than assume). What does move is the stamped `codegen.lock` fingerprint, on every committed projection.
-
-**Observation for a later phase, not acted on:** `_qualify_io_ref`'s cross-package guard appears unreachable through a constructed blueprint — the io-ref validator rejects `alias->domain.Concept` in `inputs` and `output` outright. The guard is preserved verbatim by this refactor; whether it is genuinely dead is a question for the phase that owns cross-package reference forms.
-
-### Phase 2 outcome (C2)
-
-**The branch's reason to exist, landed.** The pipe rule is now owner-domain qualification, `PipeLibrary.get_optional_pipe` no longer searches, and hand-typed codes go through the entry affordance. OQ2 and OQ3 are answered above.
-
-**The export bypass is closed, and it was measured rather than argued.** Re-running the README's demo closures on the fixed tree: `export-bypass` now fails to resolve where it used to reach a non-exported `beta.helper` by bare code; `fallthrough` fails with the new message; `ambiguous` now resolves to `alpha.summarize` — the standard's own answer — where it used to be a load failure. The re-measured table is in [README.md](README.md) §3, and §2's divergence table is marked historical rather than rewritten.
-
-**What the corpus warning was worth.** Phase 1 measured that this repo's bundles are blind to the flip, and that held: the whole `.mthds` corpus needed no edit. The breakage landed instead in *test fixtures that hand-build pipes*, bypassing the crate pass — 137 failures across 31 files, every one of them a test constructing what the compiler now constructs differently. Worth stating plainly because it is the shape of the change: a rule enforced at build time moves work onto anything that skips the build.
-
-**Two call sites the plan never listed**, both found by running the suite rather than grepping, as the plan itself instructed:
-
-- `validate_bundle.py` resolved a bundle's own `[pipe.<code>]` keys as bare codes. Fixed by qualifying with the bundle's domain — precise, and deliberately *not* routed through the entry affordance: these keys are declarations with a known domain, not something a human pointed at.
-- `dry_run_in_process.best_effort_graph_spec` resolved a caller-supplied graph target. Entry-shaped, now on the affordance. This one is worth remembering: it swallows `PipelexError` and degrades to "no graph" with a warning, so under the strict lookup it would have silently stopped producing graphs rather than failing. A test caught it; nothing else would have.
-
-**A review finding that was directionally right and factually wrong.** The plan carried, from the outside-voice pass, that the batched sub-pipe derivation "produces the invalid code `domain.foo_batch`". The derivation was indeed wrong, but the consequence was not: `PipeAbstract` has a `code` field validator that strips a namespace prefix, so the built ref was correct all along. What the bug actually produced was a `log.warning` on **every** batched run, about a code no user wrote. This matters twice over — the first test written for the fix asserted on the resulting ref, passed against the bug, and had to be rewritten to assert on the warning. **A finding that names a file and a line is still a claim to verify, not a fact to implement.**
-
-**`missing_pipe_code` is now the qualified ref.** A structured field machine consumers branch on, so this is wire-visible and is in the changelog as breaking. It is the right value: the field should name what was tried, not what was typed, or the error describes a lookup nobody performed.
-
-**Mutation-checked.** Restoring the crate-wide search in the pass reddens exactly the discriminating rule tests and both message tests; restoring the deleted fall-through in `get_optional_pipe` reddens the strict-lookup tests; reverting the batch derivation reddens the warning test; putting one CLI command back on the strict lookup reddens the bare-code end-to-end test. Each mutation reddens its own guard and nothing else.
-
-### Phase 3 outcome (C3)
-
-**The concept side landed as an entry affordance, not a lookup parameter.** `ConceptLibrary.get_required_concept_from_concept_ref_or_code` and its `search_domain_codes: list[str]` are gone; the replacement is the pair `get_optional_entry_concept` / `get_required_entry_concept(concept_ref_or_code, *, search_scope: str | None)` — kept deliberately separate from the pipe pair per the share-vs-duplicate ruling, and different from it in exactly the two ways that ruling predicted: natives resolve first (the standard's own step 1), and there is a scope-preference step the pipe side does not have.
-
-**The ambiguity question is settled: raise, naming the candidates — but only after the scope preference has had its chance.** The old own-domain-first `insert(0)` in `pipeline_run_setup` was dead code (README §4 row 3: the walk collected all matches and raised before position 0 could win). The preference is now real and sits *before* the crate-wide scan: the entry pipe's own domain wins outright; only when it lacks the code does the scan run, serving a unique match and refusing an ambiguous one. Every refusal — invalid string, ambiguity, genuine miss — raises `ConceptLibraryConceptNotFoundError`, the class the `stuff_factory` handlers actually catch (funneled through one `_resolve_entry_concept` helper since the post-C3 review round, which also moved the invalid-string escape onto that class), which deletes §4's defect (2) (the wrong-class escape) structurally rather than by patching the walk; defect (3)'s first-miss death is gone because there is no per-domain walk left. The re-measured matrix is in README §4.
-
-**The scope is package-scoped, not just domain-scoped — the concept twin of OQ1, answered the cheap way.** `search_scope` is a single string derived from the resolved entry pipe: its domain, prefixed `alias->domain` when the caller invoked a dependency pipe (`pipeline_run_setup` reads the alias off the caller-supplied ref before it is normalized away). Dependency concepts are keyed `alias->domain.Concept`, so the scoped preference is a direct key construction — no child-library machinery needed. Aliased entries are excluded from the crate-wide scan (an installed package must not make a host code ambiguous), and stay reachable through the scope or an explicit `alias->` ref. The post-C3 review round found the scoped preference alone insufficient for a *multi-domain* dependency — it probed exactly one key while the crate-wide scan excluded the whole package — so the affordance gained the pipe side's alias-scoped package search: when the scoped key misses, the rest of the entry pipe's package is searched before the host crate, `alias->Concept` is that search's explicit spelling, and dotted refs obey the same scope-wins precedence (host-first binding would have been silent on a host/dep domain-name collision, since compatibility short-circuits on equal `concept_ref`). Unlike the pipe-side OQ1 — where package scope has to travel through the whole execution path and is deferred to the packaging project — the concept lookup is entry-only and its one call site holds the alias, so this phase could pay it in full.
-
-**The caller sweep deleted the parameter from the public surface.** `PipelexMTHDSProtocol` (constructor), `pipeline_run_setup`, `prepare_pipe_job`, `shape_inputs` (kernel), `WorkingMemoryFactory.make_from_pipeline_inputs`, `InputShaper.shape` and `StuffFactory.make_stuff_from_stuff_content_or_data` all now thread `search_scope: str | None`; no caller supplies it from outside — `pipeline_run_setup` derives it. Breaking, in the changelog.
-
-**`fix_loop` collisions are per-domain.** `_pipe_codes_by_file` records each file's declared domain and `_split_cross_file_collisions` only checks a rename against same-domain siblings (unknown domain stays conservative, colliding with everything). Two integration tests that pinned the crate-wide scope flipped: the rebuild-between-rounds pin moved to a same-domain fixture (the only shape that still collides), and the other-domain arm became a convergence test — the rename applies and the bundle heals.
-
-**Mutation-checked again.** Removing the scope-preference block reddens the both-declare row, the aliased-scope row and the end-to-end wiring test; letting aliased keys into the crate-wide scan reddens the exclusion row; dropping `search_scope` at the one wiring point (`pipeline_run_setup` → `prepare_pipe_job`) reddens the integration test and the characterization pin; restoring the crate-wide collision scope in `fix_loop` reddens the different-domains-both-apply test. The review-round refinements got the same treatment: removing the package search, reverting dotted refs to host-first, reverting the invalid-string class, and dropping the `alias->Concept` branch each redden exactly their own rows. Every mutation reddened its own guards and nothing else, measured live.
diff --git a/wip/pipe-refs/corpus-measurement.md b/wip/pipe-refs/corpus-measurement.md
deleted file mode 100644
index 276c9d131..000000000
--- a/wip/pipe-refs/corpus-measurement.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# The fall-through corpus, measured across the whole workspace
-
-**Status.** Measured 2026-08-11 for Phase 0 of [implementation-plan.md](implementation-plan.md). This widens [README.md](README.md) §5, which scoped its scan to a hand-written list of ten sibling repos. It does **not** gate shipping — the repo's no-backward-compatibility principle stands and there is no deprecation period. It calibrates the changelog wording and how much to invest in the error message.
-
-This is a dated snapshot with a reproduction command, which is why it carries raw counts. Other documents should point here rather than restate them.
-
-## How this scan differs from README §5
-
-README §5 passed a hardcoded list of roots. Enumerating the workspace instead finds `.mthds` files in far more places, and a repo in neither column of a hardcoded list looks checked when it was never opened. Reproduce:
-
-```bash
-cd .. && ROOTS=(); for d in */; do
- case "$d" in _*|pipelex/) continue;; esac # _* are worktrees of this repo; pipelex/ is its main checkout
- n=$(find "$d" -name "*.mthds" -type f -not -path "*/node_modules/*" -not -path "*/.venv/*" | wc -l)
- [ "$n" -ne 0 ] && ROOTS+=("$d")
-done; cd _refs
-.venv/bin/python wip/pipe-refs/probes/classify-bare-refs.py "${ROOTS[@]/#/../}"
-.venv/bin/python wip/pipe-refs/probes/classify-bare-refs.py .
-```
-
-Requires bash or zsh — the array syntax is not POSIX `sh`. Use `-ne 0`, not `!= "0"`: BSD `wc -l` pads its output, so a string comparison never filters anything and the roots list silently differs between macOS and Linux.
-
-## Numbers
-
-| | this repo | every other `.mthds` tree in the workspace | README §5's narrower scan (ten sibling repos) |
-| --- | --- | --- | --- |
-| bundles read | 124 | 506 | 90 |
-| merge units | 57 | 336 | 36 |
-| **bare in-body pipe refs** | **142** | **1360** | 158 |
-| `own-only` | 136 | 1331 | 153 |
-| **`sibling-only`** — the column that breaks | **0** | **2** | 1 |
-| `both` | 6 | 16 | 1 |
-| `nowhere` | 0 | 11 | 3 |
-| **bare in-body concept refs** | **283** | **2389** | 367 |
-| `own-only` | 255 | 2197 | 341 |
-| **`sibling-only`** | **0** | **3** | 0 |
-| `both` | 27 | 135 | 22 |
-| `nowhere` | 1 | 54 | 4 |
-
-Read the columns as scopes, not as a total: the whole workspace is **630 bundles and 1502 bare pipe refs** (this repo plus every other tree). Like for like, widening the scan takes the corpus from README §5's 300 bare pipe refs (its ten repos' 158, plus this repo's 142) to 1502. Of the bundles outside this repo, §5's ten-repo list reached 90 of 506 — under a fifth.
-
-## What the denominator is, and is not
-
-The caveats in README §5 ("What this measurement does not cover") all still apply — in particular, a directory is not always a merge unit, so `both` is an upper bound and **`sibling-only` is the robust column**. Two more apply to this wider scan specifically, both inflating the denominator:
-
-- **Duplicates.** The enumerated roots hold 510 `.mthds` files with only 360 distinct contents: 256 files sit in one of 106 byte-identical groups, spread across roots (starters, demos and fixtures copy bundles wholesale). The scan counts files, not distinct bundles.
-- **Scratch trees.** Enumeration reaches material README §5 deliberately fenced off — the workspace's internal scratch, demo, and container-session trees (none of them open core; the list lives in the workspace-level private notes) — 67 files in all. §5 called the demo bundles pathological and kept them out; enumerating by definition cannot.
-
-So the denominator is an upper bound and the breakage *ratio* is a floor. That does not touch the finding: the two breaking references are named files in neither category, and no scratch tree or duplicate contributed one.
-
-## The two pipe references that break
-
-Both are real, and one of them is not in an examples directory:
-
-1. `pipelex-cookbook/examples/wip/advisory_board/bundle.mthds` — `advisory_orchestrator.master_advisory_orchestrator` names a bare `present_as_markdown` declared only by the `presentation` domain. Already scheduled for qualification in Phase 4b.
-2. `cocode/cocode/pipelines/swe_diff/changelog_enhanced.mthds` — `changelog_enhanced.write_changelog_enhanced` names a bare `format_changelog_as_markdown` declared only by the `changelog` domain, in `changelog.mthds` in the same directory. **`cocode` is a shipped CLI, not a sample**, and README §5 never scanned it. Fix by writing `changelog.format_changelog_as_markdown`.
-
- This one is not an artifact of the probe's directory grouping: `cocode/common.py` sets `PIPELINE_LIBRARY_DIRS = [<package>/pipelines]`, so the whole tree loads as a single library and the two domains genuinely coexist in one merge unit.
-
-Two references, and the fix for each is one qualified spelling.
-
-## The three concept references are not new breakage
-
-All three are in `vscode-pipelex/test-data/mthds/` (`pipe-definitions.mthds` referencing concepts declared in `concept-tables.mthds`). They are editor fixtures for the extension's goto-definition tests, and they **already** fail to load under today's runtime: the concept side qualifies to the owner domain at build time (`_qualify_concept_ref`), and `PipeFactory.make_from_blueprint` rejects a bare non-native concept ref that the pipe's own domain does not declare. README §5 reported zero simply because `vscode-pipelex/` was not one of its ten roots — its classifier reads TOML and is resolver-independent, so it would have counted these fixtures too had it opened them. The concept side of this change tightens the *library lookup*, which these fixtures never reach.
-
-## What this means for the changelog
-
-Say what breaks, not that something might: **a bare in-body pipe reference no longer resolves into another domain**, and across every `.mthds` tree in this workspace that is two references, both fixed by qualifying the spelling. Name the resolution rule and point at the error message, which suggests the crate-wide candidate when one exists.
diff --git a/wip/pipe-refs/dependency-subpipe-scope-deferred.md b/wip/pipe-refs/dependency-subpipe-scope-deferred.md
deleted file mode 100644
index d0c1044e7..000000000
--- a/wip/pipe-refs/dependency-subpipe-scope-deferred.md
+++ /dev/null
@@ -1,50 +0,0 @@
-# Deferred: a dependency pipe's own sub-pipe refs resolve against the HOST library
-
-**Status.** Measured 2026-08-11 while answering OQ1 of [build-time-qualification.md](build-time-qualification.md). Pre-existing, independent of the pipe-refs change, and deliberately **not** fixed on this branch — the fix needs package scope threaded through the lookup, which is the packaging project's design work. Reproduce with [`probes/dep-subpipe-scope.py`](probes/dep-subpipe-scope.py).
-
-Code is cited by symbol, not by line: this note is written to outlive the branch, which itself edits several of these regions.
-
-## What is broken
-
-A dependency package is loaded into an isolated *child* `Library` and its pipes are **also** registered in the host library under aliased keys (`alias->domain.code`). When a dependency's own controller pipe names a same-domain sub-pipe, three readers disagree about which library to search:
-
-| Reader | Where | Scope it searches |
-| --- | --- | --- |
-| dependency-dep loop | `Library.validate_pipe_library_with_libraries`, its first loop | the **child** library — explicitly special-cased for an aliased pipe key |
-| per-pipe validation | same method's second loop → `PipeAbstract.generic_validate_inputs_with_library` → `PipeSequence.needed_inputs` | the **host** library, via `interpreter_hub.get_required_pipe` — no special case |
-| execution | `SubPipe.run_pipe` | the **host** library, via the same hub accessor — no special case |
-
-The child-library special case is neutralized by the second loop in the very same method. And the host lookup cannot reach the dependency's own pipe either: `PipeLibrary.get_optional_pipe` is a strict key lookup, so a bare code matches nothing there. (Before this branch it instead ended in a crate-wide bare-code fall-through that explicitly **skipped** `alias->` entries — same outcome, different mechanism; that fall-through is what row 2 of the baseline table below measured.)
-
-## A second defect, in the shape a real package ships
-
-The child library is built from the crate under an export filter (`if has_exports and pipe_code not in all_exported: continue`, in `LibraryManager._load_single_dependency`). It carves out *synthetic* helpers — the comment right above it states the hazard exactly: "When the parent is exported, its helpers must travel with it — otherwise the wrapping PipeSequence references unresolved pipe codes at runtime." It does **not** carve out **authored** ones. So a controller's own private helper is dropped from its own package's library, and the failure lands before the scope disagreement above can even be reached.
-
-## Measured behaviour
-
-The table below is the **pre-Phase-2 baseline** — measured before the qualification pass landed on the dependency load path. Re-running the probe on this tree shows the post-change verdicts the next section describes: shapes 1 and 3 still fail, and row 2's silent capture is now a deterministic load failure.
-
-A dependency whose exported entry is a `PipeSequence` calling a bare same-domain helper, under three shapes:
-
-| Shape | Load verdict | What the execution reader resolves the helper to |
-| --- | --- | --- |
-| no manifest exports; host declares nothing | **fails** in the *second* loop — `PipeNotFoundError: Pipe 'probe_helper' not found` | `None` |
-| no manifest exports; host declares its own unrelated pipe under the same bare code | **valid** | the **HOST's** pipe — a silent cross-package capture |
-| manifest `[exports]` names only the entry pipe — *the published shape* | **fails** in the *first* loop — `LibraryLoadingError: Error validating pipe 'probe_entry' dependency pipe 'probe_helper'` | `None`; the helper is absent from the child library too |
-
-So today a dependency package that uses a controller internally either does not load at all, or loads and binds to whatever the host happens to have named the same way. Neither is the dependency's own helper. No fixture in `tests/data/packages/` exercises this — every dependency there exports a leaf `PipeLLM`, which is why it has never surfaced.
-
-## Why the pipe-refs change does not fix it, and does not worsen it
-
-Owner-domain qualification rewrites the authored bare `helper` to `dep_domain.helper`. Measured against the same host library, that ref also resolves to `None` — the host holds it as `alias->dep_domain.helper`. So:
-
-- **not a regression, but only because the two edits co-landed.** Reader row 1 *was* served by the bare fall-through: the child library's keys are `dep_domain.helper`, and the first loop looked up a **bare** code against it, which only succeeded via that fall-through. Deleting the fall-through alone would have broken row 1. Both edits landed in the same phase — the qualification pass on the dependency load path (`LibraryManager._load_single_dependency`) and the strict lookup — so the first loop's lookup is qualified now that the fall-through is gone. That co-landing was load-bearing, not incidental — it is also what makes "`library` validation needs no edit" true.
-- **strictly better on the capture.** The silent host-capture in row 2 becomes a deterministic not-found. A bundle that loads today and runs the wrong pipe will stop loading — loudly, naming `dep_domain.helper`, which points at the scope that should have been searched.
-- **it moves the eventual fix closer.** The child library's own keys are exactly `dep_domain.helper`. Once the lookup is package-scoped, a qualified ref is a direct key hit in the child library; a bare one would still need a search.
-
-## What the fix requires (packaging project)
-
-Two independent pieces, both needed:
-
-1. **Scope.** The caller's **package** must reach the lookup, the way its domain now does. Either the resolved sub-pipe ref carries its alias (`alias->dep_domain.helper`) when the referring pipe came from a dependency, or the run scopes the current library to the child while executing inside that package. Both are contract decisions about cross-package reference form, which [build-time-qualification.md](build-time-qualification.md) explicitly defers ("No cross-package resolution design"). Whichever is chosen, the two validation readers and the execution reader must end up on the same one — that is the parity requirement this note exists to preserve.
-2. **Export filtering.** A pipe an exported pipe depends on must travel with it, whether the helper is synthetic or authored. Scope alone does not fix the published shape: the helper is not in the child library to be found.
diff --git a/wip/pipe-refs/entry-affordance-share-vs-duplicate.md b/wip/pipe-refs/entry-affordance-share-vs-duplicate.md
deleted file mode 100644
index d13d8ff67..000000000
--- a/wip/pipe-refs/entry-affordance-share-vs-duplicate.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# The pipe entry affordance and the concept one: separate, deliberately
-
-**Ruling: keep them separate. Do not extract a shared helper.** Recorded during the pipe-side work so that Phase 3 inherits a decision rather than a discovery — an accidental copy found later is not the same thing as a chosen duplication.
-
-## What is actually shared
-
-Reduced to their skeletons, the two look like twins:
-
-```
-exact ref -> direct hit
-bare code -> scan entries, excluding aliased dependency keys
- 1 match -> return it
- >1 match -> raise, naming the candidates
- 0 match -> None / raise
-```
-
-That is roughly six lines of list comprehension and two error messages. If that were the whole story, sharing would be obvious.
-
-## Why they are not twins
-
-**1. The concept side has a step the pipe side does not, and cannot have.** Natives. `Text` is not a bare code to be searched for — it resolves to `native.Text` before any scan, by the standard's own step 1 (`NativeConceptCode.is_native_concept_ref_or_code`). There is no pipe equivalent. A shared helper would either carry a native branch that is dead for pipes, or take a "resolve specials first" callback, which is a worse thing than two small functions.
-
-**2. The two live on different objects with different roots.** `PipeLibrary.root` is `dict[str, PipeAbstract]`; `ConceptLibrary.root` is `dict[str, Concept]`. Sharing means a generic over a protocol exposing `.code` and `.pipe_ref`/`.concept_ref` — the two ref properties are not even named the same. The generic machinery would outweigh the code it factors out.
-
-**3. Their ambiguity answers are not obviously the same question.** For pipes, an ambiguous hand-typed code must raise: guessing which `summarize` the user meant is a coin flip with a silent wrong answer. The concept side *currently* has `search_domain_codes` and an own-domain-first preference, and its spec stops at "unique match" without saying what happens otherwise. Phase 3 has to settle whether that preference is meaningful or vestigial. **Binding the two together before that question is answered would smuggle the pipe answer into the concept surface** rather than deciding it.
-
-## What to do instead
-
-Phase 3 should copy the *shape* and the *reasoning* — including the aliased-dependency exclusion, which is a correctness requirement on both sides for the same reason (an installed package must not make a host code ambiguous) — and write the concept version against the concept library's own facts. If, after Phase 3 lands and the concept ambiguity question is settled, the two really have converged to the same six lines, extracting then is cheap and the decision will be informed. Extracting now would be guessing.
-
-## The part that must not be duplicated
-
-The *rule* — that in-body refs qualify to their owner domain and are never searched for — has exactly one implementation, `crate_qualification.qualify_crate`, and both readers consume it. That was the whole point of Phase 1. The entry affordances are the deliberate exception to no-fall-through, not a second copy of the resolution rule, and it is worth keeping the two ideas apart when reading this: sharing the *rule* is mandatory, sharing the *affordance* is not.
diff --git a/wip/pipe-refs/implementation-plan.md b/wip/pipe-refs/implementation-plan.md
deleted file mode 100644
index c2efd2bb6..000000000
--- a/wip/pipe-refs/implementation-plan.md
+++ /dev/null
@@ -1,290 +0,0 @@
-# Pipe-refs build-time qualification — implementation plan
-
-> **ARCHIVED from the repo-root `TODOS.md` on 2026-08-17 — the runtime work is complete, the cross-repo tail is not.** Phases 0 through 3 and Phase 4a item 1 shipped (PRs #1091, #1092, #1099, merged to `dev`); what remains open is the transport-boundary spec edit held for its verifying test, and all of Phase 4b, which is gated on a `pipelex` release carrying the `interpreter_hub` entry-pipe accessors. This file stays the plan of record for that tail: pick it up here rather than re-deriving it. It was moved off the repo root because the root tracker belongs to whatever work is currently in flight, and this work is waiting on a release rather than on a keyboard.
->
-> **Paths below are relative to the repository root, not to this file's own directory** — they were written while this document sat at the root and are deliberately left as they were.
-
-Source of truth for the design: [wip/pipe-refs/build-time-qualification.md](wip/pipe-refs/build-time-qualification.md) (decided 2026-08-11). Evidence and pre-change state: [wip/pipe-refs/README.md](wip/pipe-refs/README.md). Venue: the `_refs` worktree — treat this worktree as the repo root.
-
-**What we are doing in one sentence:** bare in-body references (pipe steps, branches, outcomes, batch refs, concept I/O refs) get qualified to their owner domain once, at library build time, via one shared crate pass consumed by both the normalizer and `library_manager`; the live library lookup becomes strict; the crate-wide bare search survives only as an explicitly-named entry-point affordance for user-supplied codes.
-
-**Why it matters beyond tidiness:** no-fall-through is what makes `[exports]` enforceable. A visibility rule the resolver can reach around is not a visibility rule. Keep that argument at the front of every discussion about this change — it is the reason the blast radius is worth paying.
-
-## The resolution rule, in one picture
-
-```
-in-body ref encountered
- |
- +-- contains "alias->" ? --YES--> cross-package: pass leaves it ALONE
- | (resolved against the child library)
- NO
- |
- +-- already qualified "d.c" ? --YES--> unchanged (pass is idempotent)
- |
- NO (bare code "c")
- |
- v
- qualify to the OWNER domain of the declaring pipe --> "own_domain.c"
- |
- | existence is NOT checked here
- v
- ordinary dependency validation
- |
- +-- resolves ? --YES--> done
- |
- NO
- v
- error names the ref that was tried, and suggests a crate-wide
- candidate when one exists (diagnostic scan, FAILURE PATH ONLY —
- this is not a resolution fallback)
-```
-
-Entry-shaped lookups (a human typing a pipe code at a CLI) do NOT follow that rule. They go through the entry affordance, which searches crate-wide, refuses ambiguity, and deliberately ignores `[exports]` — a hand-invoked pipe is not an in-body reference, so package visibility does not apply.
-
-## Rules of engagement
-
-- **Checkpoints are mandatory stops.** At each ⛔ CHECKPOINT below, the agent MUST stop working, complete the checkpoint checklist (status updates, gates, commit), and end the session. Do not roll into the next phase in the same session, even if context feels fresh. The next session cold-starts from this file's Status block plus the design doc.
-- **Update this file as you go.** Tick checkboxes when items complete; record decisions in the Status block the moment they are taken, not at the end.
-- **Open questions from the design** are folded into the phase tasks below as explicit decision items (marked OQ1/OQ2/OQ3). Record each ruling in the Status block and in the design doc. OQ1 is a go/no-go gate in Phase 0, not an implementation task.
-
-### Gates — the full checklist, run at every checkpoint
-
-`make agent-check` and `make agent-test` do not cover everything this plan disturbs. Three of the gaps fail silently, which is why this is a checklist and not a sentence.
-
-1. `make agent-check` clean.
-2. Full `make agent-test` green.
-3. **`git add` the work, THEN `make drift-check`.** `agent-check` does not run `drift-check`, so a contract never opens "along the way" under the other gates. And `drift-check` reads the git *index*, so unstaged work reads as a false green. If a contract opens, resolve it via the drift-review flow — no bypassing.
-4. **Reconcile `.test_durations`** after any test file, class, or function is renamed or repurposed. This plan repurposes named tests in both the normalizer and lookup suites. Orphan node ids are silent — pytest-split treats an unknown id as average duration. Collect with `.venv/bin/pytest --collect-only -q -m ""`; the marker filter in `addopts` hides a large slice of the suite (mostly `tests/e2e`) and makes every e2e entry look like an orphan.
-5. **Record the subject grant BEFORE the first `agent-check` on the new module.** `agent-check` runs `fix-keyword-only`, which silently rewrites an ungranted positional subject to keyword-only. If the pass is meant to read as a verb–object sentence (`qualify_crate(crate)`), `make subject-grant` has to land first or the shape is gone before anyone decides.
-
-## Status
-
-- **Current phase:** Phase 4a item 1 DONE (2026-08-13); 4a item 2 (transport-boundary spec edit) deliberately HELD to land together with its 4b verifying conformance test. **Phase 4b is blocked on user action:** merge PR #1099 (`fix/Pipe-refs-3` → dev), then cut a `pipelex` release carrying the `interpreter_hub` entry-pipe accessors — every 4b item needs that release installable by the sibling repos. The transport spec/test pair to touch in 4b: `docs/specs/pipelex-transport-boundary.md` §"The allowed import surface" (workspace root) + `conformance/tests/pipelex_transport/test_provider_surface.py` (the allowed-surface list lives in `test_data.py::TransportBoundaryContract.ALLOWED_SURFACE`; the workspace CLAUDE.md note claiming `conformance/tests/pipelex_transport/` does not exist is stale — the suite exists and runs).
-- **Last completed item:** Phase 4a item 1 — the `mthds/` spec clarification (details on the 4a checklist line). Before that: C3 — the concept side landed as the `get_optional_entry_concept` / `get_required_entry_concept` pair with a package-aware `search_scope` (the entry pipe's domain, `alias->domain` for a dependency entry pipe) replacing the `search_domain_codes` list across the whole public chain; both README §4 latent defects deleted structurally; `fix_loop` rename collisions relaxed to per-domain. §4 marked HISTORICAL with a re-measured matrix (probe rewritten against the new affordance).
-- **Phase 3 rulings.** (1) **Concept ambiguity raises, naming the candidates — but only after the scope preference has had its chance.** The old own-domain `insert(0)` was dead code; the preference now fires *before* the crate-wide scan. (2) **Both refusals (miss and ambiguity) raise `ConceptLibraryConceptNotFoundError`** — the class the `stuff_factory` handlers actually catch, which is what deletes the wrong-exception-class defect rather than patching around it; the four handler messages now say "could not be resolved: {exc}" so an ambiguity is not mislabeled "not found". (3) **The concept twin of OQ1 was paid in full here, unlike the pipe side** — the concept lookup is entry-only and its one call site holds the alias, so package scope is a string prefix, not an execution-path threading project. (4) The `search_domain_codes` parameter is deleted from `PipelexMTHDSProtocol` (public, breaking) rather than kept as an override — nothing supplied it in production and a caller-supplied list is exactly the contextual instability this branch removes.
-- **Phase 3 surprises.** (1) Two integration tests pinned the crate-wide `fix_loop` collision scope and had to flip — the parametrized other-domain arm of `test_strip_namespace_bails_on_cross_file_collision` asserted a bail that is no longer correct behavior, and the rebuild-between-rounds pin only kept its purpose by moving to a same-domain fixture. (2) The stuff-factory param-id entries in `.test_durations` changed shape twice over: the rename changed the *argname* ids (`search_domain_codesN`), and the list→str change made the new ids embed the literal value (`test_domain`) instead of a positional placeholder — the reconciliation needed the full `-m ""` collection to map them. (3) `mocker.patch.object(module, "prepare_pipe_job", wraps=...)` on the run-setup module is enough to pin the scope wiring without touching the seam itself — the wiring mutation reddens both that pin and the end-to-end test.
-- **Decisions taken:** phase structure reworked so no checkpoint rests on a self-contradicting tree; OQ1 promoted to a Phase 0 go/no-go gate; breaking-change posture held (no deprecation period) but preceded by a bounded corpus measurement. **OQ1 ruled GO** — owner-domain qualification is neutral-to-better for dependency packages; the dependency lookup-scope defect it exposed is pre-existing and deferred to the packaging project (`wip/pipe-refs/dependency-subpipe-scope-deferred.md`). **Crate envelope ruled: the pass does not deal in crates at all** — it returns a `QualifiedCrateContent` (just `concepts` and `pipes`), never a `LibraryCrate`, because it cannot pick the right digest scheme for a `fingerprint`. Each consumer makes the fingerprint correct at its own boundary (rationale in the design doc's Phase 1 outcome). *(This bullet previously read "the pass is envelope-preserving", describing the first cut that returned a crate; review changed the return type and the wording was stale in three places until a PR bot caught one of them.)*
-- **Surprises / fallout:** (1) the dependency execution path has **no** child-library scoping at all — a dependency package using a controller internally either fails to load or silently binds a host pipe of the same bare code; the child-library special case in `Library.validate_pipe_library_with_libraries`'s first loop is neutralized by `pipe.validate_with_libraries()` in the second. Worse in the shape a package actually ships: with a manifest `[exports]`, the authored helper is dropped from the dependency's own child library and the load fails earlier still. (2) README §5's corpus scan used a hardcoded repo list that reached under a fifth of the bundles outside this repo; the widened scan is in `wip/pipe-refs/corpus-measurement.md`, and the second breaking reference lives in `cocode` — a shipped CLI, not an examples directory.
-- **Open risks carried in:** four latent defects surfaced by the outside-voice pass are folded into Phases 1–3 below (batched sub-pipe code derivation, transported `PipeFunc` bare codes, the crate fingerprint contract — now ruled, aliased dependency keys polluting the crate-wide search). None of them is speculative; each names a file.
-- **Phase 1 findings that change how Phase 2 must be tested:** (1) **this repo's entire bundle corpus is blind to the rule flip** — applying Phase 2's owner-domain rule to all 54 crates buildable here produces byte-identical output, so the two-domain fixture is not a nicety and the mutation check is what makes the resolution-row tests mean anything; (2) **a differential harness whose inputs each carry at most one defect cannot see an error-precedence change** — that is how Phase 1's own precedence shift got past it and had to be caught in review; Phase 2 moves far more error surface, so its equivalence inputs need multi-defect crates; (3) **a fixture full of bare refs proves nothing unless a test reads a ref back out of the result** — Phase 1's first test module passed intact against a no-op pass for exactly that reason; (4) nothing writes a normalized crate back over a `.mthds` file, so the flip does not rewrite user source — but the stamped `codegen.lock` `crate_fingerprint` moves on every committed projection; (5) `_qualify_io_ref`'s cross-package guard looks unreachable through a constructed blueprint (the io-ref validator rejects `alias->` refs outright) — preserved verbatim, flagged for whichever phase owns cross-package forms.
-- **Phase 2 rulings.** **OQ2 — the entry affordance is a `get_optional_entry_pipe` / `get_required_entry_pipe` pair** on `PipeLibraryAbstract` + `PipeLibrary`, mirrored as hub accessors. A pair rather than one method because the migration found exactly one caller (`pipelex which`) that needs the optional form and eleven that want the required one; "entry" rather than the working name `find_pipe_by_bare_code` because it also takes fully-qualified refs, and because the name should say *why* the lookup differs, not *how*. **OQ3 — the cross-package bare-remainder search stays.** The qualification pass leaves `alias->…` refs alone (it cannot know a dependency's domain layout), so deleting the search would break every `alias->bare_code` ref with no canonical spelling to migrate to. It is alias-scoped and cannot reach a host pipe; the comment in `get_optional_pipe` says so and points at the packaging design. **DRY — the pipe and concept affordances stay separate**, written up with the reasoning in [wip/pipe-refs/entry-affordance-share-vs-duplicate.md](wip/pipe-refs/entry-affordance-share-vs-duplicate.md) so Phase 3 inherits a decision rather than making an accidental copy. The *rule* is shared (one `qualify_crate`); the affordance is the deliberate exception to it, and the two should not be conflated.
-- **Phase 2 surprises.** (1) **The batched sub-pipe defect was real but not what the review said.** The plan (from Codex) predicted the invalid code `domain.foo_batch`; in fact `PipeAbstract` has a `code` validator that strips a namespace prefix, so the built ref was correct all along. What the wrong derivation actually produced was a `log.warning` on **every** batched run, about a code no user wrote. The fix stands; the first test written for it asserted on the ref and passed against the bug, and had to be rewritten to assert on the warning. (2) **Two call sites the plan did not enumerate** turned up by running the suite rather than grepping: `validate_bundle.py` resolved a bundle's own `[pipe.<code>]` keys as bare codes (now qualified with the bundle's domain — precise, not routed through the affordance), and `dry_run_in_process.best_effort_graph_spec` resolved a caller-supplied graph target (entry-shaped, now on the affordance). The second silently degrades to "no graph" on a miss, so it would never have failed loudly. (3) **`missing_pipe_code` changed value** — a structured, machine-read field, so a wire-visible change, recorded in the changelog. (4) The test sweep's own derivation over-reached twice and both were caught by verification rather than by the suite: a `.pipe_code ==` assertion resolved against the wrong source (that field is the *referring* pipe's local code and does not change), and a ref inside a `PipelexBundleBlueprint` fixture was hand-qualified when the product qualifies it — the new break message diagnosed that one itself.
-- **Phase 2 PR review (cubic, 9 findings; greptile clean).** Two were real defects and both are fixed: the `SpecialOutcome` exemption applied to *every* controller kind, though `continue` / `fail` are legal snake_case pipe codes — so a sequence step naming a pipe called `continue` was left unqualified, which the strict lookup then fails to resolve (a Phase 2 regression: the fall-through used to rescue it); and `make-demos.sh`'s `mktemp -d -t` is BSD-only, so the README's own reproduction command aborted on Linux before writing a demo. **Four findings were claims of mine that had gone false**, which is the half worth remembering: the `python_sources` deferral credited `model_copy` for envelope preservation (true of the pass's *first* cut, which returned a crate — the same stale claim was in three places, and the bot found one), "no fix op writes a pipe ref" is wrong (`strip-namespace` plans a root `main_pipe` SET_KEY), and three line-number pointers had gone stale *inside this branch* between Phase 1 and Phase 2. Those were fixed by **removing** the line numbers, not correcting them — a pointer into code the same branch edits re-stales itself every phase.
-- **The `_domain_of` / `CrateNormalizationError` debt, split and settled.** Phase 1 left two things wrong-sounding once `library_manager` became a second caller of the pass, and parked both on Phase 2. **Only one of them was Phase 2's to pay**, which the plan did not say clearly enough — a PR bot caught the bullet still assigning both to a phase declared complete. Settled: the **message** is fixed here (it now says "this pass expects…" rather than blaming the normalizer, which is no longer even the busier caller). The **error-class rename is deliberately re-deferred to Phase 4b**, where it belongs: `error_type` is a wire string, so a rename needs `make generate-error-identity`, `make generate-error-pages`, and the TypeScript-consumer sweep — all of which are already Phase 4b's "error-surface sweep" line items. Doing it here would open a cross-repo surface inside a runtime-only phase.
-
----
-
-## Phase 0 — answer the questions that can invalidate the design
-
-Nothing here writes product code. Both items exist because their answers can change what gets built, and both are cheaper now than later.
-
-- [x] **OQ1 — dependency-pipe lookup scoping (GO/NO-GO).** **Answered: GO.** Measured with `wip/pipe-refs/probes/dep-subpipe-scope.py` across three package shapes. Execution consults the **host** library unconditionally, and its bare-code fall-through skips `alias->` entries — so a dependency's own bare sub-pipe ref never reaches the dependency's own pipe *today*: a plain host fails to load, a host declaring the same bare code loads and silently binds the host's pipe, and a dependency with a real `[exports]` manifest fails earlier still because the export filter drops the authored helper from the child library. Owner-domain qualification does not regress that (the qualified ref resolves to `None` in the host exactly as the bare one does), converts the silent capture into a deterministic not-found, and makes the eventual package-scoped lookup a direct key hit in the child library. The pre-existing defect is written up in `wip/pipe-refs/dependency-subpipe-scope-deferred.md` and deferred to the packaging project.
-- [x] **Measure the fall-through corpus.** **Two bare pipe refs break across every `.mthds` tree in the workspace**, each fixed by one qualified spelling. Recorded with the full table, the reproduction command and the denominator's caveats in `wip/pipe-refs/corpus-measurement.md`. README §5's scan used a hardcoded ten-repo list and missed most of the workspace; enumerating instead multiplies the corpus several times over and finds a second `sibling-only` case in `cocode` — a shipped CLI, not a sample. The `sibling-only` *concept* refs found are vscode-pipelex editor fixtures that already fail to load today, so they are not new breakage.
-
-### ⛔ CHECKPOINT C0 — MANDATORY STOP
-
-- [x] Record the OQ1 ruling and the corpus number in the Status block and the design doc.
-- [x] If OQ1 came back negative, do not proceed — write up what broke the premise and end the session for a design conversation. *(Came back positive — proceeding.)*
-- [x] Commit the investigation notes.
-- [x] STOP. Next session starts at Phase 1.
-
----
-
-## Phase 1 — extract the pass (pure refactor, behavior-identical)
-
-This phase moves code and changes nothing. That is the point: the checkpoint at the end is the safest handoff state in the whole plan, provable by an unchanged test suite. The rule flip does not happen here.
-
-- [x] Read the design doc and README end-to-end; skim `pipelex/libraries/crate_normalization.py` (`_qualify_concept_ref`, `_qualify_pipe_ref`, `_qualify_io_ref`, `_normalize_pipe`) and `pipelex/libraries/library_crate_factory.py` to confirm the insertion point still matches the design.
-- [x] **Record the subject grant first if the pass takes a positional subject** (see Gates item 5). Done — nine grants recorded before the first check. The `PostToolUse` hook blocked the write and named every ungranted subject, so the auto-fixer never got the chance to rewrite them; the gate's hazard is real but the hook catches it at edit time, not only at `agent-check` time.
-- [x] Extract the in-body reference qualification step out of `crate_normalization.py` into a standalone pass over a `LibraryCrate`. Landed as `pipelex/libraries/crate_qualification.py::qualify_crate`. Covers pipe refs (steps, branches, outcomes, batch refs), concept I/O refs, `refines`, and structure-field refs. **Rule unchanged** — crate-wide search stays.
-- [x] Make `normalize_crate` consume the extracted pass. No test flips. **Behavior-identical with one known, deliberate exception — error precedence between two independent defects.** HEAD's implementation was loaded beside the working tree's and both run over the same inputs, comparing full serialized output: identical across every crate buildable from this repo's `.mthds` files and across ten hand-built crates covering the branches the corpus cannot reach. The comparison was mutation-checked so its green means something: dropping structure-field qualification reddens one case, applying the Phase 2 rule reddens three.
-
- ⚠ **The exception, and how it was missed.** Qualification now runs as one complete phase ahead of refinement flattening, where HEAD interleaved them (concepts → flatten → pipes). A crate carrying *both* a refinement cycle and an ambiguous bare pipe ref used to report the cycle and now reports the ref. **The differential harness could not see this: every crate it compares carries at most one defect.** A single-defect corpus cannot detect a precedence change by construction — the finding came from review, not from the harness, and that is the lesson worth carrying into Phase 2, where far more error paths move. Accepted rather than fixed: restoring the old order would mean splitting the pass in two so the normalizer could interleave it, and Phase 2 runs the pass with no flattening at all. Both errors are `CrateNormalizationError`, the crate is invalid either way, and which of two independent defects is named first is not a contract. Recorded in `normalize_crate`'s docstring.
-- [x] **Inventory every consumer of normalized crate output before the flip phase.** Recorded in [wip/pipe-refs/normalized-crate-consumers.md](wip/pipe-refs/normalized-crate-consumers.md). **The feared write-back does not exist** — no path writes a normalized crate back over a `.mthds` source file. `pipelex fix` rewrites user files but never through a crate, and no fix op writes a pipe ref (re-check in Phase 2 rather than assume). What does move is the stamped `codegen.lock` `crate_fingerprint` on every committed projection.
-- [x] **Settle the crate envelope / fingerprint contract.** **Ruled: the pass does not deal in fingerprints at all** — it returns a `QualifiedCrateContent` (the rewritten `concepts` and `pipes`), not a `LibraryCrate`. Returning a crate would force it to supply a `fingerprint` it cannot get right, since a crate does not record which digest scheme produced its value; the pass would have to guess or carry over a digest that no longer describes its own content, contradicting `LibraryCrate.fingerprint`'s own docstring. Returning the two mappings makes that unrepresentable and costs the callers nothing — both already hold a crate to read the envelope from, and `normalize_crate` builds a fresh one anyway. Phase 2's `load_from_crate` keys idempotency on the incoming crate's fingerprint, which is what external callers pass to `is_crate_loaded`. *(First cut returned a crate with the envelope carried over and a paragraph excusing the stale digest; review pushed back and the smaller surface is plainly better — a paragraph of excuse is a design smell.)* The related `python_sources` drop in `normalize_crate` is real, untouched here, and deferred in [wip/pipe-refs/normalize-crate-drops-python-sources-deferred.md](wip/pipe-refs/normalize-crate-drops-python-sources-deferred.md) — the one-line fix moves customer Python source into a CLI stdout stream and an HTTP response body.
-- [x] Gates checklist clean (all items).
-
-### ⛔ CHECKPOINT C1 — MANDATORY STOP
-
-A pure refactor has landed. The tree is fully self-consistent and the suite is unchanged — this is a genuinely safe place to walk away from.
-
-- [x] Update the Status block (phase done, the consumer inventory, the fingerprint ruling).
-- [x] Record status in the design doc's Phase 1 section.
-- [x] Commit with a clear message. ⚠ **This item's own wording had to change:** it said "say plainly that this commit changes no behavior", and that turned out not to be true. The message states the extraction is behavior-preserving *with one documented exception* and names it. An instruction to assert a property is not a licence to assert it unverified.
-- [x] Gates run at the checkpoint: `agent-check` clean, full `agent-test` green, `drift-check` passed against the staged index, `.test_durations` N/A (path-existence gate; nothing renamed or moved), subject grants recorded ahead of the first check.
-- [x] Reviewed by a no-context `/code-review` fan-out; findings triaged and verified individually rather than deferred to. Three of the reviewer's claims held up, two against claims I had written down myself.
-
----
-
-## Phase 2 — flip the rule and make the lookup strict (these land together)
-
-The normalizer and the live library must never disagree in a committed state, so the rule flip and the strict lookup are one phase. This is the phase that justifies the branch.
-
-### The rule
-
-- [x] Switch the pipe rule inside the pass from crate-wide search to **owner-domain qualification** — the exact twin of `_qualify_concept_ref`. Existence is NOT checked by the pass; the ordinary dependency validation catches missing refs afterwards (that is the standard's step 3 by construction).
-- [x] Leave cross-package refs (`alias->…`) untouched by the pass, exactly as the normalizer already does.
-- [x] **Fix the batched sub-pipe code derivation.** `SubPipe.pipe_code` becomes `domain.foo`, and the runtime derives `f"{self.pipe_code}_batch"` (`pipe_batch_adhoc_pipe_code` in `pipelex/pipe_controllers/sub_pipe.py`). Use the resolved sub-pipe's local code for that derivation. ⚠ **The predicted consequence turned out to be wrong** — see the Phase 2 surprises above: `PipeAbstract`'s `code` validator strips a namespace prefix, so the built ref was correct all along and what the bug really produced was a warning on every batched run.
-- [x] Run the qualification pass in `pipelex/libraries/library_manager.py` on **all** crate→pipes paths — main load, secondary loads, dependency-package loads — before pipes are constructed via `PipeFactory.make_from_blueprint`.
-
-### The strict lookup and the entry affordance
-
-- [x] Strip the step-3 bare-code crate-wide fallback from `PipeLibrary.get_optional_pipe` (`pipelex/libraries/pipe/pipe_library.py`), including the `domain_hint` TODO. What remains: direct key lookup and cross-package (`alias->`) handling. `get_required_pipe`'s signature does not move (transport-pinned).
-- [x] **OQ3 — decide** whether `get_optional_pipe` keeps the cross-package bare-remainder search (`alias->` + bare code). It is alias-scoped so it does not reopen the cross-domain hole; the design leans toward keeping it until the packaging design rules on cross-package reference forms. Record the ruling, and pin it with a test either way.
-- [x] Close [wip/parity/d1-domain-hint-deferred.md](wip/parity/d1-domain-hint-deferred.md) as subsumed by this change (status note in that file).
-- [x] **OQ2 — settle the entry affordance's final name and shape** (working name `find_pipe_by_bare_code`; one method or a required/optional pair; where the ambiguity error message lives).
-- [x] Implement the entry affordance on the pipe library (+ its abstract): exact ref hits directly; a bare code matches crate-wide; ambiguity raises an error asking the user to qualify. Docstring states explicitly that it deliberately does NOT consult `[exports]` — a hand-invoked pipe is not an in-body reference, so package visibility does not apply.
-- [x] **Exclude aliased dependency keys from the crate-wide bare search.** `PipeLibrary.root` also holds `alias->…` dependency entries (added by `add_dependency_pipe`), so "crate-wide" is not "every value in root". Without this exclusion, installing an unrelated dependency package can make a host pipe ambiguous — reintroducing, through the new affordance, exactly the contextual instability this branch exists to eliminate. Applies to the concept affordance in Phase 3 too.
-- [x] **Decide and record the share-vs-duplicate question** between this pipe affordance and the concept affordance built in Phase 3. They are near-twins — the concept one adds a domain-preference step, and its spec currently stops at "unique match" without saying what happens when the match is not unique. Decide now whether they share a helper or stay deliberately separate, and settle whether the concept one raises on ambiguity. A written "separate, because X" is a valid answer; an accidental copy discovered in Phase 3 is not.
-- [x] Expose the affordance through a new `pipelex/interpreter_hub.py` accessor (additive; the transport spec/conformance update for it happens in Phase 4b).
-- [x] Migrate the in-repo entry-shaped call sites to the affordance: the CLI commands (`which`, `show`, `validate`, the `build`/`codegen` groups), `pipeline_run_setup`, and the builder operations. Controllers, `sub_pipe`, `signature_walk`, and `library` validation need NO edit — they look up refs stored on built objects, which now arrive qualified. ⚠ That is true *only because this phase lands as one change*: `Library.validate_pipe_library_with_libraries`'s first loop looks up a bare sub-pipe code against the child library, whose keys are qualified, so it is served today solely by the step-3 fall-through being deleted below. Deleting the fall-through without qualifying the dependency load path breaks it.
-- [x] **Qualify the transported `PipeFunc` code.** `PipeFunc` used to send its bare code and the sandbox later calls the now-strict lookup with it (`pipelex/pipe_operators/func/pipe_func.py` → `pipelex/pipe_operators/func/direct_pipe_func_executor.py`). Under the strict lookup **every** transported `PipeFunc` fails, not merely ambiguous ones. The DTO must carry a qualified ref — it now transports `pipe_code=self.pipe_ref`.
-
-### The break message
-
-- [x] Spec the not-found message in **dependency validation** — that is where users actually meet it, not in the lookup. It names the qualified ref that was tried, and when a crate-wide candidate exists it suggests it and states the new rule. Without this, the user reads `advisory.present_as_markdown` while staring at a file that says `present_as_markdown`, and has no way to know the compiler added the prefix.
-- [x] Mark the diagnostic crate-wide scan **failure-path only** in code and comment. It is the same scan being deleted from the resolution path, and an implementer in a hurry can reintroduce the fallback by accident.
-- [x] Build the crate-wide bare-code index **once per validation run** and share it across every missing-ref diagnostic. Per-error scanning goes quadratic on the mass-breakage run — which is precisely the first-run-after-upgrade this feature exists to improve.
-
-### Tests
-
-- [x] **Build a two-domain fixture.** In a single-domain crate, owner-domain qualification and crate-wide search give identical answers, so every resolution-row test below would pass just as happily under the rule being deleted. The rows only discriminate when a sibling domain declares the same pipe code. ⚠ **Measured in Phase 1, not merely suspected:** applying this phase's rule to all 54 crates buildable from this repo's `.mthds` files changes nothing — every normalized output is byte-identical under both rules. The repo's own corpus is blind to the flip, so the fixture must be hand-built, and the mutation check below is what proves it discriminates.
-- [x] Flip the normalizer test that pins the old rule: `tests/unit/pipelex/libraries/test_crate_normalization.py::test_bare_cross_domain_pipe_refs_resolve_to_the_declaring_domain` becomes a test of owner-domain qualification.
-- [x] Flip the lookup tests that pin the old rule: `tests/unit/pipelex/libraries/test_pipe_library_lookup.py::test_bare_code_ambiguous_raises` and `::test_bare_code_unambiguous` become tests of the strict lookup + entry affordance split.
-- [x] Qualify the refs in tests that construct pipes directly with bare sub-refs (bypassing the crate pass) — they hit the strict lookup now. Find them by running the suite, not by grepping alone.
-- [x] Conformance-shaped unit coverage for the resolution rows on the two-domain fixture: own-only resolves; sibling-only errors; both-declare resolves to own; nowhere errors. ⚠ **The export-bypass closure case is NOT covered by a test here** — only by re-running the demo probe by hand (recorded in README §3). Its *behaviour* is covered: a bare in-body ref cannot reach **any** sibling domain, exported or not, which is pinned at library level by `test_unresolved_pipe_ref_message.py::test_names_the_qualified_ref_and_explains_the_rule`, and export-bypass is a strict subcase of that. What has no test is the `[exports]`/`METHODS.toml` machinery *interacting* with the new rule, which needs a package fixture and is conformance-shaped — it is already scheduled in Phase 4b's spec-suite line item. Do not tick that 4b item without it.
-- [x] **Mutation-check the rows.** Done for sibling-only (restoring the crate-wide search reddens the two rule tests and both message tests) and per-controller-kind for the closure walk. **Not done for export-bypass**, because there is no export-bypass test to mutate — see the item above.
-- [x] Coverage for the entry affordance semantics: exact hit, crate-wide unique bare match, ambiguity error message, and no-match.
-- [x] Pin the stated invariants that currently have no test: `alias->` refs pass through the pass untouched; all four ref kinds are covered (steps, branches, outcomes, batch refs — branches and batch refs are the ones a hand-written pass forgets); the pass is idempotent (`d.c` must not become `d.d.c`, and it now runs in two places); the pass runs on **all three** load paths (a miss on the secondary or dependency path is invisible for any single-domain library); the OQ3 ruling; and that the affordance reaches a **non-exported** pipe (the twin of the export-bypass closure — the docstring claim needs enforcement).
-- [x] Execution test for `batch_over` covering the derived batch code.
-- [x] Coverage for both branches of the new validation message: candidate exists, and no candidate exists.
-- [x] Audit existing CLI coverage for the migrated surfaces, then add a bare-code end-to-end test wherever there is not one. A perfectly-tested affordance can still be perfectly mis-called, and `pipelex which <bare_code>` is the invocation the affordance exists to preserve.
-- [x] Re-run the README's demo probes (`wip/pipe-refs/probes/make-demos.sh`) and move the closures accordingly: `fallthrough` and `export-bypass` must now FAIL resolve; `ambiguous` must resolve to the own domain. Update whatever the probes/README record as expected outcomes.
-- [x] Gates checklist clean (all items).
-
-### ⛔ CHECKPOINT C2 — MANDATORY STOP
-
-The pipe rule is complete and self-consistent: canonical form and runtime agree, and hand-typed codes still work through a named door.
-
-- [x] Update the Status block (OQ2/OQ3 rulings, the DRY ruling, surprises, corpus fallout).
-- [x] Record status in the design doc's Phase 2 section (`build-time-qualification.md` → "Phase 2 outcome (C2)").
-- [x] Update README §2's table — marked HISTORICAL with a banner rather than rewritten, and §3 gained a re-measured table.
-- [x] Update the `docs/` pages that describe bare-ref resolution, pipe lookup, or the entry surfaces touched here. `docs/building-methods/libraries.md` gained a "How a pipe reference resolves" section; `docs/contribute/hub-layering.md` gained the two new hub symbols and the in-body-vs-entry guidance (that page is a drift contract target and was reviewed and acked).
-- [x] Changelog entry under `[Unreleased]` noting the breaking language-behavior change. Also **removed** the superseded `[Unreleased]` entry describing the crate-wide rule this phase deletes — it never shipped, so leaving both would have published two contradictory claims.
-- [x] Commit — landed on a stacked branch (PR #1092) rather than the base one, since PR #1091 carries Phase 0+1 and the two merge together.
-- [x] STOP. Next session starts at Phase 3.
-
-⚠ **These boxes sat unticked while the Status block above declared C2 passed** — caught by a PR bot, not by me. A checkpoint that reports itself complete from one place while its own checklist says otherwise is exactly the contradiction a cold-starting session cannot resolve. Tick the checklist in the same edit that updates the Status block.
-
----
-
-## Phase 3 — the concept side and the footprint cleanups
-
-Same root cause as Phase 2 — crate-wide search where owner scope was meant — but an independent surface with its own caller sweep. Kept separate so the pipe fix has a finish line that does not depend on it.
-
-- [x] Collapse `ConceptLibrary.get_required_concept_from_concept_ref_or_code`'s `search_domain_codes` machinery (`pipelex/libraries/concept/concept_library.py` + `concept_provider_abstract.py`) into the entry-affordance shape decided in Phase 2. Landed as the `get_optional_entry_concept` / `get_required_entry_concept` pair; the required form replaces the old method on `ConceptProviderAbstract` 1:1.
-- [x] **Scope the concept lookup by package, not just domain.** `search_scope` is a single string derived from the resolved entry pipe — its domain, prefixed `alias->domain` when the caller invoked a dependency pipe. Dependency concepts are keyed `alias->domain.Concept`, so the scoped preference is a direct key construction; no child-library machinery needed. Unlike pipe-side OQ1 (deferred to packaging), the concept lookup is entry-only and its one call site holds the alias, so this was paid in full here.
-- [x] Exclude aliased dependency keys from the concept crate-wide search too (same reasoning as Phase 2). Mutation-checked.
-- [x] Delete the latent defects README §4 documents: both gone structurally — there is no per-domain walk left to die on a miss, and every escape is `ConceptLibraryConceptNotFoundError` (the class the `stuff_factory` handlers catch), ambiguity included. §4 marked HISTORICAL with the re-measured matrix appended (probe rewritten against the new affordance).
-- [x] Decide whether `pipeline_run_setup`'s own-domain-first ordering becomes meaningful or gets deleted along with the list parameter — **it became meaningful**: the scope preference fires BEFORE the crate-wide scan, so the entry pipe's own domain wins outright instead of being collected into an ambiguity raise. The list parameter is deleted from the whole public chain (`runner.py` constructor included — breaking, in the changelog); callers were swept, none supplied it in production.
-- [x] Relax `_pipe_codes_by_file`'s rename collision scope in `pipelex/pipeline/fixes/fix_loop.py` from crate-wide to per-domain. Files now carry their declared domain (`_FilePipeCodes`); a file with an unreadable domain conservatively collides with everything. ⚠ Two integration tests pinned the crate-wide scope and flipped: the rebuild-between-rounds pin moved to a same-domain fixture, and `test_strip_namespace_bails_on_cross_file_collision`'s other-domain arm became a convergence test.
-- [x] Tests: the resolution rows for concepts on the two-domain fixture (unit, `test_concept_library_entry_lookup.py`); ambiguity raises naming candidates; the package-scoped dependency-concept case (bare + dotted + exclusion); fix_loop independent renames across domains; an end-to-end wiring test (`test_entry_concept_scope.py`) that reddens if the scope threading is dropped anywhere in the chain; a characterization pin that `pipeline_run_setup` derives the scope from the entry pipe.
-- [x] Gates checklist clean (all items). Grants for the new entry-concept defs recorded before the first check; `.test_durations` reconciled against a full `-m ""` collection (renamed node ids and remapped param ids; the remaining orphans predate this branch).
-
-**Carry these forward from Phase 2 — each cost real time to learn:**
-
-- **A single-domain fixture cannot discriminate this rule.** Owner-scope and the crate-wide search agree on every input where only one domain exists, so a concept test without a competing sibling declaration passes just as happily under the rule being deleted. Mutation-check every resolution row: put the old rule back and confirm the row goes red.
-- **Mutate the wiring, not just the rule.** Removing the qualification from the *dependency* load path reddened nothing in the entire suite — every other test loads a single-domain library. Assume the same blind spot exists on the concept side and go looking for it deliberately.
-- **Run the whole suite, including `tests/e2e`.** Phase 2's fixture sweep collected failures from `tests/unit` + `tests/integration` only and shipped two e2e failures into a "green" checkpoint.
-- **A review finding that names a file and a line is a claim to verify.** Phase 2's batched-derivation item predicted the wrong consequence, and the first test written for it passed against the bug.
-- **Do not touch the working tree while `agent-test` runs**, and read the run's log rather than the harness's exit-code summary — one reported success over a log ending in `Error 1`.
-
-### ⛔ CHECKPOINT C3 — MANDATORY STOP
-
-The runtime is fully spec-compliant and self-consistent; only cross-repo work remains.
-
-- [x] Update the Status block and the design doc's Phase 3 section (`build-time-qualification.md` → "Phase 3 outcome (C3)").
-- [x] Re-run the README's probes and demos and confirm the post-change behavior matches the design's predictions. The concept-lookup-matrix probe was rewritten against the new affordance (the method it measured no longer exists) and its re-measured table appended to README §4, which is now marked HISTORICAL.
-- [x] Changelog entry for the concept-side behavior change (breaking: the `search_domain_codes` public parameter and the `ConceptProviderAbstract` method rename) and the `fix_loop` per-domain relaxation.
-- [x] Commit.
-- [x] STOP. End the session. Next session starts at Phase 4a.
-
-**Post-C3 review round (2026-08-13):** a medium code review of the C3 commit surfaced real gaps in the new affordance, fixed in a follow-up commit on the branch. A multi-domain dependency package's own concepts are now reachable by bare code from any of its entry pipes — the scoped preference probed exactly one key and the crate-wide scan excludes aliased keys, so the sibling-domain shape was unreachable; the pipe side's alias-scoped package search was ported over, with `alias->Concept` as its explicit spelling. Dotted refs now obey the same scope-wins precedence under a dependency scope instead of binding host-first (a host/dep domain-name collision would have bound the host concept silently, since compatibility short-circuits on equal `concept_ref`). The invalid-string escape joined miss and ambiguity on `ConceptLibraryConceptNotFoundError`, making the one-class claim actually true. The copy-paste `stuff_factory` handlers collapsed into one `_resolve_entry_concept` helper; `pipeline_run_setup` captures the caller's raw entry ref in its own local so the scope derivation no longer depends on `pipe_code`'s rebind order; the `fix_loop` bail message hedges the unreadable-domain case. Each behavioral fix mutation-checked.
-
----
-
-## Phase 4a — cross-repo, release-independent
-
-These need no published `pipelex`. They can land as soon as Phase 3 is committed.
-
-- [x] `mthds/` — additive clarification at § *Resolution Order for Bare Pipe References*: no-fall-through is what makes `[exports]` enforceable, so the next reader does not mistake the rule for a lookup convenience. No normative change. Landed 2026-08-13 in `mthds/` on branch `docs/bare-pipe-ref-no-fall-through` (off `dev`): an admonition note in `docs/spec/namespace-resolution.md` + a changelog entry; `make docs-check` (strict) passes. Not pushed — no PR opened without being asked. *(The design doc's "mthds/ last" ordering came from deferred-review-observations §4, whose constraint was D-1's domain_hint question — answered and subsumed in Phase 2, so the ordering dissolved and this plan's 4a placement governs.)*
-- [ ] Add the new hub accessor to the transport boundary spec (workspace-level; exact path in the workspace private notes). The prose spec is a doc edit; its verifying test lands in 4b, and the two must land together per the spec/conformance sync rule — so hold this until 4b is ready to go with it.
-
-## Phase 4b — cross-repo, gated on a published `pipelex`
-
-**Gate:** every item below needs a `pipelex` release carrying the new `interpreter_hub` accessor, installable by the sibling repo. Cut that release first. Opening these PRs beforehand produces red CI for a reason unrelated to the change.
-
-- [ ] our cross-repo spec suite — executable conformance cases for the resolution rows (own-only, sibling-only, both-declare, nowhere) and the export-bypass closure, on a two-domain fixture. Reuse the fixture built in Phase 2.
-- [ ] our cross-repo spec suite — add the new hub accessor to the transport allowed-surface test, landing together with the spec doc edit from 4a (exact paths and the current state of that test in the workspace private notes).
-- [ ] Run the spec suite's spec-link checker — must pass.
-- [ ] the transport layer that is not open core — migrate its host-side bridge's payload-supplied lookup to the new accessor (that code is entry-shaped; `get_required_pipe`'s pinned signature is untouched).
-- [ ] `pipelex-cookbook/` — qualify the first reference that leans on fall-through: `presentation.present_as_markdown` in `examples/wip/advisory_board/bundle.mthds`. Verify the example still validates and runs against the updated runtime.
-- [ ] `cocode/` — qualify the second: `changelog.format_changelog_as_markdown` in `cocode/pipelines/swe_diff/changelog_enhanced.mthds` (a shipped CLI — see `wip/pipe-refs/corpus-measurement.md`). Verify the pipeline still validates against the updated runtime.
-- [ ] **`search_domain_codes` consumer sweep beyond the transport bridge.** Found by enumerating the workspace (the transport item above covers only `pipelex-server/transport/`): `pipelex-api/api/routes/pipelex/pipeline.py` still passes the deleted `search_domain_codes=` kwarg to `pipeline_run_setup` — a `TypeError` on every execution request the moment the pin moves (and remember: its openapi-check runs under `make check` only, so an agent-gate-green bump still fails CI); `pipelex-js` mirrors the lookup semantics in `packages/runtime/src/library/live-library.ts` and drives it from `scripts/python-live-library-oracle.py` (semantic parity, not just a kwarg); `pipelex-mistralai-workflows` names it in integration tests; the demo repos (`pipelex-demo-mistral`, `pipelex-demo-vibe`) use it in example workflows. Each needs the entry-affordance/`search_scope` migration or the kwarg dropped.
-- [ ] **Aliased-entry `search_scope` wiring test.** The package-fixture conformance work above must also pin the run-setup wiring: invoke a dependency pipe as the entry via `alias->domain.pipe`, supply a bare envelope concept declared only in the dependency, and assert it resolves. Today no test invokes an entry pipe through an alias end-to-end, so deleting the `has_cross_package_prefix` branch in `pipeline_run_setup` (or capturing `raw_entry_ref` after `pipe_code` rebinds) reddens nothing.
-- [ ] **Error-surface sweep.** Run `make generate-error-identity` and `make generate-error-pages`, review the identity diff, and grep the TypeScript consumers for any changed or newly-introduced `error_type` literal — `mthds-starter-js/src/lib/errors.ts`, `pipelex-starter-js/src/lib/errors.ts`, `vscode-pipelex`'s `cliValidationBackend.test.ts`, and the internal playground app's graph route. The class name is a wire string; those repos switch on the literal and fall through to a generic branch without failing to compile. No Python tool will point at this.
-- [ ] Changelog entries in each touched repo noting the breaking language-behavior change, per each repo's convention (skip `wip/` docs in changelogs).
-
-### ⛔ CHECKPOINT C4 — MANDATORY STOP (final)
-
-- [ ] Update the Status block; all phases complete.
-- [ ] Close `wip/pipe-refs/` with a final status note in the design doc and README.
-- [ ] Fold the outcome into the parity track's records (`wip/parity/`).
-- [ ] Commit; prepare PRs per repo as instructed by the user — do not push or open PRs without being asked.
-- [ ] STOP. The work is done; anything further (release sequencing before the packaging system) is a separate track.
-
----
-
-## Phase dependency map
-
-```
-Phase 0 (OQ1 gate + corpus measurement)
- |
- | a negative OQ1 stops everything
- v
-Phase 1 (extract the pass — pure refactor) <-- safe handoff point
- |
- v
-Phase 2 (flip the rule + strict lookup, together) <-- the branch's reason to exist
- |
- +----------------------------+
- | |
- v v
-Phase 3 (concept side, Phase 4a (mthds/ clarification —
- fix_loop) release-independent)
- | |
- +----------------------------+
- |
- v requires a published pipelex carrying the accessor
- Phase 4b (spec suite + transport + cookbook/cocode + error sweep)
-```
-
-Lane A: Phase 0 → 1 → 2 → 3 (sequential — all touch `pipelex/libraries/`). Lane B: Phase 4a (independent once Phase 2 lands; touches `mthds/` and the workspace-level boundary spec). Lanes A and B share no module directory. Phase 4b joins both and is gated on a release, so it cannot run in parallel with anything.
-
-## GSTACK REVIEW REPORT
-
-| Review | Trigger | Why | Runs | Status | Findings |
-|--------|---------|-----|------|--------|----------|
-| CEO Review | `/plan-ceo-review` | Scope & strategy | 0 | — | — |
-| Codex Review | `/codex review` | Independent 2nd opinion | 0 | — | — |
-| Eng Review | `/plan-eng-review` | Architecture & tests (required) | 1 | CLEAR (PLAN) | 16 issues, 0 critical gaps left open |
-| Design Review | `/plan-design-review` | UI/UX gaps | 0 | — | — |
-| DX Review | `/plan-devex-review` | Developer experience gaps | 0 | — | — |
-
-**CODEX:** outside voice ran with repo access and surfaced findings the plan-text review could not reach — batched sub-pipe code derivation producing `domain.foo_batch`, transported `PipeFunc` carrying bare codes into the strict lookup, an undefined crate fingerprint contract, dependency concepts losing package identity, aliased dependency keys polluting the crate-wide search, and a stale `(done)` marker on the final checkpoint. All folded into the phases above.
-
-**CROSS-MODEL:** one tension. The eng review treated the repo's written no-backward-compatibility principle as settling the breaking-change question and invested in the error message as the migration path; Codex argued the decision was unevidenced because the fall-through corpus excludes customer bundles. Resolved by holding the no-deprecation posture while adding a bounded Phase 0 corpus measurement — the principle governs whether to break, the measurement governs how well the break is communicated.
-
-**VERDICT:** ENG CLEARED — ready to implement, starting at Phase 0.
-
-NO UNRESOLVED DECISIONS
diff --git a/wip/pipe-refs/normalize-crate-drops-python-sources-deferred.md b/wip/pipe-refs/normalize-crate-drops-python-sources-deferred.md
deleted file mode 100644
index 70c938585..000000000
--- a/wip/pipe-refs/normalize-crate-drops-python-sources-deferred.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# Deferred: `normalize_crate` drops `python_sources`
-
-**Status.** Noticed 2026-08-11 during Phase 1 of [implementation-plan.md](implementation-plan.md), while auditing the crate copy path for dropped fields (the plan asks for that audit precisely so a new pass does not reproduce the bug). Pre-existing, unrelated to the pipe-refs change, and deliberately **not** fixed on `fix/Pipe-refs` — the fix is a one-line addition whose *consequences* need a decision this branch is not the place to take.
-
-## What happens
-
-`normalize_crate` builds its result with an explicit `LibraryCrate(...)` constructor listing the fields it carries over. `python_sources` is not among them, so a crate that arrived carrying customer Python source returns without it. Every other envelope field (`domains`, `source_map`) is carried explicitly; `python_sources` is the one omission, which reads like an oversight rather than a decision — there is no comment claiming the drop is intended.
-
-It is reachable, not theoretical: all three `normalize_crate` call sites take their crate from `LibraryManager.get_crate`, which populates `python_sources` from `_library_sources`. Whenever a library was loaded in sandbox-hosted mode, the input crate has the field and the output does not.
-
-## Why the obvious fix is not a drive-by
-
-Adding `python_sources=crate.python_sources` changes what three surfaces emit:
-
-- `pipelex resolve` prints the encoded crate to stdout. Today the customer's `.py` source is not in that output; after the fix it would be.
-- The `/resolve` API route returns the normalized crate in its response body.
-- `emit_types` reads it (harmless — it only projects concepts), but the stamped `codegen.lock` records `crate_fingerprint`, which is unaffected either way: `python_sources` is deliberately excluded from both digest schemes.
-
-So the fix moves customer Python source into a CLI stdout stream and an HTTP response body. That may well be correct — the field exists precisely so source can travel with the method — but it is a disclosure-surface decision, not a typo correction, and it belongs with whoever owns the sandbox-hosted transport contract.
-
-## Why Phase 1 could leave it alone safely
-
-The extracted qualification pass does **not** reproduce the bug, and for a stronger reason than the one first written here: `qualify_crate` returns a `QualifiedCrateContent` — just the rewritten `concepts` and `pipes` — never a `LibraryCrate`. There is no envelope for it to rebuild, so there is no field for it to drop. The class of bug is unrepresentable in the pass rather than merely avoided by it, which is why this note is a deferral and not a blocker.
-
-*(An earlier draft of this paragraph credited `crate.model_copy(update=…)` for preserving the envelope. That described the pass's first cut, which returned a crate; review pushed back on that return type and it changed. The claim is recorded here as corrected rather than silently swapped, because "why the pass is safe" is exactly the sentence a future reader will lean on.)*
-
-## What a fix would need
-
-1. Rule on whether the normalized crate is allowed to carry customer source, per surface (CLI stdout, `/resolve` response, in-process consumers). The answer may differ by surface, in which case the field is dropped at the *presentation* boundary rather than in `normalize_crate`.
-2. Whichever way it goes, state it in `normalize_crate`'s docstring, so the next reader finds a decision instead of an omission.
diff --git a/wip/pipe-refs/normalized-crate-consumers.md b/wip/pipe-refs/normalized-crate-consumers.md
deleted file mode 100644
index 3ef11d911..000000000
--- a/wip/pipe-refs/normalized-crate-consumers.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# Who consumes normalized-crate output
-
-**Status.** Inventoried 2026-08-11 for Phase 1 of [implementation-plan.md](implementation-plan.md). The plan asks for this before the Phase 2 rule flip, because the flip changes what a normalized in-body ref *says*: a bare `present_as_markdown` that today normalizes to the sibling domain's `presentation.present_as_markdown` will normalize to the owner's `orchestrator.present_as_markdown`. Anything that persists, stamps, or compares that output moves with it.
-
-## The headline: nothing writes a normalized crate back to `.mthds`
-
-This was the plan's stated worry — "if formatting persists a qualified ref into a user's source file, the flip rewrites their code, not just its in-memory form". It does not happen. No code path encodes a crate into `.mthds` and writes it over a source file. The crate encoder is used for stdout only (`pipelex resolve`); the codegen projections consume a normalized crate but encode a **lock**, not a crate.
-
-The one command that *does* rewrite user `.mthds` files is `pipelex fix`, and it does not go through a crate at all: `fix_loop` edits a tomlkit DOM of the user's own file, applying ops planned from validation-error data. Two properties keep it clear of this change:
-
-- The ops that write a ref (`SET_KEY` into `["pipe", <code>, "inputs"]`) write **concept** refs, which are already qualified at build time today and are unaffected by Phase 2.
-- **No fix op writes an *in-body* pipe ref.** `RENAME_TABLE_KEY` renames a pipe's own table key; nothing sets a `steps[].pipe`, a branch, an outcome, or a `branch_pipe_code`. One fix op *does* write a pipe ref, and it is worth naming rather than glossing: `strip-namespace` plans a root `SET_KEY` of `main_pipe`. That is an **entry-point** ref, not an in-body one, and it *strips* a same-domain prefix rather than adding one — so it cannot rewrite an author's bare in-body spelling into a qualified one, which is the hazard this section is actually about. (`planner.py`'s `_plan_strip_namespace` says so in its own docstring: only the declaration key and `main_pipe` are ever stripped, because internal refs keep resolving without a rewrite.)
-
-That second property is load-bearing and worth restating in Phase 2: it holds today, and a new fix kind that writes a pipe ref would newly rewrite an author's bare spelling into a qualified one. It is a property to re-check, not an invariant to assume.
-
-## The consumers
-
-Three entry points call `normalize_crate`; everything else is downstream of them.
-
-| Call site | What it feeds | What the flip does to it |
-| --- | --- | --- |
-| `pipelex/cli/commands/crate_loading.py` → `load_normalized_crate` | `pipelex resolve` (encodes to stdout), the `pipelex codegen` family (`types`, `inputs`), and their agent-CLI twins | `resolve` prints qualified refs where the author wrote bare — already true today for concept refs and for cross-domain pipe refs; the flip changes *which* domain a bare pipe ref prints as |
-| `pipelex/pipeline/resolve_bundle.py` → `resolve_crate_from_contents` | the `/resolve` API route and the agent-CLI resolve path | same, over the wire |
-| `pipelex/cli/commands/build/runner/_runner_core.py` | `emit_types` → `write_stamped_projection` into `structures/` | the stamp is the concern, see below |
-
-## The stamped artifacts are the thing that actually churns
-
-`write_stamped_projection` records `crate_fingerprint` (the normalized, D2-scope digest) into `codegen.lock` beside the emitted `structures.py`. Qualification is part of the hashed content, so **every** stamped projection in the repo and in downstream repos gets a new fingerprint the moment the rule flips — even for a library whose emitted Python is byte-identical, because the digest covers pipes and domains, not just the concepts the types projection reads.
-
-Practical consequence for Phase 2: expect lock-file churn wherever a stamped projection is committed, and regenerate rather than hand-edit. This is also the mechanism by which the flip reaches `pipelex-cookbook` and any starter repo carrying a committed `codegen.lock`.
-
-## What the corpus says about all this
-
-Measured while proving the Phase 1 extraction behavior-identical: applying the Phase 2 rule to all 54 crates buildable from this repo's `.mthds` files changes **nothing** — every normalized output is byte-identical under both rules. Every bare in-body pipe ref in this repo already resolves within its own domain.
-
-That is a useful de-risking result for the *repo's* artifacts, and simultaneously the sharpest possible argument for the plan's two-domain fixture requirement: a test suite grounded in this corpus cannot tell the two rules apart, so it would pass just as happily under the rule being deleted. The discriminating cases have to be built by hand.
diff --git a/wip/pipe-refs/plan-docs-have-no-drift-contract.md b/wip/pipe-refs/plan-docs-have-no-drift-contract.md
deleted file mode 100644
index 39be2ede8..000000000
--- a/wip/pipe-refs/plan-docs-have-no-drift-contract.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# Plan and `wip/` docs go stale the way `docs/` used to, and nothing catches it
-
-**Status: an observation with a concrete proposal, deliberately not acted on in this branch.** Recorded because the evidence for it was collected by accident and would be expensive to reconstruct.
-
-## The evidence
-
-Across three PR-review rounds on the pipe-refs branch, review found four documentation claims that were **true when written and went false when something downstream changed**. None was careless writing; each described a real thing accurately at the time.
-
-| Claim | What made it false |
-|---|---|
-| "`qualify_crate` copies the envelope with `crate.model_copy(update=…)`" | The pass's return type changed from `LibraryCrate` to `QualifiedCrateContent` after a review push-back. The sentence described the first cut. **It was stale in three places; the bot found one.** |
-| "No fix op writes a pipe ref" | Never true, but written from a partial read of the fix planner — `strip-namespace` plans a root `main_pipe` `SET_KEY`. |
-| `crate_normalization.py:290` / `:135`, `sub_pipe.py:161`, `pipe_library.py:81` | Line-number pointers into code **this same branch was editing**. Two of them went stale between Phase 1 and Phase 2 — inside one branch, in one sitting. |
-| "Deliberately left for Phase 2: …" | Survived Phase 2's completion, so the plan simultaneously declared a phase complete and assigned it unfinished work. |
-
-Plus one structural version of the same failure: the Status block declared checkpoint C2 passed while C2's own checklist sat entirely unticked. Every item was in fact done — the two statements were written at different moments and never reconciled.
-
-## Why this is a systems observation and not a scolding
-
-`docs/` has a mechanism for exactly this: **drift contracts** (`drift.toml`, `docs/contribute/drift-contracts.md`). A contract binds a set of trigger files to a set of review targets; when the triggers change, the contract opens and the change cannot land until someone reviews the targets and records an honest rationale. It works — on this very branch it opened twice, and the `hub-layering` one caught a symbol table that really had gone stale.
-
-**`TODOS.md` and `wip/` are not under any contract.** They are precisely the documents that describe code in motion, written while the code is still moving, and they are the only prose in the repo with no staleness gate at all. The failure rate above is what that predicts.
-
-## The proposal
-
-A `plan-docs` drift contract, roughly:
-
-- **triggers:** the source files a plan names as its subject — for the pipe-refs work, `pipelex/libraries/crate_qualification.py`, `crate_normalization.py`, `pipe/pipe_library.py`, `library.py`.
-- **targets:** `TODOS.md` and the feature's `wip/<feature>/` directory.
-
-The rationale requirement is the useful part, not the mechanism: it forces someone to re-read the plan against the code it claims to describe, at the moment the code moves.
-
-## Why it is NOT being done here
-
-Three honest reasons, in order of weight:
-
-1. **It is out of scope.** This branch changes reference resolution. Adding repo-wide review machinery to it would be exactly the over-engineering the maintainer asked to avoid, and it would arrive bundled with a breaking language change where it cannot be evaluated on its own merits.
-2. **The trigger set is per-feature, and that is a design question.** A generic "any `pipelex/` change opens the plan contract" would fire on every commit and be acked reflexively, which is worse than nothing — a gate that is always open teaches people to close it without looking. Getting it right means deciding how a plan declares its own subject, and that deserves its own thinking.
-3. **Two cheaper habits capture most of the value**, and both are already recorded in `TODOS.md`'s Phase 3 section:
- - **Do not write line numbers into prose about code you are editing.** Name the symbol. A line number is a fact with a half-life measured in commits; a function name survives a refactor and is what the reader greps for anyway.
- - **Tick a checklist in the same edit that updates the summary claiming it is done.** The two statements are only worth something when they cannot disagree, and they can only disagree if they are written at different times.
-
-## If someone picks this up
-
-Start with the second habit rather than the machinery — a `plan-docs` contract that fires on a plan whose checkboxes and Status block already agree is catching a much rarer bug.
-
-### Already measured
-
-Across `wip/**/*.md` plus `TODOS.md`, counting only pointers whose file exists in this repo:
-
-- **123** in-repo `path.py:NNN` pointers.
-- **4** point past the end of the file they name, so they are *provably* stale:
- - `wip/refactoring/modularity-refactors.md` → `pipelex/pipelex.py:500` (file has 352 lines)
- - `wip/inputs/yesno-implementation-plan.md` and `wip/inputs/datetime-implementation-plan.md` → `pipelex/core/registry_models.py:92` (57 lines)
- - `wip/inputs/smart-inputs-implementation-plan.md` → `pipelex/cli/commands/run/_inputs_path_resolver.py:75` (69 lines)
-
-**4 is a floor, not the count.** Out-of-range is the only staleness a script can prove cheaply; a pointer that has drifted to the wrong line *within* the file looks perfectly healthy to this check and is the more common case — the pipe-refs pointers that a reviewer caught were all in range and all wrong. Read the number as "at least 4 of 123, and the real figure needs a human or a symbol-resolving check".
-
-These four belong to other features and are left alone here; the point of measuring was to establish whether the pattern is local to one plan (it is not) before proposing repo-wide machinery for it.
-
-A cheaper variant worth considering before the full contract: have the check resolve the *symbol* named next to the pointer rather than the line, which turns "is this line still there" into "is this still where that function lives" — the question the reader actually has.
diff --git a/wip/pipe-refs/probes/classify-bare-refs.py b/wip/pipe-refs/probes/classify-bare-refs.py
deleted file mode 100644
index 5dae53ee2..000000000
--- a/wip/pipe-refs/probes/classify-bare-refs.py
+++ /dev/null
@@ -1,287 +0,0 @@
-# ruff: file-ignore[implicit-namespace-package] - a standalone probe script, deliberately not a package
-"""Classify every bare in-body reference in a corpus of `.mthds` bundles.
-
-Reads TOML and nothing else — no `pipelex` import, no library load — so the classification is a
-property of the authored text, not of any resolver's behaviour. That is the point: it measures what
-the corpus *asks for*, which is what decides how expensive each direction of the bare-ref fix is.
-
-For every merge unit (see `merge_unit_of`), the probe builds `code -> {domains that declare it}` and
-puts each bare in-body reference in one of four buckets:
-
- own-only the referring domain declares it, nobody else spec and runtime agree
- sibling-only ONLY some other domain declares it spec: ERROR, runtime: resolves
- both the referring domain AND another declare it spec: the own one, runtime: RAISES
- nowhere nobody declares it both error
-
-`sibling-only` counts the references that would BREAK if the runtime were tightened to the spec.
-`both` counts the references that are broken TODAY and would START WORKING under the spec.
-
-Usage:
-
- python wip/pipe-refs/probes/classify-bare-refs.py <root> [<root> ...]
-
-Each root is a directory tree to walk. Pass `.` for this repository's own corpus; pass sibling
-checkouts to widen it.
-"""
-
-import pathlib
-import sys
-import tomllib
-from collections import defaultdict
-from typing import Any, NamedTuple
-
-# Native concept codes take priority over any declaration (mthds/docs/spec/namespace-resolution.md
-# § "Resolution Order for Bare Concept References", step 1), so a bare `Text` is never a lookup.
-NATIVE_CONCEPT_CODES = frozenset(
- {
- "Dynamic",
- "Text",
- "Image",
- "Document",
- "Html",
- "TextAndImages",
- "Number",
- "YesNo",
- "Date",
- "Time",
- "Page",
- "JSON",
- "SearchResult",
- "Anything",
- "Composite",
- }
-)
-
-# pipelex/pipe_controllers/condition/special_outcome.py
-SPECIAL_OUTCOMES = frozenset({"fail", "continue"})
-# The only fields where `fail`/`continue` are special outcomes rather than pipe refs.
-OUTCOME_FIELDS = frozenset({"outcome", "default_outcome"})
-
-MANIFEST_NAME = "METHODS.toml"
-SKIPPED_DIR_NAMES = frozenset({".git", ".venv", "node_modules", "__pycache__", "dist", "build"})
-BUCKETS = ("own-only", "sibling-only", "both", "nowhere")
-REPORTED_BUCKETS = ("sibling-only", "both", "nowhere")
-
-
-class Bundle(NamedTuple):
- path: pathlib.Path
- domain: str
- pipes: dict[str, Any]
- concepts: dict[str, Any]
-
-
-class Reference(NamedTuple):
- code: str
- where: str
-
-
-def merge_unit_of(path: pathlib.Path, *, root: pathlib.Path) -> pathlib.Path:
- """The directory whose bundles share one namespace with this one.
-
- A package (a tree with a `METHODS.toml` manifest) merges as a whole; a loose bundle merges with
- the other bundles sitting beside it, which is how a `-L <dir>` load behaves. This is an
- approximation of the loader, and it is the probe's main limitation — see the doc's "What this
- measurement does not cover".
- """
- for ancestor in [path.parent, *path.parent.parents]:
- if (ancestor / MANIFEST_NAME).is_file():
- return ancestor
- if ancestor == root:
- break
- return path.parent
-
-
-def strip_multiplicity(ref: str) -> str:
- """Drop the presence and multiplicity markers a concept ref may carry (`Foo[]?` -> `Foo`)."""
- bare = ref.strip()
- while bare.endswith(("?", "!")):
- bare = bare[:-1]
- if bare.endswith("]") and "[" in bare:
- bare = bare[: bare.rindex("[")]
- return bare
-
-
-def bare_pipe_references(pipe_body: dict[str, Any]) -> list[Reference]:
- """Every in-body pipe reference this pipe names, in the blueprints' authored field names."""
- found: list[Reference] = []
- for step in pipe_body.get("steps") or []:
- if isinstance(step, dict) and isinstance(step.get("pipe"), str):
- found.append(Reference(code=step["pipe"], where="step"))
- for branch in pipe_body.get("branches") or []:
- if isinstance(branch, dict) and isinstance(branch.get("pipe"), str):
- found.append(Reference(code=branch["pipe"], where="branch"))
- outcomes = pipe_body.get("outcomes")
- if isinstance(outcomes, dict):
- for outcome_ref in outcomes.values():
- if isinstance(outcome_ref, str):
- found.append(Reference(code=outcome_ref, where="outcome"))
- for field_name in ("default_outcome", "branch_pipe_code"):
- field_value = pipe_body.get(field_name)
- if isinstance(field_value, str):
- found.append(Reference(code=field_value, where=field_name))
- # The fail/continue exemption belongs to outcome fields only (see crate_qualification.qualify_outcome):
- # a step, branch or batch target may genuinely name a pipe called `continue`.
- return [ref for ref in found if not (ref.where in OUTCOME_FIELDS and ref.code in SPECIAL_OUTCOMES)]
-
-
-def _structure_field_references(field_value: Any, *, where: str) -> list[Reference]:
- if not isinstance(field_value, dict):
- return []
- found: list[Reference] = []
- for key in ("concept_ref", "item_concept_ref"):
- nested = field_value.get(key)
- if isinstance(nested, str):
- found.append(Reference(code=nested, where=where))
- return found
-
-
-def bare_concept_references(bundle: Bundle) -> list[Reference]:
- """Every in-body concept reference the bundle names: pipe inputs/output, refines, structures."""
- found: list[Reference] = []
- for pipe_code, pipe_body in bundle.pipes.items():
- if not isinstance(pipe_body, dict):
- continue
- inputs = pipe_body.get("inputs")
- if isinstance(inputs, dict):
- for input_ref in inputs.values():
- if isinstance(input_ref, str):
- found.append(Reference(code=input_ref, where=f"{pipe_code}.inputs"))
- output = pipe_body.get("output")
- if isinstance(output, str):
- found.append(Reference(code=output, where=f"{pipe_code}.output"))
- for concept_code, concept_body in bundle.concepts.items():
- if not isinstance(concept_body, dict):
- continue
- refines = concept_body.get("refines")
- if isinstance(refines, str):
- found.append(Reference(code=refines, where=f"{concept_code}.refines"))
- structure = concept_body.get("structure")
- if isinstance(structure, dict):
- for field_name, field_value in structure.items():
- found.extend(_structure_field_references(field_value, where=f"{concept_code}.{field_name}"))
- return found
-
-
-def read_bundles(root: pathlib.Path) -> dict[pathlib.Path, list[Bundle]]:
- """Group every readable `.mthds` bundle under `root` by the merge unit it belongs to."""
- by_unit: dict[pathlib.Path, list[Bundle]] = defaultdict(list)
- for path in sorted(root.rglob("*.mthds")):
- # Root-relative parts only: a root that itself sits under a dir named `build`/`dist`/…
- # must not silently skip every bundle.
- if any(part in SKIPPED_DIR_NAMES for part in path.relative_to(root).parts):
- continue
- try:
- document = tomllib.loads(path.read_text(encoding="utf-8"))
- except (OSError, UnicodeDecodeError, tomllib.TOMLDecodeError):
- # A bundle this probe cannot parse is not this measurement's subject.
- continue
- domain = document.get("domain")
- if not isinstance(domain, str):
- continue
- pipes = document.get("pipe")
- concepts = document.get("concept")
- by_unit[merge_unit_of(path, root=root)].append(
- Bundle(
- path=path,
- domain=domain,
- pipes=pipes if isinstance(pipes, dict) else {},
- concepts=concepts if isinstance(concepts, dict) else {},
- )
- )
- return by_unit
-
-
-class Tally:
- def __init__(self, *, label: str) -> None:
- self.label = label
- self.counts: dict[str, int] = defaultdict(int)
- self.hits: dict[str, list[str]] = defaultdict(list)
-
- def record(self, *, bucket: str, detail: str) -> None:
- self.counts[bucket] += 1
- if bucket in REPORTED_BUCKETS:
- self.hits[bucket].append(detail)
-
- def total(self) -> int:
- return sum(self.counts.values())
-
- def report(self) -> None:
- print(f"\n{self.label}: {self.total()}")
- for bucket in BUCKETS:
- print(f" {bucket:14} {self.counts[bucket]}")
- for bucket in REPORTED_BUCKETS:
- print(f" --- {bucket} ---")
- for detail in self.hits[bucket] or ["(none)"]:
- print(f" {detail}")
-
-
-def classify(*, declared: dict[str, set[str]], domain: str, code: str) -> str:
- owners = declared.get(code, set())
- if not owners:
- return "nowhere"
- if owners == {domain}:
- return "own-only"
- if domain in owners:
- return "both"
- return "sibling-only"
-
-
-def main(roots: list[str]) -> None:
- pipe_tally = Tally(label="bare in-body PIPE refs")
- concept_tally = Tally(label="bare in-body CONCEPT refs")
- units_read = 0
- bundles_read = 0
-
- for raw_root in roots:
- root = pathlib.Path(raw_root).resolve()
- if not root.is_dir():
- msg = f"root '{raw_root}' is not a directory"
- raise SystemExit(msg)
- by_unit = read_bundles(root)
- units_read += len(by_unit)
- for bundles in (by_unit[unit_dir] for unit_dir in sorted(by_unit)):
- bundles_read += len(bundles)
- declared_pipes: dict[str, set[str]] = defaultdict(set)
- declared_concepts: dict[str, set[str]] = defaultdict(set)
- for bundle in bundles:
- for pipe_code in bundle.pipes:
- declared_pipes[pipe_code].add(bundle.domain)
- for concept_code in bundle.concepts:
- declared_concepts[concept_code].add(bundle.domain)
-
- for bundle in bundles:
- location = bundle.path.relative_to(root) if root in bundle.path.parents else bundle.path
- for pipe_code, pipe_body in bundle.pipes.items():
- if not isinstance(pipe_body, dict):
- continue
- for reference in bare_pipe_references(pipe_body):
- if "->" in reference.code or "." in reference.code:
- continue
- bucket = classify(declared=declared_pipes, domain=bundle.domain, code=reference.code)
- owners = sorted(declared_pipes.get(reference.code, set()))
- pipe_tally.record(
- bucket=bucket,
- detail=f"{location}: {bundle.domain}.{pipe_code} -> '{reference.code}' declared in {owners}",
- )
- for reference in bare_concept_references(bundle):
- code = strip_multiplicity(reference.code)
- if "->" in code or "." in code or code in NATIVE_CONCEPT_CODES:
- continue
- bucket = classify(declared=declared_concepts, domain=bundle.domain, code=code)
- owners = sorted(declared_concepts.get(code, set()))
- concept_tally.record(
- bucket=bucket,
- detail=f"{location}: {bundle.domain}.{reference.where} -> '{code}' declared in {owners}",
- )
-
- print(f"roots: {', '.join(roots)}")
- print(f"merge units: {units_read}")
- print(f"bundles read: {bundles_read}")
- pipe_tally.report()
- concept_tally.report()
-
-
-if __name__ == "__main__":
- if len(sys.argv) < 2:
- raise SystemExit(__doc__)
- main(sys.argv[1:])
diff --git a/wip/pipe-refs/probes/concept-lookup-matrix.py b/wip/pipe-refs/probes/concept-lookup-matrix.py
deleted file mode 100644
index cbbdb49af..000000000
--- a/wip/pipe-refs/probes/concept-lookup-matrix.py
+++ /dev/null
@@ -1,64 +0,0 @@
-# ruff: file-ignore[implicit-namespace-package] - a standalone probe script, deliberately not a package
-"""What the concept entry lookup actually does with a bare code.
-
-Originally written against `ConceptLibrary.get_required_concept_from_concept_ref_or_code` and its
-`search_domain_codes` list — the reader README §4 documents as broken (the multi-domain walk died
-on its first miss and escaped as the wrong exception class). Phase 3 replaced that method with the
-entry affordance `get_required_entry_concept(code, search_scope=...)`; this probe now measures the
-replacement over the same library shapes, so the §4 table can be re-measured after the change.
-
-Builds a two-domain library in memory and asks for a bare concept code under each shape of
-`search_scope`. No bundle files, no runtime boot — the library object is enough, because the
-lookup is pure.
-
- .venv/bin/python wip/pipe-refs/probes/concept-lookup-matrix.py # needs the venv: this probe imports pipelex
-
-Read the output against the entry-affordance semantics (a hand-supplied code is NOT an in-body
-reference): the entry pipe's own scope wins, an unambiguous crate-wide match is served, ambiguity
-refuses to guess, and a genuine miss raises the class every caller actually catches.
-"""
-
-from pipelex.core.concepts.concept import Concept
-from pipelex.libraries.concept.concept_library import ConceptLibrary
-
-STRUCTURE_CLASS_NAME = "TextContent"
-
-
-def library_declaring(*declarations: tuple[str, str]) -> ConceptLibrary:
- library = ConceptLibrary.make_empty()
- for domain_code, concept_code in declarations:
- library.add_new_concept(
- Concept(
- code=concept_code,
- domain_code=domain_code,
- description="probe concept",
- structure_class_name=STRUCTURE_CLASS_NAME,
- )
- )
- return library
-
-
-def attempt(*, label: str, library: ConceptLibrary, code: str, search_scope: str | None) -> None:
- try:
- found = library.get_required_entry_concept(code, search_scope=search_scope)
- except BaseException as exc: # ruff: ignore[blind-except] - naming *which* error escapes IS the measurement here
- print(f"{label:46} -> {type(exc).__name__}: {exc}")
- else:
- print(f"{label:46} -> resolved {found.concept_ref}")
-
-
-def main() -> None:
- both = library_declaring(("alpha", "Memo"), ("beta", "Memo"))
- only_beta = library_declaring(("beta", "Memo"))
-
- print("bare code 'Memo'; the entry pipe is in domain 'alpha'\n")
- attempt(label="both declare | scope=None", library=both, code="Memo", search_scope=None)
- attempt(label="only beta | scope=None", library=only_beta, code="Memo", search_scope=None)
- attempt(label="both declare | scope=alpha", library=both, code="Memo", search_scope="alpha")
- attempt(label="only beta | scope=alpha", library=only_beta, code="Memo", search_scope="alpha")
- attempt(label="only beta | scope=beta", library=only_beta, code="Memo", search_scope="beta")
- attempt(label="nowhere | scope=alpha", library=ConceptLibrary.make_empty(), code="Memo", search_scope="alpha")
-
-
-if __name__ == "__main__":
- main()
diff --git a/wip/pipe-refs/probes/dep-subpipe-scope.py b/wip/pipe-refs/probes/dep-subpipe-scope.py
deleted file mode 100644
index ba14578c9..000000000
--- a/wip/pipe-refs/probes/dep-subpipe-scope.py
+++ /dev/null
@@ -1,193 +0,0 @@
-# ruff: file-ignore[implicit-namespace-package] - a standalone probe script, deliberately not a package
-"""OQ1: which library does a dependency pipe's bare sub-pipe ref resolve against?
-
-A dependency package is loaded into an isolated *child* library, and its pipes are ALSO registered
-in the host library under aliased keys (`alias->domain.code`). Two readers then look up the same
-authored bare sub-pipe ref, and the question this probe answers is whether they agree:
-
-- **validation** (`Library.validate_pipe_library_with_libraries`) special-cases a dependency pipe:
- for an aliased key, a bare sub-pipe code is looked up in the CHILD library;
-- **execution** (`SubPipe.run_pipe` -> `interpreter_hub.get_required_pipe`) has no such
- special-case: it asks the ambient current library — the HOST — with a strict key lookup and no
- fallback, so a bare code matches nothing there. (When this probe was first run, the host lookup
- instead ended in a crate-wide bare-code fall-through that explicitly SKIPPED `alias->` entries —
- same outcome for a dependency's bare ref, different mechanism.)
-
-The probe builds a dependency whose exported entry is a `PipeSequence` calling a bare same-domain
-helper, loads it through the real dependency loader, and asks both readers. It runs three shapes:
-
-1. no manifest exports (every dependency pipe public), host declares nothing;
-2. no manifest exports, host declares its OWN pipe under the same bare code — the case that decides
- between "fails loudly" and "silently runs the wrong pipe";
-3. manifest `[exports]` naming only the entry pipe — what a published package actually ships. The
- export filter drops the authored helper from the dependency's OWN child library, so this shape
- fails differently, and earlier, than shape 1.
-
-It also asks the host for the ref the build-time qualification pass WOULD produce
-(`dep_domain.helper`), which is the OQ1 go/no-go question.
-
- .venv/bin/python wip/pipe-refs/probes/dep-subpipe-scope.py # needs the venv: this probe imports pipelex
-
-No credentials and no inference backend are needed; nothing is executed, only resolved.
-"""
-
-from pathlib import Path
-from tempfile import TemporaryDirectory
-
-from mthds.package.dependency_resolver import ResolvedDependency
-from mthds.package.manifest.schema import MethodsManifest
-
-from pipelex.interpreter_hub import get_library_manager, scoped_current_library
-from pipelex.libraries.library import Library
-from pipelex.libraries.library_manager import LibraryManager
-from pipelex.mthds_parsing.parser import MthdsParser
-from pipelex.pipe_machinery.pipe_abstract import PipeAbstract
-from pipelex.pipelex import Pipelex
-
-ALIAS = "helper_dep"
-DEP_DOMAIN = "probe_dep_domain"
-HOST_DOMAIN = "probe_host_domain"
-BARE_HELPER_CODE = "probe_helper"
-
-# The dependency: an exported entry sequence whose only step is a BARE same-domain helper ref.
-DEP_MTHDS = f"""\
-domain = "{DEP_DOMAIN}"
-description = "Dependency whose entry pipe calls a bare same-domain helper"
-
-[pipe.probe_entry]
-type = "PipeSequence"
-description = "Entry point, calling a bare same-domain helper"
-inputs = {{ doc = "Text" }}
-output = "Text"
-steps = [{{ pipe = "{BARE_HELPER_CODE}", result = "helped" }}]
-
-[pipe.{BARE_HELPER_CODE}]
-type = "PipeLLM"
-description = "the DEPENDENCY's own helper"
-inputs = {{ doc = "Text" }}
-output = "Text"
-prompt = "Help with $doc, the dependency way"
-"""
-
-# A host that declares its own pipe under the SAME bare code as the dependency's helper.
-HOST_COLLIDING_MTHDS = f"""\
-domain = "{HOST_DOMAIN}"
-description = "Host declaring its own pipe under the dependency helper's bare code"
-
-[pipe.{BARE_HELPER_CODE}]
-type = "PipeLLM"
-description = "the HOST's unrelated pipe, which happens to share the bare code"
-inputs = {{ doc = "Text" }}
-output = "Text"
-prompt = "Help with $doc, the host way"
-"""
-
-
-def describe(pipe: PipeAbstract | None) -> str:
- if pipe is None:
- return "None"
- return f"{pipe.pipe_ref} <- {pipe.description}"
-
-
-def build_resolved_dep(dep_dir: Path, *, exported_pipe_codes: set[str] | None) -> ResolvedDependency:
- """`exported_pipe_codes=None` means no manifest exports — every pipe public."""
- dep_file = dep_dir / "dep.mthds"
- dep_file.write_text(DEP_MTHDS, encoding="utf-8")
- manifest = MethodsManifest(
- address="github.com/org/probe-helper-dep",
- version="1.0.0",
- description="Probe dependency package",
- )
- return ResolvedDependency(
- alias=ALIAS,
- address="github.com/org/probe-helper-dep",
- manifest=manifest,
- package_root=dep_dir,
- mthds_files=[dep_file],
- exported_pipe_codes=exported_pipe_codes,
- )
-
-
-def ask(*, label: str, library: Library, pipe_code: str) -> None:
- try:
- found = library.pipe_library.get_optional_pipe(pipe_code=pipe_code)
- except BaseException as exc: # ruff: ignore[blind-except] - naming *which* error escapes IS the measurement here
- print(f" {label:<58} -> {type(exc).__name__}: {exc}")
- else:
- print(f" {label:<58} -> {describe(found)}")
-
-
-def report(*, title: str, library: Library, library_id: str) -> None:
- print(f"\n===== {title} =====")
- print(" host pipe_library keys :", sorted(library.pipe_library.root))
- child_library = library.dependency_libraries[ALIAS]
- print(" child pipe_library keys:", sorted(child_library.pipe_library.root))
- print()
- print(" LOAD-TIME VERDICT — library.validate_library()")
- try:
- with scoped_current_library(library_id=library_id):
- library.validate_library()
- except BaseException as exc: # ruff: ignore[blind-except] - naming *which* error escapes IS the measurement here
- print(f" {'':<58} -> {type(exc).__name__}: {exc}")
- else:
- print(f" {'':<58} -> valid")
- print()
- print(f" VALIDATION reader — child library ({BARE_HELPER_CODE!r}: authored spelling; qualified: what validation asks post-pass)")
- ask(label="child.get_optional_pipe(bare) [pre-qualification spelling]", library=child_library, pipe_code=BARE_HELPER_CODE)
- ask(
- label=f"child.get_optional_pipe('{DEP_DOMAIN}.{BARE_HELPER_CODE}') [after the pass]",
- library=child_library,
- pipe_code=f"{DEP_DOMAIN}.{BARE_HELPER_CODE}",
- )
- print()
- print(" EXECUTION reader — host library (what SubPipe.run_pipe asks)")
- ask(label=f"host.get_optional_pipe({BARE_HELPER_CODE!r}) [pre-qualification spelling]", library=library, pipe_code=BARE_HELPER_CODE)
- ask(
- label=f"host.get_optional_pipe('{DEP_DOMAIN}.{BARE_HELPER_CODE}') [after the pass]",
- library=library,
- pipe_code=f"{DEP_DOMAIN}.{BARE_HELPER_CODE}",
- )
-
-
-def main() -> None:
- Pipelex.make(needs_inference=False)
- manager = get_library_manager()
- assert isinstance(manager, LibraryManager)
-
- with TemporaryDirectory(prefix="dep-subpipe-scope-") as temp_dir:
- dep_dir = Path(temp_dir) / "dep"
- dep_dir.mkdir()
- resolved_dep = build_resolved_dep(dep_dir, exported_pipe_codes=None)
-
- bare_library_id, bare_library = manager.open_library()
- with scoped_current_library(library_id=bare_library_id):
- manager._load_single_dependency(library=bare_library, resolved_dep=resolved_dep) # ruff: ignore[private-member-access] # pyright: ignore[reportPrivateUsage]
- report(title="host declares nothing", library=bare_library, library_id=bare_library_id)
-
- host_file = Path(temp_dir) / "host.mthds"
- host_file.write_text(HOST_COLLIDING_MTHDS, encoding="utf-8")
- colliding_library_id, colliding_library = manager.open_library()
- with scoped_current_library(library_id=colliding_library_id):
- manager._load_single_dependency(library=colliding_library, resolved_dep=resolved_dep) # ruff: ignore[private-member-access] # pyright: ignore[reportPrivateUsage]
- # load_from_blueprints validates the whole library, dependency entries included — since the
- # strict lookup landed, that validation raises here. The host pipe is registered before the
- # validation runs, so the shape-2 library is intact; catch and keep measuring.
- try:
- manager.load_from_blueprints(
- library_id=colliding_library_id,
- blueprints=[MthdsParser.make_pipelex_bundle_blueprint(bundle_path=host_file)],
- )
- except BaseException as exc: # ruff: ignore[blind-except] - naming *which* error escapes IS the measurement here
- print(f"\n load_from_blueprints(host) -> {type(exc).__name__}: {exc}")
- report(title="host declares its OWN pipe under the same bare code", library=colliding_library, library_id=colliding_library_id)
-
- # The published shape: a manifest exporting only the entry pipe.
- exporting_dep = build_resolved_dep(dep_dir, exported_pipe_codes={"probe_entry"})
- exporting_library_id, exporting_library = manager.open_library()
- with scoped_current_library(library_id=exporting_library_id):
- manager._load_single_dependency(library=exporting_library, resolved_dep=exporting_dep) # ruff: ignore[private-member-access] # pyright: ignore[reportPrivateUsage]
- report(title="dependency manifest exports only the entry pipe", library=exporting_library, library_id=exporting_library_id)
-
-
-if __name__ == "__main__":
- main()
diff --git a/wip/pipe-refs/probes/make-demos.sh b/wip/pipe-refs/probes/make-demos.sh
deleted file mode 100755
index b797dad5c..000000000
--- a/wip/pipe-refs/probes/make-demos.sh
+++ /dev/null
@@ -1,180 +0,0 @@
-#!/usr/bin/env bash
-# Materialize the five bare-reference demo closures used by ../README.md.
-#
-# Writes OUTSIDE the repository by default (a fresh mktemp dir), on purpose: these bundles are
-# deliberately pathological, and dropping them into the tree would move the corpus counts that
-# classify-bare-refs.py reports over `.`.
-#
-# Usage: ./wip/pipe-refs/probes/make-demos.sh [target_dir]
-# Prints the target directory on stdout as its last line.
-
-set -euo pipefail
-
-# POSIX-portable form. `mktemp -d -t bare-ref-demos` works on BSD/macOS but GNU coreutils reads the
-# argument as a template needing X's and aborts — which, under `set -e`, kills the script before it
-# writes a single demo.
-TARGET="${1:-$(mktemp -d "${TMPDIR:-/tmp}/bare-ref-demos.XXXXXX")}"
-mkdir -p "$TARGET"
-
-# --- 1. ambiguous: two domains declare `summarize`; alpha calls it bare -----------------------
-# Standard: resolves to alpha.summarize (found in the own domain, the search stops).
-# Runtime: PipeLibraryError, ambiguous.
-mkdir -p "$TARGET/ambiguous"
-cat >"$TARGET/ambiguous/alpha.mthds" <<'EOF'
-domain = "alpha"
-description = "Alpha domain"
-
-[concept]
-Note = "A short note"
-
-[pipe.run_flow]
-type = "PipeSequence"
-description = "Alpha's entry point, calling a bare 'summarize' that alpha itself declares"
-inputs = { note = "Note" }
-output = "Note"
-steps = [{ pipe = "summarize", result = "summary" }]
-
-[pipe.summarize]
-type = "PipeLLM"
-description = "Alpha's own summarize"
-inputs = { note = "Note" }
-output = "Note"
-prompt = "Summarize $note the alpha way"
-EOF
-cat >"$TARGET/ambiguous/beta.mthds" <<'EOF'
-domain = "beta"
-description = "Beta domain, which happens to reuse the pipe code 'summarize'"
-
-[concept]
-Memo = "A short memo"
-
-[pipe.summarize]
-type = "PipeLLM"
-description = "Beta's own summarize"
-inputs = { memo = "Memo" }
-output = "Memo"
-prompt = "Summarize $memo the beta way"
-EOF
-
-# --- 2. fallthrough: only beta declares `present`; alpha calls it bare ------------------------
-# Standard: error, no fall-through. Runtime: resolves to beta.present.
-mkdir -p "$TARGET/fallthrough"
-cat >"$TARGET/fallthrough/alpha.mthds" <<'EOF'
-domain = "alpha"
-description = "Alpha domain"
-
-[concept]
-Note = "A short note"
-
-[pipe.run_flow]
-type = "PipeSequence"
-description = "Alpha's entry point, calling a bare 'present' it does not declare"
-inputs = { note = "Note" }
-output = "Note"
-steps = [{ pipe = "present", result = "presented" }]
-EOF
-cat >"$TARGET/fallthrough/beta.mthds" <<'EOF'
-domain = "beta"
-description = "Beta domain, the only declarer of 'present'"
-
-[pipe.present]
-type = "PipeLLM"
-description = "Beta's present"
-inputs = { note = "alpha.Note" }
-output = "alpha.Note"
-prompt = "Present $note"
-EOF
-
-# --- 3 & 4. export bypass, and its control ----------------------------------------------------
-# One package. `beta.helper` is NOT exported. The bare form reaches it; the qualified form is
-# rejected. Same pipe, same manifest, same run.
-for variant in export-bypass export-bypass-control; do
- mkdir -p "$TARGET/$variant/alpha" "$TARGET/$variant/beta"
- cat >"$TARGET/$variant/METHODS.toml" <<'EOF'
-[package]
-address = "github.com/example/bypass-demo"
-display_name = "Bypass Demo"
-version = "1.0.0"
-description = "Two domains; beta exports nothing"
-authors = ["Example"]
-license = "MIT"
-mthds_version = "1.0.0"
-
-[exports.alpha]
-pipes = ["run_flow"]
-EOF
- cat >"$TARGET/$variant/beta/beta.mthds" <<'EOF'
-domain = "beta"
-description = "Beta domain; 'helper' is NOT listed in [exports]"
-
-[pipe.helper]
-type = "PipeLLM"
-description = "Beta's private helper"
-inputs = { note = "alpha.Note" }
-output = "alpha.Note"
-prompt = "Help with $note"
-EOF
-done
-cat >"$TARGET/export-bypass/alpha/alpha.mthds" <<'EOF'
-domain = "alpha"
-description = "Alpha domain"
-
-[concept]
-Note = "A short note"
-
-[pipe.run_flow]
-type = "PipeSequence"
-description = "Reaches beta's non-exported 'helper' by bare code"
-inputs = { note = "Note" }
-output = "Note"
-steps = [{ pipe = "helper", result = "helped" }]
-EOF
-cat >"$TARGET/export-bypass-control/alpha/alpha.mthds" <<'EOF'
-domain = "alpha"
-description = "Alpha domain"
-
-[concept]
-Note = "A short note"
-
-[pipe.run_flow]
-type = "PipeSequence"
-description = "Names the same non-exported pipe, qualified"
-inputs = { note = "Note" }
-output = "Note"
-steps = [{ pipe = "beta.helper", result = "helped" }]
-EOF
-
-# --- 5. concept-collision: two domains declare `Note`; each references it bare -----------------
-# The crate normalizer qualifies each to its own domain; the live ConceptLibrary's bare search
-# (search_domain_codes=None) raises "Multiple concepts found" for the same authored text.
-mkdir -p "$TARGET/concept-collision"
-cat >"$TARGET/concept-collision/alpha.mthds" <<'EOF'
-domain = "alpha"
-description = "Alpha domain"
-
-[concept]
-Note = "Alpha's note"
-
-[pipe.alpha_summarize]
-type = "PipeLLM"
-description = "Uses a bare 'Note'"
-inputs = { note = "Note" }
-output = "Note"
-prompt = "Summarize $note"
-EOF
-cat >"$TARGET/concept-collision/beta.mthds" <<'EOF'
-domain = "beta"
-description = "Beta domain, which also declares 'Note'"
-
-[concept]
-Note = "Beta's note"
-
-[pipe.beta_summarize]
-type = "PipeLLM"
-description = "Uses a bare 'Note'"
-inputs = { note = "Note" }
-output = "Note"
-prompt = "Summarize $note"
-EOF
-
-echo "$TARGET"
diff --git a/wip/pipe-signature-not-a-type.md b/wip/pipe-signature-not-a-type.md
deleted file mode 100644
index f018aed6a..000000000
--- a/wip/pipe-signature-not-a-type.md
+++ /dev/null
@@ -1,132 +0,0 @@
-# PipeSignature is not a type — drop `type = "PipeSignature"` from the language
-
-Branch: `feature/PipeSignature-not-a-type` (currently even with `main`; the signature *machinery* already landed, this branch is the language-surface cleanup).
-
-## The insight
-
-A `PipeSignature` is a **contract declaration** — "this pipe exists, here is its purpose, here is what it takes and what it produces" — with the implementation deferred to somewhere else (a sibling file, a later refinement, a dependency package). The library loader already accepts signatures and reconciles them against the concrete implementation when it shows up.
-
-Today we write a signature like this:
-
-```toml
-[pipe.summarize_doc]
-type = "PipeSignature"
-description = "Produces a summary of a document (contract only)."
-inputs = { doc = "SigDocument" }
-output = "Text"
-```
-
-That `type = "PipeSignature"` line is a lie about the model. `PipeSignature` is **not** a pipe type — the codebase already knows this: it was deliberately evicted from the `PipeType` and `PipeCategory` enums (`pipelex/core/pipes/pipe_blueprint.py:16`, `44-87`), carries `pipe_category = None`, and is identified by class identity (`is_signature`), not by any enum value. A pipe *type* is an implementation kind (PipeLLM, PipeSequence, …). A signature is the **absence** of one.
-
-So the language should stop pretending. The tag adds ceremony, teaches a wrong mental model, and is the kind of bullsh*t our language claims not to have.
-
-## The rule
-
-**A `[pipe.x]` section with no `type` and no implementation is a signature.**
-
-That's it. The whole feature.
-
-Concretely, a pipe declaration needs only:
-
-- `description` — required (what the pipe is for)
-- `output` — required (what concept it produces, multiplicity included)
-- `inputs` — optional (defaults to none)
-
-If that's *all* a section has, it's a contract — a `PipeSignature`. The moment you add a `type` (and the implementation fields that type needs — `prompt`, `steps`, `branches`, …), it becomes a concrete, runnable pipe.
-
-```toml
-# A signature — no type, no implementation. This IS the contract.
-[pipe.summarize_doc]
-description = "Produces a summary of a document."
-inputs = { doc = "SigDocument" }
-output = "Text"
-
-# Its implementation — same contract, now with a type and a body.
-[pipe.summarize_doc]
-type = "PipeLLM"
-description = "Produces a summary of a document."
-inputs = { doc = "SigDocument" }
-output = "Text"
-prompt = "Summarize $doc."
-```
-
-This reads exactly like a forward declaration vs. a definition in a real language — which is what it is. No new concept to learn; the shape of the file teaches it.
-
-### Scope guardrail (decided)
-
-This change makes **the type tag optional only for the signature case**. Concrete pipes still declare their `type` explicitly — we are **not** inferring the type from fields. And we *can't*, even in principle: fields are not unique to a type. `prompt` does not mean PipeLLM — PipeImgGen uses `prompt` too. There is no field that reliably implies a single concrete type. So inference is off the table, and the rule stays unambiguous: **no `type` ⟺ signature**, and the *only* legal typeless shape is exactly a contract.
-
-## What "no implementation" has to mean (the guard)
-
-The brief says "no type specified **and** no implementation present." Both clauses are load-bearing. A typeless section is a signature **only if it declares nothing but the contract** — `description`, `inputs`, `output` (+ the optional `signature_for` hint, + the internal `source`). The presence of *any* other field means the author is describing an implementation, and an implementation must name its type.
-
-**Decided behavior (no leniency):** a typeless section carrying any non-contract field is a **hard error**. It is never silently treated as a signature (that would hide a real authoring bug behind a mock output), and never a cryptic pydantic dump.
-
-Crucially, the error does **not** guess a type from the fields — because it can't. A `prompt` field is shared by PipeLLM *and* PipeImgGen; no field reliably maps to one type. So the message points at the general fix, not a specific type:
-
-> Pipe `summarize_doc` has no `type` but declares `prompt`. A pipe without a `type` may declare only `description`, `inputs`, and `output` — that is a signature (contract only). To implement it, add the appropriate `type` (`PipeLLM`, `PipeImgGen`, …). To keep it a contract, remove `prompt`.
-
-The error names the offending field(s), states the rule, and gives both escape routes — reinforcing the mental model every time it fires.
-
-## How it works under the hood
-
-The internal machinery does **not** need to lose its discriminator — only the *language surface* drops the tag. This mirrors the workspace rule "structured fields are the contract; the surface is presentation." The blueprint model keeps `type = "PipeSignature"` as an internal runtime discriminator; the `.mthds` author never writes it.
-
-The dispatch is a Pydantic discriminated union on `type` (`pipelex/core/bundles/pipelex_bundle_blueprint.py:29-43`). A discriminated union *requires* the tag, so a missing `type` currently errors with `union_tag_not_found` ("missing required discriminator field 'type'"). We intercept before the union runs.
-
-There is already a `field_validator("pipe", mode="before")` on `PipelexBundleBlueprint` (`validate_pipe_keys`, `:125`). That's the single choke point. It gains a per-section normalization step:
-
-1. **`type` is a real `PipeType`** → leave untouched. Concrete pipe, dispatched as today.
-2. **`type` absent, only signature-allowed fields present** → inject `type = "PipeSignature"` so the union routes to `PipeSignatureBlueprint`. The user never saw the tag; the model still discriminates cleanly.
-3. **`type` absent, any non-contract field present** → raise the teaching error above (no type inference, no leniency). Legal typeless keys are exactly `{description, inputs, output, signature_for, source}`; anything else fails here.
-4. **`type = "PipeSignature"` written explicitly** → raise a migration error (see Migration). It's now an internal-only value.
-
-Everything downstream is unchanged:
-
-- `PipeSignatureBlueprint` still carries the internal tag, `pipe_category = None`, `is_signature = True`.
-- Blueprint → runtime factory dispatch keys off `blueprint.is_signature` (`pipe_factory.py:110-117`) — untouched.
-- Library reconciliation keys off `is_signature` class identity (`library_crate_factory.py:170-201`) — untouched. Concrete still beats signature; contracts must still match.
-- Validation semantics — strict mode refusing bundles that contain signatures, `--allow-signatures` dry-running them as mocks — all key off `is_signature` / the pending-signatures set (`validate_bundle.py`, `_validate_core.py`) — untouched.
-
-## Surfaces to change (implementation checklist)
-
-- **Blueprint parse** — `pipelex/core/bundles/pipelex_bundle_blueprint.py`: extend the `pipe` before-validator with the 4-way normalization + the two teaching errors. This is the heart of the change.
-- **Spec parse (authoring layer)** — `pipelex/builder/pipe/pipe_spec_union.py` + a matching before-validator wherever spec dicts are validated into `PipeSpecUnion`. Same 4-way logic so AI-authored specs get the identical clean surface. `PipeSignatureSpec` keeps its internal tag (`pipe_signature_spec.py`).
-- **Allowlist / messaging** — `pipelex/core/pipes/pipe_blueprint.py`: `PIPE_SIGNATURE_TYPE_TAG` stays valid *internally* (the injected value must pass `validate_pipe_type`), but the user-facing rejection of an explicitly-written `PipeSignature` lives in the before-validator with a tailored message. Confirm no user path still requires the tag.
-- **MTHDS JSON Schema** — `pipelex/language/mthds_schema_generator.py`: today `_require_type_on_pipe_definitions` (`:125`) forces `type` required on *every* pipe arm so a typeless table fails. New behavior: the signature arm must **omit** `type` and become the "no-type" branch (`{description, output, inputs?}`, `additionalProperties: false`). Disambiguation still holds in Draft-4 (no discriminator): a typed table fails the signature arm (extra `type` property under `additionalProperties: false`) and matches its own arm; a typeless table matches only the signature arm. Regenerate `derived/mthds_schema.json` via `pipelex-dev generate-mthds-schema`. **This is the subtlest piece — verify the Taplo/editor lint accepts a typeless section and still rejects a typo'd type.**
-- **Pretty rendering** — `pipe_signature_spec.py` `rendered_pretty` prints `Type: PipeSignature (...)`. Reword to present it as a signature without a type line (e.g. "Signature (contract only)").
-- **Fixtures** — 8 bundle files under `tests/e2e/` write `type = "PipeSignature"`; delete the line from each. They double as the regression corpus for "typeless ⟹ signature."
-- **Tests** — add: typeless section parses to `PipeSignatureBlueprint`; typeless-with-`prompt` raises the teaching error; explicit `type = "PipeSignature"` raises the migration error; reconciliation of a typeless header against a typed definition still collapses. Existing signature tests (`tests/unit|integration|e2e/.../pipe_signature/`) update to the new surface.
-- **Docs** — `docs/building-methods/pipes/signature-pipes.md`, `docs/building-methods/pipes/index.md`, `docs/tools/cli/validate.md`, `docs/tools/cli/agent-cli.md`, error pages, and `pipelex/cli/agent_cli/CLAUDE.md`: teach "omit the type" instead of "set `type = PipeSignature`."
-
-## Migration
-
-Per the workspace "no backward compatibility" rule, we do **not** keep `type = "PipeSignature"` as a silent alias. We reject it — but with a friendly, one-line migration error so anyone with an old bundle knows exactly what to do:
-
-> `PipeSignature` is no longer a pipe type. Delete the `type` line — a pipe with no type and no implementation is a signature.
-
-Same for the spec layer. All in-repo fixtures are migrated in this change, so nothing internal breaks.
-
-## Cross-repo ripple (gated, not in this change)
-
-The MTHDS JSON Schema is copied into downstream repos (`mthds`, `vscode-pipelex`, `mthds-ui`) — see the `mthds-schema-sync` skill. The schema shape changes here (signature arm no longer requires `type`), so those copies drift. That propagation is **gated on a released pipelex version** and handled by the schema-sync skill, not folded into this branch. Flag it in the changelog as a schema change.
-
-## Decisions (settled)
-
-**D1 — Scope: signatures only.** `type` is optional *only* for the signature case. Concrete pipes keep explicit `type`. No inference from fields — it isn't even possible reliably (`prompt` ⟹ PipeLLM *or* PipeImgGen).
-
-**D2 — Typeless + non-contract field = hard error, no leniency.** The only legal typeless shape is exactly a contract (`description`, `inputs`, `output`, `signature_for`). Any other field is a hard error with a teaching message that does **not** guess a type.
-
-**D3 — Explicit `type = "PipeSignature"` is rejected** with a one-line migration error (per the no-backcompat rule). No transitional alias.
-
-**D4 — Keep `signature_for`.** The optional hint stays — harmless, orthogonal, useful to agents.
-
-## Remaining risk to watch during implementation
-
-The JSON-Schema arm (Draft-4, no discriminator) is the one place the disambiguation is non-trivial: the signature arm must omit `type`, forbid extra properties, and still not collide with a typed arm. Verify the editor/Taplo lint (a) accepts a bare `{description, output}` section, (b) rejects a typeless section with a stray field, and (c) rejects a typo'd `type`. Everything else keys off `is_signature` and is mechanical.
-
-## Deferred follow-ups (from the Checkpoint-1 cold review)
-
-**Categorization completeness for a typeless section missing a required contract field.** A typeless `[pipe.x]` whose keys are all contract-legal but that omits a *required* contract field (`description` or `output`) — e.g. a section with only `signature_for`, or an empty stanza — is normalized to a `PipeSignature` and then fails deep in the union with a bare pydantic `type=missing` "Field required" residual at loc `('pipe', <code>, 'PipeSignature', 'output')`. That residual is not matched by any categorizer branch, so it is dropped from the structured `validation_errors[]` (only the raw message survives). The safety invariant still holds — it errors, it is never silently accepted as a mock, and the missing field is named in the raw message (pinned by `test_typeless_section_missing_required_contract_field_still_errors`). This is a **pre-existing, general** gap, not introduced here: a concrete `PipeLLM` missing `output` produces the identical uncategorized residual today. Fixing it properly means a general categorizer branch for pydantic `type=missing` / `extra_forbidden` errors under a `('pipe', <code>, …)` loc (recover `pipe_code` from `loc[1]`, the field from `loc[-1]`), which also changes categorization for concrete pipes — a broader change that deserves its own scoped commit and tests, not this signature-feature change.
-
-**Spec-layer `inputs` is required, unlike the optional blueprint `inputs` (Phase-3 finding).** A no-inputs signature (`{description, output}` only) is valid at the blueprint/language layer (`PipeBlueprint.inputs` defaults to `None`), but the spec/authoring layer requires `inputs` (`PipeSpec.inputs: dict[str, str]` has no default), so a no-inputs signature fails at the spec layer with a raw pydantic `inputs Field required`. This asymmetry **predates this feature** — `PipeSpec.inputs` has always been required — and is orthogonal to the type-tag removal; the single-pipe `pipelex-agent pipe` command and bundle-spec authoring both inherit it (a no-inputs signature can only be authored at the blueprint level, e.g. hand-written `.mthds`). Fixing it means making `PipeSpec`/`PipeSignatureSpec` `inputs` optional to match the blueprint, a small change touching every spec — deferred, out of scope for the type-tag removal.
diff --git a/wip/pipe-slice-error-domain/plan.md b/wip/pipe-slice-error-domain/plan.md
deleted file mode 100644
index 24f2dcb14..000000000
--- a/wip/pipe-slice-error-domain/plan.md
+++ /dev/null
@@ -1,125 +0,0 @@
----
-status: landed
-item: L-260901-296dfb
----
-
-# Give the `--pipe` / `pipe_ref` slice miss in `validate_bundle` the INPUT domain
-
-Follow-up to the entry-pipe error-domain work (`wip/entry-pipe-error-domain/plan.md`, PR #1180), which deliberately left this raise site out of its diff and filed it as L-260901-296dfb.
-
-## The bug, verified
-
-`_pipes_to_dry_run` (`pipelex/pipeline/validate_bundle.py:229`) raises the bare, undomained `PipeNotFoundError` when `dry_run_pipe_codes` names a pipe absent from the loaded bundle. Its own docstring calls the trigger "a typo'd `--pipe` argument" — entry-shaped input a human typed, exactly the case PR #1180 classified for the two library lookups. The class declares no `error_domain`, so `ErrorReport.http_status` falls through `error_domain_to_http_status(None)` to 500.
-
-Live probe on `dev` (same caller typo, two verdicts):
-
-```bash
-.venv/bin/pipelex-agent validate bundle tests/data/input_semantics/probe_bundle.mthds --pipe nonexistent_zzz --format json
-# → error_type: PipeNotFoundError, NO error_domain, no hint
-
-.venv/bin/pipelex-agent validate pipe nonexistent_zzz --format json
-# → error_type: EntryPipeNotFoundError, error_domain: input, CHANGE_INPUT hint
-```
-
-The only consumer that repairs this is `pipelex-api`'s `api/routes/pipelex/build/runner.py:174`, which catches `PipeNotFoundError` by hand and maps it to a 422 — the same "one input, two verdicts depending on the route" shape PR #1180's changelog says it removes. Any other surface reaching `validate_bundle` with `dry_run_pipe_codes` renders the caller's typo as a server fault, logged with a traceback and looking retryable to every SDK.
-
-## Design
-
-**Raise `EntryPipeNotFoundError` at the existing site — no new class.** The `--pipe` / `pipe_ref` selector is entry-shaped input by the class's own definition ("one a human typed... a CLI argument, the `pipe_code` field of a run request"), so the concept already has a home. Reusing it means:
-
-- Every current catcher keeps matching, because all of them catch the base `PipeNotFoundError`: the passthrough in `validate_bundle.py`'s `translate_to_validate_bundle_error` (`except PipeNotFoundError: raise`), the agent CLI arms (`bundle_cmd.py`, `pipe_cmd.py`), the bare CLI (`cli/commands/validate/_validate_core.py`), and `pipelex-api`'s hand catch.
-- No new error identity: `make gei` / `make gep` produce no diff for a new class (verify by running them — the class docstring's summary line, which is all the generated page renders, does not change).
-- The agent CLI arms already pass `error_type=type(exc).__name__` (PR #1180's carry-along), so the envelope will name `EntryPipeNotFoundError` and the INPUT domain + `CHANGE_INPUT` hint riding it report-first will finally be attributed to the class that declares them. `bundle_cmd.py:190`'s comment ("The real class, not the caught base") stops describing an intent and starts describing behaviour — no edit needed there.
-
-**The message stays the raise site's own.** `_pipes_to_dry_run` keeps its bundle-scoped wording ("Pipe(s) 'x' not found in the bundle. Check for typos and make sure they are declared in the bundle.") — more precise here than the class's library-lookup message. This is safe under `_authors_caller_facing_message = True`: the flag spans every raise site of the class, and this message names only the caller's own `--pipe` codes (derived from `wanted`, which is caller-supplied), nothing from the loaded library.
-
-**Docstring corrections that must ride the same diff:**
-
-- `EntryPipeNotFoundError`'s docstring says "this class has exactly one [raise site]" — after this change it has two. Reword the caller-facing-copy paragraph to state the invariant per raise site instead of counting them.
-- `_pipes_to_dry_run`'s `Raises:` section names `PipeNotFoundError` — update to `EntryPipeNotFoundError` and say why (caller-supplied selector → INPUT domain).
-- `builder/operations/validate_ops.py`'s docstrings name `PipeNotFoundError` for this path — update the wording (the subclass still satisfies any `except`, but the docs should name the real class).
-
-**Out of scope, unaffected:** the in-body lookups (`get_optional_pipe` / `get_required_pipe`) and `bundle_validator.py`'s sweep-time `except PipeNotFoundError` (it catches sub-pipe resolution misses during the dry-run sweep; `_pipes_to_dry_run` runs before the sweep and its raise never reaches that arm).
-
-**The `pipelex-api` half is a dependent ledger item, not this diff.** Once a pipelex release carries this change, `build/runner.py`'s hand-written `except PipeNotFoundError` → 422 catch becomes redundant: the global `PipelexError` handler (`api/exception_handlers.py`) renders `report.http_status`, which the INPUT domain now makes 422 on its own. Dropping the catch is `pipelex-api` work gated on that release — filed as its own item, blocked by L-260901-296dfb (see the ledger).
-
-## Phases
-
-### Phase 1 — red tests
-
-- `tests/integration/pipelex/cli/test_agent_validate_pipe_in_bundle.py::test_pipe_slice_unknown_pipe_raises_not_found`: tighten `pytest.raises(PipeNotFoundError)` to `EntryPipeNotFoundError`, and assert on the caught error's `to_error_report()`: `error_domain == ErrorDomain.INPUT`, `http_status == 422`, and the message still names the missing code. This is the red test: it fails on `dev` because the raise is the bare base class.
-- Verify the class-metadata sweeps in `tests/unit/pipelex/exceptions/test_class_level_metadata.py` already pin `EntryPipeNotFoundError`'s domain, user action, and caller-facing flag (they do, from PR #1180) — nothing to add there.
-
-### Phase 2 — implement
-
-- `pipelex/pipeline/validate_bundle.py`: import `EntryPipeNotFoundError`, swap the raise at the `missing` check in `_pipes_to_dry_run`, update its `Raises:` docstring. Leave the `translate_to_validate_bundle_error` passthrough arm as `except PipeNotFoundError: raise` (the base catch is the point: it must let the subclass through raw), refreshing its comment to name the entry class.
-- `pipelex/libraries/pipe/exceptions.py`: reword the `EntryPipeNotFoundError` docstring's "exactly one raise site" sentence.
-- `pipelex/builder/operations/validate_ops.py`: update the docstring mentions.
-- Phase 1's test goes green.
-
-### Phase 3 — sweep, docs, gates
-
-- Sweep the remaining catchers for message-matching or type branching the subclass would change — none expected: `_validate_core.py:242` (bare CLI, prints `str(exc)`), `pipe_cmd.py:187` (unreachable from this raise site but catches the base), `bundle_validator.py`'s sweep arm (unreachable, see Design).
-- Run `make gei` and `make gep`; confirm both produce no diff (no new class, unchanged summary line). If `gep` does diff, commit the regenerated page.
-- `docs/under-the-hood/error-model.md`: extend the Behavior Summary row for entry pipe lookups (line ~491) to mention the `--pipe` / `pipe_ref` bundle-slice miss as a third raise context of `EntryPipeNotFoundError`.
-- `CHANGELOG.md` under `## [Unreleased]`: one condensed entry — fixed: a typo'd `--pipe` / `pipe_ref` slice selector in bundle validation now raises `EntryPipeNotFoundError` (INPUT domain → 422), matching the entry lookups, instead of the undomained base class that rendered 500 off the build route.
-- `make agent-check`, targeted tests (`tests/unit/pipelex/pipeline/ tests/integration/pipelex/pipeline/ tests/unit/pipelex/cli/ tests/integration/pipelex/cli/`), then full `make agent-test` before the PR.
-
-### Checkpoint
-
-After Phase 3: record what landed, any deviations, and open the PR against `dev` with `Closes L-260901-296dfb` in the body. After the merge, the `pipelex-api` follow-up item becomes workable once a release carries the change.
-
-## Checkpoint — all three phases landed
-
-All three phases went in as designed. The raise site in `_pipes_to_dry_run` now raises `EntryPipeNotFoundError`, keeping its own bundle-scoped message, and the same live probe that opened this plan answers with `error_type: EntryPipeNotFoundError`, `error_domain: input` and the `CHANGE_INPUT` hint — the divergence against `validate pipe <typo>` is closed.
-
-**What the design predicted and the run confirmed.** `make gei` and `make gep` both produced no diff, as expected for a reused class whose docstring summary line did not change. No catcher needed touching: every one of them catches the base `PipeNotFoundError`, and the whole targeted suite (pipeline, CLI at all three levels, libraries, exceptions, builder) is green with no assertion loosened anywhere. `bundle_cmd.py`'s `type(exc).__name__` label needed no edit and its comment now describes behaviour rather than intent — the probe output is the evidence.
-
-**The one thing the plan did not anticipate: the `cli-docs` drift contract reopened.** The docstring edit in `pipelex/cli/agent_cli/commands/validate/_validate_core.py` is a trigger file, so `make agent-check` failed on an open contract even though the change is a two-line docstring. The review was done for real against both targets and found nothing stale: `docs/tools/cli/` documents the `--pipe` flag and the error envelope generically, naming no per-command error class, and no exit code moved (the not-found arm still exits 2); `pipelex/cli/agent_cli/CLAUDE.md`'s Error classification bullet already states the report-first rule and cites these two arms, and this change is precisely what gives the `validate bundle` arm's label a real domain to carry. Recorded with `make drift-ack CONTRACT=cli-docs`; the ack file rides the same commit.
-
-**Deliberate wording choice on the class docstring.** The plan asked for the "exactly one raise site" sentence to be reworded to state the invariant per raise site instead of counting them, and that is what went in — the caller-facing-copy paragraph now says the flag spans every raise site and each one owes the invariant (name what the caller typed, nothing from the loaded library). The entry-point list in the first paragraph gained the slice selector alongside the CLI argument and the run request's `pipe_code`, so the class definition names all three of its doors.
-
-**What is next.** The `pipelex-api` half stays a dependent item: once a release carries this change, `build/runner.py`'s hand-written `except PipeNotFoundError` → 422 catch is redundant, since the global handler renders `report.http_status` and the INPUT domain makes that 422 on its own.
-
-## Pre-landing review — what was fixed and what was deferred
-
-A pre-landing review (Claude adversarial subagent plus a Codex `exec` pass, both read-only against `dev`) confirmed the change is correct and found no reachable defect. The attacks that came back clean, with what was actually checked: `dry_run_pipe_codes` has exactly two in-repo call sites and both pass a caller-typed selector; `missing ⊆ wanted` by construction, so the message can only name caller strings; no code anywhere branches on the exact type or the `error_type` string for this hierarchy — every catcher is an `isinstance` on the base; the `except PipeNotFoundError: raise` passthrough at `validate_bundle.py:163` genuinely precedes `except LibraryError` at `:172` and no arm above it is an ancestor; and the error-identity snapshot and the generated error page were both re-derived with no diff.
-
-Three things changed as a result.
-
-**The changelog named a command that does not exist.** The entry said the fix covers `pipelex validate --pipe`. It does not: `pipelex validate bundle` carries no `--pipe` option at all (verified against `--help`), and the bare CLI's one `--pipe`, on `validate method`, routes through `execute_validate(pipe_code=…, bundle_path=None)` into the `elif pipe_code:` arm at `cli/commands/validate/_validate_core.py:174` → `get_required_entry_pipe` — the lookup PR #1180 already classified, never `_pipes_to_dry_run`. The raise site this campaign changed is reached only by `pipelex-agent validate bundle|method --pipe` and by `builder/operations/validate_pipe_in_bundle`, which `pipelex-api` calls with the request's `pipe_ref`. The entry now names those. The class docstring and the error-model row are unaffected: they describe the selector without claiming a binary.
-
-**The new test could not see the invariant it was written to protect.** It asserted on `to_error_report()`, where the message is verbatim regardless of `_authors_caller_facing_message` — redaction happens only in `ErrorReport.to_dict(disclosure_mode=STRICT)`. Mutation-verified both ways: forcing the flag off left every test in the module green before, and reddens the new assertion now. This matters more after this campaign than before it, because the reworded docstring deliberately stops counting raise sites and says each one owes the invariant — so the promise needed a guard at a raise site, not only the class-level metadata sweep's guard on a hand-built instance.
-
-**The class's `user_action` detail was false at the new raise site.** It read "make sure the bundle declaring it is loaded", which fits the library lookup but not the slice: `_pipes_to_dry_run` filters only the target bundle's pipes, so a pipe declared in a loaded `--library-dir` bundle still reports missing and the hint sent the caller to load something already loaded. Since a class-level `user_action` spans every raise site the same way the caller-facing flag does, the wording was changed to "make sure it is declared in the bundle being validated". That replacement was itself false at the other site, and the PR review caught it — see the round-1 section below for the wording that actually holds at both. The pinned expectation and the generated error page moved with it.
-
-**Deferred, deliberately.**
-
-- *The INPUT domain is a property of the call sites, not of the function.* Nothing in `_pipes_to_dry_run`'s signature constrains `dry_run_pipe_codes` to caller-typed input, and `validate_bundle` is a public entry point. The near-miss is one frame up: `cli/method_resolver.py` falls back to the fetched method manifest's `main_pipe`, and it stays out of the slice only because the agent CLI's `method_cmd.py` gates on the raw `--pipe` option while passing the resolved code. If that gate is ever loosened, a broken manifest would report as the caller's typo. Not a defect today — every reachable caller supplies a typed selector — and moving the classification up to the boundaries would mean two translation sites for one condition, which is what this campaign removed. Worth revisiting only if a caller genuinely needs to slice by a server-derived code.
-- *The `error_type` on the wire changes for this path*, from `PipeNotFoundError` to `EntryPipeNotFoundError`. Python catchers are unaffected by subclassing, but a consumer string-matching `error_type` is not. A sweep across every sibling repo found no such consumer — `pipelex-api` catches the Python class, and no `error_type`→status map holds either name. The exposure is identical to the one PR #1180 accepted for the entry lookups, and the workspace's no-backward-compatibility rule covers it.
-- *Two workspace spec lines still name the old class*, `docs/specs/pipelex-validation-api.md:130` and `:144`, both stale since PR #1180 rather than because of this change, and both describing paths this campaign does not touch. Filed as its own item against `workspace`, with the trace.
-- *The translation passthrough lets a second, in-body class escape too.* `validate_bundle.py`'s already-loaded branch calls `get_required_pipe` inside the same `with translate_to_validate_bundle_error()` block, and that raises the plain `PipeNotFoundError`, which the `except PipeNotFoundError: raise` arm re-raises raw as a non-`ValidateBundleError` exactly as it does the entry subclass. Present identically on `dev` before this campaign and untouched by it. It is also close to unreachable: that branch only runs when the bundle path is already loaded, and it looks up the blueprint's own `[pipe.<code>]` keys qualified with the blueprint's own domain — refs the loader just registered. If it did fire, the CLI's dedicated not-found handler turns it into a clean exit 2 rather than a crash.
-- *Two surfaces of the new behaviour have no test.* Nothing asserts the emitted agent-CLI envelope for the slice miss — the `error_type`, the `error_domain` and the exit code that `bundle_cmd.py`'s arm produces — and `builder/operations/validate_pipe_in_bundle` has no non-mocked not-found test, which is the entry the changelog's "422 through the build routes" claim actually rests on. Both are one-line passthroughs over behaviour the integration test already pins at the raise site, which is why they were left.
-- *The `pipelex-api` follow-up is a wire change, not a pure cleanup.* Dropping that route's hand-written catch keeps 422 and the `input` domain, but hands the RFC 7807 `type`, `title` and `error_type` over to the class and loses the route's "not found in the submitted closure" framing in `detail` — and `type` is the field the hosted-envelope spec designates for SDK branching. Recorded on the dependent item so whoever works it decides deliberately.
-
-## Review round 1 — the hint was still false, at the other site
-
-The pre-landing review above rewrote the class's `user_action` detail to "make sure it is declared in the bundle being validated" and recorded it as true at both raise sites. It is not. The PR's local reviewers — Codex reading the branch diff, corroborated by an independent verification pass — caught that the replacement simply moved the falsehood from the rarer site to the busier one.
-
-`get_required_entry_pipe` is not a validation door. It has thirteen call sites and only three of them validate: the rest are the pipeline execution seam behind `pipelex run pipe`, the agent CLI's `PIPELEX` runner arm and the hosted run request's `pipe_code`; `show pipe`; the four `cli/commands/build/` cores; the three hosted `builder/operations/` build ops; and the in-process dry run. On every one of those, nothing is being validated, and the detail reaches the caller as the agent-CLI `hint` and as `user_action` in the 422 body — it survives STRICT precisely because this class declares `_authors_caller_facing_message`. So the campaign shipped a remedy naming a thing that does not exist, on the majority of the paths that raise it.
-
-The diagnosis of the *original* wording stands: `validate_bundle` discards what the `--library-dir` load returns, so `loaded_pipes` really is scoped to the submitted bundle and "make sure the bundle declaring it is loaded" really did send the caller to load something already loaded. Both wordings were false at exactly one site each.
-
-The fix is to stop naming a scope at all, because a class-level detail spans raise sites that do not share one: **"Check the pipe code for typos and make sure the bundle in scope for this operation declares it."** Each raise site already carries a precise message of its own — the entry lookup's "make sure its bundle is loaded", the slice's "make sure they are declared in the bundle" — so the class detail does not have to supply the scope, only to stop asserting a wrong one. A per-site override or a class split would have bought the same accuracy for two translation sites where one honest sentence does, which is the shape this campaign existed to remove.
-
-The pinned expectation in the class-metadata sweep and the generated error page moved with the string; `make gep` rewrote exactly the one `user_action` row and nothing else. The error-identity snapshot is untouched, as expected for a detail-only change.
-
-What the same round confirmed rather than changed, each checked against the code: the caller-facing invariant genuinely holds at the new raise site, since `missing = wanted - matched` puts the library-derived strings only on the subtrahend side where they can remove elements but never contribute one; the entry subclass really does survive `translate_to_validate_bundle_error`, because the passthrough arm precedes the `LibraryError` arm that would have folded it into an undomained `ValidateBundleError` and made the whole campaign a no-op; and nothing anywhere dispatches on the exact class or on the `error_type` string, every consumer being an `except` or an `isinstance` on the base, with the agent CLI's hint and domain lookups report-first in any case.
-
-## Landed
-
-The campaign shipped as PR #1182, squash-merged into `dev` as `bcd1b572260427ae5e51200e5b1ab50b20c44919` on 2026-09-01, with every required check green (the full sharded test matrix on py3.11, the typecheck, all lint jobs including `drift-contracts`, `doc-check` and `uv-lock-check`). L-260901-296dfb is closed `fixed`. The merged tree carries the raise at `pipelex/pipeline/validate_bundle.py:238`.
-
-The merge has **not** reached `main`, so no published artifact carries the fix yet. The repo's open release item is L-260828-f4e88c ("cut the pipelex release that carries #1154"); whichever release goes out next will be the one that delivers this.
-
-That distinction is what the `pipelex-api` half turns on. L-260901-d34e23 — drop `build/runner.py`'s hand-written `except PipeNotFoundError` → 422 — was released by this close and is now workable in principle, but its work needs the *published* pipelex, not the merged source, so it should not be started against a release that has not happened. Its own deferral note above stands: dropping the catch keeps the 422 and the `input` domain, and hands the RFC 7807 `type`, `title` and `error_type` to the class while losing the route's "not found in the submitted closure" framing in `detail` — a wire change to take deliberately, not a pure cleanup.
diff --git a/wip/plugins/README.md b/wip/plugins/README.md
deleted file mode 100644
index de3ba02f4..000000000
--- a/wip/plugins/README.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# Provider plugins track — storage & secrets
-
-Two features that promote existing dependency-injection seams to formal `pipelex.plugins` entry-point plugins, so third parties can ship `pipelex-storage-azure` / `pipelex-secrets-vault` packages selected at deploy time.
-
-- **[storage-provider-plugin.md](storage-provider-plugin.md)** — the storage provider seam (local / in_memory / s3 / gcp today). **Land this first** — it has the real multi-implementation need and exercises the new pattern end to end.
-- **[secrets-provider-plugin.md](secrets-provider-plugin.md)** — the secrets provider seam (env only today). Lands second, mirroring the storage pattern; validates that the mechanism generalizes to a second seam.
-
-Both were selected after a full audit of the boot-time DI seams (see the classification below). They are the only two seams that pass all three plugin criteria; everything else is either already a plugin, a boot-orchestrator-owned hub slot, or a population/config point that should stay one.
-
-## The shared new pattern these introduce
-
-Neither seam maps onto an existing plugin pattern. The current keyed registries (inference backends, model listers, orchestrators, bundle validators) are selected **per-request/per-model** by a wire or model field. The hub slots (content generator, pipe router, pipe run, task manager, isolated-execution probe) are singletons but selected by **one name gate** — `plugins.boot_orchestrator` — because they move as a coherent set with the runtime flavor.
-
-Storage and secrets are neither. Each is a **process-global singleton selected by its *own* config key**, independent of the orchestrator. So they need a net-new mechanism:
-
-> **Keyed registry + config-selected singleton.** Plugins register N provider factories into a registry keyed by an open method token (mirroring `OrchestrationMode`). At boot, core reads a single config field (`storage_config.method` / `secrets_config.method`), looks that token up in the registry, and calls the factory to produce the one provider set on the hub.
-
-This is deliberately **not** a `HubSlot` — hub slots are orchestrator-coupled (claimed inside `register` iff `boot_orchestrator == plugin.name`). Storage/secrets selection has nothing to do with the orchestrator, so reusing the slot machinery would wrongly couple them. The storage plan defines this pattern in full (§ "The new mechanism"); the secrets plan references it.
-
-## Cross-cutting decisions (apply to both)
-
-- **DX-1 — Batch the plugin-API version bump.** Discovery version-checks `targets_api` against `PLUGIN_API_VERSION` with **strict equality** (`pipelex/plugins/discovery.py`, `_register_plugin`), so *any* additive menu growth is a breaking bump that forces every external plugin to re-declare `targets_api`. Introduce **both** new registrar menu methods (`add_storage_provider` and `add_secrets_provider`) under a **single** `PLUGIN_API_VERSION` bump (2 → 3), even though the two features land in sequence, to avoid double-breaking the external plugins. The known external plugins that must bump their `targets_api` to 3: our Temporal plugin and our Mistral Workflows plugin. (Per the workspace "no backward compatibility" principle, that's acceptable — note it in changelogs; there is no transition shim.)
- - *Option not taken:* relax discovery to accept `targets_api <= PLUGIN_API_VERSION` for additive growth. That would make menu additions non-breaking but changes the plugin-system contract semantics — out of scope for this track; raise separately if the coarse-bump churn becomes painful.
-- **DX-2 — The builtin provider plugin is unconditional.** Storage and secrets are required infra: if the config-selected method has no registered factory, boot must fail loud. The builtin `StoragePlugin` / `SecretsPlugin` therefore join `CORE_UNCONDITIONAL_PLUGIN_NAMES` (`pipelex/plugins/builtins.py`) so they can't be disabled into a broken boot.
-- **DX-3 — External-provider config surface is a scoped follow-up.** `StorageProviderConfig` / the new `SecretsProviderConfig` have fixed, typed per-method sub-models. An out-of-tree provider (`azure`, `vault`) needs somewhere to read *its* config. Phase 1 of each plan lands the seam for the built-in methods only; a generic passthrough sub-config for external providers is captured as a follow-up in each plan, not built speculatively.
-- **DX-4 — Parallel keyed registries stay un-abstracted (declined in this track; possible whole-pattern cleanup later).** `SecretsProviderRegistry` and `StorageProviderRegistry` are near-identical (a PR-review finding on [#1024](https://github.com/Pipelex/pipelex/pull/1024) proposed extracting a shared generic base so lookup/error behavior can't silently diverge). **Decision: not done here.** The genuinely-shared logic is ~5 trivial lines (`.get()` → None-check → raise → return); against that, six sibling plugin registries already exist (`storage`, `secrets`, `orchestrator`, `bundle_validator`, `model_lister`, `inference_backend`) and **none share a base** — parallel registries are the established, tolerated convention. Their behavior deliberately diverges in load-bearing ways: miss-semantics differ (hard-raise via `get_required` vs soft-`None` via `get_optional`), key types differ (`str` / `tuple[InferenceFamily, str]` / `OrchestrationMode`), and each raises a distinct, per-domain exception with its own `type_uri` doc page. Abstracting only storage+secrets would leave 2-of-6 sharing a base and 4 not — an asymmetry more confusing than uniform duplication. **Escape hatch:** if the coarse duplication ever bites, do it as a *separate whole-pattern* cleanup — a `KeyedRegistry[K, V]` generic (dict copy + `has` + keys accessor + `get_optional`) with a per-domain `on_missing` hook so each concrete registry keeps its own exception and keys-property name, touching all six `pipelex/plugins/*_registry.py`. Not this PR; matches the "smallest correct surface, no speculative additions" principle.
-
-## Boot-audit classification (why only these two)
-
-- **Already plugins:** inference backends (LLM/img-gen/extract/search, incl. OCR & web search), model listers, orchestrators, bundle validators, HTTP error mappers.
-- **Boot-orchestrator-owned hub slots (leave as-is):** content generator, pipe router, pipe run, task manager, isolated-execution probe — they move as a set with the runtime flavor.
-- **Population / config points (NOT plugins):** class registry, func registry, model deck, template sets. Where under-modular (templates especially, which lack even an injection param today), the fix is a normal injection seam, not entry-point discovery.
-- **Prove-a-second-impl-first:** telemetry (don't double-wrap OTel's own exporter plugins), reporting/cost delegate (looks host-runtime-owned, not shelf-installable).
-- **Promote (this track):** **secrets** and **storage**.
diff --git a/wip/plugins/secrets-provider-plugin.md b/wip/plugins/secrets-provider-plugin.md
deleted file mode 100644
index 07e010d3b..000000000
--- a/wip/plugins/secrets-provider-plugin.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# Secrets provider → `pipelex.plugins` plugin
-
-Status: **COMPLETE.** All phases delivered — this vertical (Phases 3–4 of the master plan) mirrors the storage pattern ([storage-provider-plugin.md](storage-provider-plugin.md), which defines the shared "keyed registry + config-selected singleton" mechanism this plan reuses wholesale). The execution record (Phases 3–4 code + tests + docs, Phase 5 release gating) lived in the branch's root tracker. This plan reads as "mirror storage, swap the nouns."
-
-Goal: turn the secrets provider into a formal plugin seam so third parties can ship `pipelex-secrets-<backend>` packages (Vault, AWS Secrets Manager, GCP Secret Manager, …) discovered via `pipelex.plugins` and selected at deploy time. The built-in `EnvSecretsProvider` becomes an unconditional builtin plugin.
-
-Read [README.md](README.md) for the track's shared decisions (DX-1 API bump, DX-2 unconditional builtin, DX-3 external config follow-up).
-
----
-
-## Cold-start context (the seam as it is today)
-
-**Abstract base** — `pipelex/tools/secrets/secrets_provider_abstract.py`
-- `SecretsProviderAbstract(ABC)` (line 6). Abstract: `get_required_secret(secret_id)`, `get_optional_secret(secret_id)`, `get_required_secret_specific_version(secret_id, *, version_id)`, `get_optional_secret_specific_version(secret_id, *, version_id)`, `set_secret_as_env_var(secret_id, *, version_id=LATEST_SECRET_VERSION_NAME)`. Concrete convenience `get_secret(secret_id) -> str` delegates to `get_required_secret`.
-- `LATEST_SECRET_VERSION_NAME = "latest"` (line 3).
-
-**The one implementation** — `pipelex/tools/secrets/env_secrets_provider.py`
-- `EnvSecretsProvider` (line 9). Reads env vars via `get_required_env` / `get_optional_env`. The two `*_specific_version` methods `raise NotImplementedError`; `set_secret_as_env_var` is a no-op `pass`. **This is a single-impl seam** — the whole point of the plan is to open it.
-
-**Boot injection** — `pipelex/pipelex.py`
-- Import line 90; `setup()` param `secrets_provider: SecretsProviderAbstract | None = None` (line 186).
-- **Hardcoded default:** line 212 `secrets_provider = secrets_provider or EnvSecretsProvider()` — constructed **early**, before the gateway check (comment: "needed for gateway check"), and before config-driven subsystems. This early construction is the main structural wrinkle (see § The wrinkle).
-- Passed to telemetry factory (288) and to two setup helpers (345, 375). Set on hub line 306. `make()` mirror: param 560, forwarded 636.
-
-**Config** — **none today.** No field selects the provider; it is hardcoded to Env via the `or EnvSecretsProvider()` fallback. There is no `secrets_config` in `pipelex.toml` or `configs.py`. This plan introduces one.
-
-**Hub accessors** — `pipelex/hub.py`: `set_secrets_provider` (183), `get_required_secrets_provider()` (294), module-level `get_secrets_provider()` (472) and `get_secret(secret_id)` (607). Consumers (~4 files): `storage_provider_factory.py:62` (GCP creds — see the storage↔secrets coupling in the storage plan), `linkup_search_worker.py`, `linkup_extract_worker.py`, `show_cmd.py`. `secrets_utils.py` takes a `secrets_provider` param explicitly rather than pulling from the hub. **None of these change.**
-
-**Pattern to mirror:** identical to the storage plan — `PipelexPlugin` contract, the registrar `_add` helper, `OrchestratorRegistry` as the read-view template, `docling_plugin.py` for the lazy optional-dep closure shape, `CORE_UNCONDITIONAL_PLUGIN_NAMES`. See [storage-provider-plugin.md](storage-provider-plugin.md) § Cold-start context for the exact refs.
-
----
-
-## The wrinkle: secrets is constructed before config-driven subsystems — but this is fine (Decision W RESOLVED → W-A)
-
-Storage is selected *after* config load and *after* secrets is on the hub — clean. Secrets looked different: `EnvSecretsProvider()` is built at `pipelex.py:212`, **early**, with the comment `# needed for gateway check`. That comment turned out to be **stale**, which is what makes W-A clean.
-
-**Verified 2026-07-06 (locks Decision W):**
-
-- **The gateway-check path is entirely secrets-free.** Neither `pipelex/system/pipelex_service/remote_config_fetcher.py` (`fetch_remote_config`, `make_dummy_remote_config`) nor `pipelex/system/pipelex_service/pipelex_service_config.py` (`is_pipelex_gateway_enabled`) references secrets in any form — no param, no hub read. Grep for `get_secret|secrets_provider|get_secrets_provider` in both is empty. The line-211 comment is wrong; nothing between line 212 and the telemetry factory needs secrets.
-- **The true first consumer of `secrets_provider` in `setup()` is `make_telemetry_manager` at line 288** (passed as a param). The hub secrets slot isn't set until line 306, so nothing in between could be reading it from the hub either.
-- **`build_registrar` is pure over config.** `PluginRegistrar.__init__(*, config)` takes only config; `build_registrar(config=get_config())` touches no hub, no models, no telemetry, constructs no SDK. `get_config()` is valid at `setup()` entry (config is loaded in `__init__` via `setup_config`, before `setup` runs). It's called exactly once today (line 393) and only re-read later by `_resolve_hub_slot` (line 505) and teardown (line 516).
-
-**⇒ Decision W = W-A, confirmed, zero ordering risk.** Move the single `build_registrar(config=get_config())` call (currently `pipelex.py:393-394`) up to **right after `boot_orchestrator` is set (after line 209), before line 212**. Then:
-
-1. Build `SecretsProviderRegistry(plugin_registrar.secrets_providers)`, set it on the hub.
-2. Resolve secrets: `if secrets_provider is None: secrets_provider = registry.get_required(method=get_config().pipelex.secrets_config.method)(get_config().pipelex.secrets_config)`.
-3. **Delete** the hardcoded `secrets_provider or EnvSecretsProvider()` line 212 and its stale comment.
-4. Everything downstream is untouched — telemetry (288), hub set (306), and the existing registry constructions / slot application at 404-418 keep referencing the already-built `self._plugin_registrar`. Only the *build call* moves up; its downstream consumers stay put.
-
-Bonus (recommended, not required): move the `boot_orchestrator` validation gate (`pipelex.py:401-403`, `UnknownBootOrchestratorError`) up alongside the build call — it's a pure check on the registrar and moving it fails fast on a typo'd orchestrator before any secrets/gateway work.
-
-**W-B is not needed** and is not the plan — recorded only so a future reader knows it was considered: keep Env hardcoded for a pre-gateway bootstrap, then re-resolve and overwrite the hub. Rejected because W-A is clean; W-B would leave a transient provider and a hub re-set for no benefit.
-
----
-
-## The mechanism (reuse storage's)
-
-Same "keyed registry + config-selected singleton" as the storage plan:
-
-- New registrar menu method `add_secrets_provider(*, method: str, factory: SecretsProviderFactoryFn)` where `SecretsProviderFactoryFn = Callable[[SecretsProviderConfig], SecretsProviderAbstract]`, into `registrar.secrets_providers: dict[str, SecretsProviderFactoryFn]`, via `_add`.
-- New read-view `SecretsProviderRegistry` (`pipelex/plugins/secrets_provider_registry.py`) mirroring `OrchestratorRegistry` / the new `StorageProviderRegistry`.
-- New `UnknownSecretsMethodError` in `pipelex/plugins/exceptions.py`.
-- New config: `SecretsProviderConfig(ConfigModel)` with `method: str = Field(strict=False)` (default `"env"`); built-in token `"env"` needs no sub-config. Add `[pipelex.secrets_config]\nmethod = "env"` to `pipelex/pipelex.toml`, and wire `secrets_config` into the config model where storage_config lives (`pipelex/tools/secrets/secrets_config.py` new file + a field on the owning config — confirm placement with the config-owner; the storage one hangs under `pipelex.storage_config`, so `pipelex.secrets_config` is the natural sibling).
-- Builtin `SecretsPlugin` (`name="secrets"`, unconditional per DX-2) whose `register` calls `add_secrets_provider(method="env", factory=_make_env_secrets_provider)`; `_make_env_secrets_provider(config)` just returns `EnvSecretsProvider()`.
-- Boot selects via the registry at the point Decision W lands; the explicit `setup(secrets_provider=...)` param still wins ahead of registry selection.
-
-Because there's only one built-in method, introducing a config selector for a single impl looks like over-engineering — but the selector *is* the feature: it's what lets an external `vault` provider be chosen. `"env"` stays the default and the unconditional builtin, so out-of-the-box behavior is byte-identical.
-
----
-
-## Decisions (recommended defaults — confirm before building)
-
-- **W — Selection point. ✅ RESOLVED = W-A (verified 2026-07-06).** Move the pure `build_registrar(config=get_config())` call up to after line 209 / before line 212; registry-select secrets there; delete the hardcoded `or EnvSecretsProvider()` and its stale `# needed for gateway check` comment. Confirmed zero ordering risk — the gateway path is secrets-free (see § The wrinkle for the evidence). No Phase-0 investigation needed; this is now a build instruction.
-- **S1 — Open method token + config selector.** Mirror storage D1: `SecretsProviderConfig.method` is an open `str`, validated at registry lookup, default `"env"`.
-- **S2 — One unconditional builtin `SecretsPlugin`.** `name="secrets"`, added to `CORE_UNCONDITIONAL_PLUGIN_NAMES` (DX-2).
-- **S3 — API bump batched with storage (DX-1).** `add_secrets_provider` ships in the same `PLUGIN_API_VERSION` 2→3 bump as `add_storage_provider`. If secrets lands in a much later PR than storage, that PR does its own bump and external plugins take a second `targets_api` update — acceptable but avoid if the two land close together.
-- **S4 — External config surface (follow-up).** Same as storage D3: `SecretsProviderConfig` gets a generic passthrough for out-of-tree providers as a scoped follow-up, not Phase 1. `"env"` needs no sub-config, so Phase 1 has nothing to add.
-
----
-
-## Phased checklist
-
-### Phase 0 — Confirm design
-- [x] **Decision W RESOLVED = W-A** (verified 2026-07-06) — gateway path is secrets-free; `build_registrar` is pure over config; move the build call ahead of line 212. See § The wrinkle. No further tracing needed.
-- [ ] Confirm with the config owner where `secrets_config` hangs (sibling of `storage_config` under `pipelex.*`).
-- [ ] Confirm the `PLUGIN_API_VERSION` bump is shared with storage (DX-1 / S3) or standalone.
-
-### Phase 1 — The mechanism (core) — *skip the parts storage already landed*
-- [ ] If storage already bumped `PLUGIN_API_VERSION` to 3 **and** added `add_storage_provider`: only add `add_secrets_provider` + `secrets_providers` field to `PluginRegistrar`. If storage hasn't landed: do the 2→3 bump here too.
-- [ ] `add_secrets_provider(*, method, factory)` menu method via `_add`; `SecretsProviderFactoryFn` alias.
-- [ ] New `pipelex/plugins/secrets_provider_registry.py`: `SecretsProviderRegistry` (`get_optional` / `get_required` / `has` / `methods`).
-- [ ] New `UnknownSecretsMethodError` in `pipelex/plugins/exceptions.py`.
-- [ ] Hub: `set_secrets_provider_registry` / `get_secrets_provider_registry` + module accessor.
-
-### Phase 2 — Config
-- [ ] New `SecretsProviderConfig(ConfigModel)` (`pipelex/tools/secrets/secrets_config.py`), `method: str = Field(strict=False)`; no default in the class per config rules — default lives in TOML.
-- [ ] Add `[pipelex.secrets_config] method = "env"` to `pipelex/pipelex.toml`; wire `secrets_config` into the owning config model.
-- [ ] Add the same block to `.pipelex/pipelex.toml` override **only if** it's a genuine client-override case — secrets backend selection plausibly is (a deployer picks vault vs env), so include it with the real `method = "env"` value, never commented out (house rule).
-- [ ] `make tb` after config changes — config model ↔ TOML must stay in sync or boot fails.
-
-### Phase 3 — The builtin plugin + boot wiring (Decision W = W-A)
-- [ ] New `pipelex/plugins/secrets/secrets_plugin.py`: `SecretsPlugin` + `_make_env_secrets_provider(config)` returning `EnvSecretsProvider()`.
-- [ ] Register `SecretsPlugin()` in `BUILTIN_PLUGINS`; add `"secrets"` to `CORE_UNCONDITIONAL_PLUGIN_NAMES`.
-- [ ] **Move the `build_registrar(config=get_config())` call** (`pipelex.py:393-394`) up to after line 209 / before line 212; keep `self._plugin_registrar = plugin_registrar`. Downstream registry constructions + slot application (404-418) stay put referencing the already-built registrar. Optionally move the `boot_orchestrator` gate (401-403) up with it for fail-fast.
-- [ ] Build + `set_secrets_provider_registry(...)` right after the moved build call.
-- [ ] **Delete** `pipelex.py:211-212` (the stale `# needed for gateway check` comment + `secrets_provider = secrets_provider or EnvSecretsProvider()`); replace with `if secrets_provider is None: secrets_provider = get_secrets_provider_registry().get_required(method=get_config().pipelex.secrets_config.method)(get_config().pipelex.secrets_config)` — explicit `setup(secrets_provider=...)` param still wins.
-- [ ] Drop the now-unused `EnvSecretsProvider` import from `pipelex.py` (it moves to the plugin module).
-
-### Phase 4 — Tests
-- [ ] Unit: `SecretsProviderRegistry` hit/miss (`UnknownSecretsMethodError`) + duplicate fail-loud.
-- [ ] Boot: default config yields `EnvSecretsProvider` on the hub; explicit `setup(secrets_provider=...)` still overrides.
-- [ ] Integration: external test plugin registering a fake `method="test_secret"` is selectable via config (mirror the inference external-plugin test).
-- [ ] Guard the storage↔secrets ordering: a boot with a non-env secrets method must still be on the hub before storage's GCP arm reads it (add/extend a boot-order assertion).
-- [ ] `pipelex plugins list` shows `secrets`.
-
-### Phase 5 — Docs & changelog
-- [ ] New `docs/under-the-hood/secrets-provider-plugins.md` (mirror the storage/orchestrator doc; emphasize the lazy optional-dep closure for SDK-backed providers like Vault/AWS). mkdocs nav.
-- [ ] Update any "the plugin seams are …" enumerations to include secrets.
-- [ ] CHANGELOG `[Unreleased]`: secrets provider is now a plugin seam; `PLUGIN_API_VERSION` bump note if not already recorded by the storage change.
-
----
-
-## Verification / gates
-- [ ] `make agent-check`.
-- [ ] `make tb` — critical (new `secrets_config` ↔ TOML ↔ selection).
-- [ ] `make agent-test`.
-- [ ] Manual: `pipelex plugins list`; a run with default `method="env"`; confirm `get_secret(...)` still resolves env vars.
-
-## Cross-repo consequence (release-gated)
-- Same as storage: our Temporal and Mistral Workflows plugins bump `targets_api` to 3 (only once, if batched with storage per DX-1).
-
-## Follow-ups (do not build now)
-- **S4 external config passthrough** for out-of-tree secrets providers.
-- **First real external provider** (Vault or AWS Secrets Manager) as the proof-of-seam, likely as a private/closed package if it targets the hosted platform.
-- **Retire the `*_specific_version` `NotImplementedError`s** in `EnvSecretsProvider` only if a consumer needs them — out of scope here.
diff --git a/wip/plugins/storage-provider-plugin.md b/wip/plugins/storage-provider-plugin.md
deleted file mode 100644
index 5a85bfc12..000000000
--- a/wip/plugins/storage-provider-plugin.md
+++ /dev/null
@@ -1,130 +0,0 @@
-# Storage provider → `pipelex.plugins` plugin
-
-Status: **COMPLETE.** All phases delivered — this vertical (Phases 1–2 of the master plan) defines the shared "keyed registry + config-selected singleton" mechanism (§ The new mechanism) that the secrets plan reuses. The execution record (Phases 1–2 code + tests + docs, Phase 5 release gating) lived in the branch's root tracker.
-
-Goal: turn the storage provider into a formal plugin seam so third parties can ship `pipelex-storage-<backend>` packages discovered via the `pipelex.plugins` entry-point group and selected at deploy time by `storage_config.method`. The built-in providers (local / in_memory / s3 / gcp) become a single unconditional builtin plugin registering their factories — exactly as `OpenAIPlugin` registers several inference backends.
-
-Read [README.md](README.md) first for the track's shared decisions (DX-1 API bump, DX-2 unconditional builtin, DX-3 external config follow-up) and the boot-audit rationale.
-
----
-
-## Cold-start context (the seam as it is today)
-
-Everything below is verified against the tree (worktree `_plugins`, branch is whatever's checked out — this is `pipelex/` code).
-
-**Abstract base** — `pipelex/tools/storage/storage_provider_abstract.py`
-- `StorageProviderAbstract` (line 16). Template methods `load` / `load_with_metadata` / `store`; subclass hooks `_load_with_metadata`, `_store`, `public_url` (abstract).
-- Also defines `PIPELEX_STORAGE_SCHEME = "pipelex-storage://"` and `StoredData(NamedTuple)` (`data: bytes`, `mime_type: str | None`).
-
-**Built-in implementations** — all under `pipelex/tools/storage/`
-- `LocalStorageProvider` (`local_storage_provider.py:12`) — ctor `(root_path: Path)`; hard-imports `aiofiles`; path-traversal guarded; `public_url` → `file://`.
-- `InMemoryStorageProvider` (`in_memory_storage_provider.py:13`) — a `RootModel[dict[str, bytes]]` **and** `StorageProviderAbstract`; no deps; `public_url` → `None`.
-- `S3StorageProvider` (`s3_storage_provider.py:15`) — ctor `(bucket_name, region, signed_urls_lifespan)`; optional dep **`aioboto3`** (extra `"s3"`) + botocore, lazy-imported inside methods, guarded by `find_spec` → `MissingDependencyError`.
-- `GcpStorageProvider` (`gcp_storage_provider.py:21`) — ctor `(bucket_name, project_id, credentials_file_path, signed_urls_lifespan)`; optional dep **`google-cloud-storage`** (extra `"gcp-storage"`), lazy-imported; sync GCS wrapped in `asyncio.to_thread`.
-
-**The factory being replaced** — `pipelex/tools/storage/storage_provider_factory.py`
-- `make_storage_provider_from_config(storage_provider_config)` (line 14) is a `match storage_provider_config.method:` over `StorageMethod`, each arm: `None`-check the sub-config → `sub.lazy_validate()` → construct the provider.
-- Imports all four concrete classes at module top (importing the factory imports all providers; optional SDKs still stay lazy inside the providers).
-- The **GCP arm** calls `get_secrets_provider().get_required_secret(secret_id="GCP_CREDENTIALS_FILE_PATH")` (line 62) — a storage→secrets→hub dependency. Safe at boot because storage is set on the hub (`pipelex.py:310`) *after* secrets (`pipelex.py:306`); **not** safe inside a plugin `register` (hub access is forbidden there). ⇒ construction must happen in a lazily-invoked factory closure, never in `register`.
-
-**Config** — `pipelex/tools/storage/storage_config.py`
-- `StorageMethod(StrEnum)` (line 13): `LOCAL`, `IN_MEMORY`, `S3`, `GCP`.
-- Per-method sub-models: `StorageLocalConfig`, `StorageInMemoryConfig`, `StorageS3Config`, `StorageGcpConfig`, each with `lazy_validate()` raising `StorageConfigError`.
-- `StorageProviderConfig` (line 171): `method: StorageMethod = Field(strict=False)` + one optional sub-field per method + a `model_validator(mode="after")` requiring the sub-config matching `method`.
-- `StorageConfig(StorageProviderConfig)` (line 238) adds `is_fetch_remote_content_enabled` / `is_upload_local_content_enabled`.
-- TOML `[pipelex.storage_config]` at `pipelex/pipelex.toml:5-27`; reached as `get_config().pipelex.storage_config`.
-
-**Boot injection** — `pipelex/pipelex.py`
-- `setup()` param `storage_provider: StorageProviderAbstract | None = None` (line 187).
-- Boot block (lines 307-310): `if storage_provider is None: … make_storage_provider_from_config(get_config().pipelex.storage_config)` then `set_storage_provider(...)`.
-- Also read at line 416 for the `CONTENT_GENERATOR` default thunk (`GeneratedContentFactory(storage_provider=...)`).
-- `make()` mirror: param line 561, forwarded line 637.
-
-**Hub accessors** — `pipelex/hub.py`: `set_storage_provider` (186), `get_storage_provider()` (306, raises if unset), module-level `get_storage_provider()` (476). Consumed by ~9 files / ~20 sites (input normalizer, pdf renderer, pypdfium2 worker, gateway extract worker, delivery executor, content generator, file/image/document prompt utils). **None of these change** — they keep calling `get_storage_provider()`.
-
-**The plugin pattern to mirror** (verified):
-- Contract `pipelex/plugins/contract.py` — `PipelexPlugin` protocol (`name`, `targets_api`, `register`); `PLUGIN_API_VERSION` (currently 2); `register` is **side-effect-free** (menu calls only; no hub, no I/O, no SDK import).
-- Registrar `pipelex/plugins/registrar.py` — menu methods like `add_orchestrator` / `add_bundle_validator` funnel through the generic `_add` helper (line 279) which fail-louds on duplicate keys naming both plugins. Keyed registries live as `dict` fields on the registrar.
-- Builtins `pipelex/plugins/builtins.py` — `BUILTIN_PLUGINS` is a list of instantiated plugin objects; `CORE_UNCONDITIONAL_PLUGIN_NAMES = frozenset({"direct", "openai"})`.
-- Discovery `pipelex/plugins/discovery.py` — `build_registrar(config=...)` iterates builtins then external `pipelex.plugins` entry points; strict-equality `targets_api` check; denylist via `config.plugins.disabled`.
-- Reference builtin registering several factories: `pipelex/plugins/openai/openai_plugin.py`. Reference optional-dep lazy closure: `pipelex/plugins/docling/docling_plugin.py` (`register` just calls `add_inference_backend`; the SDK import + `require_sdk` live in the module-level `_make_..._worker` closure).
-- Example registry read-view to copy: `pipelex/plugins/orchestrator_registry.py` (`OrchestratorRegistry`, `get_optional` / `has` / `modes`).
-
----
-
-## The new mechanism (defines the shared pattern)
-
-A **keyed registry + config-selected singleton**. New, because no existing pattern selects a process-global singleton by its own config key (see [README.md](README.md) § The shared new pattern).
-
-- **Open method token.** Make the registry key an open `str` token, mirroring `OrchestrationMode` (an open string, not a closed enum). The built-in tokens stay the `StorageMethod` values (`"local"`, `"in_memory"`, `"s3"`, `"gcp"`); an external plugin registers e.g. `"azure"`. **Decision D1** below covers making `storage_config.method` accept arbitrary tokens.
-- **Registration side (in the plugin):** a new registrar menu method
- `add_storage_provider(*, method: str, factory: StorageProviderFactoryFn)` where
- `StorageProviderFactoryFn = Callable[[StorageProviderConfig], StorageProviderAbstract]`.
- Accumulates into `registrar.storage_providers: dict[str, StorageProviderFactoryFn]`, fail-loud on duplicate via the existing `_add` helper.
-- **Read view:** `StorageProviderRegistry` (new, `pipelex/plugins/storage_provider_registry.py`) mirroring `OrchestratorRegistry` — `get_optional(method=...)` / `get_required(method=...)` (raising a new `UnknownStorageMethodError`) / `has` / `methods`.
-- **Selection side (in core boot):** replace the `make_storage_provider_from_config` call at `pipelex.py:307-310` with:
- register-built `StorageProviderRegistry` on the hub → read `config.method` → `registry.get_required(method=config.method)(config)` → `set_storage_provider(...)`. The explicit `setup(storage_provider=...)` param still wins ahead of this (same three-tier precedence as content generator: explicit param > registry selection > — there is no separate core default; the builtin plugin *is* the default supplier).
-- **Where the per-method construction goes:** each `match` arm body from today's factory (None-check → `lazy_validate()` → construct) moves verbatim into a module-level factory closure in the builtin `StoragePlugin`, e.g. `_make_local_storage_provider(config)`, `_make_s3_storage_provider(config)`. The GCP closure keeps its `get_secrets_provider()` hub read — legal because the closure runs at the boot apply-point, not in `register`.
-
-Net effect: `make_storage_provider_from_config` and its `match` are deleted; the four arms become four registered closures; core boot does a registry lookup instead of a hardcoded factory call. `StorageProviderAbstract`, the four provider classes, the config models, and every consumer are unchanged.
-
----
-
-## Decisions (recommended defaults — confirm before building)
-
-- **D1 — Open method token.** Make `StorageProviderConfig.method` accept an open `str` while keeping the `StorageMethod` enum for the built-ins (validate against the registry at boot, not against the enum at parse time — an unknown token surfaces as `UnknownStorageMethodError` from `get_required`, which is the right layer). *Recommended:* yes; without it external providers can be registered but never selected. *Alternative:* keep the closed enum and defer external selection — rejected, it guts the feature.
-- **D2 — One builtin `StoragePlugin`, unconditional.** A single builtin plugin (`name = "storage"`) registers all built-in methods, and joins `CORE_UNCONDITIONAL_PLUGIN_NAMES` (DX-2) so it can't be disabled into a broken boot. *Alternative:* one plugin per method — rejected as needless fragmentation; `OpenAIPlugin` already precedents "one plugin, many factories."
-- **D3 — External-provider config surface (follow-up, not Phase 1).** `StorageProviderConfig` has fixed typed sub-fields, so an `azure` provider has nowhere to read its config. Phase 1 lands the seam for built-in methods only. Follow-up: a generic passthrough (e.g. `extra: dict[str, dict[str, Any]]` on `StorageProviderConfig`, handed to the factory) so out-of-tree providers get structured config. Captured in § Follow-ups; do not build speculatively.
-- **D4 — Factory signature.** `Callable[[StorageProviderConfig], StorageProviderAbstract]` (whole config in, provider out) — lowest-churn move of the existing arm bodies, and keeps the GCP secrets read where it already is. *Alternative:* pass a pre-resolved typed sub-config + secrets provider explicitly (cleaner/more testable) — deferred; revisit if D3's passthrough makes "whole config in" awkward.
-- **D5 — API version bump batched with secrets (DX-1).** Introduce `add_storage_provider` **and** `add_secrets_provider` in the same `PLUGIN_API_VERSION` 2→3 bump even though storage lands first, so external plugins re-declare `targets_api` once. If secrets is genuinely far behind, fall back to bumping per-feature and accept the double external-plugin update — but default to batching.
-
----
-
-## Phased checklist
-
-### Phase 0 — Confirm design
-- [ ] Walk D1–D5 with the user; lock the token-openness (D1) and the API-bump batching (D5) — those two shape everything downstream.
-
-### Phase 1 — The mechanism (core)
-- [ ] Add `PLUGIN_API_VERSION` bump to 3 in `pipelex/plugins/contract.py` (batched with secrets per DX-1; do the bump once).
-- [ ] Add `storage_providers: dict[str, StorageProviderFactoryFn]` field + `add_storage_provider(*, method, factory)` menu method to `PluginRegistrar` (`pipelex/plugins/registrar.py`), routed through `_add`. Add the `StorageProviderFactoryFn` type alias.
-- [ ] New `pipelex/plugins/storage_provider_registry.py`: `StorageProviderRegistry` (mirror `OrchestratorRegistry`) with `get_optional` / `get_required` / `has` / `methods`.
-- [ ] New `UnknownStorageMethodError` in `pipelex/plugins/exceptions.py` (message lists registered methods, mirroring `UnknownBootOrchestratorError`).
-- [ ] Hub: `set_storage_provider_registry` / `get_storage_provider_registry` on `PipelexHub` + module-level accessor (mirror the four existing registry accessors in `pipelex/hub.py`).
-
-### Phase 2 — The builtin plugin
-- [ ] New `pipelex/plugins/storage/storage_plugin.py`: `StoragePlugin` (`name="storage"`, `targets_api=PLUGIN_API_VERSION`, `register` calling `add_storage_provider` for each built-in method).
-- [ ] Module-level factory closures (`_make_local_storage_provider`, `_make_in_memory_storage_provider`, `_make_s3_storage_provider`, `_make_gcp_storage_provider`) holding the exact bodies moved from the deleted `match` arms (keep `lazy_validate()`; keep GCP's `get_secrets_provider()` read).
-- [ ] Register `StoragePlugin()` in `BUILTIN_PLUGINS` and add `"storage"` to `CORE_UNCONDITIONAL_PLUGIN_NAMES` (`pipelex/plugins/builtins.py`).
-
-### Phase 3 — Wire core boot to the registry
-- [ ] In `pipelex.py` setup: after `build_registrar(...)`, build + `set_storage_provider_registry(StorageProviderRegistry(plugin_registrar.storage_providers))` alongside the other four registry sets (near lines 404-407).
-- [ ] Replace the `make_storage_provider_from_config` block (lines 307-310) with the registry-selection path (explicit param > `registry.get_required(method=config.method)(config)`). Note ordering: storage still resolves after secrets is on the hub (keep the GCP secrets read working).
-- [ ] Delete `make_storage_provider_from_config` and `pipelex/tools/storage/storage_provider_factory.py` if nothing else imports it (grep first — `show_cmd`, tests). Move any residual import of the provider classes into the plugin module.
-- [ ] D1: relax `StorageProviderConfig.method` to open `str` (drop the strict enum bind at parse; validation happens at registry lookup).
-
-### Phase 4 — Tests
-- [ ] Unit: `StorageProviderRegistry` (`get_required` hit/miss → `UnknownStorageMethodError`; duplicate registration fail-loud through `_add`).
-- [ ] Unit/boot: booting with each built-in `method` yields the right provider on the hub (parametrized). Include the s3/gcp arms with SDK absent → the factory raising `MissingDependencyError` only when selected, not at registration.
-- [ ] Integration: an external test plugin registering a fake `method="test_mem"` (entry-point discovered) is selectable via config — mirror `tests/.../test_external_plugin.py` (the inference-backend external-plugin test) for the harness.
-- [ ] `pipelex plugins list` shows `storage` (origin builtin) with its contributions.
-
-### Phase 5 — Docs & changelog
-- [ ] New `docs/under-the-hood/storage-provider-plugins.md`, mirroring `docs/under-the-hood/orchestrator-plugins.md` structure (seam-in-one-view, the contract, the factory closure + lazy optional-dep guard, config selection, authoring an out-of-tree provider). Add to mkdocs nav.
-- [ ] Update `docs/under-the-hood/inference-backend-plugins.md` cross-links / any "the plugin seams are: inference, orchestrator" enumerations to include storage.
-- [ ] CHANGELOG `[Unreleased]`: "breaking" — `PLUGIN_API_VERSION` 2→3 (external plugins must re-declare `targets_api`); storage provider is now a plugin seam.
-
----
-
-## Verification / gates
-- [ ] `make agent-check` (pyright, ruff, mypy, plxt, keyword-only guard).
-- [ ] `make tb` — **critical here:** it tests the boot sequence incl. config loading; the `storage_config` model ↔ TOML ↔ selection path must stay in sync.
-- [ ] `make agent-test` — full suite; catches the framework-positional and discovery edges the type checker can't.
-- [ ] Manual: `pipelex plugins list`; a real run with `method="local"`; flip to `method="in_memory"` and confirm selection.
-
-## Cross-repo consequence (release-gated, not this PR)
-- Our Mistral Workflows plugin must bump `targets_api` to 3 (DX-1); it registers no storage provider and imports none of the removed symbols, so the bump is its only change. Our Temporal plugin needs the bump **and** a code migration: it imports the now-removed `make_storage_provider_from_config` and must switch to `get_storage_provider_registry().get_required(method=...)`. Do both when the pipelex version carrying this lands, not before.
-
-## Follow-ups (do not build now)
-- **D3 external config passthrough** — generic `extra` sub-config on `StorageProviderConfig` for out-of-tree providers. This must also fix the **`uri_format` gap**: `StorageProviderConfig.uri_format` (read by `GeneratedContentFactory._build_storage_key` on every content store) is defined only for the four built-in methods and raises `StorageConfigError` on the `case _:` arm for any external token — so an external provider selects and boots cleanly but crashes on the first *generated-content* store. D3 must give external methods a `uri_format` (e.g. promote it to a top-level field, or a passthrough default). Until then the docs page flags external providers as usable for their own storage API but not yet as the generated-content backing store.
-- **Cookbook example** — a `pipelex-storage-hello` external plugin mirroring the hello-inference-plugin cookbook track, once the seam is proven.
diff --git a/wip/pr-1026-review-notes.md b/wip/pr-1026-review-notes.md
deleted file mode 100644
index 2edbc0d9c..000000000
--- a/wip/pr-1026-review-notes.md
+++ /dev/null
@@ -1,47 +0,0 @@
-# PR #1026 (Release v0.38.0) — deferred / declined review items
-
-Cubic left 7 unresolved threads on the v0.38.0 release PR. Five were fixed in the PR (PipeCompose sigil double-rewrite, two caller-facing exception markers, `--inputs ~` expansion, non-string pipe-type guard). The two below were **not** changed — one deferred for a deliberate follow-up, one declined as a false positive. This file records the reasoning so neither gets re-litigated from scratch.
-
-## Deferred — `validate_all` (builder) drops the `warnings` payload
-
-- **Reporter:** cubic-dev-ai (confidence 9, P2)
-- **Location:** `pipelex/builder/operations/validate_ops.py` — `validate_all` (the function around L24–53)
-- **Thread:** left **open** on PR #1026 for follow-up.
-
-### The finding (confirmed, but not a bug)
-
-Builder `validate_all` returns `{success, is_valid, validated_pipes, total_pipes}` with **no `warnings` key**. Its three siblings in the same file (`validate_bundle_file`, `validate_bundle_content`, `validate_pipe_in_bundle`) all carry `warnings` via `build_optionality_warnings(collect_controller_taint_analyses(result.pipes))`, and the agent-CLI twin `validate_all_core` (`pipelex/cli/agent_cli/commands/validate/_validate_core.py`) already emits them. So the whole-library advisory lints (e.g. useless-`!` detection) are dropped **only** on the builder `validate_all` path.
-
-### Why it was deferred rather than fixed on the release branch
-
-- It is **not a correctness bug**: `is_valid` stays correct and warnings never flip the verdict.
-- The change is **purely additive** (these functions return `dict[str, Any]`; `warnings` is just a key) — no contract/type change.
-- The builder `validate_ops` dict surface has **no in-repo consumers** (only `validate_pipe` is imported, by one lifecycle test); it is a downstream-facing API for `pipelex-api` / the build assistant, and the same-shape agent-CLI `validate_all` already supplies warnings.
-- `validate_all` carries an **explicit minimal-envelope design comment** (it deliberately omits `pending_signatures`/`is_runnable`). That rationale is about `pending_signatures`, not `warnings`, but it signals the envelope shape is a deliberate design decision the author should make — not something to fold silently into a release-branch fix pass.
-
-### Fix recipe (when picked up)
-
-Mirror `validate_all_core`'s inlined lifecycle instead of the `acquire_and_validate` shortcut (which tears the library down in its `finally` before returning, so warnings can't be computed post-hoc):
-
-1. capture `prev_library_id`, `acquire_library(...)`;
-2. in a `try`, call `BundleValidator().validate_current_library()`;
-3. compute `warnings = build_optionality_warnings(collect_controller_taint_analyses(list(get_pipe_library().get_pipes_dict().values())))` **before** teardown;
-4. restore prev library + teardown in `finally`.
-
-The needed imports (`collect_controller_taint_analyses`, `build_optionality_warnings`) are already present at the top of `validate_ops.py`. **Decision for the author:** add `warnings` only (minimal), or fully align the envelope with the agent-CLI twin (also add `pending_signatures`/`is_runnable`) and update the minimal-envelope design comment accordingly. Recommend at least `warnings`.
-
-**Test:** add an integration test under `tests/integration/pipelex/builder/operations/` that loads a library with a redundant-`!` flow (reuse the pattern in `tests/integration/pipelex/pipes/optionals/test_redundant_force_warning.py`), calls `validate_all(...)`, and asserts the returned dict's `warnings` contains the `optional_force_redundant` item — the analogue of the agent-CLI's existing validate-all warnings coverage.
-
-## Declined (false positive) — `NodeSpec.skip_reason` validator
-
-- **Reporter:** cubic-dev-ai (confidence 6, P3)
-- **Location:** `pipelex/graph/graphspec.py` — `NodeSpec.skip_reason` field (around L256–260)
-- **Thread:** replied + **resolved** (no code change).
-
-Cubic proposed a `NodeSpec` model_validator enforcing `skip_reason` only when `status == NodeStatus.SKIPPED`. Declined because the invariant `skip_reason set ⟺ status == SKIPPED` is already **maintained by construction**:
-
-- `NodeSpec` is built in exactly two internal builders (`graph_tracer.py` `_NodeData.to_node_spec`, `graphspec_assembler.py`), both of which copy `skip_reason` verbatim from a `_NodeData` builder whose `skip_reason` is initialized to `None` and only ever set in the same breath as `status = NodeStatus.SKIPPED` (`graph_tracer.py:901-902`, `graphspec_assembler.py:299-300`). No transition sets `skip_reason` on a non-skipped node.
-- **No consumer reads the field on a non-skipped node** — no reactflow/mermaidflow renderer touches `skip_reason`; the one place that maps skip reasons already filters on `status == NodeStatus.SKIPPED`.
-- `validate_graphspec` (the graph-level invariant home, where the analogous `_validate_failed_nodes_have_errors` lives) is **not wired into any production path** — even the on-disk `GraphSpec.model_validate_json` load in `graph_cmd.py` does not call it. So a model_validator would guard an internally-produced, already-consistent value — exactly the "don't guard impossible cases" case.
-
-If symmetry with `_validate_failed_nodes_have_errors` is ever wanted purely for tidiness, the correct home is a `_validate_skipped_nodes_have_reasons` helper in `pipelex/graph/validation.py` (the presence direction only: `skip_reason` non-None ⇒ `SKIPPED`), **not** a pydantic `model_validator` on `NodeSpec`. Even that is optional cleanup, not a correctness fix.
diff --git a/wip/pr-1051-review-notes.md b/wip/pr-1051-review-notes.md
deleted file mode 100644
index dcc1db514..000000000
--- a/wip/pr-1051-review-notes.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# PR #1051 review notes — deferred items
-
-Triage record for the SWE-agent review threads on [PR #1051](https://github.com/Pipelex/pipelex/pull/1051) (PipeCompose whole-stuff copies into native fields). Confirmed issues were fixed on the branch; this file captures the one item deliberately deferred.
-
-## Defensive guard for genuine-union nested fields (greptile, deferred)
-
-- **Reporter:** greptile (P1), review thread `PRRT_kwDOOwmMFc6RvbW7` on [PR #1051](https://github.com/Pipelex/pipelex/pull/1051), file `pipelex/pipe_operators/compose/structured_content_composer.py` (`_get_nested_field_class`).
-- **Verdict:** the reported regression is a false positive — pre-PR code also passed genuine unions (`Address | Contact`, no `None` arm) through unchanged, since its unwrap was gated on `type(None) in args`. The only behavior change is for `X | Y | None`: pre-PR silently picked the first arm (worse), post-PR returns the union unchanged (honest passthrough, locked in by `tests/unit/pipelex/tools/test_annotation_utils.py`).
-- **The real (pre-existing, latent) gap:** a hand-authored `StructuredContent` subclass with a genuine multi-arm union nested field, targeted by a NESTED construct, would flow the union into the nested composer's `output_class` and die downstream with a cryptic `AttributeError` on `model_fields` / `model_validate`. Unreachable through the supported authoring path: `StructureGenerator` has no UNION resolved-type kind, so generated models cannot carry genuine union fields.
-- **Why deferred:** pre-existing, unreachable from generated structures, and out of scope for the PR. Whether to support hand-authored union fields at all is a design decision.
-- **Recommendation if addressed:** raise `StructuredContentComposerTypeError` in `_get_nested_field_class` when the post-`unwrap_optional` annotation is still a union (`get_origin(...) in (Union, types.UnionType)`), naming the field, class, and union arms. Never resolve an arbitrary arm — silent first-arm picking is the anti-pattern this PR removed. Same reasoning applies to `_get_field_expected_type`, though a union there degrades more gracefully (falls through to keep-object).
diff --git a/wip/pr-1052-review-notes.md b/wip/pr-1052-review-notes.md
deleted file mode 100644
index f354fa465..000000000
--- a/wip/pr-1052-review-notes.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# PR #1052 review notes — deferred items
-
-Triage record for the SWE-agent review threads on [PR #1052](https://github.com/Pipelex/pipelex/pull/1052) (release v0.39.2, carrying the sandbox-hosted PipeFunc transport feature). All threads were verified against the code; confirmed important issues were fixed on a follow-up branch to `dev`. This file captures the items deliberately deferred — each is real (or partially real) but is a design decision or defensive hardening that a PR-review pass should not resolve unilaterally.
-
-## 1. Hosted mode still executes colocated structure-class modules (codex P1 + cubic dup)
-
-- **Reporters:** codex (thread `PRRT_kwDOOwmMFc6Rw8qf`), cubic (thread `PRRT_kwDOOwmMFc6RxFP1`), `pipelex/libraries/library_manager.py` (hosted branch of `load_libraries`).
-- **Verdict:** confirmed as a code fact. In sandbox-hosted mode, `ClassRegistryUtils.import_modules_in_folder` still AST-selects files containing a `StructuredContent` subclass and then `exec_module`s the whole file, so module-top-level customer code in a file that colocates a structure class with a `@pipe_func` runs in the host process. The `@pipe_func` body itself never runs on the host (only defined, dispatched out-of-process).
-- **Why deferred:** partially intentional — the code comment scopes the hosted invariant to "PipeFunc bodies, not the pydantic structure classes", because concepts declared `structure = "ClassName"` must resolve the real class at load/validate time on the host, and you cannot import a class without executing its module. Closing the residual leak is an isolation-boundary design decision, not a mechanical fix.
-- **Recommendation:** decide whether to (a) document + lint a constraint "in hosted mode, structure classes must live in side-effect-free files, separate from `@pipe_func` and other executable code", or (b) build a hosted-safe class-extraction path. Option (a) is the pragmatic move; (b) is heavy machinery.
-
-## 2. Hosted validate-time output-contract gap (cubic P1, remainder)
-
-- **Reporter:** cubic (thread `PRRT_kwDOOwmMFc6RxFPK`), `pipelex/pipe_operators/func/pipe_func.py` (`validate_output_with_library` early return).
-- **Verdict:** the P1 claim is largely a false positive — the full return-type/multiplicity cross-check DOES run in-box at library-load time (entrypoint boots in `direct` mode → `load_from_crate` → `validate_library` → `validate_output_with_library` with the real function registered), before the function executes. What remains: at hosted `/validate` (dry-run) time no box is spawned, so a return-type-vs-concept mismatch surfaces only at real execution instead of at pre-flight.
-- **Why deferred:** closing the gap means invoking the sandbox during validation — a real design change for a diagnostics-freshness improvement, not a correctness hole.
-- **Recommendation:** accept the weaker validate-time feedback as a documented hosted-mode limitation; revisit only if users hit confusing late failures.
-
-## 3. Rehydration primitive: no scoping/teardown on the transported path (cubic ×2)
-
-- **Reporter:** cubic (threads `PRRT_kwDOOwmMFc6RxFPS`, `PRRT_kwDOOwmMFc6RxFPW`), `pipelex/runtime_bridge/primitives/rehydration.py`.
-- **Verdict:** confirmed-but-inert. A setup failure leaves the fresh library registered and the current-library ContextVar pointing at it, and the binding is never restored after the run. In the only shipped caller (the one-shot subprocess entrypoint) the process exits right after, and `open_fresh_library` pops-and-tears-down any stale same-id library on the next call, so nothing observable leaks today. The primitive itself must NOT scope-and-restore internally — the caller needs the binding live through `run_pipe_func` and output wrapping.
-- **Recommendation if addressed:** in `DirectPipeFuncExecutor.run_pipe_func_transported`, wrap from rehydration through output-wrapping in `scoped_current_library(library_id=_TRANSPORTED_LIBRARY_ID)` plus a `finally` teardown of the library — matching the established pattern in `pipeline_run_setup.py` — so the documented "out-of-tree backends may reuse this" contract becomes safe for long-lived processes.
-
-## 4. `JobMetadata` does not forbid extra fields on the wire (cubic)
-
-- **Reporter:** cubic (thread `PRRT_kwDOOwmMFc6RxFPu`), `pipelex/pipe_operators/func/pipe_func_execution_dtos.py` nesting `pipelex/pipeline/job_metadata.py`.
-- **Verdict:** partially confirmed. The request model forbids extras and `PipeRunParams` already forbids extras, but `JobMetadata` is a plain `BaseModel`, so a typoed key inside the `job_metadata` sub-object of a transported request validates silently.
-- **Why deferred:** `JobMetadata` is a shared model threaded through the whole runtime (Temporal payloads, tracing, inference jobs). Bolting `extra="forbid"` onto it is a global contract change with wide blast radius, to be taken (and tested) deliberately — not as a transport-DTO tweak.
-- **Recommendation:** decide once for all wire-facing shared models; if forbidding, do it in its own change with the full suite run.
-
-## 5. Transport rebind path escapes raw hydration errors (cubic)
-
-- **Reporter:** cubic (thread `PRRT_kwDOOwmMFc6RxFPj`), `pipelex/pipe_operators/func/pipe_func_execution_transport.py` (`pipe_func_execution_result_from_response`).
-- **Verdict:** confirmed, minor. `hydrate_working_memory` + `get_main_stuff` on the sandbox response can raise hydration/working-memory errors, while `PipeFuncTransportError`'s docstring claims to cover "rebound from out-of-process execution". Asymmetric with the executor side, which classifies its failures.
-- **Why deferred:** the response is produced by our own sandbox code, so a rebind failure is an internal contract bug; the one customer-triggered case (.py-only output class) is already documented as a known deferred limitation. Value is classification consistency, not recovery.
-- **Recommendation if addressed:** wrap the two calls, `raise PipeFuncTransportError(...) from exc`, naming the function module/qualname.
-
-## 6. `sys.path` insertion can cross-contaminate same-named bare helpers (cubic)
-
-- **Reporter:** cubic (thread `PRRT_kwDOOwmMFc6RxFPO`), `pipelex/tools/typing/module_inspector.py` (`import_module_from_file`).
-- **Verdict:** confirmed mechanism, narrow reach. The insert exists so customer bundle files can import sibling helpers (added with #1036). Two distinct library dirs each shipping a top-level module with the same bare name (`helpers.py`), both imported bare in one long-lived process, would have the second library execute against the first's helper — the poisoning vector is the persistent bare-name `sys.modules` entry, so a "scoped `sys.path` restore" would NOT fix it. The deployed isolated runner path (one-shot box per call) is unaffected.
-- **Why deferred:** the correct fix is namespacing bundle imports (or isolating `sys.modules` per bundle), which is real design work; the bots' suggested revert doesn't close the hole.
-- **Recommendation:** track as a known local-multi-library footgun; revisit alongside any bundle-import namespacing work.
-
-## 7. `normalize_crate()` drops `python_sources` (cubic)
-
-- **Reporter:** cubic (thread `PRRT_kwDOOwmMFc6RxFPD`), `pipelex/libraries/crate_normalization.py` / `library_crate.py`.
-- **Verdict:** confirmed as a code fact, but the "breaks the transport contract" claim is a false positive: no transport path goes through `normalize_crate` — the sandbox/Temporal request is built from `get_crate()` directly, which threads `python_sources`. Normalization feeds the codegen/resolve/build projection pipeline, which has no need for customer `.py` text.
-- **Why deferred:** latent inconsistency only; copying sources into the normalized crate would also raise the question of whether they belong in the normalized fingerprint (they deliberately do not today).
-- **Recommendation if a normalized crate is ever transported:** pass `python_sources=crate.python_sources` through `normalize_crate` and state explicitly that sources stay outside the normalized fingerprint.
-
-## 8. Crate cache published before the fingerprint idempotency check (cubic)
-
-- **Reporter:** cubic (thread `PRRT_kwDOOwmMFc6RxFP2`), `pipelex/libraries/library_manager.py` (`load_from_crate`).
-- **Verdict:** confirmed ordering fact, no exercised bug. A same-fingerprint crate with different/absent sources would overwrite `_crate_cache` and early-return, so `get_crate()` exposes the replacement. No current path produces two same-fingerprint crates with differing sources for one library id (fingerprint excludes sources by design; transported crates for a given structure always carry the same sources).
-- **Why deferred:** defensive tightening against a scenario the architecture doesn't generate.
-- **Recommendation if addressed:** don't overwrite an existing cache entry on a fingerprint hit, and publish the incoming crate only after `validate_library()` succeeds (next to the `loaded_set.add(fingerprint)`), with a two-load test asserting the first crate's sources survive.
diff --git a/wip/pr-1059-review-notes.md b/wip/pr-1059-review-notes.md
deleted file mode 100644
index f855d1e65..000000000
--- a/wip/pr-1059-review-notes.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# PR #1059 review notes — deferred items
-
-Triage record for the SWE-agent review threads on [PR #1059](https://github.com/Pipelex/pipelex/pull/1059) (release v0.40.0, carrying the `TokensUsageRecord` client wire shape, the durable `tokens_usages.json` artifact, and PipeFunc transport hardening). Each of the 14 unresolved threads was verified against the code by a dedicated Opus agent. Confirmed important items were fixed in-place on the release branch (docs contract-accuracy sentence, two test-assertion tightenings, two wip-tracker staleness corrections); false positives were replied to and resolved. This file captures the items deliberately **deferred** — each is real (or partially real) but is a design decision, a diagnostics-quality tradeoff, or test-only fragility that a release-branch review pass should not resolve unilaterally. Their threads are left **open**.
-
-## 1. Wire-cost / CLI-total parity — fixture-coverage gap (cubic P2)
-
-- **Reporter:** cubic (thread `PRRT_kwDOOwmMFc6SEzQN`), `pipelex/cogt/usage/cost_registry.py` (`compute_tokens_usage_cost`).
-- **Verdict:** false positive *as filed*, with a narrow real residual. The finding claims `compute_tokens_usage_cost` "duplicates the logic in `CostRegistry.complete_cost_report`" and can diverge. In fact the two paths already share the pieces that carry the cost *policy* — the rate lookup + cached-discount fallback (`model_cost_per_token`) and the total formula (`compute_total_cost`). Only the structural component derivation is duplicated. Parity is **explicitly asserted**: `tests/unit/pipelex/cogt/usage/test_usage_cost.py:37-46` compares the summed wire `cost` against `CostRegistry.aggregate_costs(...).total_cost` — the actual number the CLI cost table prints — plus per-record parity across all four usage variants.
-- **Why deferred:** the only divergence that escapes the parity test is *widening which token categories count toward the table total* (e.g. starting to charge reasoning/audio), because the parity fixture `RATED_NB_TOKENS` (`tests/unit/pipelex/cogt/usage/test_data.py`) only carries `INPUT`/`INPUT_CACHED`/`OUTPUT`. That is a fixture-coverage hole, not the architectural drift the finding describes — and closing it by folding `compute_tokens_usage_cost` into `complete_cost_report` reshapes a client-facing response path, which is not worth destabilizing a release branch for.
-- **Recommendation:** cheap, test-only follow-up — add a *dedicated* single-record parity test for an excluded category, not a new entry in `all_variants()`. Add a `UsageFixtures` method (e.g. `reasoning_usage()`) carrying an `OUTPUT_REASONING` (and/or `INPUT_AUDIO`) token count plus a matching rate, then assert that both `compute_tokens_usage_cost(reasoning_usage())` and `CostRegistry.aggregate_costs([reasoning_usage()]).total_cost` equal the three-component total (the excluded category contributing 0 to both) — so a future change that starts counting the extra category in one path but not the other breaks the test. Two footguns to avoid, both verified against the current tests: (1) do **not** mutate the shared `RATED_NB_TOKENS` constant (`tests/unit/pipelex/cogt/usage/test_data.py`) in place — `tests/unit/pipelex/reporting/test_usage_records.py` hard-asserts the exact `{"input":1000,"input_cached":400,"output":250}` dict, so mutating it breaks those; (2) do **not** fold the new heterogeneous variant into `all_variants()` — `test_parity_with_aggregate_run_total` asserts exact-float `==` and holds only because all four current variants are token-identical, so a heterogeneous variant risks an ULP mismatch from float-summation order. The delegation refactor (make parity structural instead of asserted) is optional and belongs off a release branch.
-
-## 2. Transported PipeFunc failures lose traceback source-line text (cubic P2)
-
-- **Reporter:** cubic (thread `PRRT_kwDOOwmMFc6SEzQb`), `pipelex/pipe_operators/func/direct_pipe_func_executor.py` (`run_pipe_func_transported`, `finally` cleanup).
-- **Verdict:** confirmed as a code fact, and PR-introduced. The new deterministic cleanup (`shutil.rmtree` of the materialized workdir in the `finally`, on every path) runs *during exception unwinding*, before the default excepthook formats the traceback. Because Python resolves frame source *text* lazily via `linecache` at format time (and the `SourceFileLoader` fallback also reads from the now-deleted path), the customer-code frames in the stderr diagnostic show `file:line:function` **without the source-line text**. Verified empirically: the subprocess entrypoint (`pipe_func_transported_entrypoint.py`) does not capture `traceback.format_exc()` into a shipped-back string, so nothing materializes the source before cleanup. Before this PR there was no cleanup at all (the workdir leaked), so those source lines used to survive — this is a genuine diagnostics regression traded for deterministic cleanup + `sys.path` pruning.
-- **Why deferred:** what is lost is only the source-line *text* of customer frames — the exception *type*, *message*, and every frame's *file + line-number + function* all survive, and the filename was a throwaway temp path anyway. The reviewer's "retain the workdir until diagnostics are captured" directly conflicts with the PR's goal (clean up on every path, which is needed for long-lived reuse — in-process sandbox / Temporal worker). The correct fix (eagerly materialize `traceback.TracebackException.from_exception(exc, lookup_lines=True)` before `rmtree`, then surface that captured text since the excepthook would re-look-up and fail again) is a non-trivial change to error-path behavior with excepthook interplay.
-- **Recommendation:** implement the eager-capture fix on a follow-up branch off `dev`, with a regression test (a crate whose `@pipe_func` raises at a known line; run transported; assert the emitted traceback contains the source-line text). Not worth landing on the release branch — it only affects failure-diagnostic richness, not correctness.
-
-## 3. `finally` teardown in the workdir test (cubic P2)
-
-- **Reporter:** cubic (thread `PRRT_kwDOOwmMFc6SEzQa`), `tests/unit/pipelex/pipe_operators/pipe_func/test_direct_executor_workdir.py` (`finally: get_library_manager().teardown(...)`).
-- **Verdict:** false positive on the concrete claim, minor latent nit. The finding says the unconditional teardown can raise `LibraryError` ("library not found") and mask the original test exception. Traced against the flow, that cannot happen: rehydration calls `open_fresh_library(library_id=_TRANSPORTED_LIBRARY_ID)` → `open_library` (which **registers** the library in `_libraries`) at step 2 of `rehydrate_library_and_memory`, *before* crate load, working-memory hydration, and the function lookup where a failure could occur. The test's trivial crate (`{"funcs.py": "x = 1\n"}`) cannot fail during source-materialization/import/registration, so every reachable failure point is *after* registration — teardown always finds the library and succeeds. The reviewer's suggested "just rely on `scoped_current_library`" is not viable alone: that context manager only restores the `_library_id` ContextVar, it does **not** unregister the process-global library, so some teardown is genuinely required to avoid leaking `_TRANSPORTED_LIBRARY_ID` into later tests.
-- **Why deferred:** the teardown is coupled to rehydration's internal ordering. A *future* change that made the transported run fail before `open_fresh_library` (e.g. an import-time error in the crate) would let the `finally` raise `LibraryError` that supersedes (chains over) the real failure — a latent robustness nit, not a current bug.
-- **Recommendation:** when convenient, make the teardown best-effort (guard on membership, or `try/except LibraryError: pass`) or move library lifecycle into a dedicated autouse fixture. Test-only and safe to land any time; no urgency.
-
-## Out of scope for this PR (other repo)
-
-One item, a stale API-response docstring in another repo — tracked at workspace level, since nothing about it belongs to `pipelex`.
diff --git a/wip/pr-1062-review-notes.md b/wip/pr-1062-review-notes.md
deleted file mode 100644
index dcdf73520..000000000
--- a/wip/pr-1062-review-notes.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# PR #1062 review notes — deferred items
-
-Triage record for the SWE-agent review threads on [PR #1062](https://github.com/Pipelex/pipelex/pull/1062) (the `pipelex.hub` split into `runtime_hub` / `interpreter_hub`, plus the layering guard and the import-closure test). One unresolved thread, from Codex ([`PRRT_kwDOOwmMFc6T2CA7`](https://github.com/Pipelex/pipelex/pull/1062#discussion_r3652317405)), on `tests/unit/pipelex/test_runtime_layer_import_closure.py`: the closure predicate only recognised five interpreter top-level packages, which is narrower than the interpreter layer `docs/contribute/hub-layering.md` describes.
-
-Two of the three parts were fixed in-place — the doc's `pipe_output` misclassification, and the predicate widening that closes the real `core.pipes.pipe_blueprint` blind spot. This file captures the part deliberately **deferred**. Its thread is left **open**.
-
-## 1. Interpreter-named packages leak leaf models into every runtime closure
-
-- **Reporter:** Codex (thread `PRRT_kwDOOwmMFc6T2CA7`), on `tests/unit/pipelex/test_runtime_layer_import_closure.py`. Codex asked for the predicate to cover "the complete documented interpreter layer", naming `pipeline` and `pipe_run` among the gaps.
-- **Verdict:** confirmed as a fact, but it is a *placement* problem, not a broken hub arrow — so naming those packages in the closure predicate would turn the test red without any code being wrong in the sense the test measures.
-- **What is actually loaded.** Measured in a clean subprocess:
- - `pipelex.runtime_hub`'s own closure pulls `pipelex.pipeline.pipeline_models` (`SpecialPipelineId`), `pipelex.pipe_run.pipe_run_mode` (`PipeRunMode`) and `pipelex.graph.graphspec` (`GraphSpec`) — all three reached through `pipelex.core.pipes.pipe_output`, which names them as fields.
- - `pipelex.core.stuffs.stuff_factory` additionally pulls `pipelex.pipeline.exceptions`, `pipelex.pipeline.validation_errors` and `pipelex.pipeline.fixes.planner`, which in turn pull `pipelex.core.bundles.exceptions` (`PipelexBundleBlueprintValidationErrorData`) and, as collateral, the empty `pipelex.core.bundles` package placeholder.
-- **Why deferred:** every one of those is a leaf model or an exception type — a `StrEnum`, a run-id constant, a graph spec, structured validation-error data. None of them imports the interpreter; none of them needs a loaded method. They are interpreter-layer only by virtue of *which package they were filed in*. Resolving that means relocating types across package boundaries, which changes public import paths (`GraphSpec` and `PipeRunMode` are both consumed outside this repo) — a refactor with cross-repo churn, not something a PR-review pass should decide unilaterally.
-- **Current state in the test.** The predicate covers the five interpreter top-level packages plus core's Pipe-machinery modules by name (`core.bundles`, `core.interpreter`, `core.registry_models`, `core.pipes.pipe_abstract` / `pipe_blueprint` / `pipe_factory` / `rendering`). `core.bundles.exceptions` and the bare `core.bundles` placeholder are excluded by **exact** match, so the rest of `core.bundles` stays flagged. `pipeline`, `pipe_run` and `graph` are absent entirely.
-- **Recommendation — two candidate resolutions, pick one deliberately:**
- 1. **Relocate the leaves down**, mirroring the `JobMetadata` / `TraceContext` moves this PR already records under "Placement, not coupling": `SpecialPipelineId` and `PipeRunMode` into `pipelex/system/`, and decide a home for `GraphSpec` that is not `graph/` (which also carries mermaid/reactflow rendering). Then the predicate can name `pipeline` and `pipe_run` wholesale and the exclusion tuple disappears. This is the resolution consistent with the doc's own stated lesson — "when a package straddles the boundary, moving the odd module out is usually cheaper than teaching the guard about exceptions."
- 2. **Declare them straddling**, i.e. accept that `pipeline` / `pipe_run` / `graph` are not single-layer packages the way `core/` is not, and say so explicitly in "Where core splits" (renaming it accordingly). Cheaper, but it weakens the claim that the boundary falls on package lines.
-- **Note on `core.bundles.exceptions` specifically:** the reason it is imported from `pipeline/` at all is that `PipelexBundleBlueprintValidationErrorData` is the payload of `pipeline`'s validation-error types. If option 1 is taken, that one is the awkward case — the data shape genuinely belongs with the bundle blueprint, and the importer is the thing in the wrong layer.
-
-## Not deferred — fixed on this branch
-
-Recorded here only so the thread's three parts are traceable:
-
-- **`pipe_output` was misclassified in the doc.** `docs/contribute/hub-layering.md` listed `core.pipes.pipe_output` under "The Pipe machinery — interpreter" with the justification "Every one of them names a `Pipe`". It names no `Pipe`: it holds the working memory, graph spec and token usage a run *produced*. It imports zero interpreter modules, and it sits inside `runtime_hub`'s own closure — which the same document shows three sections later, in the class-registry import chain. The guard's own docstring (the enforcement source of truth) correctly omitted it. Moved to the runtime data-model bullet.
-- **`core.pipes.pipe_blueprint` was a genuine blind spot.** Documented interpreter-layer by both the doc and the guard, yet it loads zero heavy packages and no hub — so a runtime-layer import of it passed a package-only predicate. Every other documented interpreter module was caught only *transitively*, through the `pipe_operators` / `libraries` it happens to drag in. The widened predicate now names them, so it states the boundary instead of approximating it.
diff --git a/wip/pr-1069-review-notes.md b/wip/pr-1069-review-notes.md
deleted file mode 100644
index 948a238d3..000000000
--- a/wip/pr-1069-review-notes.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# PR #1069 review notes — deferred items
-
-Triage record for the SWE-agent review threads on [PR #1069](https://github.com/Pipelex/pipelex/pull/1069) (the three modularity review follow-ups: the error-identity snapshot, the `cogt` dependency boundaries, and the `subject_grants.toml` / `.test_durations` bookkeeping gates). Six unresolved threads: one from Greptile, five from Codex.
-
-Four were fixed in place — the provider-edge gate's blind spot on the `from X import submodule` form, the two-test-classes-in-one-module violation and the class docstring it carried, and the `--fix` path's failure to report an out-of-order registry. This file captures the two deliberately **deferred**. Both threads are left **open**.
-
-## 1. Test-module and test-class docstrings — a convention the repo does not actually hold
-
-- **Reporter:** Codex, two threads — [`PRRT_kwDOOwmMFc6UetDk`](https://github.com/Pipelex/pipelex/pull/1069) on `tests/unit/pipelex/errors/test_error_identity_snapshot.py:1` and [`PRRT_kwDOOwmMFc6UetDn`](https://github.com/Pipelex/pipelex/pull/1069) on `tests/unit/repo/test_test_durations_paths.py:1`. Both ask for the module-level docstring to become comments or to be redistributed into the test methods, citing `AGENTS.md`: "Include concise docstrings explaining test purpose but **not on top of the file and not on top of the class**."
-- **Verdict:** the rule says what Codex says it says. The repo does not follow it.
-- **Measured on this branch:**
- - **579 of 1018** test modules open with a module-level docstring.
- - **436 of 1018** carry a docstring directly on the test class.
- - (For contrast, the sibling one-class-per-module rule in the same section *is* held — 978 of 1018 — which is why the class-splitting thread was fixed rather than deferred.)
-- **The neighbours violate it too.** Every module adjacent to the two flagged files does the thing the rule forbids: `tests/unit/pipelex/cli/dev/test_check_keyword_only_cmd_fix.py`, `tests/unit/pipelex/cli/dev/test_subject_grant_registry.py` (its module docstring predates this PR) and `tests/unit/pipelex/cli/dev/conftest.py` all open with one. So conforming these two files would satisfy the letter of the rule while making them inconsistent with their own directory.
-- **Why deferred:** this is not a defect in the PR, it is a rule/practice gap across the whole suite. Rewriting 2 files out of 579 does not close it — it just makes the two new files the odd ones out, and it costs the rationale its natural home (both docstrings explain *why the gate exists*, which is the most valuable thing in either file). Which way to resolve it is a repo-wide convention call, not something a PR-review pass should settle unilaterally.
-- **Recommendation — pick one deliberately:**
- 1. **Relax the rule to match practice.** Amend the pytest-standards source (`pipelex/kit/agent_rules/`, from which the root `AGENTS.md` / `CLAUDE.md` are generated) to allow a module-level docstring that explains *why the module exists*, keeping the prohibition on per-test purpose docstrings migrating upward. This matches what 57% of the suite already does and what the rule was probably reaching for.
- 2. **Enforce it mechanically and sweep.** If the rule is meant, it needs a check — the same lesson this very PR is about: an invariant asserted in prose and gated by nothing drifts silently, and 579 files of drift is the proof. That means a guard plus a 579-file sweep, which is its own piece of work.
-- **Note on the third new test file:** `tests/unit/pipelex/cogt/test_cogt_dependency_boundaries.py`, added by this same PR, opens with a `#` comment block rather than a docstring — i.e. the compliant form. Whichever resolution is taken, the three new files should end up consistent with each other.
-
-## Not deferred — fixed on this branch
-
-Recorded here only so all six threads are traceable:
-
-- **The provider-edge gate missed a legal import form** (Greptile, `test_cogt_dependency_boundaries.py`). `_import_targets` recorded `from pipelex import providers` as a dependency on `pipelex`, so a `cogt → pipelex.providers` edge written that way never reached the golden-set assertion — the exact "reviewable diff" the test exists to force. Import targets now resolve an imported name to `base.name` when that names a module of this repo, and keep `base` when it is a symbol; the relative form (`from .. import providers`) is covered by the same path. Verified with a probe module: the edge is now reported. All five pinned rows and the ~20 `from pipelex import log` sites are byte-identical, because a symbol never resolves.
-- **Two test classes in one module** (Codex, `test_subject_grant_registry.py`). `TestSubjectGrantRegistryOrder`'s tests merged into `TestSubjectGrantRegistry`; the colliding `test_missing_registry_is_an_explicit_error` renamed to `test_order_check_missing_registry_is_an_explicit_error`. Splitting into a sibling module was the alternative, but `_VALID_REGISTRY` and `_write_registry` are shared by both halves, so it would have cost a new `test_data.py` for three string constants.
-- **The class docstring** (Codex, same file) — became a comment above the order tests, as a side effect of the merge above.
-- **`--fix` never reported an out-of-order registry** (Codex, `check_keyword_only_cmd.py`). `_run_fix` returned before the order scan, so `make fko` on a scrambled registry printed "nothing to fix" while `make check-keyword-only` was about to fail — a false all-clear, and a contradiction of `docs/contribute/keyword-only-arguments.md`, which already groups `unsorted-grant` with the registry-level kinds "reported for a manual fix rather than rewritten" (the other two, `dead-grant` and `grant-param-mismatch`, do reach the report through `fix_all_violations`). The order result now joins the unfixable list. Verified end to end against a temporarily scrambled real registry: reported with its `subject_grants.toml:<line>` locator, still exiting 0 as the non-gating contract requires.
diff --git a/wip/pr-1093-review-notes.md b/wip/pr-1093-review-notes.md
deleted file mode 100644
index 5062783bb..000000000
--- a/wip/pr-1093-review-notes.md
+++ /dev/null
@@ -1,98 +0,0 @@
-# PR #1093 review notes — deferred items
-
-Triage record for the SWE-agent review of [PR #1093](https://github.com/Pipelex/pipelex/pull/1093), the `release/v0.43.0` → `main` promotion.
-
-Three bots were invoked; two declined outright — Greptile on size (277 files against a 200-file limit) and cubic on quota (its check run reports `NEUTRAL`). Only **Codex** produced findings: **two P1s**, both against `1/2 Flat topology — core seam: batch-branch router hook + frozen fan-out bound` (#1088). Codex posted them in the review body rather than as inline threads, so there are no review threads to resolve.
-
-Both were verified against the code. **Neither is a live bug** — one is a false positive outright, the other is a false positive as reported but sits on top of a real latent-invariant weakness, captured below as the one **deferred** item.
-
-## Deferred — `batch_max_concurrency` should be required, not defaulted
-
-> **Status (2026-08-12): done in `pipelex`, on `fix/batch-max-concurrency-required`.** The field is required, the integration fixtures route through `PipeRunParamsFactory.make_run_params`, both omission paths (constructor and `model_validate`) have `ValidationError` coverage, and the mutation check was run — restoring `default=None` turns both new tests red and nothing else. The compaction fixture builds through the factory and asserts the configured bound.
->
-> **Still open — the cross-repo wire test, and it *is* gated.** Our Temporal plugin's payload-converter test round-trips `PipeRunParams` without the field, so it asserts `None == None` and would not catch the bound being dropped on the wire. It cannot be fixed ahead of the pin: that side pins a `pipelex` version predating the field entirely, and `PipeRunParams` is `extra="forbid"` — passing `batch_max_concurrency` there today fails. When the pin moves to ≥ the release carrying this change, make that test round-trip a real int bound. Path and pin live in the workspace-level private notes.
-
-- **Origin:** surfaced while verifying Codex's second P1 on `pipelex/pipe_run/pipe_run_params.py:160`. It is *not* the defect Codex described (see "Not deferred" below for why that one is a false positive) — it is the weakness underneath it.
-- **Where:** `pipelex/pipe_run/pipe_run_params.py`, the `batch_max_concurrency: int | None = Field(default=None, frozen=True)` field.
-
-### The defect
-
-`None` is not only the field's default — it is also the resolved value of an authored `max_concurrency = "unbounded"`. The config types it `Annotated[int, Field(ge=1)] | Literal["unbounded"]` (`pipelex/system/configuration/configs.py:151`), and `resolve_batch_max_concurrency` maps the literal to `None` (`pipelex/pipe_run/pipe_run_params_factory.py:22`). So **"unset" and "authored unbounded" are indistinguishable**, and the default points at the dangerous direction: a value that never got written means *launch every branch at once*.
-
-That contradicts the discipline the file states two fields above, on `run_mode`:
-
-> REQUIRED (no default): a payload missing the run mode must fail loud instead of silently running LIVE (the spending direction) or DRY (the mock direction).
-
-`pipe_stack_limit` is required for the same reason. `batch_max_concurrency` is the odd one out.
-
-### The trap has already been sprung
-
-`PipeRunParamsFactory.make_run_params` always writes the field (`pipe_run_params_factory.py:57-66`), and it is the only construction site in shipped code — which is why this is a latent weakness and not a live bug. But the tree already has direct constructions that bypass it, and one of them is exactly where it hurts:
-
-`tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_compaction.py:44`
-
-```python
-return PipeRunParams(run_mode=PipeRunMode.LIVE, pipe_stack_limit=get_config().pipelex.pipe_run_config.pipe_stack_limit)
-```
-
-A **PipeBatch** test fanning out unbounded, silently not exercising the configured bound. The tell is right there in the same expression: the fixture bothers to read `pipe_stack_limit` from config *because that field is required*, and drops the one that isn't. The same shape recurs across roughly nineteen direct constructions — `pipe_parallel/test_pipe_parallel_absence.py:72`, `pipe_condition/test_pipe_condition_continue_delivery.py:60`, the four `tests/integration/pipelex/pipes/optionals/*` fixtures, `tests/integration/pipelex/pipeline/test_optional_method_inputs.py:153`.
-
-An invariant held by convention rather than by the type, already broken in the two places that matter most (a batch test and — see below — the wire test), is enough to tighten.
-
-### Recommended fix — delete one word
-
-```python
-batch_max_concurrency: int | None = Field(frozen=True)
-```
-
-Keeps `int | None`, so authored `"unbounded"` still resolves to `None`; keeps `frozen=True`; keeps the factory as single writer; turns any omission — constructor or payload — into a loud `ValidationError`. Carry the `run_mode` rationale into the field comment so the three invariant-bearing fields read as one convention.
-
-**Reject the sentinel** that Codex proposed: a third state in a two-state domain, existing only to serve a migration story the workspace policy rules out.
-
-### Why it was deferred rather than done here
-
-The source change is one word, but the fixtures are not: ~19 direct constructions in this repo plus one on the plugin side must supply the field. The integration fixtures should route through `PipeRunParamsFactory.make_run_params` instead — a net simplification, since they already hand-duplicate the factory's config read — but that is a ~20-file change with a cross-repo tail, landing on a release branch whose CI is green and which is about to merge to `main`. It belongs on `dev` immediately after the promotion.
-
-That is what happened: the follow-up landed via `fix/batch-max-concurrency-required` and ships in v0.43.1 — the Status note at the top records the outcome. The sections below are the historical record of that follow-up, with each item marked done or still open.
-
-### Execution notes for the follow-up
-
-- ✔ **Done — tests:** add `pytest.raises(ValidationError)` coverage for both the constructor and `model_validate({...})` with the key absent, mirroring the required-`run_mode` coverage already in `tests/unit/pipelex/pipe_run/test_cogt_run_params_carrier.py:72-92`.
-- ✔ **Done — mutation-check it.** Temporarily restore `default=None` and confirm the new test goes red. A test green on first run proves nothing here.
-- ✔ **Done — fix the compaction fixture** to build via the factory and assert the observed bound — that is the one place where an accidentally-unbounded fan-out actually changes behavior.
-- ⏳ **Still open — cross-repo, gated on the `pipelex` pin moving:** our Temporal plugin's payload-converter test round-trips `None`, so it asserts `None == None` and would not catch the field being dropped on the wire. Make it round-trip a real int bound.
-- **Honest caveat to keep in view:** making the field required converts a legacy-history decode into a `ValidationError`, and a workflow-task converter exception retries forever — it hangs rather than fails. Both states are non-events while Temporal is pre-production, and neither is fixed by a field default. It reconfirms that deploy discipline, not this field, is the real control over version skew under live histories.
-
-## Not deferred — the two P1s as Codex reported them
-
-Recorded so both findings stay traceable. Neither produced a code change.
-
-### 1. `run_batch_branch` on a structurally-conforming router — false positive
-
-Codex argued that `Pipelex.make` given a router that satisfies `PipeRouterProtocol` structurally without inheriting from it would `AttributeError` at `pipelex/pipe_controllers/batch/pipe_batch.py:164`, because Python does not install a protocol's default method bodies on structural implementers.
-
-The language claim is correct. Everything downstream of it is not:
-
-- **No such router exists.** Every implementer in the workspace inherits nominally — `PipeRouter` (`pipelex/pipe_run/pipe_router.py`), the routers in our Temporal and Mistral Workflows plugins, and every test stub. `pipelex-api` and the transport layer that is not open core contain no router at all.
-- **The failure mode is static, not runtime.** The protocol is not `@runtime_checkable`, and injection performs no isinstance check — but pyright rejects a structural non-conformer at the injection boundary with `"run_batch_branch" is not present (reportArgumentType)`. Every consumer in this workspace is type-checked.
-- **Structural conformance was never viable here.** `PipeRouterProtocol` declares an attribute, three concrete observer hooks, a concrete template-method `run`, and an `@abstractmethod _run_pipe_job`. Conforming without inheriting would mean reimplementing `run`'s entire error-wrapping template. Inheritance is not one supported pattern — it is the only one.
-- **The cited convention says the opposite.** Codex referenced `AGENTS.md:255-258`; that section actually reads *"When extending the `Protocol`, also update every implementation (including no-op / null implementations) so structural typing is satisfied"* — a rule pointing away from the claim it was cited for.
-
-**The proposed fallback was rejected on the merits, not just as unnecessary.** A `getattr(router, "run_batch_branch", router.run)` at the dispatch site would defeat the pyright check that currently catches this, and would make the batch-branch signal silently unreliable: a distributed router whose override is renamed or misspelled would fall back to `run` and lose per-branch isolation — precisely the failure the hook exists to prevent. That trades a loud, checked, one-line-to-fix `AttributeError` for a silent behavioral downgrade in the distributed path.
-
-No test was added either. A test injecting a non-inheriting router would assert that Python raises on a missing attribute — a test of the language — and would enshrine an extension pattern the codebase deliberately does not support. The existing coverage is the right coverage: `tests/unit/pipelex/pipe_run/test_run_batch_branch_hook.py` pins that the default delegates to `run` rather than to `_run_pipe_job`, so observers still see every branch, and `tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_branch_dispatch.py` pins one hook call per item.
-
-**What did change:** two clauses of documentation precision, because a competent reviewer misread the extension contract and that is evidence the text was ambiguous. `CHANGELOG.md` now names the mechanism behind "every existing router keeps working untouched" (they subclass, so they inherit it), and `docs/advanced/index.md` § "Protocol Compliance" now leads with subclassing — it was the one sentence a reader could take as blessing structural-only implementation.
-
-### 2. Legacy payloads losing the fan-out bound — false positive
-
-Codex argued that a worker resuming a `PipeRunParams` serialized before `batch_max_concurrency` existed would decode it as `None`, read as unbounded, changing both concurrency and replay grouping mid-flight.
-
-The mechanism is real: `PipeRunParams` does ride a Temporal workflow argument in our Temporal plugin's router workflow, workflow arguments are recorded in history and re-decoded on replay, and `gather_bounded`'s chunk size does determine command grouping — which that plugin's own replay-determinism notes place on the replay-unsafe side of their table.
-
-The scenario is not:
-
-- **The Temporal integration is not in this package.** It lives in our Temporal plugin, and `pyproject.toml` carries no `temporalio` dependency. No OSS consumer of `pipelex` can have an in-flight durable batch.
-- **The only exposed party is our own hosted plane, which is pre-production.** Temporal has never shipped to prod.
-- **A field default cannot fix the general case.** Bumping `pipelex` on a Temporal worker is a workflow-code change, and this same release lands the kernel extraction and the plugin entry-point-group split. There is no `workflow.patched` or worker-versioning machinery. Hot-swapping any pipelex version under live histories is unsafe with or without this field; the control is deploy discipline (drain, build IDs).
-- **The remedy is what the workspace rules out.** "No backward compatibility… no deprecation transition period." A legacy-payload sentinel is exactly the speculative back-compat machinery that policy exists to prevent, and the change is already recorded as breaking in the changelog.
diff --git a/wip/pr-1099-review-notes.md b/wip/pr-1099-review-notes.md
deleted file mode 100644
index a24cf5d9b..000000000
--- a/wip/pr-1099-review-notes.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# PR #1099 review — deferred items
-
-Deferred findings from the SWE-agent review triage of PR #1099 (Pipe-refs). Each was verified as real; they are deferred as judgment calls, not dismissed.
-
-## Hardcoded domain literals in test blueprints (all-or-none sweep)
-
-**Reporter:** cubic-dev-ai (three threads). **Verified:** confirmed, cosmetic.
-
-Three PR-touched test files qualify `SubPipeBlueprint(pipe=...)` refs with a hardcoded domain literal even though the module defines a domain constant used elsewhere in the same file:
-
-- `tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_absence.py` — `"test_optionals_par.opt_par_find"` / `.opt_par_base` vs `_DOMAIN_CODE`
-- `tests/integration/pipelex/pipes/optionals/test_liftable_pipes_inventory.py` — two hunks (sequence steps and parallel branches) vs `_DOMAIN_CODE`
-- `tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_unresolvable_structure_class.py` — `"test_usc.usc_branch"` vs `DOMAIN_CODE`
-
-**Why deferred:** a verification sweep found the same pattern in six more PR-touched files that define a domain constant — `test_lift_sequence.py`, `test_lifted_parallel_companion_slots.py`, `test_optional_gate_tolerates_missing.py`, `test_parallel_optional_combine_validation.py`, `test_redundant_force_warning.py`, and `test_taint_sequence_validation.py` (the last with ~20 refs). Fixing only the three flagged files would make the tree *less* consistent than it is now; fixing all of them is a purely cosmetic sweep of dozens of edits on an already-large PR. All-or-none, in a dedicated cleanup — not piecemeal in review follow-ups.
-
-**Recommendation:** if the sweep is done, interpolate the module constant everywhere (`f"{_DOMAIN_CODE}.xxx"`), matching the pattern in `test_pipe_parallel_branch_type_validation.py`. Note `test_pipe_structure_in_sequence.py` also hardcodes a domain prefix but defines no constant — it is not part of this pattern.
-
-## Ambiguity as a first-class CLI outcome (design decision, round 2)
-
-**Reporter:** cubic-dev-ai (two threads, both judged false positives on their stated claim). **Verified:** no authored contract is violated today.
-
-The bot demanded exit 2 for ambiguous bare codes in `pipelex which`/`show`; that requirement exists only in cubic's auto-generated PR-summary block. The authored contract (changelog, `docs/building-methods/libraries.md`) promises a clean error naming the candidates, which holds and is test-pinned. But the triage surfaced a real open design question: `which` and `show` collapse *not found* and *ambiguous* into exit 1, so a script cannot tell the two apart; and there is no ambiguity-specific exception class for pipes — callers distinguish "a `PipeLibraryError` that is not a `PipeNotFoundError`", relying on subclass ordering (see `_validate_core.py`'s two arms). The workspace rule prefers structured verdicts over message-matching.
-
-**If ever decided yes:** add `PipeCodeAmbiguousError(PipeLibraryError)` in `pipelex/libraries/pipe/exceptions.py` (mirroring `AmbiguousInputsFilesError`), raise it at both ambiguity sites in `pipe_library.py`, regenerate the error-identity snapshot and error pages (`make gei` / `make gep`), give `which`/`show` a dedicated exit-2 arm, and state the exit code in the changelog and docs (today neither does). It is a product decision about CLI contract, not a bug — exit 0/1/2 semantics are currently scoped to verdict-producing commands (`validate`/`fix`/`resolve`).
-
-## Pre-ship review round (Claude + Codex adversarial, 2026-08-13) — deferred with reasons
-
-Each verified against the code; deferred as design/architecture calls, not dismissed.
-
-- **Host/dep concept-collision split brain (Codex P0, verified mechanically real).** When a dependency declares the same unaliased `domain.Concept` as the host, dep construction skips the temp registration (`library_manager.py` `is_concept_exists` guard), so the dep pipe's I/O binds the HOST concept — while the post-C3 entry lookup, under an aliased scope, binds the DEP concept for the same spelling. `Concept.is_compatible` short-circuits on equal `concept_ref` strings before comparing structure classes, so input shaping can instantiate the dep structure class against a pipe validated with the host's. Requires a dependency that redeclares a host domain name — the same collision shape in which dependency *pipes* already misbehave (see `wip/pipe-refs/dependency-subpipe-scope-deferred.md`). **Ruled 2026-08-13 (pre-ship review): defer to the packaging project** — the C3 scope-wins precedence stands; the collision shape belongs to the packaging design alongside the deferred dependency-execution defects. Not a merge blocker for PR #1099. Related: the same precedence means an explicitly-typed host `domain.Concept` input is shadowable by a dependency reusing that domain name, with no syntax that forces host resolution under an aliased scope.
-- **`dynamic_output_concept_ref` bypasses the entry-concept semantics (parity gap, not a regression).** `pipe_llm.py` owner-qualifies a bare dynamic-output ref and calls the strict `get_required_concept`; `search_scope` is not threaded into `PipeRunParams`. Untouched by this branch — but a bare sibling-domain concept that now works in an input envelope still fails as a dynamic output, and a dependency entry pipe's bare dynamic output resolves without its alias. Align when the dynamic-output params-key TODO in `pipe_llm.py` is paid.
-- **Library load is non-transactional (pre-existing, more visible now).** `load_from_blueprints` records the batch and `load_from_crate` mutates domains/concepts/source maps before strict dependency validation runs; a strict-ref failure leaves the mutations in place (only the fingerprint is withheld). Fresh CLI flows tear down; long-lived managers retry into duplicate-declaration errors. The strict rule makes first-load failures more common (that is the migration path), so the cleanup story may deserve a look in the packaging/loading project.
-- **`add_new_pipe` does not enforce the qualification invariant.** The strict lookup assumes every controller's sub-refs were qualified by the crate pass, but a programmatic caller can `PipeFactory.make_from_blueprint` + `add_new_pipe` a controller with bare refs — it loads fine and fails only at validation/execution. In-repo paths all go through the pass; a boundary assert (or a docstring warning) on `add_new_pipe` would make the invariant explicit for plugin authors.
-- **Spec-less input shaping has no compat check on the crate-wide arm.** `WorkingMemoryFactory.make_from_pipeline_inputs` without `input_specs` (the transport-bridge path) resolves a bare envelope concept via the crate-wide unique match with no `is_compatible` check afterward — a caller's `{"concept": "Invoice"}` that used to error (entry domain lacked it) can now bind a unique `other_domain.Invoice`. Deliberate widening per the changelog; recording the spec-less-path nuance for the 4b bridge migration.
-- **Perf, both linear and bounded (performance specialist):** (1) `qualify_crate(crate).pipes` on the two library-load paths qualifies all concepts then discards them — a pipes-only entry point would halve the pass on loads; (2) `get_optional_entry_concept`'s crate-wide scan re-runs per list-input item on the same bare code — a per-run memo or index would make repeats dict hits. Both smallest-correct-surface calls, neither quadratic.
-- **`pipe_code`-named holders of qualified refs (maintainability).** `SubPipe.pipe_code`, `PipeBatch.branch_pipe_code`, and `run_pipe_func`'s `pipe_code` parameter now carry `domain.code` refs while named `code` — the exact trap the batch-suffix bug fell into. A rename sweep (`pipe_ref`) is breaking-but-allowed; do it as its own change, not piecemeal.
-
-## Observations recorded in passing (no action decided)
-
-- `pipelex/libraries/crate_qualification.py` — the module contract ("a merged, key-qualified crate") does not say whether aliased keys (`alias->dom.code`) are in scope. `_domain_of` would parse one to `domain_path="alias->dom"` and a bare in-body ref would be rewritten to `alias->dom.foo`; `parse_pipe_ref` downstream rejects that loudly, and merged crates carry no aliased keys today. A guard (or one docstring line placing aliased keys out of scope) would close the ambiguity.
-
-- `pipelex/libraries/crate_qualification.py` — the cross-package **io**-ref deferral branch in `_qualify_io_ref` (`QualifiedRef.has_cross_package_prefix(io_ref) → return io_ref`) looks unreachable: `PipeBlueprint.generic_validate_inputs`/`generic_validate_output` reject any io ref that does not match `MULTIPLICITY_PATTERN`, and `alias->dom.Concept` cannot match it. Either cross-package concept refs in pipe io are intentionally illegal (making the branch and the module-docstring line about it dead) or the blueprint validator has a gap. Worth a one-line clarification when someone is next in that file.
-- `pipelex/pipe_machinery/pipe_abstract.py` — `PipeAbstract.domain_code` is the one identity field with no validator (`code` has one). A `field_validator` calling `validate_domain_code` would make the `f"{domain_code}.{code}"` pipe-library key invariant structural instead of assumed, and would make the diagnostics-path `QualifiedRef.parse` calls in `pipelex/libraries/library.py` provably safe. Deliberately not done in review follow-ups — it widens the change surface for a state the loader already makes unreachable.
diff --git a/wip/pr-1110-review-notes.md b/wip/pr-1110-review-notes.md
deleted file mode 100644
index 7971e8dd4..000000000
--- a/wip/pr-1110-review-notes.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# PR #1110 review — deferred items
-
-Deferred findings from the SWE-agent review triage of PR #1110 (Migrator Phases 0–1: the migration contract, the operation vocabulary and the schema-1 cut). Each was verified against the code; the ones below are deferred as design calls or as work that belongs to a later migrator phase (see `wip/migrator-3/sequencing.md` at the workspace root), not dismissed. Everything else the bots raised was fixed on the branch: wildcard operations are now atomic on `CONFLICT`, the coverage walk detects occupied destinations and `delete_table` aimed at a key, enum-member accounting follows a path through the entry's own renames, malformed ledgers and misnamed goldens fail as migration errors, `Mapping[...]` is an open node, list items are cleaned of nulls before TOML serialization, and the dev commands escape Rich markup and follow the quiet-mode convention.
-
-## Value-domain narrowing is classified as additive (the one to take up first)
-
-**Reporter:** Codex (two P1 threads, `pipelex/migration/coverage.py` head-link classification and `pipelex/migration/fingerprint.py` `_strip_annotated`). **Verified:** real.
-
-A change that keeps every path and every enum member but narrows what a value may be — `int → str`, `str → SomeEnum`, `list[int] → list[str]`, or a tightened constraint such as `Field(gt=0) → Field(gt=10)` — appears in the fingerprint diff only as a `changed_paths` entry (or, for a constraint, not at all: constraint metadata is stripped at every level). `_check_head_link` classifies that as additive and asks for a golden regeneration, so a valid old file whose value falls outside the new domain fails strict validation with a green gate.
-
-**Why deferred:** both behaviours are stated in the contract (`docs/migration-ledger.md` → "Coverage": *a type or default changed → regenerate the golden*; → "The fingerprint": *constraint metadata is stripped … at every level*, deliberately, so a validation-library upgrade cannot move a golden). Changing them is a contract decision, and no operation in the vocabulary can repair an out-of-domain value — the only remedy is an `unsafe` entry with guidance. So the fix is a new rule, not a patch: **value-domain narrowing demands a bump and an entry, and that entry must be `unsafe`** (or carry a `remap_value` when the narrowing is `str → enum` and the old free-string spellings can be enumerated). It needs a compatibility notion the fingerprint can decide: a rendered type whose union members are a superset of the old ones is a widening (safe); `enum`/`literal → str` is a widening; anything else is a narrowing. Constraints would need a stable projection (the `annotated_types` objects — `Gt`, `Ge`, `Lt`, `Le`, `MinLen`, `MaxLen`, `MultipleOf` — are stable across pydantic versions; `Field(pattern=…)` is a string) recorded per path, with "tightened" defined per constraint kind.
-
-**Revisit when:** Phase 2 (S5, "the checks that prove them"), after a ruling on the two contract sentences. Until then, a maintainer narrowing a type must notice the `changed_paths` line in the `umig` diff by eye — which is exactly the reliance on review the gate exists to remove, so this should not wait past S5.
-
-## `pre_history` entries bypass coverage
-
-**Reporter:** cubic (two P1 threads, `pipelex/migration/ledger.py:90`, `pipelex/migration/coverage.py:228`). **Verified:** the flag is accepted by the model and `check_entry_accounting` returns `[]` for it.
-
-**Why deferred:** designed that way, for now. A pre-history entry removes paths that predate `fingerprint@1`, so no fingerprint pair describes its diff; the contract has it verified by `check-ledger` against its own `declared_removed_paths` and a hand-authored `before` document. Both `check-ledger` and the first such entry (the telemetry back-entry) are Phase 2 (S5) deliverables; no entry carries the flag today, and the coverage gate would flag any op of such an entry as dead if it were checked against `fingerprint@1`.
-
-**Revisit when:** S5 — the check must land in the same pull request as the first `pre_history` entry, and until it does the flag is an escape hatch the contract says must not exist. If S5 slips, the cheap interim is to have coverage report a `pre_history` entry as an issue ("verified by check-ledger, which does not exist yet") so the bypass is loud.
-
-## A required table with only optional children escapes the defaults-layer rule
-
-**Reporter:** cubic (P1, `pipelex/migration/coverage.py:387`). **Verified:** real; `check_defaults_layer` skips `TABLE_TYPE` records, and a table's presence in the defaults document is not recorded in the fingerprint.
-
-**Why deferred:** boot-redundant for the only packaged-document surface. `pipelex/pipelex.toml` is merged beneath every load, so a required table absent from it fails the repository's own boot (`make tb`), long before the gate. Model-defaults surfaces synthesize their reference document from the model, which cannot be built without the table. Fixing it properly means recording table presence in the fingerprint (a golden format change) or handing the defaults document to `check_defaults_layer` separately.
-
-**Revisit when:** a second packaged-document surface appears, or the defaults layer stops being merged beneath every boot.
-
-## Overlapping tier globs are accepted by the registry
-
-**Reporter:** cubic (P2, `pipelex/migration/surfaces.py:159`). **Verified:** only identical glob strings are rejected; `pipelex_*.toml` and `*_local.toml` would both load.
-
-**Why deferred:** deciding whether two glob languages overlap is not cheap in general, and the contract's sentence — *a file claimed by two globs is a registry error* — is naturally enforced where files exist: the directory walk of `pipelex migrate`. That is Phase 3 (S6). Today's registry has one glob per surface family and none overlap.
-
-**Revisit when:** S6 builds the walk — a file matched by two globs should stop the run by name.
-
-## Partial golden regeneration when a later surface fails
-
-**Reporter:** cubic (P2, `pipelex/cli/dev_cli/commands/update_migration_schemas_cmd.py:35`). **Verified:** `snapshot_registry` writes per surface, so a ledger error on the second surface leaves the first's snapshot written.
-
-**Declined:** it is a developer regeneration tool over three surfaces whose whole output is a reviewed `git diff`; a partial state is visible there and re-running after fixing the ledger converges. A stage-then-write restructure buys nothing a `git diff` does not already show.
-
-## `sort_keys=True` on the fingerprint JSON
-
-**Reporter:** cubic (P2, `pipelex/migration/goldens.py:65`). **Verified:** a dict-valued default copied from the packaged TOML keeps that TOML's key order, so reordering keys inside such a value moves the golden.
-
-**Declined:** `paths` is already sorted at compute time and the record fields are fixed. The only order-sensitive material is a default copied out of `pipelex/pipelex.toml`, and any byte change to that file is already flagged by `_check_head_defaults_document` and regenerated in the same `umig` — the "false diff" is the same event seen twice, by design.
-
-## `strip_reserved_meta` runs before `extra_overrides` are merged
-
-**Reporter:** cubic (P3, confidence 4, `pipelex/system/configuration/config_loader.py:342`). **Verified:** a `[meta] schema_version` passed programmatically through `extra_overrides` reaches model validation.
-
-**Declined:** `extra_overrides` is a repository-internal programmatic layer, not a configuration file the migrator ever walks or stamps. A `[meta]` table arriving that way is a caller bug and should keep failing loudly under `extra="forbid"` rather than being swallowed.
diff --git a/wip/pr-1112-review-notes.md b/wip/pr-1112-review-notes.md
deleted file mode 100644
index 0193d3370..000000000
--- a/wip/pr-1112-review-notes.md
+++ /dev/null
@@ -1,171 +0,0 @@
-# PR #1112 review triage — Migrator Phase 2
-
-PR [#1112](https://github.com/Pipelex/pipelex/pull/1112) → `dev`, branch `feature/Migrator-2`. Three bots left 33 review threads (greptile 1, codex 5, cubic 27). Every one was read in full and verified against the code by hand; the eight that a first pass had left unverified were verified in the round that executed this triage.
-
-**State: arbitrated and executed.** The clusters marked *Fixed* below are fixed on the branch, TDD-first, with `make agent-check`, `make cl`, `make cmig` and the suite green. The clusters marked *Deferred* are recorded here and their threads left open. The ones marked *Won't fix* were answered on their thread and resolved. The arbitration rule was Louis': fix what needs fixing, defer in doubt, no speculative machinery.
-
-## Disposition
-
-| # | Where | Issue | Reporter(s) | Disposition |
-|---|---|---|---|---|
-| A | `runner.py`, `backup.py` | `FixTransactionError` and pruning failures escaped `migrate_file`, aborting every sibling | greptile #1, codex #4, cubic #16, #22 | **Fixed** |
-| B | `backup.py` | Pruning deleted any `<file>.bak.*`, including a user's own hand-made copy | cubic #28 | **Fixed** |
-| C | `backup.py` | Staged backup copy leaked when the replace failed | cubic #21 | **Fixed** |
-| D | `narrowing.py` | `Literal['a']` → `Literal[1]` suppressed the lost spelling entirely | cubic #15 | **Fixed** |
-| E | `transform_check.py` | An unreadable golden crashed the gate with a raw traceback | cubic #29 | **Fixed** |
-| E′ | `surfaces.py:117` | An unreadable packaged kit template crashes the gate | cubic #27 | **Won't fix** — a packaged file missing is a broken install, and the traceback names the path |
-| F | `narrowing.py` | Float `multiple_of` modulo reported a widening as a narrowing | codex #5, cubic #24 | **Fixed** |
-| G | `ledger.py` | `declared_removed_paths = [""]` satisfies the guard vacuously | cubic #17 | **Won't fix** — not exploitable: `""` is never a reserved prefix, so every op of such an entry is refused as live material and the gate is red anyway |
-| H | `test_replay_properties.py` | The "older shape" fixture kept the new keys, so renames conflicted instead of applying | cubic #18 | **Fixed** |
-| I | `test_engine.py`, `test_telemetry_back_entry.py` | Tests passed without exercising the guarantee they name | cubic #31, #33 | **Fixed** |
-| J | `test_fix_applier_rename_dom_consistency.py`, `applier.py` | Docstring contradicted its own pinned assertion | cubic #30 | **Fixed** |
-| K | `test_runner.py` | `_write_ledger` duplicated the `write_ledger_file` fixture | cubic #32 | **Fixed** |
-| L | `engine.py` | An op-free `unsafe` entry is structurally unreportable | codex #2 | **Deferred — needs a ruling** |
-| M | `backup.py`, `runner.py` | Two runs in the same UTC second can lose the only prior backup | codex #6, cubic #12 | **Deferred** |
-| N | `runner.py` | A symlinked config file is replaced by a regular file | codex #3, cubic #8 | **Deferred — policy call** |
-| O | `surfaces.py` | `telemetry.project.toml` is not a neutrality witness | cubic #11 | **Deferred** |
-| P | `fingerprint.py` | Union-member constraints merged with the field's own | cubic #10 | **Deferred** |
-| Q | `narrowing.py` | `gt=0` vs `ge=1` on ints; `list[int]` → `list[int \| str]` | cubic #25, #26 | **Deferred** |
-| R | `coverage.py:315` | Any remap over a free-form domain suppresses the narrowing | cubic #7 | **Won't fix — as designed** |
-| S1 | `documents.py:40` | A quoted key containing `.` flattens into ambiguous segments | cubic #9 | **Deferred** |
-| S2 | `walk.py:208` / `suggested_fix.py` | A wildcard-source `move_key` conflicts on any file with two matched entries | cubic #13 | **Fixed** — refused when the ledger is parsed |
-| S3 | `ledger_check.py:255` | A pre-history entry cannot chain through a renamed declared path | cubic #23 | **Deferred**, documented as a constraint |
-| S4 | `ledger_check.py:518` | Reserved spellings are keyed at the remap's literal path, not the walked one | cubic #14 | **Deferred** |
-| S5 | `transform_check.py:192` | A destination beneath an open mapping, absent from the reference document, was a false red | cubic #19 | **Fixed** |
-| S6 | `surfaces.py:247` | A project-level `pipelex_service.toml` is claimed by the service surface | cubic #20 | **Won't fix — as designed** |
-
-## What was fixed, and how
-
-- **A.** `_write_migrated_file` is now the per-file boundary in fact: it catches `FixTransactionError` and decides by re-reading the target whether the write landed (the exception cannot say; the file can) — blocked as unwritable when it did not, written with a warning when it did; and `prune_backups_except` sits inside its own `try`, so a backup that will not prune is a warning on a migrated file rather than an escape that aborts the walk. Tests: a transaction error after the write, one before it, a pruning failure — each with the sibling still migrated.
-- **B.** `existing_backups_of` matches the whole name we write, stamp included (`\d{8}T\d{6}Z`). Test: `example.toml.bak.notes` survives while a stamped backup is pruned.
-- **C.** `write_backup` unlinks the staged copy when the replace fails. Test: a failed backup leaves the directory holding only the source file.
-- **D.** `lost_enumerated_spellings` exempts only a destination that admits `str`, which is what its docstring always said. Test: `Literal['a']` → `Literal[1]` loses `'a'`. The contract's fingerprint section now says a non-string literal's domain is invisible to the projection.
-- **E.** The two golden reads in `transform_check.py` translate `OSError`/`ValueError` into `MigrationGoldenError` naming the file, mirroring `read_fingerprint_golden`. Test: a non-UTF-8 `[email protected]` is refused by name.
-- **F.** `multiple_of` divisibility is decided over `Fraction(str(x))`. Test: `0.3` → `0.1` is a widening.
-- **H.** The older-shape generator drops `title` when it puts `heading` back and `section.enabled` when it puts `chatty` back. A second vacuity meta-test finds a document on which the rename *and* the move apply with nothing blocked, which is what makes the idempotence and prefix-coherence properties claims about a rename.
-- **I.** The report-never-echoes test asserts the unsafe entry was reported; the telemetry test asserts the whole migrated document.
-- **J.** Both docstrings now say what the pinned assertion measures: the old key stays in the raw dict, the new one is never added outside the table branch.
-- **K.** `test_runner.py` uses the conftest fixture.
-- **S2.** `MoveKeyOp` refuses a wildcard in its `table_path`, symmetric with the existing refusal on `new_table_path`, and the contract's wildcard section says why: with the destination pinned to one fixed key, "move each entry's key" is many-to-one and conflicts on any file where two matched entries carry the key. `test_a_wildcard_source_is_accepted` became two tests — the move is refused, an in-place kind keeps its wildcard.
-- **S5.** The transform comparator's first claim reads the fingerprint *with its wildcards*: `deck.claude.new_name` is recorded as `deck.*.new_name`. Test: a rename beneath an open mapping whose destination the new reference document omits under that entry is tolerated.
-- **S3, documented.** The pre-history containment rule reads each source at its literal, pre-entry path; the contract now says so and tells the author to address the material first, then rename it.
-
-## The deferrals, and why
-
-### L. An op-free `unsafe` entry can never reach the user — needs a ruling
-
-`MigrationEntry.ops` is documented as legitimately empty when `safety = "unsafe"` (`ledger.py`), and `check_an_op_free_entry_is_unsafe` enforces exactly that shape: it is *the* form for "a change only a human can make". But `_rehearse_unsafe_entry` (`engine.py`) decides whether to report by rehearsing the entry's operations — and an entry with no operations rehearses to nothing, so it returns early and **the entry is never reported to anyone, ever**.
-
-That is precisely the remedy R8 names for a tightened numeric bound, and the PR body says so: *"or `unsafe`, which is the only remedy a tightened numeric bound has, since no structural operation can repair a value."* The accounting accepts such an entry as sufficient; the engine then guarantees the user never hears about it.
-
-**Not reachable today** — no ledger in the tree carries an op-free entry, and the reshape entry is `safe`. It fires the first time someone writes the shape the contract invites.
-
-The three candidate answers are all design decisions:
-
-1. **Report it always.** Restores the guidance, and reintroduces exactly what the rehearsal rule exists to prevent — a warning at every boot, forever, for every user whose file is already fine.
-2. **Give the entry a predicate.** The honest one: the entry declares the paths whose domain narrowed, and the engine reports it when the document carries one of them. Costs a new ledger field, a contract change, and a `check-ledger` rule — but it is the only option that reports to the users who need it and stays silent for the rest.
-3. **Refuse the shape.** Make an op-free entry illegal and force every narrowing to be expressible. Cheapest, and it contradicts the contract's own sentence plus R8's stated remedy.
-
-A fourth road is tempting and wrong: have the engine validate the document against the model. The engine is deliberately model-free and filesystem-free — that is what lets the gates and a user's migration run the same code — and threading a model into it would cost that.
-
-**Recommendation: (2), in Phase 3**, where `pipelex migrate` and boot tolerance land and the reporting surface exists to carry it. **Louis' call.**
-
-### M. Same-second backup collision
-
-`write_backup` clobbers an existing backup of the same stamp, and `runner.py` unlinks that path on a failed commit as though this run had created it. Two migrations of the same file inside one UTC second, the second having something to apply and failing to commit, lose the only copy of the original. Narrow, but it is the one scenario backups exist for. The fix is small (report whether the destination pre-existed; unlink only what this run created) but it touches the backup naming the contract states, so it goes with N as one backup-semantics pass.
-
-### N. Symlinked configuration files
-
-Confirmed mechanically: `read_file_snapshot` reads *through* the link, `assert_snapshot_unchanged` compares device/inode of the resolved file, and `replacement_snapshot.path.replace(snapshot.path)` then replaces **the link itself** with a regular file, leaving the real target untouched. A user with a dotfile-managed `~/.pipelex/pipelex.toml → ~/dotfiles/pipelex.toml` silently loses the linkage.
-
-Deferred because the answer is a policy choice, not a bug fix — refuse a symlinked target, resolve and transact the target, or keep today's behaviour and document it — and because `file_transaction.py` is **shared with the `.mthds` fix loop**, so whatever is decided changes that path too.
-
-### O. `telemetry.project.toml` is not a witness
-
-`pipelex/kit/configs/telemetry.project.toml` is a different, sparser shape than the global `telemetry.toml` the telemetry surface uses as its kit witness. Measured: replaying the real `telemetry-config` ledger over it returns `changed=False, steps=0, blocked=0` and the very same string, so this is a latent coverage gap, not a live failure — and the property suite already samples sparse documents. Letting a surface carry several kit witnesses is small; it waits for a need.
-
-### P / Q. Refinements to the R8 relation
-
-- **P (#10)** — for a genuine union, taking the widest bound per kind is correct: a union accepts a value if any member does. The narrow hole is mixing the two sources — a binding top-level `Field(le=6)` merged with a union member's `le=100` yields `le=100`. Exotic; recording it means another golden format change.
-- **Q (#25)** `gt=0` and `ge=1` accept the same integers, but `_strictest_bound` calls the swap a tightening — a false breaking verdict on an equivalent schema; the fix needs the value type threaded into `_describe_tightenings`.
-- **Q (#26)** `_union_members` treats `list[int | str]` as one opaque member, so `list[int]` → `list[int | str]` reads as a narrowing.
-
-Both Q items are crying-wolf failures. Worth doing as one deliberate pass over the relation, with fixtures per shape, rather than folded into a review round.
-
-### S1. A quoted key containing `.` beneath an open mapping
-
-`_flatten_into` joins segments with `.`, so a user's key `"gpt-4.1"` beneath an open mapping flattens to synthetic segments. Consequences today: none on any checked-in document (no surface document carries such a key), and the head-link model validation catches a misspelled destination regardless. The honest fix is one escaping scheme applied everywhere migration paths are split and joined — walk, applier, fingerprint, documents — which is a design pass, not a review fix.
-
-### S3. Pre-history containment is literal
-
-A pre-history entry that renames a declared table and then addresses a child under the new name is refused, because the containment rule reads the child's source literally against the declaration. Every such chain has an unchained equivalent — address the material first, then rename it — so the contract now states the constraint rather than the code growing a second walk.
-
-### S4. Reserved spellings are keyed at the remap's literal path
-
-`derive_reserved_registry` records a remapped-away spelling under the remap operation's own `table_path.key`; the reuse check at `ledger_check.py` looks it up at the current fingerprint path. An entry that remaps `section.mode` and then renames `section` → `area` in that order stores `section.mode=a`, and a later version bringing `a` back at `area.mode` is not caught. Reordering the ops (rename first) makes it work today. The fix keys reservations by the walk's final path; it needs the walk inside `derive_reserved_registry`, which is a moderate change for an exotic ordering.
-
-## Won't fix, and why
-
-- **E′ (#27)** — `surfaces.py` reads a *packaged* file. Missing or unreadable means a broken install; the traceback names the path; a gate-shaped refusal adds nothing an author can act on.
-- **G (#17)** — `[""]` is never a reserved prefix, so every operation of such an entry is refused as acting on live material and the gate is red. Tightening the field's shape would be hygiene, not protection.
-- **R (#7)** — by design, and it is what R8 ruled: for a free-form domain narrowed into an enumerated one, no remap can be *proved* complete because the old domain is infinite, so the remap *is* the author's account of the spellings that existed. Requiring `unsafe` there would forbid the exact case the coverage docstring names as the fit for a remap.
-- **S6 (#20)** — the walk claims by filename, deliberately: a file named `pipelex_service.toml` is a service configuration wherever it sits, and migrating a stray project-level one is harmless and backed up. Restricting a surface by tier is machinery for a case nobody has.
-
-## Round 2 — `/review` pass of 2026-08-16
-
-Run on the branch after round 1, against `dev` at `052b9df06`, with the S5 charter (`wip/migrator-3/sequencing.md`) as the plan. Sources: the checklist pass, four specialist subagents (testing, maintainability, security/data-safety, a Claude adversarial pass) and a Codex adversarial pass. Every finding below was verified by reading or executing the code before it was acted on; the round-1 deferrals were excluded from the brief and are not repeated here.
-
-**Plan completion.** Every S5 "Done when" item that this PR owns is present: `make cl` exists and is in `check` and `agent-check` (both gates run in under a second, which answers Checkpoint B's timing question); the R8 rule is in `_check_head_link` and in accounting, the whitelist projection with `pattern` excluded is in the fingerprint, the goldens were regenerated once, the contract's coverage row and fingerprint section moved with it, including the sentence naming validator-expressed narrowing as outside the gate; the telemetry back-entry and the `pre_history` verification are in the same PR. The join in `_reshape/` is post-merge work and is not part of this PR. The one commit outside the S5 scope, `cc1bc1b92` (`wip/bugs/enum-completeness-validators-over-user-keys.md`), was already recorded in the charter as riding along by choice.
-
-### Fixed in this round
-
-| Where | Issue | Reporter | What was done |
-|---|---|---|---|
-| `applier.py` | **Renaming or moving a table whose descendant is written in several chunks (`[a.b]` … `[a.c]` … `[a.b.d]`) re-homed only the first chunk and reported `applied`** — the user's file came out split between the old and the new name, and the next run conflicted. Reproduced on tomlkit 0.14; the parent-level proxy case was already handled, the nested case was not. | Claude adversarial | `_first_split_descendant` guards both operations: `CONFLICT` naming the split table, nothing written. A table interleaved at its own level still moves whole. Contract "Limits" bullet, changelog, and a parametrized red/green test. |
-| `coverage.py` | **A remap on a path excused every narrowing of that path, a tightened bound included** — `Annotated[int, ge=1] \| Literal["auto"]` → `Annotated[int, ge=8] \| Literal[...]` with a `safe` remap of `auto` was green on all gates; a file saying `4` fails at boot. Real shape: `max_concurrency`, `seed`. | Claude adversarial | For a remapped origin only the bound half (`describe_tightenings`) is asked; a type change is still the remap's to answer for. Contract row sentence; red/green fixture. |
-| `coverage.py` | **An over-deletion beneath a renamed table was invisible** — `rename a→b; delete_key [b] x` with `x` live at v2 was green (over-deletion compared by current spelling, and the convergence witness has no value for an optional `None` child). | Claude adversarial | Over-deletion is now decided by origin: each removed origin is carried through its nearest surviving ancestor's rename and that landing is looked up in the new schema. Red/green fixtures. |
-| `runner.py` | **A `FixTransactionError` whose file did not carry the new text deleted the only backup** — with a single-file update that error only comes from the post-commit cleanup path, so `_carries()` false means a concurrent edit or an unreadable target: exactly the state a backup exists for. Also, the cleanup `unlink` calls were unguarded, so a permission error escaped the per-file boundary. | security specialist + Codex (multi-source) | The backup is kept whenever the transaction cannot vouch for the state, and the report names it (`backup_path` on a blocked plan). `_discard_backup` swallows an `OSError` into a warning. Runner docstring and contract "Backups" paragraph aligned; the existing test's assertion flipped, plus tests for the concurrent-edit, commit-`OSError`, unguarded-unlink, non-UTF-8, unreadable and removed-before-read branches. |
-| `backup.py` | `existing_backups_of` globbed on the raw file name, so a name carrying a glob metacharacter could match — and prune — a sibling's only backup. | security specialist | Prefix match over `iterdir()`; test with `example_?.toml` beside `example_a.toml`. |
-| `ledger_check.py` | `RESERVED_VALUE_REUSED` was produced by no test (its path twin was). | testing specialist | Red and green tests added. |
-| `fingerprint.py` | The non-numeric-bound drop had no test. | testing specialist | `Decimal` bound fixture. |
-| `docs/migration-ledger.md` | The contract said no surface carries an array of tables; `TelemetryConfig.otlp` is one, and the fingerprint records it as a terminal `list[table]` — a change inside an exporter entry is invisible to the coverage gate. | Codex + Claude adversarial | Both sentences corrected: the blind spot is named beside validator-expressed narrowing, with `otlp` as the live instance. The fingerprint format itself is deferred (below). |
-| `reserved.py`, `narrowing.py`, `fingerprint.py` | A third hand-rolled `"."` path join; the union separator defined in two modules. | maintainability | `op_source_path` and one `UNION_SEPARATOR`. |
-| `coverage.py`, `reserved.py`, `ledger_check.py`, `transform_check.py` | Docstrings said `check-ledger` reads the `before` document (the transform check does); a hardcoded count; a `MIGRATED_DOCUMENT_REJECTED` message that named the wrong starting document for a pre-history entry. | maintainability | Corrected; `_starting_document_label` used. |
-| `pipelex/kit/agent_rules/commands.md`, `codex_commands.md` | The `agent-check` target list an agent without `make` follows omitted `check-ledger`. | checklist + maintainability | Sources fixed and `CLAUDE.md` / `AGENTS.md` regenerated with `make rules`. |
-| `docs/migration-ledger.md` | "reads checked-in files and nothing else" — the convergence witness for a model-defaults surface is rendered from the live model (rendered, not fingerprinted). | maintainability | Sentence now says what the code does. |
-
-### Deferred from this round
-
-- **`key = "*"` is a literal key to the applier, and a `remap_value` over a container never fires** (Claude adversarial, verified). The walk spells `levels.*` and `check-ledger` accepts `*` at an open node, but `_expand_table_paths` expands only `table_path`, so a remap with `key = "*"` skips with "key '*' not found", and a remap over a `list[enum]` or `dict` value skips as "not a string" — while `_gather_enum_members` descends into containers, so coverage *demands* exactly those remaps for `pipelex.log_config.package_log_levels`, `preferred_agent_targets`, `img_gen_param_defaults.size`. Two coherent answers: teach the applier to expand a `*` key over an open node's entries (the contract's "each of these" reading, and the natural remedy for `dict[str, Enum]`), and have coverage demand `unsafe` for a lost member the remap cannot reach (`list[enum]`); or stop `_gather_enum_members` at the container boundary, mirroring `_collect_constraints` (the maintainability pass's reading), and regenerate the goldens. Either is a design pass with its own fixtures, and it changes the golden format, so it belongs with the R8 relation refinements (P/Q) — before S7 freezes the format.
-- **An `unsafe` entry goes silent after a later `safe` entry renames its target** (Claude adversarial, reproduced): `unsafe@2` remaps `a.mode`, `safe@3` renames `a→b`; run 1 reports both, writes `[b] mode = "legacy"`; run 2 is clean while boot fails on `b.mode`. Either forbid it statically in `check-ledger` (a later entry may not rename a subtree an earlier unsafe entry addresses) or rehearse unsafe entries with their paths traced forward. Goes with L (the op-free unsafe entry) as one "what does `unsafe` promise" pass.
-- **`list[Model]` is a terminal `list[table]` in the fingerprint** — a renamed field inside `OtlpExporterConfig` changes nothing and demands nothing. Documented now; recording the item model's fields under a synthetic segment is a format change and waits for the same pre-S7 window as P/Q and the `*`-key question above.
-- **`up-migration-schemas` overwrites the head golden unconditionally and rides in `make up`** — a habitual `make up` after deleting a field rewrites `fingerprint@N` and erases the removal the coverage gate would have caught. Pre-existing (Phase 1), but this PR is what makes the chain a proof. Candidate: refuse the snapshot when the stored head shows removals or narrowings against the live model, and take `umig` out of `up`.
-- **Replay continues after a blocked entry** (Codex): a rehearsed `unsafe` entry or a partially-applied conflicting `safe` entry does not stop later entries, so later entries — authored against a completed prior version — apply over a hybrid shape. This is what the contract says today ("while the rest of the file's entries proceed") and it is a design choice; recorded so the choice is a choice.
-- **`min_supported_schema_version` has no reader** (Codex): the contract says the loader fails loudly below the floor, but no code determines a document's version. Held at zero and reserved for a squash, so it costs nothing today; the sentence overclaims until a squash and a version detection exist — Phase 3 or the first squash, whichever comes first.
-- **The replay half of `migrate_file` catches only `TOMLKitError`** — a `PipelexUnexpectedError` from the applier, or a non-`TOMLKitError` from tomlkit, would cross the per-file boundary and abort the siblings. No trigger found; the applier's raises are "applier bug" cases where loud is arguably right. Recorded, not changed.
-- **`narrowing.py` reports `int → float` and `enum → literal` (same members) as narrowings** — false reds, no real surface has the shape. Goes with Q.
-- **Ownership, ACLs, xattrs and hard-link identity are lost on replace** (Codex) — the shared transaction primitive keeps mode only. Pre-existing on the `.mthds` path; a policy call together with N (symlinks) as the one backup/replace-semantics pass.
-- **No directory `fsync` after the backup rename and the target replace** (security + Codex, low confidence): crash-durability of the ordering the contract promises. Cheap on POSIX; a decision on whether the guarantee is meant to hold across power loss.
-- Maintainability items left as they are: the six-times hand-rolled ancestor-prefix loop (a helper is worth having when the next site appears); `MigrationReport.written_plans` / `blocked_plans` and `MigrationLedger.entry_for_version` have no caller yet (Phase 3's `pipelex migrate` is the reader — remove them there if it does not read them); a head-link narrowing is reported as `REMOVAL_NEEDS_A_BUMP` while `VALUE_DOMAIN_NARROWED` exists (the message says which; a distinct kind is a taste call); no `UNREADABLE` blocked reason (an unreadable file is reported as `UNWRITABLE` with a detail that says "read"); `_print_issues` duplicated across the two gate commands; `_KIT_CONFIGS_DIR` derived by path arithmetic; the temp-file prefix still says `pipelex-fix-`.
-- Testing items left: `documents.py` has no direct test (reached through the transform check and the property suite); the two `MigrationReport` properties are untested because they are unused.
-
-## Round 3 — `/code-review high` of the round-2 changes, 2026-08-16
-
-Run over the staged round-2 diff, before it was committed. Every finding was reproduced in the venv (tomlkit 0.14) or against the gate before it was acted on. Working tracker for the round: `wip/pr-1112-round3-progress.md`.
-
-### Fixed in this round
-
-| Where | Issue | What was done |
-|---|---|---|
-| `applier.py` | **Round 2's split-descendant `CONFLICT` guard was a workaround for a tomlkit rendering-cache bug, and an incomplete one**: it looked at the merged dict facade of a nested out-of-order table, so a split table inside one of its chunks was invisible and the rename still tore the file with an `applied` verdict; and it fired on dotted keys interleaved inside a single table (`b.x = 1`, `c = 2`, `b.y = 3`), refusing a rename tomlkit performs correctly. The real cause: `Table.invalidate_display_name` walks `values()`, one item per key, so the later chunks of a split table keep the stale header. | The guard is gone. `_refresh_table_headers` walks the *body* of a renamed or moved item (Container body, proxy chunks, AoT elements) and clears every Table's `display_name`, so every chunk re-renders under the new path — rename and move now come out whole for every layout the parser accepts. The round-2 "Limits" bullet and changelog line are replaced; the CONFLICT fixtures became APPLIED-and-whole assertions, with the nested-proxy, interleaved-dotted and array-of-tables shapes added. |
-| `coverage.py`, `narrowing.py` | **Round 2's split (`describe_tightenings` for a remapped origin) closed the bound half and left the type half open**: `Annotated[int, ge=1] \| Literal["auto","unbounded"]` → `Literal["unbounded"]` under a `safe` remap of `auto` was green on both gates while `retries = 4` fails at boot. | `describe_narrowing(remapped=...)` exempts only the string-typed members of the old type (`str`, `enum`, `literal`) — what a remap can rewrite — and still reports any other lost member and every tightened bound. `describe_tightenings` is removed. Gate fixture and unit test; contract row reworded. |
-| `transform_check.py` | A hardcoded count in a docstring this round rewrote. | Reworded. |
-
-### Deferred from this round
-
-- **Renaming a table written in dotted-key form swallows the scalars after it** (pre-existing, reproduced): `[a]\nk.x = 1\nm = 3` + rename `k→kk` yields `[a]\n[a.kk]\nx = 1\n\nm = 3` — `a.m` becomes `a.kk.m`, verdict `applied`. `_replace_at` re-keys the dotted table with a plain `SingleKey`, so tomlkit renders a block header mid-body. The S4 table renames will meet any user file with a dotted section followed by a sibling scalar. Two remedies: refuse when the item's key `is_dotted` (a `CONFLICT` telling the user to write the section as a header), or preserve dotted-ness through `_replace_key_in_container`. Needs a decision, then a red/green fixture in `test_fix_applier_config_surface_shapes.py`.
-- **The `UNWRITABLE` branch of the runner mislabels a landed write.** For the single-file commit the runner performs, `_commit_staged_updates` re-raises the original `OSError`/`FixWriteConflictError` when the replace itself fails (rollback of zero committed updates is trivially complete), so the only reachable `FixTransactionError` is the post-commit cleanup one — the write **landed**, and `_carries()` false means the file was changed or made unreadable afterwards. `blocked_detail` says "the file could not be written", `FileBlockedReason.UNWRITABLE` is documented as leaving the directory untouched, and the contract speaks of "a rollback it could not complete" — an unreachable path. Round 2's own table above states the correct reading. Fix is wording plus possibly a distinct reason (`CHANGED_DURING_RUN`); the reason-enum question goes with the `UNREADABLE` item from round 2.
-- **The backup kept after an uncertain-state failure is pruned by the next successful run of the same file** — `prune_backups_except(keep=T2)` unlinks the round-1 copy whose provenance was certain, while the report told the user "the original is kept at T1". Either the message says the copy lives until the next successful run, or a backup made by a run that did not write is exempt from pruning. Policy call, with M/N and the replace-semantics items.
-- **The over-deletion loop no longer fires on a rename onto a path the new schema keeps** (`label` live at v2, entry renames `label→title`, `title` new at v2): the old spelling-based loop reported `OVER_DELETION`; the origin-based one carries `label` to `title`, finds it in the new schema, and is silent. `check-ledger` refuses the same entry (`OP_ACTS_ON_LIVE_MATERIAL` + `CONVERGENCE_BROKEN`), so the defect cannot ship, but `check-migration-schemas` alone is green and no test pins either behaviour. Add the fixture, and decide whether the surface gate should say it too.
-- **`_over_deleted_landings` mirrors `PathState.trace_to_origin`** (origin→landing vs current→origin, same longest-recorded-prefix loop). Round 2 said the ancestor-prefix loop earns a helper "when the next site appears"; this is that site — a `PathState.landing_of_origin` would let the caller collapse to one loop. Do it with the item above.
-- Minor, confirmed: `reserved.py` keys a remap's value reservation by its op-time spelling, so a remap-then-rename in one entry never trips `RESERVED_VALUE_REUSED` (goes with S4 above); `str(chunk_key)` renders quoted/whitespace key text in a detail message; the `or {}` unpack repeated in `describe_narrowing`.
diff --git a/wip/pr-1112-round3-progress.md b/wip/pr-1112-round3-progress.md
deleted file mode 100644
index ff975df2b..000000000
--- a/wip/pr-1112-round3-progress.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# PR #1112 — round 3 (`/code-review high` of the staged round-2 changes), progress tracker
-
-Working file so the session can pause and resume. Branch `feature/Migrator-2`, worktree `_migrator/`. The round-2 fixes were STAGED but uncommitted when this round started; round-3 edits go on top of them. Full findings are in the review report; the triage below is what was decided.
-
-## Fix-now set (in order)
-
-| # | Item | Status |
-|---|---|---|
-| 1 | `applier.py` — replace the split-descendant CONFLICT guard by the tomlkit root-cause fix: clear every Table's stale `display_name` in the renamed/moved subtree so all chunks re-render under the new name. Covers the nested-proxy miss (`:411`), the interleaved-dotted false positive (`:423`), and drops the documented "limit" from CHANGELOG + `docs/migration-ledger.md`. Tests: turn the three CONFLICT fixtures into APPLIED-and-whole assertions, add nested-proxy + interleaved-dotted cases. | DONE — `_first_split_descendant` + `_split_table_detail` removed, `_refresh_table_headers` added and called from `_replace_key_in_container` and the move; tests rewritten (5 shapes × rename+move, root proxy, nested proxy); CHANGELOG entry rewritten, contract "Limits" bullet dropped |
-| 2 | `coverage.py:351` — a `safe` remap must exempt only the string members it can rewrite; a lost non-string member of a union still counts as a narrowing (`describe_narrowing` type half must still run for remapped origins). Test: `int \| Literal` → `Literal` under a remap must be red in `check_surface`. | DONE — `describe_narrowing(remapped=...)` exempts only `str`/`enum`/`literal` members; `describe_tightenings` removed; gate test + unit test added; contract table row reworded |
-| 3 | `transform_check.py:38` — drop the hardcoded count "Three things". | DONE |
-| 4 | Deferrals written into `wip/pr-1112-review-notes.md` § Round 3 (see list below). | DONE — § Round 3 appended to `wip/pr-1112-review-notes.md` |
-| 5 | `make agent-check` + targeted tests + `make agent-test`. | DONE — agent-check green, agent-test all passed |
-
-## Deferred (to be written into `wip/pr-1112-review-notes.md`, not fixed now)
-
-- `applier.py:374` pre-existing: renaming a dotted-form table (`k.x = 1` then sibling `m = 3`) swallows the siblings under `[a.kk]` — decision needed: refuse on `is_dotted`, or preserve dotted-ness in `_replace_key_in_container`.
-- `runner.py:119` UNWRITABLE wording: for a single-file commit the only reachable `FixTransactionError` is post-commit cleanup, i.e. the write LANDED; the "rollback it could not complete" text in code and `docs/migration-ledger.md` describes an unreachable path.
-- `runner.py:127` the backup kept after an uncertain-state failure is pruned by the next successful run of the same file.
-- `coverage.py:176` over-deletion loop no longer fires on a rename onto a path the new schema keeps; caught by `check_ledger`, but no test pins it.
-- `coverage.py:196` `_over_deleted_landings` mirrors `PathState.trace_to_origin` — a `landing_of_origin` helper would collapse it.
-- Minor confirmed items from the reviewer: `reserved.py:85` remap reservation keyed by op-time spelling (remap-then-rename escapes RESERVED_VALUE_REUSED); AoT treated as terminal in the split walk; `str(chunk_key)` rendering of quoted keys in a detail; small duplications in `describe_narrowing` / proxy branch.
-
-## Log
-
-- (start) tracker written; nothing edited yet.
-- item 1 done; fixes + migration unit suites green (390 passed).
-- items 2 and 3 done; migration unit suite green.
-- item 4 done (deferrals written). Next: make agent-check, then make agent-test.
-- item 5 done: `make agent-check` green, `make agent-test` all passed. Round 3 fix-now set COMPLETE; everything staged, not committed.
diff --git a/wip/pr-1113-review-notes.md b/wip/pr-1113-review-notes.md
deleted file mode 100644
index 0ac89b526..000000000
--- a/wip/pr-1113-review-notes.md
+++ /dev/null
@@ -1,77 +0,0 @@
-# Deferred from the PR #1113 bot review
-
-Three findings from the review bots on PR #1113 were verified as real and deliberately not fixed. Each is a decision rather than a defect, and each is written down here so the decision is taken on purpose rather than by omission. The rest of that review's findings were fixed in the same change.
-
-Two further findings — an occupied `.bak.<stamp>` reported as this run's copy, and an `unsafe` entry reported at a spelling a later `safe` entry deletes — were already recorded, before this review, in [`migrator-write-scope-and-rename-fidelity.md`](migrator-write-scope-and-rename-fidelity.md) §3 and § "Residual". They are unchanged and are not repeated here.
-
-## 1. `is_remappable` credits a union whose container branch it cannot reach
-
-`is_remappable` in `pipelex/migration/narrowing.py` answers "can a `remap_value` on this path ever rewrite anything", and it answers yes when **any** top-level union member is string-typed. For `enum | list[enum]` that is true of the scalar branch, so the coverage gate credits a remap for the whole path — while the applier skips the list value because it is not a string. A file carrying the list keeps a retired spelling behind a green gate.
-
-The reasoning is sound and the shape does not exist. The only scalar-plus-composite union on any registered surface is `cogt.img_gen_config.img_gen_param_defaults.size` → `SizeTier | ImageSize`, rendered `enum | table`. Its non-string branch is a `BaseModel`, and `_gather_enum_members` never descends into one, so every member recorded on that path genuinely does come from the string branch and the credited remap reaches all of them. Reaching the hole needs a branch that is *both* a container *and* enumerated — `enum | list[enum]`, `literal | list[literal]`, or `str | dict[str, enum]` — and none is written anywhere in `pipelex/`.
-
-**Why it is not fixed here.** The fix is not local: `is_remappable` would have to ask "does any *non*-string branch carry enumerated spellings", which changes what the predicate means for every union path and which two accountings then read differently. The only test that can exercise it is one built on a model shape the repo's own standards discourage, so the guard would be pinned by a fixture and by nothing real.
-
-**The decision to take.** Either take the change — `_records_enumerated_members` (added in this same PR for the container-widening fix) makes it about four lines — or leave the predicate as it is and say in its docstring that a union is answered by its string branches alone. Worth doing either way: **`is_remappable` has no direct unit test at all** today, only the indirect coverage-gate one, and it now gates two separate accountings.
-
-## 2. Bounds are aggregated per kind across union members, losing which member each came from
-
-`_fold_bound` / `_merge_carriers` in `pipelex/migration/fingerprint.py` merge the members of a union into one bound map, one constraint kind at a time. Which member a bound belonged to is gone by the time `narrowing.py` compares two versions, and the aggregate can then move in a direction the accepted values did not. Both directions were reproduced against the real projection:
-
-- **A tightening that widened.** `int` → `Annotated[int, Field(ge=1)] | Annotated[int, Field(le=0)]` reports both a tightened lower bound and a tightened upper bound, into an aggregate box (`ge=1 ∧ le=0`) that is empty and that neither member has. Every value valid before is still valid; the domain strictly grew.
-- **A narrowing that went unreported, which is worse.** `Annotated[int, Field(ge=1, le=10)] | Annotated[int, Field(ge=100, le=200)]` tightened to `ge=150` on the second member aggregates to `{ge: 1, le: 200}` on both sides. The gate says nothing while every file carrying `120` stops validating.
-
-Reaching either needs a union with **two or more bound-carrying members**. There is none: the only union carrying any bound on any surface is `pipeline_execution_config.max_concurrency` → `Annotated[int, Field(ge=1)] | Literal["unbounded"]`, one non-empty pool, so the across-members fold never runs across anything.
-
-**Why it is not fixed here.** The cheap-looking fix — drop a kind that is absent from some member's pool, the "honest union" — is family-blind: the fingerprint stores `gt` and `ge` as separate kinds and only `narrowing.py` knows they are one lower-bound family, so it would drop a real `ge=1` because a sibling member spells its lower bound `gt=0`. That converts the module's *preferred* error, an over-report the author can read and act on, into its *dispreferred* one, a silent under-report. Reading a union correctly means recording bounds per member in the golden and comparing member-wise, which is a fingerprint-format change and a comparator rewrite.
-
-**The decision to take.** Leave it until a surface actually grows a union with two bounded members, then do it properly (per-member constraint sets in the golden). The docstring of `_fold_bound` was corrected in this pass to state the limitation instead of claiming, as it did, that symmetry makes inventing a narrowing impossible — it does not, once the member set moves.
-
-## 3. A rescue copy can be pruned out from under the rename that was rescuing it
-
-`keep_backup_for_rescue` in `pipelex/migration/backup.py` reserves the `.rescue.<stamp>` name and then renames `.bak.<stamp>` onto it. Between those two steps a *third* run of the same file can commit and call `prune_backups_except`, which deletes by name shape and so takes the `.bak.` copy the rename was about to move. The rename then fails, the reservation is cleaned up, and the function returns `RescuedBackup(path=backup_path, was_rescued=False)` — a path that no longer exists, which the report hands to the user with "copy it aside before the next successful run of this file".
-
-Nothing is lost that was not already going to be pruned, and the run in question is one whose write it could not vouch for either way. What is wrong is the promise: the docstring said the returned path always names a file that exists.
-
-**Why it is not fixed here.** Closing it means coordinating pruning with rescue across processes — a lock file — and pruning is deliberately name-shaped rather than ownership-aware. That is real machinery for a module that no command drives yet (`pipelex migrate` does not exist). The docstring was corrected in this pass to state the window rather than deny it.
-
-**The decision to take.** Revisit when `pipelex migrate` lands and concurrent runs become something a user can actually produce. The honest lever then is probably not a lock but pruning that spares backups younger than some age, which fixes this and nothing else has to change.
-
----
-
-## What each thread was answered with
-
-The code, tests, docs and notes are committed (`Answer the PR #1113 review: …`) with `make agent-check`, `make cl`, `make cmig`, `make docs-check` and the full `make agent-test` all green, and **no golden moved**. The commits are **not pushed**.
-
-Every thread has been replied to on the PR. The threads whose finding was closed are resolved; the five `defer` rows are deliberately left open, so the questions they carry stay visible on the PR rather than only in this file. The table below is the record of who was told what.
-
-| Thread id | Where | Disposition |
-|---|---|---|
-| `PRRT_kwDOOwmMFc6Zmxk2` | `narrowing.py:143` (codex) | ✅ fixed — exemption now read structurally |
-| `PRRT_kwDOOwmMFc6Zm0kG` | `test_narrowing.py:79` | ✅ fixed — same root cause; companion assertions added |
-| `PRRT_kwDOOwmMFc6Zmxk4` | `narrowing.py:261` (codex) | ✅ fixed — exclusive *and* inclusive normalization |
-| `PRRT_kwDOOwmMFc6Zm0kD` | `narrowing.py:261` | ✅ fixed — same; their `floor(t)+1` missed the inclusive half |
-| `PRRT_kwDOOwmMFc6ZmxyX` | `runner.py:144-152` (greptile) | ✅ fixed — `_discard_backup` asks the file what it holds |
-| `PRRT_kwDOOwmMFc6Zm0j4` | `runner.py:197` | ✅ fixed — same bug from the deleting side |
-| `PRRT_kwDOOwmMFc6Zm0j-` | `backup.py:167` | 📝 **defer** — docstring corrected, race in this note §3 |
-| `PRRT_kwDOOwmMFc6Zm0kB` | `backup.py:134` | 📝 **defer** — already recorded, `migrator-write-scope-and-rename-fidelity.md` §3 |
-| `PRRT_kwDOOwmMFc6Zm0jz` | `coverage.py:306` | ✅ fixed — non-string enums record no members |
-| `PRRT_kwDOOwmMFc6Zm0j5` | `fingerprint.py:468` | ✅ fixed — suppression moved to the call site |
-| `PRRT_kwDOOwmMFc6Zm0j7` | `narrowing.py:105` | 📝 **defer** — this note §1 |
-| `PRRT_kwDOOwmMFc6Zm0kF` | `coverage.py:391` | ✅ fixed — gated on `is_remappable` |
-| `PRRT_kwDOOwmMFc6Zm0kA` | `applier.py:508` | ➖ false positive — `engine.py:96-102` re-reads between ops; nothing outside a ledger builds a `RemapValueOp` |
-| `PRRT_kwDOOwmMFc6Zm0kR` | `applier.py:513` | ✅ fixed — denominator counts string values |
-| `PRRT_kwDOOwmMFc6Zm0kC` | `fingerprint.py:379` | 📝 **defer** — docstring corrected, aggregation in this note §2 |
-| `PRRT_kwDOOwmMFc6Zm0kI` | `update_migration_schemas_cmd.py:6` | ✅ fixed |
-| `PRRT_kwDOOwmMFc6Zm0kJ` | `test_transform_check.py:393` | ✅ fixed — declares `title` |
-| `PRRT_kwDOOwmMFc6Zm0kK` | `Makefile:111` | ➖ no change — the target name is itself 31 chars, the dash column is 31, so the padding asked for cannot exist; four entries already overflow the same way |
-| `PRRT_kwDOOwmMFc6Zm0kL` | `material.py:218` | ✅ fixed — uses `walk.joined` |
-| `PRRT_kwDOOwmMFc6Zm0kM` | `docs/migration-ledger.md:194` | ✅ fixed — both shapes named |
-| `PRRT_kwDOOwmMFc6Zm0kO` | `wip/migrator-phase3-progress.md:195` | ✅ fixed — the two claims separated |
-| `PRRT_kwDOOwmMFc6Zm0kU` | `snapshot.py:103` | ✅ fixed — names the narrowing remedy |
-| `PRRT_kwDOOwmMFc6Zm0kV` | `material.py:106` | 📝 **defer** — already recorded, `migrator-write-scope-and-rename-fidelity.md` § "Residual" |
-
-Two things worth carrying forward that the bots did not report:
-
-- A `list[enum]` flattened to a bare `str` was silently losing every spelling — the opposite direction of the container-widening bug, found by writing the third test case rather than by any reviewer. It is fixed and pinned.
-- `is_remappable` still has **no direct unit test**, only the indirect coverage-gate one, and it now gates two accountings. Worth closing whichever way §1 is decided.
diff --git a/wip/pr-1123-review-notes.md b/wip/pr-1123-review-notes.md
deleted file mode 100644
index 45f5284e7..000000000
--- a/wip/pr-1123-review-notes.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# PR #1123 review follow-up — the one backup the config-directory `.gitignore` cannot reach
-
-**Status:** Deferred from the v0.46.2 release review (2026-08-18). Not a regression — the gap arrives with the feature, and the feature is still a strict improvement over having no rule at all. What is deferred is the *remedy*, because every version of it is a design reversal rather than a fix.
-
-**Reported by:** Codex (thread `PRRT_kwDOOwmMFc6aHHck`) and cubic (thread `PRRT_kwDOOwmMFc6aHLr8`), both against `pipelex/migration/run.py:69-71`. Both threads were left open on purpose.
-
-## What is true
-
-`migrate_config_directories` ensures a `.gitignore` in each *walked* configuration directory — `~/.pipelex/` and the project `.pipelex/`. But `migrate_file` resolves symlinks before it snapshots the file (`pipelex/migration/runner.py:42`, `read_file_snapshot(file_path.resolve())`), deliberately and with a comment saying so: an atomic replace of the link path would delete the link and leave the real file unmigrated. The backup is then named from the *resolved* path, so for a dotfiles setup — `.pipelex/pipelex.toml` symlinked to `~/dotfiles/pipelex.toml` — the `.bak.<stamp>` copy lands in `~/dotfiles/`, which the rule in `.pipelex/` cannot match. If that directory is itself a git repository, migrating dirties it, which is the exact workflow the feature exists to fix.
-
-The behavior is covered by an existing test (`tests/unit/pipelex/migration/test_runner.py:602`), so this is a known, intended resolution — not an accident.
-
-## Why nothing was changed
-
-Two remedies present themselves, and both cost more than the gap:
-
-- **Ensure a `.gitignore` beside the resolved backup too.** That means creating or relying on a `.gitignore` at the root of the user's dotfiles repository — a file they maintain for their whole project, which the design of this feature explicitly refuses to touch (`pipelex/migration/gitignore.py`, "never reaches into a file the user maintains for their whole project"). Writing there to hide one transient copy is a much larger liberty than the copy is worth.
-- **Write the backup beside the link instead of the target.** That reverses a documented and tested decision about where a copy of a file belongs, and it would put the backup in a directory that is not the one holding the file it copies.
-
-A third possibility exists and is the reason this is written down rather than closed: **do neither, and instead not back up through a symlink at all when the target is outside the walked directory** — reporting the file as one the migration will not rewrite on its own. That is a real behavior change with a real cost (a dotfiles user loses in-place migration), so it is a call for a human, not for a review pass on a release branch.
-
-## What was done instead
-
-The overclaim was removed. Both `pipelex/migration/gitignore.py`'s module docstring and `docs/migration-ledger.md` asserted that *every* backup a migration can write inside a repository is under a directory pipelex owns. That sentence is false under a symlink, and it is now replaced by an explicit statement of the exception and why the rule does not follow it.
-
-## The open question
-
-For a user whose `.pipelex/` configuration files are symlinks into a git-tracked dotfiles directory, should `pipelex migrate`:
-
-1. keep today's behavior and accept that the backup dirties the target's repository (with the docs saying so, which is the current state);
-2. leave the backup beside the link rather than the target;
-3. decline to migrate through a symlink whose target is outside the walked directory, and report the file as one the user must handle; or
-4. something else — e.g. name the escaped backup path in the migration report, so the user is told where the copy went rather than finding it in `git status`?
-
-Option 4 is the cheapest and is worth considering on its own even if the answer to 1–3 is "keep today's behavior": the report already names paths, and a user who is told is not a user who is surprised.
diff --git a/wip/pr-1128-review-notes.md b/wip/pr-1128-review-notes.md
deleted file mode 100644
index 3f0138c6e..000000000
--- a/wip/pr-1128-review-notes.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# PR #1128 — deferred review finding
-
-Surfaced while triaging the review-agent comments on PR #1128 (`feature/Line-endings-sweep`) on 2026-08-19. Everything else the bots raised was either fixed on the branch or resolved as a false positive; this is the one item deliberately left for later, because it is well outside the PR and wants its own test pass.
-
-## `is_snake_case` accepts a trailing newline
-
-`pipelex/tools/misc/string_utils.py:282` anchors its pattern with `$`:
-
-```python
-def is_snake_case(word: str) -> bool:
- return re.match(r"^[a-z][a-z0-9_]*$", word) is not None
-```
-
-In Python `$` matches at the end of the string **or immediately before a trailing newline**, so `is_snake_case("abc\n")` returns `True` while `is_snake_case("abc\ndef")` correctly returns `False`. Verified by execution.
-
-That admits a pipe code or domain code ending in a newline through the two validators built on it: `pipelex/pipe_machinery/validation.py:126` (`is_pipe_code_valid`) and `pipelex/core/domains/validation.py:26`, both wired into the bundle parser at `pipelex/mthds_parsing/pipelex_bundle_blueprint.py:113-121` and `:149,181`.
-
-**Why it was not fixed here.** It reached this review only as a side question — whether a `pipe_ref` could carry a line terminator into a codegen stamp header. Through the stamp it cannot do harm either way: a raw `\n` breaks the header line under any split rule, so the stamp gate rejects it, and no codegen caller populates `pipe_ref` in the first place. The gap is real but it belongs to identifier validation generally, not to codegen.
-
-**The fix and what it costs.** Swap `$` for `\Z`, which matches only at the true end of the string. The change is one character, but it tightens every code that flows through those two validators, so it wants a deliberate pass: a test for the trailing-newline case on both validators, and a check that no fixture or example bundle in the tree currently relies on the loose behaviour.
diff --git a/wip/pr-1138-review-notes.md b/wip/pr-1138-review-notes.md
deleted file mode 100644
index a102dbf98..000000000
--- a/wip/pr-1138-review-notes.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# PR #1138 review notes — deferred item
-
-PR: <https://github.com/Pipelex/pipelex/pull/1138> (`feature/MthdsTestCorpus-p3`, "a closed registry for validation error types")
-
-One item from the review-agent triage on this PR was deferred rather than fixed. Everything else raised on the PR was either fixed in place or answered on the thread.
-
-## The one-TestClass-per-module rule is absolute in writing, unenforced in practice, and shipped to users
-
-**Reporter:** `chatgpt-codex-connector` (P1), on `tests/unit/pipelex/errors/test_validation_error_types.py:51`. The specific violation it flagged was real and has been fixed in this PR — the module's two test classes were merged into one. What is deferred is the systemic question that fixing it exposed.
-
-**The rule.** `.claude/rules/pytest-standards.md` and its shipped kit copy `pipelex/kit/agent_rules/pytest_standards.md` both state it twice, without any qualifier:
-
-> `NEVER EVER put more than one TestClass into a test module.`
-
-> `- Always put tests inside Test classes: 1 TestClass per module.`
-
-It reaches contributors and agents through the generated repo-root `AGENTS.md` and `CLAUDE.md`, and it reaches *our users* through the kit rules we ship in the package.
-
-**What the codebase actually does.** Counting top-level `^class Test` declarations per module across `tests/`, after this PR's fix: 57 modules declare more than one, out of 1073 modules that declare at least one. The heaviest are `test_concept_representation_generator.py` (12 classes), `test_structured_content_composer.py` (11), `test_uri_resolver.py` (10), `test_migrate_commands.py` (10), `test_coverage_gate.py` (9), `test_validation_report.py` (9). These are not old stragglers: several landed within days of this PR, one of them the day before the review.
-
-**Why it drifts.** Nothing checks it. `make agent-check` runs `fix-unused-imports fix-keyword-only format lint pyright mypy check-ledger check-keyword-only check-hub-layering drift-check`; `make check` adds the config, rules, URL, gateway-model, schema and migration checks plus `pylint`. No target in either aggregate, and no guard script anywhere, inspects test-class counts. Contrast the keyword-only convention, which is comparable in kind — a readability convention with no runtime consequence — and which is mechanically enforced by an AST guard wired into `agent-check`, `check`, and CI, complete with a grant registry for justified exceptions. That is what an enforced convention looks like in this repo; this one has no equivalent, so it is enforced only by whichever reviewer happens to notice.
-
-**Why it matters beyond tidiness.** We ship "NEVER EVER" to users in the kit rules while 5% of our own class-bearing test modules break it. That is a dogfooding defect: either the rule means what it says and we should be able to hold ourselves to it mechanically, or it is a default-with-exceptions and the wording overstates it. Both are defensible; the current state — an absolute prohibition that only a review bot ever enforces, and only on whichever PR it happens to read — is the one option that is not.
-
-**The open question, for a human to decide.** Two coherent resolutions, and choosing between them is a judgment call about how much we want to spend on test-file shape, not something a PR-review pass should settle unilaterally:
-
-1. **Add a guard.** A small AST check in the `check-keyword-only` mould, run in `agent-check` and CI. Because 57 modules already violate it, this needs either a one-off sweep to merge or split them, or a grandfathering allowlist analogous to `subject_grants.toml` — and an allowlist that starts with 57 entries is worth pausing over before adopting.
-2. **Soften the rule** in both `.claude/rules/pytest-standards.md` and the shipped `pipelex/kit/agent_rules/pytest_standards.md`, to something that matches how we actually write tests — for instance, one class per module by default, with more permitted when a module covers genuinely distinct seams. This costs nothing and removes the false absolute, but gives up the consistency the rule was reaching for.
-
-There is no urgency either way; nothing is broken and no gate is failing. It should be decided rather than left to erode further, since every week it goes unresolved adds more modules to whichever sweep option 1 would require.
diff --git a/wip/pr-1139-review-notes.md b/wip/pr-1139-review-notes.md
deleted file mode 100644
index a224d8158..000000000
--- a/wip/pr-1139-review-notes.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# PR #1139 review notes — the pytest-standards rules keep getting re-raised
-
-PR: <https://github.com/Pipelex/pipelex/pull/1139> (`feature/MthdsTestCorpus-p3`, "the `error.*` axis: an invalid-method coverage surface for the MTHDS Test Corpus")
-
-Nothing on this PR was deferred. Four of the five review threads were false positives and one was a real gap that got fixed on the branch. This note exists for the pattern behind three of those four, which is now on its third consecutive appearance and is not a question a PR-review pass should keep re-answering.
-
-## The pattern
-
-Three of the five threads on this PR — all from Codex — cited two rules from the same source file and asked for the same two changes that were asked for on #1069 and, in a sibling form, on #1138:
-
-- **`tests/integration/pipelex/pipeline/test_validate_bundle_entry_shape_parity.py:32`** — move the three inline MTHDS payloads into a `test_data.py`, citing `AGENTS.md:375`.
-- **`test_validate_bundle_entry_shape_parity.py:1`** and **`tests/e2e/pipelex/cli/test_validate_cmd.py:1`** — move the module-level docstring onto the test method, citing `AGENTS.md:438`.
-
-Both rules are real text, quoted accurately. Both trace to one source, `pipelex/kit/agent_rules/pytest_standards.md` — line 17 for the test-data rule and line 80 for the docstring rule — from which the repo-root `AGENTS.md` and `CLAUDE.md` are generated. That file is **shipped to users** as part of the package kit, which is the same dogfooding shape [`pr-1138-review-notes.md`](pr-1138-review-notes.md) recorded for the one-`TestClass`-per-module rule in the very same document.
-
-## What the tree actually does — measured on this branch
-
-**The `test_data.py` rule, as applied to MTHDS payloads.** Ninety test modules inline an MTHDS bundle literal. **Zero** of them keep it in a `test_data.py`. Not "few" — none. In the flagged file's own directory, thirty-two of the thirty-three modules inline one. Of the fifty-two `test_data.py` files in the tree, the only one holding anything MTHDS-shaped is `tests/unit/pipelex/graph/test_data.py`, and it holds GraphSpec dicts, imported by two sibling modules. That reveals the norm the tree actually follows, and it is a coherent one: **`test_data.py` is where data shared across modules goes.** The three payloads on this PR are `_`-private, each consumed exactly once, in the `pytest.param` list sixty lines below its own definition.
-
-**The docstring rule.** Six hundred and ninety-one of one thousand one hundred and thirty test modules — sixty-one percent — open with a module-level docstring, counted with `ast.get_docstring` on the module node. By directory: thirty-two of thirty-three in `tests/integration/pipelex/pipeline/`, nine of thirteen in `tests/e2e/pipelex/cli/`, four of four in `tests/unit/pipelex/test_extras/`. The other half of the same sentence fares no better: five hundred and fifty-three of one thousand two hundred and sixteen `Test*` classes carry a class docstring. Nothing enforces any of it — `pyproject.toml` selects `ALL` but ignores `D100` and `D101`, and no rule anywhere forbids a module docstring.
-
-[`pr-1069-review-notes.md`](pr-1069-review-notes.md) measured five hundred and seventy-nine of one thousand and eighteen for the same rule. The proportion has not moved; the tree has simply grown.
-
-## Why the three threads were closed rather than acted on
-
-Because acting on them would have moved this PR *away* from the code around it. The new integration module is a deliberate mirror of `tests/integration/pipelex/pipeline/test_validate_bundle_structured_errors.py`, which pre-exists on `dev` and is structurally identical — module docstring, then `_`-private inline MTHDS constants, then one parametrized test class. In `tests/e2e/pipelex/cli/`, the immediate neighbour `test_fix_bundle_cmd.py` opens with a module docstring *and* inlines a bundle literal, both patterns already shipped side by side. And `tests/unit/pipelex/test_extras/test_mthds_corpus_exhaustivity.py` carried a module docstring before this PR touched it, naming the governing spec section — the module docstring is the established house style for this whole feature area.
-
-Content matters too, and the reviewer misread it. The rule targets "this test tests X" boilerplate migrating up to file level. Neither flagged docstring is that: one records why `_load_mthds_files_into_library` used to destroy structured error data and why a third already-parity bundle sits in the parametrize list; the other records why the e2e test now assembles its directory from corpus entries selected by `EntryValidity.VALID` instead of pointing at a path, and why the old path expression became wrong once the corpus grew deliberately invalid entries. Deleting the second one invites someone to "simplify" the `copytree` loop straight back into the bug this PR just fixed. The parity module, meanwhile, already satisfies the rule's positive half — its concise purpose is on the method.
-
-## The open question, unchanged since #1069
-
-Two coherent resolutions, and choosing between them is a judgment call about how much we want to spend on test-file shape:
-
-1. **Make the rules match the practice.** Narrow the test-data rule to data *shared across modules*, which is the norm the tree already follows and which the one real `test_data.py` in the graph package exemplifies. Soften the docstring prohibition to what it was probably reaching for — no per-test purpose docstrings migrating up to file or class level — while allowing a module docstring that explains why the module exists. Both edits go in `pipelex/kit/agent_rules/pytest_standards.md`, the generated `AGENTS.md` and `CLAUDE.md` follow, and our users stop receiving rules we do not hold ourselves to.
-2. **Keep the rules and enforce them.** That means a guard in the `check-keyword-only` mould plus a sweep across six hundred and ninety-one modules and ninety inline payloads, which is its own piece of work.
-
-What tips the balance now is the recurring cost. `AGENTS.md` is the Codex-facing file and carries both rules; `CLAUDE.md` carries neither. So every Codex review of every new test module will keep raising these same findings, and someone will keep spending a review pass measuring the tree to close them. Three PRs in, that is no longer a one-off.
-
-Nothing is broken and no gate is failing, so there is no urgency — only accumulation. See also the sibling one-`TestClass`-per-module question in [`pr-1138-review-notes.md`](pr-1138-review-notes.md), which lives in the same source document and wants deciding at the same time.
-
-## For the record — what was fixed rather than deferred
-
-The one real finding on this PR (Codex, `tests/unit/pipelex/test_extras/test_mthds_corpus_exhaustivity.py`) was that the new agreement gate tested membership where the contract landed in the same PR says equality. It is fixed on the branch, and the mutation that proves it bites is described in the thread reply.
-
-The greptile thread on `.pipelex/plxt.toml` was a false positive, but it had one genuine residue: the invalid entries are outside `make lint` and `make format` and the contributor docs never said so. `docs/contribute/mthds-test-corpus.md` now says it.
diff --git a/wip/pretty-print-mode/review-deferrals.md b/wip/pretty-print-mode/review-deferrals.md
deleted file mode 100644
index b77bc6942..000000000
--- a/wip/pretty-print-mode/review-deferrals.md
+++ /dev/null
@@ -1,79 +0,0 @@
----
-status: active
-item: L-260915-c66b8a
----
-
-# Deferred review findings — `feature/Pretty-print-mode`
-
-What the `/rev` passes on this branch found and deliberately did not fix. Each round has its own section, in order.
-
-## Round 1
-
-What the round-1 `/rev` pass at profile 5 found, confirmed, and deliberately did not fix. The bar was `open`: confirmed defects that are real and matter, plus improvements that genuinely matter. Everything below is real and did not clear that bar, so it is recorded here rather than dropped. Nothing here was invented by the pass — each line is a reviewer's finding that a verifier then read the code for.
-
-Two findings left this document for a ledger item instead, because they are not this branch's to fix: the `pipelex-server` sweep miss and the stuff viewer's attribute-injection XSS.
-
-### Verified, deferred
-
-These were sent to the verifier and confirmed. They are deferred on importance, not on doubt.
-
-- **`escapeHtml` does not escape the double quote** — filed as a ledger item rather than left here, since it is a live XSS on a page that opens with no CSP. Pre-existing; the branch does not touch the file.
-- **`isSafeDisplayUrl` is a scheme check and nothing more.** Any http(s) host and any `file://` path from a model-controlled field is accepted, and the url is assigned to `img.src` / `embed.src`. Opening a stuff node therefore fires an unattended GET to a host the model chose, and preview is now the default tab. Not a cross-trust-boundary leak while the viewer's own user is reading their own files, but it stops being benign the moment a graph page is served over http(s) or opened in a webview.
-- **`[empty list]` is swallowed from every panel title.** Rich's tag regex accepts a tag opening with a lowercase letter, so the marker parses as a style tag and is dropped; `[1 item]` and `[3 items]` survive only because they start with a digit. The size marker therefore shows for every list except the empty one — the case a reader most needs. Pre-existing in the Rich path, and the new plain title reproduces it faithfully, which is correct parity rather than a second bug. Fixing it means escaping the bracket or writing `(empty list)`, in both paths at once.
-- **The per-character wrapping floor.** Content wraps to one character per row below a terminal of about nine columns, because the content width is floored at one. Reachable only from a genuinely tiny terminal or a `COLUMNS` set that small: nothing in the package passes a `console_width` outside tests, and the poor arm passes no width at all. A usable floor of around twenty would close it.
-- **The two mermaid data test modules are byte-identical**, same class name included, so this branch applied the same deletions twice. Pre-existing. The risk is the ordinary one: an edit lands in one copy and the other keeps passing while asserting the old behaviour.
-- **The graph viewer's tab fallback can select a disabled tab.** `updateTabAvailability` returns `json` without consulting whether the JSON tab is itself disabled, so a stuff node with no JSON data and no previewable url gets a disabled button marked active over a "No JSON data available" body. Reachable from a content class that declares no fields.
-
-### Raised, not verified
-
-Sorted as deferrals on the reviewers' word alone — the bar would not have fixed them even read as true, so no verifier time was spent. Treat each as a candidate, not a fact.
-
-- **Rendering policy in the domain model.** `StuffContent` reads the process-global printer mode and repeats a dispatch the printer already owns, so a fourth mode would have to be implemented in two layers. A lazy or dual rendering contract on the printer would keep the silent short-circuit while centralising the choice. This is a design trade-off, which is a thing to decide deliberately rather than to patch inside a review round.
-- **Neither `match` on the mode has an exhaustiveness guard**, so a fourth member would fall through silently in both. All three members are handled today, so there is no live bug.
-- **One unbuffered stderr write per wrapped line** — the poor printer now prints real content, so a large output issues hundreds of writes where it used to issue one. Joining the rows and printing once would fix it.
-- **The poor path loses the truncation the Rich path applies** to dicts and models, so a call that dumps a payload with embedded base64 prints it whole where Rich clips it. Pre-existing for dicts, since a dict was never a Rich renderable; what the branch changes is the volume.
-- **A `Text`-wrapped url takes a full Console render** in the poor mode, because the string check misses it. Off the hot path.
-- **Falsy width guards swallow an explicit zero**, using the terminal size instead.
-- **Dead code**: `pretty_svg` (the exact twin of the `pretty_html` this branch deletes), `render_stuff_content_viewer`, and the JS `getHtmlTabLabel` whose labelling the diff inlined. Three dead graph test fixtures were left behind too, and a third copy of the ANSI-stripping helper now exists in a directory that already has a conftest.
-- **Docstrings in the agent CLI factory claim the pinned silent mode "neutralizes `pretty_print` entirely."** That was never quite true and is less so now; the discipline holds because nothing pretty-prints after those teardowns, not because the claim is.
-- **The migration ledger's `introduced_in` is unchecked**, so a release cut under a different number leaves it silently wrong. A process guard exists in the release skill.
-- **Three e2e migration assertions were loosened** from an exact step list to a first-element check. The loosening is itself necessary, but no test now pins the complete list, and none names the new ledger entry.
-- **No test loads a pre-0.59 graph spec**, so the documented refusal is unexercised and a future change to the model's strictness would contradict the changelog without failing anything.
-- **The mode-config test re-implements the conftest boot** by hand, so the two can diverge silently.
-- **The rolling-deploy window on DynamoDB**: an old-image worker writing events a newer assembler reads back. Weigh against the fact that Temporal has not shipped to production.
-- **A Mermaid label escaping gap** — the escaper turns `<` and `>` into entities but not `&`, so a label already spelling an entity survives to be decoded. The reviewer did not execute this path, and Mermaid's own security level is the remaining barrier.
-- **The CSP nonce on the interactive page buys nothing**, since the page depends on inline handlers and a nonce makes `'unsafe-inline'` ignored for scripts. The two viewers are inconsistent about it.
-
-### Cleared
-
-Worth recording so the next round does not re-litigate them. The `@3` migration golden rewrite passes every gate, and the reserved-key derivation is a path-set operation blind to default values. The reason first given for it — that `@3` was the head link when it was rewritten — stopped holding once a later commit on this branch bumped the head to `@4`; round 2 revisits it below. Removing DOMPurify is safe on its own terms: a full sink audit of the interactive page found no attacker-controlled string reaching any `innerHTML` in the page's own JS. The exposure it appeared to cover was one layer up, in the JSON-embedding filter, which DOMPurify never covered either and which this branch fixed.
-
-## Round 2
-
-The round-2 pass ran at profile 4 under the `necessity` bar, which admits only defects the round-1 fixes introduced and criticals. It fixed five confirmed findings and deferred the rest. One Codex finding was rejected by the author: a graph spec or trace event saved by an earlier version is refused when read back, and that break is deliberate, with no backward compatibility owed.
-
-### Verified, deferred
-
-- **The `@3` goldens record an abandoned intermediate state.** `[email protected]` and `[email protected]` were regenerated while `@3` was still the head link, so they carry the first design's `stuff_text_content = false` and `stuff_html_content = false`, with a comment saying `--graph-full-data` turns them on. The bump to `@4` then froze that state; the released 0.55.0–0.58.0 files carry `true` and `true`. The `pretty_print_mode` key in `@3` is what the head-regeneration rule produces, since `@3` also gained `interpreter.methods.*` between releases. No reader behaves differently: only the dev gates read the goldens, the runtime migrator projects the live models, default values never gate, and all three gates pass both with the branch's `@3` and with `@3` restored from `origin/dev`. Restoring the two false values to `true` before release would keep the frozen history truthful, at no risk.
-
-### Raised, not verified
-
-Sorted as deferrals on the reviewers' word alone. Treat each as a candidate, not a fact.
-
-- **The graph viewer tests data by truthiness** (`_interactive_scripts.js.jinja2:234`), so a stuff whose JSON is `""`, `[]` or `{}` disables the JSON tab and shows "No JSON data available"; with the Pretty and HTML tabs gone, such a value has no representation left. Availability should test for `null` or `undefined` instead.
-- **Event decoding is implemented twice**, in `NdjsonEventLog.read_events` and `DynamoDBEventLog.read_events`: the corrupt-versus-refused classification, the refusal count and the error construction. The two had already drifted apart on sanitizing the refusal, which round 2 fixed; a shared decoder taking backend-specific location context would keep them from drifting again.
-- **The kit template's `[runtime.log]` does not list `pretty_print_mode`** (`pipelex/kit/configs/pipelex.toml`). The section is a hand-picked subset that also omits `log_mode`, so this breaks no rule, but the docs recommend the key for hosts with no console.
-
-## Round 3
-
-The round-3 pass ran at profile 3 under the `necessity` bar, with cubic, Codex and the official code-review at `low`. It changed no code: none of the findings was introduced by the round-2 fixes, and none is critical. Three of the four repeat deferrals already recorded above, and the fourth is new.
-
-### Already deferred above
-
-- **The `@3` goldens** — code-review raised this again. Its report adds one correction to its own skill's framing: `check_entry_accounting` (`pipelex/migration/coverage.py`) only checks removed paths, so the `@4` ledger entry is checked correctly whichever `@3` is on disk. The damage is to the record, not to a gate.
-- **The graph viewer's JSON tab tests data by truthiness** — Codex raised this again at `_interactive_scripts.js.jinja2:275-276`. It joins the round-1 fallback finding: an empty-string payload gets a disabled JSON tab that the fallback still selects, so copy and download return nothing.
-- **Event decoding is implemented twice** — cubic raised this again at `pipelex/tracing/ndjson_event_log.py:142`.
-
-### Raised, not verified
-
-- **A graph file that is not JSON at all is told it was saved by an earlier version.** `graph render` catches every `ValidationError` from `GraphSpec.model_validate_json` (`pipelex/cli/commands/graph_cmd.py`), and malformed JSON arrives as a `json_invalid` entry of that same error, so a truncated or hand-mangled file gets the "saved by an earlier version, run the pipeline again" message. Separating the `json_invalid` case would give it a message of its own. This came in with the round-1 fixes, not round 2.
diff --git a/wip/projection-divergence-gate/plan.md b/wip/projection-divergence-gate/plan.md
deleted file mode 100644
index 2c06ab0e0..000000000
--- a/wip/projection-divergence-gate/plan.md
+++ /dev/null
@@ -1,64 +0,0 @@
----
-status: landed
-item: L-260830-2c75b3
----
-
-# Make the projection-corpus divergence gate see every engine/projection difference
-
-The corpus generator (`pipelex/cli/dev_cli/commands/generate_projection_corpus_cmd.py`) promises that every difference between the reference projection and the engine's own renderer lands in a declared divergence class, and that an undeclared one fails the command. `_DivergenceCollector.compare` does not uphold that promise: engine-only keys are never walked at all, and the classification heuristics work by value shape alone, so a real projection regression is absorbed into an existing declared class and committed into `mthds-js` and `mthds-python` as contract bytes. A third, lesser defect in the same file: a pipe with no inputs crashes the whole capture, because the engine's renderer raises `NoInputsRequiredError` where the projection legitimately renders `{}`.
-
-The ledger item carries the full evidence, including the fabricated-regression table showing which mutations the collector absorbs. Everything below was re-verified against the code on `dev` after the fix in pipelex#1168 merged.
-
-## Non-goals
-
-- Whether each compact template actually runs through `InputShaper` — that is L-260830-216378.
-- The projection's own remaining unshapeable slots — L-260830-8695ba.
-- Threading descriptor kind, presence and multiplicity through the entire walk. The item explicitly rejects that redesign; the fixes below stay local to the collector plus one precomputed lookup.
-
-## Phase 0 — setup
-
-Claim the item (`ledger claim L-260830-2c75b3`), branch `fix/Projection-divergence-gate` off `dev`.
-
-## Phase 1 — red tests first
-
-Extend `tests/unit/pipelex/cli/dev_cli/test_generate_projection_corpus.py` with collector-level tests in the shape of the item's mutation table, written before the fixes so each one is seen red:
-
-- **Engine-only key.** A dict pair where the engine renders a key the projection lacks → `declared()` raises rather than the walk silently skipping.
-- **File-leaf regression.** Engine `{"url": <mock>, "width": …}` against projected `{"url": "WRONG"}` → reported, not absorbed into `file-leaf-not-expanded` (nor re-absorbed into `text-named-url` by the leaf heuristics).
-- **Fixed-count regressions.** At a slot declared `[2]`: projected renders the wrong number of elements → reported. At a variable `[]` slot: projected renders more than one element → reported, not misattributed to `fixed-count-honoured`. An honoured `[2]` (engine one element, projection two) → still classified `fixed-count-honoured`.
-- **No-input pipe.** Generation over a throwaway bundle containing a no-input pipe succeeds: the projected fixtures are written, no engine files exist for that pipe, and the manifest still lists it.
-
-## Phase 2 — the collector fixes
-
-All in `generate_projection_corpus_cmd.py`.
-
-1. **Engine-only keys.** In the dict/dict arm, walk `engine_fields` keys absent from `projected_fields` and record them under `engine-only-field` — deliberately *not* added to `DIVERGENCE_REASONS`, mirroring the existing `unknown-empty-object` pattern, so `declared()` refuses if it ever fires. Verified to fire at zero sites on the current corpus, so generation stays green today.
-2. **`file-leaf-not-expanded` arm.** After recording the divergence, strict-compare the shared keys; any mismatch goes straight to `unclassified`, bypassing the leaf heuristics — plain recursion would hand a regressed URL placeholder to the `text-named-url` arm, which would absorb it. Safe today: both sides derive the same `https://mock.invalid/url` (engine via `concept_representation_generator.py`'s `https://mock.invalid/{field_name}`, projection via `MOCK_URL_PREFIX + FILE_CONTENT_KEY`).
-3. **`fixed-count-honoured` gate.** Give the walk a lookup precomputed from the pipe's descriptor — normalized path → declared `item_count` — and classify `fixed-count-honoured` only when the engine renders one element and the projected length equals the declared count; any other length mismatch lands in `unclassified`. To settle at implementation: whether a nested authored list field can carry a fixed count (`pipelex/pipeline/input_form.py`, the nested `ListField` construction) — that decides whether the lookup is per-slot-name or a real path map with numeric index segments stripped.
-4. **No-input pipe.** In `_capture_pipe`, when `descriptor.fields` is empty, write the projected templates and skip the engine renders and the compare. The projection is the contract and `PipeInputFormDescriptor` documents the empty form as valid; only the engine's `build_inputs_template` refuses it.
-
-## Phase 3 — prove zero impact on the committed corpus
-
-Regenerate over the corpus bundles (`tests/data/input_semantics/{hinted,probe,scaffold}_bundle.mthds`, in the order the corpus README records) into scratch and diff against the committed capture in `mthds-js/tests/fixtures/protocol/` and `mthds-python/tests/fixtures/protocol/`. Expected: byte-identical fixtures, same divergence classes and counts. Any moved count means the old gate was absorbing a live regression — stop and investigate rather than re-declare.
-
-> **Checkpoint — reached.** The fixes are in, the mutation tests are green, and the corpus is proven byte-identical.
-
-**The fixed-count lookup is an exact path map, not a per-slot-name one.** The open question resolved against nested counts: `item_count` is passed at exactly one site, `InputFormDeriver.derive_slot` (`pipelex/pipeline/input_form.py:209`), and both nested `ListField` constructions leave it at its `None` default — the reflected one at `input_form.py:492` and the structure-field `LIST` arm at `input_form.py:568`. So a nested authored list can never carry a fixed count, and the map holds one entry per fixed top-level slot at the exact path its list occupies in each shape: `(pipe_ref, "explicit", name, "content")` always, and `(pipe_ref, "compact", name)` unless `keeps_envelope` puts it under `content` there too. `register_fixed_counts` is a public method on the collector, called once per pipe from `_capture_pipe`. A nested list matches no entry, which is the safe direction: a length mismatch there is unclassified rather than absorbed.
-
-Two smaller shapes the implementation settled. The collector lost its leading underscore — it is `DivergenceCollector` now, because the gate's guarantee is stated as unit tests against it and a tested unit is not private. And the envelope's two keys got one declaration, `ENVELOPE_CONCEPT_KEY` / `ENVELOPE_CONTENT_KEY` in `projection_reference.py`, since the path map and the projection must agree on where a wrapped slot's list sits.
-
-**No divergence-count surprise.** Regenerating over the three corpus bundles produces bytes identical to the committed capture in both `mthds-js/tests/fixtures/protocol/` and `mthds-python/tests/fixtures/protocol/`, with the same five classes at the same counts (`optional-field-included` 163, `file-leaf-not-expanded` 6, `fixed-count-honoured` 4, `text-named-url` 4, `object-native-keeps-envelope` 1) and the engine renderings unchanged too. `engine-only-field` fires at zero sites, as the item predicted.
-
-**Re-measuring the item's fabricated-regression table** through the fixed collector, against the real engine output: six of nine mutations are now caught (the item's baseline caught one of eight). Newly caught are the dropped required field — via the undeclared `engine-only-field`, which makes `declared()` refuse — the regressed file-leaf URL, a structured slot collapsing to a lone wrong `url` key, a `[2]` slot rendering four elements, and a variable `[]` slot rendering two.
-
-**Three shapes remain absorbed, and all three are the redesign this item rejects.** A projection inventing a field still reads as `optional-field-included`; a garbled placeholder at a url-named text field still reads as `text-named-url`; a structure collapsing to a bare scalar still reads as `object-native-keeps-envelope`. Each is a *wrong value at a site that already carries a class*, which shape alone cannot separate from the right one — telling them apart needs each node's kind and presence carried through the whole walk. The limit is written down where a reader meets it: `DivergenceCollector`'s docstring and the "What the gate can and cannot separate" section of `docs/contribute/generate-projection-corpus.md`. Deliberately not filed as a ledger item — the parent item names that redesign as out of scope, and the two shipped projections are pinned against the committed bytes regardless.
-
-## Phase 4 — wrap
-
-- `make agent-check`, `make agent-test`.
-- Update the module and `_DivergenceCollector` docstrings only if the guarantee's wording needs it — the point of the fix is that the stated guarantee becomes true as written.
-- Touch `docs/contribute/generate-projection-corpus.md` if it describes the gate.
-- Changelog under `[Unreleased]`.
-- PR to `dev` with `Closes L-260830-2c75b3` in the body.
-
-> **Landed.** pipelex#1170 merged to `dev` as `4a8e9ad4957b9761743c8a125e64dee64bc3dcf3`, with every CI check green (the eight py3.11 test shards, typecheck, the lint matrix including drift-contracts and keyword-only, `doc-check`, `uv-lock-check`). `L-260830-2c75b3` is closed `fixed`. The merge has not reached `main`: the code ships to exact-version consumers with the next pipelex release, tracked by `L-260828-f4e88c`. The PR carried one unrelated rider, the `bump-kajson` skill and its `upstream_notes.py` helper, which is not part of this campaign.
diff --git a/wip/projection-roundtrip-gate/plan.md b/wip/projection-roundtrip-gate/plan.md
deleted file mode 100644
index 550310f7a..000000000
--- a/wip/projection-roundtrip-gate/plan.md
+++ /dev/null
@@ -1,80 +0,0 @@
----
-status: landed
-item: L-260830-216378
----
-
-# Round-trip every projected template through the input shaper at corpus-generation time
-
-The projection corpus generator (`pipelex/cli/dev_cli/commands/generate_projection_corpus_cmd.py`) authors the fill-in templates the TypeScript and Python projections are pinned against, committed byte-identically in `mthds-js` and `mthds-python`. A template exists to be filled in and handed back to the runtime, so every slot it pins must survive `InputShaper.shape` — and the generator never checks that. Twice, corpus bytes pinned slots the runtime rejects outright (`WrongScalarKindError` on a bare date object, a bare string at a nested `TextContent` node), and both times a human review round caught it instead of the capture; the second time (L-260830-8695ba) the divergence gate actively absorbed the broken sites into a declared class and exited 0.
-
-## The design decision: registry-gated, not report-only
-
-The item's original note proposed a report-only verdict, because L-260830-191719 (a descriptor gap, not a projection error) makes `probe_single` unshapeable today and a hard refusal would block generation on a known-open defect. This plan refines that: the check follows the **declared-never-discovered** discipline the divergence record already has.
-
-- An `EXPECTED_UNSHAPEABLE` registry maps `(pipe_ref, shape)` to the ledger item tracking the fix.
-- A round-trip failure **not** in the registry fails the command, printing the pipe, shape and error. This is the mechanism that would have caught both prior escapes at generation time.
-- A registry entry whose template **now shapes** also fails the command ("delete the entry, the gap closed"), so a fix retires its declaration deliberately — exactly the lapse rule `DivergenceCollector.declared()` applies.
-- Generation is never blocked by the known-open gap: its entries are declared, recorded in the manifest, and printed.
-
-Report-only would print a failure and still exit 0 with the broken bytes written; nothing forces anyone to read the output before committing them in two consumer repos. The registry keeps the item's stated goal (a stated fact, generation unblocked) while making the capture the thing that catches the next regression.
-
-Measured ground truth (2026-08-31, `dev` at the projection-divergence-gate landing): over the three corpus bundles, the failing round-trips are exactly `input_semantics_probe.probe_single` and `input_semantics_probe.probe_markers`, each in **both** shapes, all four from the L-260830-191719 nested-list gap (`matrix` in `Widget`). Every other template shapes cleanly in both shapes — the file-ish mock-URL leaves and the fixed-count slots included. The check is offline: the shaper wraps URLs without fetching (`input_shaper.py`, file-ish arms) and the command already boots with `needs_inference=False`.
-
-## Scope decisions
-
-- **Both shapes round-trip, not just compact.** The item title says compact, but the explicit template is equally a runnable scaffold, it fails today for the same pipes, and the check is one extra call on a template already in memory. The registry key is `(pipe_ref, shape)`.
-- **JSON form only.** Both serializations derive from the same in-memory template dict, so shaping the dict covers the values; TOML byte-fidelity is the consumer harnesses' concern.
-- **The manifest records failures only, without the error message.** A new manifest field `unshapeable: [{pipe_ref, shape, error_type, ledger_item}]` — mirroring the divergence record, which lists departures, not conformances. The error **class name** is contract-stable (the error-identity snapshot discipline); the message is wording that would churn committed bytes across pydantic versions, so it goes to the console only. Passing verdicts are printed, not committed.
-- **Catch broadly.** The round-trip wraps `Exception`, not `InputShapingError`: the explicit arm lets a raw pydantic `ValidationError` escape untyped today (filed as L-260831-1e1a71 — its fix will change the recorded `error_type` for the explicit entries, which the lapse-symmetric tests must not hardcode beyond the registry itself).
-
-## Non-goals
-
-- Fixing the descriptor gap that makes the registry non-empty — L-260830-191719. Its fix deletes the registry entries; the lapse rule forces that deletion.
-- The projection's remaining unshapeable slot shapes (`native.Date[]`, class-backed date) — L-260830-8695ba. Landing this gate **first** is the point: that item's fix then proves itself against the round-trip instead of against a reviewer.
-- Typing the explicit arm's escaped `ValidationError` — L-260831-1e1a71.
-- Executing templates beyond shaping (no pipeline runs, no inference).
-
-## Phase 1 — red tests
-
-On `feature/Projection-roundtrip-gate` off `dev` (renew the claim on the branch). Tests first, failing:
-
-- New `tests/unit/pipelex/cli/dev_cli/test_projection_shaping_gate.py`, in the style of `test_projection_divergence_gate.py` — the gate logic tested directly with an injected registry, no engine boot:
- - an undeclared failing `(pipe_ref, shape)` refuses the capture, naming the pipe, shape and error class;
- - a declared entry that now shapes refuses with the retire-it message;
- - a declared failing entry passes and yields the manifest record carrying its ledger item.
-- Extend `tests/unit/pipelex/cli/dev_cli/test_generate_projection_corpus.py`:
- - the real corpus generates (the known gap is declared, so the command succeeds) and the manifest's `unshapeable` entries all cite L-260830-191719, cover both shapes, and name only pipes the registry declares;
- - the rerun byte-stability test still holds with the new manifest field.
-
-## Phase 2 — implementation
-
-All in `generate_projection_corpus_cmd.py` unless said otherwise:
-
-- `EXPECTED_UNSHAPEABLE: dict[tuple[str, str], str]` beside `DIVERGENCE_ITEMS`, initially declaring `probe_single` and `probe_markers` in both shapes against `L-260830-191719`, with a comment stating the retire rule.
-- `UnshapeableEntry` pydantic model (`pipe_ref`, `shape`, `error_type`, `ledger_item`), and `CorpusManifest.unshapeable: list[UnshapeableEntry]`.
-- A small `ShapingGate` class (registry injected, module constant as the default) collecting one verdict per `(pipe_ref, shape)`; called from `_capture_pipe` with the already-projected template:
- `InputShaper.shape(template, concept_provider=get_concept_library(), input_specs=pipe.inputs, search_scope=pipe.domain_code)` — the same assembly as the entry-pipe run path in `pipeline_run_setup.py`. An empty descriptor's `{}` shapes trivially and is recorded as passing.
-- After the walk, beside the unclassified-divergence check: raise on any undeclared failure and on any lapsed registry entry; otherwise emit the `unshapeable` manifest entries.
-- Console output: one line per failing round-trip (error class + first message line), and a summary line for the passing count.
-
-Gates: `make agent-check`, then `make agent-test` (new tests are unit-level and offline).
-
-## Phase 3 — docs and changelog
-
-- `docs/contribute/generate-projection-corpus.md`: a "The shaping round-trip" section — what is checked, the registry, the retire rule, and that the manifest states unshapeable templates as facts of the capture.
-- `CHANGELOG.md` under `## [Unreleased]`: bold label + a few sentences.
-
-**Checkpoint** — the pipelex half is complete and mergeable here. Open the PR against `dev` with `Closes L-260830-216378` in the body; the re-baseline below can hand off to another session.
-
-**Checkpoint outcome.** Phases 1 through 3 landed as pipelex#1173, merged to `dev` at `cb53920d7fdad4cea3f90d83ec8f5a97350314b1`. The gate shipped as planned: `EXPECTED_UNSHAPEABLE`, the `ShapingGate` collecting one verdict per `(pipe_ref, shape)`, the manifest's `unshapeable` records, and the two refusals. Review added a third refusal the plan had not anticipated — a declared entry the capture never walked, worded apart from the lapsed one because it needs re-keying rather than deletion. Both gate rules were mutation-tested against the real corpus rather than asserted: reverting the projection's nested-native wrapping (the L-260830-8695ba escape verbatim) makes the shaping gate refuse where the divergence gate passes, which is the absorption this campaign existed to close. Phase 4 handed off as planned, one item per consumer repo.
-
-## Phase 4 — re-baseline the committed corpus in the consumer repos
-
-The only committed-bytes change is `inputs_template/manifest.json` gaining `unshapeable`. Regenerate with the documented bundle order and land the same bytes in `mthds-js/tests/fixtures/protocol/` and `mthds-python/tests/fixtures/protocol/`. Check each repo's manifest parser first — a strict model there must gain the field in the same change. If this session does not do it, file one ledger item per consumer repo linked to L-260830-216378 rather than leaving it implied.
-
-Handed off rather than done here: L-260831-a5a68b (`mthds-js`) and L-260831-dd7460 (`mthds-python`), both released by this campaign's merge.
-
-## Interplay to keep in mind
-
-- Land this before L-260830-8695ba's projection fixes: its new bundle slots then get verified by the gate at generation time.
-- When L-260830-191719 closes, its fix must delete the registry entries and regenerate — the lapse rule fails the command until it does, which is the wanted loudness.
diff --git a/wip/prompting-style/gateway-config-outlived-prompting-target.md b/wip/prompting-style/gateway-config-outlived-prompting-target.md
deleted file mode 100644
index 2f5ddee0f..000000000
--- a/wip/prompting-style/gateway-config-outlived-prompting-target.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# The served gateway config outlived `prompting_target` — what happened, and what made the fix safe
-
-**Found 2026-08-14, during Phase 3 of the templating-style plan; fully resolved the same day.** Kept as the record of a failure mode that will recur for any field ever removed from `InferenceModelSpecBlueprint`, and of the mechanism that makes such a removal safe.
-
-## What happened
-
-Deleting `prompting_target` from `InferenceModelSpecBlueprint` made **every** test in the suite error at boot, on this machine and on any machine with a cached gateway config:
-
-```
-InferenceBackendLibraryError: Invalid inference model spec 'gpt-4o-mini' for backend
-'pipelex_gateway' from remote config with local overrides from '.pipelex/inference/backends/pipelex_gateway.toml':
-Extra forbidden fields: 'prompting_target'
-```
-
-The Pipelex Gateway backend does not read its model specs from a file in this repo. They are fetched from the Pipelex API and cached at `~/.pipelex/cache/remote_config.json`, and that config's `backend_model_specs.defaults` block declared `prompting_target = "anthropic"`. `InferenceModelSpecBlueprint` is `extra="forbid"`, so once the field was deleted here, a config that still declared it stopped validating.
-
-Note the asymmetry inside `InferenceBackendLibrary.load`: the loop that reclassifies unknown keys as outbound HTTP headers iterates the **per-model** dict only. So an unknown key per-model is silently turned into a header, while an unknown key in `defaults` is fatal. Same input, two opposite failure modes, neither of them "ignore it". That asymmetry is the subject of [`../rogue-extra-headers-guard-plan.md`](../rogue-extra-headers-guard-plan.md).
-
-## What was done in `pipelex`
-
-`drop_unknown_gateway_defaults` (`pipelex/cogt/model_backends/gateway_config.py`) prunes keys the blueprint does not know from the **remote** config's `defaults` before the merge with local overrides. Rationale, stated in the docstring: the gateway config is served by a component that deploys on its own schedule, so a client legitimately reads a config written by a different release than itself — an unknown key there is version skew, not a typo. Local backend files stay strict.
-
-This is not a shim for `prompting_target` specifically; it is the tolerance a remote config needs in general, and it would have prevented this failure for any removed field. Tested in `tests/unit/pipelex/cogt/model_backends/test_gateway_unknown_defaults.py`.
-
-The prune is pure and silent by design. It first logged the dropped keys, which crashed any caller that loads backends before `runtime_hub.set_config()` has configured the log dispatch (`RuntimeError: LogConfig is not set`) — and since the served config really did declare an unknown key, that fired on the ordinary success path, not a corner. Pinned by `test_pruning_does_not_need_the_log_hub`.
-
-## What was done in the served config, and why it was safe
-
-`prompting_target` is deleted from the gateway config our back-office repo (private) serves — its gateway-models TOML declared it in `[defaults]`, and its build service publishes that block as the remote config's `backend_model_specs`. It is dead data: nothing in `pipelex` reads it any more.
-
-**The mechanism that made the deletion safe is the versioned config URL, not timing.** Deleting the key would otherwise have been a live prompt change for every deployed client, in the one direction we do not want:
-
-| Client | Config declares the key | Config drops it |
-|---|---|---|
-| A client with the prune (this branch onward) | pruned → `xml` (the resolved default) | `xml` |
-| Earlier release | `anthropic` → `xml` | **`None` → the filter's own `TICKS` fallback** |
-
-An older client never reaches its configured `default_prompting_style`: `PromptingConfig.get_prompting_style(None)` returns `None` rather than the default, so no style reaches `apply_tag_style`, which applies its own `TagStyle.TICKS`. Every gateway prompt in the field would have moved from XML tags to backtick fences, silently.
-
-That never happens because the served config is **versioned in its URL**: `pipelex_details.py` now points at `pipelex_remote_config_12.json` (was `_11`). The edited gateway TOML was published as `_12`; `_11` is frozen and still carries `prompting_target = "anthropic"`, so every earlier release keeps rendering XML. Verified live against both URLs: `_12` `defaults` = `{model_type, sdk, structure_method}`, `_11` = the same plus `prompting_target`, the same model entries either side.
-
-**The URL bump is the compatibility boundary for any breaking change to this config.** It is the reason the deletion did not need to wait for a deployed floor, and it is worth knowing before the next one. Two cautions that go with it: the local cache at `~/.pipelex/cache/remote_config.json` is shared across every checkout on a machine and records no source URL, so a `_12` checkout can be reading an `_11` body populated by another checkout; and our JS runtime (private repo) is a second consumer of this wire contract that still pins `_11` and models `promptingTarget` on its own spec — unaffected today, divergent the moment it moves to `_12`.
-
-## The open design question, answered elsewhere
-
-Whether the per-model unknown-key → HTTP-header rule should survive is decided and planned in [`../rogue-extra-headers-guard-plan.md`](../rogue-extra-headers-guard-plan.md): the rule survives, but only for header-shaped keys; anything else is fatal from a local file and pruned from the served payload. To be executed after the templating-style branch merges, and never in a release that predates the `prompting_target` deletion.
diff --git a/wip/prompting-style/pr-1104-deferred-review-items.md b/wip/prompting-style/pr-1104-deferred-review-items.md
deleted file mode 100644
index b5f9f6054..000000000
--- a/wip/prompting-style/pr-1104-deferred-review-items.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# PR #1104 — review findings deferred out of that PR
-
-Two findings from the bot review of [#1104](https://github.com/Pipelex/pipelex/pull/1104) were confirmed real but deliberately left out of that PR. Their state today:
-
----
-
-## 1. `TemplatingStyle` silently ignores unknown keys — ✅ resolved on the stacked branch `fix/keyless-followups`
-
-**Reported by:** chatgpt-codex-connector (P2), on `pipelex/pipe_operators/llm/pipe_llm_blueprint.py`.
-
-`TemplatingStyle` was a bare `BaseModel` inheriting pydantic's default `extra="ignore"`, so `templating_style = { tag_style = "xml", text_formt = "markdown" }` parsed fine and yielded `xml/plain`. `TemplateBlueprint` — the rich `[pipe.name.template]` table on `PipeCompose` — had the same hole and a bigger one: `templating_stile` and `extra_contxt` were both dropped silently. Note the reporter's literal example (`{ text_formt = "markdown" }` alone) did **not** reproduce, because `tag_style` has no default and a table missing it fails both arms of the union; the misspelled key has to be an optional one.
-
-**Fixed as one strictness pass over both nested authoring models, not a drive-by on one of them:** both are `extra="forbid"` now, with tests that pin the rejection directly, through `PipeLLMBlueprint`, through `PipeComposeBlueprint`, and across a kajson round trip. The MTHDS JSON Schema gains `additionalProperties: false` on both definitions (`make gms` / `make cms` green; no tracked diff, since `derived/mthds_schema.json` is gitignored).
-
-**What is still release-gated:** the downstream propagation of that schema change to the committed copies in `mthds`, `vscode-pipelex` and `mthds-ui`, via the `mthds-schema-sync` skill once a `pipelex` release carries it. It rides with the `templating_style` schema change from #1104 itself — the sync tax is paid once. Already listed in the [implementation plan's out-of-scope follow-ups](templating-style-implementation-plan.md#out-of-scope-here--release-gated--cross-repo-follow-ups).
-
----
-
-## 2. `PipeStructure` does not resolve the authored templating style — deliberately left as is
-
-**Reported by:** cubic-dev-ai (P2), as the second half of the `preliminary_text` finding. The first half — the draft blueprint dropping `templating_style` — was a real bug and is fixed in #1104.
-
-There is a genuine asymmetry between the two structuring paths: `direct` renders `output_structure_prompt` under the **authored** style, while `preliminary_text` synthesizes a `PipeStructure` that renders it under the **runtime default**.
-
-**Why it stays:** it is unobservable under the shipped templates, and closing it contradicts a decision the code records on purpose. Both built-in structuring templates (`structuring_prompt`, `output_structure_prompt` in `pipelex.toml`) use bare `{{ }}` interpolation with no style-sensitive filter, on a value that is already a `str` — the style is inert there. `pipe_structure.py` states the choice: *"No authored style on this operator: the structuring prompt takes the runtime default, the same one an LLM pipe that declares nothing gets."* Closing it would mean a new field on `PipeStructureBlueprint` + `PipeStructureFactory` + the runtime pipe + the builder spec + the JSON schema + downstream schema sync, for zero observable effect today.
-
-**Revisit only if** a structuring template ever grows a style-sensitive filter (`| tag`, `| format`), at which point the asymmetry becomes observable and the field earns its cost.
diff --git a/wip/prompting-style/prompt-style-as-an-authoring-decision.md b/wip/prompting-style/prompt-style-as-an-authoring-decision.md
deleted file mode 100644
index e998160df..000000000
--- a/wip/prompting-style/prompt-style-as-an-authoring-decision.md
+++ /dev/null
@@ -1,141 +0,0 @@
-# Prompt style as an authoring decision
-
-**Design note, 2026-08-14.** Status: **✅ built** — all §7 rulings settled by Louis 2026-08-14 and implemented on `fix/Keyless-dry-run` across Phases 0–5 of [`templating-style-implementation-plan.md`](templating-style-implementation-plan.md), whose checkpoint log is the build record. One ruling overrides the body: the authored field is **`templating_style` everywhere** (§4.1's `prompt_style` proposal was not retained). Written on `fix/Keyless-dry-run` but deliberately scoped to stand alone — the keyless dry-run bug is what surfaced this, not what motivates it. See §9 for the relationship.
-
-**Read the body as the design, not as the current code.** It argues from a world where `prompting_target` exists; that field, the `PromptingTarget` enum, the per-target style map and `derive_templating_style` are all deleted. Two things landed beyond what this note designed, both consequences of the strict-filter ruling in §4.3: the `TICKS`/`PLAIN` fallbacks in the Jinja2 filters are gone (a style-less render of a filter-bearing template now raises), and every prompt-rendering entry point — including compose, image generation, search, construct-mode template fields and the built-in structuring prompts — resolves a real style rather than only the LLM path. User-facing documentation is [`docs/building-methods/templating-style.md`](../../docs/building-methods/templating-style.md).
-
-The direction itself is older: Louis first ruled the model-derived mechanism obsolete on 2026-08-03, during the parity-gaps/kernel-extraction work, and it was deferred as **KF-16**. This doc supersedes that deferred note (formerly this directory's `README.md`, deleted — its inbound pointers, the `PipelexKernel.llm_object` docstring and the `wip/parity/` docs, were re-aimed here).
-
-## 1. The change in one sentence
-
-**How a method's inputs get tagged into a prompt becomes something the method author declares, not something the runtime infers from which provider happens to serve the model.**
-
-## 2. Why, independent of any bug
-
-**The premise it rests on has expired.** The whole mechanism exists to send back-ticks to OpenAI models and XML to Anthropic ones. That distinction is several model generations old; every current frontier model handles XML tags well, and Anthropic still actively recommends them. A per-provider dialect map is now maintaining a difference that no longer pays for itself.
-
-**The data is infra-shaped and partly arbitrary.** `prompting_target` is declared once per backend in each spec file's `[defaults]` block (`pipelex/kit/configs/inference/backends/*.toml`), with a handful of per-model overrides in `portkey.toml`. It does not track the backend — bedrock, minimax, ollama and xai all declare `anthropic`. For bedrock and minimax that is considered (they really are Anthropic-dialect endpoints). For ollama it is close to meaningless: ollama serves whatever you pull into it, and every one of those models is being told the same dialect. The field's accuracy degrades exactly where the backend is a multiplexer, which is the direction the ecosystem is moving.
-
-**Prompt shape is a property of the method, not of the machine.** A method is meant to be portable — written once, run against whatever model is available. Today, moving a method from an OpenAI preset to an Anthropic one silently rewrites every prompt it renders. The author never asked for that and cannot see it in the `.mthds` file. If tag style materially affects output quality, it belongs where the author can read, diff, review and version it. If it doesn't, it shouldn't be per-model at all. Either way the current placement is wrong.
-
-**There are three defaults today, in three layers, and they disagree.** This is the strongest argument, because it means the current behaviour is not a design at all:
-
-| # | Site | Value | When it applies |
-| --- | --- | --- | --- |
-| 1 | `pipelex.toml` → `prompting_config.default_prompting_style` | `xml` | Only when a `prompting_target` **is set but unrecognised**. Unreachable when the target is absent — `PromptingConfig.get_prompting_style(None)` returns `None`, not the default. |
-| 2 | `tools/jinja2/jinja2_filters.py:120-122` (`apply_tag_style`) | `TICKS` | Whenever `TAG_STYLE` was never put on the Jinja2 context — i.e. the actual fallback for "no style", in the tools layer, several layers below anyone who could have decided. |
-| 3 | `cogt/llm/llm_prompt_template.py:93` | `xml` + `markdown`, hardcoded | The `LLMPromptTemplate` path, which appears to be dead (referenced only from its own module and `cogt/exceptions.py` — confirm and delete). |
-
-So the setting named "default prompting style" is not the default, and the real default lives in a Jinja2 filter. Any change to this area has to collapse these to one regardless of which way the per-model question goes.
-
-## 3. What exists today
-
-**The resolution chain.** `pipelex/kernel/llm_ops.py:62-75`:
-
-```
-llm_setting.model (handle) → deck.get_optional_inference_model(handle) → spec.prompting_target
- → prompting_config.prompting_styles[target] → TemplatingStyle(tag_style, text_format)
- → Jinja2 context TAG_STYLE / TEXT_FORMAT → the `| tag` and `| format` filters
-```
-
-The handle is only a lookup key; nothing parses it. `prompting_target` is a model-family label, and `TemplatingStyle` is the pair of knobs that actually does anything.
-
-**`prompting_target` has a second consumer that is not about prompting.** `cogt.llm_config.effort_to_budget_maps` is keyed by it, and the Anthropic and Google workers read `inference_model.prompting_target` to resolve a thinking budget, raising *"has no prompting_target configured, cannot resolve reasoning budget"* when it is absent (`providers/anthropic/anthropic_llm_worker.py:180-185`, `providers/google/google_llm_worker.py:149-154`, `cogt/config_cogt.py:96`). This is the one hard blocker — see §6.
-
-**Authoring surfaces that already exist**, and which this design extends rather than invents:
-
-- `TemplateBlueprint.templating_style` (`cogt/templating/template_blueprint.py:15`), described in its own field docstring as *"Style of prompting to use (typically for different LLMs)"*. Used by `PipeCompose` and by `PipeImgGen`'s prompt assembly (`kernel/img_gen_prompt.py:245-249`). So an authored style is already a language concept — it just doesn't reach `PipeLLM`.
-- `PipeComposeSpec.target_format` — the spec layer's friendly enum widening into a `TemplatingStyle`, the precedent for a shorthand.
-- `LLMSetting.prompting_target` — reachable today from a deck preset or an inline `.mthds` model table (`model = { model = "gpt-4o-mini", temperature = 1, prompting_target = "anthropic" }`). No shipped config uses it, and `derive_templating_style` ignores it anyway when the deck lacks the model.
-
-## 4. The design
-
-### 4.1 Vocabulary
-
-One concept, one type. `TemplatingStyle` stays the type (`tag_style` + `text_format`). The authored field on a `PipeLLM` is **`prompt_style`**, because there the thing being styled *is* the prompt. `PipeCompose` keeps `templating_style` inside its `template` table, because a composed template may render HTML that never reaches an LLM — calling that a "prompt style" would be a lie. Two names for one type is a real cost; §7 asks for a ruling rather than pretending it isn't.
-
-`PromptingTarget` (the `openai` / `anthropic` / `mistral` / `gemini` / `fal` enum) disappears from style selection entirely. Authors do not think "my target is openai"; they think "tag my inputs with XML".
-
-### 4.2 Two levels, pipe wins
-
-1. **The pipe** — `PipeLLM.prompt_style`. For a step that needs a specific shape.
-2. **The runtime config** — `pipelex.prompting_config.default_prompt_style`. The value every pipe gets when it says nothing; house style for an org that wants one.
-
-Resolution is a **total function**: `pipe.prompt_style or config.default_prompt_style`. It consults no deck, no model spec, no credentials — which is why the result cannot depend on how the process booted.
-
-(A domain-level `prompt_style` inheriting down like `system_prompt` does was considered and **rejected — Louis, 2026-08-14**: two levels are enough. If a whole method genuinely wants one style, that is what the config default is for; don't add a third place to look.)
-
-### 4.3 The invariant: there is no "no style"
-
-The resolver never returns `None`. That is the load-bearing part, and it is what collapses the three defaults of §2:
-
-- `templating_style: TemplatingStyle | None` stops being optional along the prompt-rendering path — concretely, the kernel ops `run_llm_text` / `run_llm_object` and `assemble_llm_prompt` take a plain `TemplatingStyle` (the tightening the KF-16 note already anticipated).
-- The `TICKS` fallback in `apply_tag_style` becomes unreachable and gets **deleted**. A missing `TAG_STYLE` on the Jinja2 context stops being a silent default and becomes what it actually is — a bug.
-- The hardcoded `xml`/`markdown` in `llm_prompt_template.py` goes with the module, if that module is indeed dead.
-
-It also disposes of the "external LLM plugin" case cleanly: a model served by a plugin the deck knows nothing about no longer gets to have an opinion about prompt shape, because nothing about prompt shape is read from a model any more.
-
-### 4.4 The authored surface
-
-A string shorthand that widens into the struct — the same idiom `PipeComposeBlueprint.template: str | TemplateBlueprint` already uses:
-
-```toml
-[pipe.extract_clauses]
-type = "PipeLLM"
-prompt = "Extract the clauses from $contract" # says nothing → config default (xml)
-
-[pipe.summarize_verbatim]
-type = "PipeLLM"
-prompt = "Summarize $clauses"
-prompt_style = { tag_style = "no_tag", text_format = "markdown" } # this one step differs
-```
-
-Bare string = `tag_style`, the overwhelmingly common case. Inline table = the full `TemplatingStyle`. `no_tag` is already in the enum and becomes a genuinely useful authoring choice ("don't wrap my inputs in anything").
-
-### 4.5 Layering
-
-Per the spec-vs-blueprint split: `PipeLLMBlueprint` gets `prompt_style` (language), `PipeLLMSpec` gets the matching authoring field mapped through `to_blueprint()` (convenience). The resolver belongs next to the other kernel prompt semantics, replacing `derive_templating_style` in `kernel/llm_ops.py`.
-
-### 4.6 What gets deleted
-
-- `InferenceModelSpec.prompting_target` and every `prompting_target` line in the kit's backend spec TOMLs.
-- `LLMSetting.prompting_target`.
-- `PromptingConfig.prompting_styles` (the target → style map in `pipelex.toml`).
-- `PromptingTarget` itself, once §6 lands.
-- The `TICKS` fallback in `apply_tag_style`, and `derive_templating_style`'s deck lookup.
-- The `PipelexKernel.llm_object` docstring paragraph recording the parity-gap 2.2 adjudication — why its single `model` carries the text-choice semantics for templating, the "do not fix by deriving from an object-only resolution" trap, and its pointer to this directory (`pipelex/kernel/pipelex_kernel.py`). With derivation gone, prompt style no longer depends on which model resolution ran, so the question that paragraph adjudicates dissolves. **KF-16 closes with this change** — update the `wip/parity/` docs that carry it.
-
-## 5. One resolver, every prompt
-
-The resolver must serve **every pipe that renders a prompt**, not just `PipeLLM`. Today `PipeImgGen`'s prompt renders with whatever `TemplateBlueprint.templating_style` the author supplied, which is normally nothing — so it falls into the same `TICKS` default from the same filter. Once the resolver is total, img-gen and compose prompts inherit the config default the same way, and the author gets one mental model instead of three.
-
-Note that the style is consumed **before** dispatch — `assemble_llm_prompt` renders in the interpreter and the content generator receives an already-rendered `LLMPrompt` — so nothing about this has to cross the transport boundary for `PipeLLM`. `TemplatingAssignment.templating_style` (`cogt/content_generation/assignment_models.py:116`) does travel, for the compose path; it is a plain pydantic field and stays as-is.
-
-## 6. The blocker: reasoning budgets must move first
-
-`effort_to_budget_maps` is keyed by `prompting_target`, so deleting the field breaks thinking-budget resolution on Anthropic and Google. The fix is small and improves things: **the worker already knows its own family.** The Anthropic worker is the Anthropic worker; it does not need a config field to tell it so. Have each worker supply its own budget-map key, keep the config map keyed as it is (`anthropic`, `gemini`), and rename the concept so it stops borrowing the word "prompting" for something that is about reasoning effort.
-
-This is a prerequisite, not a follow-up. Sequence it first so that removing `prompting_target` is a pure deletion.
-
-## 7. Rulings — all settled (Louis, 2026-08-14)
-
-- **Naming: `templating_style` everywhere.** One name for the one type, on PipeLLM and PipeCompose alike — the §4.1 proposal of `prompt_style` on PipeLLM was not retained. Accepts that "templating" is the broader word; avoids two names for one type. Config vocabulary follows (see the implementation plan's derived decisions).
-- **The new global default: `xml` + `plain`**, as proposed. OpenAI-family prompts flip from back-ticks to XML — the point of the change.
-- **No per-model or per-preset override survives.** Pure two-level resolution: pipe > config default, nothing else. The infra-side lever is removed entirely.
-- **The authored surface is the full `TemplatingStyle`.** Bare string = `tag_style` shorthand (the common case); inline table = the full struct including `text_format`.
-
-## 8. Migration and blast radius
-
-- **Every prompt rendered for an OpenAI-family model changes shape** — from `` name: ``` `` back-tick blocks to `<name>` XML tags. This is the point of the change, not a side effect, but it is a change to the actual text sent for a large share of shipped methods and should be stated plainly in the changelog. Anything with recorded prompt goldens will move.
-- **Test fixtures and goldens** that assert rendered prompt text will need regenerating; grep for both tag shapes.
-- **Schema propagation.** `PipeLLMBlueprint` gaining a field changes the MTHDS JSON Schema: regenerate with `pipelex-dev generate-mthds-schema`, then propagate to the downstream committed copies via the `mthds-schema-sync` skill, gated on a released `pipelex` version.
-- **Config shape.** `prompting_config` loses `prompting_styles` and renames its default — the config model and every `pipelex.toml` must move together or boot fails; `make tb` is the quick check.
-- **Docs.** Prompt style becomes an authoring topic (a page under method authoring) rather than an inference-config topic; the backend-config docs lose a field. One whole published page is premised on the old mechanism — `docs/building-methods/adapt-to-llm-prompting-style-openai-anthropic-mistral.md` ("adapt prompting styles for OpenAI, Anthropic, Mistral…"), linked from `docs/features/llm-integration.md` — replace it with the authoring page rather than patching it; even its URL states the dead premise.
-- **MTHDS spec.** A pipe-level `templating_style` is a language-surface change, which the `mthds/` spec repo owns — the JSON-Schema regen and downstream sync above are only the mechanical half; the spec prose is a deliverable of its own.
-- **No backward compatibility**, per repo policy: no deprecation window, just the changelog entry.
-
-## 9. Relationship to the keyless dry-run bug
-
-`wip/keyless/` documents a bug where a process booted without credentials renders different prompts than one booted with them, because prompt style is derived from model metadata that only loads with credentials. **This design dissolves that bug rather than fixing it** — once style depends on nothing but authored declarations and config, a keyless boot and a keyed boot agree by construction.
-
-That is a consequence, not a justification. The keyless investigation has its own residue that survives this change and must still be judged on its own merits: `max_prompt_images` unenforced, img-gen param rules skipped, and handle-pinned bundles *rejected* on a keyless machine. Settle prompt style first; then re-open `wip/keyless/keyless-dry-prompts-fix-plan.md` with a smaller and clearer question.
diff --git a/wip/prompting-style/templating-style-explainer.html b/wip/prompting-style/templating-style-explainer.html
deleted file mode 100644
index 5f9a1acd1..000000000
--- a/wip/prompting-style/templating-style-explainer.html
+++ /dev/null
@@ -1,659 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>Retiring prompting_target</title>
-<style>
-:root {
- --ground: #F2F5F5;
- --surface: #FFFFFF;
- --surface-2: #E9EFEF;
- --ink: #101619;
- --ink-soft: #56656A;
- --ink-faint: #7E8D91;
- --accent: #0C6E6E;
- --accent-soft: #D6EAE8;
- --old: #9C5638;
- --old-soft: #F3E1D8;
- --line: #D6DFDF;
- --line-strong: #B9C6C6;
-
- --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
- --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
-
- --measure: 68ch;
- --pad: clamp(1.1rem, 4vw, 2.5rem);
-}
-
-@media (prefers-color-scheme: dark) {
- :root:not([data-theme="light"]) {
- --ground: #0D1214;
- --surface: #151D1F;
- --surface-2: #1D2729;
- --ink: #E4EBEB;
- --ink-soft: #94A4A6;
- --ink-faint: #728284;
- --accent: #4FC3BE;
- --accent-soft: #12312F;
- --old: #D3906F;
- --old-soft: #33211A;
- --line: #253032;
- --line-strong: #37484A;
- }
-}
-
-:root[data-theme="dark"] {
- --ground: #0D1214;
- --surface: #151D1F;
- --surface-2: #1D2729;
- --ink: #E4EBEB;
- --ink-soft: #94A4A6;
- --ink-faint: #728284;
- --accent: #4FC3BE;
- --accent-soft: #12312F;
- --old: #D3906F;
- --old-soft: #33211A;
- --line: #253032;
- --line-strong: #37484A;
-}
-
-* { box-sizing: border-box; }
-
-html { -webkit-text-size-adjust: 100%; }
-
-body {
- margin: 0;
- background: var(--ground);
- color: var(--ink);
- font-family: var(--sans);
- font-size: 17px;
- line-height: 1.65;
- -webkit-font-smoothing: antialiased;
-}
-
-.wrap {
- max-width: 1080px;
- margin: 0 auto;
- padding: var(--pad);
- display: flex;
- flex-direction: column;
- gap: 3rem;
-}
-
-/* ---------- masthead ---------- */
-
-header.masthead {
- display: flex;
- flex-direction: column;
- gap: 1.1rem;
- padding-top: 1.5rem;
-}
-
-.eyebrow {
- font-family: var(--mono);
- font-size: 0.72rem;
- letter-spacing: 0.16em;
- text-transform: uppercase;
- color: var(--accent);
- margin: 0;
-}
-
-h1 {
- font-family: var(--mono);
- font-size: clamp(2rem, 6vw, 3.1rem);
- line-height: 1.05;
- letter-spacing: -0.02em;
- font-weight: 600;
- margin: 0;
- text-wrap: balance;
-}
-
-h1 .brk { color: var(--line-strong); font-weight: 400; }
-
-.standfirst {
- font-size: clamp(1.05rem, 2.4vw, 1.24rem);
- line-height: 1.55;
- color: var(--ink-soft);
- margin: 0;
- max-width: var(--measure);
- text-wrap: pretty;
-}
-
-.meta {
- display: flex;
- flex-wrap: wrap;
- gap: 0.5rem 1.4rem;
- font-family: var(--mono);
- font-size: 0.76rem;
- color: var(--ink-faint);
- border-top: 1px solid var(--line);
- padding-top: 0.9rem;
- margin-top: 0.3rem;
-}
-.meta b { color: var(--ink-soft); font-weight: 500; }
-
-/* ---------- tldr ---------- */
-
-.tldr {
- background: var(--surface);
- border: 1px solid var(--line);
- border-left: 3px solid var(--accent);
- border-radius: 4px;
- padding: clamp(1.2rem, 3vw, 1.9rem);
- display: flex;
- flex-direction: column;
- gap: 1rem;
-}
-
-.tldr h2 {
- font-family: var(--mono);
- font-size: 0.76rem;
- letter-spacing: 0.16em;
- text-transform: uppercase;
- color: var(--accent);
- margin: 0;
- font-weight: 600;
-}
-
-.tldr ul { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 0.6rem; }
-.tldr li { max-width: var(--measure); }
-
-/* ---------- sections ---------- */
-
-section { display: flex; flex-direction: column; gap: 1.1rem; }
-
-h2.sec {
- font-family: var(--mono);
- font-size: clamp(1.15rem, 3vw, 1.5rem);
- font-weight: 600;
- letter-spacing: -0.01em;
- margin: 0;
- padding-bottom: 0.55rem;
- border-bottom: 1px solid var(--line);
- display: flex;
- align-items: baseline;
- gap: 0.7rem;
-}
-
-h2.sec .num {
- font-size: 0.75rem;
- color: var(--accent);
- letter-spacing: 0.1em;
- flex: none;
-}
-
-h3 {
- font-family: var(--mono);
- font-size: 1rem;
- font-weight: 600;
- margin: 0.7rem 0 0;
- color: var(--ink);
-}
-
-p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
-
-section > ul { margin: 0; padding-left: 1.2rem; max-width: var(--measure); display: flex; flex-direction: column; gap: 0.55rem; }
-
-a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
-a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
-
-code {
- font-family: var(--mono);
- font-size: 0.875em;
- background: var(--surface-2);
- padding: 0.1em 0.34em;
- border-radius: 3px;
- word-break: break-word;
-}
-
-strong { font-weight: 650; }
-
-/* ---------- figure ---------- */
-
-figure {
- margin: 0.6rem 0;
- background: var(--surface);
- border: 1px solid var(--line);
- border-radius: 4px;
- padding: clamp(0.9rem, 2.5vw, 1.5rem);
- overflow-x: auto;
-}
-figure svg { display: block; min-width: 640px; width: 100%; height: auto; }
-figcaption {
- font-family: var(--mono);
- font-size: 0.74rem;
- color: var(--ink-faint);
- margin-top: 1rem;
- line-height: 1.5;
- max-width: 78ch;
-}
-
-.s-box { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }
-.s-box-a { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.2; }
-.s-box-o { fill: var(--old-soft); stroke: var(--old); stroke-width: 1.2; }
-.s-t { font-family: var(--mono); font-size: 12px; fill: var(--ink); }
-.s-t-s { font-family: var(--mono); font-size: 11px; fill: var(--ink-soft); }
-.s-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; }
-.s-lbl-a { fill: var(--accent); }
-.s-lbl-o { fill: var(--old); }
-.s-ln-o { stroke: var(--old); stroke-width: 1.4; fill: none; }
-.s-ln-a { stroke: var(--accent); stroke-width: 1.4; fill: none; }
-.s-head-o { fill: var(--old); }
-.s-head-a { fill: var(--accent); }
-.s-dash { stroke-dasharray: 4 3; }
-.s-rule { stroke: var(--line); stroke-width: 1; }
-
-/* ---------- code ---------- */
-
-pre {
- font-family: var(--mono);
- font-size: 0.8rem;
- line-height: 1.62;
- background: var(--surface);
- border: 1px solid var(--line);
- border-radius: 4px;
- padding: 1rem 1.1rem;
- overflow-x: auto;
- margin: 0;
- tab-size: 2;
-}
-pre code { background: none; padding: 0; font-size: inherit; }
-
-.diff .add { color: var(--accent); display: block; }
-.diff .del { color: var(--old); display: block; }
-
-.filelabel {
- font-family: var(--mono);
- font-size: 0.72rem;
- color: var(--ink-faint);
- letter-spacing: 0.04em;
- margin-bottom: 0.35rem;
- display: block;
-}
-
-.codeblock { display: flex; flex-direction: column; margin: 0.4rem 0; }
-
-/* ---------- two-up ---------- */
-
-.twoup {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
- gap: 1rem;
- margin: 0.4rem 0;
-}
-.pane {
- background: var(--surface);
- border: 1px solid var(--line);
- border-radius: 4px;
- padding: 1rem 1.1rem;
- display: flex;
- flex-direction: column;
- gap: 0.6rem;
- min-width: 0;
-}
-.pane.old { border-top: 2px solid var(--old); }
-.pane.new { border-top: 2px solid var(--accent); }
-.pane h4 {
- font-family: var(--mono);
- font-size: 0.72rem;
- letter-spacing: 0.14em;
- text-transform: uppercase;
- margin: 0;
- font-weight: 600;
-}
-.pane.old h4 { color: var(--old); }
-.pane.new h4 { color: var(--accent); }
-.pane pre { border: none; background: var(--surface-2); padding: 0.75rem 0.85rem; }
-.pane p { font-size: 0.92rem; color: var(--ink-soft); }
-
-/* ---------- table ---------- */
-
-.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
-table { border-collapse: collapse; width: 100%; font-size: 0.87rem; min-width: 520px; }
-th, td { text-align: left; padding: 0.62rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
-th {
- font-family: var(--mono);
- font-size: 0.7rem;
- letter-spacing: 0.1em;
- text-transform: uppercase;
- color: var(--ink-faint);
- font-weight: 600;
- background: var(--surface-2);
- white-space: nowrap;
-}
-tbody tr:last-child td { border-bottom: none; }
-td code { font-size: 0.82em; white-space: pre-line; display: inline-block; line-height: 1.5; }
-
-/* ---------- callout ---------- */
-
-.callout {
- border: 1px solid var(--line);
- border-left: 3px solid var(--old);
- background: var(--surface);
- border-radius: 4px;
- padding: 1rem 1.2rem;
- display: flex;
- flex-direction: column;
- gap: 0.6rem;
-}
-.callout.good { border-left-color: var(--accent); }
-.callout .tag {
- font-family: var(--mono);
- font-size: 0.7rem;
- letter-spacing: 0.14em;
- text-transform: uppercase;
- color: var(--old);
- font-weight: 600;
-}
-.callout.good .tag { color: var(--accent); }
-.callout p { max-width: 74ch; }
-
-/* ---------- details ---------- */
-
-details {
- border: 1px solid var(--line);
- border-radius: 4px;
- background: var(--surface);
- padding: 0.5rem 1.1rem;
-}
-details[open] { padding-bottom: 1.1rem; }
-summary {
- cursor: pointer;
- font-family: var(--mono);
- font-size: 0.82rem;
- font-weight: 600;
- padding: 0.55rem 0;
- color: var(--ink);
- list-style: none;
- display: flex;
- align-items: center;
- gap: 0.6rem;
-}
-summary::-webkit-details-marker { display: none; }
-summary::before {
- content: "+";
- color: var(--accent);
- font-weight: 600;
- flex: none;
- width: 1ch;
-}
-details[open] summary::before { content: "\2013"; }
-details > *:not(summary) { margin-top: 0.7rem; }
-details p, details ul { max-width: 74ch; }
-details ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
-
-footer {
- border-top: 1px solid var(--line);
- padding: 1.4rem 0 3rem;
- font-family: var(--mono);
- font-size: 0.74rem;
- color: var(--ink-faint);
- display: flex;
- flex-direction: column;
- gap: 0.4rem;
-}
-
-@media (prefers-reduced-motion: reduce) {
- * { animation: none !important; transition: none !important; }
-}
-</style>
-</head>
-<body>
-<div class="wrap">
-
-<header class="masthead">
- <p class="eyebrow">Engineering note &middot; branch fix/Keyless-dry-run</p>
- <h1><span class="brk">&lt;</span>Retiring prompting_target<span class="brk">&gt;</span></h1>
- <p class="standfirst">How a method&rsquo;s inputs get tagged into a prompt is now something the <em>author</em> declares, not something the runtime infers from whichever provider happens to serve the model. The per-provider dialect map is deleted. Every OpenAI-family prompt changes shape from back-tick fences to XML tags.</p>
- <div class="meta">
- <span><b>Status</b> all phases built &amp; green; final two staged, uncommitted</span>
- <span><b>Repo</b> Pipelex/pipelex</span>
- <span><b>Date</b> 2026-08-14</span>
- <span><b>Breaking</b> yes</span>
- </div>
-</header>
-
-<div class="tldr">
- <h2>TL;DR</h2>
- <ul>
- <li><strong>What.</strong> A <code>PipeLLM</code> can declare <code>templating_style</code> &mdash; a bare tag-style string (<code>"xml"</code>, <code>"ticks"</code>, <code>"square_brackets"</code>, <code>"no_tag"</code>) or a full <code>{ tag_style, text_format }</code> table. Anything that declares nothing takes <strong>one</strong> runtime default, shipped as <code>xml</code>. <code>prompting_target</code>, the per-target style map and <code>derive_templating_style</code> are gone; nothing consults a model, a deck or a credential to decide prompt shape.</li>
- <li><strong>Why.</strong> Sending back-ticks to OpenAI and XML to Anthropic maintained a distinction current frontier models no longer make &mdash; and the data was infra-shaped, declared once per backend rather than per model. The direction was ruled on <strong>2026-08-03</strong> and deferred as <strong>KF-16</strong>.</li>
- <li><strong>Why now.</strong> A keyless boot was silently rendering <em>different prompts</em> in dry runs. We started to fix that, realised the fix was to delete the mechanism we had already agreed was obsolete, and did that instead. The bug is dissolved, not repaired.</li>
- <li><strong>What breaks for you.</strong> Prompt text changes for every OpenAI-family model, and for any template using <code>| tag</code> on any model. <strong>Any repo shipping its own <code>.pipelex/inference/backends/*.toml</code> fails to boot</strong> until every <code>prompting_target</code> line is deleted &mdash; and <code>portkey.toml</code> carries it per-model as well as in <code>[defaults]</code>.</li>
- </ul>
-</div>
-
-<section>
- <h2 class="sec"><span class="num">01</span> The mechanism we deleted</h2>
- <p>Prompt shape used to be the tail end of a six-link inference chain: the pipe resolved an LLM setting, the setting named a model handle, the handle was looked up in the deck, the deck returned an <code>InferenceModelSpec</code>, the spec carried a <code>prompting_target</code> string, and that string indexed a map in <code>pipelex.toml</code> which finally produced a <code>TemplatingStyle</code>. Six links, each of which had to succeed, to answer a question the method author could simply have been asked.</p>
-
- <figure>
- <svg viewBox="0 0 880 470" role="img" aria-label="Diagram comparing the old six-step model-derived resolution chain against the new two-step authored resolution.">
- <defs>
- <marker id="ah-o" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
- <path d="M0,1 L7,4 L0,7 z" class="s-head-o"></path>
- </marker>
- <marker id="ah-a" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
- <path d="M0,1 L7,4 L0,7 z" class="s-head-a"></path>
- </marker>
- </defs>
-
- <text x="20" y="22" class="s-lbl s-lbl-o">BEFORE &mdash; DERIVED FROM INFRASTRUCTURE</text>
- <text x="480" y="22" class="s-lbl s-lbl-a">AFTER &mdash; DECLARED BY THE AUTHOR</text>
- <line x1="450" y1="10" x2="450" y2="460" class="s-rule"></line>
-
- <rect x="20" y="42" width="330" height="38" rx="5" class="s-box"></rect>
- <text x="36" y="66" class="s-t">PipeLLM runs</text>
-
- <path d="M60,80 L60,102" class="s-ln-o" marker-end="url(#ah-o)"></path>
- <rect x="20" y="104" width="330" height="38" rx="5" class="s-box"></rect>
- <text x="36" y="128" class="s-t">resolve LLMSetting &rarr; model handle</text>
-
- <path d="M60,142 L60,164" class="s-ln-o" marker-end="url(#ah-o)"></path>
- <rect x="20" y="166" width="330" height="38" rx="5" class="s-box"></rect>
- <text x="36" y="190" class="s-t">ModelDeck lookup &rarr; InferenceModelSpec</text>
-
- <path d="M60,204 L60,226" class="s-ln-o" marker-end="url(#ah-o)"></path>
- <rect x="20" y="228" width="330" height="38" rx="5" class="s-box-o"></rect>
- <text x="36" y="252" class="s-t">spec.prompting_target = "openai"</text>
-
- <path d="M60,266 L60,288" class="s-ln-o" marker-end="url(#ah-o)"></path>
- <rect x="20" y="290" width="330" height="38" rx="5" class="s-box-o"></rect>
- <text x="36" y="314" class="s-t">prompting_styles["openai"]</text>
-
- <path d="M60,328 L60,350" class="s-ln-o" marker-end="url(#ah-o)"></path>
- <rect x="20" y="352" width="330" height="38" rx="5" class="s-box"></rect>
- <text x="36" y="376" class="s-t">TagStyle.TICKS</text>
-
- <path d="M185,390 L185,412" class="s-ln-o" marker-end="url(#ah-o)"></path>
- <text x="20" y="432" class="s-t-s">deck miss at any link &rarr; style is None</text>
- <text x="20" y="450" class="s-t-s">&rarr; filter falls back to TICKS, silently</text>
-
- <rect x="480" y="42" width="330" height="38" rx="5" class="s-box"></rect>
- <text x="496" y="66" class="s-t">PipeLLM runs</text>
-
- <path d="M520,80 L520,164" class="s-ln-a" marker-end="url(#ah-a)"></path>
- <rect x="480" y="166" width="330" height="38" rx="5" class="s-box-a"></rect>
- <text x="496" y="190" class="s-t">resolve_templating_style(authored=&hellip;)</text>
-
- <path d="M520,204 L520,288" class="s-ln-a" marker-end="url(#ah-a)"></path>
- <text x="536" y="240" class="s-t-s">pipe declared one? use it.</text>
- <text x="536" y="258" class="s-t-s">else: the config default.</text>
-
- <rect x="480" y="290" width="330" height="38" rx="5" class="s-box"></rect>
- <text x="496" y="314" class="s-t">TagStyle.XML</text>
-
- <path d="M645,328 L645,350" class="s-ln-a s-dash" marker-end="url(#ah-a)"></path>
- <text x="480" y="370" class="s-t-s">no deck, no model spec, no credential</text>
- <text x="480" y="388" class="s-t-s">is read anywhere on this path</text>
-
- <text x="480" y="432" class="s-t-s">a style-less render is now a loud</text>
- <text x="480" y="450" class="s-t-s">Jinja2ContextError &mdash; never a fallback</text>
- </svg>
- <figcaption>The old chain had two failure modes and no way to tell them apart: &ldquo;this model is served by an external plugin, so we legitimately know nothing about it&rdquo; and &ldquo;we loaded no models at all.&rdquo; Both produced <code>None</code>, and <code>None</code> was silently absorbed by a triple-backtick fallback in the Jinja2 filter.</figcaption>
- </figure>
-</section>
-
-<section>
- <h2 class="sec"><span class="num">02</span> Why now: the dry-run divergence</h2>
- <p>The branch is called <code>fix/Keyless-dry-run</code> because it was cut to fix a different bug. A dry run exists to rehearse a real run without spending money, which is why it is documented as needing no API keys &mdash; naturally read as <em>same program, mocked leaves</em>. It was not true: <strong>a dry run booted without credentials rendered different prompts from one booted with them, and nothing in either run said so.</strong></p>
-
- <div class="twoup">
- <div class="pane new">
- <h4>Boot A &mdash; with credentials</h4>
-<pre><code>deck: every model loaded
-style &rarr; xml/plain
-
-&lt;result&gt;
-&hellip;
-&lt;/result&gt;</code></pre>
- </div>
- <div class="pane old">
- <h4>Boot B &mdash; keyless</h4>
-<pre><code>deck: zero models
-style &rarr; None
-
-result: ```
-&hellip;
-```</code></pre>
- </div>
- </div>
- <p>Same method, same inputs. Every backend declares its key as a <code>${VAR}</code>, so on a keyless machine the lenient load skipped every backend and the deck came out empty &mdash; and the style derivation took its documented <code>None</code> path, written for a case (a model served by an external plugin) that a keyless boot satisfies for <em>every</em> model at once. Both runs complete, both report identical usage records, neither logs the difference.</p>
- <p><strong>Why it stayed invisible:</strong> any gate whose two sides boot the same way cannot see this variable at all &mdash; and reads as evidence that it does not matter. Two keyless sides agree perfectly. The divergence only surfaces against a side that <em>cannot</em> boot keyless.</p>
-
- <div class="callout good">
- <span class="tag">The turn &mdash; and the relationship, stated precisely</span>
- <p>A four-part fix plan was written: build a seam letting a credential-free process load model <em>metadata</em> without model <em>credentials</em>. Then the obvious thing landed &mdash; <strong>the headline symptom only exists because prompt shape is derived from infrastructure at all.</strong> Delete the derivation, and keyless and keyed boots render byte-identical prompts <em>by construction</em>.</p>
- <p>The bug <strong>surfaced and scheduled</strong> this work; it did not motivate it. Every argument for the change holds with no bug in the picture. Had we fixed the bug as planned, we would have built a metadata seam whose main beneficiary was a derivation we were about to delete.</p>
- </div>
-
- <p>The <em>diagnosis</em> in that bug report is untouched &mdash; a keyless boot still yields an empty deck &mdash; but the two silent symptoms (back-tick step-2 prompts, an ignored <code>llm_setting.prompting_target</code>) are dissolved rather than fixed. What survives is loud or minor: <code>max_prompt_images</code> and image param-support checks need a populated deck; handle-pinned bundles are <em>rejected</em> keylessly; the two CLIs disagree on whether <code>--dry-run</code> needs credentials. Whether the expensive half of that plan still earns its blast radius is now an open question rather than a settled one.</p>
-</section>
-
-<section>
- <h2 class="sec"><span class="num">03</span> What it looks like now</h2>
-
- <div class="twoup">
- <div class="pane old">
- <h4>Before &mdash; infra decided</h4>
- <span class="filelabel">pipelex/pipelex.toml</span>
-<pre><code>[pipelex.prompting_config]
-default_prompting_style = { tag_style = "xml" }
-
-[pipelex.prompting_config.prompting_styles]
-openai = { tag_style = "ticks" }
-anthropic = { tag_style = "xml" }
-mistral = { tag_style = "square_brackets" }
-gemini = { tag_style = "xml" }</code></pre>
- <p>Plus a <code>prompting_target</code> line in every backend TOML, and per-model overrides in <code>portkey.toml</code>.</p>
- </div>
- <div class="pane new">
- <h4>After &mdash; the author decides</h4>
- <span class="filelabel">pipelex/pipelex.toml</span>
-<pre><code>[pipelex.templating_config]
-default_templating_style = { tag_style = "xml" }</code></pre>
- <p>One default for anything that declares nothing. No per-model, per-backend or per-preset override exists &mdash; deliberately.</p>
- </div>
- </div>
-
-<div class="codeblock">
-<span class="filelabel">any .mthds file &mdash; bare string is the tag_style shorthand, inline table is the full struct</span>
-<pre><code>[pipe.summarize_article]
-type = "PipeLLM"
-inputs = { article = "Text" }
-output = "Text"
-templating_style = "square_brackets"
-
-[pipe.render_note]
-type = "PipeLLM"
-templating_style = { tag_style = "xml", text_format = "markdown" }</code></pre>
-</div>
-
- <p>Each style below shows what <code>@article</code> produces for an input named <code>article</code>. The tag name comes from the variable; a value with no name of its own falls back to <code>data</code>. The two sigils are governed by different halves of the style: <code>@variable</code> on its own line wraps the whole input per <code>tag_style</code>; inline <code>$variable</code> inserts it formatted per <code>text_format</code>, unwrapped.</p>
- <div class="tablewrap">
- <table>
- <thead><tr><th>tag_style</th><th>Renders as</th></tr></thead>
- <tbody>
- <tr><td><code>xml</code> <em>(default)</em></td><td><code>&lt;article&gt;&#10;&hellip;&#10;&lt;/article&gt;</code></td></tr>
- <tr><td><code>ticks</code></td><td><code>article: ```&#10;&hellip;&#10;```</code></td></tr>
- <tr><td><code>square_brackets</code></td><td><code>[article]&#10;&hellip;&#10;[/article]</code></td></tr>
- <tr><td><code>no_tag</code></td><td>the value, bare</td></tr>
- </tbody>
- </table>
- </div>
-
- <h3>The two edits that carry the change</h3>
-<div class="codeblock">
-<span class="filelabel">pipelex/kernel/templating_style_ops.py &mdash; new, and this is the whole thing</span>
-<pre class="diff"><code><span class="add">+def resolve_templating_style(*, authored: TemplatingStyle | None) -> TemplatingStyle:</span>
-<span class="add">+ """The style a prompt renders under: the authored one, else the configured default."""</span>
-<span class="add">+ return authored or get_config().pipelex.templating_config.default_templating_style</span></code></pre>
-</div>
- <p>Total, deck-free, credential-free. Its totality is the point &mdash; because it can never return <code>None</code>, nothing downstream has to carry an optional style and invent a fallback for it.</p>
-
-<div class="codeblock">
-<span class="filelabel">pipelex/tools/jinja2/jinja2_filters.py &mdash; the fallbacks die</span>
-<pre class="diff"><code><span class="del">- tag_style_str = context.get(Jinja2ContextKey.TAG_STYLE)</span>
-<span class="del">- tag_style = TagStyle(tag_style_str) if tag_style_str else TagStyle.TICKS</span>
-<span class="add">+ tag_style = TagStyle(require_templating_style_value(</span>
-<span class="add">+ context=context, jinja2_context_key=Jinja2ContextKey.TAG_STYLE))</span></code></pre>
-</div>
- <p>This is what makes the class of bug unreachable rather than merely fixed. A missing key now raises <code>Jinja2ContextError</code>, with no default, deliberately: every prompt-rendering entry point resolves a style before rendering, so a missing one means the render was set up wrong. The old <code>TICKS</code> default is exactly how a triple-backtick style used to reach prompts nobody had chosen it for.</p>
-</section>
-
-<section>
- <h2 class="sec"><span class="num">04</span> Three traps worth knowing about</h2>
-
- <div class="callout">
- <span class="tag">Trap 1 &mdash; an unknown key becomes an HTTP header</span>
- <p><code>backend_library.py</code> reclassifies any per-model TOML key that is not in <code>InferenceModelSpecBlueprint.model_fields</code> as an <strong>outbound HTTP header</strong>. Deleting the model field while a per-model <code>prompting_target = "gemini"</code> line survived would have shipped that line to the provider as a header, silently. The field deletion and the TOML deletions had to land in one commit, verified by grep across the source tree and the synced kit copies.</p>
- <p><strong>This is the trap in the downstream sweep too</strong>, and it is why deleting only the <code>[defaults]</code> line is worse than doing nothing: the boot starts working again while the per-model occurrences quietly become headers.</p>
- <p><strong>Now scheduled to be closed &mdash; <code>wip/rogue-extra-headers-guard-plan.md</code>, gated on this branch merging.</strong> The bag stays open (the gateway genuinely needs to be served new <code>x-portkey-*</code> headers without a client release) but gets a <em>shape</em> rule: an unknown key is accepted as a header only if it is header-shaped, i.e. contains a hyphen. Blueprint field names never do, so every removed field and every snake_case typo &mdash; <code>max_tokns</code> &mdash; becomes a loud error from a local TOML and a silent prune from the served payload, instead of a string posted to the provider. <code>endpoint_path</code>, which is routing metadata rather than a header and only escapes the wire by luck today, is promoted to a real field.</p>
- </div>
-
- <div class="callout">
- <span class="tag">Trap 2 &mdash; the remote config outlives the field, and the skew is routine</span>
- <p>Deleting <code>prompting_target</code> from the blueprint made the entire test suite fail at boot, one cause. The Pipelex Gateway does not read its model specs from this repo: they are fetched from the API and cached, and that served config still declared the key. The blueprint is <code>extra="forbid"</code>, so a config written by a different release than the client reading it stopped the boot dead. Fixed with a general tolerance rather than a shim for one field &mdash; <code>drop_unknown_gateway_defaults</code> prunes unknown keys from the <em>remote</em> config&rsquo;s <code>defaults</code>. Local files stay strict.</p>
- <p><strong>That tolerance is load-bearing every day, not just on deploy days.</strong> The cache is <em>one file per machine</em>, <code>~/.pipelex/cache/remote_config.json</code>, shared by every worktree &mdash; and it records <code>schema_version</code>, <code>cached_at</code> and the body, but <strong>no source URL</strong>. So a checkout pinning <code>_12</code> cannot tell it is reading an <code>_11</code> body. On this machine on 2026-08-14 it was doing exactly that: the cache held <code>_11</code> byte-for-byte, because the other seven checkouts all pin <code>_11</code> and one had booted more recently. Make remote unknowns fatal and that ordinary local condition turns the suite red.</p>
- </div>
-
- <div class="callout">
- <span class="tag">Trap 3 &mdash; deleting the key from the served config is a live change</span>
- <p>The served gateway config is owned by our back-office repo (private). Removing the key there would have flipped every gateway prompt <strong>already deployed in the field</strong> from XML to back-tick fences &mdash; because an older client never reaches its configured default (<code>get_prompting_style(None)</code> returns <code>None</code>, not the default), so no style reaches the filter and the old <code>TICKS</code> fallback applies.</p>
- <p>That never happened because the config is <strong>versioned in its URL</strong> and this branch bumps it: <code>pipelex_remote_config_12.json</code>, was <code>_11</code>. <code>_11</code> is frozen and still carries the key, so every earlier release keeps rendering XML. <strong>The URL bump is the compatibility boundary for any breaking change to that config</strong> &mdash; worth knowing before the next one.</p>
- </div>
-</section>
-
-<section>
- <h2 class="sec"><span class="num">05</span> What you need to do</h2>
-
- <h3>If you author .mthds methods</h3>
- <p>Nothing, unless you want the control. Prompts for OpenAI-family models change shape from back-tick fences to XML tags &mdash; that <em>is</em> the change. If a specific pipe wants a different shape, declare <code>templating_style</code> on it; if your whole project wants a different house style, set <code>default_templating_style</code> in your <code>.pipelex/pipelex.toml</code>.</p>
-
- <h3>If your repo ships its own backend TOMLs &mdash; not optional</h3>
- <p>Local backend files are read strictly. On the version bump, every repo shipping <code>.pipelex/inference/backends/*.toml</code> <strong>dies at boot</strong> with <code>Extra forbidden fields: 'prompting_target'</code> &mdash; confirmed in <code>pipelex-api/</code>, <code>cocode/</code>, <code>pipelex-cookbook/</code>, <code>mthds-ui/</code>, plus our hosted worker, our demo repos, and fixtures in our JS runtime (all private). Delete <strong>every</strong> occurrence, <code>[defaults]</code> and per-model alike, and grep to prove it. Re-read trap 1 first: a partial fix is worse than none.</p>
-
- <h3>If you use a template with <code>| tag</code> or <code>| format</code></h3>
- <p>Those filters no longer have a default of their own. Through any normal prompt path you are fine &mdash; a style is always resolved for you. Drive the kernel API directly and omit the style, and you now get a loud <code>Jinja2ContextError</code> instead of a silently-chosen shape.</p>
-
- <details>
- <summary>Other things this change also does, that you might not expect</summary>
- <ul>
- <li><strong>Compose, image-gen, search and structuring prompts all changed too.</strong> They previously rendered style-less, which the filters silently absorbed as back-ticks and plain text. If your <code>PipeCompose</code> template or a construct-mode template field uses <code>| tag</code>, its output changes shape &mdash; on any model family, not just OpenAI&rsquo;s.</li>
- <li><strong><code>PipeImgGen</code> and <code>PipeSearch</code> have no authored knob</strong> (deliberately, for now). They inherit the config default.</li>
- <li><strong>Lenient loading got narrower.</strong> <code>InferenceBackendLibrary.load(lenient=...)</code> exists so a keyless boot can skip backends with missing credentials &mdash; but it caught the error <em>base</em> classes, so a malformed local TOML was skipped just as quietly. Now only <code>InferenceBackendCredentialsError</code> is tolerated; malformed configuration is fatal in both modes.</li>
- <li><strong>The <code>format</code> filter had a latent bug, fixed in passing:</strong> its argument was annotated <code>TextFormat | None</code>, but Jinja2 hands a template-supplied <code>{{ x | format("markdown") }}</code> over as a raw <code>str</code>.</li>
- <li><strong>A dead module went with it:</strong> <code>llm_prompt_template.py</code>, <code>llm_prompt_factory_abstract.py</code>, <code>llm_prompt_template_inputs.py</code> and <code>LLMPromptTemplateInputsError</code> &mdash; a hardcoded XML+Markdown style that predated the configurable one and had no production consumer.</li>
- </ul>
- </details>
-</section>
-
-<footer>
- <span>Written for co-developers, 2026-08-14. Companion to the design note, the implementation plan and the rogue-headers guard plan in this repo&rsquo;s <code>wip/</code>.</span>
- <span>Gates at time of writing: make agent-check green &middot; full make agent-test green &middot; mkdocs build --strict green.</span>
-</footer>
-
-</div>
-</body>
-</html>
diff --git a/wip/prompting-style/templating-style-implementation-plan.md b/wip/prompting-style/templating-style-implementation-plan.md
deleted file mode 100644
index ec3463900..000000000
--- a/wip/prompting-style/templating-style-implementation-plan.md
+++ /dev/null
@@ -1,245 +0,0 @@
-# Templating style as an authoring decision — implementation plan
-
-**2026-08-14, branch `fix/Keyless-dry-run` (worktree `_keyless`), off v0.44.0 — ✅ all phases built and committed; under review as [PR #1104](https://github.com/Pipelex/pipelex/pull/1104) against `dev`.** Implements [`prompt-style-as-an-authoring-decision.md`](prompt-style-as-an-authoring-decision.md) under the settled §7 rulings: **`templating_style` everywhere**, global default **`xml` + `plain`**, **no per-model/preset override**, authored surface = **full `TemplatingStyle`** (bare string = `tag_style` shorthand, inline table = full struct).
-
-Progress is tracked with the checkboxes below. **Checkpoints marked ✋ are hard stops: the executing agent must not proceed past them without Louis' explicit go.** At every checkpoint, update this doc first: tick boxes, fill the checkpoint log at the bottom (status, decisions taken, open questions, state of the code), so the work can hand off into a fresh session with nothing lost.
-
-## Decisions derived from the rulings (veto here, cheaply)
-
-These follow from "one name everywhere" but were not explicitly ruled; they are what this plan builds unless overridden:
-
-- **D1 — config vocabulary follows the ruling.** `PromptingConfig` → `TemplatingConfig`, mounted as `pipelex.templating_config`; TOML section `[pipelex.templating_config]` with the single field `default_templating_style = { tag_style = "xml" }` (`text_format` omitted → `plain` via the model default). The `prompting_styles` map is deleted, not renamed.
-- **D2 — the resolver lives in a small new kernel module**, `pipelex/kernel/templating_style_ops.py`: `resolve_templating_style(*, authored: TemplatingStyle | None) -> TemplatingStyle` returning `authored or get_config().pipelex.templating_config.default_templating_style`. It serves the LLM, img-gen, search and compose paths alike; putting it in `llm_ops.py` would misname it for three of the four.
-- **D3 — the authored union is typed, not stringly.** `templating_style: TagStyle | TemplatingStyle | None = None` on blueprint and spec — pydantic's lax mode coerces the bare TOML string into the `TagStyle` StrEnum, and the MTHDS JSON Schema gets a proper enum for the string arm instead of a free-form `str`. The factory widens `TagStyle` → `TemplatingStyle(tag_style=...)` so the runtime `PipeLLM` holds `TemplatingStyle | None` and the union never travels past parsing. Same idiom family as `PipeComposeBlueprint.template: str | TemplateBlueprint` (bare smart union, narrowing before use — no validator needed).
-- **D4 — the kernel façade gains the same lever.** `PipelexKernel.llm_text` / `llm_object` accept an optional `templating_style` argument, resolved through the same total resolver. This is what finally dissolves parity gap 2.2 / KF-16: the façade and the interpreter agree because neither derives anything.
-- **D5 — filters go strict, entry points resolve.** `render_template` keeps an optional `templating_style` (the EXPRESSION and MERMAID categories have no tag/format filters and legitimately render style-less), but the `tag` / `format` / `with_images` filters lose their silent fallbacks (`TICKS`, `PLAIN`): a missing context key raises `Jinja2ContextError`, because after this change every prompt-rendering entry point supplies a resolved style — a missing one is a bug, per §4.3.
-- **D6 — no new authored field on PipeImgGen/PipeSearch in this change.** They inherit the config default through the resolver (§5's requirement); giving them their own authored knob is a deliberate follow-up if ever wanted, not scope creep now.
-
-## Phase map
-
-- **Phase 0** — prerequisite: re-home reasoning budgets off `prompting_target` (§6). Standalone, shippable, zero style-behaviour change. → ✋ **Checkpoint 1**
-- **Phase 1** — the authored surface + total resolver on the LLM path (TDD). The behaviour flip (back-ticks → XML) lands here.
-- **Phase 2** — one resolver, every prompt: img-gen, search, compose; tighten `TemplatingStyle | None` → `TemplatingStyle` along the rendering path; delete the silent filter fallbacks.
-- **Phase 3** — deletions: `prompting_target` from every surface, the target→style map, the dead template module, grants. → ✋ **Checkpoint 2**
-- **Phase 4** — migration surfaces: MTHDS schema, docs, changelog, drift acks.
-- **Phase 5** — bookkeeping: KF-16 closure, keyless plan re-scope, design-doc status. → ✋ **Checkpoint 3 (final)**
-
-## Traps to keep in view (learned from the inventories — read before each phase)
-
-- **Silent-header hazard.** `backend_library.py` (the `extra_headers` loop in `InferenceBackendLibrary.load`, around lines 191-193) reclassifies any per-model TOML key not in `InferenceModelSpecBlueprint.model_fields` as an outbound **HTTP extra header**. Deleting the blueprint field while portkey's per-model `prompting_target = "gemini"` lines survive would ship those as headers, silently. The field deletion and the TOML deletions must be one commit, verified by grep.
-- **Config sync is one-directional.** `.pipelex/inference/backends/` is the source of truth; edit there, then `make ukc` to sync `pipelex/kit/configs/inference/backends/`, gated by `make ccs`.
-- **Config model and TOML move in lockstep** or boot fails — `make tb` after every config-shape edit.
-- **Drift reads the git index.** Stage changes before `make drift-check` / `agent-check`, or the gate sees nothing. The `config-docs` contract (triggers: `configuration/**`, `config_cogt.py`, `pipelex.toml`) fires in Phases 0 and 1; `pipelex-kernel-docs` (triggers: `kernel/**`) fires from Phase 1 on. Ack only after actually reviewing the named docs.
-- **The keyword-only auto-fixer is destructive to intent.** `make agent-check` runs `fix-keyword-only`; deleting grants is deliberate here (the granted defs are deleted or made fully keyword-only), but never let it silently keyword-only something meant to keep a granted subject. `subject_grants.toml` must stay sorted.
-- **Deleted/renamed tests leave `.test_durations` stale** — only the full `make agent-test` at checkpoints catches the fallout; don't skip it.
-
----
-
-## Phase 0 — Re-home reasoning budgets (prerequisite, §6)
-
-Goal: no code reads `inference_model.prompting_target` for thinking budgets; each worker supplies its own family key. Pure re-homing — the style path is untouched, `prompting_target` still exists everywhere else. Independently shippable.
-
-- [x] **Tests first (red):** in `tests/unit/pipelex/providers/google/test_google_reasoning.py`, rewrite `_make_worker` so the mock model spec has **no** `prompting_target` and the budget tests still pass once the worker owns its key; add the missing twin coverage for the Anthropic worker's manual-thinking budget resolution (today its budget branch has no test at all). — Done: `del mock_model.prompting_target` proves the spec is never read; new `tests/unit/pipelex/providers/anthropic/test_anthropic_reasoning.py` covers the manual budget branch, NONE gating, cap, explicit passthrough, and thinking_mode=none raise; both budget tests assert the lookup is keyed `family="anthropic"`/`"gemini"`. Confirmed red before implementation (14 failed), green after.
-- [x] Give each worker its own key: a `ClassVar` on the worker class — `reasoning_budget_family = "anthropic"` on `AnthropicLLMWorker`, `"gemini"` on `GoogleLLMWorker` — read where the workers previously read `self.inference_model.prompting_target`.
-- [x] Delete both `prompting_target is None → LLMCapabilityError` raise sites (the "has no prompting_target configured" branches) — unreachable once the key is worker-owned. The `LLMCapabilityError` class survives (other users).
-- [x] Rename the concept in `pipelex/cogt/config_cogt.py`: `get_reasoning_budget(self, prompting_target, *, effort)` becomes fully keyword-only `get_reasoning_budget(*, family: str, effort: ReasoningEffort)`; update the two error message strings; delete the now-dead subject grant for it in `subject_grants.toml` (preserving sort order). `effort_to_budget_maps` keeps its name and its TOML keys (`anthropic`, `gemini`) — only the lookup parameter stops borrowing the word "prompting".
-- [x] Update `tests/unit/pipelex/cogt/llm/test_llm_config_reasoning.py` for the new signature.
-- [x] Docs in the same change: `docs/under-the-hood/reasoning-controls.md` — both "keyed by `prompting_target`" passages now describe the worker-owned key.
-- [x] Gates: targeted pytest green (64 passed), `make agent-check` green after honest acks of `config-docs` (no configuration page mentions the budget lookup; the one `prompting_target` hit is the style path, Phase 3/4 scope) and `pipelex-kernel-docs` (trigger was the baseline commit's docstring pointer re-aim; kernel page references no wip paths and still describes today's code). Full `make agent-test` green — see Checkpoint 1 log.
-
-### ✋ CHECKPOINT 1 — HARD STOP
-
-Do not start Phase 1 without Louis' explicit go. Present: the Phase 0 diff summary, test results, and confirmation that `prompting_target` now has exactly one consumer left (the style path). Louis decides whether Phase 0 is committed (and possibly PR'd separately) before the breaking work begins. Update the checkpoint log below. This is also a natural fresh-session handoff point.
-
----
-
-## Phase 1 — Authored surface + total resolver on the LLM path
-
-Goal: a `PipeLLM` step can declare `templating_style`; when it says nothing, the config default (`xml`) applies; nothing consults the deck. **This is where every OpenAI-family prompt flips from back-ticks to XML** — the point of the change. TDD throughout: each box's test lands red before its implementation.
-
-Config (D1):
-
-- [x] `pipelex/system/configuration/configs.py`: `PromptingConfig` → `TemplatingConfig` with the single field `default_templating_style: TemplatingStyle`; delete `prompting_styles` and `get_prompting_style` (and its subject grant, keeping `subject_grants.toml` sorted); remount as `templating_config`.
-- [x] `pipelex/pipelex.toml`: replace the `[pipelex.prompting_config]` block (and its `prompting_styles` sub-table) with `[pipelex.templating_config]` / `default_templating_style = { tag_style = "xml" }`. Neither `.pipelex/pipelex.toml` nor the kit `pipelex.toml` carries the section — no other TOML moves. `make tb` proves the lockstep.
-
-Resolver (D2):
-
-- [x] New `pipelex/kernel/templating_style_ops.py` with `resolve_templating_style(*, authored: TemplatingStyle | None) -> TemplatingStyle` — total, deck-free, credential-free.
-- [x] Unit tests: totality (returns config default on `None`), authored-wins precedence, and the invariant that it never returns `None`. — `tests/unit/pipelex/kernel/test_templating_style_ops.py`, which also pins the shipped house default (xml + plain).
-
-Authored surface (D3):
-
-- [x] `PipeLLMBlueprint.templating_style: TagStyle | TemplatingStyle | None = None` (`pipe_llm_blueprint.py`).
-- [x] `PipeLLMSpec.templating_style` — same union, passed through in `to_blueprint()` (`builder/pipe/pipe_llm_spec.py`), per the spec-vs-blueprint layering.
-- [x] `PipeLLMFactory.make` widens `TagStyle` → `TemplatingStyle(tag_style=...)`; `PipeLLM` gains `templating_style: TemplatingStyle | None = None` (`pipe_llm_factory.py`, `pipe_llm.py`).
-- [x] Parsing tests: bare string (`templating_style = "no_tag"`), inline table (`{ tag_style = "xml", text_format = "markdown" }`), absent → `None` at blueprint level. — `tests/unit/pipelex/pipe_operators/pipe_llm/test_pipe_llm_templating_style.py`, covering both parsing shapes, the spec passthrough, and all three factory-widening outcomes.
-- [x] An e2e/integration bundle exercising the authored field — `tests/integration/pipelex/pipes/pipelines/templating_style.mthds` + `test_templating_style_bundle.py`: all three arms parse, load, and actually govern the rendered text. (a small `.mthds` under the existing test-package layout) — today zero `.mthds` files in the repo touch styling, so this is the first.
-
-Wiring:
-
-- [x] `pipe_llm.py` — replace `templating_style = derive_templating_style(llm_setting=llm_setting_main)` with `resolve_templating_style(authored=self.templating_style)`; drop the "both paths render under the text setting's style" comment (there is no derived style to agree about any more — both arms simply pass the pipe's resolved style).
-- [x] `pipelex_kernel.py` — `llm_text` / `llm_object` gain `templating_style: TemplatingStyle | None = None`, resolved through the resolver (D4); **delete the `llm_object` docstring paragraph** recording the parity-gap 2.2 adjudication ("One `model`, and it carries…") — the question it adjudicates dissolves.
-- [x] Update `tests/unit/pipelex/pipe_operators/pipe_llm/test_prompt_rendering_purity.py`: the "blueprint style wins over the **run-derived** one" parametrization becomes authored-vs-config-default; the purity assertion itself (blueprint not mutated) survives as-is.
-- [x] Flip the two default-shape assertions in `tests/integration/pipelex/pipes/llm_prompt_inputs/test_prompt_image_extraction.py` (`assert "```" in llm_prompt.user_text` → XML shape) and fix its docstring prose.
-- [x] MTHDS schema test `tests/unit/pipelex/language/test_mthds_schema.py`: assert `PipeLLMBlueprint` now carries `templating_style` (optional — the minimal-table cases stay valid).
-- [x] Gates: `make tb`, targeted tests, stage + `make agent-check` (both drift contracts fire — review `docs/configuration/**` and `docs/under-the-hood/pipelex-kernel.md`; the kernel page's surface table still names `derive_templating_style`, which is *correct to leave red until Phase 4* — if the ack would be dishonest, defer the ack to Phase 4 and run gates knowing drift is the one expected red, or update the one table row now and ack honestly. Prefer the latter: keep gates green.)
-
-Note: `LLMSetting.prompting_target` and friends are now **uncalled but still present** — deletion is batched in Phase 3 so this phase stays reviewable as "add + rewire".
-
-**Deviation taken in Phase 1:** `derive_templating_style` could *not* wait for Phase 3. Its only data source was `PromptingConfig.get_prompting_style`, which D1 deletes here, so leaving it in place would have left the tree not type-checking. It was deleted in this phase together with the config it read; everything else in the Phase 3 deletion batch is untouched.
-
-## Phase 2 — One resolver, every prompt; tighten optionality; strict filters
-
-Goal: img-gen, search and compose prompts stop falling into the silent `TICKS` fallback and inherit the same config default; `TemplatingStyle` stops being optional along the prompt-rendering path (§4.3); the fallbacks die.
-
-- [x] **Img-gen:** `kernel/img_gen_prompt.py` — `assemble_img_gen_prompt` and `_render_text` gain a required `templating_style: TemplatingStyle`; `pipe_img_gen.py` resolves via `resolve_templating_style(authored=None)` (no authored surface, D6) and passes it down. — Done; `_render_text` keeps the per-template override arm (`template_blueprint.templating_style or templating_style`), mirroring `_unravel_text` exactly.
-- [x] **Search:** the query template renders under the resolved default. — `run_search` gains a required `templating_style`; `pipe_search.py` resolves `authored=None`. Its docstring no longer justifies the source-plus-category signature with "no style".
-- [x] **Compose:** `run_compose_template`'s `templating_style` is required; `pipe_compose.py` resolves `authored=self.templating_style`. Behaviour note for the changelog: a bare-string compose template using `| tag` flips from the TICKS fallback to the config default. **Beyond the plan:** construct mode needed the same treatment — `StructuredContentComposer` renders each TEMPLATE field with `render_template(category=BASIC)`, which is filter-bearing and was style-less, so a construct field using `| tag` would have hard-failed once the fallbacks died. It now takes a `templating_style` and threads it into nested composers.
-- [x] **Tighten the LLM chain:** `run_llm_text`, `run_llm_object` (`kernel/llm_ops.py`), `assemble_llm_prompt`, `_unravel_text` (`kernel/llm_prompt_content.py`), `make_llm_prompt` (`llm_prompt_blueprint.py`) — `templating_style: TemplatingStyle`, required, no default. The per-template merge `jinja2_blueprint.templating_style or templating_style` stays (a template-level declaration still wins) but is now total by construction.
-- [x] `render_template` / `render_jinja2_*` keep an optional style (filter-less categories, D5); `_prepare_templating_context` unchanged in shape. Also left optional, deliberately: `ContentGeneratorProtocol.make_templated_text` and its `TemplatingAssignment` — a generic templating seam with no production caller, not a prompt-rendering entry point, and a caller may legitimately render an EXPRESSION or MERMAID template style-less. A caller that does use `| tag` there now gets a loud error instead of silent TICKS, which is D5's intent.
-- [x] **Delete the fallbacks (D5):** `apply_tag_style`'s `TICKS` arm (`jinja2_filters.py`) → missing `TAG_STYLE` raises `Jinja2ContextError`; the `format` filter's `PLAIN` default and `jinja2_with_images_filter.py`'s twin likewise go strict. Also delete the dead `TemplatingStyle.make_default_prompting_style` (zero callers).
-- [x] Tests: `test_default_style_is_ticks_when_not_set` is now `test_missing_tag_style_raises`; `test_jinja2_tag_filter.py`'s `_make_context` takes a keyword-only `tag_style` with no default, so every case states the style it renders under. New `tests/unit/pipelex/tools/test_jinja2_style_context_strictness.py` covers all three filters raising on a style-less context, plus the case that must NOT raise (an explicit `| format("markdown")` argument never reads the context key). The img-gen twin is `test_img_gen_prompt_renders_under_config_default` in the Phase-1 bundle test, against a new `default_style_picture` PipeImgGen in `templating_style.mthds`. `dry_mock.py` needed nothing: it stringifies `TemplatingAssignment.templating_style`, which stays optional on the seam left optional above. The kernel boot-contract subprocess now resolves the style itself, which incidentally proves the resolver runs on a library-less boot.
-- [x] Gates: targeted tests green across tools, kernel, pipe_operators, integration pipes and cogt; `make tb`; stage + `make agent-check`.
-
-**Two things Phase 2 touched that the plan had not anticipated**, both consequences of the filters going strict — a style-less render of a filter-bearing category stops being merely odd and becomes a hard failure, so every such render site had to be found, not just the ones on the prompt paths:
-
-- **Construct-mode template fields** (`StructuredContentComposer`), described in the compose box above. This one was user-facing: `.mthds` construct fields are authored templates.
-- **The two generic prompt templates** — `derive_structure_prompt` (`kernel/llm_ops.py`) and the structuring prompt rendered in `pipe_structure.py`. Both render `TemplateCategory.LLM_PROMPT` with no style. The shipped templates use no filter, so nothing breaks today, but they are config-editable, and a user who added `| tag` would have hit the new error with no way to supply a style. `derive_structure_prompt` now takes the style its caller already holds (it is appended to that same prompt, so any other answer would be incoherent); `pipe_structure.py` resolves `authored=None` like the other operators with no authored surface.
-
-**One pre-existing wrinkle fixed in passing**, in the `format` filter being edited anyway: its `text_format` argument was annotated `TextFormat | None`, but Jinja2 hands a template-supplied `{{ x | format("markdown") }}` over as a raw `str`. The annotation made two branches unreachable to the type checker while the reachable path raised a bare `ValueError` on an unknown format name. Now annotated `TextFormat | str | None`, normalising both through `TextFormat(...)` and reporting an unknown name as a `Jinja2ContextError` — which the renderer already wraps into a template render error.
-
-## Phase 3 — Deletions (pure by now)
-
-Everything below is uncalled after Phases 0-2; this phase is grep-verified removal. **One commit for the model-field + TOML pair** (silent-header hazard).
-
-- [x] `LLMSetting.prompting_target` (field, import, the `desc()` fragment) — `cogt/llm/llm_setting.py`. This also erases the independent keyless-plan symptom "an explicitly set `llm_setting.prompting_target` is ignored" — dissolved, not fixed.
-- [x] `InferenceModelSpec.prompting_target` + `InferenceModelSpecBlueprint.prompting_target` (+ the factory passthrough) — `cogt/model_backends/model_spec.py`, `model_spec_factory.py`.
-- [x] **Same commit:** every `prompting_target` line in `.pipelex/inference/backends/*.toml` — the `[defaults]` line in anthropic, azure_openai, bedrock, fal, google, minimax, mistral, ollama, openai, portkey, vertexai, xai, **plus portkey's per-model `gemini` overrides** — then `make ukc` to sync the kit copies, `make ccs` to prove it. Grep both trees afterwards: zero hits. — Done: 17 lines across 12 files, `make ccs` green, both trees grep clean.
-- [x] The `PromptingTarget` enum module — `cogt/model_backends/prompting_target.py` — and its imports.
-- [x] `derive_templating_style` (`kernel/llm_ops.py`) and its docstring. — Deleted in Phase 1, see the deviation note there.
-- [x] **The dead template module:** re-confirm `cogt/llm/llm_prompt_template.py` has no production consumer (inventory says: only two serde test files import it), then delete it together with its only base `llm_prompt_factory_abstract.py`; rework `tests/integration/pipelex/cogt/test_serde_llm_classes.py` and `test_data.py` to serde-test a living model (e.g. `LLMPrompt` itself) instead. The hardcoded xml+markdown style dies with it. — Done: `SerDeTestLLMCases` now serde-tests `LLMPrompt`, which genuinely crosses a process boundary, and its docstring says why that subject was chosen (the `user_images` items are `PromptImage` subclasses, so a round-trip losing the subclass would silently drop the image).
-- [x] **Investigate `llm_prompt_template_inputs.py`:** if its only production consumer was the dead module, delete it too along with `LLMPromptTemplateInputsError` — then remove its subject-grant entries, run `make gei` (error-identity snapshot) and `make gep` (error pages), and let `docs/errors/llm-prompt-template-inputs-error.md` go. If something live uses it, keep all of it and record why here. — Verdict: nothing live used it, so it went, along with `LLMPromptTemplateInputsError`, its two subject grants, its `docs/errors/` page and its `error_identity.txt` row (both regenerated, not hand-edited), and the error's case in `test_class_level_metadata.py`.
-- [x] Final sweeps: `prompting_target` greps clean outside `wip/`, `CHANGELOG.md` and the `.drift/acks` historical record; `PromptingTarget` zero; `prompting_style`/`prompting_config` survive only in the three Phase-4 doc targets (the styling page, `inference-backend-config.md`'s stale example, `add-model/SKILL.md`). Also removed the two now-pointless `del mock_model.prompting_target` lines in the reasoning tests: they guarded against reading a field that no longer exists.
-- [x] Gates: stage + `make agent-check`, **full `make agent-test`** — both green.
-
-**A blocker Phase 3 uncovered, and what was done about it.** Deleting `prompting_target` from `InferenceModelSpecBlueprint` made the *entire* test suite error at boot — 9671 errors, all one cause. The Pipelex Gateway backend does not read its model specs from this repo: they are fetched from the Pipelex API and cached at `~/.pipelex/cache/remote_config.json`, and that config's `defaults` block still declares `prompting_target = "anthropic"`. The blueprint is `extra="forbid"`, so a served config declaring a field this client no longer knows stops the boot dead.
-
-The fix is not a shim for this field. `drop_unknown_gateway_defaults` (`cogt/model_backends/gateway_config.py`) prunes keys the blueprint does not know from the **remote** config's `defaults` before the merge with local overrides, on the principle that a config served by a component deploying on its own schedule is legitimately written by a different release than the client reading it — version skew to tolerate, not a typo to reject. Local backend files stay strict. Tested in `tests/unit/pipelex/cogt/model_backends/test_gateway_unknown_defaults.py`.
-
-Two things this leaves for elsewhere, written up in [`gateway-config-outlived-prompting-target.md`](gateway-config-outlived-prompting-target.md): dropping the now-dead field from the config our hosted plane serves, and deciding whether the per-model unknown-key → HTTP-header rule should survive for the gateway backend (a removed field living per-model rather than in `defaults` would have been *sent to the provider as a header* instead of raising — a worse outcome than the one actually hit, and one no test would catch).
-
-### ✋ CHECKPOINT 2 — HARD STOP
-
-Do not start Phase 4 without Louis' explicit go. This is the point-of-no-return review of the behaviour flip. Present: full diff stats by phase, the green `agent-test` run, and a **before/after rendering of one real prompt** (e.g. from the flipped `test_prompt_image_extraction` case) showing back-ticks → XML. Louis reviews the actual prompt text change, rules on any surprises logged along the way, and decides the commit strategy for Phases 1-3. Update the checkpoint log. Natural fresh-session handoff.
-
----
-
-## Phase 4 — Migration surfaces: schema, docs, changelog, drift
-
-Schema (mechanical half — cross-repo propagation is release-gated, see follow-ups):
-
-- [x] `make gms` then `make cms` — the diff is two-sided: `PipeLLMBlueprint` gains `templating_style`; `LLMSetting` loses `prompting_target` and the `PromptingTarget` definition disappears (`TemplatingStyle`/`TagStyle` were already published via `TemplateBlueprint`). — Regenerated, `make cms` green. **No tracked diff:** `derived/mthds_schema.json` is gitignored, so the schema change reaches consumers only through the release-gated downstream sync already listed in the follow-ups.
-
-Docs (the design's §8 — replace, don't patch, the dead-premise page):
-
-- [x] **New authoring page** (e.g. `docs/building-methods/templating-style.md`): the two-level model (pipe > config default), bare-string shorthand vs full table, the tag-style gallery incl. `no_tag`, the compose/img-gen story, xml as house default. Written for authors, not infra.
-- [x] **Delete** `docs/building-methods/adapt-to-llm-prompting-style-openai-anthropic-mistral.md`; update `mkdocs.yml`: both nav entries, the existing legacy redirect re-pointed to the new page, and a new redirect from the deleted path.
-- [x] `docs/features/llm-integration.md` — rewrite the "Prompting Styles" section (its "provider-specific formatting … automatically" claim is exactly what's deleted) + front-matter description; `docs/features/index.md` blurb.
-- [x] `docs/configuration/config-technical/inference-backend-config.md` — drop the (already-stale) prompting field from the model-spec example.
-- [x] `docs/under-the-hood/pipelex-kernel.md` — the flow prose ("derive a prompting style"), the kernel-surface table row, the per-call note; whatever Phase 1 already touched, finish here. — Nothing left to do: Phases 1-2 finished this page to keep their drift acks honest, and it now contains no `prompting` hit at all.
-- [x] `docs/building-methods/pipes/pipe-operators/PipeLLM.md` — new `templating_style` parameter row; inline model-table field list checked (it never documented `prompting_target`, so no deletion there).
-- [x] `docs/building-methods/pipes/pipe-operators/PipeCompose.md` — align wording with the one-name vocabulary; cross-link the new page.
-- [x] `.claude/skills/add-model/SKILL.md` — remove the `prompting_target` authoring step. **Pulled forward out of Phase 4 and done**, because it is an agent-executable instruction living in the repo: between Phase 3 and Phase 4 it told an author to write a key that now hard-fails the boot. Replaced with a line saying a model spec never declares prompt formatting, and that an unknown key becomes an outbound header.
-- [x] Verify `docs/CLAUDE.md`'s language-surface note still reads true now that PipeLLM carries the field too. — It does. The note's claim is scoped to its own example (`PipeComposeSpec.target_format` is a spec convenience; the language uses `category` + `templating_style` on `TemplateBlueprint`), and that remains exactly true. `templating_style` now living on `PipeLLMBlueprint` as well does not contradict it — both are blueprint-level, which is the point the note is making. Left unedited.
-- [x] Sweep for stragglers: `grep -ri "prompting" docs/` and judge each survivor. — Two survivors, both the ordinary English verb and both correct: `init-cli-flows.md` ("credential prompting", i.e. asking the user) and `tools/cli/update.md` ("without prompting on the unchanged files"). Left alone.
-
-Changelog:
-
-- [x] Insert `## [Unreleased]` at the top of `CHANGELOG.md` (the header was consumed by v0.44.0) with a breaking entry, condensed style. Draft: **"Breaking — templating style is now an authoring decision.** How a pipe's inputs are tagged into a prompt is declared on the pipe (`templating_style` on `PipeLLM`: bare tag-style string or full `{ tag_style, text_format }` table) with a single runtime default (`[pipelex.templating_config].default_templating_style`, `xml`). It is no longer derived from model metadata: `prompting_target` is gone from model specs, backend TOMLs and inline model tables, along with the per-target style map. Every prompt rendered for an OpenAI-family model changes shape from back-tick blocks to XML tags; img-gen, search and compose prompts follow the same default instead of a silent triple-backtick fallback." Plus a Changed entry: reasoning budgets are worker-owned, no longer read from `prompting_target`.
-
-Drift:
-
-- [x] `make drift-plan`; review and ack whatever remains open of `config-docs` / `pipelex-kernel-docs` with honest rationales; append the dogfood observation to `wip/drift-contracts/dogfood-log.md`. — **Nothing open:** Phases 1-3 acked both contracts, and Phase 4 touches only docs, which are review targets rather than triggers. No ack was invented to fill the box. Two dogfood entries appended, and the first is a genuine finding rather than a formality: `config-docs` reviews only `docs/configuration/**`, so the page that actually documented `[pipelex.prompting_config]` — filed under `docs/building-methods/` because it was written for authors — was invisible to the one contract whose description claims to cover config docs. It stayed stale for three phases behind an honest green ack.
-- [x] Gates: stage + `make agent-check`.
-
-## Phase 5 — Bookkeeping: KF-16 closes, keyless un-holds
-
-- [x] `wip/parity/README.md` — flip the Phase-2 "slated to become" sentence to closed; update the 2.2 gaps-table row.
-- [x] `wip/parity/SESSION-HANDOFF.md` and `wip/parity/parity-gaps-plan.md` — record KF-16 as closed by this change (name commits by subject, never SHA — this branch may rebase); the §2.2 deferral record's "do not fix by object-only derivation" trap is now moot and can say so.
-- [x] `wip/keyless/keyless-dry-prompts-fix-plan.md` — replace the hold banner: the headline symptom, Part 1, and most of Part 3 are dissolved by construction; re-scope the plan to the surviving residue (`max_prompt_images` unenforced, img-gen param rules skipped, handle-pinned bundles rejected keylessly, the two CLIs disagreeing on `--dry-run` credentials). Re-judging that residue is its own future task, not this one.
-- [x] `wip/keyless/keyless-boot-changes-dry-prompts.md` — a short closing note pointing at the dissolution.
-- [x] This design doc — status flips to built; this plan's checkpoint log completed.
-- [x] Final gates: stage everything, `make agent-check`, **full `make agent-test`** — both green. Also ran `make docs-check` (`mkdocs build --strict`), which the plan had not listed and which this phase needed: Phase 4 rewires `mkdocs.yml` nav and redirects, and a nav entry pointing at a deleted file fails only at build time. Clean.
-
-### ✋ CHECKPOINT 3 — FINAL HARD STOP
-
-Everything is green and documented; nothing is committed beyond what earlier checkpoints approved. Louis decides: commit/PR shape (one PR vs. Phase 0 split out), whether this branch keeps the `fix/Keyless-dry-run` name or is rebranded (the keyless fix it was cut for has been dissolved, not fixed), and release timing. Present the release-gated follow-ups below. Update the checkpoint log.
-
-## Out of scope here — release-gated / cross-repo follow-ups
-
-- **MTHDS schema downstream sync** (mthds, vscode-pipelex, mthds-ui committed copies) via the `mthds-schema-sync` skill — gated on a released `pipelex` version.
-- **MTHDS spec prose** — a pipe-level `templating_style` is a language-surface change owned by the `mthds/` repo; the schema regen is only the mechanical half. A deliverable of its own after release.
-- **`pipelex-api` CI** — its openapi check runs only under its own `make check` and has been bitten by pipelex bumps before; verify on the release bump whether the schema change surfaces there.
-- **Cookbook / starter sweeps** — no shipped `.mthds` uses any styling surface today, so no migration is expected; a post-release sanity pass confirms.
-- **Downstream backend-TOML sweep — a boot-breaker, and the one item on this list that is not optional.** Every repo that ships its own `.pipelex/inference/backends/*.toml` still declares `prompting_target`, and local backend files are read strictly: on the `pipelex` version bump each one dies at boot with `Extra forbidden fields: 'prompting_target'`. Tracked-file hits confirmed in `pipelex-api/`, `cocode/`, `pipelex-cookbook/`, `mthds-ui/`, plus our hosted worker, our demo repos, and two fixtures in our JS runtime (all private). **`portkey.toml` is the trap in every one of them**: the key appears once in `[defaults]` *and* again on several per-model entries, so a "fix" that deletes only the `[defaults]` line leaves the per-model ones behind. Since the rogue-headers guard those are a **hard error** — `NOT_HEADER_SHAPED`, fatal in lenient boots too, because a key that is not a model-spec field and has no hyphen in it is neither a setting nor a header — rather than the silent outbound header to Portkey they used to be. So the file still does not boot, and it now says why, naming the key, the model and the file. Delete every occurrence, `[defaults]` and per-model alike, and grep to prove it.
-
- **The scope of this sweep is the repositories *we* ship, and only those.** A user's own machine is not on this list and never could be — `pipelex init` does not overwrite, so every installation predating the change still carries the key in `~/.pipelex/inference/backends/`. That half is repaired by the tool rather than by a sweep: the `inference-backend` migration surface claims those files, ledger entry `inference-backend@2` deletes the key from every root table, and a stale directory boots with a warning until `pipelex migrate` is run. The two halves ship in the same release deliberately, since a user runs the command *after* upgrading.
-- **The served gateway config — done (2026-08-14), and it changed the branch.** The config is owned by our back-office repo, not the hosted server (both private): its gateway-models TOML declared `prompting_target = "anthropic"` in its `[defaults]`, and its build service publishes that block as the remote config's `backend_model_specs` — that file is the reason `drop_unknown_gateway_defaults` exists. The key is deleted there and **published**.
-
- Publishing it was only safe because **the served config is versioned in its URL, and this branch bumps it**: `pipelex/system/pipelex_service/pipelex_details.py` now points at `pipelex_remote_config_12.json` (was `_11`), committed on this branch with its own changelog entry. `_11` is frozen and still carries the key, so earlier releases keep resolving `anthropic` → `xml`; had they read a key-less config they would have fallen through to `TagStyle.TICKS`, flipping every gateway prompt in the field to backtick fences. Verified live against both URLs. Retires the *occasion* for the tolerance, not the tolerance itself, which is general. See [`gateway-config-outlived-prompting-target.md`](gateway-config-outlived-prompting-target.md).
-
- One thing this leaves open: **our JS runtime (private repo) is a second consumer of this same wire contract** — it pins `_11` in its own worker catalogue and models the field as `promptingTarget` on its spec, so it is unaffected today but diverges the moment it moves to `_12`. That is beyond the backend-TOML fixture hits already listed above.
-- **PipeImgGen/PipeSearch authored styling** (D6) — only if a real need appears.
-
-## Checkpoint log
-
-*(Filled in as checkpoints are reached: status of completed phases, decisions taken, open questions, state of the code.)*
-
-- **Checkpoint 1:** *(2026-08-14)* Phase 0 complete. Reasoning-budget resolution is re-homed off `prompting_target`: each worker owns a `reasoning_budget_family` ClassVar (`"anthropic"` on the Anthropic worker, `"gemini"` on the Google worker) and `LLMConfig.get_reasoning_budget` is fully keyword-only with a `family` parameter (its subject grant removed from `subject_grants.toml`). TDD red→green: new twin Anthropic reasoning test module + updated Google/config tests landed red first, went green with the implementation; the tests `del mock_model.prompting_target` so any spec read would raise — this stays valid after Phase 3 deletes the field. `effort_to_budget_maps` TOML keys unchanged. Docs updated (`docs/under-the-hood/reasoning-controls.md`). Gates: `make agent-check` green (two drift contracts honestly reviewed and acked: config-docs, pipelex-kernel-docs); full `make agent-test` green. Verified exit criterion: `prompting_target`'s only remaining consumers are the style path (configs.py `get_prompting_style`, llm_setting.py, model_spec + factory, kernel/llm_ops.py derive path) — Phases 1–3 scope. State: committed standalone on `fix/Keyless-dry-run` (commit "Phase 0 — re-home reasoning budgets off prompting_target"). Open questions: none. Louis' go received 2026-08-14 → Phase 1 underway.
-- **Checkpoint 2:** *(2026-08-14)* **Reached. Phases 1-3 complete, `make agent-check` and the full `make agent-test` both green.** Awaiting Louis' go for Phase 4.
-
- **Phase 1 landed (2026-08-14), committed, all gates green.** What it built: `TemplatingConfig` (single field `default_templating_style`, mounted `pipelex.templating_config`; `prompting_styles` and `get_prompting_style` deleted along with the latter's subject grant), the total resolver `pipelex/kernel/templating_style_ops.py`, the authored `templating_style` union on `PipeLLMBlueprint` / `PipeLLMSpec` / `PipeLLM` with the factory widening the bare-`TagStyle` arm, and both `PipelexKernel` façade calls taking the same optional argument (D4 — the `llm_object` parity-gap docstring paragraph is deleted, the question it adjudicated having dissolved). **The behaviour flip is live:** every OpenAI-family prompt now renders XML instead of back-ticks, because nothing derives a style from model metadata any more.
-
- One deviation from the plan, recorded under Phase 1: `derive_templating_style` was deleted here rather than in Phase 3, because D1 deletes the config map that was its only data source — leaving it would not type-check. The rest of the Phase 3 deletion batch is untouched.
-
- Tests added: `test_templating_style_ops.py` (totality, house default, authored-wins), `test_pipe_llm_templating_style.py` (both parsing shapes, spec passthrough, all three factory outcomes), and the `templating_style.mthds` bundle + `test_templating_style_bundle.py` proving the authored field survives parse→load→render. `test_prompt_image_extraction.py`'s two default-shape assertions now supply the resolved style and assert XML; note the `with_images | tag` case asserts `<data>`, not `<pages>` — after `with_images` the value is a plain string with no name of its own.
-
- Docs touched in-phase (to keep the drift acks honest): `docs/under-the-hood/pipelex-kernel.md` — entry-point table lists `templating_style_ops` and drops `derive_templating_style`, and the flow prose plus the per-call-derivation note use the templating vocabulary. Both `config-docs` and `pipelex-kernel-docs` were reviewed and acked.
-
- Known and deliberate: the Claude Code `check-mthds` hook rejects `templating_style` in a `.mthds` file because it validates against the plugin's bundled schema, which is stale. `make plxt-lint` regenerates `derived/mthds_schema.json` first and passes. The downstream schema sync is already listed as a release-gated follow-up.
- **Phase 2 landed (2026-08-14), committed, all gates green.** Every prompt-rendering entry point now takes a **required** `TemplatingStyle`, and the three styling filters lost their silent fallbacks — a missing `TAG_STYLE` or `TEXT_FORMAT` raises `Jinja2ContextError` instead of quietly choosing triple-backticks or plain text. Img-gen, search and compose resolve through the same resolver the LLM path uses. Two render sites the plan had not anticipated needed the same treatment, both found by asking "which filter-bearing category still renders style-less": construct-mode template fields (user-authored `.mthds` content, so this one was user-facing) and the two generic prompt templates (the structure prompt and the structuring prompt, both config-editable). Details under the Phase 2 heading.
-
- **Phase 3 landed (2026-08-14), committed, all gates green.** `prompting_target` is gone from `LLMSetting`, `InferenceModelSpec`, `InferenceModelSpecBlueprint`, the factory passthrough, and every backend TOML in both trees — the field deletion and the TOML deletions in one commit, as the silent-header hazard requires. The `PromptingTarget` enum module is deleted. The dead `llm_prompt_template.py` / `llm_prompt_factory_abstract.py` / `llm_prompt_template_inputs.py` trio went with it, along with `LLMPromptTemplateInputsError` and its generated error page and identity row; the serde tests they anchored now exercise `LLMPrompt`.
-
- **The one surprise, and it was a big one:** the deletion broke the boot against the *remote* gateway config, which still declares `prompting_target`. Whole suite red, one cause. Resolved with a general remote-config tolerance rather than a field-specific shim; a back-office follow-up and an open design question are written up in [`gateway-config-outlived-prompting-target.md`](gateway-config-outlived-prompting-target.md). **This is the item most worth Louis' ruling.**
-
- **Before / after, one real prompt.** Same template (`Summarize the article below.\n\n@article\n\nKeep it to one sentence.`), same input, rendered under the old OpenAI-family style and under the new default:
-
- ```text
- BEFORE (prompting_target "openai" -> ticks) AFTER (no authored style -> config default)
- Summarize the article below. Summarize the article below.
-
- article: ``` <article>
- Bees pollinate a third of the food we eat. Bees pollinate a third of the food we eat.
- ``` </article>
-
- Keep it to one sentence. Keep it to one sentence.
- ```
-
- The resolved default is `xml/plain`. Note the tag *name*: `@article` carries the variable name into the tag, so XML reads better than the old `article: ```' prefix-plus-fence shape.
-
- **Open for Louis at this checkpoint:** (a) the gateway-config finding above and its two follow-ups; (b) the commit strategy — Phases 0-3 are four separate commits on `fix/Keyless-dry-run`, so squashing to any shape is still trivial; (c) whether Phase 4's changelog entry should call out the compose and img-gen flips separately from the LLM one (they change prompt text for anyone whose template uses `| tag`, not just OpenAI-family users).
-
-- **Checkpoint 3:** *(2026-08-14)* **Reached. Phases 4 and 5 complete; `make agent-check`, the full `make agent-test`, and `mkdocs build --strict` all green.** Outcome: everything committed on `fix/Keyless-dry-run` (one commit per phase, plus review-fix commits) and opened as [PR #1104](https://github.com/Pipelex/pipelex/pull/1104) against `dev`, branch name kept. Two review findings were deferred out of that PR into [`pr-1104-deferred-review-items.md`](pr-1104-deferred-review-items.md); the strictness one is resolved on the stacked branch `fix/keyless-followups`, along with keyless Part 4 (`pipelex run --dry-run` no longer demands credentials).
-
- **Phase 4 — migration surfaces.** Schema regenerated (`make gms`/`make cms` green); it produces no tracked diff because `derived/mthds_schema.json` is gitignored, so the schema reaches consumers only via the release-gated downstream sync. Docs: the dead-premise page `adapt-to-llm-prompting-style-openai-anthropic-mistral.md` is **deleted** and replaced by a new authoring page, [`docs/building-methods/templating-style.md`](../../docs/building-methods/templating-style.md) — the two-level model, bare-string vs full-table, the four-style gallery with rendered output for each, what the two sigils (`@` tag / `$` format) each govern, and the compose/img-gen story. `mkdocs.yml` updated in three places (both nav entries, the legacy redirect re-aimed) plus a **new** redirect from the deleted path — that fourth entry is load-bearing: `docs/404.html`'s prefix rule rewrites the legacy URL to the now-deleted `building-methods/adapt-…` path, so without it the JS-rewrite fallback would land on a 404. `llm-integration.md` (section + front-matter), `features/index.md`, `inference-backend-config.md`, `PipeLLM.md` (new parameter row), `PipeCompose.md` (wording + cross-link) all updated. Changelog `## [Unreleased]` written with the breaking entry.
-
- **Two things worth Louis' eye in Phase 4.** (1) I **did not use content tabs** for the style gallery — `pymdownx.tabbed` is not enabled in `mkdocs.yml`, so `=== "xml"` would have rendered as literal text; it is plain subsections instead, which also avoids a nested-fence break in the `ticks` example (that one needs a 4-backtick fence). (2) Open question (c) from Checkpoint 2 — whether to call out the compose/img-gen flips separately — I **resolved as yes**, as its own changelog entry, because it changes prompt text for a different audience (anyone whose template uses `| tag`, on any model family) than the LLM-path flip (everyone on OpenAI-family models). Easy to merge back into one entry if Louis prefers.
-
- **The drift box, and the one real finding in this phase.** `make drift-plan` reported **nothing open** — Phases 1-3 acked both contracts, and Phase 4 touches only docs, which are review *targets*, not triggers. No ack was invented to fill the box. But the dogfood review surfaced something worth reading: **`config-docs` reviews only `docs/configuration/**`, and the page that actually documented `[pipelex.prompting_config]` — field list, TOML sample, accessor signature — lived under `docs/building-methods/` because it was written for authors.** So in Phase 1 the trigger fired, the review target was read in full, the target was genuinely clean, the ack was honest — and the stale page sailed through three phases behind a confident green, to be deleted here by a plan step rather than by the contract. Every step of the mechanism worked and it still missed. Logged in `wip/drift-contracts/dogfood-log.md` with the narrow remedy (a derived grep check for `[pipelex.` blocks documented outside `docs/configuration/`) rather than the tempting one (widening the review target to `docs/**`, which this log has twice warned makes acks perfunctory). **Not acted on** — recorded per the pilot's bias.
-
- **Phase 5 — bookkeeping.** KF-16 is recorded **closed by dissolution** in all three parity docs, with the #1081 docstring's trap note explicitly marked moot (there is no object-only resolution left to derive a style from, so the warning has no referent — preserved as history, flagged not-guidance). The keyless brief is closed with a banner explaining that the bug is unreachable in principle now, since both the derivation *and* the silent `TICKS` fallback are gone. The keyless fix plan is re-scoped in place rather than rewritten: Part 1 is folded into a `<details>` block as dissolved, and struck premises are kept as the record of what was measured.
-
- **The re-scope produced a judgement Louis should overrule if he disagrees.** I flagged in that plan that **the surviving residue may no longer be worth Part 2's blast radius**, and said so at the top rather than quietly proceeding. The reasoning: the symptom that justified "faithful over cheap" was a dry run *silently* validating a prompt that would never be sent. Every survivor is either loud (handle-pinned bundles rejected), a skipped constraint check (`max_prompt_images`, img-gen params), or a CLI inconsistency. Item 5 in particular loses its force — it was framed as "the loud converse of item 1", and with item 1 gone a loud refusal is a much weaker case for the `BackendLoadMode` surgery than a silent rewrite was. My recommendation is to decide **Part 2 and Part 4 separately**: Part 4 (`pipelex run --dry-run` should stop demanding credentials) is cheap and clearly right on its own. I also flagged a live trap for whoever builds it: the prompt-parity end-to-end test is now **green before any production edit**, so using it as the mutation-check target would produce a false green across the whole gate.
-
- **Rulings since:** the commits stayed as they were and went up as PR #1104 under the existing branch name; the compose/img-gen changelog entry stayed separate; the gateway-config finding is closed (served config fixed and published behind the `_12` URL bump; the header-rule question is planned in [`../rogue-extra-headers-guard-plan.md`](../rogue-extra-headers-guard-plan.md)). **Still open: the Part 2 re-judging** in the keyless plan. **The downstream backend-TOML sweep is the one non-optional follow-up** — every repo shipping its own `.pipelex/inference/backends/*.toml` dies at boot on the version bump, and `portkey.toml`'s per-model occurrences become outbound HTTP headers if only the `[defaults]` line is deleted.
diff --git a/wip/pytest-teardown-hang-leaked-threads.md b/wip/pytest-teardown-hang-leaked-threads.md
deleted file mode 100644
index b7d001197..000000000
--- a/wip/pytest-teardown-hang-leaked-threads.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# Full-suite pytest can hang AFTER the summary line (leaked non-daemon threads)
-
-On 2026-08-23 a full `make test` run printed its complete summary (`1 failed, 10984 passed … in 0:12:24`) and then never exited. A `sample` of the process showed the main thread in `Py_Finalize -> atexit_callfuncs -> threading._shutdown -> ThreadHandle_join`, waiting forever on non-daemon worker threads, all parked in `lock_PyThread_acquire_lock` (the `queue.Queue.get()` consumer shape). The last test output before the summary came from `tests/integration/pipelex/system/pipelex_service/test_setup_with_cache.py` telemetry tests, so the prime suspect is a telemetry/analytics consumer thread created during a setup test and never flushed/joined. py-spy could not name the threads (requires root on macOS).
-
-The hang is intermittent — the two checkpoint `make test` runs on the same branch exited normally — and predates the Engine-hints diff (which touches no threading or telemetry code). `make agent-test-debug` already guards against this class with an outer wall-clock timeout; plain `make test` does not.
-
-Suggested fix direction (deferred): make the telemetry client used in setup tests either daemon-threaded or explicitly shut down in the test/fixture teardown; or add the outer timeout to `make test` the way `agent-test-debug` has one.
diff --git a/wip/reshape/pr-1111-review-notes.md b/wip/reshape/pr-1111-review-notes.md
deleted file mode 100644
index 483fdac90..000000000
--- a/wip/reshape/pr-1111-review-notes.md
+++ /dev/null
@@ -1,110 +0,0 @@
-# PR #1111 review — deferred items
-
-Items surfaced while triaging the review threads on PR #1111 (configuration reshape, `pipelex-config@2`) that were deliberately **not** acted on. Each needs a decision rather than a drive-by fix.
-
-## 1. `pipe_func_config.timeout_seconds` names a config address that does not exist
-
-**Reporter:** found by the sweep, not by a bot.
-**File:** `pipelex/pipe_operators/func/pipe_func_execution_transport.py:38`
-
-The docstring reads:
-
-> `timeout_seconds` is the PipeFunc kill-timeout that rides on the request. Callers pass the configured `pipe_func_config.timeout_seconds` (they live in plugins, outside core's import graph, so they can read the config without a cycle); it falls back to the module default otherwise.
-
-`pipe_func_config` is a retired root, so on its face this belongs with the rest of the sweep. It was left alone because the mechanical correction would make things worse: core's `PipeFuncConfig` (`pipelex/system/configuration/pipe_func_config.py`) holds only `execution_mode`, and `[interpreter.pipe_func]` in `pipelex/pipelex.toml` holds only `execution_mode` too. There is no `timeout_seconds` anywhere in core. Rewriting the root to `interpreter.pipe_func.timeout_seconds` would assert a core address that does not exist, which is a worse failure than a stale one — a reader would go looking for a key they can never find.
-
-The docstring itself says the callers "live in plugins, outside core's import graph", so the key is plugin-supplied.
-
-**Open question:** does our Daytona plugin extend the `[interpreter.pipe_func]` table with its own `timeout_seconds`, or does it own a separate config root? If it extends the table, the fix is the mechanical one. If it owns a separate root, the sentence should name that root instead, or stop naming an address at all and just say the timeout is plugin-configured. Not answerable from open core.
-
-**Thread:** none — this one was not reported; it surfaced from sweeping the class.
-
-**Resolved at S7.** The open question was answered by reading the plugin: our Daytona plugin owns a separate root, `daytona.toml` → `pipe_func_timeout_seconds` on `config_daytona.py`, and does **not** extend `[interpreter.pipe_func]`, which still holds `execution_mode` and nothing else. So the mechanical correction would indeed have asserted an address no reader could find. The docstring now says the timeout is plugin-configured, names our Daytona plugin's key as one instance rather than as the contract, and stops naming a core address altogether.
-
-## 2. Should `reset_boot_state` also release the isolated-execution probe?
-
-**Reporter:** greptile (P1), on `pipelex/runtime_hub.py:183-185`.
-**Thread:** https://github.com/Pipelex/pipelex/pull/1111 — replied and resolved as a false positive.
-
-Greptile claimed that a probe installed by a boot-orchestrator plugin survives teardown on the reusable runtime hub, so a later in-process boot routes usage events through the runner fallback instead of its registered event-log context, corrupting usage attribution. That specific failure cannot occur, for two independent reasons:
-
-- The hub is not reused across boots. `RuntimeBoot.__init__` constructs a fresh `RuntimeHub()` and installs it (`pipelex/runtime_boot.py:184-185`), and every boot goes through construction, so a later boot always starts from the `_never_in_isolated_execution` default. The plugin registrar is rebuilt per boot too, so the slot claim is re-derived rather than inherited.
-- In the one window that does exist — post-teardown, pre-next-boot, where `get_runtime_hub()` still hands out the dead hub — the probe's only production reader (`pipelex/reporting/reporting_manager.py:199`) first consults `_event_log_contexts`, which `ReportingManager.teardown()` clears. With no registered context the emission takes the runner fallback anyway, which is the same branch a stale probe would have forced.
-
-**What is still open** is a hygiene question, not a bug. After the earlier follow-up commit ("Review follow-up: stale config paths, and boot-scoped state that outlived its boot"), `reset_boot_state` releases `_config`, `_is_dry_run_forced` and `_boot_orchestrator`, and its docstring says it releases "the process-global state a boot established". The probe is now the one boot-established hub attribute left out.
-
-The argument for adding `self._isolated_execution_probe = _never_in_isolated_execution` is that consistency: a reader auditing the method should not have to re-derive why one attribute is absent.
-
-The argument against is that the docstring's justification would stop being true. It says the flags are boot arguments that "`setup()` writes both unconditionally on the way up" — and that is precisely the difference. The probe is written *conditionally*, only when an orchestrator plugin claims the slot (`pipelex/runtime_boot.py:596-598`), and unlike `is_dry_run_forced()` and `get_boot_orchestrator()` it has no module-level accessor that outside code calls between boots. Adding the line means also rewriting the docstring to explain a release that guards against a hub-reuse pattern the code forbids.
-
-**Decision needed:** add the line and generalise the docstring, or leave it out and add one sentence to the docstring saying explicitly why the probe is not in the list. Doing nothing leaves the asymmetry unexplained, which is the weakest of the three.
-
-**Resolved at S7 — the line was added, and the docstring says why.** Half of the argument against did not survive checking: the probe **does** have a module-level accessor that outside code calls, `is_in_isolated_execution`, and `ReportingManager` is what reads it. What is left of the argument — that the probe is written *conditionally*, only when a plugin claims `HubSlot.ISOLATED_EXECUTION_PROBE` in `RuntimeBoot.setup` — turns out to argue the other way: a boot that claims nothing *inherits* rather than overwrites, so the release is what a fresh `RuntimeHub` per boot would otherwise be the only thing providing. The docstring now records both, and a second test in `tests/unit/pipelex/test_runtime_boot_releases_boot_scoped_state.py` pins the release. The greptile finding itself stays a false positive: the failure it described still cannot happen, for the two reasons above.
-
-## 3. Nothing mechanically guards the "stale config path in a string" class
-
-**Reporter:** none — an observation from doing this triage.
-
-This one bug class has now produced three rounds of fixes on this single PR:
-
-- the original reshape commit moved the keys;
-- the first review round swept `plugins.disabled` → `runtime.plugins.disabled` and three exception docstrings;
-- this round swept the `*_config` roots that the previous round left in the message bodies three lines below those same docstrings, plus roughly twice as many more sites across the plugin seam, the reporting and dry-run paths, the reasoning-controls doc page, and several test docstrings.
-
-Every one of these is invisible to pyright, mypy, ruff and the whole test suite, because a config address inside a string literal, a comment or a Markdown sentence is just text. The migration ledger already knows, as data, every path that was retired and what it became (`pipelex/migration/ledgers/pipelex-config.toml` plus the `fingerprint@N` goldens). A check that greps source strings, comments and docs for a retired root and fails when one is named would therefore have the answer key already available — it would not need a hand-maintained list.
-
-**Open question:** is that worth building? Points in favour: the ledger makes it nearly free to keep correct, it is exactly the kind of gate the repo already likes (`check-keyword-only`, `check-migration-schemas`, the drift contracts), and this class will recur on every future config reshape. Points against: it needs a real allowlist for the legitimate collisions — module filenames (`log_config.py`, `aws_config.py`, the per-provider `*_config.py`), genuine attributes (`deck.model_deck_config.is_model_fallback_enabled`), local variables that share the name (`storage_config = get_config().runtime.storage`), the migrator's own fixtures and goldens, and intentional historical prose in the changelog and the `# was [cogt]` markers. Get that allowlist wrong and the gate is noise.
-
-**A fourth review round supplied the first measured false positive of the manual sweep, which is direct evidence for the allowlist half of that question.** The sweep had rewritten a sentence in `pipelex/system/data_inclusion_config.py` that names the graph rendering *module* names `mermaid_config` / `reactflow_config` — modules `pipelex/graph/graph_config.py` still imports and that the reshape never touched — into the field names `mermaid` / `reactflow`. The tell was that the identical sentence in `docs/contribute/hub-layering.md` had been swept correctly, so source and docs had silently diverged. Reverted in that round. A mechanical gate would have flagged the same sentence, so the module-filename allowlist entry is not hypothetical: it is required on day one, and it has to cover a module name appearing in prose, not just an import statement.
-
-Designing it is a decision, not a review fix, so it is recorded here rather than attempted.
-
-## 4. Our Temporal plugin reads `boot_orchestrator` from a field that no longer exists
-
-**Reporter:** found by the fourth review round while checking what depends on the demoted field.
-**File:** `pipelex-server/temporal/pipelex_temporal/temporal_activation.py:19` (sibling repo, not this one).
-
-`boot_orchestrator` stopped being a config field and became a boot argument plus boot-scoped hub state. That site still reads `get_config().plugins.boot_orchestrator`.
-
-**This is the one downstream site in the whole cross-repo sweep whose fix is not a path rename**, and it is worth calling out because a mechanical `plugins.` → `runtime.plugins.` pass produces the wrong answer here. The field was deleted, not moved; the correct fix is `from pipelex.runtime_hub import get_boot_orchestrator` and calling it. Every other downstream hit found so far — `content_generator_in_workflow.py`, `act_pipe_func.py`, the tracing tests, the `pipelex-api` / cookbook / cocode TOMLs, `pipelex-mistral-workflows` — is a straight rename.
-
-The one piece of good news is that it fails loudly rather than silently: `plugins` is not a root field on `PipelexConfig` any more, so the read raises `AttributeError` at import-activation time instead of quietly returning a default.
-
-**Action:** this belongs in the release-gated cross-repo sweep, flagged as manual. There is now an in-repo test pinning the write end of that seam (`tests/integration/pipelex/system/test_boot_orchestrator_validation.py` asserts `get_boot_orchestrator()` returns the accepted name), so the reader has something to trust.
-
-## 5. A backend TOML matches the `pipelex-config` tier glob and is claimed by nothing
-
-**Reporter:** found by the fourth review round while checking surface claiming.
-**File:** `.pipelex/inference/backends/pipelex_gateway.toml`.
-
-It matches the `pipelex-config` surface's tier glob `pipelex_*.toml`, but it is a backend definition, not a config root. `pipelex_service.toml` is safe from the same glob for a reason that does not apply here — filenames claim before globs, and it is a `base_file` for its own surface — whereas nothing claims this one first.
-
-Nothing on this branch is affected: `files_by_surface_in_directory` does not exist here, so no directory walk consults the glob yet.
-
-**Action:** this is a concrete, named specimen for S6's `pipelex migrate` directory walk. Whatever S6 builds for the walk should be tested against this exact file rather than a synthetic one.
-
-## 6. `introduced_in` is a forward-written version with no validator behind it
-
-**Reporter:** found by the fourth review round.
-**File:** `pipelex/migration/ledgers/pipelex-config.toml`.
-
-The `pipelex-config@2` entry declares `introduced_in = "0.46.0"` while `pyproject.toml` is on `0.45.0`. That is deliberate — the entry ships in a future release — and it is consistent with the changelog's forward-written `pipelex migrate` line, which Louis already ruled to keep.
-
-The point worth recording is that **nothing checks it**. `MigrationEntry.introduced_in`, in `pipelex/migration/ledger.py`, is typed as a bare `str`, so any value parses, and no gate compares it to the package version at any point.
-
-**Action:** re-check this at release time. If the release lands on a number other than `0.46.0`, the field is silently wrong. A cheap release-time assertion (the head entry's `introduced_in` must equal the version being cut, or be unreleased) would close it permanently, but that is a decision for the release session, not this PR.
-
-## 7. The committed error pages under `docs/errors/` are gated by nothing
-
-**Reporter:** found by the fourth review round — `docs/errors/core-unconditional-plugin-disabled-error.md` had shipped stale.
-
-The commit "Review follow-up: the rest of the retired config roots, in strings and prose" added double-backticks to the `CoreUnconditionalPluginDisabledError` docstring. The generated page kept the un-backticked sentence, through three review rounds and a green full suite.
-
-Nothing catches it, and the two halves of the generated-error-docs system are gated asymmetrically:
-
-- the identity snapshot (`tests/data/errors/error_identity.txt`, `make gei`) has a real gate — `tests/unit/pipelex/errors/test_error_identity_snapshot.py` compares the committed file to a fresh generation and fails on drift;
-- the pages (`docs/errors/`, `make gep`) have none. Every test in `tests/unit/pipelex/errors/test_error_pages_generator.py` writes to `tmp_path`, and `make docs-check` *runs* the generator as a build dependency — so it rewrites the pages in the working tree, builds green, and never compares them against what is committed.
-
-The consequence is broader than a forgotten new class: **editing the docstring of an existing error class silently leaves its committed page stale**, and no gate anywhere — lint, full test suite, or CI — will say so. The page was regenerated in the fourth round, but the gap remains.
-
-**Open question:** add a snapshot-style test for the pages, mirroring the identity snapshot (generate to a temp dir, compare against `docs/errors/`, fail on drift)? The complication is the `<!-- pipelex:authored -->` marker: pages a maintainer has claimed are preserved across runs, so the comparison has to skip them, and the test would need to encode that rule rather than compare the directory wholesale.
diff --git a/wip/reshape/reshape-map.html b/wip/reshape/reshape-map.html
deleted file mode 100644
index 2cccd4725..000000000
--- a/wip/reshape/reshape-map.html
+++ /dev/null
@@ -1,954 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>The Configuration Reshape</title>
-<style>
-:root {
- --paper: #f6f7f8;
- --surface: #ffffff;
- --sunken: #eef1f3;
- --ink: #141a20;
- --ink-soft: #5a6672;
- --ink-faint: #8592a0;
- --rule: #dce1e6;
- --rule-strong: #c3ccd4;
-
- --runtime: #0d6a78;
- --inference: #9c5a0c;
- --interpreter: #4a4bab;
- --kit: #5d7080;
- --gone: #a8323f;
-
- --runtime-wash: rgba(13, 106, 120, 0.10);
- --inference-wash: rgba(156, 90, 12, 0.10);
- --interpreter-wash: rgba(74, 75, 171, 0.10);
- --kit-wash: rgba(93, 112, 128, 0.10);
- --gone-wash: rgba(168, 50, 63, 0.10);
-
- --ribbon-op: 0.42;
-
- --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", "DejaVu Sans Mono", Consolas, monospace;
- --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
-}
-
-@media (prefers-color-scheme: dark) {
- :root:not([data-theme="light"]) {
- --paper: #0f1317;
- --surface: #161c22;
- --sunken: #1b232a;
- --ink: #e5eaee;
- --ink-soft: #97a4b0;
- --ink-faint: #6d7c89;
- --rule: #262f38;
- --rule-strong: #35414c;
-
- --runtime: #3fb8c8;
- --inference: #e2a24c;
- --interpreter: #9295ec;
- --kit: #94a5b4;
- --gone: #f0737f;
-
- --runtime-wash: rgba(63, 184, 200, 0.13);
- --inference-wash: rgba(226, 162, 76, 0.13);
- --interpreter-wash: rgba(146, 149, 236, 0.13);
- --kit-wash: rgba(148, 165, 180, 0.13);
- --gone-wash: rgba(240, 115, 127, 0.13);
-
- --ribbon-op: 0.36;
- }
-}
-
-:root[data-theme="dark"] {
- --paper: #0f1317;
- --surface: #161c22;
- --sunken: #1b232a;
- --ink: #e5eaee;
- --ink-soft: #97a4b0;
- --ink-faint: #6d7c89;
- --rule: #262f38;
- --rule-strong: #35414c;
-
- --runtime: #3fb8c8;
- --inference: #e2a24c;
- --interpreter: #9295ec;
- --kit: #94a5b4;
- --gone: #f0737f;
-
- --runtime-wash: rgba(63, 184, 200, 0.13);
- --inference-wash: rgba(226, 162, 76, 0.13);
- --interpreter-wash: rgba(146, 149, 236, 0.13);
- --kit-wash: rgba(148, 165, 180, 0.13);
- --gone-wash: rgba(240, 115, 127, 0.13);
-
- --ribbon-op: 0.36;
-}
-
-* { box-sizing: border-box; }
-
-body {
- margin: 0;
- background: var(--paper);
- color: var(--ink);
- font-family: var(--serif);
- font-size: 17px;
- line-height: 1.62;
- -webkit-font-smoothing: antialiased;
-}
-
-.wrap {
- max-width: 1180px;
- margin: 0 auto;
- padding: 0 28px 120px;
-}
-
-.col {
- max-width: 68ch;
-}
-
-p { margin: 0 0 1.05em; }
-p + p { margin-top: -0.15em; }
-
-a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
-a:focus-visible, .legend-item:focus-visible { outline: 2px solid var(--interpreter); outline-offset: 3px; }
-
-code, .mono { font-family: var(--mono); }
-
-code {
- font-size: 0.86em;
- background: var(--sunken);
- padding: 0.1em 0.36em;
- border-radius: 2px;
- white-space: nowrap;
-}
-
-/* ---------- masthead ---------- */
-
-.masthead {
- border-bottom: 1px solid var(--rule-strong);
- padding: 64px 0 34px;
- margin-bottom: 52px;
-}
-
-.eyebrow {
- font-family: var(--mono);
- font-size: 11.5px;
- letter-spacing: 0.14em;
- text-transform: uppercase;
- color: var(--ink-faint);
- margin: 0 0 20px;
-}
-
-h1 {
- font-family: var(--mono);
- font-size: clamp(30px, 5.4vw, 50px);
- font-weight: 600;
- letter-spacing: -0.028em;
- line-height: 1.05;
- margin: 0 0 22px;
- text-wrap: balance;
-}
-
-.standfirst {
- font-size: 20px;
- line-height: 1.5;
- color: var(--ink-soft);
- max-width: 60ch;
- margin: 0 0 30px;
-}
-
-.meta {
- display: flex;
- flex-wrap: wrap;
- gap: 8px 26px;
- font-family: var(--mono);
- font-size: 12px;
- color: var(--ink-faint);
-}
-.meta b { font-weight: 600; color: var(--ink-soft); }
-
-/* ---------- sections ---------- */
-
-section { margin: 0 0 76px; }
-
-h2 {
- font-family: var(--mono);
- font-size: 13px;
- font-weight: 600;
- letter-spacing: 0.12em;
- text-transform: uppercase;
- color: var(--ink-soft);
- margin: 0 0 6px;
- padding-bottom: 10px;
- border-bottom: 1px solid var(--rule);
-}
-
-h3 {
- font-family: var(--mono);
- font-size: 19px;
- font-weight: 600;
- letter-spacing: -0.015em;
- margin: 30px 0 12px;
- text-wrap: balance;
-}
-
-h2 + h3 { margin-top: 24px; }
-
-/* ---------- figures ---------- */
-
-figure {
- margin: 34px 0 0;
- padding: 0;
-}
-
-.fig-frame {
- background: var(--surface);
- border: 1px solid var(--rule);
- border-radius: 3px;
- padding: 20px 18px 12px;
- overflow-x: auto;
-}
-
-figure svg {
- display: block;
- width: 100%;
- height: auto;
-}
-
-figcaption {
- font-size: 14.5px;
- line-height: 1.55;
- color: var(--ink-soft);
- margin-top: 14px;
- max-width: 78ch;
-}
-figcaption b { color: var(--ink); font-weight: 600; }
-
-.svg-title { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; }
-.svg-node { font-family: var(--mono); font-size: 14px; font-weight: 600; }
-.svg-sub { font-family: var(--mono); font-size: 11px; }
-.svg-lab { font-family: var(--mono); font-size: 11px; }
-.rib-label {
- font-family: var(--mono);
- font-size: 11px;
- font-weight: 600;
- paint-order: stroke;
- stroke: var(--surface);
- stroke-width: 3.5px;
- stroke-linejoin: round;
-}
-
-.c-runtime { color: var(--runtime); }
-.c-inference { color: var(--inference); }
-.c-interpreter { color: var(--interpreter); }
-.c-kit { color: var(--kit); }
-.c-gone { color: var(--gone); }
-
-.f-runtime { fill: var(--runtime); }
-.f-inference { fill: var(--inference); }
-.f-interpreter { fill: var(--interpreter); }
-.f-kit { fill: var(--kit); }
-.f-gone { fill: var(--gone); }
-.f-ink { fill: var(--ink); }
-.f-soft { fill: var(--ink-soft); }
-.f-faint { fill: var(--ink-faint); }
-.f-surface { fill: var(--surface); }
-
-.s-ink { stroke: var(--ink); }
-.s-soft { stroke: var(--ink-soft); }
-.s-rule { stroke: var(--rule-strong); }
-.s-gone { stroke: var(--gone); }
-
-.ribbon { opacity: var(--ribbon-op); }
-
-/* ---------- legend ---------- */
-
-.legend {
- display: flex;
- flex-wrap: wrap;
- gap: 6px 22px;
- margin: 18px 0 0;
- padding: 0;
- list-style: none;
- font-family: var(--mono);
- font-size: 12px;
- color: var(--ink-soft);
-}
-.legend li { display: flex; align-items: center; gap: 8px; }
-.swatch { width: 11px; height: 11px; border-radius: 2px; flex: none; }
-
-/* ---------- tables ---------- */
-
-.table-scroll { overflow-x: auto; margin-top: 26px; }
-
-table {
- border-collapse: collapse;
- width: 100%;
- min-width: 660px;
- font-size: 14px;
-}
-
-th {
- font-family: var(--mono);
- font-size: 11px;
- font-weight: 600;
- letter-spacing: 0.1em;
- text-transform: uppercase;
- color: var(--ink-faint);
- text-align: left;
- padding: 0 14px 9px 0;
- border-bottom: 1px solid var(--rule-strong);
- white-space: nowrap;
-}
-
-td {
- padding: 9px 14px 9px 0;
- border-bottom: 1px solid var(--rule);
- vertical-align: top;
-}
-
-tbody tr:last-child td { border-bottom: 1px solid var(--rule-strong); }
-
-.addr { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
-.addr-old { color: var(--ink-soft); }
-.note { font-size: 13px; color: var(--ink-soft); font-family: var(--serif); }
-
-.grp td {
- padding-top: 22px;
- border-bottom: none;
- font-family: var(--mono);
- font-size: 11px;
- letter-spacing: 0.1em;
- text-transform: uppercase;
- color: var(--ink-faint);
-}
-tbody tr.grp:first-child td { padding-top: 8px; }
-
-.tag {
- display: inline-block;
- font-family: var(--mono);
- font-size: 10.5px;
- font-weight: 600;
- letter-spacing: 0.06em;
- text-transform: uppercase;
- padding: 2px 7px;
- border-radius: 2px;
- white-space: nowrap;
-}
-.tag-runtime { color: var(--runtime); background: var(--runtime-wash); }
-.tag-inference { color: var(--inference); background: var(--inference-wash); }
-.tag-interpreter { color: var(--interpreter); background: var(--interpreter-wash); }
-.tag-kit { color: var(--kit); background: var(--kit-wash); }
-.tag-gone { color: var(--gone); background: var(--gone-wash); }
-
-/* ---------- panels ---------- */
-
-.panel {
- background: var(--surface);
- border: 1px solid var(--rule);
- border-radius: 3px;
- padding: 20px 22px;
- margin-top: 26px;
-}
-
-.panel h4 {
- font-family: var(--mono);
- font-size: 12px;
- font-weight: 600;
- letter-spacing: 0.1em;
- text-transform: uppercase;
- color: var(--ink-faint);
- margin: 0 0 10px;
-}
-
-.panel p:last-child { margin-bottom: 0; }
-
-.rail {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
- gap: 1px;
- background: var(--rule);
- border: 1px solid var(--rule);
- border-radius: 3px;
- margin-top: 26px;
- overflow: hidden;
-}
-
-.rail > div {
- background: var(--surface);
- padding: 18px 20px;
-}
-
-.rail dt {
- font-family: var(--mono);
- font-size: 12.5px;
- font-weight: 600;
- margin-bottom: 8px;
-}
-
-.rail dd {
- margin: 0;
- font-size: 14.5px;
- line-height: 1.5;
- color: var(--ink-soft);
-}
-
-.count {
- font-family: var(--mono);
- font-size: 34px;
- font-weight: 600;
- letter-spacing: -0.03em;
- line-height: 1;
- display: block;
- margin-bottom: 10px;
-}
-
-ul.plain { padding-left: 1.15em; margin: 0 0 1em; }
-ul.plain li { margin-bottom: 0.4em; }
-
-.ops {
- font-family: var(--mono);
- font-size: 12.5px;
- line-height: 1.85;
- background: var(--surface);
- border: 1px solid var(--rule);
- border-radius: 3px;
- padding: 18px 20px;
- margin-top: 26px;
- overflow-x: auto;
- white-space: pre;
- color: var(--ink-soft);
-}
-.ops b { color: var(--ink); font-weight: 600; }
-
-.footer {
- border-top: 1px solid var(--rule-strong);
- padding-top: 22px;
- margin-top: 84px;
- font-family: var(--mono);
- font-size: 12px;
- color: var(--ink-faint);
- line-height: 1.8;
-}
-
-@media (max-width: 640px) {
- body { font-size: 16px; }
- .wrap { padding: 0 18px 80px; }
- .masthead { padding-top: 40px; }
-}
-
-@media (prefers-reduced-motion: no-preference) {
- html { scroll-behavior: smooth; }
-}
-</style>
-</head>
-<body>
-<div class="wrap">
-
-<header class="masthead">
- <p class="eyebrow">Migrator v3 &middot; Lane R &middot; session S4</p>
- <h1>The Configuration Reshape</h1>
- <p class="standfirst">Twenty-six things live at the root of <code>PipelexConfig</code> today under three different organizing principles. This is what they become, why, and in what order the migration touches them.</p>
- <div class="meta">
- <span><b>ledger entry</b> pipelex-config@2</span>
- <span><b>base</b> dev @ 052b9df06</span>
- <span><b>ops</b> 37</span>
- <span><b>normative source</b> &lt;workspace-root&gt;/wip/migrator-3/reshape.md</span>
- </div>
-</header>
-
-<section class="col">
- <h2>What this changes</h2>
- <h3>One address change, no value changes</h3>
- <p>The reshape rewrites <code>PipelexConfig</code> and the TOML it validates so the root carries <em>one</em> scheme &mdash; the layers the code already has &mdash; instead of the five unrelated entries it carries now. Every setting keeps its value. Only its address moves.</p>
- <p>The axis is not invented for the occasion. <code>docs/contribute/hub-layering.md</code> already names a <strong>kernel layer</strong> (brokered by <code>runtime_hub</code>) and an <strong>interpreter layer</strong> (brokered by <code>interpreter_hub</code>), and <code>pipelex/kernel/</code> already holds operator-execution semantics callable on a <code>RuntimeBoot</code>-only process. The configuration is the last surface that still says &ldquo;one blob&rdquo; while the code says two layers plus an inference seam.</p>
- <p>It ships as a Migrator ledger entry, so every user&rsquo;s <code>~/.pipelex/pipelex.toml</code> migrates in place rather than breaking. The <code>_config</code> suffix is dropped in the same pass at every depth, because each read site is touched exactly once either way.</p>
-</section>
-
-<section>
- <h2>The map</h2>
-
- <div class="col">
- <h3>Where all 26 root entries go</h3>
- <p>Ribbon width is the number of configuration sections carried. The left column is in the order the fields actually appear on <code>PipelexConfig</code>; the crossings are the finding, not a drawing artifact.</p>
- </div>
-
- <figure>
- <div class="fig-frame">
- <svg viewBox="0 0 1120 650" role="img" aria-label="Sankey diagram: session_id, cogt, pipelex, plugins and migration at the config root redistribute into runtime, inference, interpreter, kit, and three deletions.">
- <text class="svg-title f-faint" x="20" y="26">TODAY &mdash; PipelexConfig root</text>
- <text class="svg-title f-faint" x="930" y="26">AFTER &mdash; pipelex-config@2</text>
-
- <!-- ribbons -->
- <g class="ribbon">
- <path class="f-gone" d="M210,48 C555,48 555,550 900,550 L900,568 C555,568 555,66 210,66 Z"/>
- <path class="f-inference" d="M210,88 C555,88 555,214 900,214 L900,322 C555,322 555,196 210,196 Z"/>
- <path class="f-runtime" d="M210,218 C555,218 555,48 900,48 L900,174 C555,174 555,344 210,344 Z"/>
- <path class="f-inference" d="M210,344 C555,344 555,322 900,322 L900,358 C555,358 555,380 210,380 Z"/>
- <path class="f-interpreter" d="M210,380 C555,380 555,380 900,380 L900,488 C555,488 555,488 210,488 Z"/>
- <path class="f-kit" d="M210,488 C555,488 555,510 900,510 L900,528 C555,528 555,506 210,506 Z"/>
- <path class="f-runtime" d="M210,528 C555,528 555,174 900,174 L900,192 C555,192 555,546 210,546 Z"/>
- <path class="f-gone" d="M210,546 C555,546 555,568 900,568 L900,586 C555,586 555,564 210,564 Z"/>
- <path class="f-gone" d="M210,586 C555,586 555,586 900,586 L900,604 C555,604 555,604 210,604 Z"/>
- </g>
-
- <!-- left nodes -->
- <rect class="f-gone" x="190" y="48" width="20" height="18"/>
- <rect class="f-inference" x="190" y="88" width="20" height="108"/>
- <rect class="f-ink" x="190" y="218" width="20" height="288"/>
- <rect class="f-runtime" x="190" y="528" width="20" height="18"/>
- <rect class="f-gone" x="190" y="546" width="20" height="18"/>
- <rect class="f-gone" x="190" y="586" width="20" height="18"/>
-
- <text class="svg-node f-ink" x="182" y="53" text-anchor="end">session_id</text>
- <text class="svg-sub f-faint" x="182" y="67" text-anchor="end">root scalar</text>
-
- <text class="svg-node f-ink" x="182" y="138" text-anchor="end">[cogt]</text>
- <text class="svg-sub f-faint" x="182" y="153" text-anchor="end">6 sections &middot; a codename</text>
-
- <text class="svg-node f-ink" x="182" y="356" text-anchor="end">[pipelex]</text>
- <text class="svg-sub f-faint" x="182" y="371" text-anchor="end">16 sections &middot; a grab-bag</text>
-
- <text class="svg-node f-ink" x="182" y="542" text-anchor="end">[plugins]</text>
- <text class="svg-sub f-faint" x="182" y="557" text-anchor="end">2 keys</text>
-
- <text class="svg-node f-ink" x="182" y="597" text-anchor="end">[migration]</text>
- <text class="svg-sub f-faint" x="182" y="611" text-anchor="end">retiring</text>
-
- <!-- per-ribbon source labels -->
- <text class="rib-label f-gone" x="224" y="61">deleted</text>
- <text class="rib-label f-inference" x="224" y="146">6 &rarr; inference</text>
- <text class="rib-label f-runtime" x="224" y="285">7 &rarr; runtime</text>
- <text class="rib-label f-inference" x="224" y="366">2 &rarr; inference</text>
- <text class="rib-label f-interpreter" x="224" y="438">6 &rarr; interpreter</text>
- <text class="rib-label f-kit" x="224" y="501">1 &rarr; kit</text>
- <text class="rib-label f-runtime" x="224" y="541">disabled</text>
- <text class="rib-label f-gone" x="224" y="559">boot_orchestrator</text>
- <text class="rib-label f-gone" x="224" y="599">migration_maps</text>
-
- <!-- right nodes -->
- <rect class="f-runtime" x="900" y="48" width="20" height="144"/>
- <rect class="f-inference" x="900" y="214" width="20" height="144"/>
- <rect class="f-interpreter" x="900" y="380" width="20" height="108"/>
- <rect class="f-kit" x="900" y="510" width="20" height="18"/>
- <rect class="f-gone" x="900" y="550" width="20" height="54"/>
-
- <text class="svg-node f-runtime" x="932" y="114">[runtime]</text>
- <text class="svg-sub f-faint" x="932" y="129">kernel layer &middot; 8</text>
-
- <text class="svg-node f-inference" x="932" y="281">[inference]</text>
- <text class="svg-sub f-faint" x="932" y="296">kernel layer, the seam &middot; 8</text>
-
- <text class="svg-node f-interpreter" x="932" y="430">[interpreter]</text>
- <text class="svg-sub f-faint" x="932" y="445">interpreter layer &middot; 6</text>
-
- <text class="svg-node f-kit" x="932" y="516">[kit]</text>
- <text class="svg-sub f-faint" x="932" y="531">dev tooling &middot; 1</text>
-
- <text class="svg-node f-gone" x="932" y="573">deleted</text>
- <text class="svg-sub f-faint" x="932" y="588">no equivalent &middot; 3</text>
- </svg>
- </div>
- <figcaption><b>The two long sweeps are the argument.</b> <code>session_id</code> sits first on the config root and travels to nothing; <code>plugins.disabled</code> sits second-to-last and belongs at the top with the rest of the kernel-layer infrastructure. And <code>[pipelex]</code> is not one thing &mdash; it is four groups that were never distinguished, which is why it fans into every destination on the board.</figcaption>
- </figure>
-
- <ul class="legend">
- <li><span class="swatch" style="background: var(--runtime)"></span> runtime &mdash; kernel-layer infrastructure</li>
- <li><span class="swatch" style="background: var(--inference)"></span> inference &mdash; the model seam</li>
- <li><span class="swatch" style="background: var(--interpreter)"></span> interpreter &mdash; method machinery</li>
- <li><span class="swatch" style="background: var(--kit)"></span> kit &mdash; dev tooling, neither layer</li>
- <li><span class="swatch" style="background: var(--gone)"></span> deleted</li>
- </ul>
-</section>
-
-<section>
- <h2>Why these three names</h2>
-
- <div class="col">
- <h3>The layer axis already exists in the code</h3>
- <p>Ruling R3 placed the four ambiguous sections by measuring which layer actually reads them, and the census settled every one. A read <em>downward</em> &mdash; the interpreter reading kernel configuration &mdash; is permitted, so it never forces a section upward.</p>
- </div>
-
- <figure>
- <div class="fig-frame">
- <svg viewBox="0 0 1120 360" role="img" aria-label="Layer diagram: the interpreter layer sits above the kernel layer, which contains runtime and inference. Downward reads are permitted; two upward reads are recorded inversions.">
- <!-- interpreter layer -->
- <rect class="f-interpreter" x="60" y="40" width="700" height="86" opacity="0.10" rx="3"/>
- <rect x="60" y="40" width="700" height="86" rx="3" fill="none" stroke="var(--interpreter)" stroke-width="1.25"/>
- <text class="svg-node f-interpreter" x="80" y="70">[interpreter]</text>
- <text class="svg-sub f-soft" x="80" y="90">mthds &middot; pipe_run &middot; pipe_func &middot; pipeline_execution (&rarr; graph) &middot; scan &middot; builder</text>
- <text class="svg-sub f-faint" x="80" y="110">library-scoped method machinery &mdash; what interpreter_hub brokers</text>
-
- <!-- kernel layer -->
- <rect x="60" y="176" width="700" height="150" rx="3" fill="none" stroke="var(--rule-strong)" stroke-width="1.25" stroke-dasharray="4 3"/>
- <text class="svg-lab f-faint" x="80" y="196">KERNEL LAYER &mdash; what runtime_hub brokers, present whatever is loaded</text>
-
- <rect class="f-runtime" x="80" y="208" width="330" height="100" opacity="0.10" rx="3"/>
- <rect x="80" y="208" width="330" height="100" rx="3" fill="none" stroke="var(--runtime)" stroke-width="1.25"/>
- <text class="svg-node f-runtime" x="98" y="234">[runtime]</text>
- <text class="svg-sub f-soft" x="98" y="254">storage &middot; secrets &middot; log &middot; aws</text>
- <text class="svg-sub f-soft" x="98" y="270">reporting &middot; tracing &middot; observer &middot; plugins</text>
- <text class="svg-sub f-faint" x="98" y="292">process-scoped infrastructure</text>
-
- <rect class="f-inference" x="430" y="208" width="310" height="100" opacity="0.10" rx="3"/>
- <rect x="430" y="208" width="310" height="100" rx="3" fill="none" stroke="var(--inference)" stroke-width="1.25"/>
- <text class="svg-node f-inference" x="448" y="234">[inference]</text>
- <text class="svg-sub f-soft" x="448" y="254">model_deck &middot; llm &middot; img_gen &middot; extract</text>
- <text class="svg-sub f-soft" x="448" y="270">gateway_test &middot; templating &middot; dry_run</text>
- <text class="svg-sub f-faint" x="448" y="292">the model seam &mdash; was [cogt]</text>
-
- <!-- kit, outside -->
- <rect class="f-kit" x="810" y="208" width="250" height="100" opacity="0.10" rx="3"/>
- <rect x="810" y="208" width="250" height="100" rx="3" fill="none" stroke="var(--kit)" stroke-width="1.25" stroke-dasharray="4 3"/>
- <text class="svg-node f-kit" x="828" y="234">[kit]</text>
- <text class="svg-sub f-soft" x="828" y="256">preferred_agent_targets</text>
- <text class="svg-sub f-faint" x="828" y="278">read only by two pipelex-dev</text>
- <text class="svg-sub f-faint" x="828" y="292">commands &mdash; neither layer</text>
-
- <!-- permitted downward read -->
- <path d="M180,126 L180,172" fill="none" stroke="var(--ink-soft)" stroke-width="1.5" marker-end="url(#ah-soft)"/>
- <text class="svg-lab f-soft" x="192" y="146">permitted: reads downward</text>
- <text class="svg-lab f-faint" x="192" y="162">e.g. bundle_validator reads inference.dry_run</text>
-
- <!-- recorded inversion upward -->
- <path d="M640,172 L640,130" fill="none" stroke="var(--gone)" stroke-width="1.5" stroke-dasharray="5 3" marker-end="url(#ah-gone)"/>
- <text class="svg-lab f-gone" x="652" y="146">recorded inversion, not fixed by the reshape:</text>
- <text class="svg-lab f-faint" x="652" y="162">kernel-layer readers of interpreter.scan and interpreter.pipe_func</text>
-
- <defs>
- <marker id="ah-soft" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
- <path d="M0,0 L10,5 L0,10 z" fill="var(--ink-soft)"/>
- </marker>
- <marker id="ah-gone" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
- <path d="M0,0 L10,5 L0,10 z" fill="var(--gone)"/>
- </marker>
- <marker id="ah-ink" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
- <path d="M0,0 L10,5 L0,10 z" fill="var(--ink)"/>
- </marker>
- </defs>
- </svg>
- </div>
- <figcaption>The reshape makes the two inversions <b>visible</b> rather than fixing them &mdash; <code>get_pipe_func_execution_mode</code> in <code>config.py</code> and the kernel-layer registry helpers that read <code>scan</code>. Visible is the honest state to hand to the layering work; fixing them is that work.</figcaption>
- </figure>
-</section>
-
-<section>
- <h2>Section by section</h2>
-
- <div class="col">
- <h3>Every address, old and new</h3>
- <p>Grouped by where each section lives today. The <code>_config</code> suffix goes at every depth (R2), so a nested key such as <code>graph_config.mermaid_config</code> becomes <code>graph.mermaid</code>.</p>
- </div>
-
- <div class="table-scroll">
- <table>
- <thead>
- <tr>
- <th>Today</th>
- <th>Becomes</th>
- <th>Destination</th>
- <th>Note</th>
- </tr>
- </thead>
- <tbody>
- <tr class="grp"><td colspan="4">from <span class="mono">[pipelex]</span> &mdash; the grab-bag, 16 sections</td></tr>
- <tr><td class="addr addr-old">pipelex.storage_config</td><td class="addr c-runtime">runtime.storage</td><td><span class="tag tag-runtime">runtime</span></td><td class="note">with <span class="mono">.local / .in_memory / .s3 / .gcp</span></td></tr>
- <tr><td class="addr addr-old">pipelex.secrets_config</td><td class="addr c-runtime">runtime.secrets</td><td><span class="tag tag-runtime">runtime</span></td><td class="note"></td></tr>
- <tr><td class="addr addr-old">pipelex.log_config</td><td class="addr c-runtime">runtime.log</td><td><span class="tag tag-runtime">runtime</span></td><td class="note"><span class="mono">rich_log_config &rarr; rich_log</span></td></tr>
- <tr><td class="addr addr-old">pipelex.aws_config</td><td class="addr c-runtime">runtime.aws</td><td><span class="tag tag-runtime">runtime</span></td><td class="note"></td></tr>
- <tr><td class="addr addr-old">pipelex.reporting_config</td><td class="addr c-runtime">runtime.reporting</td><td><span class="tag tag-runtime">runtime</span></td><td class="note"></td></tr>
- <tr><td class="addr addr-old">pipelex.tracing_config</td><td class="addr c-runtime">runtime.tracing</td><td><span class="tag tag-runtime">runtime</span></td><td class="note">second most-read section workspace-wide</td></tr>
- <tr><td class="addr addr-old">pipelex.observer_config</td><td class="addr c-runtime">runtime.observer</td><td><span class="tag tag-runtime">runtime</span></td><td class="note"></td></tr>
- <tr><td class="addr addr-old">pipelex.templating_config</td><td class="addr c-inference">inference.templating</td><td><span class="tag tag-inference">inference</span></td><td class="note">R3 &mdash; its only reader is the kernel&rsquo;s prompt-rendering seam</td></tr>
- <tr><td class="addr addr-old">pipelex.dry_run_config</td><td class="addr c-inference">inference.dry_run</td><td><span class="tag tag-inference">inference</span></td><td class="note">R3 &mdash; four of five fields configure mock inference output</td></tr>
- <tr><td class="addr addr-old">pipelex.mthds_config</td><td class="addr c-interpreter">interpreter.mthds</td><td><span class="tag tag-interpreter">interpreter</span></td><td class="note"></td></tr>
- <tr><td class="addr addr-old">pipelex.pipe_run_config</td><td class="addr c-interpreter">interpreter.pipe_run</td><td><span class="tag tag-interpreter">interpreter</span></td><td class="note"></td></tr>
- <tr><td class="addr addr-old">pipelex.pipe_func_config</td><td class="addr c-interpreter">interpreter.pipe_func</td><td><span class="tag tag-interpreter">interpreter</span></td><td class="note">R3 &mdash; kernel-layer reader is a recorded inversion</td></tr>
- <tr><td class="addr addr-old">pipelex.pipeline_execution_config</td><td class="addr c-interpreter">interpreter.pipeline_execution</td><td><span class="tag tag-interpreter">interpreter</span></td><td class="note">most-read section workspace-wide; <span class="mono">graph_config &rarr; graph</span> stays nested</td></tr>
- <tr><td class="addr addr-old">pipelex.scan_config</td><td class="addr c-interpreter">interpreter.scan</td><td><span class="tag tag-interpreter">interpreter</span></td><td class="note">R3 &mdash; kernel-layer readers are a recorded inversion</td></tr>
- <tr><td class="addr addr-old">pipelex.builder_config</td><td class="addr c-interpreter">interpreter.builder</td><td><span class="tag tag-interpreter">interpreter</span></td><td class="note"></td></tr>
- <tr><td class="addr addr-old">pipelex.kit_config</td><td class="addr c-kit">kit</td><td><span class="tag tag-kit">kit</span></td><td class="note">R3 &mdash; to the root; nothing in the package proper reads it</td></tr>
-
- <tr class="grp"><td colspan="4">from <span class="mono">[cogt]</span> &mdash; renamed whole, every child follows</td></tr>
- <tr><td class="addr addr-old">cogt.transport_max_retries</td><td class="addr c-inference">inference.transport_max_retries</td><td><span class="tag tag-inference">inference</span></td><td class="note">scalar</td></tr>
- <tr><td class="addr addr-old">cogt.model_deck_config</td><td class="addr c-inference">inference.model_deck</td><td><span class="tag tag-inference">inference</span></td><td class="note"></td></tr>
- <tr><td class="addr addr-old">cogt.llm_config</td><td class="addr c-inference">inference.llm</td><td><span class="tag tag-inference">inference</span></td><td class="note"><span class="mono">instructor_config</span> and the four vendor sections drop the suffix too</td></tr>
- <tr><td class="addr addr-old">cogt.img_gen_config</td><td class="addr c-inference">inference.img_gen</td><td><span class="tag tag-inference">inference</span></td><td class="note"><span class="mono">img_gen_job_config &rarr; img_gen_job</span></td></tr>
- <tr><td class="addr addr-old">cogt.extract_config</td><td class="addr c-inference">inference.extract</td><td><span class="tag tag-inference">inference</span></td><td class="note"></td></tr>
- <tr><td class="addr addr-old">cogt.gateway_test_config</td><td class="addr c-inference">inference.gateway_test</td><td><span class="tag tag-inference">inference</span></td><td class="note"></td></tr>
-
- <tr class="grp"><td colspan="4">from <span class="mono">[plugins]</span>, <span class="mono">[migration]</span> and the root</td></tr>
- <tr><td class="addr addr-old">plugins.disabled</td><td class="addr c-runtime">runtime.plugins.disabled</td><td><span class="tag tag-runtime">runtime</span></td><td class="note">all that remains of the table</td></tr>
- <tr><td class="addr addr-old">plugins.boot_orchestrator</td><td class="addr c-gone">&mdash;</td><td><span class="tag tag-gone">deleted</span></td><td class="note">R5 &mdash; becomes a boot argument</td></tr>
- <tr><td class="addr addr-old">migration.migration_maps</td><td class="addr c-gone">&mdash;</td><td><span class="tag tag-gone">deleted</span></td><td class="note">the Migrator ledger supersedes it</td></tr>
- <tr><td class="addr addr-old">session_id</td><td class="addr c-gone">&mdash;</td><td><span class="tag tag-gone">deleted</span></td><td class="note">R4 &mdash; no replacement accessor in <span class="mono">pipelex</span></td></tr>
- </tbody>
- </table>
- </div>
-</section>
-
-<section>
- <h2>The three deletions</h2>
-
- <div class="col">
- <p>Two of these were never configuration at all &mdash; they were process state and a boot argument that happened to live on the config object. Neither is set in any TOML anywhere in the workspace, so both <code>delete_key</code> ops skip on every real file and exist only to account for a schema path.</p>
- </div>
-
- <div class="rail">
- <div>
- <dt class="c-gone">session_id</dt>
- <dd>Process state on the config object since the initial commit, and <code>extra="forbid"</code> let a user pin it from TOML by accident. Nothing in <code>pipelex/pipelex/</code> reads it. Its one chain ends at a Temporal search attribute that is disabled in every deployed environment and queried by nothing. The plugin will mint its own per-process id; <code>JobMetadata.session_id</code> stays as its wire carrier.</dd>
- </div>
- <div>
- <dt class="c-gone">plugins.boot_orchestrator</dt>
- <dd>Set in no TOML anywhere. <code>RuntimeBoot.setup</code> writes the <em>argument</em> into the config object and the plugin gate reads it straight back &mdash; the config was being used as a side channel. It becomes boot-scoped state on <code>RuntimeHub</code> with an accessor (the precedent is <code>is_dry_run_forced</code>) plus a <code>build_registrar</code> parameter.</dd>
- </div>
- <div>
- <dt class="c-gone">[migration]</dt>
- <dd>One field, <code>migration_maps</code>, whose only consumer annotated validation errors with renaming hints. Migrator&rsquo;s own ledger supersedes it. The <code>.mthds</code> renaming hints are an accepted loss, recorded, until the language-surface project restores them.</dd>
- </div>
- </div>
-</section>
-
-<section>
- <h2>The file itself</h2>
-
- <div class="col">
- <h3>Two tables are interleaved today</h3>
- <p>The packaged defaults file is physically out of order: <code>[pipelex]</code> is split across three spans and <code>[migration]</code> across two, which is what makes both resolve to a tomlkit <code>OutOfOrderTableProxy</code>. Ruling R6 rewrites the file in order &mdash; a content edit of a reference document, not a schema change, since the transform comparator is path-based.</p>
- </div>
-
- <figure>
- <div class="fig-frame">
- <svg viewBox="0 0 1120 420" role="img" aria-label="The packaged pipelex.toml today reads as seven spans in which the pipelex table appears three times and migration twice; after the reshape it is four contiguous blocks.">
- <text class="svg-title f-faint" x="140" y="30">TODAY &mdash; pipelex/pipelex.toml, 7 spans</text>
- <text class="svg-title f-faint" x="700" y="30">AFTER &mdash; 4 contiguous blocks</text>
-
- <!-- today: 7 spans, equal blocks -->
- <g>
- <rect x="140" y="46" width="230" height="44" rx="2" fill="var(--ink)" opacity="0.10"/>
- <rect x="140" y="46" width="4" height="44" fill="var(--ink)"/>
- <text class="svg-node f-ink" x="158" y="66">[pipelex]</text>
- <text class="svg-sub f-faint" x="158" y="82">lines 3&ndash;134 &middot; span 1 of 3</text>
-
- <rect x="140" y="94" width="230" height="44" rx="2" fill="var(--inference)" opacity="0.12"/>
- <rect x="140" y="94" width="4" height="44" fill="var(--inference)"/>
- <text class="svg-node f-inference" x="158" y="114">[cogt]</text>
- <text class="svg-sub f-faint" x="158" y="130">lines 135&ndash;271</text>
-
- <rect x="140" y="142" width="230" height="44" rx="2" fill="var(--ink)" opacity="0.10"/>
- <rect x="140" y="142" width="4" height="44" fill="var(--ink)"/>
- <text class="svg-node f-ink" x="158" y="162">[pipelex]</text>
- <text class="svg-sub f-faint" x="158" y="178">lines 272&ndash;413 &middot; span 2 of 3</text>
-
- <rect x="140" y="190" width="230" height="44" rx="2" fill="var(--gone)" opacity="0.12"/>
- <rect x="140" y="190" width="4" height="44" fill="var(--gone)"/>
- <text class="svg-node f-gone" x="158" y="210">[migration]</text>
- <text class="svg-sub f-faint" x="158" y="226">lines 414&ndash;439 &middot; span 1 of 2</text>
-
- <rect x="140" y="238" width="230" height="44" rx="2" fill="var(--ink)" opacity="0.10"/>
- <rect x="140" y="238" width="4" height="44" fill="var(--ink)"/>
- <text class="svg-node f-ink" x="158" y="258">[pipelex]</text>
- <text class="svg-sub f-faint" x="158" y="274">lines 440&ndash;446 &middot; span 3 of 3</text>
-
- <rect x="140" y="286" width="230" height="44" rx="2" fill="var(--gone)" opacity="0.12"/>
- <rect x="140" y="286" width="4" height="44" fill="var(--gone)"/>
- <text class="svg-node f-gone" x="158" y="306">[migration]</text>
- <text class="svg-sub f-faint" x="158" y="322">lines 447&ndash;448 &middot; span 2 of 2</text>
-
- <rect x="140" y="334" width="230" height="44" rx="2" fill="var(--runtime)" opacity="0.12"/>
- <rect x="140" y="334" width="4" height="44" fill="var(--runtime)"/>
- <text class="svg-node f-runtime" x="158" y="354">[plugins]</text>
- <text class="svg-sub f-faint" x="158" y="370">lines 449&ndash;452</text>
- </g>
-
- <!-- brace annotations -->
- <path d="M382,46 L394,46 L394,282 L382,282" fill="none" stroke="var(--ink-soft)" stroke-width="1.25"/>
- <text class="svg-lab f-soft" x="402" y="158">two OutOfOrderTableProxy</text>
- <text class="svg-lab f-faint" x="402" y="174">objects the migrator would</text>
- <text class="svg-lab f-faint" x="402" y="190">otherwise have to reason about</text>
-
- <path d="M578,218 L680,218" fill="none" stroke="var(--ink)" stroke-width="1.5" marker-end="url(#ah-ink2)"/>
- <text class="svg-lab f-soft" x="560" y="200">rewritten in order (R6)</text>
-
- <!-- after: 4 contiguous blocks -->
- <g>
- <rect x="700" y="46" width="240" height="78" rx="2" fill="var(--runtime)" opacity="0.12"/>
- <rect x="700" y="46" width="4" height="78" fill="var(--runtime)"/>
- <text class="svg-node f-runtime" x="718" y="72">[runtime]</text>
- <text class="svg-sub f-faint" x="718" y="90">storage, secrets, log, aws,</text>
- <text class="svg-sub f-faint" x="718" y="106">reporting, tracing, observer, plugins</text>
-
- <rect x="700" y="128" width="240" height="78" rx="2" fill="var(--inference)" opacity="0.12"/>
- <rect x="700" y="128" width="4" height="78" fill="var(--inference)"/>
- <text class="svg-node f-inference" x="718" y="154">[inference]</text>
- <text class="svg-sub f-faint" x="718" y="172">model_deck, llm, img_gen, extract,</text>
- <text class="svg-sub f-faint" x="718" y="188">gateway_test, templating, dry_run</text>
-
- <rect x="700" y="210" width="240" height="78" rx="2" fill="var(--interpreter)" opacity="0.12"/>
- <rect x="700" y="210" width="4" height="78" fill="var(--interpreter)"/>
- <text class="svg-node f-interpreter" x="718" y="236">[interpreter]</text>
- <text class="svg-sub f-faint" x="718" y="254">mthds, pipe_run, pipe_func,</text>
- <text class="svg-sub f-faint" x="718" y="270">pipeline_execution, scan, builder</text>
-
- <rect x="700" y="292" width="240" height="78" rx="2" fill="var(--kit)" opacity="0.12"/>
- <rect x="700" y="292" width="4" height="78" fill="var(--kit)"/>
- <text class="svg-node f-kit" x="718" y="318">[kit]</text>
- <text class="svg-sub f-faint" x="718" y="336">preferred_agent_targets</text>
- </g>
-
- <text class="svg-lab f-faint" x="960" y="72">one scheme,</text>
- <text class="svg-lab f-faint" x="960" y="88">read top to bottom</text>
-
- <defs>
- <marker id="ah-ink2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
- <path d="M0,0 L10,5 L0,10 z" fill="var(--ink)"/>
- </marker>
- </defs>
- </svg>
- </div>
- <figcaption>Blocks are spans, not to scale &mdash; the message is the repetition. Line numbers are real, measured on <code>dev</code> at <code>052b9df06</code>. The kit template that seeds every user&rsquo;s <code>~/.pipelex/pipelex.toml</code> carries only <span class="mono">[pipelex.*]</span>, <span class="mono">[cogt.*]</span> and <span class="mono">[plugins]</span> sections, so <b>every installation exercises the full set of moves</b>. The migration is not an edge case; it is the common case.</figcaption>
- </figure>
-</section>
-
-<section>
- <h2>The ledger entry</h2>
-
- <div class="col">
- <h3>37 ops, and the order is load-bearing</h3>
- <p>Children move <em>out</em> of <code>[pipelex]</code> before <code>[pipelex]</code> is renamed. <code>[cogt]</code> is renamed before anything moves <em>into</em> <code>[inference]</code>. A parent is renamed before the suffix renames inside it, so a root rename keeps every child in place in the user&rsquo;s file. A <code>delete_key</code> whose source sits inside a table that later moves comes first, so its source is still a schema-1 path. Whole-table deletions go last.</p>
- </div>
-
- <div class="ops"><b> 1.</b> move_key pipelex.storage_config &rarr; runtime.storage
-<b> 2.</b> move_key pipelex.secrets_config &rarr; runtime.secrets
-<b> 3.</b> move_key pipelex.log_config &rarr; runtime.log
-<b> 4.</b> rename runtime.log.rich_log_config &rarr; rich_log
-<b> 5.</b> move_key pipelex.aws_config &rarr; runtime.aws
-<b> 6.</b> move_key pipelex.reporting_config &rarr; runtime.reporting
-<b> 7.</b> move_key pipelex.tracing_config &rarr; runtime.tracing
-<b> 8.</b> move_key pipelex.observer_config &rarr; runtime.observer
-<b> 9.</b> delete_key plugins.boot_orchestrator <span class="c-gone">R5 &mdash; before the move; always skips</span>
-<b>10.</b> move_key plugins &rarr; runtime.plugins
-<b>11.</b> rename cogt &rarr; inference <span class="c-inference">every [cogt.*] header follows</span>
-<b>12.</b> rename inference.model_deck_config &rarr; model_deck
-<b>13.</b> rename inference.llm_config &rarr; llm
-<b>14.</b> rename inference.llm.instructor_config &rarr; instructor
-<b>15.</b> rename inference.llm.openai_config &rarr; openai
-<b>16.</b> rename inference.llm.anthropic_config &rarr; anthropic
-<b>17.</b> rename inference.llm.google_config &rarr; google
-<b>18.</b> rename inference.llm.mistral_config &rarr; mistral
-<b>19.</b> rename inference.img_gen_config &rarr; img_gen
-<b>20.</b> rename inference.img_gen.img_gen_job_config &rarr; img_gen_job
-<b>21.</b> rename inference.extract_config &rarr; extract
-<b>22.</b> rename inference.gateway_test_config &rarr; gateway_test
-<b>23.</b> move_key pipelex.templating_config &rarr; inference.templating
-<b>24.</b> move_key pipelex.dry_run_config &rarr; inference.dry_run
-<b>25.</b> move_key pipelex.kit_config &rarr; kit
-<b>26.</b> rename pipelex &rarr; interpreter
-<b>27.</b> rename interpreter.mthds_config &rarr; mthds
-<b>28.</b> rename interpreter.pipe_run_config &rarr; pipe_run
-<b>29.</b> rename interpreter.pipe_func_config &rarr; pipe_func
-<b>30.</b> rename interpreter.pipeline_execution_config &rarr; pipeline_execution
-<b>31.</b> rename interpreter.pipeline_execution.graph_config &rarr; graph
-<b>32.</b> rename interpreter.pipeline_execution.graph.mermaid_config &rarr; mermaid
-<b>33.</b> rename interpreter.pipeline_execution.graph.reactflow_config &rarr; reactflow
-<b>34.</b> rename interpreter.scan_config &rarr; scan
-<b>35.</b> rename interpreter.builder_config &rarr; builder
-<b>36.</b> delete_table migration <span class="c-gone">the parent goes with its one field</span>
-<b>37.</b> delete_key session_id <span class="c-gone">R4</span></div>
-
- <div class="col">
- <h3>The consequence nobody had written down</h3>
- <p>Because the ops chain, a nested rename under a moved parent always has an intermediate address at one end &mdash; whichever way you order it. Rename the child first and the <em>destination</em> is intermediate; move the parent first and the <em>source</em> is.</p>
- </div>
-
- <figure>
- <div class="fig-frame">
- <svg viewBox="0 0 1120 220" role="img" aria-label="An address passes through an intermediate state that belongs to neither fingerprint: cogt.llm_config.instructor_config becomes inference.llm_config.instructor_config after op 11, then inference.llm.instructor after ops 13 and 14.">
- <rect x="30" y="60" width="300" height="60" rx="3" fill="var(--sunken)" stroke="var(--rule-strong)" stroke-width="1"/>
- <text class="svg-lab f-ink" x="46" y="88">cogt.llm_config.instructor_config</text>
- <text class="svg-sub f-runtime" x="46" y="107">in fingerprint@1</text>
-
- <path d="M340,90 L400,90" fill="none" stroke="var(--ink-soft)" stroke-width="1.5" marker-end="url(#ah-soft2)"/>
- <text class="svg-lab f-soft" x="344" y="78">op 11</text>
-
- <rect x="410" y="60" width="310" height="60" rx="3" fill="var(--gone-wash)" stroke="var(--gone)" stroke-width="1.25" stroke-dasharray="4 3"/>
- <text class="svg-lab f-ink" x="426" y="88">inference.llm_config.instructor_config</text>
- <text class="svg-sub f-gone" x="426" y="107">in neither fingerprint</text>
-
- <path d="M730,90 L790,90" fill="none" stroke="var(--ink-soft)" stroke-width="1.5" marker-end="url(#ah-soft2)"/>
- <text class="svg-lab f-soft" x="734" y="78">ops 13, 14</text>
-
- <rect x="800" y="60" width="290" height="60" rx="3" fill="var(--sunken)" stroke="var(--rule-strong)" stroke-width="1"/>
- <text class="svg-lab f-ink" x="816" y="88">inference.llm.instructor</text>
- <text class="svg-sub f-interpreter" x="816" y="107">in fingerprint@2</text>
-
- <path d="M565,132 L565,166" fill="none" stroke="var(--gone)" stroke-width="1.25" marker-end="url(#ah-gone2)"/>
- <text class="svg-lab f-gone" x="565" y="186" text-anchor="middle">so op legality and the destination cross-check must be walked over the entry&rsquo;s sequential path state,</text>
- <text class="svg-lab f-faint" x="565" y="202" text-anchor="middle">not against fingerprint@1 and fingerprint@2 alone</text>
-
- <defs>
- <marker id="ah-soft2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
- <path d="M0,0 L10,5 L0,10 z" fill="var(--ink-soft)"/>
- </marker>
- <marker id="ah-gone2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
- <path d="M0,0 L10,5 L0,10 z" fill="var(--gone)"/>
- </marker>
- </defs>
- </svg>
- </div>
- <figcaption>Found by writing the entry down at session S3, and folded into the Phase&nbsp;0 contract and the Phase&nbsp;1 coverage check. It changes no op above &mdash; the alternative ordering (one op per leaf section, every source a schema-1 path) cannot avoid the intermediate ends either.</figcaption>
- </figure>
-</section>
-
-<section>
- <h2>What catches a mistake</h2>
-
- <div class="col">
- <p>A 37-op entry written by hand needs more than review. Three checks read it from different ends, and each is red at authoring time on the branch &mdash; not at a user&rsquo;s boot.</p>
- </div>
-
- <div class="rail">
- <div>
- <dt>Coverage</dt>
- <dd>Every removed path is the source of some op, and every destination is an added path of <code>fingerprint@2</code>. Catches an unaccounted removal and a misspelled destination with the same test &mdash; they are the same defect seen from either end.</dd>
- </div>
- <div>
- <dt>Convergence</dt>
- <dd>Replays the entry over the <em>new</em> packaged defaults and the <em>new</em> kit template. It must apply nothing. A migration that still finds work to do on an already-migrated file is not finished.</dd>
- </div>
- <div>
- <dt>Transform golden</dt>
- <dd>Applies the entry to <code>defaults@1</code> and demands exactly the paths of <code>defaults@2</code>. Renaming <code>pipelex</code> before its runtime children moved out, or deleting <code>boot_orchestrator</code> after <code>plugins</code> moved, is red here.</dd>
- </div>
- <div>
- <dt>The type checker</dt>
- <dd>Field names equal TOML keys with no aliases, so every one of the ~145 package read sites that is missed is a pyright error. The two shapes it cannot see &mdash; raw-dict TOML reads and inline-TOML test fixtures &mdash; get a hand pass.</dd>
- </div>
- </div>
-</section>
-
-<section>
- <h2>How it ships</h2>
-
- <div class="col">
- <h3>The reshape cannot land alone</h3>
- <p>A user whose <code>~/.pipelex/pipelex.toml</code> is in the old shape needs two things to exist before the new shape reaches PyPI: a boot that tolerates the old file with a warning instead of failing, and a <code>pipelex migrate</code> that rewrites it. Both are Migrator Phase&nbsp;3. Releases have run every one to three days lately, so &ldquo;it will not be cut into a release&rdquo; is not a plan.</p>
- <p>Enforcement is by ordering, plus two tripwires: this branch&rsquo;s pull request is titled <code>MERGE AFTER Migrator Phase 3 &mdash; &hellip;</code>, and Phase&nbsp;3 adds a step to <code>/release</code> that refuses a moved schema without its ledger entry.</p>
- </div>
-
- <div class="panel">
- <h4>Read next</h4>
- <p><code>&lt;workspace-root&gt;/wip/migrator-3/reshape.md</code> is the normative source for everything on this page &mdash; the census with its per-section reader measurements, the full rulings R1&ndash;R7 with the reasoning that was in front of Louis, what the reshape explicitly does <em>not</em> do, and the downstream repo sweep. <code>&lt;workspace-root&gt;/wip/migrator-3/sequencing.md</code> orders the sessions; this branch is S4.</p>
- </div>
-</section>
-
-<footer class="footer">
- Reading aid for session S4 &middot; drawn against <span class="mono">dev @ 052b9df06</span> &middot; line numbers and field lists measured from <span class="mono">pipelex/pipelex.toml</span>, <span class="mono">system/configuration/configs.py</span> and <span class="mono">cogt/config_cogt.py</span> on 2026-08-15.<br>
- Not normative. Where this page and <span class="mono">reshape.md</span> disagree, <span class="mono">reshape.md</span> is right.
-</footer>
-
-</div>
-</body>
-</html>
diff --git a/wip/reshape/s7-progress.md b/wip/reshape/s7-progress.md
deleted file mode 100644
index cc4f95ff7..000000000
--- a/wip/reshape/s7-progress.md
+++ /dev/null
@@ -1,86 +0,0 @@
-# S7 — landing the pair: progress in `_reshape/`
-
-The `_reshape/` half of [S7](../../../wip/migrator-3/sequencing.md#s7--land-the-pair-louis-go-twice-merge-and-release), tracked as it is built. The release half runs in `pipelex/` on `dev` and is not this document's subject. Everything below is committed and pushed; what is left of S7 is the merge, and that is Louis' go.
-
-## Where it stands
-
-| # | Item | State |
-|---|---|---|
-| 1 | The final join — re-check, not a join | ✅ `dev` has not moved |
-| 2 | The out-of-walk warning text (#1114 review §1) | ✅ built, tested, documented |
-| 3 | `add-migration` re-derive, compared op for op | ✅ done — the two agree |
-| 4 | The two Phase-3 end-to-end tests on **old-shape** fixtures | ✅ built, mutation-tested |
-| 5 | The two #1111 review items | ✅ both built |
-| 6 | `make check` + `make agent-test` | ✅ both green |
-| 7 | Mark #1111 ready, retitle, **(Louis go)**, merge | ✅ ready + retitled — ⏳ **the merge is Louis'** |
-
-## 1 — the final join is a re-check
-
-Verified 2026-08-17: `git rev-list --left-right --count origin/dev...HEAD` reads `0 11` against `origin/dev` = `6264de0fd`, the tree is clean, and #1111 reads `MERGEABLE` / `CLEAN` at head `a93c5caad`, still a draft. So the fourth join was the final one. Every S7 precondition re-verified: both `migrate_cmd.py` modules and `.claude/skills/add-migration/SKILL.md` resolve on `dev`, `/release` carries step 3b, and the only remote `release/` branch is the merged `origin/release/v0.45.0`. **Re-run the fetch before merging** — `dev` cuts a release every one to three days, and if it has moved the verb is `git merge origin/dev`, never `rebase`.
-
-## 2 — the warning names `pipelex migrate` only where it would write
-
-`stale_configuration_warning` now takes `walked_dirs` and splits its stale files into the ones `pipelex migrate` would reach and the ones it would not, closing #1114 review §1. A file outside the walk gets "…is yours to update where it lives" instead of a command that would report nothing to do; a load spanning both gets both sentences, each naming its own files; the blocked-material sentence drops the command name when nothing is in reach. Same rule as part 3's ruling on the validation error — *a remedy is named only where it would write*. `--config-dir` was deliberately **not** added, per the review's own reasoning.
-
-**The one design decision worth knowing.** The walk had to become readable from the loader, and it could not be imported: `config_loader → migration.run → config_loader` is a two-node cycle, and pyright's `reportImportCycles` counts a function-level edge exactly like a module-level one, so a deferred import is not a way out. The derivation therefore moved **down** onto `ConfigLoader.existing_config_dirs`, and `migration.run.config_directories_to_migrate()` now reads it and does nothing else. One derivation, read from both ends — which is the property that keeps a boot from promising a remedy the command declines. The three loaders each pass `config_manager.existing_config_dirs`.
-
-Tests are in `tests/unit/pipelex/system/configuration/test_boot_tolerance.py::TestWhatTheWarningSays` (out-of-walk, the mixed case, the walk-is-not-recursive specimen, and the symlinked file below) and each was mutation-tested. `tests/unit/pipelex/migration/test_migration_run.py::TestWhichDirectoriesAreWalked` was rewritten to patch the loader's two directory *properties* rather than replace the `config_manager` singleton — with the singleton mocked out, the delegation and the derivation would both go untested. `docs/migration-ledger.md` → "Boot tolerance" carries the rule; the changelog's boot-tolerance bullet was amended rather than given a new one, the feature being unreleased.
-
-**Both ends of "one derivation" are now pinned by a sentinel, and the first attempt was not.** The review caught it: `assert config_directories_to_migrate() == config_manager.existing_config_dirs` is a tautology, since the function *is* that expression and both sides came from the same patched properties — it would have passed just as well over a second derivation, which is the only thing it was there to forbid. Each end now patches `ConfigLoader.existing_config_dirs` to a value neither end could compute and asserts the answer is that value: the migrate side must return the sentinel directory, and the loader side, walking nothing, must decline to name the command for the very file it just carried forward. Both mutation-tested by re-deriving the walk locally at each end.
-
-**One real bug came out of the same review, and it is a common setup rather than a corner.** `_is_within` resolved the whole path before taking its parent, so a `pipelex.toml` **symlinked out to a dotfiles repository** — chezmoi, stow and yadm all do this — landed on the target's directory and was told `pipelex migrate` could not reach it. The walk enumerates the link by `iterdir` and writes straight through it, so the command reaches it perfectly well; the warning was sending the user to hand-edit a file the tool would have fixed. The fix is to resolve the *parent* and not the file (`path.parent.resolve()`), which keeps the reason the resolve was there — a `config_dir=` reaching the same directory by another spelling — and drops the question it was accidentally answering, namely where the file points.
-
-## 3 — the re-derive, and what it proved
-
-The entry was re-derived **blind to the ledger** and compared to the hand-authored one. Method: roll `pipelex-config.toml` back to `current_schema_version = 1` with the entry removed, delete the `@2` goldens, run `make cmig` to see the gate refuse — it does, with `removal_needs_a_bump` naming every removed path — then reconstruct the old→new path mapping from `fingerprint@1` versus the live fingerprint by subtree-shape matching plus a parent/child affinity fixpoint, and compare that mapping against the one `walk_entry` induces from the entry. The script is `derive.py` under the job scratch directory; it is a one-off, not a checked-in gate. The ledger and goldens were restored **by file copy, never `git checkout`**, and `cl` + `cmig` are green again with both files unmodified.
-
-**Result: no disagreement.** 192 of the 200 moves were derived independently and every one is identical to the entry's. Deletions match exactly: `[migration]` and its three descendants, `plugins.boot_orchestrator`, `session_id` — precisely the three things the entry's `guidance` says go away, and the R4/R5 rulings. No dead ops, no occupied destinations, and no removed path left in place.
-
-**The eight the derivation could not decide are not decisions the entry makes**, which is the finding worth keeping. A fingerprint is a *type* projection, so two `bool` leaves under one table, or a `list[str]` in two places, are indistinguishable in it — that is why `plugins.disabled` and five booleans came back undecidable. But the entry's 37 operations name **only tables**, with exactly two exceptions, both `delete_key` on the two retired scalars (`plugins.boot_orchestrator`, `session_id`). Every leaf travels with its parent table, name intact, so the entry contains no per-leaf assignment that could be got wrong. The ambiguity is a property of reconstructing a rename map from a type projection, not a gap in the entry — and it is one more instance of the rule this project has met before: *a type projection cannot decide schema membership*.
-
-## 4 — the end-to-end tests on a pre-reshape machine
-
-`tests/e2e/pipelex/cli/test_migrate_commands.py` gains `TestAPreReshapeMachine`, and the entry that the reshape adds now has an end-to-end proof it never had: it was proved by the engine's own goldens and by nothing else. The rest of the chain is what the class adds — the walk, the filesystem, the backup, the binary a person types.
-
-**The fixture is `goldens/pipelex-config/[email protected]`, read live from the package.** ⏸ C's correction retired the recipe the charter carried (`git show 052b9df06:.pipelex/pipelex_override.toml` cannot work — the file is gitignored), and neither remaining candidate is as good as this one: `defaults@1` *is* the packaged `pipelex.toml` as it stood at schema 1, the very document the entry was authored against, so it names every path the entry touches and nothing it does not. Read live rather than transcribed, for the same reason the telemetry fixture is: a transcribed one would eventually describe a shape the ledger no longer migrates and would go on passing. The project tier beside it is hand-written from the table headers of this machine's `~/.pipelex/pipelex_override.toml.pre-reshape.bak` with **every value invented** — that file is personal, and a checked-in fixture carries none of a person's values.
-
-Five tests, both loops:
-
-- **the human loop** — boots stale, `pipelex migrate --yes`, both files named in the report, one backup each holding the original, boots clean. Its strong assertion is that the migrated global file says *exactly what the package's own `pipelex.toml` says today*, compared semantically because the entry's guidance says layout moves; `cmig` proves the engine does that, and this proves the command does.
-- **the agent loop** — the JSON plan names the entry per file rather than once for the run, writes nothing and leaves no backup, then the apply writes both.
-- **two surfaces in one run** — the only place two ledgers meet, which is where a misclaimed file would either be reported clean or handed a ledger with nothing to say about it. Four files written, then clean.
-- **no user value rendered** — a bucket name planted in the tier, across the human CLI, the JSON plan, the Markdown plan and the apply. A bucket name rather than a credential because the main configuration holds none, secrets arriving through the environment; it is still private infrastructure in the file a person pastes into an issue.
-- **old *and* wrong** — a pre-reshape file carrying a key no entry explains. The boot fails, in one envelope, and the block reports both halves: the reshape is pending on this file, and one path is a person's.
-
-**Mutation-tested.** Pointing the fixture at `defaults@2` (a machine already migrated) reddens four of the five; the fifth is the value test, whose subject is the tier, correctly unaffected. Adding one key to "today's document" reddens the semantic comparison, so it is not comparing something to itself.
-
-**Why a new class rather than a rewrite of the two telemetry tests.** The charter says "point the two end-to-end tests at old-shape fixtures", and the two it means are the human and agent loops — both are covered here. Rewriting them in place would have cost the coverage they already carry: `telemetry-config@2` is a *pre-history* entry against a hand-authored flat document, a different shape of change from a root rename, and it is the only entry of that kind in the tree.
-
-## 5 — the two #1111 review items
-
-**`pipe_func_execution_transport.py`** no longer names `pipe_func_config.timeout_seconds`. Verified 2026-08-16 that our Daytona plugin owns its own root (`daytona.toml` → `pipe_func_timeout_seconds`) and does not extend `[interpreter.pipe_func]`, which holds `execution_mode` and nothing else — so the honest sentence is that the timeout is plugin-configured, and the docstring now says that rather than asserting a core address no reader could ever find.
-
-**`RuntimeHub.reset_boot_state` now releases the isolated-execution probe**, and the docstring says why. Of the three options in the note, "leave the asymmetry unexplained" was the weakest and the other two were a real choice; releasing it wins because the probe *is* process-global state a boot established, and it is the one of the three written **conditionally** — only a plugin claiming `HubSlot.ISOLATED_EXECUTION_PROBE` installs one — so a boot that claims nothing inherits rather than overwrites. The note's argument against rested on the probe having no module-level accessor; it does (`is_in_isolated_execution`, read by `ReportingManager`), so that half did not survive checking. Pinned by a second test in `tests/unit/pipelex/test_runtime_boot_releases_boot_scoped_state.py`, mutation-tested.
-
-## 6 — the gates, and the one doc a drift review turned up
-
-`make check` is green end to end, `check-migration-schemas` included, and `make agent-check` is green with both drift contracts re-acked. Two contracts opened on this session's changes and each was reviewed rather than waved through:
-
-- **`hub-layering-convention`**, on `runtime_hub.py`. The partition table was re-derived rather than read — every public module-level function enumerated from the module by AST and checked against the page — and it is still complete; the probe release adds no accessor and the page says nothing about what a teardown releases, so no sentence in it moved.
-- **`config-docs`**, on `config_loader.py` and `config_surface.py`. The contract's own question is whether anything narrowed a value domain the fingerprint cannot record, and the answer is no by construction: neither trigger touches a config model, and no ledger moved.
-
-That second review did turn up one genuinely stale page, in the direction the contract exists to catch. **`docs/configuration/index.md` documents the merge order and the new four-section layout and said nothing about a file written against the old one** — and this branch is what makes that a user's problem, because `pipelex-config@2` is the surface's first entry ever, so from this release every existing installation's own `pipelex.toml` is the file that goes out of date. The page now carries a short note on the tolerant boot, the doctor row, `pipelex migrate` and its timestamped backup, and the out-of-walk rule for a `config_dir` load, linking the Migration Ledger page — which lives in the contributor nav and had no path from the configuration section at all.
-
-## 7 — where the pull request stands, and what is left
-
-The branch is pushed as two commits on top of the fourth join — the work, then the answer to the review round on it — with `make check` and `make agent-test` green before the first and `make agent-check` plus the affected suites green before the second. **#1111 is out of draft and retitled** — the `MERGE AFTER Migrator Phase 3 —` prefix is gone, because the condition it named holds: parts 1, 2 and 3 are all merged on `dev` as #1113, #1114 and #1115. Its description no longer opens with the embargo; it opens with the embargo being lifted, and carries a short section on what the final pass added. `dev` was re-fetched immediately before the push and has not moved from `6264de0fd`, so the branch is still 0 behind and the final join stayed a re-check.
-
-**The review round on that push is triaged and answered.** Every check is green, cubic's included, and it left four findings, all of them acted on: the symlink bug in `_is_within` (P2, a real one — §2 above), the tautological delegation assertion (§2 above), an unqualified module path in `pr-1111-review-notes.md`, converted to name the field rather than a line number so it cannot go stale again, and this document's own sections being out of numeric order.
-
-**What is left in S7 is not this venue's.** The merge is Louis' go. Then `/release` runs in `pipelex/` on `dev` — a minor bump, with step 3b firing on the `pipelex-config@2` entry — and then the first machine, whose first line is restoring this laptop's two `*.pre-reshape.bak` files under their live names, or the run finds nothing to migrate and proves nothing.
-
-## Related
-
-- The runbook: [`wip/migrator-3/sequencing.md`](../../../wip/migrator-3/sequencing.md) § S7, and ⏸ C above it for the four corrections it folded in.
-- The #1111 review deferrals: [`pr-1111-review-notes.md`](./pr-1111-review-notes.md) — items 1 and 2 are the ones S7 owns and both are now done; 3, 4, 5, 6 and 7 have their own homes.
-- The #1114 review deferrals: `wip/migrator/migrator-pr-1114-review-followups.md` on `dev` — §1 is the one S7 owns, and it is done.
diff --git a/wip/rogue-extra-headers-guard-plan.md b/wip/rogue-extra-headers-guard-plan.md
deleted file mode 100644
index 79d1cff87..000000000
--- a/wip/rogue-extra-headers-guard-plan.md
+++ /dev/null
@@ -1,224 +0,0 @@
-# Guarding against rogue outbound headers — implementation plan
-
-**Written 2026-08-14, to be executed after the templating-style branch merges.** This answers item 2 of [`prompting-style/gateway-config-outlived-prompting-target.md`](prompting-style/gateway-config-outlived-prompting-target.md) — "decide whether the per-model unknown-key → HTTP-header rule should survive" — which that document deliberately left open because it is a design question about the backend loader, not part of the templating change.
-
-Progress is tracked with the checkboxes below. **The checkpoint marked ✋ is a hard stop: the executing agent must not proceed past it without Louis' explicit go.** At the checkpoint, update this doc first — tick boxes, fill the checkpoint log at the bottom — so the work can hand off into a fresh session with nothing lost.
-
-## The behaviour today
-
-`InferenceBackendLibrary.load` (`pipelex/cogt/model_backends/backend_library.py:195-199`) loops over each per-model TOML table and moves every key that is not a field of `InferenceModelSpecBlueprint` into `extra_headers`:
-
-```python
-extra_headers: dict[str, str] = {}
-for model_spec_key in model_spec_dict:
- if model_spec_key not in model_spec_blueprint_standard_fields:
- extra_headers[model_spec_key] = model_spec_blueprint_dict.pop(model_spec_key)
-```
-
-That dict lands on `InferenceModelSpec.extra_headers` (`model_spec.py:34`) and every provider factory forwards it to the wire as request headers — `gateway_factory.py:99`, `portkey_factory.py:47`, `openai_completions_factory.py:118`, `openai_responses_factory.py:113`, `openrouter_completions_factory.py:24`, `blackboxai_completions_factory.py:29`.
-
-So the rule is: **anything the blueprint does not recognise is assumed to be a header the author meant to send, and is sent, silently.** There is no allowlist, no shape check, and no log line.
-
-Note the asymmetry with the `[defaults]` block of the same file, which is validated strictly and raises on an unknown key — except for the remote gateway payload, where `drop_unknown_gateway_defaults` (`gateway_config.py:16`) prunes it as version skew. Same input, three different fates depending on where it sits and where it came from.
-
-## What is actually in the bag (measured 2026-08-14)
-
-Re-measure before starting; the served config moves independently of this repo.
-
-```bash
-# local backend TOMLs: per-model keys the blueprint does not know
-python3 -c "
-import tomllib, pathlib
-KNOWN = {'enabled','sdk','variant','model_type','model_id','inputs','outputs','costs','structure_method','thinking_mode','max_tokens','max_prompt_images','listed_constraints','valued_constraints','rules'}
-for p in sorted(pathlib.Path('.pipelex/inference/backends').glob('*.toml')):
- data = tomllib.loads(p.read_text())
- extras = {k for name, spec in data.items() if name != 'defaults' and isinstance(spec, dict) for k in spec if k not in KNOWN}
- if extras: print(p.name, sorted(extras))
-"
-# the served gateway payload (URL pinned in pipelex/system/pipelex_service/pipelex_details.py)
-curl -s https://pipelex-config.s3.eu-west-3.amazonaws.com/pipelex_remote_config_12.json | python3 -m json.tool | head -40
-```
-
-What that turned up:
-
-| Source | Key | Genuinely a header? |
-|---|---|---|
-| `.pipelex/inference/backends/portkey.toml`, per-model | `x-portkey-provider` | yes — read by Portkey |
-| served gateway config, on every model | `x-portkey-config` | yes — also read back locally by `GatewayDeck.get_config_id` (`gateway_deck.py:9`) |
-| served gateway config, on the image models | `endpoint_path` | **no** — internal routing, read back by `gateway_img_gen_worker.py:86` |
-
-No other local backend TOML uses the mechanism at all, and the served `[defaults]` block is clean.
-
-Two things follow. First, the mechanism is load-bearing and cannot simply be closed: the gateway would lose its per-model Portkey config id. Second, **the bag is already not what its name says** — `endpoint_path` is our own routing metadata, and it escapes the wire only by luck, because the image worker builds its headers explicitly instead of forwarding the bag. Put the same key on a model served by the LLM path and `GatewayFactory.make_extras` ships `endpoint_path: openai/deployments/…` to Portkey as a header.
-
-## Why this is worth fixing
-
-- **A deleted or renamed blueprint field becomes a header.** This is the hazard the templating-style plan flagged and then dodged by luck: `prompting_target` happened to live in `[defaults]`, so its removal was fatal and loud. Had it lived per-model — and in `portkey.toml` it *does* also live per-model — the same removal would have started sending `prompting_target: gemini` to the provider. No test in the suite would have gone red.
-- **A typo becomes a header.** `max_tokns = 4096` on a model posts a junk header *and* silently leaves the real cap unset. That is exactly the class of silent misconfiguration `InferenceBackendLibrary.load`'s own docstring says it refuses to tolerate ("a config typo must never silently delete a backend, because the commands that boot leniently would then report the far more confusing 'model not found'").
-- **We send unreviewed strings to third parties.** Whatever is in a model table goes out over the network to the provider. That deserves a deliberate opt-in, not a default.
-- **The rule is undocumented.** `grep -rn "header" docs/` returns nothing about it. Nobody outside this file knows it exists, which means nobody outside this file can use it on purpose either.
-
-## The rule to build
-
-**An unknown per-model key is accepted as a header only if it is shaped like a header name.** Concretely: it contains a hyphen. HTTP header names conventionally do (`x-portkey-config`, `anthropic-beta`, `api-version`); blueprint field names never do, because they are Python identifiers. Every real key in the table above passes except `endpoint_path`, which is not a header and is promoted to a declared field in Phase 1.
-
-A shape rule, not an allowlist of names: the whole point of the open bag is that the back office can start serving a new `x-portkey-*` header without waiting for a client release, and a name allowlist would take that away.
-
-Everything unknown that is *not* header-shaped is then handled by source:
-
-- **From a local backend TOML — fatal.** There, an unknown snake_case key really is the author's typo, and local files are already strict about `[defaults]`.
-- **From the served gateway payload — pruned, silently.** There, it is version skew: a client legitimately reads a config written by a different release. This is the identical judgement `drop_unknown_gateway_defaults` already makes for the `defaults` block, for the identical reason, and the silence is required for the identical reason too — the prune runs before `runtime_hub.set_config()` on some boot paths, so a `log` call turns a data transform into a boot-order dependency (`test_pruning_does_not_need_the_log_hub` pins this).
-
-**That skew tolerance is not theoretical, and the executing agent should verify it still holds before assuming otherwise.** Observed on 2026-08-14: a local `~/.pipelex/cache/remote_config.json` held the `_11` payload byte-for-byte while this branch pinned `_12`. The cache path is shared across every checkout on a machine, and the cache records `schema_version` / `cached_at` / `raw_config` but **no source URL** — so a `_12` client cannot tell it is reading an `_11` body, and whichever version most checkouts pin is the one that populates it. Making remote unknowns fatal would have turned that ordinary local condition into a red suite.
-
-## Decisions (veto here, cheaply)
-
-- **D1 — the classifier is pure, the policy lives at the call site.** A new `pipelex/cogt/model_backends/model_spec_keys.py` splits a raw model table into (blueprint fields, headers, rejected). It does not decide what "rejected" means. `InferenceBackendLibrary.load` decides, because only it knows the source. Functions are fully keyword-only so no subject grant is needed.
-- **D2 — the source is an enum, not a bool.** `ModelSpecSource.LOCAL_FILE | REMOTE_GATEWAY`, matched with `match`/`case` per the repo's enum convention. `InferenceBackendLibrary.load` already distinguishes the two branches (`PipelexBackend.is_gateway_backend`), so this threads one value, not new logic.
-- **D3 — near-miss protection.** A key whose hyphens-to-underscores form matches a known blueprint field (`max-tokens`, `model-id`, `thinking-mode`) is rejected despite being header-shaped. Three lines, and it closes the one hole the shape rule leaves. **Separable — drop this if you think it is a solution in search of a problem.**
-- **D4 — `endpoint_path` becomes a real field**, not a permanent exception to the rule. It is our own data, read by our own worker; it has no business in a bag named for headers.
-- **D5 — no change to the backend-level twin** (`backend_library.py:154-156`, unknown backend keys → `extra_config`) in this change. Same silent-reclassification shape, but that dict never reaches a provider, so the blast radius is a local misconfiguration rather than an outbound one. See "Considered and deferred".
-- **D6 — the error names the key and the file, and says what to do.** A boot failure reading `Unknown key 'max_tokns' on model 'gpt-4o' in '.pipelex/inference/backends/openai.toml' — not a known model-spec field, and not header-shaped (a header key must contain a hyphen, e.g. 'x-portkey-provider')` is the whole value of this change for a user. A bare pydantic `extra_forbidden` is not.
-
-## Phase map
-
-- **Phase 1** — promote `endpoint_path` to a declared field. Standalone, no behaviour change, shippable on its own.
-- **Phase 2** — the shape guard and its two policies (TDD). This is where a config that used to boot can start failing. → ✋ **Checkpoint**
-- **Phase 3** — docs, changelog, dogfood log.
-
-**Phase 1 must precede Phase 2, and they must ship in the same release.** If the guard lands first, `endpoint_path` — snake_case, no hyphen — gets pruned out of the remote payload and every image model breaks with "does not have an endpoint_path configured".
-
-## Traps to keep in view
-
-- **Do not write the regression test against `prompting_target`.** It no longer exists in the blueprint, so a test using it would prove nothing about the mechanism. Construct the dead-field case with a synthetic key.
-- **Config sync is one-directional.** `.pipelex/inference/backends/` is the source of truth; edit there, then `make ukc`, gated by `make ccs`. Both trees carry the portkey headers.
-- **The gateway's *local* override file is already safe** — `GatewayConfigMerger` restricts local overrides to `{sdk, structure_method}` (`gateway_config_merger.py:10`) and warns on anything else, so a user's `pipelex_gateway.toml` cannot inject headers today and will not be affected by this change. The exposure is the direct-provider local TOMLs and the served payload. Do not "fix" the merger; verify and move on.
-- **No drift contract fires.** `backend_library.py` and `model_spec_factory.py` are in no contract's trigger set (`config-docs` triggers `system/configuration/**`, `cogt/config_cogt.py`, and friends). Do not hunt for an ack to record — but do log the observation, see Phase 3.
-- **`make agent-check` runs the keyword-only auto-fixer**, which will silently keyword-only an ungranted subject. D1's functions are keyword-only by design, so there is nothing to grant here — just do not let the fixer surprise you elsewhere.
-- **Drift reads the git index**: stage before `make drift-check` / `agent-check`.
-
----
-
-## Phase 1 — `endpoint_path` becomes a declared field
-
-Goal: the one non-header key in the bag stops pretending to be a header. No behaviour change, no served-config change, no config URL bump — the served TOML is untouched, the new client merely classifies the key differently, and older clients keep reading it out of `extra_headers` exactly as before.
-
-- [x] `InferenceModelSpecBlueprint.endpoint_path: str | None = None` (`model_spec_factory.py`) and the matching field on `InferenceModelSpec` (`model_spec.py`), with the factory passthrough.
-- [x] `gateway_img_gen_worker.py:86` reads `self.inference_model.endpoint_path` instead of digging in `extra_headers`. Its existing "does not have an endpoint_path configured" error stays — it is the right error, it just now guards a real field.
-- [x] Update the image-worker tests that stub the bag: `test_gateway_img_gen_worker_semantic.py`, `test_gateway_img_gen_worker_malformed_body.py`, `test_gateway_img_gen_worker_edit_routing.py`, `test_gateway_quota_detection.py`. Each sets `mock_model.extra_headers = {"endpoint_path": …}`; they should set the field and leave the bag to the headers that belong in it.
-- [x] Verify against the live payload that the key still parses into the field and that `x-portkey-config` still lands in `extra_headers` — a real boot, not only mocks.
-- [x] Gates: targeted tests, `make tb`, stage + `make agent-check`.
-
-## Phase 2 — the shape guard
-
-Goal: an unknown per-model key is either a plausible header or a loud error, and never a silent outbound string. TDD throughout — each box's test lands red first.
-
-- [x] **Tests first (red):** new `tests/unit/pipelex/cogt/model_backends/test_model_spec_key_policy.py` — header-shaped key accepted; snake_case unknown rejected; D3 near-miss (`max-tokens`) rejected; known blueprint field never diverted.
-- [x] New `pipelex/cogt/model_backends/model_spec_keys.py` (D1): the pure classifier plus `ModelSpecSource` (D2).
-- [x] Wire it into `InferenceBackendLibrary.load` (`backend_library.py:195-199`), replacing the unconditional loop. Local source raises `InferenceBackendLibraryError` with D6's message; gateway source prunes.
-- [x] **Tests (red first):** a local backend TOML carrying a synthetic unknown snake_case key fails the load with a message naming the key, the model and the file; the same key in a remote payload is pruned and the boot survives. Extend `test_gateway_unknown_defaults.py` rather than starting a parallel module — it already owns the remote-tolerance story, including the no-log-hub constraint.
-- [x] **Regression, and the point of the whole change:** `x-portkey-provider` from local `portkey.toml` and `x-portkey-config` from the remote payload still reach `extra_headers` and still reach the wire.
-- [x] **Leniency interaction:** confirm what a rejected key does under `lenient=True`. A typo must not silently delete a backend — that is the existing ruling in `InferenceBackendLibrary.load`'s docstring, and this new raise sits inside the same `try`. Decide deliberately and record the answer here; if it needs to escape the lenient skip, say why in a comment at the raise site.
-- [x] **Mutation-check the new tests:** revert the guard, confirm the new tests go red, restore. A guard whose tests pass without it is not a guard.
-- [x] Gates: `make tb`, targeted tests, stage + `make agent-check`, **full `make agent-test`**.
-
-### ✋ CHECKPOINT — HARD STOP
-
-Do not start Phase 3 without Louis' explicit go. This is where a config that booted yesterday can fail today. Present: the diff, the test results, the answer to the leniency question, and a **worked example of the new error message** as a user would see it. Louis rules on D3 (near-miss), on the leniency behaviour, and on the commit/PR shape. Update the checkpoint log.
-
----
-
-## Phase 3 — Docs, changelog, dogfood
-
-- [x] `docs/configuration/config-technical/inference-backend-config.md` — document the mechanism for the first time: extra per-model keys are sent to the provider as request headers, they must be header-shaped, anything else is a configuration error, and `endpoint_path` is a declared field. Include what a rejected key looks like.
-- [x] Changelog `## [Unreleased]`, condensed style, **breaking**: a per-model key that is neither a known model-spec field nor header-shaped now fails the backend load instead of being sent to the provider as a request header; `endpoint_path` is a declared model-spec field.
-- [x] Append a dogfood entry to `wip/drift-contracts/dogfood-log.md`. The observation worth recording: **`backend_library.py` shapes user-facing configuration and sits in no contract's trigger set** — the same shape of finding as the Phase 4 templating entry (a config surface documented outside `docs/configuration/`), from the other direction. Record it; per the pilot's bias, do not act on it here.
-- [x] Gates: stage + `make agent-check`.
-
-## Cross-repo / release-gated follow-ups
-
-- **The downstream backend-TOML sweep gets louder, and that is the good news.** The templating-style plan already lists this as its one non-optional follow-up: every repo shipping `.pipelex/inference/backends/*.toml` still declares `prompting_target`, and `portkey.toml` carries it **per-model as well as in `[defaults]`**, so a fix that deletes only the `[defaults]` line unblocks the boot while quietly turning the per-model ones into outbound headers. With this guard in place that residue becomes a boot error naming the key instead. Confirmed tracked-file hits at the time of writing: `pipelex-api/`, `cocode/`, `pipelex-cookbook/`, `mthds-ui/`, plus our hosted worker, our demo repos, and fixtures in our JS runtime (all private). **Ship this guard in or after the release that deletes `prompting_target`, never before** — before, it would reject the key while the field still exists.
-- **Our back-office repo** (private) owns the served gateway config, in its gateway-models TOML. Nothing to change now: `endpoint_path` becomes a declared field on the client side and `x-portkey-config` is header-shaped. Worth telling whoever maintains it that a *new* non-header per-model key would from now on be pruned by new clients rather than forwarded as a header.
-- **Our JS runtime** (private repo) is a second consumer of the same wire contract and models these specs its own way, in its worker catalogue. Whether it wants a parallel rule is its own call, not this plan's.
-
-## Considered and deferred
-
-- **The backend-level twin** (`backend_library.py:154-156`): unknown *backend* keys are reclassified into `extra_config` with the same silence. Deferred because `extra_config` never reaches a provider — the failure is a local misconfiguration, not an outbound string. It is a small follow-up on its own, and the classifier built in Phase 2 would serve it directly.
-- **Renaming `extra_headers`.** Once `endpoint_path` moves out, the field genuinely holds only headers and the name is finally honest. Renaming it touches every provider factory for zero behaviour change; do it only if it rides along with something else in that area.
-- **Logging accepted headers at load time.** Tempting — "here is what we will send" — but the prune path runs before the log hub is configured, and the accepted path would need the same care. Not worth a boot-order dependency.
-
-## Checkpoint log
-
-### 2026-08-15 — Phase 1 and Phase 2 done, stopped at the ✋ checkpoint
-
-**Branch and PR shape.** `feat/rogue-extra-headers-guard`, stacked on `fix/keyless-followups` (PR #1106), which is itself stacked on `fix/Keyless-dry-run` (PR #1104). Two commits, one per phase, so Phase 1 could ship alone if ever needed: "endpoint_path is a declared model-spec field, not an extra header" and "Unknown per-model backend keys are headers only if header-shaped". Opened as a draft PR because Phase 3 (docs, changelog, dogfood log) is not started.
-
-**Re-measurement (2026-08-15).** Identical to the 2026-08-14 table: local `portkey.toml` carries `x-portkey-provider` per model and nothing else; the served `_12` payload carries `x-portkey-config` on every LLM model and `endpoint_path` on the four image models; the served `[defaults]` block is clean. The local `~/.pipelex/cache/remote_config.json` (`schema_version` / `cached_at` / `raw_config`, no source URL) was refreshed this morning, so this session did not reproduce the `_11`-body-under-a-`_12`-pin condition — but nothing in the change depends on it, and the remote path prunes rather than raises precisely so that condition stays harmless.
-
-**What was built.**
-
-- Phase 1: `endpoint_path: str | None = None` on `InferenceModelSpecBlueprint` and `InferenceModelSpec`, factory passthrough, `gateway_img_gen_worker.py` reads the field. The four image-worker tests set the field and leave `extra_headers` to headers. Verified with a real `Pipelex.make(needs_inference=False, needs_model_specs=True)` boot against the live payload: `gpt-image-1.endpoint_path` is the Azure route, `gpt-image-1.extra_headers == {'x-portkey-config': …}`, `gpt-4o-mini.endpoint_path is None`, and the local portkey model still carries `{'x-portkey-provider': '@openai'}`.
-- Phase 2: `pipelex/cogt/model_backends/model_spec_keys.py` — `ModelSpecSource` (D2), `split_model_spec_keys` returning a `ModelSpecKeySplit(fields, headers, rejected)` NamedTuple, `RejectedModelSpecKey(key, near_miss_of)`, `describe_rejected_keys` for the wording. Fully keyword-only, no subject grant. `InferenceBackendLibrary.load` threads the source (`REMOTE_GATEWAY` on the `is_gateway_backend` branch, `LOCAL_FILE` otherwise) and does a `match`/`case`: local raises `InferenceBackendLibraryError`, remote prunes with no log call. `drop_unknown_gateway_defaults`'s docstring updated to point at the new per-model rule.
-- Tests: `test_model_spec_key_policy.py` (classifier), three new cases in `test_backend_library_leniency.py` (unknown per-model key fatal in both modes naming key/model/file; near-miss fatal naming the field; `x-portkey-provider` still becomes a header), and a new `TestGatewayUnknownPerModelKeys` class (header kept, non-header pruned and boot survives, `endpoint_path` lands in the field, header reaches `GatewayFactory.make_extras`, prune needs no log hub).
-
-**Gates.** `make tb`, `make agent-check` (staged), and the full `make agent-test` are all green. Mutation check done: with the guard replaced by the old "everything unknown is a header" behaviour, exactly the four guard tests go red; restored, all green.
-
-**Answer to the leniency question.** A rejected key from a local file is fatal in *both* modes. No new mechanism was needed: the raise is an `InferenceBackendLibraryError` inside the same `try` as before, and the lenient `except` only catches `InferenceBackendCredentialsError`, so it lets this through — exactly the docstring's ruling ("a config typo must never silently delete a backend"). A comment at the raise site says so, and `test_an_unknown_per_model_key_in_a_local_backend_is_fatal_in_both_modes` is parametrized over `lenient`.
-
-**Worked example of the error, as a user sees it** (a local `openai.toml` with `max_tokns = 4096` on `gpt-4o`):
-
-> Unknown key on model 'gpt-4o' for backend 'openai' from file '.pipelex/inference/backends/openai.toml': 'max_tokns' is not a known model-spec field, and not header-shaped. A per-model key that is not a model-spec field is sent to the provider as a request header and must contain a hyphen (e.g. 'x-portkey-provider'): fix the typo, or name the key like a header if that is what it is meant to be.
-
-The near-miss variant (`max-tokens = 4096`):
-
-> Unknown key on model 'gpt-4o' for backend 'openai' from file '.pipelex/inference/backends/openai.toml': 'max-tokens' looks like the model-spec field 'max_tokens' spelled with hyphens — use 'max_tokens'. A per-model key that is not a model-spec field is sent to the provider as a request header and must contain a hyphen (e.g. 'x-portkey-provider'): fix the typo, or name the key like a header if that is what it is meant to be.
-
-Several rejected keys on one model are listed in one message ("Unknown keys on model …: 'prompting_target' is …; 'max_tokns' is …"), with the rule stated once at the end.
-
-**Awaiting Louis' rulings.**
-
-- D3 (near-miss): built as planned; separable — dropping it removes `near_miss_of`, the second `describe` branch, and one test each in the classifier and leniency modules.
-- Leniency: fatal in both modes, as above. Confirm.
-- Commit/PR shape: two commits on one draft PR stacked on #1106. Confirm, or ask for a squash / a separate Phase 1 PR.
-
-### 2026-08-15 — Louis' rulings, and Phase 3 done
-
-**Rulings.** Leniency: **confirmed** — a rejected local key is fatal in both modes. D3 near-miss: **confirmed, kept**. PR shape: one PR (#1107), not a draft; two commits kept.
-
-**Phase 3.** The docs page gained a "Sending extra request headers per model" subsection under Model Specifications — the mechanism's first documentation: the header rule, the shape requirement, the error as a user sees it, the lenient treatment of the served Gateway config, and `endpoint_path` as a declared field. Changelog: a condensed breaking entry under `[Unreleased]`, and the `prompting_target` removal entry's sentence about per-model keys becoming headers rewritten to the new truth. Dogfood log: recorded the "no contract has a stake in the backend-TOML schema" observation, paired with the 2026-08-14 scope-miss.
-
-**Remaining:** nothing on this branch. The cross-repo / release-gated follow-ups below stand as written.
-
-### 2026-08-15 — Review-bot pass on PR #1107
-
-Three unresolved bot threads, two issues, both fixed. (1) codex + cubic: `TestGatewayUnknownPerModelKeys` shared a module with `TestGatewayUnknownDefaults`, against the one-TestClass-per-module rule — moved to its own `test_gateway_unknown_per_model_keys.py`. (2) cubic: a header-shaped key with a non-string value (`x-foo = 3`) fell through the classifier into strict `extra_headers: dict[str, str]`, so pydantic raised `string_type` — fatal for a *remote* payload too, which contradicts the skew-tolerance contract, and in pydantic's voice rather than D6's for a local file. The bot's suggested remedy (`str(value)`) was declined: stringifying `True` or a list onto the wire is the rogue header this branch exists to stop. Instead the value check joined the shape check: `RejectedModelSpecKey` now carries a `ModelSpecKeyRejection` reason (`NOT_HEADER_SHAPED` / `HYPHENATED_KNOWN_FIELD` / `NON_STRING_VALUE`), a non-string value is rejected like any other rogue key, and the loader's existing per-source `match` does the rest with no call-site change — local fatal naming key/model/file and saying the value must be a quoted string, remote pruned. The hyphen trailer in `describe_rejected_keys` is emitted only when a shape rejection is present, so a value-only failure is not told to add a hyphen. Tests red-first in the classifier, leniency and gateway per-model modules; docs page and changelog entry extended with the value half of the rule.
-
-### 2026-08-15 — Review-bot pass on PR #1109
-
-Five unresolved threads (one greptile, four cubic); four fixed, one deferred.
-
-- **Fixed — near-miss got the hyphen trailer** (cubic, `describe_rejected_keys`). `HYPHENATED_KNOWN_FIELD` was grouped with `NOT_HEADER_SHAPED` under `is_about_shape`, so a lone `max-tokens` was told the key "must contain a hyphen … name the key like a header" right after being told to use `max_tokens` — the key already has a hyphen, and the advice contradicted its own message. The property is gone; only a `NOT_HEADER_SHAPED` rejection earns the trailer. Red-first test in the classifier module. The near-miss worked example in the Phase 1/2 checkpoint above therefore no longer carries the trailer.
-- **Fixed — docs led with the old behaviour** (cubic, `inference-backend-config.md`). The subsection's first sentence said every extra key is sent as a header; it now states the gate up front, and the full rule paragraph follows unchanged.
-- **Fixed — dogfood-log premise** (cubic, `wip/drift-contracts/dogfood-log.md`). The entry claimed the backend TOMLs are "neither the config model nor a shipped default"; they *are* shipped defaults (`pipelex/kit/configs/inference/backends/*.toml`, mirrored by the `.pipelex/` overrides). Reworded: the finding sharpens rather than dissolves — the contract's description promises "the shipped defaults" while its trigger set names only `pipelex/pipelex.toml`.
-- **Fixed — stale "Superseded note"** (cubic, this file). The trailing paragraph reasserting Phase 3 as not done was an archived Phase 1/2 remark sitting after the Phase 3-done entries; deleted, since its one surviving fact (the `prompting_target` changelog sentence needed rewriting) is recorded in the rulings entry above.
-- **Deferred — strict header-name/value validation** (greptile, `is_header_shaped`). h11 rejects an illegal name or value at send time, so it is a boot-vs-first-call timing gap for a deliberately quoted key, not a wire risk. Thread left open at the time; taken up the same day — see the entry below.
-
-### 2026-08-15 — Strict header-name and header-value validation (the deferred greptile item, built)
-
-Louis' ruling: close the gap now, at **wire parity** — boot rejects exactly what the HTTP stack rejects — landing as a third commit on PR #1109 so the thread closes where it was raised.
-
-**The rule as built.** A key still has to be *shaped* like a header (contains a hyphen, string value) before anything else; the new gate asks whether it is *usable* as one. A header name must be an RFC 7230 token — letters, digits and `` !#$%&'*+-.^_`|~ `` — and a header value must be printable ASCII on a single line with no leading or trailing whitespace. Two new `ModelSpecKeyRejection` members carry it, `ILLEGAL_HEADER_NAME` and `ILLEGAL_HEADER_VALUE`, and `RejectedModelSpecKey` gained an `illegal_character` field so the name error can name the character — the failure is routinely invisible in the file (a pasted non-breaking space, a trailing space), which is the whole reason to say it out loud. `InferenceBackendLibrary.load` needed no edit at all: its per-source `match` already turns any rejection into a local fatal error or a remote prune, which is the payoff of D1 keeping the policy at the call site.
-
-**Wire parity, measured not assumed.** Checked in the venv against h11 and httpx before writing the predicates: `x-foo bar`, `x-foo@bar`, `x-foo/bar`, `x-foo(bar)` and a non-ASCII name are refused (`LocalProtocolError: Illegal header name`, or `UnicodeEncodeError` from httpx); `a\r\nb`, a NUL, a leading space, a trailing space and a non-ASCII value are refused; `a b`, `a\tb`, the empty string, `x-foo_bar`, `x-foo.bar` and `x-foo|bar` are all accepted — underscore, dot and pipe are token characters, so the over-tightening trap has its own test. One deliberate divergence, recorded in the module docstring: h11 accepts `0x7f` (DEL) in a value and we do not. Deliberately **no** test couples our predicates to h11's own patterns — it is a transitive dependency of httpx, and the rule must not become "whatever this version of h11 does".
-
-**Nothing in the wild moves.** Re-measured through the real classifier rather than a hand-rolled regex: every per-model key in `.pipelex/inference/backends/*.toml`, in the shipped `pipelex/kit/configs/inference/backends/*.toml`, and in the live `_12` payload still classifies exactly as before — `x-portkey-provider` and `x-portkey-config` accepted, nothing rejected. Confirmed by a real boot too (`Pipelex.make(needs_inference=False, needs_model_specs=True)`): the gateway models still carry `x-portkey-config`, `gpt-image-1.endpoint_path` still resolves to the Azure route, and the local Portkey model still carries `x-portkey-provider`.
-
-**Worked examples, as a user sees them.**
-
-> Unknown key on model 'gpt-4o' for backend 'openai' from file '.pipelex/inference/backends/openai.toml': 'x-foo bar' cannot be a header name: ' ' is not allowed in one — a header name may contain only letters, digits and the characters !#$%&'*+-.^_`|~.
-
-> Unknown key on model 'gpt-4o' for backend 'openai' from file '.pipelex/inference/backends/openai.toml': 'x-foo' is header-shaped, but its value cannot be sent as a header value — it must be printable ASCII on a single line, with no leading or trailing whitespace.
-
-Neither earns the hyphen trailer, and both have a test saying so: the key already has a hyphen, so "add a hyphen" would be the same contradiction the previous review pass removed from the near-miss message.
-
-**Tests and mutation check.** New cases in all three modules that own this story — the classifier (`test_model_spec_key_policy.py`), the local-file fatal path (`test_backend_library_leniency.py`, including `x-foo = "trailing "`, valid TOML and invisible on the page), and the remote prune path (`test_gateway_unknown_per_model_keys.py`, where an illegal name or value is skew like any other and must not break the boot). Mutation check: with both new predicates stubbed to `return True`, exactly the new tests go red across the three modules and nothing else moves; restored, all green.
diff --git a/wip/run-artifacts-beside-graphspec/design.md b/wip/run-artifacts-beside-graphspec/design.md
deleted file mode 100644
index 2d28c3bfa..000000000
--- a/wip/run-artifacts-beside-graphspec/design.md
+++ /dev/null
@@ -1,107 +0,0 @@
----
-status: landed
-item: L-260907-817d80
----
-
-# Design: a run's results carry the I/O artifacts that describe its data
-
-## The problem
-
-A run's `graphspec.json` carries every stuff payload the run produced and nothing that says what those payloads are. The graph renderer (`@pipelex/mthds-ui`, `GraphViewer`) shows a data node's value only when its host passes both `pipe_io_contracts` and `output_form`, keyed by `pipe_ref`; without them it shows the concept's structure table and no data tab, by design (`mthds-ui/src/graph/react/viewer/GraphViewer.tsx:255-273`, "both artifacts or neither"). The three artifacts — `pipe_io_contracts`, `input_form`, `output_form` — are the validate report's own fields, and today they exist only on `/validate`.
-
-The ledger item asks that a run write them beside its `graphspec.json`, as three sibling files under the standard's names. This document confirms the ask, corrects the item's premise about *where* they can be built, and settles the shape that serves the local file layout and the hosted plane alike.
-
-## What the survey established
-
-### Every consumer of a run's graph is missing them, and each patches around it differently
-
-- **`vscode-pipelex`** has the reader and no producer: `readRunArtifacts` (on branch `fix/Expanded-input-slot`, `editors/vscode/src/pipelex/graph/runArtifacts.ts:46-48,110-129`) loads `pipe_io_contracts.json`, `output_form.json` and an optional `input_form.json` from the graphspec's own directory, takes the first two together or not at all, and is silent on absence.
-- **`pipelex-app`** is the only consumer that renders a run's graph *with* data, and it does so by pairing the run's `graph_spec` (from `GET /v1/runs/{id}/results`) with the artifacts of a **separate `/validate` of the current editor buffer**, held in a non-persisted client store (`src/actions/mthds-validator.ts:296-300`, `src/hooks/use-method-validation.ts:134-151`). The app documents the resulting gap itself: "a run restored without its validate artifacts has a value and no declaration of what it is" (`src/components/method-run/output-render.tsx:37-42`, also `flowchart-view.tsx:66-72`). A historic run whose method has since changed is rendered against the wrong description.
-- **`pipelex-mcp`** mounts `GraphViewer` on a completed run with no artifacts at all (`src/views/run-graph.tsx:236-244`, `src/views/run-follow.tsx:456-466`), so every hosted run graph it shows takes the no-data floor.
-- **Neither SDK** carries the artifacts on a run-result type; `RunResults` in `@pipelex/sdk` has `graph_spec` and nothing describing it (`pipelex-sdk-js/src/runs.ts:156-190`). The platform's `GET /v1/runs/{id}/results` reads a **hardcoded set of result filenames** from S3 and relays them verbatim (`pipelex-server/platform/src/pipelex_platform/routers/v1/runs.py:141-176`); the platform persists no contracts or forms anywhere, and the `Run` row keeps only `mthds_contents` as "the only record of what ran" (`shared/src/pipelex_shared/schemas/run.py:126`).
-
-So the need is real and wider than the item states: a run's own artifacts are the only correct description of a run's data, locally and hosted, and no path produces them today.
-
-### The three builders need the run's library window, and the item's proposed hook is outside it
-
-`build_pipe_io_contracts` (`pipelex/pipeline/pipe_io_contracts.py:135`), `build_input_form` and `build_output_form` (`pipelex/pipeline/input_form.py:154,190`) take the live pipes and read the current library: JSON-Schema rendering resolves bundle-defined structure classes through the class registry, and the forms qualify the current library's crate (`qualify_current_library_crate`, `input_form.py:246`). The validate path says so in as many words and builds them inside the window before its `finally` tears it down (`pipelex/pipeline/validate_in_process.py:86-91,109-115`); the hosted Temporal validator does the same in its worker's one window (`pipelex-server/temporal/pipelex_temporal/tprl_pipe/act_dry_validate.py:142-156`).
-
-The item names the write sites as the natural hook — `generate_graph_outputs` / `save_graph_outputs_to_dir` and the delivery executor's `_generate_graph_files`. Neither holds the window:
-
-- **The local CLIs write after the window has closed.** `PipelineRunner.execute` restores the outer library and tears the run library down in its `finally` (`pipelex/pipeline/runner.py:303-315`) *before* returning to `pipelex run`, which only then calls `generate_graph_outputs` and `save_graph_outputs_to_dir` (`pipelex/cli/commands/run/_run_core.py:281-287`); `pipelex-agent run` is the same shape (`pipelex/cli/agent_cli/commands/run/_run_core.py:173-190`).
-- **The hosted delivery may run on a worker that never loaded the bundle.** In the Temporal plugin the `PipeOutput` is dehydrated before the workflow's tail precisely because `act_deliver` "may run on a worker that has never loaded this bundle" (`pipelex-server/temporal/pipelex_temporal/tprl_pipe/wf_pipe_run.py:430-435`); `DeliveryActivityArg` carries the output, the scope and the assignment, no crate and no pipes (`act_deliver.py:17-31`); and the delivery executor's raw-working-memory branch and `try_local_hydrate_stuff` exist because the classes may not be registered (`pipelex/pipe_run/delivery_executor.py:90-97,218-246`).
-
-The direct-mode delivery is the one write site that *is* inside the window: `PipeRun.run` delivers in its `finally`, which runs inside `runner.execute`'s `try` (`pipelex/pipe_run/pipe_run.py:76-103`). That is not enough to build on, since the same class delivers the Temporal path from outside the window.
-
-### How a run's graph already crosses the same boundary
-
-`graph_spec` is the precedent. It is assembled at the end of the run onto `pipe_output.graph_spec` (`assemble_tracing_on_output`, `pipe_run.py:82-90`; the Temporal twin stamps it in the workflow tail, `wf_pipe_run.py:481-517`), rides on `PipeOutput` — a wire model of the transport boundary (`docs/specs/pipelex-transport-boundary.md`, section C) — crosses the SPI payload as `graph_spec_dump` (`pipelex/runtime_bridge/payloads.py:81`, `serialization.py:65`), is rehydrated by `pipelex-api` for the `/execute` response (`pipelex-api/api/routes/pipelex/pipeline.py:134-167`), and is written by whoever holds the output: the CLIs to a directory, the delivery executor to storage. Every writer serializes what the run assembled; none rebuilds it.
-
-## Decision
-
-**The artifacts are built once, inside the run's library window, and carried on `PipeOutput` beside `graph_spec`. Every writer that serializes `graph_spec` to `graphspec.json` serializes them to three sibling files.**
-
-### 1. One model, one builder
-
-A new module `pipelex/core/pipes/pipe_io_artifacts.py` holds:
-
-- `PipeIOArtifacts`, a pydantic model with exactly the three report fields under the report's names and types: `pipe_io_contracts: PipeIOContracts`, `input_form: InputForm`, `output_form: OutputForm`. `extra="forbid"`. It is a grouping, not a new shape: each field is the standard's artifact, and the three are always produced together because they share one key set (all three iterate the same pipes, `input_form.py:155-157`).
-- `build_pipe_io_artifacts(pipes, *, qualified_crate=None) -> PipeIOArtifacts`, which qualifies the current library's crate once and runs the three existing builders off it, exactly the sequence `validate_in_process.py:109-115` performs today. `validate_bundles_in_process` and the projection-corpus command call it instead of the three builders, so the sequence exists in one place and a future fourth artifact is populated everywhere or nowhere — the same rule `build_validation_report` states for the report.
-- The three filenames as module constants, moved from `generate_projection_corpus_cmd.py:76-78` (`pipe_io_contracts.json`, `input_form.json`, `output_form.json`), and one rendering function that maps a `PipeIOArtifacts` to `{filename: text}` using the corpus's byte discipline (`json.dumps(payload, indent=2, ensure_ascii=False)` plus a trailing newline, over `{pipe_ref: model.model_dump(mode="json")}`, `generate_projection_corpus_cmd.py:229-232`). The corpus command uses the same function, so for the same bundle a results directory and the committed fixture corpus hold byte-identical files.
-
-The validate report keeps its flat fields; `PipeIOArtifacts` is the carrier, not a new report shape.
-
-### 2. Built in the window, carried on the output
-
-`PipeOutput` gains `pipe_io_artifacts: PipeIOArtifacts | None = None`, beside `graph_spec` (`pipelex/core/pipes/pipe_output.py:27`). It is set only on the top-level output, in the same place the graph is assembled:
-
-- **Direct mode.** In `PipeRun.run`, right after `assemble_tracing_on_output`, when `pipe_output.graph_spec` is not `None`: `pipe_output.pipe_io_artifacts = build_pipe_io_artifacts(get_own_pipes())`, where `get_own_pipes()` (`pipelex/interpreter_hub.py`) enumerates the current run library without its dependency packages' aliased entries (a round-1 review narrowing: an aliased pipe would be keyed by bare `pipe_ref` in the artifacts and collide with the host's). This runs inside `runner.execute`'s window, before the direct-mode delivery in the same `finally` and before the CLI receives the output. The build is best-effort in the same way the graph render is: a failure of the builders, of any kind, leaves the field `None` and sets `pipe_output.pipe_io_artifacts_error` to the message (round 1 narrowed this to the builders' own error types so a bug would surface; round 2 reversed it, because the build runs in the `finally` ahead of the delivery, where an escaping exception replaces the run's outcome and skips the delivery of a completed run, and the failure notification must always fire); mirroring `graph_assembly_error` and `usage_assembly_error` on the same model, so a consumer can tell "graph tracing off" from "build failed"; it never fails a run that succeeded.
-- **Temporal mode** is the plugin's twin, in `pipelex-server` (see "Consequences"): an activity that opens the transported crate's window, calls the same builder over the same enumeration and returns the model; the workflow stamps it onto the output before `act_deliver`, where it already stamps `graph_spec`.
-
-The condition is the graphspec's own: the artifacts exist to describe a graphspec's data, so they are built when a graph is assembled *and* the run will write a graphspec (`graphs_inclusion.graphspec_json`), and not otherwise; the run setup stamps that as `describe_pipe_io` on the trace context, and validate's own graph dry run stamps it off, since validate already built the artifacts for its report and a second build would be thrown away. A run with graph tracing off has neither.
-
-### 3. Every writer serializes them beside the graphspec
-
-`GraphOutputs` (`pipelex/graph/graph_factory.py:27`) gains three optional text fields, `pipe_io_contracts_json`, `input_form_json`, `output_form_json`; `generate_graph_outputs` takes `pipe_io_artifacts: PipeIOArtifacts | None = None` and fills them, through the rendering function above, when **`graphs_inclusion.graphspec_json`** is on and artifacts were given. `save_graph_outputs_to_dir` writes them under the three constant names beside `graphspec.json`; `DeliveryExecutor._generate_graph_files` adds them through `_add_optional_text_file` beside its `graphspec.json`, so the hosted results prefix gains the same three keys. The two CLIs pass `pipe_output.pipe_io_artifacts` through.
-
-Gating on `graphspec_json` is the item's own request and the right one: a run that asks for no graphspec writes nothing that describes one, and a caller that overrides the flag at render time (the agent CLI does, `_run_core.py:150-165`) gets the siblings with it. There is no new inclusion flag; the three files are the graphspec's companions, not a fourth graph output.
-
-The agent CLI renames `graphspec.json` to `live_run_graph.json`; the siblings keep their canonical names beside it, because the VS Code reader resolves them from the graphspec's directory, not from its name.
-
-### 4. The key set is the bundle's own pipes
-
-Validate keys the artifacts by the validated bundle's pipes, and a run keys them the same way: every pipe of the library it executed against that the library holds under a bare `pipe_ref`, which is the entry bundle, its imports and any library directories, so a consumer that also drives a run form from `input_form` gets the method's other entry pipes too. A dependency package's pipes are left out, and the review round settled why: the library keys them `alias->domain.code`, the builders would key them by bare `pipe_ref` and silently overwrite a host pipe of the same name, and the host's crate holds no blueprint of theirs, so their descriptors would come out unknown anyway. Describing them properly is a deferred design of its own (see the plan's deferred items). The set is bounded by the method's own size. Pipes the runtime synthesizes at run time and never registers (the batch wrapper the item observed) are not described, and the renderer's undescribed-value view is the documented floor for those.
-
-### 5. The SPI payload and the `/execute` response carry them
-
-`PipelexPipeRunOutput` (`pipelex/runtime_bridge/payloads.py:64`, `extra="forbid"`) gains `pipe_io_artifacts_dump: dict[str, Any] | None = None`, filled by `serialize_completed_output` from `model_dump(mode="json")` like `graph_spec_dump`. `pipelex-api` rehydrates it in `_pipe_output_from_run_output` so the synchronous `/execute` response carries `pipe_output.pipe_io_artifacts` beside `pipe_output.graph_spec`. Wherever the run's graph travels, its description travels with it; a client that renders the `/execute` graph needs nothing else.
-
-This is additive on every wire: an optional field with a `None` default on `PipeOutput`, on the SPI payload and in `pipelex-api`'s published OpenAPI artifact. `PipeOutput` is a distributed-execution wire model, and `pipelex` is pinned to one exact version across `pipelex-server`, so the field crosses the activity boundary the moment the pin moves; no reader on either side breaks on its absence.
-
-## Alternatives rejected
-
-- **Build at the write sites** (the item's proposal). Impossible as stated: the CLI writes after `runner.execute` has torn the library down, and the hosted delivery runs where the bundle may never have been loaded. Building there would mean reopening a library window at every writer, which the transport does deliberately not do for delivery.
-- **Embed them in `GraphSpec`.** `GraphSpec` is `extra="forbid"` and standard-facing (`meta.format = "mthds"`); the fields would be a format change every reader must follow, the payloads are unrelated to the graph's shape, and the results layout already keeps one run's projections side by side. The `meta` bag is for format and mode. Embedding would not have avoided the window problem either.
-- **Re-validate `mthds_contents` on the platform** when a run is viewed (the platform keeps the bundle that ran, and `/validate` accepts inline contents). It is hosted-only, so the local file layout that `vscode-pipelex` reads gains nothing; it costs a full validation and a second round trip per run view; and it describes the bundle text, not the library the run executed against, when the two diverge.
-- **A private attribute on `PipeOutput`** (the `_job_metadata` pattern). It does not survive serialization, and the artifacts must cross the Temporal activity boundary to reach delivery.
-- **A reference back to the bundle instead of the artifacts.** A local run's graphspec has no registry to resolve one against, and the hosted `Run` row has no method version to point at.
-- **A fourth inclusion flag.** The files are the graphspec's companions; a run that writes a graphspec without them is the state this design ends.
-
-## Consequences across repos
-
-`pipelex` ships the model, the builder, the field, the SPI dump and the writers. The chain that consumes it, each a ledger item filed at ratification (ids in the plan's Phase 0):
-
-- **`pipelex-api`** — at the pin bump, rehydrate `pipe_io_artifacts_dump` in `_pipe_output_from_run_output` and regenerate the committed OpenAPI artifact (`PipeOutputWire`, `api/schemas/models.py:370-381`, gated by `test_openapi_contract.py`).
-- **`pipelex-server`, `temporal` member** — build the artifacts in the run's window and stamp them before delivery: an activity opening the crate's window (`scoped_library_for_crate`) and calling `build_pipe_io_artifacts` over the library's pipes, invoked from `_finish_run_root` beside `act_assemble_tracing`; the orchestrator's blocking mapping fills `pipe_io_artifacts_dump`. Sweep `transport/` for every site that copies `PipeOutput` fields by name (`prepare_output_for_transport`, `rehydrate_pipe_output_with_crate`) and carry the field. The plugin already imports the three builders for validation, so no new symbol enters the pinned transport surface; `PipeOutput` is already on it as a wire model, and the change is additive.
-- **`pipelex-server`, `platform` member** — `GET /v1/runs/{id}/results` reads the three new keys beside the existing set and relays them on `RunResultsResponse`; an older run reads them as `null`, exactly as `tokens_usages.json` was introduced. `docs/specs/pipelex-platform-api.md` names the relayed file set and moves with it.
-- **`pipelex-sdk-js`** — `RunResults` gains the three fields, typed from `mthds/protocol`.
-- **`pipelex-app`** — pair a run's graph with the run's own artifacts when the results carry them, falling back to the buffer's validate only for a run that predates them.
-- **`pipelex-mcp`** — pass the run's artifacts to `GraphViewer` in the run views.
-- **`workspace` and `conformance`** — a short spec section on the results-directory layout (the sibling names, the `graphspec_json` gate, the "both or neither" rule for the contracts and the output form, the directory-not-name resolution the VS Code reader relies on) paired with a conformance test running `pipelex run` in dry-run mode over a corpus bundle. Filed rather than done here because it lives in two other repos and the test needs an installable release.
-- **`vscode-pipelex`** — nothing: the reader is written against this layout and is blocked only on the producer.
-
-## Questions settled at ratification
-
-- **Should the synchronous `/execute` response carry the artifacts?** Decided yes, for the "wherever the graph travels" rule and because the cost is only paid when a graph is on. The alternative is to fill the SPI dump and stop there, leaving `/execute` clients to call `/validate`.
-- **Should the key set be restricted to the pipes the graph references?** Decided no; the whole library is simpler, never falls short, and serves the run form too.
-- **Should a build failure be reported on a field**, as `graph_assembly_error` reports a graph assembly failure? Decided yes at ratification: `pipe_io_artifacts_error`, the third instance of a pattern the model already carries twice, so a hosted failure is visible to the consumer that opens the graph and not only in a worker log nobody reads.
diff --git a/wip/run-artifacts-beside-graphspec/plan.md b/wip/run-artifacts-beside-graphspec/plan.md
deleted file mode 100644
index a5be7ed8f..000000000
--- a/wip/run-artifacts-beside-graphspec/plan.md
+++ /dev/null
@@ -1,89 +0,0 @@
----
-status: landed
-item: L-260907-817d80
----
-
-# Plan: a run's results carry the I/O artifacts that describe its data
-
-The design is [`design.md`](./design.md). This tracker is the implementation order for the `pipelex` half, the checkpoints where a session hands off, and the downstream chain that follows the release.
-
-Working rules for every phase: tests before implementation; `make agent-check` with the changes staged after every code change; `make agent-test` before a checkpoint; if `make drift-check` opens a contract, resolve it with `/drift-review` rather than around it.
-
-## Phase 0 — Ratification and the downstream filing
-
-- [x] The design is read and ratified on 2026-09-07; its frontmatter and this plan flip to `active` in the same change. The four calls: build in the run window and carry on `PipeOutput`; the `/execute` response carries the artifacts; a build failure is reported on `pipe_io_artifacts_error`; the spec and conformance half is filed, not done here.
-- [x] The downstream ledger items are filed, each discovered from and blocked by L-260907-817d80 (no release item exists yet; the release that carries the field is what unblocks them in practice): `pipelex-api` L-260907-c772e9 (rehydrate the dump, regenerate OpenAPI), `pipelex-server` `temporal` L-260907-2ad3d8 (the in-window activity and the orchestrator dump, with the `transport/` sweep of every by-name `PipeOutput` copy), `pipelex-server` `platform` L-260907-682a2b (relay the three files on run results, and move `docs/specs/pipelex-platform-api.md` with it), `pipelex-sdk-js` L-260907-b7b9b1 (`RunResults` fields), `pipelex-app` L-260907-b22bad (pair a run's graph with its own artifacts), `pipelex-mcp` L-260907-16d2c6 (pass them to the run views), `workspace` L-260907-f6fd8d (the results-directory spec section and its conformance test).
-- [x] Recorded on L-260907-817d80 that the item's proposed hook is outside the library window, with the two evidence sites (the log entry of 2026-09-07).
-
-## Phase 1 — The model and the builder
-
-Modules: `pipelex/core/pipes/pipe_io_artifacts.py` (the carrier, the filenames and the rendering, importing only the protocol package so `PipeOutput` can import it; it lives under `core/` because `PipeOutput` is kernel-layer and the kernel-layer closure tests refuse an import from `pipelex/pipeline/`, where the first cut placed it) and `pipelex/pipeline/build_pipe_io_artifacts.py` (the builder, which needs the library machinery). One module was the first cut and imported circularly through `PipeOutput`; the split is the plain fix.
-
-- [x] Tests first: `tests/unit/pipelex/core/pipes/test_pipe_io_artifacts.py` (the model forbids extras and round-trips; the rendering yields the three filenames with the corpus's byte discipline, `ensure_ascii=False` proven with a non-ASCII description) and `tests/integration/pipelex/pipeline/test_pipe_io_artifacts.py` (the builder equals the three builders in sequence on the probe bundle, with and without a caller-held qualification, and the three maps share one key set).
-- [x] `PipeIOArtifacts` (`extra="forbid"`, the three fields under the report's names and types), `build_pipe_io_artifacts(pipes, *, qualified_crate=None)`, the three filename constants, and `render_pipe_io_artifact_files`.
-- [x] `validate_bundles_in_process` builds through `build_pipe_io_artifacts` and spreads into `build_validation_report`; the report's flat fields do not change. The two tests that patched the old builders at the orchestrator's namespace now patch the builder module.
-- [x] `generate_projection_corpus_cmd.py` renders through `render_pipe_io_artifact_files` and its own filename constants are gone (the corpus test imports them from the artifacts module). Regenerated the corpus with the four bundles in the README's order and compared against `mthds-python/tests/fixtures/protocol/`: the three files and the whole `inputs_template/` tree are byte-identical.
-- [x] The `trace_input_semantics` command keeps calling the builders directly: it traces hops, and its hop files are a separate discipline.
-
-## Phase 2 — Built in the window, carried on the output
-
-- [x] Tests first (`tests/integration/pipelex/pipeline/test_direct_pipe_io_artifacts.py`, `tests/unit/pipelex/runtime_bridge/test_output_serialization.py`): a `PipeRun.run` test that runs a small bundle with graph tracing on and asserts `pipe_output.pipe_io_artifacts` is set, keyed by every `pipe_ref` in `graph_spec.pipe_registry`, and is `None` when graph tracing is off; a test that a builder raising leaves the field `None`, sets `pipe_io_artifacts_error` to the message and keeps the run successful (patch the builder on the module, not the instance); a serializer test that `serialize_completed_output` fills `pipe_io_artifacts_dump` and leaves it `None` when the output has none.
-- [x] `PipeOutput.pipe_io_artifacts: PipeIOArtifacts | None = None` and `pipe_io_artifacts_error: str | None = None` beside `graph_spec` and `graph_assembly_error`.
-- [x] `PipeRun.run`: after `assemble_tracing_on_output`, when graph events were on and a graph was assembled, `_build_pipe_io_artifacts_on_output` builds over `get_own_pipes()` inside the same `finally`, before the direct-mode delivery; any exception sets `pipe_io_artifacts_error` and logs a warning (a blind except, deliberately: a description must never fail a completed run, and an exception escaping the `finally` there would skip the run's delivery).
-- [x] `PipelexPipeRunOutput.pipe_io_artifacts_dump` and `pipe_io_artifacts_error`, filled by `serialize_completed_output`.
-- [x] Swept `pipelex` for sites rebuilding a `PipeOutput` field by field: none carries `graph_spec` (the controllers build sub-outputs with a working memory only), so nothing to carry. The by-name copies live in `pipelex-server/transport/`, which is L-260907-2ad3d8.
-
-## Phase 3 — Every writer serializes them beside the graphspec
-
-- [x] Tests first, extending `tests/unit/pipelex/graph/test_graph_output_generation.py` and `tests/unit/pipelex/pipe_run/test_delivery_executor.py` (with a shared hand-built artifacts fixture in `tests/helpers/pipe_io_artifacts.py`): `generate_graph_outputs` fills the three texts when `graphspec_json` is on and artifacts are given, none when the flag is off, none when artifacts are `None`; `save_graph_outputs_to_dir` writes the three files beside `graphspec.json` and returns their keys; `generate_result_files` emits the three `ResultFile` entries when the output carries artifacts and omits them otherwise, on both the typed and the raw working-memory branches.
-- [x] `GraphOutputs` fields, the `pipe_io_artifacts` parameter on `generate_graph_outputs`, `save_graph_outputs_to_dir`, `DeliveryExecutor._generate_graph_files`.
-- [x] `pipelex run` and `pipelex-agent run` pass `pipe_output.pipe_io_artifacts`; the agent CLI's `graph_files` side-effect map names the three paths beside `graph_spec`. Both verified by hand on the probe bundle in dry mode.
-- [x] `tests/integration/pipelex/pipeline/test_run_artifacts_parity.py`, the design's promise: for one corpus bundle, the file a run writes equals the corpus's committed file for that bundle, byte for byte, and its parsed value equals the corresponding field of the report `validate_bundles_in_process` returns for the same bundle.
-- [x] `tests/e2e/pipelex/cli/test_run_artifacts_beside_graphspec.py`, an end-to-end CLI test: `pipelex run` on a bundle with a graph, in dry-run mode so no inference is needed, leaves a results directory with `graphspec.json` and the three siblings, each parsing as a JSON object keyed by `pipe_ref`.
-
-### Checkpoint 1
-
-The runtime half is complete when Phases 1 to 3 are green under `make agent-check` and `make agent-test`, and `make test-ts-gates` if anything under `pipelex/codegen/emitters/` was touched (it should not have been). Record here: the decisions taken, anything left out, and the state of the parity test.
-
-Reached on 2026-09-07. `make agent-check` is green. Decisions beyond the design: the carrier and the builder are two modules (see Phase 1); the run's failure catch is blind, with the reason on the `except` line (round 1 narrowed it to the builders' own error types, round 2 restored it: see the design's direct-mode paragraph); the delivery executor writes the companions on both the typed and the raw working-memory branches, since the artifacts are already built and need no class registry. Left out: nothing under `pipelex/codegen/emitters/` moved, so `make test-ts-gates` was not run. The parity test compares per pipe and asserts byte identity only when the run library's key set equals the validated bundle's, which it does for the probe bundle in the test harness.
-
-## Phase 4 — Documentation, changelog, specification
-
-- [x] `docs/under-the-hood/execution-graph-tracing.md`: the outputs table gains the three siblings, gated by `graphspec_json`; the delivery paragraph names them beside `tokens_usages.json`; the configuration listing's comment on `graphspec_json` says the siblings follow it.
-- [x] `docs/tools/cli/run.md`: what a results directory holds, and that the three files describe the graphspec's data for a graph viewer.
-- [x] The agent CLI's run documentation (`docs/tools/cli/agent-cli.md`, Graph Visualization) and its contract doc (`pipelex/cli/agent_cli/CLAUDE.md`) name the siblings and the `graph_files` keys; the `cli-docs` drift contract was acked with that review.
-- [x] `CHANGELOG.md`, Unreleased, Added: one condensed entry — what a run's results now carry, that `PipeOutput` and the `/execute` response carry `pipe_io_artifacts` beside `graph_spec`, that the hosted results prefix gains the three keys, and that the fixture corpus is unchanged.
-- [x] The workspace `docs/specs/` section and its conformance test are L-260907-f6fd8d, filed at ratification: they live in two other repos and the test needs an installable release. The transport-boundary spec's wire-model table needs no row: `PipeOutput` is already on it.
-- [x] `make check-rules` is not touched by this work; no agent-rules source changed.
-
-## Phase 5 — Landing and the downstream chain
-
-- [x] `/rev` at the derived profile before the pull request; the PR body carries `Closes L-260907-817d80`. Two rounds ran, at profile 4 then profile 5; what they did not fix is recorded under "Deferred from the review rounds" below.
-- [x] After the merge, `/ledger-land`; the release that carries the change is what unblocks the downstream items filed in Phase 0, and the `pipelex-server` pin bump is the moment the Temporal twin lands — until then a hosted run writes `graphspec.json` without its siblings, and the platform relays nothing new. Landed as `pipelex` PR #1195, squash-merged to `dev` as `0c3dd3a34f31572389ac6ef87322db99c4c3356d` with every check green; `L-260907-817d80` closed on that evidence, and the eight items it held are released.
-- [ ] `vscode-pipelex` L-260906-e9ab24 verifies end to end against a real `pipelex run` results directory once the release is installable.
-
-## Deferred from the review rounds
-
-Findings of the round-1 `/rev` pass at profile 4 and the round-2 pass at profile 5 (both 2026-09-07) that are real but not this campaign's to fix. Each is a candidate for its own item once a consumer asks for it.
-
-Round 2 fixed three things and deferred the rest: the agent CLI now settles its graph inclusion before the run (the build gate and the render gate read different configs, so `graphspec_json = false` in the user's config produced a graphspec with no companions); the stale-companion removal logs a warning per file, since the agent CLI's directory is the user's own bundle directory; and the build's catch is blind again, so a builder bug cannot skip the delivery of a completed run.
-
-- **The artifacts cover the whole run library, and the cost follows.** `get_own_pipes()` is every non-aliased pipe of the run library, so `library_dirs` and `PIPELEXPATH` bundles are described too, at the end of every graph-enabled run, synchronously on the event loop, with an uncached JSON-Schema render per pipe input and output; the form deriver's cycle guards are path-scoped, so a DAG of repeated concept references expands exponentially (a reviewer's probe: a dozen chained concepts each referencing its predecessor twice gave a descriptor near 300 KB). All of it pre-exists in `build_input_form` and `/validate`; the branch moves it onto the run's hot path and into the SPI payload beside `graph_spec_dump`, where the direct orchestrator dumps the same artifacts a second time for the response. On a host serving a caller-supplied `library_id`, the delivered artifacts describe every method in that library, not only the one that ran. One measurement on a realistic library decides between narrowing the scope to the executed bundle (which changes what a viewer can resolve for a cross-bundle call), an expansion budget reported on `pipe_io_artifacts_error`, and leaving it. This absorbs the "Payload growth" entry below.
-- **Key order and parity.** The run side's key order is the library's insertion order and validate's is `result.pipes`; nothing sorts either, and the parity test asserts byte identity only while the two key sets match. Sorting would break byte identity with the corpus already committed downstream, so this waits for the spec item L-260907-f6fd8d to say whether order is part of the contract.
-- **`pipe_io_artifacts_error` is read by no local surface either.** The hosted half is the entry below; locally, a build failure leaves a complete-looking graph output (viewer, graphspec, `graph_files`) with the companions absent and one warning in the log. Surfacing it in the agent CLI's envelope and the human CLI's summary is the same contract question as the hosted marker.
-- **Storage redelivery to a reused scope.** The delivery executor never removes a previous delivery's companions from a storage prefix; the scope identifies the run by contract and no optional result file (`tokens_usages.json`, the viewer) is invalidated there today, so this is the storage layout's property, not the companions'.
-- **The removal sweep propagates `PermissionError` or `IsADirectoryError`** from a companion path that is not a plain writable file, before the agent CLI writes `live_run.json`; and `write_text` follows a symlinked companion to its target. A guard costs a try block; it waits for a report of the shape occurring.
-- **Windows line endings.** Every byte-discipline write goes through `write_text` without `newline="\n"`, so a run's files and a regenerated corpus come out CRLF on Windows while the committed corpus is LF. Pre-existing in the corpus generator; `newline="\n"` on those writes is the fix.
-- **Tests not written.** The agent CLI's `graph_files` companion keys have no test; the `PipeIOArtifacts` fixture in `tests/unit/pipelex/core/pipes/test_pipe_io_artifacts.py` duplicates `tests/helpers/pipe_io_artifacts.py`; the three-site retyping of the companion names (the writer, the delivery executor, the agent CLI) has no single list to drift from.
-
-- **`pipe_io_artifacts_error` never reaches a delivered results prefix.** The delivery executor writes the three companions when the output carries them and nothing when it does not, so a hosted consumer cannot tell "graph tracing off" from "build failed" the way `tokens_usages.json` lets it tell for usage. The ratification rationale for the field was hosted visibility. The fix is a small marker beside the graphspec carrying the error, but its name is a new contract for the readers (`vscode-pipelex`, `pipelex-app`), so it waits for the spec item L-260907-f6fd8d to name it.
-- **The agent CLI's live and dry runs share one companion set.** `live_run_graph.json` and `graphspec.json` sit in the same directory with one `input_form.json`; editing the bundle between a live run and a dry run leaves the older graph described by the newer declarations, exactly as `live_run.json` itself goes stale. Per-graph snapshots are a change to the agent CLI's file layout, not to this feature.
-- **The artifacts describe declared output, not a step's effective `output_multiplicity`.** A `PipeLLM` declared `Text` and run with `output_multiplicity=2` returns a list while its contract says single. The validate report has the same property, and the graph viewer already lives with it; describing effective invocations is a change to the contracts themselves.
-- **Describing dependency pipes.** Left out of the key set (design §4). Doing it needs the dependency's own qualified crate and alias-aware keys in the three artifacts, which is a protocol question before it is a runtime one.
-- **Payload growth.** `pipe_io_artifacts` rides `PipeOutput` across the Temporal activity boundary and `pipe_io_artifacts_dump` rides the SPI payload for every graphspec-writing run. Measure a serialized `PipeOutput` on a large real method before the `pipelex-server` pin moves; Temporal's payload limit does not fail cleanly.
-
-## Live state
-
-Decisions taken so far are in the design's "Decision" and "Questions settled at ratification" sections. Phases 0 to 4 landed in `pipelex` `dev` as `0c3dd3a34f31572389ac6ef87322db99c4c3356d` (PR #1195); Checkpoint 1 below records the state at the end of Phase 4, and the review rounds that followed narrowed the build to the library's own pipes, gated it on `graphspec_json` through `describe_pipe_io` on the trace context (which the agent CLI now settles before the run), made a written graphspec remove stale companions with a warning, and restored the blind catch around the build.
-
-What is left is not this repo's to do. The change shipped in `pipelex` 0.57.0, the first release cut after this merge. Every downstream item filed in Phase 0 — the `pipelex-api` rehydration, the two `pipelex-server` halves, the two SDKs, the app, the MCP views, the workspace spec, and `vscode-pipelex`'s end-to-end verification — needed the published artifact rather than this merge, and that prerequisite is now met: each proceeds against 0.57.0 or later on its own item.
diff --git a/wip/run-scoped-telemetry-identity/review-deferred.md b/wip/run-scoped-telemetry-identity/review-deferred.md
deleted file mode 100644
index 3032808b4..000000000
--- a/wip/run-scoped-telemetry-identity/review-deferred.md
+++ /dev/null
@@ -1,96 +0,0 @@
----
-status: active
-item: L-260922-75299c
----
-
-# Deferred review findings — run-scoped telemetry identity
-
-Findings from the `/rev` passes on this branch (profile 4) that were real but did not meet the round's bar, kept here so nothing is dropped without somewhere to chase it. Round 1 ran at bar `open`, round 2 at bar `defects`, rounds 3 to 5 at bar `necessity`; round 5 ran past the ladder's cap of four on Louis's call, focused on the exception path.
-
-## One capture helper instead of the hand-rolled branches
-
-Raised by cubic in round 1. Still **unverified** — it sorted to deferral before either round's verifier ran, so it rests on cubic's reading alone.
-
-The identified-versus-anonymous capture shape is written out by hand at several sites: `_capture_custom_event` and `_track_to_pipelex` in `pipelex/system/telemetry/telemetry_manager.py`, both branches of `handle_trace_start` in the same file, and `_capture_event` in `pipelex/system/telemetry/posthog_span_exporter.py`. Each one reads "if the identity has a `distinct_id`, capture with it and with `groups or None`; otherwise stamp `$process_person_profile = False`".
-
-cubic's argument for folding them into one `capture_under_identity(client, event, properties, identity)` is that the two streams cannot then drift apart again, and that the anonymous-mode defect round 1 fixed would have been a one-line change. That argument held twice: round 1's fix had to be made once in `_resolve` and then checked at every one of those sites, and round 2 found the one site nobody had checked — the exception autocapture, which was not on cubic's list because it did not resolve an identity at all.
-
-Round 2's fix added a site rather than removing one: `DualClientExceptionCapture._capture_to_client` now writes the same branch a sixth time, though it at least collapses what used to be two copies inside that class into one. The case for the helper is therefore stronger than it was, not weaker.
-
-cubic raised it again in round 3, unprompted and from a clean context, making it the only finding to appear in all three passes.
-
-It stays deferred because it is a structural refactor rather than a defect, and `RunIdentityPolicy` concentrates the part that was actually drifting — which branch a stream takes — in one place. Worth doing when that file is next opened for another reason.
-
-## A run's exception and its spans are still two different people
-
-Raised by `codex:adversarial` and by `code-review` in round 2, and **verified**: `exception_capture.py` captures under the stream's runless identity, while the run's `$ai_span`, `$ai_generation` and product events capture under the run-scoped one. In PostHog those are two distinct persons, so "what was this person doing before the crash" returns nothing joinable on either stream.
-
-Round 2 fixed the half that was a privacy defect — `anonymous` mode no longer names the operator on a crash — and left this half, which is not a patch. `sys.excepthook` and `threading.excepthook` are handed `(type, value, traceback)` and nothing else, and this codebase has no ContextVar layer to read a run out of: run-scoped state rides the payload here, deliberately, because no process spans a run under Temporal. Attributing a crash to the run that caused it therefore needs a design answer — a last-known-run identity the hook may read, with its own concurrency story — rather than a change at the capture site.
-
-Its blast radius bounds the urgency: `grep` shows the two excepthooks are the only callers of `_capture_exception`, so this fires for exceptions that escape to the top of the interpreter or of a thread. A server that handles its own exceptions never reaches it; a CLI crash does.
-
-## The Gateway digest is a pseudonym, not a secret
-
-Raised by `codex:adversarial` and, as a documentation finding, by cubic. The mechanism half was **verified and classified an improvement**, and the prose half was fixed in round 2.
-
-`_make_namespaced_distinct_id` is `sha256(f"{namespace}:{run_user_id}")` truncated, with no key and no salt beyond the namespace — and the namespace, the deployment's Gateway-key hash, is itself sent in the clear as the `distinct_id` of every capture that names nobody. A party with read access to Pipelex's PostHog project can therefore fold a candidate caller id the same way and see whether the result is present, which is cheap against low-entropy ids such as e-mail addresses. That party is in practice Pipelex staff, which is what keeps this an improvement rather than a defect.
-
-Round 2 corrected the claims instead: `docs/setup/telemetry.md` and the function's own docstring no longer say Pipelex can tell callers apart "without learning who either is".
-
-The fix, if it is taken: fold the **raw** Gateway API key rather than its hash, since the raw key never reaches the stream. Nothing else about the construction changes, and the sentences that were weakened could then be restored. It needs the raw key carried to the resolution site, which is the reason it was not done inside a review pass.
-
-## `user_id` has no validation and no provenance
-
-Raised by `codex:adversarial` in round 2, **verified as a mechanism and ruled a theoretical edge case**.
-
-`RunMetadata.user_id` is a bare `str` with no field validator — unlike `storage_scope` and `analytics_groups`, which both have one — and `pipeline_run_setup` does not validate it either. Telemetry decides a run names nobody by comparing that string against the literals in `_NON_DISTINGUISHING_RUN_USER_IDS`, keeping no record of whether the value came from the local default or from an authenticated host. A hosted caller genuinely named `local` is therefore collapsed onto the deployment fallback.
-
-Deferred because no deployment shape was found that reaches it: the default is set in exactly one place, `PipelexMTHDSProtocol.__init__`, and a multi-tenant host must pass its own value explicitly. The cure — a nullable principal, or an identity-kind field, instead of inferring the answer from string contents — is a model change, not a review fix.
-
-## pipelex-api's `single-tenant` is a placeholder the set does not know
-
-Raised by cubic in round 4, and **not verified** — it sorted to deferral before the verifier ran. **The stopgap was taken after round 4**, once `pipelex-api/api/routes/pipelex/pipeline.py` confirmed the default: `SINGLE_TENANT_USER_ID` now lives in `pipelex/system/storage_scope.py` beside `LOCAL_USER_ID` and is in the set, so pipelex-api can import the one string rather than spell its own. The model change below remains the cure.
-
-`_NON_DISTINGUISHING_RUN_USER_IDS` in `pipelex/system/telemetry/telemetry_identity.py` holds `local` and `dry-run-no-user`. cubic reports that pipelex-api returns `SINGLE_TENANT_USER_ID = "single-tenant"` for every run on a single-tenant deployment, which is the same kind of shared placeholder: once pipelex-api pins this version, every such deployment's runs would land on one PostHog person named `single-tenant`, and Langfuse would receive it as `langfuse.user.id`. It is one more instance of the section above — identity absence inferred from string contents — and the cure is the same: a nullable principal carried from the host, rather than a longer list of reserved strings. Adding the string to the set is the cheap stopgap if pipelex-api pins this version before that model change lands.
-
-## `track_event` names `DIRECT` instead of deriving it
-
-Raised by cubic in round 2, and correct today by its own account. `RunIdentityPolicy.make_for_operator_stream` documents itself as the single place the operator stream's policy is derived, and `track_event` is the one of those sites that writes `RunIdentityPolicy.DIRECT` literally instead of calling it. It is inside `case PostHogMode.IDENTIFIED`, so it cannot currently be wrong; a fourth mode, or a change to that mapping, would diverge there silently. An improvement, and cheap whenever that method is next edited.
-
-## Anonymous mode is a claim about PostHog, and the prose does not always say so
-
-Raised by `code-review` in round 3. Real but narrower than reported, and **not verified** — it sorted to deferral before the verifier ran.
-
-`make_run_identity_span_attributes` writes `pipelex.run.user_id` and `pipelex.run.analytics_groups` onto every span unconditionally, and sets `langfuse.user.id` on `is_langfuse_enabled` alone. The operator's `custom_posthog.mode` is read only by the PostHog exporters, through `RunIdentityPolicy.NONE`. So an operator running `mode = "anonymous"` with Langfuse or an OTLP exporter enabled does see per-caller ids at those destinations.
-
-Whether that is a defect turns on what the mode is a claim about. `custom_posthog.mode` governs the operator's PostHog stream, and the docs site scopes it correctly — "the runtime identifies nobody **on your stream**". Langfuse is a separate opt-in with its own configuration, and prompts and completions already reach it unredacted, so an operator who enabled it has already consented to far more than a user id. `code-review`'s own reading is that the prose overreaches rather than the code misbehaving.
-
-What is genuinely loose is the CHANGELOG sentence, which sits in a paragraph that also states the span behaviour plainly and so can be read either way. The cure is either to scope the claim to PostHog in that entry, or to gate the Langfuse attribute on the same decision the PostHog exporter takes — a design question about whether one operator setting should reach a second vendor's destination, which is why it was not settled inside a review pass.
-
-## `TelemetryIdentity.is_anonymous` is a second way of asking one question
-
-Raised by `code-review` in round 3 as a cosmetic sibling of its freeze finding, and **not verified**.
-
-All the capture sites branch on `identity.distinct_id` being truthy; `is_anonymous` is referenced only from tests. Two ways of asking the same question, with nothing keeping them in step — either make it the one the capture sites use, or drop it. Cheap either way, and a judgement about which reads better at the call sites rather than a defect.
-
-## Crash redaction goes by class, so a wrapper's message still carries the text
-
-Raised by cubic and `codex:adversarial` in round 5, and **verified**; filed as `L-260923-65619d`, which carries the reproductions. An error of another class that copied a `PipelexError`'s text into its own message — `raise RuntimeError(f"failed: {error}") from error`, or `pipe_spec.py`'s `ValueError(str(exc)) from exc` — sends that text on both streams, and `PromptContentError`, `PipeValidationError` and `ConceptValueError` are not `PipelexError` subclasses, so their messages are never redacted. It predates the branch, which narrowed it: on `origin/dev` the linked `PipelexError` went out verbatim too. Round 5 corrected the prose that implied otherwise — the `_sanitized_exception_arg` and `_plain_copy` docstrings and the CHANGELOG headline now state the class limit.
-
-## A CLI failure may never reach the Pipelex stream when both streams are on
-
-Noted by round 5's verifier from reading the code, and **not verified**. `telemetry_context()` is PostHog's `new_context()`, which captures on `posthog.default_client` only — the operator's client whenever one exists — and the CLI turns every failure into `typer.Exit`, so the excepthook never runs. With both streams enabled a CLI failure would then reach the operator's project and not Pipelex's. The same holds on `origin/dev`; the CHANGELOG's "both telemetry streams record a crash" is about unhandled exceptions, which this is not.
-
-## Settled in rounds 2 to 5, kept for the record
-
-**The stale docstrings in the two integration-test modules** — `test_pipeline_run_setup_analytics_groups.py` and `test_pipeline_run_setup_storage_scope_gate.py` — were deferred in round 1 as unverified. Round 2 verified them: the docstrings were stale (the exporters do read the groups, and `handle_trace_start` did move below `prepare_pipe_job`), but cubic's stronger claim, that the tests would no longer fail if the gate moved back, was **refuted** — both modules also spy `get_pipeline_manager`, and `add_new_pipeline` still runs above `prepare_pipe_job`, so the pipeline half of each assertion still bites. Only the telemetry half went vacuous. Both docstrings were corrected in round 2 and say so.
-
-**Round 3 found two defects on the exception path, both predating the branch and both fixed.** The privacy redaction replaced a `PipelexError`'s message only when the error arrived bare, never in the `(type, value, traceback)` form an excepthook produces — which is the only form the autocapture has — so a message repeating the caller's own input went out verbatim, reachable on the shipped default because `custom_posthog.mode = "off"` still builds the Gateway client that installs the hooks. And PostHog stamps an error once a client has captured it and drops any later capture of that object, so of the two streams only the first ever recorded a crash, which meant round 2's deployment group was never recorded anywhere. `git` dates both to v0.18.0; the branch changed their shape without introducing either, and made the second consequential by adding the group that never shipped. `tests/unit/pipelex/system/telemetry/test_exception_capture_sdk_contract.py` now exercises both against real PostHog clients, because round 2's `MagicMock(spec=Posthog)` could see neither.
-
-**The `analytics_groups` module docstring** said "no exporter reads the mapping yet, so do not take the field's presence as evidence that a span or an event is already grouped by it" — false as of this branch, and the file is outside the diff, which is why rounds 1 and 2 swept past it. Corrected in round 3.
-
-**The `RunMetadata` freeze** was raised by cubic and `code-review` as an unrecorded breaking change, and `code-review` additionally warned that a dependent repo might reassign a field, `RunMetadata` being on the import surface `pipelex-server/transport/` consumes. That half was **refuted**: `pipelex-server/transport/` and `pipelex-api` contain no `RunMetadata` field assignment, `pipelex-server`'s four sites are all on `mocker.MagicMock()` stubs in `pipelex_temporal` tests, and there are no `setattr` or `object.__setattr__` escape hatches anywhere. The documentation half was taken — the freeze now has a `Changed` entry.
-
-**Round 4 found round 3's crash redaction incomplete, and one regression in its mark clearing; both fixed.** The redaction replaced a `PipelexError` only at the top of what it was handed, while PostHog sends every error it reaches through `__cause__`, `__context__` and the members of an exception group, and reads `sys.exc_info()` itself when handed nothing — so `raise RuntimeError(...) from pipelex_error`, an error raised while handling one, or a `TaskGroup` failure still sent the message verbatim to both streams. The verifier reproduced each against the real SDK. `_sanitized_exception_arg` now redacts a copy of the whole graph and resolves the argument-less form first. Separately, round 3 cleared PostHog's capture marks before the first stream as well as the second, which erased the mark a host's own `posthog.capture_exception()` had left, so an error the host captured and re-raised was recorded twice. The hook now skips an error already marked when it runs and clears marks only between the streams, and the privacy wrapper carries the mark from the redacted copy it sent back onto the caller's error — which also closes the older duplicate where a host's capture of a `PipelexError` marked only the stand-in. The Codex adversarial reviewer re-raised the pseudonym, the reserved-string and the crash-attribution findings above, which stay deferred as recorded.
-
-**Round 5 found two defects in round 4's own changes on the exception path; both fixed.** The privacy wrapper resolved `capture_exception()`'s argument-less form inside the sanitizer only, so the "already captured" check and the mark carried back both saw `None`: a host doing `except PipelexError: posthog.capture_exception(); raise` had the redacted copy marked and the live error not, and the excepthook sent it again on both streams. It now resolves `sys.exc_info()` first. And the graph walk round 4 added ran unguarded before PostHog's own `try`, so a chain of about five hundred links or an argument the SDK would decline raised into the host's `except` block — and could replace the original error inside the CLI's `new_context()`. The reach check is a loop now, as PostHog's walk is, and anything the redaction cannot complete drops the capture with a debug line rather than raising or sending the original. The Codex adversarial reviewer re-raised the crash-attribution finding above, which stays deferred.
diff --git a/wip/sign-publicurl-virtual-hosted/design.md b/wip/sign-publicurl-virtual-hosted/design.md
deleted file mode 100644
index 719a9e2c1..000000000
--- a/wip/sign-publicurl-virtual-hosted/design.md
+++ /dev/null
@@ -1,76 +0,0 @@
----
-status: landed
-item: L-260925-94110e
----
-
-# Sign `public_url` virtual-hosted, and give every normalized input a `public_url`
-
-## The problem, verified
-
-The item's claim holds. `S3StorageProvider._get_client_config` (`pipelex/tools/storage/s3_storage_provider.py:70-86`) builds every client with an explicit `endpoint_url = https://s3.<region>.amazonaws.com` and a `Config(signature_version="s3v4")` that names no addressing style. With an endpoint given and no style, botocore signs path-style, so every presigned `public_url` lands on the region's shared host, `https://s3.<region>.amazonaws.com/<bucket>/<key>?X-Amz-…`. A content security policy source is an origin, that origin is shared by every bucket in the region, and the MCP hosts drop the path from a path-scoped source, so no view can allow the runtime's links without allowing every bucket anyone owns in the region.
-
-The endpoint pin has been there since the S3 provider first landed (the v0.18.0 release commit, `f069d185b`), with no recorded reason.
-
-The measurement below was taken in this repo's venv (botocore 1.40.61, aioboto3 15.5.0), presigning `get_object` with dummy credentials; presigning makes no network call.
-
-| Client configuration | Bucket `pipelex-app-dev` | Bucket `my.dotted.bucket` |
-| --- | --- | --- |
-| Today: regional endpoint, no style | `s3.us-west-2.amazonaws.com/pipelex-app-dev/…` | `s3.us-west-2.amazonaws.com/my.dotted.bucket/…` |
-| Regional endpoint, `addressing_style: virtual` | `pipelex-app-dev.s3.us-west-2.amazonaws.com/…` | `s3.us-west-2.amazonaws.com/my.dotted.bucket/…` |
-| No endpoint, no style | `pipelex-app-dev.s3.amazonaws.com/…` | `s3.us-west-2.amazonaws.com/my.dotted.bucket/…` |
-| No endpoint, `addressing_style: virtual` | `pipelex-app-dev.s3.us-west-2.amazonaws.com/…` | `s3.us-west-2.amazonaws.com/my.dotted.bucket/…` |
-
-Two facts come out of it. Adding the virtual style to the existing configuration yields the bucket's own regional host, which the hosted console's views already allow (`RUN_OUTPUT_SOURCES` in `pipelex-mcp/packages/console/src/hosted/app-buckets.ts:45` names both the global and the regional virtual-hosted origin of each app bucket). And a bucket name containing a dot can never be virtual-hosted over HTTPS, because the name breaks the `*.s3.<region>.amazonaws.com` wildcard certificate, so botocore falls back to path-style for it whatever the style says.
-
-The unsigned fallback, `_make_public_url` (`s3_storage_provider.py:176-185`), already builds the virtual-hosted form, so today the signed and unsigned links disagree. It would build that form for a dotted bucket too, where it fails the TLS handshake, but the storage configuration refuses a bucket name containing a dot before the provider is built, so only a provider constructed directly can meet one; the fallback below covers that case anyway.
-
-## Nothing depends on the path-style form
-
-The workspace was swept for consumers of the runtime's link shape:
-
-- **pipelex-mcp** refuses the path-style host on purpose and allows both virtual-hosted forms (`app-buckets.ts`, with a test asserting the regional form is allowed). Its comments in `app-buckets.ts`, `packages/core/src/capabilities/run.ts` and `packages/console/src/views/run-results.ts` describe the runtime as signing path-style; they go stale once the hosted plane runs this fix, which is a follow-up for that repo.
-- **pipelex-app** proxies whatever URL the platform resolves (`/api/assets`) and parses none; its tests use path-style URLs only as opaque fixtures.
-- **pipelex-server** signs its own links independently, with boto3's default endpoint (the global virtual-hosted form), and never parses the runtime's. Its storage-resolution doc already shows the regional virtual-hosted form in an example.
-- **The hosted plane's network rules** were checked, and none of them depends on the S3 hostname, so moving the runtime's own `get_object` and `put_object` calls to the bucket's host changes nothing there.
-- **Bucket policies and CORS rules** apply to a bucket regardless of the addressing style a request used.
-
-## Decisions
-
-### One client form: virtual-hosted on the bucket's regional host
-
-`_get_client_config` keeps its regional endpoint and adds `s3={"addressing_style": "virtual"}` to its `Config`. Every call the provider makes, the reads, the writes and the presigning, then addresses `https://<bucket>.s3.<region>.amazonaws.com`.
-
-Two alternatives were weighed and rejected. Dropping the endpoint pin without a style would sign on the global host, `<bucket>.s3.amazonaws.com`, the platform's form, which the console also allows; but the global host reaches a bucket outside `us-east-1` only through DNS that AWS warns can answer with a temporary redirect for a newly created bucket, and the regional host has no such caveat. Applying the virtual style only to the presigning client would keep the runtime's own traffic on the shared host and limit the change to the link, at the price of two client configurations for one bucket; with nothing on the hosted plane depending on the hostname, the smaller surface wins, and virtual-hosted is AWS's recommended addressing in any case.
-
-The risk this accepts is a self-hosted deployment whose egress proxy allows only `s3.<region>.amazonaws.com`: its reads and writes would start failing. The changelog entry names it, so an operator can widen the rule to `*.s3.<region>.amazonaws.com`.
-
-### Signed and unsigned links follow one rule
-
-Both forms are virtual-hosted on the bucket's regional host, except for a bucket name that cannot be a hostname, which falls back to path-style on the regional host: a legacy name with uppercase letters or an underscore, which the configuration accepts, and a dotted one, which it refuses before the provider is built. botocore applies that rule to the signed form by itself; `_make_public_url` applies it through botocore's own `check_dns_name`, so an unsigned link never names a host the signed link would not. The unsigned form percent-encodes the key as botocore does, since a caller's own upload can name a key holding a space, a `#` or a `?`, and the GCS provider's unsigned form gets the same encoding. A test pins the two forms to the same host and path for a plain, a dotted and a legacy bucket name, with a plain key and one holding those characters.
-
-### Every normalized input carries a `public_url`
-
-The item's second observation, the moodboard rendering as `src="None"`, traces to the runtime, not the method. `_normalize_url_content` (`pipelex/pipeline/input_normalizer.py:204`) fills `public_url` for two of the four input forms, the `data:` URL and the local path, each of which it stores and then signs. It passes an `http(s)` URL and a `pipelex-storage://` reference through untouched (`input_normalizer.py:286`), so their `public_url` stays `None`, and Jinja renders `{{ moodboard.public_url }}` as the string `None`. A method author cannot know which form a caller used, and the hosted console's upload grant produces exactly the `pipelex-storage://` form, so the fallback cannot be left to each method.
-
-The normalizer therefore fills `public_url` for the two remaining forms, mirroring what `GeneratedContentFactory` already does for produced images (`pipelex/cogt/content_generation/generated_content_factory.py:181-205`):
-
-- **A `pipelex-storage://` reference** gets a link signed through the storage provider, always, even when the input already carries a `public_url`. The reference is the durable fact and the link a derivative with an expiry, and the usual way an input arrives with both is a previous run's output passed back in, whose link may have expired.
-- **An `http(s)` URL** gets `public_url = url` when the input carries none, since that URL is already the public one; a caller-supplied `public_url` is kept.
-
-Signing a reference is no wider than reading it, which the operators consuming the input already do. On the hosted plane the platform refuses, before any run starts, a `pipelex-storage://` reference outside the caller's organization, so no link to another tenant's file can be minted this way.
-
-A run with `is_normalize_data_urls_to_storage` off, or with mock inputs, skips normalization entirely and keeps today's behaviour; that switch governs the whole normalizer and this change does not widen it.
-
-`DocumentContent` goes through the same function and gets the same treatment.
-
-## What this does not fix
-
-- **A report reopened after the link's lifespan.** A baked link still expires (`signed_urls_lifespan_seconds = 3600`, `pipelex/pipelex.toml:23`). Durable references in HTML markup and a renderer that resolves them are L-260918-4fd772 in this repo, with the rendering side in `mthds-form` and the console.
-- **The webapp.** The item says a virtual-hosted link fixes a fresh render "on every surface"; it does not reach `app.pipelex.com`. The webapp's CSP allows images only from `'self'`, `data:` and `blob:` (`pipelex-app/src/lib/csp.ts:61`), and an HTML output renders in a `srcdoc` frame (`mthds-form/src/react/html-preview.tsx:214`), which inherits that policy, so an S3 image inside an HTML output is blocked there in either addressing form. The fix reaches the MCP console's views and every surface with no CSP: a saved HTML file, an email, a terminal.
-- **Jinja's rendering of `None` as `None`.** Once every normalized input carries a `public_url`, the case stops arising for inputs, and a template author who wants a fallback writes one.
-
-## Shipping and acceptance
-
-The change ships as a `pipelex` release. The hosted plane runs it once the pins move: `pipelex-api` pins `pipelex`, and `pipelex-server` pins both `pipelex-api` (`api-hosted/pyproject.toml`) and `pipelex` itself (`temporal/pyproject.toml`, `daytona-sandbox/pyproject.toml`). Those moves ride the ordinary release train.
-
-In this repo, acceptance is the unit test that presigns through real botocore and asserts the host, which a revert of the one-line style change turns red. On the hosted plane, acceptance is a fresh run of the catalog method "Fashion designer" on the dev console once the pins carry the release: every `<img src>` in its `inner_html` sits on `https://pipelex-app-dev.s3.us-west-2.amazonaws.com`, the moodboard's included, and claude.ai paints every picture. That check, and the stale comments, belong to the pipelex-mcp follow-up filed with this design.
diff --git a/wip/sign-publicurl-virtual-hosted/plan.md b/wip/sign-publicurl-virtual-hosted/plan.md
deleted file mode 100644
index ab36a29cf..000000000
--- a/wip/sign-publicurl-virtual-hosted/plan.md
+++ /dev/null
@@ -1,89 +0,0 @@
----
-status: landed
-item: L-260925-94110e
----
-
-# Plan: sign `public_url` virtual-hosted, and give every normalized input a `public_url`
-
-The decisions and their evidence are in [`design.md`](design.md). One branch, one pull request, two phases with a checkpoint at the end. The work is test-first: each phase writes its failing tests, watches them fail for the right reason, then changes the code.
-
-## Phase 1 — The S3 provider signs on the bucket's own host
-
-Tests, in a new module `tests/unit/pipelex/tools/storage/test_s3_storage_provider_url_form.py` (the repo allows one test class per module), as a class that does not use the `mock_aioboto3` fixture, because the point is to exercise botocore's real addressing logic:
-
-- [x] Presigning through a real aioboto3 session, with dummy credentials set through `monkeypatch` and `AWS_CONFIG_FILE` and `AWS_SHARED_CREDENTIALS_FILE` pointed at an empty file so the developer's own AWS configuration cannot leak in, yields a link whose host is `<bucket>.s3.<region>.amazonaws.com` and whose path is `/<key>`. Presigning makes no network call, so this stays a unit test.
-- [x] The same presigning for a dotted bucket name yields the path-style link on `s3.<region>.amazonaws.com`.
-- [x] For both kinds of bucket name, the signed link and the unsigned one (`signed_urls_lifespan=None`) name the same host and the same path.
-- [x] Mutation check: remove the style from `_get_client_config` and watch the first test go red; restore the dotted-name branch of `_make_public_url` to the plain form and watch the third go red. Restore by editing, never with `git checkout`.
-
-Code, in `pipelex/tools/storage/s3_storage_provider.py`:
-
-- [x] `_get_client_config` adds `s3={"addressing_style": "virtual"}` to its `Config`, with a comment saying why the style is pinned: a CSP can name a bucket only by its own host, and botocore signs path-style whenever an endpoint is given.
-- [x] `_make_public_url` builds the path-style regional form for a bucket name containing a dot and the virtual-hosted regional form otherwise, with a comment naming the wildcard certificate as the reason.
-- [x] The existing mocked fixtures that fake a presigned link (`tests/unit/…/test_s3_storage_provider.py:38`, `tests/integration/pipelex/tools/storage/conftest.py:71`) already use the virtual-hosted regional form; confirm and leave them.
-
-Documentation:
-
-- [x] `docs/features/cloud-storage.md` says which URL form S3 links take, virtual-hosted on the bucket's regional host with the dotted-name exception, so an author writing a CSP knows the origin to allow.
-- [x] `CHANGELOG.md` under Unreleased: the S3 provider signs and fetches on the bucket's own regional host instead of the shared regional endpoint, and a self-hosted deployment whose egress rules name only `s3.<region>.amazonaws.com` must allow `*.s3.<region>.amazonaws.com`.
-
-Gates:
-
-- [x] `make agent-check`, with the changes staged first so the drift digest sees them; handle any drift contract the storage files trigger with `make drift-plan` and `make drift-ack`.
-
-## Phase 2 — Every normalized input carries a `public_url`
-
-Tests, in a new module `tests/unit/pipelex/pipeline/test_input_normalizer_public_url.py` beside `test_input_normalizer.py` (one test class per module), with the storage provider mocked as that module already does:
-
-- [x] An image input whose `url` is a `pipelex-storage://` reference comes out with the provider's signed link as `public_url` and its `url` unchanged.
-- [x] The same input already carrying a `public_url` comes out with the freshly signed link instead.
-- [x] An `http(s)` input with no `public_url` comes out with `public_url` equal to its `url`; one carrying a `public_url` keeps it.
-- [x] A `DocumentContent` input gets the same treatment, one case for each form.
-- [x] Update `test_well_formed_http_url_passes_through_unchanged` so it still asserts no network call and an unchanged `url`, and now asserts the filled `public_url`; do the same for `test_user_image_http_url_passthrough_when_fetch_disabled` in `tests/integration/pipelex/tools/storage/test_user_provided_image_storage.py`.
-- [x] Mutation check: drop each new branch in turn and watch its test go red.
-
-Code, in `pipelex/pipeline/input_normalizer.py`:
-
-- [x] The `ResolvedHttpUrl` branch of `_normalize_url_content` returns a copy with `public_url = url` when the input has none, after the syntax check it already runs.
-- [x] A `ResolvedPipelexStorage` branch replaces the pass-through at line 286: it signs through `storage.public_url(uri=content.url)` and returns a copy carrying the link.
-- [x] The function's docstring and the pass-through comment say what each form now gets.
-
-Knock-on checks:
-
-- [x] Run the tests that pretty-print `TextAndImagesContent` and structured inputs. The premise turned out wrong for `TextAndImagesContent`: the normalizer never reaches its images (see the deferral below), so its rendering does not change; the structured-input and rendering tests passed unchanged.
-- [x] Run the tests that snapshot a run's inputs or graph, since normalized inputs now carry one more field.
-
-Documentation:
-
-- [x] `docs/building-methods/concepts/native-concepts.md:79` and `:105` say the runtime fills `public_url` for every input it normalizes, a signed and therefore expiring link for a stored file and the URL itself for an `http(s)` one, and that a template baking it into HTML produces a report that stops loading once the link expires.
-- [x] `CHANGELOG.md` under Unreleased: inputs given as a `pipelex-storage://` reference or an `http(s)` URL now carry a `public_url`, so a template writing `{{ image.public_url }}` no longer renders `None`.
-
-## Checkpoint — ready for review
-
-- [x] `make agent-check` clean.
-- [x] `make agent-test` green.
-- [x] `/rev`, at the depth `ledger review-profile` derives: round 1 at profile 3 (cubic, Codex review, the official code-review at `low`), then round 2 at the `defects` bar over round 1's fixes, both recorded on the item.
-- [x] Record here what was decided during the build, any open question, and the last reviewed commit.
-
-### Decisions taken during the build
-
-- **Each new test class has its own module**, `test_s3_storage_provider_url_form.py` and `test_input_normalizer_public_url.py`, because the repo's test standard allows one test class per module.
-- **A provider that cannot link a stored reference leaves the link the input carried.** In-memory storage returns no link at all; erasing a carried link the runtime cannot replace would lose information for nothing.
-- **A reference the storage provider refuses as a key is an input error at normalization.** Signing now happens before the run, so the local provider's refusal of a path escaping its root surfaces there; it is raised as `PipelineInputContentError`, INPUT domain and not caller-facing, rather than as a bare storage error.
-- **The unsigned S3 link uses botocore's own `check_dns_name`** instead of a hand-written dot test, so a legacy bucket name with uppercase letters or an underscore falls back to path-style exactly as the signed link does. Both unsigned builders, S3 and GCS, percent-encode the key as their signed forms do. Both came out of review round 1.
-- **A NUL byte in a local input path or a local storage key is an input error.** `Path` rejects it with a bare `ValueError` rather than an `OSError`, so the local provider refuses such a key as `StorageInvalidUriError` and the normalizer's local-path branch catches `ValueError` beside `OSError`. The storage-reference branch made the first reachable before the run; the second predates this branch. Both came out of review round 2.
-- **The public design describes the hosted plane's network and tenancy checks by role.** `pipelex` is a public repository, so the specifics sit on the ledger item instead, and the commit that added this design was rewritten before any pull request so that no commit carries them.
-
-### Deferred
-
-- **The normalizer does not reach the images inside a `TextAndImagesContent`**, nor those in a `PageContent`'s `text_and_images`: `_normalize_value` recurses only into `StructuredContent`, `ListContent` and lists, and `TextAndImagesContent` is a plain `StuffContent`. Their `data:` URLs are left unstored and their `public_url` unfilled. The gap predates this branch; review round 1 confirmed it, and the changelog and docs now say which placements are reached. Reaching them is a recursion branch in `_normalize_value` and its tests.
-- **The storage configuration refuses a dotted bucket name**, for S3 and GCS alike, so the S3 provider's path-style fallback for one is reachable only by a provider constructed directly. Review round 2 proposed accepting dotted names; that is a feature choice, and one the shared GCS check would need too, so the docs and changelog now say the configuration refuses them, and the fallback stays as a defensive measure.
-- **The design still names a few paths inside internal repositories**: the webapp's CSP source file and the hosted plane's member manifests. Review round 2 raised it; nothing named is secret, and rewording them by role is hygiene rather than a defect at that round's bar.
-
-### Last reviewed commit
-
-Round 1 reviewed the branch at the commit titled "Mark the campaign active and tick the built phases", and round 2 at the commit titled "Unsigned storage links encode their key and match botocore's host rule", each before its round's fixes.
-
-## After the merge
-
-The branch merged into `dev` as #1260, squash commit `4f535ec56`, and `/ledger-land` closed the item on that merge; the change reaches `main` with the next pipelex release. The hosted acceptance, a fresh "Fashion designer" run on the dev console painting every picture from the bucket's regional host, waits for the release train to carry the change into `pipelex-api` and `pipelex-server`, and is recorded on the pipelex-mcp follow-up along with the comments there that still call the runtime's link path-style.
diff --git a/wip/structured-error-classification/design.md b/wip/structured-error-classification/design.md
deleted file mode 100644
index b0d21f8e0..000000000
--- a/wip/structured-error-classification/design.md
+++ /dev/null
@@ -1,79 +0,0 @@
----
-status: landed
-item: L-260927-086ea4
----
-
-# A gateway's model_not_allowed refusal says to change the model
-
-## The bug, verified
-
-The item reports that a run whose model the gateway refuses reaches the user as an unknown runtime failure. Verification on 2026-09-27 found two independent causes. The first has since been fixed by the instructor upgrade (pipelex#1289, merged as `85729dfd3`). The second is what remains of this item.
-
-### Cause 1, fixed: instructor's new retry loop hid the SDK exception
-
-The campaign's failure message was the fallback text of `OpenAICompletionsLLMWorker._gen_object`. That text is produced when `extract_underlying_sdk_exception` cannot find the SDK exception inside an `InstructorRetryException`, and it carries `error_category=UNKNOWN` and no user action. From instructor 1.15.3 on, every `from_*` factory runs through `instructor/v2/core/retry.py`, which raises `InstructorRetryException` from any exception that ends the loop. It records only parse failures in `failed_attempts`, so an API error sits on `__cause__` alone. The recovery only looked in `failed_attempts` and in a tenacity `RetryError`. As a result, every provider error on a structured-output call was reported as unclassified and never retried, on every LLM worker that uses instructor. This was bisected over `httpx.MockTransport`: 1.15.1 raised the SDK exception raw, while 1.15.3, 1.15.4 and 1.17.0 wrapped it.
-
-pipelex#1289 moved the lock to instructor 1.17.0 and the floor to `>=1.17.0,<2.0.0`, and it reordered the recovery to read `__cause__` first, unwrapping a tenacity `RetryError`, with `failed_attempts` as the fallback. That is the order the first draft of this design proposed. It also rewrote `wrap_in_instructor_retry` to build the new shape, and the "`instructor` Unwrap" section of `docs/under-the-hood/error-model.md`.
-
-Re-verified at `85729dfd3`, by driving the real instructor factories over `httpx.MockTransport` with `make_instructor_schema_retrying(max_attempts=3)`, then running the recovery, classify and render:
-
-| Scenario | Recovered | Report |
-|---|---|---|
-| OpenAI, gateway 412 `model_not_allowed_error` | `APIStatusError` | `configuration` / `config` / 500 / `change_input`: "The provider rejected the request — review the prompt, parameters, and inputs." |
-| OpenAI, invalid output then 429 | `RateLimitError` | `transient` / `runtime` / 429 / `wait_and_retry`, retryable |
-| OpenAI, re-ask budget spent | `ValidationError` | `content` / `input` / 422 / `change_input` |
-| Anthropic, 429 | `RateLimitError` | `transient` / `runtime` / 429 / `wait_and_retry`, retryable |
-
-The hosted plane still runs this bug: `pipelex-server` pins `pipelex==0.68.0`, which was released before `85729dfd3`, and its lock resolves instructor 1.15.4. It gets the fix with the next pipelex release and the pin move that follows, so nothing needs filing.
-
-### Cause 2, open: a 412 lands on the status ladder's generic 4xx arm
-
-Now that the SDK exception is recovered, the 412 is classified. `extract_openai_metadata` reads `provider_error_code = "model_not_allowed_error"` off `exc.type`, but no code map knows that code. So `classify_inference_error` falls through to its unrecognized-4xx arm (`pipelex/cogt/inference/error_classify.py`, the `if status_code >= 400:` branch), which returns `CONFIGURATION` / `CHANGE_INPUT`. The domain is right. The action is wrong: nothing in the prompt, parameters or inputs causes this refusal, and only another model avoids it. A caller branching on `user_action.kind` is sent to edit its inputs.
-
-### Where the refusal comes from
-
-`model_not_allowed_error` is the Portkey gateway's own code, not a model vendor's. Both raise sites are in the middleware the manifold vendors from upstream (`pipelex-manifold/src/middlewares/portkey/utils.ts`). They answer HTTP 412 with `{error: {message: "Model <wire id> is not allowed for this integration", type: "model_not_allowed_error", param: null, code: null}}` in two cases: the integration has `allow_all_models` off and does not list the model, or it lists the model as `archived`.
-
-`pipelex_gateway` points at Portkey's cloud by default (`pipelex/providers/gateway/gateway_factory.py`, `get_endpoint`), where Pipelex configures the integrations. The manifold would raise the same code if one of its integrations turned `allow_all_models` off. So does Portkey's cloud for a user's own workspace reached through the `portkey` backend, which runs on the same OpenAI completions worker and Extract hop and reports the same provider; there the allow-list is the user's own. Either way, the model exists, and the integration that would serve it refuses it for this caller. The caller can pick another model. For whoever operates the gateway, the refusal means the model deck and the integration's allow-list disagree, which is what `L-260923-2c7f6b` tracks for api-dev.
-
-## Decisions
-
-### D1. `model_not_allowed_error` joins the gateway's routing refusals as `MODEL_NOT_ALLOWED`
-
-A new member, `GatewayRoutingRefusal.MODEL_NOT_ALLOWED`, is mapped from the code `"model_not_allowed_error"` in `_GATEWAY_ROUTING_REFUSAL_BY_CODE`. It classifies as `CONFIGURATION` / `CHANGE_MODEL`, is never retried, and leaves `is_model_not_found` unset.
-
-- **Why this family.** The gateway raises it before any provider sees the request, and it concerns which model may be used. That is the family's definition: the refusal is not an inference failure and not the prompt's fault, and a retry earns the same answer. The family exists to keep such refusals away from the status-ladder arm.
-- **Why the flag stays unset.** The model exists and an integration serves it; this caller may not use it there. Saying "not found" would be false, the same reasoning `WRONG_PROTOCOL` and `UNSERVED_CAPABILITY` follow. The error stays the family's failure class and carries the distinction in its advice.
-- **Why match on the code alone.** Every other routing code is in the `pig-` namespace, which no vendor emits into. This one is Portkey's code, and no model vendor uses it. Portkey's cloud emits it for the integrations Pipelex configures and for a user's own workspace behind the `portkey` backend alike, and the manifold's vendored middleware emits it too. The first draft said only gateways Pipelex configures emit it, which review round 1 refuted; the conclusion stands, because the refusal means the same thing and calls for the same move from any of them, and only the advice has to hold for both (D2). The enum docstring and the map comment are rewritten to say that this member is keyed on the gateway substrate's code rather than on a `pig-NN`, and that it arrives on 412 rather than 400. Also checking the status would add nothing: both raise sites answer 412, and the remedy would be the same under any status.
-- **Every Extract hop already reads the code.** The code sits in `type`, with `code: null`. The OpenAI hop reads `exc.type`, the Anthropic hop reads the body's `error.type`, and the two Pipelex-service hops read `code` and then fall back to `type`. This was probed at `85729dfd3` with the campaign's 412 body, each exception built the way production builds it: Portkey's and OpenAI's `_make_status_error_from_response` (through the test module's `_as_the_portkey_sdk_raises_it` and `_as_the_openai_sdk_raises_it`), an `httpx.HTTPStatusError` for the manifold's native routes, and `AsyncAnthropic._make_status_error_from_response`, which returns a plain `APIStatusError` for a 412. All four returned `provider_error_code = "model_not_allowed_error"`, so the change touches no Extract hop. The tests pin every hop anyway, as `TestTheCodeSurvivesEveryExtractHop` does for the other members.
-
-### D2. The advice names the model handle
-
-The family's advice deliberately names no model, because the gateway's own message states every specific. That reasoning fails here. The gateway's message names only the backend's wire id (`us.anthropic.claude-sonnet-4-5-20250929-v1:0`), which the method's author never wrote. `render_inference_error` already receives `model_handle`, so it threads the handle through `_render_detail` into `_render_gateway_routing_refusal_detail`, and only this member uses it. The handle is the one the model deck resolved the pipe's model to, so a pipe that named a preset or an alias reads the handle behind it. The advice reads:
-
-> The inference gateway does not allow the model 'claude-4.5-sonnet' for this account — pick another model for the pipe; if the pipe named this one, leaving its model unset uses the default instead. If your model deck lists it as available, the deck and the gateway's allow-list disagree: on the Pipelex gateway, contact support; on a Portkey workspace of your own, allow the model in the integration that serves it.
-
-Both hints are conditional, which review round 1 asked for, because the Render step cannot tell the cases apart. The handle may be one the pipe named or the deck's default, and when it is the default, telling the caller to leave the model unset would tell them to do what they already did. And a deck disagreement is Pipelex's to settle on the Pipelex gateway and the user's own on their Portkey workspace, which nothing on the wire distinguishes.
-
-The report's `model` field already carries the handle, through `fill_model_and_provider` in `LLMWorkerAbstract`. So the change is to the advice, not to attribution.
-
-### D3. The HTTP answer does not move
-
-At `85729dfd3` the refusal already answers 500 (`CONFIGURATION` implies `ErrorDomain.CONFIG`), and it still does after this change. Only `user_action` changes. The changelog says so, because a classification change usually moves the status.
-
-### D4. One test pins the hand-built wrapper to what instructor really raises
-
-pipelex#1289 rewrote `wrap_in_instructor_retry` to build the new shape by hand. `test_instructor_retry.py` pins the retry predicate against instructor's `_RETRYABLE_PARSE_ERRORS`, but nothing pins the wrapper's shape against the real loop. A hand-built exception is how cause 1 stayed green on the old lock, so the helper would drift silently at the next instructor release that changes the shape.
-
-One test module fixes that by driving `from_openai` and `from_anthropic` over `httpx.MockTransport` with `make_instructor_schema_retrying`, in three shapes: an API error first, an invalid output followed by an API error, and a spent budget. For each shape it asserts that `extract_underlying_sdk_exception` returns the exception that ended the loop, and that the exception instructor raised matches the shape the helper builds: the SDK exception as `__cause__`, and only parse failures in `failed_attempts`. The same module drives the campaign's scenario end to end for D1.
-
-### D5. Two statements #1289 left inaccurate are corrected
-
-- The "`instructor` Unwrap" section of `docs/under-the-hood/error-model.md` still says that a `pydantic.ValidationError` from a schema mismatch "lands in `UNKNOWN`". It does not. `_STATUSLESS_BY_TYPE_NAME` maps it to `CONTENT` / `CHANGE_INPUT`, and the spent-budget row above shows it answering 422.
-- The Unreleased changelog entry "A transport error inside a structured-output call is classified again" dates the wrapping to "`instructor` 1.16 and later". The bisection shows it started in 1.15.3. The correct range tells a reader on an older pipelex whether they were affected, since pipelex before this release accepted `instructor>=1.13`.
-
-## What does not change
-
-`located_failure.py` stays as it is. Its floor and fallback are right for a failure nothing classified, which a gateway refusal no longer is. Refusing, at validation time, a model the account cannot use is `L-260927-2a587b` (`pipelex-server`), and resolving every model reference to a served handle at validation is `L-260925-cfb6f3`. Both would prevent the run; this item classifies the failure when it happens anyway.
-
-`pipelex-server`'s fixture `_MODEL_REFUSED_REPORT` (`platform/tests/unit/platform/routers/v1/test_runs.py`) records the `change_input` shape. It tests the platform's route rather than the runner's classification, so it stays green, but it will read as out of date once the server moves its `pipelex` pin.
diff --git a/wip/structured-error-classification/plan.md b/wip/structured-error-classification/plan.md
deleted file mode 100644
index bae8c9942..000000000
--- a/wip/structured-error-classification/plan.md
+++ /dev/null
@@ -1,56 +0,0 @@
----
-status: landed
-item: L-260927-086ea4
----
-
-# Plan: a gateway's model_not_allowed refusal says to change the model
-
-The design is `design.md` beside this file. The work happens in the worktree `_pipelex--structured-error-classification`, on the branch `fix/Structured-error-classification`, based on `85729dfd3`. Tests come first: write the failing tests before touching the code they cover. Louis approved this plan for implementation on 2026-09-28.
-
-## Picking it up
-
-- Enter the worktree with `wt open --for L-260927-086ea4`, then run `ledger claim L-260927-086ea4 --renew` from inside it.
-- The helpers the tests need already exist in `tests/unit/pipelex/cogt/inference/test_gateway_routing_refusals.py`: `_as_the_portkey_sdk_raises_it`, `_as_the_openai_sdk_raises_it` and `_ORIGIN`. For the Anthropic hop, `anthropic.AsyncAnthropic(api_key=…, base_url=_ORIGIN)._make_status_error_from_response(response)` builds what the SDK raises; for a 412 that is a plain `APIStatusError`.
-- For the real-loop module, the earlier probe is a working sketch. Build a real `openai.AsyncOpenAI` or `anthropic.AsyncAnthropic` with `http_client=httpx.AsyncClient(transport=httpx.MockTransport(handler))` and `max_retries=0`, wrap it with `from_openai(client, mode=Mode.TOOLS)` or `from_anthropic(client)`, and call `create_with_completion(…, response_model=…, max_retries=make_instructor_schema_retrying(max_attempts=3))`. For an invalid output, return a chat completion whose tool call's arguments fail the schema. The Anthropic SDK release locked here takes an `httpx` client. More recent Anthropic releases insist on `httpx2`, so a future lock move will need the transport changed.
-- The campaign's 412 body is `{"error": {"message": "Model us.anthropic.claude-sonnet-4-5-20250929-v1:0 is not allowed for this integration", "type": "model_not_allowed_error", "param": null, "code": null}}`, and its model handle is `claude-4.5-sonnet`.
-- `_render_detail` has a single caller, `render_inference_error`, so adding `model_handle` to its signature touches nothing else. It is keyword-only after the existing subject.
-
-## What already landed
-
-The instructor half of the first draft (reading `__cause__` first in `extract_underlying_sdk_exception`, moving the lock, raising the floor, and rewriting the helper and the unwrap docs) landed in pipelex#1289 as `85729dfd3`. It was re-verified against the real instructor 1.17.0 loop; the table is in the design.
-
-## Classify model_not_allowed and pin the instructor wrapper to the real loop
-
-- [x] Write the failing tests first.
- - Extend `tests/unit/pipelex/cogt/inference/test_gateway_routing_refusals.py`:
- - `model_not_allowed_error` maps to `MODEL_NOT_ALLOWED`;
- - it survives every Extract hop, each exception built through its SDK's own factory: the OpenAI hop through `_make_status_error_from_response(response)`, which takes no `request` argument, the Anthropic hop, the Portkey substrate, and the manifold's httpx hop;
- - it classifies as `CONFIGURATION` / `CHANGE_MODEL`, not retried, with `is_model_not_found` unset;
- - the advice names the model handle and not the wire id;
- - the HTTP status stays 500;
- - the advice survives the pipe boundary.
- - Add the real-loop module of design D4, for example `tests/unit/pipelex/providers/test_instructor_retry_shapes.py`. It drives `from_openai` and `from_anthropic` over `httpx.MockTransport` for the three shapes, and asserts that the recovery returns the exception that ended the loop and that the raised shape is the one `wrap_in_instructor_retry` builds. In the same module, drive the campaign's scenario end to end: the OpenAI completions worker's `_gen_object` over real instructor, the gateway answering 412 with the campaign's body, and the located failure report showing `error_domain: config`, `error_category: configuration` and `user_action.kind: change_model`.
-- [x] Add `GatewayRoutingRefusal.MODEL_NOT_ALLOWED` and its map entry. Rewrite the enum docstring and the map comment per design D1: this member is keyed on the gateway substrate's code and arrives on 412, it has two raise sites (not in the allow-list, or archived), and no vendor collision is possible.
-- [x] Add its arm to `_classify_gateway_routing_refusal`, with a comment tying it to `WRONG_PROTOCOL` and `UNSERVED_CAPABILITY` on why the flag stays unset.
-- [x] Thread `model_handle` from `render_inference_error` through `_render_detail` into `_render_gateway_routing_refusal_detail`, and write this member's advice (design D2). The other members keep ignoring the handle. Update that function's docstring, which says the family names no model, to state this exception and its reason.
-- [x] In `docs/under-the-hood/error-model.md`, add the row to the "When the model cannot be routed" table and a bullet on the unset flag and the handle in the advice. In the "`instructor` Unwrap" section, correct the sentence claiming a `pydantic.ValidationError` lands in `UNKNOWN` (design D5).
-- [x] In `CHANGELOG.md` under Unreleased, add a Fixed entry: a gateway's `model_not_allowed_error` refusal now reads as a configuration error with a `change_model` action naming the model handle, instead of "review the prompt, parameters, and inputs", and the HTTP status is unchanged at 500. Correct the existing "A transport error inside a structured-output call is classified again" entry from "1.16 and later" to "1.15.3 and later" (design D5).
-- [x] Add a note to `L-260927-24b43d` saying the lock moved from instructor 1.15.1 to 1.17.0 in `85729dfd3`, since that item's evidence cites 1.15.1 internals and needs re-reading at the new version.
-- [x] Run `make agent-check`, then `make agent-test`.
-
-### Checkpoint
-
-- [x] Record here the final wording of the advice and anything review changed in the design.
- - The advice reads: "The inference gateway does not allow the model '<handle>' for this account — pick another model for the pipe; if the pipe named this one, leaving its model unset uses the default instead. If your model deck lists it as available, the deck and the gateway's allow-list disagree: on the Pipelex gateway, contact support; on a Portkey workspace of your own, allow the model in the integration that serves it." The design's draft said "for this access"; "account" is the word a caller recognizes.
- - Review round 1 (profile 3, cubic, Codex, code-review) changed two things in the design, both recorded there. Portkey's cloud also emits `model_not_allowed_error` for a user's own workspace behind the `portkey` backend, so the claim that only Pipelex-configured gateways emit it was corrected in the code comment, the error-model doc and D1, and the advice now says who settles a deck disagreement on each gateway. The hint to leave the pipe's model unset is now conditional, since the refused model may be the default. The round also removed the family counts from the doc and the test docstring. A finding that the `wip/` documents name private repositories and paths was refuted: the public repository's source and other campaign documents already do, and nothing named is a secret.
- - The real-loop module is `tests/unit/pipelex/providers/test_instructor_retry_shapes.py`. Beyond the design, it pins that a spent budget recovers the very `ValidationError` object instructor recorded last in `failed_attempts`.
- - Beyond D5, the "Behavior Summary" table of `docs/under-the-hood/error-model.md` made the same false claim as the unwrap section (a spent re-ask budget reading `UNKNOWN`, HTTP 500). It reads `CONTENT` / `CHANGE_INPUT`, HTTP 422, verified by rendering a recovered `ValidationError`, and the row now says so; a row for this refusal was added beside it.
-- [x] Run `/rev`, then open the pull request with `Closes L-260927-086ea4`.
- - Review converged at round 2, which fixed nothing. Its one confirmed finding, that STRICT disclosure drops every inference error's `user_action` (this refusal's included), was already true before this branch and covers the whole family, so it went to the ledger.
-
-## Out of scope, with where it lives
-
-- Refusing a model the account cannot use at validation: `L-260927-2a587b` (`pipelex-server`). Resolving every model reference to a served handle: `L-260925-cfb6f3`.
-- The api-dev gateway's allow-list disagreeing with the remote config: `L-260923-2c7f6b` (`pipelex-remote-config`).
-- Usage accounting across re-asked attempts: `L-260927-24b43d`.
-- Keeping an inference error's authored `user_action` under STRICT disclosure, where it is dropped with the provider-bearing message: `L-260928-69b18f`.
diff --git a/wip/structured-logs/review-deferrals.md b/wip/structured-logs/review-deferrals.md
deleted file mode 100644
index d3742ea76..000000000
--- a/wip/structured-logs/review-deferrals.md
+++ /dev/null
@@ -1,340 +0,0 @@
-# Structured logs: findings deferred by review passes
-
-Traces for what a review pass on a structured-logs member read as real but not worth fixing at that pass's bar. The sprint is L-260916-a8cdd2; the campaign documents live at the workspace root under `wip/structured-logs/`. An entry marked *unverified* rests on the reviewer's word alone: nobody reproduced it.
-
-The sink member L-260916-aa6e58 took every entry below that named it: the traceback now rides the record's `exc_info`, the console flag and the poor branch retired with the log mode, the mutating formatter went with the poor handler, the class-owned attribute collision and the circular-reference and non-string-key raises are guarded and tested, the changelog bullet is folded, the fields-by-reference and `data` contracts are written down in the logging page, the `data` parse stays eager and the reason is recorded there, the `ErrorReport` comment names the payload fields alone, and the logger-attached filter advice is corrected in the changelog and the page. The entries stay here as the trace of the rounds that found them.
-
-## L-260916-a1dbd5, round 1 (fields, context, no stack walk)
-
-- **Caller attribution rides a fixed frame depth** (*unverified*, cubic). `CALLER_FRAME_DEPTH` in `pipelex/tools/log/log_dispatch.py` counts the frames between the frame lookup and the code that called `log.<level>(...)`, so a helper inserted into or removed from that call chain would attribute records to the wrong module and apply the wrong logger level. The tests in `tests/unit/pipelex/tools/test_log_caller_module.py` emit through every level and assert the caller's module, path and function, which is what catches such a change. A walk up the frames until one leaves the log package would remove the constant at the cost of a loop per line; the fixed depth stays until a second facade entry point makes the constant wrong for one of them.
-- **A given `field_<name>` beside a colliding `<name>`** (*unverified*, cubic). Prefixing a colliding entry could overwrite an entry the caller gave under the prefixed name. Deferred here on the reading that the ordered attach kept both values; round 2 verified that it did so in one order only, and fixed it: the prefix is now applied until the destination is free.
-- **The traceback rides the message rather than `exc_info`** (verified by inspection, code-review and the implementer). `include_exception` appends `traceback.format_exc()` to the message text in the dispatch. A structured sink wants the exception as `exc_info` or `exc_text`; setting it today would make the Rich handler render the traceback twice. The sink member L-260916-aa6e58 owns that decision, and the note on it carries the detail.
-
-## L-260916-a1dbd5, round 2 (bar defects)
-
-- **`is_console_logging_enabled = false` silences every handler, not the console** (*unverified*, code-review). The early return in `LogDispatch.dispatch` precedes `logger.handle(record)`, so a deployment that turns the console off to attach its own handler to the root logger gets no Pipelex record at all. The gate is the one the old console-only dispatch had, and it is the sink member's to replace: L-260916-aa6e58 selects sinks by configuration and retires the rich-or-poor mode, and the note on it carries this.
-- **The formatter mutates `record.msg` in place** (*unverified*, code-review, outside the diff). `LevelAndEmojiLogFormatter.format` in `pipelex/tools/log/log_formatter.py` rewrites the record's message for WARNING and above, so a record formatted by more than one handler accumulates colour escapes. Pre-existing; it starts to matter when a second handler exists, which is the sink member's work, and the note on L-260916-aa6e58 carries it.
-- **A `data` field is overwritten by structured content rather than prefixed** (*unverified*, code-review). `build_log_record_extra` lets the content's `data` win over `fields={"data": ...}` outright, the one place a value is discarded rather than carried under a prefix. Documented as deliberate in `docs/tools/logging.md`; no call site gives such a field, and a rule that prefixes it would be a change of contract rather than a fix.
-
-## L-260916-a1dbd5, round 3 (bar necessity)
-
-The bar admitted only what the round-2 pass itself introduced or what the branch could not ship without. The three entries marked *verified* were confirmed by reproduction and deferred because they predate that pass, no runtime caller reaches them, and the sink member L-260916-aa6e58 owns the same modules before the sprint's release; the note on that item carries each with its fix.
-
-- **The collision guard reads only the record's instance dict** (*verified*, codex:review and codex:adversarial). `attach_log_record_extra` in `pipelex/tools/log/log_fields.py` tests `name in vars(record)`, which misses the attributes the `LogRecord` class owns: `fields={"__class__": ...}` and `{"__dict__": ...}` raise `TypeError` out of the log call, and `{"getMessage": ...}` shadows the method so the formatter fails and the stdlib's `handleError` drops the record. The fix is `hasattr(record, attribute)` in place of the `vars` lookup, keeping the `FORMATTER_OWNED_ATTRIBUTES` clause since `message` is not on a fresh record, with a regression test per key. No caller in `pipelex/` passes `fields=` yet; the exposure is a consumer forwarding a mapping whose keys it does not control, a kajson-encoded object among them.
-- **A circular-reference content raises `ValueError` out of the facade** (*verified*, code-review). `_render_content` hands a `dict` or `list` to the `purify_json*` helpers, which catch `TypeError` only, and `json.dumps` raises `ValueError` on a cycle. Byte-identical on dev, where the raise is unconditional; the branch's docstring in `log_fields.py` is what promises a log call never raises. The fix is a guard on the log path, a `ValueError` caught beside the `TypeError` in the helpers or a fallback rendering in `_render_content`, and the promise narrowed if neither lands.
-- **The changelog bullet is four sentences against the rule's three** (*verified*, code-review). The closing cross-reference is its own sentence since the branch's first commit; it folds into the previous one when the bullet is next touched.
-- **A process entry cannot clear an inherited identifier** (*unverified*, cubic and code-review). `LogContext.merged_with` reads `None` as inherit, so `PipeRun.run` invoked inside an existing binding keeps the ambient `pipe_run_id` until `live_run_pipe` mints one; `request_id` and `pipeline_run_id` are always set by a run and cannot leak. No call site runs `PipeRun.run` inside a binding today; a replace-or-clear semantics on `bind_log_context` is the fix if an embedder or a nested run ever does.
-- **`fields` values ride by reference while `data` is a snapshot** (*unverified*, code-review). A field given a live `dict` or `list` reads whatever the caller did to it by the time a queued sink serializes it. `docs/tools/logging.md` advises JSON-ready values as guidance rather than guarantee; whether the sink snapshots on emit or the contract states the requirement is the sink member's call.
-- **`data` is re-parsed on every structured call before any sink reads it** (*unverified*, code-review). `json.loads(rendered)` in `_render_content` builds a second object graph per record at an enabled level; a lazy attribute or a sink-side parse is the sink member's design choice.
-- **The reserved-name comment claims `ErrorReport` carries the identifiers** (*unverified*, code-review). The comment above the constants in `pipelex/tools/log/log_context.py` says a record and the `ErrorReport` agree on the key; `ErrorReport` carries none of the three, and the only `request_id` reachable from it is the provider's, a different identifier. The comment should name the run result and the payload fields alone.
-- **The deleted gateway tests were the only mechanical guard on the no-log-on-load-path invariant** (*unverified*, code-review). Round 1 removed two tests that asserted the absence of a `RuntimeError` that no longer exists; the invariant they stood beside, that nothing logs on the gateway load path because a pre-configure line lands on stderr unformatted, is now prose only in `gateway_config.py`. A test that asserts no record is emitted on that path restores the guard.
-- **Nits** (*unverified*, code-review): `pipe_run.py` still interpolates `pipeline_run_id` into five message strings while the same value rides the record as a field; `test_log_fields.py` hardcodes the DEV level as a number beside an imported constant; `bedrock_client_boto3.py` uses `run_in_executor`, which does not propagate contextvars, so a log call from that thread would lose the identifiers, though only a boto3 call runs there.
-
-## L-260916-a1dbd5, round 4 (bar freeze)
-
-The bar changed no code. Every reviewer raised the class-owned attribute collision again, and code-review the circular-reference raise, the console flag and the round-3 nits; those keep their entries above. What follows is new.
-
-- **A filter attached to the `pipelex` logger no longer sees the records** (*unverified*, cubic). Python consults a logger's filters only for records originating on that logger, never while a descendant's record propagates, so a filter an integration attached to `logging.getLogger("pipelex")` stops running now that records originate on module loggers. No repository in the workspace attaches one. The changelog's "Loggers are named by module" bullet says a filter keyed on the bare package name must key on the prefix, which does not help a filter attached to the logger: such a filter must move to the handler, and the bullet and `docs/tools/logging.md` should say so.
-- **A dict with a non-string key raises `TypeError` out of the facade** (*unverified*, code-review). `json.dumps` applies its `default` to values, not keys, so `log.info({(1, 2): "a"})` raises from the `purify_json*` fallback too. Byte-identical on dev; the same guard as the circular-reference entry above covers it.
-- **The logging doc overstates what `data` is** (*unverified*, code-review). The "Structured content" section says any other object is carried as the dictionary or list its serialization produces; a scalar content lands as itself, an object that defeats both `json` and `kajson` lands as the `purify_json` warning wrapper, and a `float("nan")` survives the `json.loads` round trip as a float standard JSON cannot re-emit. A sink author iterating `record.data` meets a scalar. The sink member decides the shape and the page follows.
-- **The caller-info test fixture's teardown is process-global** (*unverified*, code-review). `log_with_caller_info` in `tests/unit/pipelex/tools/test_log_caller_info.py` calls `Log.reset()`, which removes and closes every root-logger handler and calls `logging.shutdown()`. `Log.reset()` is pre-existing; the unit suite is green under random and fixed ordering, so this is a latent isolation hazard rather than a failure. A fixture that removes only the handler it added would remove the hazard.
-- **The dev-side caller-info fix is filed under Changed** (*unverified*, code-review). `FUNC_MODULE` and `FUNC_MODULE_LINE` raised `KeyError: 'module'` on dev at the first log line after boot; the branch passes the module and covers it in `test_log_caller_info.py`, and the changelog folds that into the logger-naming bullet rather than a Fixed entry.
-- **Out of scope, unverified: seven findings on the `main..dev` delta** (code-review, whose skill diffed `main...HEAD`). Files this branch does not touch, listed here so they can be chased and never as this branch's: `pipelex/pipeline/input_normalizer.py:232` (`HttpUrl`'s length cap rejects long signed URLs); `pipelex/tracing/ndjson_event_log.py:163` and `pipelex/tracing/dynamodb_event_log.py:170` (corrupt-vs-refused decided without checking `loc == ()`); `pipelex/tracing/ndjson_event_log.py:164` (raw `validation_error` interpolation leaks traced content); `pipelex/cli/commands/graph_cmd.py:59` (`json_invalid` misreported as a stale-file error); `pipelex/graph/mermaidflow/templates/_interactive_scripts.js.jinja2:275` (the JSON tab falls back without consulting `disabled`); `pipelex/tools/misc/http_utils.py:22` (whitespace accepted against the documented rule); `pipelex/runtime_hub.py:210` (`reset_boot_state` reverts the agent CLI's SILENT printer).
-
-## L-260916-aa6e58, round 1 (bar open)
-
-The pass fixed the nine confirmed findings: the OTLP handler's re-entrancy filter and its teardown guard, the mixed-type sequence, the JSON sink's non-finite floats and its reserved keys, the holding handoff, the console formatter's prefix under `exc_info`, the doctor's fallback sink and the migration entry's account of what a poor-mode or silenced file loses. The refuted finding (the override and kit configs carrying `sink` without `[runtime.log.otlp]`) was rejected: the kit carries the user-facing subset by design and the deep merge supplies the rest. What follows was read as real and left.
-
-- **The held-record window spans the remote config fetch** (*unverified*, code-review). Between `Log.configure` and `log.install_sink` in `RuntimeBoot.setup`, the registrar is built and the remote config may be fetched, so a boot that logs verbosely on that path holds those records in memory up to the holding handler's capacity; beyond it the oldest are dropped. The capacity is generous for a boot and the window is documented in `docs/under-the-hood/log-sink-plugins.md`; a sink installed earlier would need the registrar earlier, which is the boot order's decision and not this member's.
-- **The JSON sink binds its stream at factory time** (*unverified*, code-review). `pipelex/tools/log/json_log_sink.py` resolves `sys.stdout` or `sys.stderr` when the factory runs, so a consumer that swaps `sys.stderr` after boot, pytest's capture among them, keeps writing to the stream the sink captured. Resolving the stream per emit would follow the swap at the cost of a lookup per line; deliberate for now, and the test module patches the stream before installing.
-- **A `console_log_target = "file"` raises a bare `ValueError`** (*unverified*, code-review, pre-existing). `stream_for_target` in `pipelex/tools/log/log_sink.py` inherits dev's handling of the third target value, which has no file path to open. The enum member predates this branch and no caller sets it; retiring the member or giving it a path is a config change of its own.
-- **`redirect_to_stderr` imports Rich unguarded** (*unverified*, code-review). A server install without the CLI extra fails on that path. L-260916-fe7969 moves Rich behind the extra and adds the import guard, and the note on it carries this.
-- **The Rich handler raises `MarkupError` out of a log call** (*verified by the round-1 verifier*, pre-existing). With `is_markup_enabled = true`, `RichHandler.emit` renders the message outside its own `try`, so a message whose text reads as a stray closing tag, `[/pipe]` for one, raises out of `log.info`. The holding drain now contains it for held records; a live record still raises. Dev's Rich mode did the same. A console handler subclass whose `emit` routes the error to `handleError` is the fix, owned by the console sink's next pass or by L-260916-fe7969 when it reworks the Rich path.
-- **The doctor duplicates the log-sink composition root** (*unverified*, cubic). `doctor_cmd.py` performs discovery, registry construction, selection and installation that `RuntimeBoot.setup` also performs, and the fallback added this round widens the difference. Extracting one function both call is a refactor below this bar; it is worth doing before a third caller appears.
-- **The migration deletes `log_mode` and `is_console_logging_enabled` without translating them** (*verified by the round-1 verifier*, cubic). A `remap_value` onto `sink` is refused by the ledger check because `sink` is an open token, an intermediate schema for a split into a safe and an unsafe entry has no golden a model ever had, and an `unsafe` entry blocks every full copy of an older base file at its defaults for the sake of the few that chose `poor` or `false`. The entry stays `safe`; what a person running `pipelex migrate` sees is the step's title, so the title names what a poor-mode file then sets by hand, and the description and guidance say what the deletion undoes for both keys. The engine gap underneath, that a safe entry's guidance is rendered nowhere, is L-260916-5d142f.
-- **The migration coverage gate is blind to a deleted enum key** (*verified by the round-1 verifier*, tooling). `_check_enum_members_remapped` in `pipelex/migration/coverage.py` continues when a path does not survive into the new schema, which is how a `delete_key` on `log_mode` passed the gate. Filed as L-260916-0e1435.
-
-## L-260916-aa6e58, round 2 (bar defects)
-
-The pull request opened after round 1, so this round measured the sink seam alone against `feature/Log-fields-context`. Every reviewer raised the handoff's duplicate window and the flush that skips the close, and the adversarial reviewer the migration's silencing recipe; those were fixed. The concurrent `install_sink` race (cubic) was rejected: the boot configures logging once per process and `Log.configure` refuses a second call, so two installers is a state the runtime does not reach. What follows was read as real and left.
-
-- **The structured-content guard is wider than the failure it catches** (*unverified*, code-review). `_render_content` in `pipelex/tools/log/log_dispatch.py` wraps both the `purify_json*` call and the `json.loads` re-read in one `except (TypeError, ValueError)`, so a re-read that failed after a successful purification would discard the truncated rendering for `repr(content)`, whole. No trigger is shown: the truncation happens inside the helpers on byte values, so what they hand back is loadable JSON. Narrowing the `try` to the helpers, or keeping the rendering when only the re-read failed, removes the question when the function is next touched.
-- **The doctor keeps an already-configured sink without resolving the configured token** (*unverified*, cubic). When logging was configured before `setup_doctor_runtime` runs, an embedder or an interleaved test, the log-sink row reports healthy without asking the registry about `sink`. The CLI configures nothing before the command, so `pipelex doctor` always takes the other arm; an embedder calling the doctor in-process after its own boot keeps its own sink, which is the intent. Resolving the token in both arms is a small extension of the row, below this bar.
-- **The migration's safe deletion of a silencing file** (adversarial, restating round 1). The round-1 entry above stands; this round corrected the recipe the entry names so that a person who follows it is silenced in fact.
-
-## L-260916-aa6e58, round 3 (bar necessity)
-
-The bar admitted what the round-2 pass's own changes introduced: the holding handler's replay and forward delivered records below the sink handler's level, since `Handler.handle` checks no level where `Logger.callHandlers` does, and the teardown's stderr diagnostic could itself raise on a closed stream and leave logging configured. Both were reproduced by the driver and fixed. What follows was read as real and left.
-
-- **A sink whose handler build fails after its construction allocated resources is dropped without teardown** (*unverified*, cubic). `install_sink` reads `sink.handler` before recording the sink, deliberately, so that a failed build leaves the runtime untouched and the doctor's fallback can install; the cost is that a plugin sink whose factory opened a connection or started a thread and whose `make_handler` then raised has nothing that closes it, since the sink contract carries no teardown hook of its own. The built-in sinks allocate in the handler or, for `otlp`, in a provider that registers its own shutdown at exit. A `close` hook on the sink contract is the fix, and a contract change wants its own pass.
-- **The migration's safe deletion of a silencing file, at boot** (adversarial, restating rounds 1 and 2 with one new fact). Boot tolerance replays the ledger in memory over a stale file, so a deployment that set `is_console_logging_enabled = false` resumes output on upgrade without running `pipelex migrate`. The boot's stale-configuration warning prints the titles it carried forward, so that deployment sees, on the console the boot re-enabled, the entry's title naming the by-hand edit; no repository in the workspace sets the flag. The round-1 entry stands, with L-260916-5d142f and L-260916-0e1435 carrying the engine gaps.
-- **The doctor duplicates the plugin and sink composition root** (cubic, restating rounds 1 and 2). The fallback added in round 2 widened the difference; the entry above stands.
-- **A processor that raises escapes the log call** (*verified by code-review's reproduction*). `_ProcessorFilter.filter` in `pipelex/tools/log/log_sink.py` runs each processor unguarded, and the stdlib runs a handler's filters outside every `try`, so a processor raising on a live record raises out of `log.info`; the same processor raising during the holding replay or forward is contained. Latent: nothing in `pipelex/` registers a processor yet. The scrub member L-260916-4837d4 registers the first one and owns the guard, a per-processor `except` routed to `handleError`; the note on it carries this.
-- **The OTLP sink overwrites a carried `code.*` or `exception.*` field** (*verified by code-review's reproduction*). `_attributes` in `pipelex/tools/log/otlp_log_sink.py` assigns the semantic-convention keys after seeding from the carried attributes, so a field named `code.line.number` is discarded where every other sink re-prefixes; the JSON sink's prefix loop with those keys as its reserved set is the fix, below this bar.
-- **Nits** (code-review): `OtlpLogHandler.close` calls the provider's shutdown before `super().close()`, so a shutdown that raises leaves the handler in the stdlib's handler list, contained by the teardown guard; the holding handler's drop at capacity is linear per record where a bounded deque would be constant, reached only by a process that never installs a sink.
-
-## L-260916-aa6e58, round 4 (bar freeze)
-
-The bar changed no code. The adversarial reviewer raised the migration's safe deletion of a silencing file a fourth time, and code-review the OTLP close order, the linear drop and the kit configs without `[runtime.log.otlp]`; the first three keep their entries above and the last was refuted in round 1. What follows is new. The two entries marked *verified* were reproduced by the driver and are filed as ledger bugs, since each is a one-line fix with a test that the branch below this one ships without.
-
-- **A caller field named `_pipelex_forwarded` is read as the handoff mark** (*verified*, codex:review and code-review). `attach_log_record_extra` prefixes a name only when the record already owns it, and a fresh record does not own the mark, so `log.info("x", fields={"_pipelex_forwarded": True})` lands the attribute unprefixed and `ForwardedRecordFilter` drops the record from every sink, after the handoff too. The comment on `FORWARDED_MARK` claims the underscore keeps a caller from spelling it, which held while records went through `makeRecord(extra=...)` and no longer does. Filed as L-260916-40bf74: treat the mark as owned beside `FORMATTER_OWNED_ATTRIBUTES`, correct the comment, add the test.
-- **The doctor's fallback install can itself raise** (*verified*, code-review). `install_doctor_log_sink` retries on any exception out of `install_sink` on the claim that a failed install leaves nothing installed; `install_sink` records the sink before the replay, deliberately, so a held record the handler cannot render whose `handleError` write meets a closed stderr raises `ValueError` with the sink recorded, and the fallback then raises `RuntimeError("already installed")`, which nothing in the doctor catches. Filed as L-260916-7e131d: gate the fallback on `log.sink is None`.
-- **A caller's `fields={"data": ...}` is overwritten by structured content** (*unverified*, code-review). `build_log_record_extra` documents that structured content owns `data` outright, which makes it the one collision in the module that is not preserved under the `field_` prefix. A documented choice; prefixing the caller's entry instead would make the module's no-value-lost claim hold for every key, when the module is next touched.
-- **Sink factories take the whole `LogConfig`** (*unverified*, cubic). The plugin contract hands every external factory the core configuration, which has no place for a plugin's own settings, so `docs/under-the-hood/log-sink-plugins.md` directs plugins to environment variables or private files. A narrow factory context carrying a plugin-owned payload is a contract change and wants its own pass, with the teardown hook the round-3 entry asks for.
-- **Processors mutate the record every root handler shares** (*unverified*, cubic). `_ProcessorFilter` edits the original record, so a host-installed root handler sees it processed or not by its position in the handler list; a scrub that redacts reaches one handler and misses another. The scrub member L-260916-4837d4 registers the first processor and decides whether it runs on a copy or at one canonical point; the note on it carries this.
-- **Held records pin live tracebacks** (*unverified*, code-review). `include_exception` now rides the record as `exc_info` rather than a formatted string, so a record held between `configure` and `install_sink` keeps its traceback, every frame and its locals, until the sink arrives or the boot dies. Bounded by the holding capacity and by a window of a few dozen lines; formatting `exc_text` eagerly when holding would cap it.
-- **Nit** (code-review): `spell_non_finite` in `pipelex/tools/log/log_sink.py` catches `TypeError` and `ValueError` only, so a value nested deeper than the interpreter's recursion limit raises `RecursionError` past the docstring's never-raising claim; contained by `StreamHandler.emit`'s `handleError`, so the line is lost and not the process.
-
-## L-260916-aa6e58, the migration finding, settled by the owner on 2026-09-17
-
-**`pipelex-config@5` stays `safe`, and this finding is closed rather than deferred.** It was raised on every round of this member and once more by a Codex pass reading `origin/dev` during the Rich member's round 1, each time as the same reading: the entry deletes `is_console_logging_enabled = false` without translating it, and boot tolerance replays the ledger in memory, so an upgrade alone hands a silenced deployment its console back.
-
-An implementer cured it on 2026-09-17 by making the entry `unsafe`, and that change was reverted the same day on the owner's decision. What the block cost is what decided it. `safety` is a property of an entry, entries are one per schema version and contiguous (`pipelex/migration/ledger.py:197`), and this version's link owns all four key removals, so the block cannot be narrowed to the case that matters. An `unsafe` entry is rehearsed and never applied (`pipelex/migration/engine.py:118`), so the retired keys survive the boot-tolerance replay, the re-validation fails again against a model that is `extra="forbid"` (`pipelex/system/configuration/config_model.py:12`), and `load_config_and_validate` re-raises (`pipelex/system/configuration/config_loader.py:530`). The block therefore converts "boots with a warning" into "fails to boot" for **every** file still carrying any of the four keys at their old defaults — every full copy of an older base file — for the sake of the few that chose otherwise.
-
-The owner's reading is that nothing chose otherwise: no deployment set these keys, nothing depends on the flag outliving its removal, and this project keeps no backward compatibility. Round 3 had already recorded the corroborating fact, that no repository in the workspace sets the flag.
-
-**Reopening this needs a new fact, not a new reading** — a configuration that actually sets one of the retired keys and a reason it may not be edited by hand. The rationale is recorded in the entry's own comment in `pipelex/migration/ledgers/pipelex-config.toml` so that it travels with the code rather than with this document.
-
-Two corrections outlived the revert, both independent of the safety decision and both kept: the entry's guidance and `docs/configuration/config-practical/logging-config.md` had said `is_console_logging_enabled = false` "silenced every handler on the root logger", where `LogDispatch.dispatch` returned early and third-party loggers still reached the handlers, and the entry's comment had named `default_log_level = "OFF"` as the replacement where the base pins `pipelex` in `package_log_levels` and the root level alone silences none of Pipelex's records.
-
-One finding from the reverted work is real and stays: `BlockedEntry` carries no `title` or `description` (`pipelex/migration/plan.py:72`), so a blocked entry reaches its reader through `guidance` and `detail` alone. It is latent — no shipped ledger entry is `unsafe` — and it is the mirror of L-260916-5d142f, which carries a safe step's unrendered guidance; the note on that item records it.
-
-## L-260916-aa6e58, round 1 after the growth reset (bar open)
-
-The branch grew past the growth line after round 4 — the forwarding-marker reservation and the OTLP reserved keys — so the ladder reset to round 1 at bar `open` and all four reviewers read the whole branch against `origin/dev` again. Twelve findings; eight went to a verifier against the checkout at `84c231c82`, and four were sorted as standing deferrals whose traces are above. **Not one of the twelve is about the lines the reset was triggered by**, which is worth recording: the new code is the part of this branch the rounds have now read most and found least in.
-
-Five were confirmed and fixed. Each fix was mutation-tested — the fix reverted, its own guard watched going red, and no other test moving:
-
-- **A non-finite float nested in a pydantic model cost the whole JSON line its structure.** `json_fallback` returned `model_dump(mode="json")`, which keeps the Python `nan` because pydantic's own spelling applies only where pydantic writes the text itself, so `json.dumps` refused the payload under `allow_nan=False` and `_json_line`'s recovery reprd every non-fixed key: an integer field became a string, a list its `repr`. The fallback now spells the dump the way a value handed in directly is spelled. Reachable with `sink = "json"`, which the hosted plane's runner and worker select, and the `otlp` sink's `render_json` took the same route.
-- **`release_to` drained held records without marking them**, where the forward path marks. A thread descheduled inside `callHandlers` before the handoff can resume on the sink's handler carrying a record the drain already delivered, and the guard on that handler had nothing to read — a window distinct from the one the forwarding-marker commit closed, on the other side of the drain.
-- **`close` dropped every held record below the last resort's own WARNING**, so a boot that died between `configure` and `install_sink` lost exactly the trail a verbose run was turned on to produce. The last resort's level is meant for a record emitted before anything was configured; these passed the level the configuration set.
-- **A field spelling `data` beside structured content was destroyed** rather than moved aside under the `field_` prefix — the round-4 deferral above, taken rather than carried again, since the discipline it breaks is the one the module states everywhere else. The content keeps the name a sink reads it under and the field keeps its value, the prefix applied until the name lands where nothing sits.
-- **The four `opentelemetry-*` dependencies carried no version specifier at all**, and no job resolves the floor. The SDK took a positional `emit(record)` in the versions the declaration permitted while the `otlp` sink passes the keyword form, so such a resolution made every record a `TypeError` that `handleError` turned into a traceback on stderr — nothing reaching the collector while the process reported success. Floors are now declared at the locked versions. A lowest-resolution job is still absent and would be the thing that keeps them honest.
-
-Deferred, with what the verification established:
-
-- **A processor that raises kills the live log call** (*verified*, codex:adversarial). `_ProcessorFilter.filter` runs the callbacks inside `Handler.handle`, which the stdlib calls before its own `try`, so the exception leaves `log.info` itself; the replay path swallows the same exception through `_deliver`'s `handleError`, so the two paths disagree about the same processor. No processor is registered anywhere in the tree, but `docs/under-the-hood/log-sink-plugins.md` tells readers to append a redaction one, so it is reachable for anyone following the documentation. It stays with the scrub member L-260916-4837d4, together with the shared-record mutation above, because the remedy is that member's contract choice rather than a review round's: a redaction processor that raises means the record is *unredacted*, so rendering it anyway leaks what it was meant to hide, while the class currently promises it never drops one.
-- **The OTLP suppression guard rejects far more than the export path** (*verified*, code-review). `ExportPathFilter` returns on the context value alone after the name guard, so any record emitted while the SDK's batch processor holds `_SUPPRESS_INSTRUMENTATION_KEY` is dropped whatever its origin. The concrete loss is in this repo and the finding did not name it: `PostHogSpanExporter._do_export` logs its own failures on a `pipelex.*` logger inside a `BatchSpanProcessor` scope, so Pipelex's span-export diagnostics vanish from the `otlp` sink without trace. Deferred because the guard's breadth is what fixed a reproduced exit deadlock and the transport's logger names are open-ended, so narrowing it is design work — a diagnostics path that bypasses the export queue — and not a flip. Needs `sink = "otlp"` and telemetry both.
-- **A boot that fails inside `__init__` after `configure` never closes the holding handler at all** (*verified*, found by the verifier rather than by a reviewer). `_release_after_failed_boot` is what reaches `log.reset()`, and `runtime_boot.py`'s own docstring records that both `make()`s construct outside their `try`, so on that path nothing is emitted anywhere — not even the stale-configuration warning. That is `runtime_boot`'s structure and not this module's, and the `close` fix above does not reach it.
-
-One earlier entry is refined rather than repeated. **The doctor's fallback install** (filed as L-260916-7e131d) was confirmed as to ordering, and the verification moved where its fix belongs: `install_sink` records the sink before the replay *deliberately*, so `reset` can find and remove a handler already on the root logger, and the comment at the assignment says so. The defect is the doctor's `except` arm installing without clearing first, so the cure is in `doctor_cmd.py` and the ordering in `log.py` stays. The verifier also narrowed the trigger: every failure the arm was written for — a missing dependency, a console target no sink writes to, a factory that raises — happens at `sink.handler` before the assignment, so the fallback works for all of them, and reaching the double install needs the replay's own recovery to raise, which in practice means an unusable stderr or a third-party handler overriding `handleError`.
-
-## L-260916-aa6e58, round 2 after the growth reset (bar defects)
-
-Three reviewers of the four found only the standing deferrals — cubic four, `codex:review` two, `codex:adversarial` one, every distinct claim already traced above and none in the code the round's focus named. `code-review` was the one that found new ground, and what it found was the most serious thing six rounds on this member have turned up.
-
-**A log call could raise on the default sink, which is the one thing the branch promises it never does.** The finding arrived as a claim about one error path; verifying it made it larger and moved its cause. `RichHandler` overrides `emit` and does not restore the `try`/`handleError` the stdlib's own handlers put around theirs, so anything raised while rendering leaves the log call — and Rich's markup parser raises on ordinary text. Its tag has to open with a lowercase letter, `#`, `/` or `@`, which the finding's own example got wrong: `[Errno 2]` is safe. What is not safe is the two shapes an error message is actually made of. `list[int]` in a type complaint loses the bracketed span silently. A bracketed path reads as a closing tag with nothing open and raises `MarkupError`. Confirmed end to end against the branch before the fix: `log.error("no such file: [/etc/pipelex.toml]")` raised out of the log call, and constructing a `FatalError` carrying such a message raised `MarkupError` **in place of** the failure it was reporting — the diagnostic destroyed and replaced by an unrelated exception. Fixed at both levels: the sink's handler restores the stdlib's guard, so a line Rich refuses costs at most its own rendering; and `TracebackMessageError` asks for its record verbatim through the per-record override Rich reads ahead of its handler's setting, so brackets and type names in an error reach the terminal as written. The mark is reserved in `log_fields` beside the forwarding marker, for the same two reasons: it is a console concern that rides no wire, and a caller's field spelling it must not decide how the console reads that line. Both arms of the error mode are marked — the `error` one this branch moved onto a propagating logger, and the `exception` one, which `origin/dev` already exposed.
-
-**A guard the branch deleted is restored in a form that survives what retired it.** Two tests pinned that the gateway prune runs before the log hub is configured, by asserting that an unconfigured dispatch raised. A log call before `configure` is now handled rather than fatal, so they stopped failing for their own reason and were removed — while `drop_unknown_gateway_defaults` goes on stating the invariant in its docstring, "deliberately pure, and deliberately silent", with nothing holding it to it. The `defaults` guard now asserts the silence directly. Its per-model twin is deliberately **not** restored: nothing in that path's source claims silence, so pinning it would invent a contract rather than hold one, and a test asserting no record across a whole backend-library load would be brittle for the wrong reason.
-
-Deferred, and filed where a trace alone would not be enough:
-
-- **The doctor emits its own diagnostics through the configured sink** (L-260917-0be44e). With `sink = "otlp"` the doctor's stale-configuration warning is shipped to a collector and the terminal stays silent, while the Log Sink row reports healthy. Deferred because the remedy is contested *within this same round*: this finding wants the doctor to prefer a user-visible sink and merely report the configured one's resolvability, while cubic's standing finding wants it to duplicate less of `RuntimeBoot.setup` and reproduce the production path more faithfully. That tension is the useful part, and the narrower cure that needs neither is to carry the warning in the report rather than emit it through `log.*`.
-- **The `json` sink writes ANSI escapes when a third-party library decorates a record** (L-260917-398eae, *unverified*: no uvicorn in this checkout, so the attribute name is the reviewer's own claim). `carried_attributes` makes any foreign decoration a field, and the module promises "no ANSI ever". It is the hosted plane's own configuration, so it is the case most likely to be seen. Deferred as a contract question: stripping escapes from every value is a scan on the hot path, a denylist of attribute names rots, and softening the promise gives it up — the reviewer offered all three and chose none.
-
-Rejected, with the reason, so it is not re-raised as new:
-
-- **`_render_content` discards a good rendering when its re-parse fails** (code-review). The claim is that a content whose purified rendering is not re-parseable falls to `repr` and loses a rendering that succeeded. That state cannot occur: `rendered` is `json.dumps` output of an already-purified structure, and the truncation the helpers apply runs on the structure before the dump rather than on its text, so the re-parse cannot fail where the dump succeeded. The `except` arm's `repr` fallback is reached only when `purify_json*` itself raised, which is the documented path and the correct outcome. The other half of the same finding — that the serialize-then-reparse round trip is paid on every structured call for a value the `console` sink discards — is a real cost and an improvement rather than a defect, so it is deferred at this bar and recorded here.
-- **The holding handler drops the oldest record on overflow** (code-review). Offered as wrong for a failure-diagnosis buffer, on the argument that the earliest lines describe what first went wrong. The argument is not made out: the lines nearest a failure are at least as often the useful ones, the constant's own comment states the choice and its reason (bounded growth for a process that never installs a sink), and the same comment notes a boot holds a few dozen lines against a capacity of a thousand, so the path is not one a real boot reaches.
-
-One thing noticed while verifying and left alone: `TracebackMessageError` in its `exception` mode calls `logger.exception` outside any `except` block, so a record built there appends `NoneType: None`. It predates the branch, `include_exception`'s own version of the same thing was fixed separately, and it is cosmetic noise rather than a loss.
-
-## L-260916-aa6e58, round 3 after the growth reset (bar necessity)
-
-All four reviewers ran over the whole branch against `origin/dev` at `2e81b2c68`, and the round changed no code. Nothing the bar admits was confirmed: the two findings Codex raised are standing deferrals already traced above, and the one new claim that would have been fixed if true turned out to be pre-existing.
-
-**The processor seam came back for the fourth consecutive round, and this time from two reviewers.** `codex:adversarial` raised it at confidence 1.0 and `codex:review` at P2, both naming `pipelex/tools/log/log_sink.py:60-63` and both describing the mechanism the earlier rounds already verified: `_ProcessorFilter.filter` runs each callback where the stdlib runs a handler's filters, outside every `try`, so a processor raising on a live record raises out of `log.info` itself, while the same processor raising during the holding replay is contained by `_deliver`'s `handleError`. Nothing about the claim has changed and neither has the reason it stays here: the remedy is the scrub member L-260916-4837d4's contract choice rather than a review round's, because a redaction processor that raises means the record is *unredacted*, so rendering it anyway leaks exactly what it was meant to hide, while the class as written promises it never drops a record. No processor is registered anywhere in `pipelex/`, and the note on that member carries the finding. What is worth recording is the repetition itself: four rounds and two independent reviewers now agree it is real, so whoever merges this member should decide it deliberately rather than let it default through.
-
-**The OTLP suppression guard was raised again, with the mechanism this document had already supplied.** `codex:review` named `pipelex/tools/log/otlp_log_sink.py:88-91` and reached PostHog by its own route — `BatchSpanProcessor` also sets `_SUPPRESS_INSTRUMENTATION_KEY`, so `PostHogSpanExporter._do_export`'s failure logs are rejected although they never came from this sink's export pipeline. That is the concrete loss round 2 recorded above and filed as L-260917-472a3e; the finding adds independent confirmation and no new ground.
-
-**The one new claim the bar would have admitted was verified and refuted on attribution.** cubic raised at P1 that `configure()` overwrites the root level and every configured package logger's level while `reset()` restores none of them, so an embedder's logging stays changed after teardown. The mechanism is real and now carries a verified failing scenario, but it is not this branch's: `origin/dev` overwrites the same two families and additionally a third (the poor loggers), restores nothing either, and strips the host's own root handlers on top — so this branch strictly shrinks the residue. The new doctor `finally: log.reset()` sites do not widen the exposure, being guarded by `if not logging_was_configured`, which fires only where the doctor itself wrote those levels. Filed with the whole verification as L-260918-aee78b, together with the precedent that makes it cheap to specify: `reset_boot_state` already remembers and restores the pre-boot pretty-print mode.
-
-Deferred, each new at this round and none of them admitted by `necessity`:
-
-- **`pipelex doctor` can block for a minute or more on a machine configured for `otlp`** (*unverified*, code-review). `pipelex/tools/log/otlp_log_sink.py:158`: the doctor now installs the configured sink, both doctor commands reach `log.reset()` in a `finally`, and the flush is `force_flush(timeout_millis=5000)` whose own comment concedes the SDK discards that deadline — the real bound being `OTEL_EXPORTER_OTLP_TIMEOUT` plus the HTTP exporter's retry backoff. The case that stings is an operator running the doctor precisely because the collector is down. A doctor-specific short deadline, or skipping the flush when the doctor installed the sink itself, is the shape of the cure.
-- **`stream_for_target`'s docstring promises a lazily-read stream that no caller reads lazily** (*unverified*, code-review). `pipelex/tools/log/log_sink.py:96` says the stream is "read at call time so a redirected stream is the one used", while `_make_json_log_sink` resolves it at boot and `ConsoleLogSink` binds it into `Console(file=...)` at handler build. An embedder swapping `sys.stderr` after `Pipelex.make()` gets records on the original stream. Either the docstring states build-time capture or the sinks resolve in `emit`; both are decisions rather than corrections, which is why it waits.
-- **A `LogSink` instance is single-use and nothing says so** (*unverified*, code-review). `pipelex/tools/log/log_sink.py:82` caches the handler forever while `Log.reset()` closes it, so re-installing the same sink instance would hand back a closed handler, insert a second `ForwardedRecordFilter` into its filters and attach a dead handler to the root logger. No in-tree caller does this — boot and the doctor each build a fresh sink — but `LogSink` is the documented extension point, so either a `close()` hook clearing `_handler` or a line in the base class's docstring closes it.
-- **A sink that fails to install is dropped with its thread still running** (*unverified*, code-review). `pipelex/cli/commands/doctor_cmd.py:1129`: for `sink = "otlp"` the factory constructs a `LoggerProvider` and a `BatchLogRecordProcessor` — an exporter thread and an `atexit` hook — before `log.install_sink` is reached, so an install that raises leaves them live while the `except` installs the console fallback and the later `reset()` tears down only that fallback. The window is narrow today because `OtlpLogHandler.__init__` is hard to make fail, but the shape applies to any plugin-contributed sink whose factory allocates.
-
-Rejected, with the reason:
-
-- **The holding handler drops the oldest record on overflow** (code-review), offered again and rejected again on the argument recorded under round 2 above: the lines nearest a failure are at least as often the useful ones, the constant's own comment states the choice and its reason, and a boot holds a few dozen lines against a capacity of a thousand. Nothing new was offered with it.
-- **Caller attribution rides a fixed frame depth** (cubic), `pipelex/tools/log/log_dispatch.py:33`, already traced under the fields member's round 1 and belonging to that member's code rather than this one's. No wrapper exists today, so the claim is about a change nobody has made.
-
-## L-260916-aa6e58, the processor seam, settled by the owner on 2026-09-18
-
-Four consecutive rounds on this member raised the same finding, the last of them from two independent reviewers at confidence 1.0, and each round deferred it with a reasoned rationale rather than a shrug. Louis settled it instead of letting a fifth round take it: **the redaction member `L-260916-4837d4` owns the processor failure policy, and this member ships the seam as it stands.**
-
-The defect is not in dispute and never was. `_ProcessorFilter.filter` runs each registered processor where the stdlib runs a handler's filters, which is outside every `try`, so a processor raising on a live record raises out of `log.info` itself and can abort the application work that made the call; the same processor raising during the holding replay is contained by `_deliver`'s `handleError`, so the two paths disagree about the same failure. Nothing in `pipelex/` registers a processor today, which is what makes shipping possible, but `docs/under-the-hood/log-sink-plugins.md` tells readers to append a redaction one, so the path is reachable for anyone following the documentation.
-
-The reason it belongs there rather than here is that the cure is a contract choice and not a guard. A redaction processor that raises means the record is *unredacted*: rendering it anyway leaks exactly what the processor existed to hide, while dropping it contradicts `LogSink`'s promise that it never drops a record. Only the first registrant of a processor is in a position to take that decision, and it arrives with that member. What it owes is recorded on its item: decide the policy and say why, with fail-closed — drop the record and emit a minimal diagnostic carrying none of the unprocessed payload — as the shape the reviewers converged on; implement the guard at the processor boundary, routed to the handler's error path; and cover both the live and replay paths so they can no longer disagree.
-
-A later round that re-raises this should be closed against this entry rather than argued again.
-
-## L-260916-fe7969, round 1 (rich extra, lazy import, guard)
-
-Round 1 was launched by an earlier session and never triaged; this pass is its triage. Four reviewers ran. cubic and code-review read the member's own six commits; the two Codex passes ran against `dev`, so most of what they raised belongs to the two branches below and is entered under those members above. Every finding was verified against the code before triage, and the guard's own new rule then found more unguarded sites than any reviewer had read.
-
-What the pass fixed: the ordering half of the named-error contract, which the guard documented and structurally could not check, at every deferred site in the tree; the cost report's CSV, which the console table's missing dependency used to take with it silently; the shared pytest plugin's console diagnostics, which broke every test of a downstream suite installed without the extra; the claims in the changelog, the README, the `pyproject.toml` comment, the console sink's docstring, the guard's docstring and the contribute page that said a server installs pipelex without Rich; the guard's own "there is no escape hatch", which its docstring contradicted six lines earlier; the style-alias pair that made a poor-mode panel title print its own tags; and the inner title the poor url frame dropped.
-
-- **An emoji code is not substituted in the `poor` mode** (*verified*, code-review). `_plain_title` used to call `Text.from_markup(title)`, whose default substitutes `:rocket:` from Rich's own code table; `plain_markup_text` leaves it as written, so a title carrying an emoji code prints the code. Unfixable Rich-free: the substitution table *is* a Rich asset. Documented as a behaviour change of the mode in `docs/contribute/rich-imports.md` and in the function's docstring, and the test compares against `emoji=False` for that reason rather than by oversight.
-- **The Rich-free markup reading accepts more than Rich** (*verified*, code-review and cubic). Which open tag a closing tag matches is decided by Rich's style grammar, so `[/italic]` cannot close `[bold]` there and `[b]` and `[/bold]` are one style; and a `@` tag's parameters are parsed and refused when malformed. Reproducing either means reproducing `Style.parse`, which is Rich. The reading tracks nesting depth instead and drops a `@` tag's parameters unread, so it strips the tags where Rich raises. Deliberate, and now tested as such: the `poor` mode prints whatever happens, and a title that reads as text beats one that prints its own tags. It still refuses the one case that cannot be read as tags at all, a close with nothing open, which is what the refusal exists for.
-- **The console scripts raise a bare `ImportError` with Rich blocked** (*verified*, code-review). All three are declared unconditionally while Rich is optional, and each entry module imports Rich at module level — legally, being CLI modules — so with Rich absent `pipelex init` would traceback naming neither the extra nor the fix. It cannot happen on any documented install: `typer` and `instructor` are core dependencies that both require Rich, so a stock install always has it. The launcher that would name the extra belongs with the install-side work that makes the scenario reachable, L-260917-c29954, which the sprint fenced; adding it here would guard against a state the packaging does not produce.
-- **`border_style` is dropped by the poor url frame** — rejected. The plain frame is monochrome and `pretty_print_without_rich` has no such parameter either, so this is a property of every poor rendering rather than an omission on the url path. The `inner_title` half of the same finding was real and is fixed.
-
-## L-260916-fe7969, round 2 (bar defects)
-
-All four reviewers ran over the branch against `origin/dev` at `1ec05b2db`, cubic with a focus naming this member's own commits, and the round changed no code. Two findings landed in this member's code and both were verified; both are deferred, each for a reason stronger than preference.
-
-**The branch is nine commits behind its own base, and that is what most of this round found.** `feature/Log-sink-seam` has moved to `b15446950` while this branch still sits on `e6769a0e8`, so the reviewers read code the member below has already repaired. Two of `codex:review`'s three findings are artefacts of exactly that: the unreserved `_pipelex_forwarded` marker and the OTLP `code.*`/`exception.*` keys overwriting carried fields were both cured on the sink branch at `208f2ad63`. They are not defects of the merged result and are recorded here only so the next round does not re-raise them as new. The staleness itself is the actionable part and belongs to the merge rather than to a bar.
-
-**A guard that admits a shape nobody has written** (*verified*, cubic). `_establishes_rich_is_available` in `pipelex/cli/dev_cli/commands/rich_import_guard.py` matches on syntactic mention: any call named in `GUARD_CALL_NAMES` or any `sys.modules` attribute in a statement — or, for an `if`, in its test — marks everything after it as guarded. Both of cubic's examples really do pass, run through the guard's own `find_violations_in_source`: `if not is_rich_installed(): pass` and a bare `print(sys.modules)` each let a following `from rich.console import Console` through. Deferred because the permissiveness is deliberate, documented and compensated, and because nothing exploits it. The function's own docstring says it settles that the question was asked rather than that every path through the answer is sound, and names what pins the property instead: the Rich-refused pipe run in `tests/integration/pipelex/test_rich_free_run.py`, which installs a blocking meta-path finder before the first `pipelex` import and runs a live compose pipe end to end. An audit of every deferred Rich import outside `pipelex/cli/` found all of them guarded by one of four genuine shapes, the two that use cubic's own shapes included — `pipelex/test_extras/shared_pytest_plugins.py:113` and `pipelex/tools/misc/pretty.py:568` both **return** in the branch, so the import below is reached only with Rich present. Making the rule sound needs dataflow — does the branch return, which arm imports — which is a different guard rather than a correction to this one. One refinement in the guard's favour that the finding omits: a guard *call* inside an `if` body does not carry past the `if`.
-
-**The doctor's fallback sink is not Rich-free, and the doctor cannot be reached without Rich anyway** (*verified*, code-review). The chain is exactly as reported and was reproduced: `_install_fallback_log_sink` (`pipelex/cli/commands/doctor_cmd.py:1103`) builds a `ConsoleLogSink`, `install_sink` reads `sink.handler`, `ConsoleLogSink.make_handler` opens with `require_rich`, and all three failure arms of `install_doctor_log_sink` call it, so with Rich absent the arm written to produce a diagnostic row raises `MissingDependencyError` instead. `PipelexConfigError` is a sibling class rather than an ancestor, so it escapes the arms around `setup_doctor_runtime` and reaches the broad handler, which prints `Unexpected error:` and exits 1 with no report. Deferred because the scenario cannot occur: `doctor_cmd.py:13-16` imports `rich.markup`, `rich.panel`, `rich.prompt` and `rich.text` at module level — legally, `pipelex/cli/` being the package the convention allows — so with Rich blocked the command dies at import before any of this runs, and `get_console()` at `:1357` sits outside the `try` in any case. It is also not made live by the fenced install-side item `L-260917-c29954` alone, which makes a Rich-free *install* producible without making the *doctor* Rich-free, something the package convention says it will never be. This is the same class as the console scripts' bare `ImportError` already recorded under round 1 above. If the fallback is ever hardened anyway, the sound move is one pass over `install_doctor_log_sink` doing two things at once: swapping in `JsonLogSink(stream=sys.stderr)`, which needs no optional dependency and is registered by the same core builtin plugin, and adding the `log.sink is None` gate that `L-260916-7e131d` asks for — at the cost of the human doctor's own log lines rendering as JSON in the ordinary Rich-present case.
-
-Belonging to the members below and entered here so they are not lost:
-
-- **The log-sink row is reported healthy when no sink exists at all** (*unverified*, code-review), `pipelex/cli/commands/doctor_cmd.py:1235` on the sink member `L-260916-aa6e58`. When `log.configure_if_unset` returns `False`, `setup_doctor_runtime` records `LogSinkCheck(is_healthy=True, …)` without asking whether a sink was ever installed, and `Log.configure` and `install_sink` are two separate steps — so an embedder whose boot raised between them has a holding handler and no sink, the doctor emits into it and prints nothing, and the one row that would have named the problem says everything is fine. `log.sink is None` is the question that arm should ask.
-- **A structured log call pays a second full serialization per record** (*unverified*, code-review), `pipelex/tools/log/log_dispatch.py:176`. `data = json.loads(rendered)` re-parses what the purify helpers just produced, for every structured call at an enabled level, on the calling thread, whether or not the installed sink reads `data` — and the default `console` sink never does. Already recorded as a round-3 deferral on `L-260916-a1dbd5`; re-raised here with the observation that the seam has now landed with the parse still unconditional, so it is a decision to take rather than inherit. It is an improvement rather than a defect, which `defects` excludes.
-- **The doctor fallback raises `RuntimeError("A log sink is already installed")` after a partial install** (codex:review), already filed as `L-260916-7e131d`.
-
-Settled rather than deferred:
-
-- **The migration re-enables logging a deployment disabled** (codex:adversarial, confidence 1.0), `pipelex/migration/ledgers/pipelex-config.toml`. This is the sink member's D1, settled by the owner on 2026-09-17 and recorded above under its own heading. The reviewer reproduced the mechanism, which was never in dispute, and offered no new fact — and the settlement is explicit that reopening needs a configuration that actually sets one of the retired keys together with a reason it may not be edited by hand, not another reading of the same code.
-
-## L-260916-fe7969, round 3, after the rebase and the dev absorption (bar necessity)
-
-The branch had been rebased onto the sink seam after its two recorded passes, so the landing gate found no pass on the head, and the orchestrator spent this verification round on the integrated branch: pull request #1210 at `610001f5a`, measured against `origin/dev` with #1205, #1206, #1207 and #1209 already absorbed as squash commits. Every reviewer the profile names produced a review; `codex:review` found nothing, and the round changed no code. The one finding that could have been a critical was verified and is not one, so everything below is deferred at this bar.
-
-- **The pretty-print type aliases are no longer runtime attributes** (*verified*, codex:adversarial). `PrettyPrintable`, `TextType` and `StyleType` in `pipelex/tools/misc/pretty.py` now exist only under `TYPE_CHECKING`, so `from pipelex.tools.misc.pretty import PrettyPrintable` raises `ImportError`, and `typing.get_type_hints` raises `NameError` on `pretty_print`, on `PrettyPrinter.make_pretty` and on every `rendered_pretty`, Rich installed or not. The mechanism is real and nothing breaks: no module of this repo or its tests resolves those annotations at runtime (the function registry rejects a pretty function before it reads hints, the structure printer resolves class hints only, and building every CLI through typer succeeds), and no dependent repo on this machine names any of the three. What is owed is a clause in the changelog's "Rich is the `cli` extra (Breaking)" entry saying these names left the runtime API, which the no-backward-compatibility policy asks for and no dependent needs.
-- **The ordering rule never looks inside a `match` case or an `except*` handler** (*unverified*, code-review and cubic, each with a probe through `find_violations_in_source`). `_nested_bodies` in `pipelex/cli/dev_cli/commands/rich_import_guard.py` has no arm for `ast.Match` or `ast.TryStar`, so an unguarded `from rich…` under `case PrettyPrintMode.RICH:` passes `make check-rich-imports` and would fail at runtime with a bare `ModuleNotFoundError` rather than the named `MissingDependencyError`; and a guard call inside one case marks everything after the whole statement as guarded. No such site exists today. It is the guard's permissiveness recorded under round 2 in a new shape, and the fix is two arms and their tests.
-- **`log-sink-plugins.md` says a server that forgot `json` refuses to boot** (*unverified*, cubic). The "Why `console` is the default" paragraph in `docs/under-the-hood/log-sink-plugins.md` still says a server installs pipelex without Rich, so forgetting `sink = "json"` stops the boot. A stock install gets Rich through `typer` and `instructor`, so it boots the console sink and ships ANSI, which the changelog, the README, the `pyproject.toml` comment and `docs/contribute/rich-imports.md` already say. The sentence was on the branch before the dev absorption; the round-1 rewrite of the other five claims missed this page.
-- **The documented reason `import pipelex` loads Rich names the wrong path** (*unverified*, code-review's reviewer, from its own reading). The changelog entry, the `cli` extra's comment in `pyproject.toml`, the README and the `console_log_sink.py` docstring say Rich arrives because `typer` and `instructor` require it. That is why it is *installed*; what *imports* it is `httpx`'s optional command-line module, reached through `pipelex/cogt/inference/error_classification.py`, which the `rich_import_guard.py` docstring already says correctly.
-- **Rich's version floor lives only in the `cli` extra** (*unverified*, code-review). A plain `pip install pipelex` keeps the console scripts and the Rich-rendering defaults while Rich arrives through `typer` and `instructor`, neither of which enforces `>=13.8.1`, so an environment held to an older Rich installs cleanly and fails later on an attribute or a keyword rather than on the named missing-extra error.
-- **The Rich renderable types are listed three times** (*unverified*, cubic). The `PrettyPrintable` alias and the runtime `isinstance` tuples in `make_pretty` and `_rich_renderable_text` in `pipelex/tools/misc/pretty.py` must be kept in step by hand.
-- **Two test modules hold two test classes each** (*unverified*, cubic), `tests/unit/pipelex/cli/dev/test_rich_import_guard.py` and `tests/unit/pipelex/tools/misc/test_pretty_without_rich.py`, against the one-class-per-module rule.
-- **The pipe-listing telemetry records `nb_pipes` as `None`** (*unverified*, cubic, outside this diff). `do_list_pipes` in `pipelex/cli/commands/show_cmd.py` stores the return of `pretty_list_pipes`, which returns nothing. Pre-existing; this branch edits the method, so it could return the count, but the defect is not the branch's.
-
-## L-260916-9f1908, round 1 (bar open)
-
-The branch is stacked on the sink seam, so the pass measured it against `dev` with a focus naming this member's own commits. Every reviewer but cubic raised the same defect independently, and the round-1 verifier reproduced it against the installed `google-cloud-logging`: the library reports a refused batch through its own transport logger, which propagates to the root because only its `setup_logging` sets `propagate = False`, so the report was exported, failed with the batch and was reported again, and with the teardown holding the handler lock while `queue.join()` waited on the worker, that was a deadlock at exit. The pass fixed it with a filter that rejects the library's logging loggers and the export thread before the lock, bounded the handler's flush, which had no deadline to pass, reserved the `json` sink's whole key set so a field named `time` or `severity` keeps one wire name under either sink, routed the traceback through the stdlib formatter the `json` sink uses, and split the test module to one class each. What follows was read as real and left.
-
-- **The migration entry's inline comment names the wrong recipe for a silenced file** (*verified*, code-review). The comment above the log-mode retirement in `pipelex/migration/ledgers/pipelex-config.toml` says `is_console_logging_enabled = false` is replaced by `default_log_level = "OFF"`; the entry's title, description and guidance, the changelog and `docs/configuration/config-practical/logging-config.md` all say `pipelex = "OFF"` under `package_log_levels`, and the verifier reproduced that `default_log_level` alone silences none of Pipelex's records, since the `pipelex` pin stops the effective-level walk. Round 2 on L-260916-aa6e58 corrected the recipe everywhere a person reads it and left this comment behind; a person reading the ledger source is the only one who meets it. A one-line fix on that branch, and the note on L-260916-aa6e58 carries it. The deletion itself stands as the entries above record it, and the verifier also confirmed that a safe entry's guidance is unreachable through both CLIs, which is L-260916-5d142f.
-- **A caller field named `_pipelex_forwarded` drops the record** (*verified*, code-review, restating round 4 on L-260916-aa6e58). Reproduced again against a real `Log`: any truthy value under that name loses the record from every sink. Filed as L-260916-40bf74, still open.
-- **The held stale-configuration warning is the oldest record the holding buffer drops** (*unverified*, code-review). The boot's stale-configuration warning is emitted after `Log.configure` and before `install_sink`, so it is held, and the holding handler evicts the oldest record at capacity, which makes the one warning a stale file produces the first casualty of a verbose boot. The round-1 entry on L-260916-aa6e58 records the window and the drop; evicting from the middle, or pinning warnings and above, would keep it, and the note on L-260916-a1dbd5 carries it.
-- **The `gcp` payload is a second implementation of the `json` sink's line** (*verified that the two disagreed*, cubic). This round made the reserved keys and the traceback agree and holds them together with `tests/unit/pipelex/tools/test_log_gcp_json_payload_parity.py`; the builders stay two. One payload builder in `pipelex/tools/log/log_sink.py`, which each sink then renders, is the structural fix, and worth doing before a third structured sink arrives.
-- **The `json` sink degrades every sibling field when one value defeats JSON** (*verified*, cubic's finding, surfaced by the verifier's comparison). `_json_line` in `pipelex/tools/log/json_log_sink.py` rewrites every non-fixed value as its `repr` when `json.dumps` refuses the payload, so a circular field turns an innocent sibling `{"a": 1}` into the string `"{'a': 1}"`; the `gcp` sink renders each value on its own and loses only the offending one. The `json` sink is the weaker of the two here, so the fix is per-value rendering there, owned by L-260916-aa6e58's sink; the note on it carries this.
-- **Rejected**: the run identifiers riding as `gcp` labels rather than payload keys is documented deliberately in `docs/configuration/config-practical/logging-config.md`, and the claim that the worker feeds its own queue without bound was refuted by measurement, since the worker drains each item and manufactures its successor, which is the spin this round fixed. That is a different growth from the one round 3 confirmed below, where the application outpaces a worker retrying a commit.
-
-## L-260916-9f1908, round 2 (bar defects)
-
-The pull request opened after round 1, so this round measured the gcp sink alone against `feature/Log-sink-seam`. The adversarial reviewer found that the round-1 export-path filter had made a refused write silent: the library marks a refused batch done after reporting it through the very record the filter rejects, and the stdlib's last resort never fires while a handler exists, so the flush succeeded while every line was lost. The verifier reproduced it, and the pass fixed it by printing the export path's warnings and errors through the last-resort handler, rate-limited. It also raised the extra's floor to `google-cloud-logging>=3.12.0`, since the verifier reproduced 3.11.4 failing the teardown with no `BackgroundThreadTransport.close()`, and named the allowed case under both blind excepts. Codex's advice to narrow the `emit` catch was rejected: a handler's `emit` must not raise out of the log call. What follows was read as real and left.
-
-- **Every entry is filed under the `global` monitored resource** (*verified*, code-review). `make_gcp_log_sink` builds the transport with no `resource`, so `BackgroundThreadTransport` falls back to `global`, and a process on a VM, on GKE or in a Cloud Run job does not appear in that resource's log views. The entries are not lost: a query by log name finds them. The library's own handler calls `detect_resource`, which always makes two metadata-server requests with a five-second timeout that does not cover DNS and swallows every failure; the verifier measured a refused port at no cost and a listener that never answers at ten seconds per boot. The choice between a configured resource and detection gated on a Google Cloud signal is a design decision, and nothing in the hosted plane selects this sink.
-- **A flush that reaches its deadline leaves a thread blocked** (*unverified*, cubic). When `FLUSH_TIMEOUT_SECONDS` expires, the drain thread stays in `queue.join()` while `close()` stops the worker. The queue is thread-safe, and the worker's close drains to the terminator, so the join returns unless a commit hangs past the close's grace period too; in that case one daemon thread outlives each such teardown.
-- **The declared minimum is never tested** (codex:review, the second half of the floor finding). The contract test in `tests/unit/pipelex/tools/test_log_gcp_client_library_contract.py` fails against 3.11.4 and passes against 3.12.0, which the verifier ran by hand, but CI runs only the locked version, so a future floor that is too low would pass again. A job that resolves the extras at their lowest versions is the cure, and it is a CI change for every extra rather than for this one.
-- **The payload builders stay two** (cubic, restating round 1). The round-1 entry stands.
-- **The `otlp` sink silences its exporter's failures the same way** (*verified*, the verifier's comparison). `ExportPathFilter` in `pipelex/tools/log/otlp_log_sink.py` rejects every `opentelemetry.*` record, and the verifier pointed the real exporter at a local collector answering 403: five posts refused, one failure record, nothing on stderr. The same last-resort report, with the SDK's own twenty-second deduplication already in front of it, is the fix; the sink is L-260916-aa6e58's, and the note on it carries this, together with the blind excepts in `otlp_log_sink.py` and `log_holding.py` that do not name the case the error-handling rule allows.
-
-## L-260916-9f1908, round 3 (bar necessity)
-
-The round measured PR #1209 against `feature/Log-sink-seam`, and codex:review found nothing. code-review found that round 2's rate limit could leave its count unprinted for good: the count of the failures suppressed within a window was printed only when a later failure opened the next window, so an outage that ended left it behind, and the constant's comment and the logging page both claimed otherwise. The verifier reproduced it end to end, with the count still pending after `Log.reset` and no count line on stderr, and the pass fixed it: the filter prints the count on the first record of any kind once its window has passed, and the handler, which now owns the filter, prints what is still counted after its transport's closing drain. What follows was read as real and left.
-
-- **The export queue has no bound** (*verified*, codex:adversarial). The client library's transport queue is `queue.Queue(0)`, and during a retryable outage one commit of 10 entries takes 41 to 60 seconds under the library's own retry deadline, so the queue grows at any logging rate above about 0.2 lines per second, at roughly 0.7 to 2 MiB per 1,000 lines. It dates from the sink's first commit, the library's own `CloudLoggingHandler` behaves the same way, and a bound needs a transport built on the library's public `Logger.batch()` surface rather than a wrapper around its private worker. Filed as L-260917-22dd32, with the measurements and the shapes of a fix.
-- **The export-path filter's docstring says nothing sets `propagate = False` on the library's logger** (*verified*, the verifier, raised by no reviewer). `api_core` sets it on the `google` logger when a gRPC client is built and that logger is not yet configured (`api_core/client_logging.py:122-125`). Pipelex's default `google = "INFO"` configures it first whenever `Log.configure` runs before any Google client exists; when it does not, the library's failure reports never reach the sink's filter and the stdlib's last resort prints each one, unrated. Nothing is lost, only the rate limit, and the claim dates from round 1.
-- **The trace id is derived with `hash_md5_to_int` rather than through `OtelFactory.make_trace_id`** (*unverified*, cubic). `trace_name_for_run` and its test both use the lower-level helper the tracer uses, so a change to the tracer's derivation would break log and span correlation while every `gcp` test still passed. A telemetry-level trace-id function both call is the cure.
-- **Restated**: the `global` monitored resource (cubic and code-review), the thread a flush past its deadline leaves blocked (cubic) and the two payload builders (cubic). The round-1 and round-2 entries stand.
-
-## L-260916-9f1908, round 4 (bar freeze)
-
-The bar changed no code. cubic and both Codex runs raised the unbounded export queue again, which round 3 verified and filed as L-260917-22dd32, and cubic restated the payload builders, the blocked flush thread and the `global` resource, whose entries above stand. code-review's two findings are new, and both were verified. Neither meets the sharp definition of a critical: the first breaks what the export-path filter claims to deliver, which `docs/workspace/review-profiles.md` defers at this bar and leaves to the person deciding the merge.
-
-- **A failed credential refresh over gRPC feeds a loop through the sink** (*verified*, code-review). Over gRPC the call credentials are refreshed on a thread gRPC creates for each plugin call, not on the export thread, and a failed refresh logs under `grpc._plugin_wrapping` and `google.auth.compute_engine._metadata`, names the filter does not reject. Those records are exported, the write carrying them fails the same way, and the library retries it, since the failure surfaces as UNAVAILABLE. The verifier installed the real sink against local endpoints, logged one application line and nothing more, and watched the queue climb for five minutes with compute-engine credentials whose metadata server is unreachable and with a user refresh token answering `invalid_grant`; a service-account key, the `credentials_file_path` case, signs its own JWT over gRPC and does not loop, and the HTTP transport keeps every record on the export thread and does not loop either. The filter's docstring, which says the auth stack reaches the handler only from the export thread, is wrong under gRPC. Filed as L-260917-896066 with the measurements and two shapes of a fix, the HTTP transport being the narrower.
-- **Every teardown prints two lines on stderr** (*verified by inspection*, code-review). `GcpLogHandler.close` reaches the library's `_Worker.stop` and `_close`, which print "Waiting up to 5 seconds." and "Sent all pending logs." whenever the worker is alive, and it always is at teardown. The logging page says the sink writes on stderr only what the export path reports; a process whose stderr must carry structured output alone would need the close's stderr redirected or the worker stopped without its prints.
-
-## L-260916-4837d4, round 1 (bar open)
-
-The branch stacks on `feature/Log-sink-seam`, so the pass measured it against `dev` with a focus naming its own commits. The pass fixed everything confirmed inside them: the exception text no sink scrubbed, the structured values scrubbed string by string and never by key, the model and the object the walk returned raw, the cycle branch that handed the raw container back, the cookie family that stopped at the first crumb and ran to the end of a multi-line message, the JSON-entry family that read a value up to the other quote and counted `code` a secret, the control-character escaping that corrupted `data`, the guard that failed open and could itself raise, and the processor a reinstalled sink accumulated. What follows was raised on code this branch does not touch and stands as traced on the sink member.
-
-- **The OTLP sink overwrites a carried `code.*` or `exception.*` field** (codex:review, restating the sink member's round 3). The entry under L-260916-aa6e58, round 3 stands; this branch's commits do not reach `_attributes`.
-- **The migration's safe deletion of a silencing file, at boot** (codex:adversarial, restating the sink member's rounds 1 to 4). The entries above stand, with L-260916-5d142f and L-260916-0e1435 carrying the engine gaps.
-- **Redaction by mapping key was filed and fenced before this round** (L-260916-715f62) and is now closed by the round's own fix; the item is closed by the pull request that carries this branch. The traceback surface filed beside it (L-260916-8bcd3f) is only *advanced* by the same fix: the rendered exception text every structured sink writes is scrubbed, and the `console` sink's Rich traceback, which renders from the exception object, is not — round 2 read that in the code and corrected this entry, which had said the item was closed.
-
-## L-260916-4837d4, round 2 (bar defects)
-
-The pull request opened after round 1, so this round measured the branch against `feature/Log-sink-seam` and every finding was its own. The pass fixed the eight confirmed defects: the top-level field whose name is a secret's, the structured content's message leaking what `data` redacted, the arguments the stdlib's own error report printed raw, the processor guard's `handleError` printing the exception that carried the secret, the sink left holding the processor when its handler build failed, the one unrenderable value that quarantined the whole record, the serialised-entry family reading its names in one case only, and the OTLP export losing an exception's text when it carried no traceback. What follows was read as real and left.
-
-- **A sink's own processor runs after the redaction and can put a secret back** (*refuted as reachable*, cubic). `install_sink` inserts the redaction at index 0 so a sink's processors work on a record the secrets have already left; a processor appended afterwards that adds or restores an attribute is exported unscrubbed. No sink in this repo, in `pipelex-server`, in `pipelex-api`, in `pipelex-mistral-workflows` or in `cocode` appends a processor at all, so the path exists only for an out-of-tree sink, whose own processor is that sink's to answer for. The comment that claimed a later processor "cannot put back what the scrub removed" overstated it and was corrected in the same round. Running the redaction last instead would scrub whatever a sink's processor added, at the cost of handing that processor the raw secret; whichever way it goes, it is a contract decision for the plugin seam rather than a defect of this branch.
-- **The `console` sink's Rich traceback still renders from the exception object** (*verified*, cubic). With `is_rich_tracebacks = true`, the default, an exception whose message holds a secret reads as it was raised on a person's terminal, and its frame locals do too under the non-default `is_tracebacks_show_locals`. Deliberate and documented in `_redact_exception_text`, in `docs/tools/logging.md#redaction` and in `logging-config.md`: the processor scrubs `exc_text`, which is what the stdlib formatter and the `json` and `otlp` sinks write. L-260916-8bcd3f carries the remaining surface, and the round-1 entry above is corrected accordingly.
-- **A mapping key that is itself a secret is carried through** (*verified*, cubic). The walk redacts a value under a secret *name* and copies every key unchanged, so `fields={"cache": {"sk_live_0123456789abcdef": "hit"}}` exports the key, at the top level and at any depth, and a structured content's `data` keeps a key whose message copy the prefix family scrubbed. Reachable but unusual, a dictionary keyed by a credential; scrubbing keys needs a rule for two keys that redact to the same text, which is a design question rather than a line to change.
-- **A control character in a mapping key is not escaped** (*verified*, cubic). The escaping covers a field's string values and not its keys. `json.dumps` escapes the C0 range in a key, so the `json` sink cannot be made to forge a line that way; a C1 byte reaches the line raw in a key where it would have been escaped in a value, the `console` sink renders no fields at all, and OTLP nests keys inside JSON text. Same behaviour as the base.
-- **The OTLP sink exports no exception at all for a record rebuilt from another process** (*verified*, code-review). `_attributes` is gated on `record.exc_info`, which a record prepared by `QueueHandler` or `SocketHandler` no longer carries, although it does carry `exc_text`; the `json` sink writes `exc_text` without `exc_info`. Pre-existing, and untouched by this branch, whose own fix covers the exception that carries no traceback.
-- **A secret nested in text a call rendered itself is beyond the families** (*verified*, codex:review). A structured content is redacted by name before it is rendered, so the facade's own dictionaries are covered whatever depth the secret sits at; an f-string of a dictionary, or a third-party `%s` of one, reaches the processor as text, where the serialised-entry family reads a quoted or bare scalar and cannot see into a nested object. Documented in `logging-config.md` as the limit of that family.
-
-## L-260916-4837d4, rounds 3 and 4 (bar necessity)
-
-Round 3 reported its findings without applying them, which held round 4 at the same bar rather than letting the ladder climb over work nobody had done. Round 4 therefore carried them, and its own reviewers raised most of them again: eleven findings were confirmed by reproduction and all eleven were fixed, every one of them a secret leaving the process, log data destroyed, or a defect the previous pass's own changes introduced. What the two rounds fixed: the cookie family stopping at a quote and, in the same pattern, running to the end of a sentence that merely said "cookie:"; the field escaping the name check under the `field_` collision prefix; the OAuth code class stopping at `%`; the key-prefix family missing the dash spellings the providers issue and matching ordinary snake_case identifiers while dropping the prefix that named the secret; the secret names readable only when something had quoted them, so a query string and a form-encoded body went through; `Authorization: Basic`, a credential pair one step from plaintext; the `extra_patterns` validator accepting a pattern that matches the empty string; a caller's field named `data` landing on the attribute the runtime exempts from escaping; structured content redacted only where the serialization succeeded, so the `repr` fallback carried what it was meant to remove; the quarantine that could itself fail and hand a sink a record neither scrubbed nor stripped; and a sink installed again after a reset being handed back the handler its teardown had closed. What follows was read as real and left.
-
-- **The `console` sink's Rich traceback still renders from the exception object** (*unverified*, cubic, restating rounds 2 and 3). The round-2 entry above stands unchanged, and L-260916-8bcd3f carries the surface. Raised in every round since the branch opened; it is a documented boundary rather than a finding.
-- **A mapping key that is itself a secret, and a control character in one** (*unverified*, cubic and code-review, restating round 2). Both round-2 entries above stand, and L-260916-715f62 carries the first. code-review sharpened the control-character half: a key holding a carriage return and a newline forges a line in exactly the `key=value` text rendering the escaping exists to stop — which no shipped sink writes, the `console` sink rendering no attributes at all, so the exposure is to an out-of-tree sink written against the documented contract.
-- **A plugin that replaces `sink.processors` after the handler is built** (*unverified*, cubic). `_ProcessorFilter` closes over the list the sink held when its handler was constructed, so a sink that assigns a new list afterwards keeps running the old one, and teardown removes the redaction from whichever list the attribute now names. Round 4's `discard_handler` settles it across installs — a fresh handler reads whatever `processors` holds at that install — and leaves it within one. Nothing in this repo replaces the list; the cure is a contract sentence saying the slot is appended to and not reassigned, which belongs with the factory-context question the round-2 entry already parks.
-- **`CYCLE_TEXT` is the one marker Rich deletes** (*unverified*, code-review). Rich's markup parser reads `[` followed by a lowercase letter as a tag and renders an unknown style as nothing, so `[cycle]` disappears where `[REDACTED]`, `[UNRENDERABLE: …]`, `[REDACTION FAILED: …]` and `[ARGUMENTS WITHHELD: …]` all survive on their capital. Not reachable today: the marker only ever lands on a record attribute and the `console` sink renders no attributes. Capitalising it costs nothing and should go with the next change to the markers.
-- **`_withhold_arguments` writes the raw format string** (*unverified*, code-review). The arguments are cleared so `getMessage` never interpolates, and a `%%` stays doubled and a `%(name)s` stays literal. The docstring's claim that the line still says which call it was holds; a reader sees the template rather than the text. Cosmetic.
-- **The doctor infers the cause of a failed install from a global** (*unverified*, code-review, restating round 3). `doctor_cmd.py` reads `log.sink is not None` as proof the failure came out of the held-record replay, which is equally true when `install_sink` refused because a sink was already installed: the row then reports a replay failure whose message says a sink is already installed. Narrow — it needs something else to have installed a sink first — but the row asserts a mechanism the code cannot distinguish. Discriminating on the exception, or comparing `log.sink` with the sink just built, would be exact.
-- **A record held when the boot dies before `install_sink` meets no processor** (*unverified*, code-review). `HoldingLogHandler.close()` hands what it holds to the stdlib's last-resort handler, which writes the unscrubbed message to stderr. The dispatch-level redaction still covers structured content on that path, so only the message-text families are missed, and the window is a boot that dies between `configure` and its sink.
-- **A test that does not isolate the branch it names** (*unverified*, code-review). `test_an_exception_that_carries_no_traceback_still_exports_its_own_text` uses `caplog`, whose handler may set `record.exc_text` before the OTLP handler reads it; for a traceback-less exception both renderings are the same string, so the assertion passes either way. The behaviour it covers is real and separately exercised; the test would want a fixture that does not attach a formatter ahead of the sink.
-
-## L-260916-4837d4, round 4 again, after the dev merge (bar necessity)
-
-Round 4 fixed a critical and left the ladder at its cap, so it read stalled. The developer's call on 2026-09-25 was to review the branch once more after current `dev` had been merged into it, and this pass ran as round 4 again, measured against `feature/Log-sink-seam`. A verifier confirmed five findings by reproduction and the pass fixed them. The `otlp` sink, installed again as the same object after a reset, exported nothing while the docstring, the changelog and the plugin page named it as the case the fresh-handler fix covered, so it now refuses a second handler loudly and the prose says why. A boot that died before its sink arrived handed its held records to the stdlib's last resort unscrubbed, including the message, the exception text and every third-party record, which is broader than the round-3 and round-4 entry above recorded; the holding handler now runs the redaction over each of them first, behind the same guard. The `repr` fallback's name walk skipped tuples. Two lines of `docs/tools/logging.md` still described the `data` move as conditional. Four reset assertions had become vacuous once `discard_handler` made `sink.handler` build a new handler after a reset. What follows was read as real and left, every entry unverified.
-
-- **The key-prefix family misses real `sk-ant-api03-…` and `sk-proj-…` bodies** (*unverified*, code-review and cubic). After the prefix and at most two short segments, the pattern needs an unbroken run of sixteen letters and digits, while those bodies are base64url and carry `-` and `_` throughout, so such a key is either left whole or cut after its first run with the rest logged. The tests use alphanumeric bodies only. This is the completeness of the families, fenced as L-260920-44f6ff.
-- **The plain `name=value` family misses a quoted value** (*unverified*, code-review and cubic). `password='hunter2hunter2'` in a dataclass, attrs or keyword-argument `repr`, and `password: "…"` in YAML, come back unchanged, since only the api-key and signature families accept an opening quote after the separator. `_clean_value` renders a non-model object with `str(value)` before the scrub, so a credentials object passed in a field has exactly that shape, and so does a model inside content JSON refuses on the `repr` fallback. L-260920-44f6ff.
-- **`Authorization: Digest` loses only its first parameter** (*unverified*, cubic). The value pattern stops at the quote, so `response="…"` stays in the line while the documentation lists the scheme as covered. L-260920-44f6ff.
-- **A field or mapping key is matched against the secret names exactly, while text is matched by suffix** (*unverified*, cubic). `fields={"openai_api_key": "…"}` and `db_password` keep their value, where the same entry written as text is caught because the text families have no leading word boundary. L-260920-44f6ff, whose stated grammar should settle one rule for both paths.
-- **The empty-match guard on `extra_patterns` misses zero-width matches in context** (*unverified*, code-review and cubic). `compiled.match("")` refuses `x*` and accepts `\b`, `(?<=a)` and `\b[a-z]*`, which scatter the redaction text through every line, the very failure the validator names. A deployment's own pattern is the only way in; the grammar pass of L-260920-44f6ff is where a check for any zero-width match belongs.
-- **The `console` sink's Rich traceback** (*unverified*, codex:adversarial, restating every round). The round-2 entry stands, and L-260916-8bcd3f carries it.
-- **A mapping key that is itself a secret** (*unverified*, codex:adversarial, restating round 2). L-260916-715f62 carries it.
-- **The doctor keeps a sink whose replay failed** (*unverified*, codex:review). Where the replay failed because the handler is permanently broken, a closed stderr for one, the next doctor log line raises through the same handler and the command ends on the generic unexpected-error path rather than its report. Detaching the failed sink and installing the fallback would keep the report; the case needs a stderr already closed, and it is the same row the round-3 entry on the doctor's global reads.
-
-Rejected on their face: the blanket catch around the redactor (codex:review), which is the fail-closed boundary the owner settled on 2026-09-18 and recorded above; and the claim that the `config-docs` ack rationale understates the change (cubic), since an ack's rationale describes the trigger delta since the previous ack, which that one does.
-
-## L-260916-4837d4, round 4, the verification pass on the round-4 fixes (bar freeze)
-
-The fixes of the pass above had not been reviewed, so the ladder read stalled. The orchestrator spent one verification pass on them, on the developer's recorded call to re-review this member after the dev absorption, and the pass ran as round 4 at the `freeze` bar, which changes nothing but a critical. Its reviewers were cubic and code-review, both pointed at the round-4 fixes and above all at the holding handler now running the redaction at boot, and Codex in review and adversarial modes, which take no focus. None of them found a defect in the otlp refusal, in the redaction the holding handler now runs before the last resort, in the tuple walk, or in the corrected docs and reset assertions; what they said about those fixes is two comments that overstate what the code does. Nothing read as a critical: every leak below is a gap in the protection this branch adds rather than a hole it opens, since the base writes every record unscrubbed, and the bar's definition sends such a defect to the fix clause, which at `freeze` admits nothing. No verifier ran, and every entry is unverified.
-
-- **The holding handler's docstring gives a false reason for not redacting twice** (*unverified*, cubic). `HoldingLogHandler` in `pipelex/tools/log/log_holding.py` says a second pass over a released record "would escape its control characters twice". `escape_control_characters` turns a control character into a printable escape and never escapes a backslash, and `scrub_secrets` is idempotent by its own docstring, so a second pass would change nothing. The design, running the filter on the last-resort path alone, is right; the stated reason should become the plain one, that a released record already meets the sink's own processors.
-- **An unchanged tuple is handed back as it was only when it holds no mapping or list** (*unverified*, cubic). The identity check that 4b2bf35c1 added to `redact_secret_entries` in `pipelex/tools/log/log_redaction.py` compares each item with what the walk returned, but the mapping and list branches always build a new container, so a tuple holding a `dict` or a `list` is rebuilt as a plain tuple even when nothing in it was redacted, and a named tuple loses its field names in the `repr` fallback. The comment beside the check and the function's docstring ("the value itself otherwise") both claim more than that. Cosmetic: no value is lost. Either the mapping and list branches hand back the original when no entry changed, or both comments are corrected.
-- **A message whose rendering changes between two calls escapes the scrub** (*unverified*, codex:review). `_redact_record` renders the message once and replaces `msg` and `args` only when the scrub changed the text, so a sink that calls `getMessage` again re-renders from the original arguments. An argument whose `__str__` answers differently the second time, a mutable object another thread writes to between the processor and the handler's format for one, could put a secret in the second rendering. The window is the time between a handler's filter and its own format, on the same thread. Freezing the rendering into `msg` and clearing `args` after every successful render, not only after one that changed, closes it.
-- **The `repr` fallback's name walk can raise out of a log call** (*unverified*, codex:review). When `json` refuses a structured content, `LogDispatch._render_content` in `pipelex/tools/log/log_dispatch.py` now calls `redact_secret_entries` inside its `except` clause, and a user-defined `Mapping` whose `items()` raises makes that call raise out of `log.info(content)`, where the base's plain `repr` did not. It needs content that `json` refuses with a `TypeError` or `ValueError` while holding such a mapping. Guarding the walk on that path, with a marker in place of the content when the walk itself fails, keeps the promise that a log call never raises.
-- **A model that dumps to a scalar comes back as text** (*unverified*, codex:review). `_clean_value` in `pipelex/tools/log/log_redaction.py` checks for a number, a boolean and `None` before it dumps a model, so a `RootModel[int]`, a `RootModel[None]`, or a model whose serializer returns a scalar falls through to the `str` rendering after its dump, and a field that was `123` or `null` reaches the `json` and `otlp` sinks as `"123"` or `"None"` when redaction is on. Re-entering the cleaner with the dumped value keeps the type.
-- **The key-prefix family misses base64url key bodies, `Authorization: Digest` keeps its later parameters, and a punctuated plain value survives** (*unverified*, code-review and codex:adversarial, restating the pass above). L-260920-44f6ff.
-- **The empty-match guard on `extra_patterns` misses zero-width matches in context** (*unverified*, code-review, restating the pass above). L-260920-44f6ff.
-- **The `console` sink's Rich traceback renders from the exception object** (*unverified*, codex:adversarial, restating every round). L-260916-8bcd3f.
-- **A mapping key that is itself a secret is carried through** (*unverified*, codex:adversarial, restating round 2). L-260916-715f62.
-
-## L-260925-c9ab0d, round 1 (bar open)
-
-The json sink's trace context, with the pipe and LLM spans made current. The pass fixed a held boot line taking the install's span rather than its own, which the verifier reproduced with a record logged on a second thread inside its own span: the holding handler now copies the context a record was emitted in and replays the record under it, for every sink. It also documented that the Gateway stream alone makes the spans current, and split the test module to one class each. What follows was read as real and left.
-
-- **Under the Gateway stream alone, making the spans current gives the host the side effects without the join** (*verified*, cubic, with the verifier's experiments). The tracer exists whenever `custom_posthog.tracing.enabled or pipelex_telemetry_enabled` (`pipelex/system/telemetry/telemetry_manager.py`), and the Gateway stream is on automatically for a Gateway user outside a test run, so for an operator with no exporter of their own the spans go only to Pipelex's PostHog. Their json lines then name spans they never receive, their own instrumentation's spans are re-parented under a parent their backend never gets, and a `ParentBased` host sampler keeps those children whatever its ratio, since the run's parent is hard-coded `SAMPLED` (`pipe_abstract.py`, `llm_worker_abstract.py`). The claim that the host's spans are exported to Pipelex's PostHog was refuted: `make_ai_tracer` never registers its provider globally. The alternative is to make the spans current only when the operator has an exporter of their own (custom PostHog tracing, OTLP or Langfuse); it would also take the join away from any deployment, the hosted plane included, whose lines are meant to meet the traces on Pipelex's own stream. That is a product decision, not a defect, and this pass documented the behaviour in `docs/setup/telemetry.md` under "Pipelex's spans in your process" and in `docs/tools/logging.md` instead of choosing.
-- **A Langfuse-only or OTLP-only telemetry configuration appears to create no tracer** (*verified by reading, not by running*, the verifier, outside the diff). The OTLP and Langfuse exporters are wired only inside `make_ai_tracer` (`pipelex/system/telemetry/otel_factory.py`), which runs only under the condition above, and `PostHogTracingConfig.enabled` defaults to `false`, so the Langfuse example in `docs/setup/telemetry.md` would export nothing without the Gateway stream or PostHog tracing. Pre-existing and outside this member; the orchestrator files it.
-
-## L-260925-c9ab0d, round 2 (bar defects)
-
-The verifier confirmed three defects and the pass fixed them. A no-op tracer, which the SDK hands out under `OTEL_SDK_DISABLED`, starts spans naming no trace, and making one current hid the caller's span for the whole pipe or LLM call; `span_made_current` now leaves the context alone for such a span. The opt-in `bedrock_boto3` client ran its blocking call through `run_in_executor`, which does not carry the context, so the LLM span was not current inside the call; it now uses `asyncio.to_thread`. A cancelled pipe run never ended its span, because the catch took `Exception` only; that predates this branch, and the catch now takes `BaseException`. What follows was left.
-
-- **`HeldRecord` is a bare tuple where the standards ask for a `NamedTuple`** (*unverified*, cubic). `pipelex/tools/log/log_holding.py` unpacks it in two places, `release_to` and `close`. This is an improvement, not a defect, at this bar. It also conflicts with the redaction member's `close()` edit, so it is better done after the merge.
-- **The spans made current re-parent and force-sample host instrumentation** (codex:adversarial, reproduced with `ParentBased(TraceIdRatioBased(0.0))`). This is the round-1 entry above, re-raised with the recommendation to carry the span in a Pipelex-private context variable for log correlation and make OpenTelemetry current-ness opt-in. The round-1 entry stands: it is Louis's decision.
-
-## L-260925-c9ab0d, the design change after round 2
-
-The two entries above on re-parenting and force-sampling host instrumentation no longer describe the branch. The sprint's orchestrator ruled that Pipelex must not touch the process's global OpenTelemetry context, since doing so is a side effect on a client's infrastructure: Pipelex now holds its pipe and LLM spans in a context variable of its own (`pipelex/system/telemetry/current_span.py`), the `json` and `otlp` sinks read that span first and OpenTelemetry's current span, read only, after it, and a test asserts the current span inside a pipe run and an LLM call is whatever it was outside. Whether Pipelex's spans should ever become OpenTelemetry-current, always, when the operator's own exporter receives them, or by an explicit opt-in, is an open decision for Louis on its own ledger item, which also carries what error trackers reading the current span would gain.
-
-## L-260925-c9ab0d, round 2 after the design change (bar defects)
-
-The first pass after the design change fixed one defect: the pipe's and the LLM worker's verbose "SPAN STARTED" lines were logged before their span was held, so their trace ids named the enclosing span; they are now logged with it held. It rejected the graph-tracing catch in `_run_pipe_traced` taking `Exception` only, which the verifier refuted: the graph tracer's teardown marks a node still running as `CANCELED`, which is the right status for a cancelled pipe. The second pass fixed nothing and left what follows.
-
-- **Inside a Pipelex run, a line joins the Pipelex span even where the host has a valid span of its own** (codex:adversarial, "do not ship", and cubic; verified by reading, since it is the precedence the sprint's orchestrator specified). `span_context_for_logs` and `otel_context_for_logs` in `pipelex/system/telemetry/current_span.py` prefer the held Pipelex span. Under the Gateway stream alone, Pipelex's spans reach only Pipelex's exporters, so an operator running their own OpenTelemetry tracing with the `json` or `otlp` sink gets lines inside a run tagged with a trace their backend never receives, while their own instrumentation's spans for the same work stay in their trace. On `dev` before this branch the `otlp` sink filed those records under the host's current span. The alternatives the reviewers named: prefer a valid host span unless Pipelex's spans reach a destination the operator owns, carry the Pipelex ids as namespaced attributes beside the host's standard ones, or make the precedence configurable. This is the same product question as whether Pipelex's spans should ever be OpenTelemetry-current, seen from the log side, and it belongs with that decision rather than in this branch.
-- **The pipe span's catch was widened to `BaseException` where the Python standards prescribe `try`/`finally` for required cleanup** (*unverified*, cubic). `live_run_pipe` in `pipelex/pipe_machinery/pipe_abstract.py` observes and re-raises, which is correct in behaviour; the LLM worker in the same diff ends its span in a `finally` that reads `sys.exc_info()`. Moving the pipe to that shape is a code-shape improvement, to be done together with `_run_pipe_traced`, whose own comment explains why it is not a `finally`.
-- **`current_span.py` and the `*_current_span.py` tests keep their names from the design that made the spans current** (*unverified*, cubic). Renaming the module to `active_span.py` and the tests to match would line the names up with `pipelex_span_active`; an improvement, not a defect.
diff --git a/wip/subject-grants/demoted-public-surfaces.md b/wip/subject-grants/demoted-public-surfaces.md
deleted file mode 100644
index 52dc6a7c1..000000000
--- a/wip/subject-grants/demoted-public-surfaces.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# Demoted public surfaces — release-wave cross-repo sweep handoff
-
-The subject-grant review demoted every positional first parameter that failed the grant rubric to keyword-only (see `docs/contribute/keyword-only-arguments.md`). No backward compatibility: any external consumer calling these surfaces positionally — or subclassing them with positional signatures — breaks when the release ships. This is the inventory for the release-gated cross-repo sweep; the consumers to check are `pipelex-api`, `pipelex-cookbook`, `cocode`, our orchestration plugins, our hosted services, and any starter/template code.
-
-## Runtime / execution surfaces
-
-- `pipelex.core.pipes.pipe_abstract.PipeAbstract` run family (`run_pipe`, `live_run_pipe`, `dry_run_pipe`, `validate_before_run`, `validate_after_run`, `needed_inputs`) — `job_metadata` / `visited_pipes` now keyword-only; external code subclassing or invoking pipes positionally breaks.
-- `pipelex.runtime_bridge.bootstrap.ensure_pipelex_booted` (`config_overrides`) — runtime_bridge is consumed by `pipelex-api` and by our hosted services; positional callers break.
-- `pipelex.pipeline.pipeline_run_setup.pipeline_run_setup` (`execution_config`) and `pipelex.pipeline.pipeline_manager_abstract.add_new_pipeline` (`pipe_code`).
-- `pipelex.libraries.library_manager_abstract.LibraryManagerAbstract` load family (`load_libraries`, `load_from_blueprints`, `load_from_crate`, …) — `library_id` now keyword-only.
-- `pipelex.libraries.concept.concept_library_abstract.ConceptLibraryAbstract.is_compatible` / `ConceptLibrary.is_compatible` (`tested_concept`).
-- `pipelex.graph.graph_tracer_protocol.GraphTracerProtocol.setup` (`graph_id`) + `GraphTracer.setup` / `GraphTracerNoOp.setup` — external tracer implementations must match.
-
-## Content / rendering surfaces
-
-- `pipelex.core.stuffs.stuff_content.StuffContent.rendered_for_prompt` / `rendered_for_template_async` (`text_format`) and `pretty_print_content` (`title`) — public content API; positional `TextFormat` callers break.
-- `pipelex.tools.jinja2.text_format_renderable.TextFormatRenderable.rendered_for_template_async` (`text_format`) — `@runtime_checkable` protocol; external implementers and positional callers break.
-- `pipelex.tools.jinja2.image_renderable.ImageRenderable.render_with_images` (`registry`) — protocol + all content-class implementations.
-- `pipelex.cogt.image.prompt_image_factory.PromptImageFactory.make_prompt_image` (`uri`) and `pipelex.cogt.document.prompt_document_factory.PromptDocumentFactory.make_prompt_document` (`uri`) — public content factories; positional-`uri` callers (cookbook, cocode, app) break.
-
-## Model / backend / reporting surfaces
-
-- `pipelex.cogt.models.model_manager_abstract.ModelManagerAbstract.setup` + `ModelManager.setup` (`secrets_provider`) and `pipelex.cogt.model_backends.backend_library.InferenceBackendLibrary.load` (`secrets_provider`).
-- `pipelex.cogt.llm.llm_setting.LLMSettingChoices.make_completed_with_defaults` (`for_text`) and `pipelex.cogt.model_routing.routing_profile.RoutingProfile.get_backend_match_for_model` (`enabled_backends`).
-- `pipelex.reporting` protocol methods `set_event_log` / `clear_event_log` (`context_key`) — external `ReportingProtocol` implementations must match.
-- `pipelex.system.telemetry.*.is_custom_portkey_logging_enabled` / `is_pipelex_gateway_portkey_logging_enabled` (`is_debug_configured`).
-- `pipelex.plugins.anthropic.anthropic_factory.AnthropicFactory.calculate_safe_max_tokens_for_timeout` (`timeout_seconds`).
-- `pipelex.tools.aws.aws_config.AwsConfig.get_aws_access_keys_with_method` (`api_key_method`).
-
-## Builder / CLI-adjacent importable surfaces
-
-- `pipelex.builder.operations` entry points `build_inputs_for_pipe` (`pipe_code`), `list_models` (`categories`), `validate_all` (`library_dirs`) — agent-CLI/MCP plumbing, but importable.
-- `pipelex.cli.installed_methods.discover_installed_methods` (`include_global`) and `pipelex.cli.commands.init.config_files.init_config` (`reset`).
-- `pipelex.hub.PipelexHub.set_dry_run_forced` (`is_forced`).
-
-## Tools helpers (literal sweep)
-
-- `pipelex.tools.misc.string_utils.pluralize` / `count_with_noun` (`count`).
-- `pipelex.tools.log.log.Log.set_level_by_int` (`level_int`) and `pipelex.tools.log.log_levels.LogLevel.from_int` (`logging_level`).
-- `pipelex.tools.misc.pretty.PrettyPrinter.pretty_width` (`width`).
-- `pipelex.errors.error_pages_generator.generate_error_pages` (`output_dir`) — dev tooling, listed for completeness.
-
-CLI-internal helpers (doctor/show/update/validate `*_cmd` delegates, console UI builders, plugin-internal `list_*_models` / discovery register helpers, gateway `_call_relay`) were also demoted but are not part of the importable public API — they live in the commit diffs, not here.
diff --git a/wip/subject-grants/regrind-after-dev-merge.md b/wip/subject-grants/regrind-after-dev-merge.md
deleted file mode 100644
index bf01e3c05..000000000
--- a/wip/subject-grants/regrind-after-dev-merge.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# Regrind record — redoing the Phase-4 grind after the dev merge (Phase M step 5)
-
-The `feature/Signatures` branch was rewound to the pre-grind mechanism commit and `origin/dev` merged there, which reset every grant to `seeded = true` (plus dev's new wave). This record documents how the regrind was executed so its verdicts are auditable against the archived first grind (tag `subject-grants-grind-archive`, tip `2ebf3f293` — checkpoint-2 and checkpoint-3 review records live in that branch's `wip/subject-grants/`).
-
-## Method — classification against the archive
-
-An AST-based classifier compared, per seeded key, the def's signature across three trees: the pre-grind base (`9f5bd54a3`), the archived grind tip, and the merged working tree. Buckets:
-
-| Bucket | Count | Treatment |
-|---|---|---|
-| PORT | 1,470 | Archive KEPT it and dev left the def's signature unchanged → archive rationale ported verbatim (wave A) |
-| REDO_DEMOTE | 148 | Archive demoted it and dev left the def unchanged → the archive's demoted header spliced back over the working-tree def, byte-for-byte (wave B) |
-| REVIEW_NEW | 285 | Dev-new def → genuinely reviewed against the rubric + case-law (wave C) |
-| REVIEW_CHANGED | 24 | Archive had a verdict but dev changed the signature → genuinely re-reviewed (wave C); archive-kept rationales re-used where the verdict stood |
-
-Wave B also re-applied the archive's demotes on `@override`/Protocol implementers (carve-outs, so registry-invisible), recovered pyright-guided; call sites re-labelled with the keyword mechanically.
-
-## Wave C verdicts (the genuine review): 268 kept, 41 demoted
-
-Demote families applied (all existing case-law): console/sink-first params (`_print_*`/`_display_*`/`_render_fix_result(console, …)`), key+payload targets (`apply_fix_ops(toml_doc, *, ops)`, `resolve_field(field_name, *, blueprint)`, `add_stuff_spec`, `normalize_typeless_signature_section`), optional-selector-among-alternatives (`inputs_core(pipe_code=None, …)` family, matching the archive's `build_inputs_for_pipe` demote), config-first (`pipeline_run_setup(execution_config)` — literally the case-law example), lookup-container/scope (`_default_main_pipe_ref(crate)`, `find_default_inputs_file(directory)`, `_iter_stampable_files(directory)`, `_resolve_table(toml_doc, …)`), accumulator-sink (`_add_native_ref(referenced, …)`), same-type pair (`_file_state_matches(current_snapshot, *, expected_snapshot)`), bare-literal call sites (`_text_field("The text", …)`, `build_fix_command("pipelex", …)`), job_metadata run-family (`PipeAbstract._make_lifted_output`), derived-value registry lookup (`_custom_import_statement`, matching the demoted `_get_structure_class_import`).
-
-Protocol parity handled: demoting `GraphTracerProtocol.setup(graph_id)` demoted `GraphTracer.setup` and `GraphTracerNoOp.setup` in the same commit (the manager's `open_tracer(graph_id)` stays granted — entity-keyed, per the archive).
-
-Keeps of note: the codegen emitters/resolvers/parsers (single-operand transformations and noun-named derivations), the `markdown_renderer` formatters and provider factories (positional-`Callable` protocol), `plugin.register(registrar)` (duck-typed third-party dispatch invoked positionally by discovery), the InputShaper `_shape_*` family (the raw value is the operand), WorkingMemory getters/recorders (entity-keyed / verb-object).
-
-Judgment calls worth spot-checking: the record-vs-registry discriminator — extraction from a single record analyzed (`_extract_wrapped_*_error(error)`, `_pending_signatures_from_validation_result`) KEEPS, while lookup of one entry in a keyed container (`_get_raw_main_absence(working_memory_raw)`, `_default_main_pipe_ref(crate)`) DEMOTES; and `_validation_category_header(category)` / `_markdown_category_header(category)` kept as noun-named derivations (pure match/case over the operand) rather than demoted as mode-selectors.
-
-## Gates
-
-Each wave: `make agent-check` green. Full `make agent-test` green after wave B and after wave C (both waves demote framework-adjacent protocol members). `--report`: seeded remaining 0.
-
-## Checkpoint review (Phase M step 6) — 3-agent fan-out over the merge+grind range
-
-Three fresh no-context Sonnet agents reviewed the `d58cd847b..` grind commits, same shape as checkpoint 3. Findings and triage:
-
-- **Code-correctness** — one real defect: `PipeAbstract.validate_before_run` had lost its `-> InputPresenceScan` return annotation in the wave-B splice (the archive grind itself had dropped it, and the byte-for-byte splice faithfully copied the loss). Restored. Everything else clean: no positional call-site breakage, protocol/implementer pairs in lockstep, no framework callbacks wrongly keyword-only'd.
-- **Mechanical-rewrite-safety** — independent AST audit over all demoted defs: zero parameter/default/decorator/docstring losses, zero missed call sites across the tree, registry consistent with the demoted set. Its only confirmed finding was the same annotation loss.
-- **Grant-judgment** — audited rationale quality and same-file consistency (including a mechanical sibling-diff sweep). Verdict: regrind well-applied; case-law families (console-first, key+payload, lookup-container, entity-keyed getters vs payload setters, positional-Callable protocols, two-candidate demotes) all held up on inspection. Three high-confidence inconsistencies, all triaged as real misses and **demoted** (def + call sites + registry entry removed):
- - `DeliveryExecutor._get_raw_main_stuff_dict(working_memory_raw)` — structurally identical to its sibling `_get_raw_main_absence` (demoted): a keyed-container lookup, the record's own stated DEMOTE discriminator.
- - `check_keyword_only_cmd.py::_print_violation_lines(violations)` — three same-shape siblings in the same file (`_print_failure_panel`, `_print_failure_quiet`, `_print_violations_by_kind`) were all demoted; "when in doubt → keyword-only" settles the 3-of-4 split.
- - `kit_cmd.py::_cleanup_other_targets(repo_root)` — `repo_root` is a scope param, not the verb's object (the objects are the keyword params); the lone call site already passed it by keyword.
-
-Post-triage: `make agent-check` green; delivery-executor tests green. Grants total 1,743.
-
-The post-triage full-suite run also caught one failure class the reviews missed: dev-new unit tests stubbing `render_stuff_spec` with mocks asserted the pre-demote positional call (`assert_called_once_with(JSON)`). Mock assertions are invisible to pyright, so the wave-B pyright-guided call-site fixer never flagged them. Rewrote the assertions to the keyword form (`output_format=...`); the `side_effect` usages are exception instances, unaffected. This is a known blind spot of mechanical demotes: mock-based tests only fail at runtime — the full test suite is the safety net.
diff --git a/wip/test-durations/README.md b/wip/test-durations/README.md
deleted file mode 100644
index 15acc7c97..000000000
--- a/wip/test-durations/README.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# Test durations — track folder
-
-Working notes for the `.test_durations` refresh work (the shipped system is documented at `docs/contribute/test-duration-map.md`).
-
-- **`what-we-built.html`** — the explainer for co-developers: why the refresh went incremental, the measurements that drove it, what to run, and how it was verified. **Start here.**
-- **`pr-1120-review-notes.md`** — the one review-agent finding from PR #1120 that was deferred rather than fixed: how much argv headroom the `FULL_RUN_RATIO` threshold actually leaves, and what would trigger revisiting it.
-
-Context in one line: `make store-test-durations` used to run the whole suite at every release and rewrite ~21,000 lines; it now measures only the tests missing from the map, because missing coverage is what unbalances the CI shards while stale values are nearly free.
diff --git a/wip/test-durations/pr-1120-review-notes.md b/wip/test-durations/pr-1120-review-notes.md
deleted file mode 100644
index 00b5728e3..000000000
--- a/wip/test-durations/pr-1120-review-notes.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# PR #1120 — deferred review note
-
-One observation from the review-agent triage on PR #1120 was recorded rather than acted on. Everything else the reviewers raised was fixed on the branch.
-
-## `FULL_RUN_RATIO` and the argv budget
-
-**Where:** `pipelex/cli/dev_cli/commands/duration_map.py`, the `FULL_RUN_RATIO = 0.4` constant.
-
-**Reported by:** nobody — noticed while verifying the reviewers' findings.
-
-**The observation.** `FULL_RUN_RATIO`'s comment gives two reasons for the threshold, and the second is that it "keeps the node-id argument vector to a sane size". That reason is holding, but with less margin than the comment implies. Measured on the current map: 10,633 entries whose node ids total about 1.55 MB of text, so the largest incremental run the threshold permits passes roughly 620 KB of arguments to `execve`. `ARG_MAX` on this machine is 1 MB, and the environment block and pointer array come out of the same budget. It works, with something like 30% headroom, and the headroom shrinks as the suite grows because the threshold is a *ratio* — a suite twice this size crosses the limit at the same 40%.
-
-**Why it was deferred.** It is a latent limit, not a present bug: no run today gets near `execve`'s ceiling, and the failure it would eventually produce (`E2BIG`) is loud and unmistakable rather than silent. Fixing it speculatively means either batching the node-id runs or writing them to a file for `@argfile`-style consumption, and both add moving parts to a command whose whole appeal is that it is simple. The right trigger is the suite roughly doubling, or the first `Argument list too long` from `make store-test-durations`.
-
-**If it does need addressing.** The cheapest fix is to bound the incremental run by the *byte size* of the assembled node-id list rather than only by the missing-to-collected ratio, falling back to the full re-measure when the vector would get large. That keeps the existing escape hatch and adds no new execution mode.
-
-Thread: https://github.com/Pipelex/pipelex/pull/1120
diff --git a/wip/test-durations/what-we-built.html b/wip/test-durations/what-we-built.html
deleted file mode 100644
index bf9cd6ca7..000000000
--- a/wip/test-durations/what-we-built.html
+++ /dev/null
@@ -1,503 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>Test durations — refreshing the shard map in seconds, not minutes</title>
-<style>
- :root {
- --ink: #1f2430;
- --muted: #5b6472;
- --line: #d9dee6;
- --bg: #ffffff;
- --panel: #f6f8fa;
- --accent: #0b6bcb;
- --accent-soft: #e8f1fb;
- --good: #1a7f37;
- --good-soft: #e6f4ea;
- --warn: #9a6700;
- --warn-soft: #fdf6e3;
- --bad: #cf222e;
- --bad-soft: #fbe9ea;
- --grid: #e6eaef;
- }
- @media (prefers-color-scheme: dark) {
- :root {
- --ink: #e6e9ef;
- --muted: #9aa4b2;
- --line: #303844;
- --bg: #14171d;
- --panel: #1b1f27;
- --accent: #6cb0f5;
- --accent-soft: #16283c;
- --good: #57c785;
- --good-soft: #14291d;
- --warn: #d9a441;
- --warn-soft: #2a2213;
- --bad: #f0777f;
- --bad-soft: #2c1719;
- --grid: #2a313c;
- }
- }
- * { box-sizing: border-box; }
- html, body { margin: 0; padding: 0; }
- body {
- font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
- color: var(--ink);
- background: var(--bg);
- line-height: 1.55;
- font-size: 16px;
- }
- main { max-width: 980px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
- h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .3rem; }
- .subtitle { color: var(--muted); margin: 0 0 .4rem; font-size: 1.05rem; }
- .meta { color: var(--muted); font-size: .85rem; margin: 0 0 2rem; }
- h2 { font-size: 1.4rem; margin: 3rem 0 .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
- h3 { font-size: 1.08rem; margin: 1.8rem 0 .5rem; }
- p { margin: .7rem 0; }
- a { color: var(--accent); }
- code {
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- font-size: .85em;
- background: var(--panel);
- border: 1px solid var(--line);
- border-radius: 4px;
- padding: .08em .35em;
- white-space: nowrap;
- }
- pre { margin: .9rem 0; }
- pre code { white-space: pre; display: block; padding: .8em 1em; overflow-x: auto; line-height: 1.5; }
- .tldr {
- background: var(--accent-soft);
- border: 1px solid var(--line);
- border-left: 5px solid var(--accent);
- border-radius: 8px;
- padding: 1.1rem 1.4rem 1.3rem;
- margin: 1.5rem 0 2rem;
- }
- .tldr h2 { border: none; margin: 0 0 .6rem; padding: 0; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; }
- .tldr ul { margin: .4rem 0 0; padding-left: 1.2rem; }
- .tldr li { margin: .5rem 0; }
- .callout {
- background: var(--panel);
- border: 1px solid var(--line);
- border-left: 4px solid var(--muted);
- border-radius: 6px;
- padding: .8rem 1.1rem;
- margin: 1.2rem 0;
- }
- .callout.key { border-left-color: var(--accent); background: var(--accent-soft); }
- .callout.warn { border-left-color: var(--warn); background: var(--warn-soft); }
- .callout.good { border-left-color: var(--good); background: var(--good-soft); }
- .callout p:first-child { margin-top: 0; }
- .callout p:last-child { margin-bottom: 0; }
- table { border-collapse: collapse; width: 100%; margin: 1.1rem 0; font-size: .92rem; }
- th, td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
- th { background: var(--panel); font-weight: 600; }
- td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
- .tbl-wrap { overflow-x: auto; }
- .bad-txt { color: var(--bad); font-weight: 600; }
- .good-txt { color: var(--good); font-weight: 600; }
- .warn-txt { color: var(--warn); font-weight: 600; }
- figure { margin: 1.6rem 0; }
- figure svg { display: block; width: 100%; height: auto; }
- figcaption { color: var(--muted); font-size: .87rem; margin-top: .5rem; }
- details {
- border: 1px solid var(--line);
- border-radius: 6px;
- padding: .6rem .9rem;
- margin: 1rem 0;
- background: var(--panel);
- }
- details[open] { padding-bottom: .9rem; }
- summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
- details > *:not(summary) { font-size: .95rem; }
- .tabs { margin: 1.4rem 0; }
- .tabs input { position: absolute; opacity: 0; pointer-events: none; }
- .tab-labels { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--line); }
- .tab-labels label {
- cursor: pointer; padding: .45rem .9rem; font-size: .9rem; font-weight: 600;
- color: var(--muted); border: 1px solid transparent; border-bottom: none;
- border-radius: 6px 6px 0 0;
- }
- .tabs input:nth-of-type(1):checked ~ .tab-labels label:nth-of-type(1),
- .tabs input:nth-of-type(2):checked ~ .tab-labels label:nth-of-type(2),
- .tabs input:nth-of-type(3):checked ~ .tab-labels label:nth-of-type(3) {
- color: var(--accent); border-color: var(--line); background: var(--bg);
- margin-bottom: -1px; border-bottom: 1px solid var(--bg);
- }
- .tab-panel { display: none; padding: 1rem .2rem 0; }
- .tabs input:nth-of-type(1):checked ~ .tab-panels > .tab-panel:nth-of-type(1),
- .tabs input:nth-of-type(2):checked ~ .tab-panels > .tab-panel:nth-of-type(2),
- .tabs input:nth-of-type(3):checked ~ .tab-panels > .tab-panel:nth-of-type(3) { display: block; }
- .lede { font-size: 1.05rem; }
- ul.tight li { margin: .3rem 0; }
- .legend { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: .4rem; }
- .swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; vertical-align: -1px; margin-right: .35rem; }
- hr.soft { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
-</style>
-</head>
-<body>
-<main>
-
-<h1>Test durations: refreshing the shard map in seconds, not minutes</h1>
-<p class="subtitle">Why <code>.test_durations</code> was costing us a full suite run and a 21,000-line diff at every release — and what we replaced it with.</p>
-<p class="meta">Working notes · 2026-08-18 · shipping in <strong>v0.46.1</strong></p>
-
-<div class="tldr">
-<h2>TL;DR</h2>
-<ul>
- <li><strong><code>make store-test-durations</code> no longer runs the whole test suite.</strong> It collects the tests (~8s), measures <em>only</em> the ones missing from the map, and leaves recorded values alone. A typical release refresh went from <strong>several minutes to a few seconds</strong>, and from a <strong>21,000-line diff to no diff at all</strong>.</li>
- <li><strong>The reason is one measurement.</strong> A duration map can be wrong two ways — stale <em>values</em>, or missing <em>entries</em>. We measured both against the real 8-way split. Stale values across 17 days cost about <span class="good-txt">7%</span> of shard balance. Missing coverage over the same period cost over <span class="bad-txt">50%</span>. They are not remotely the same problem, and only the second one is worth paying for.</li>
- <li><strong>So the refresh is triggered by coverage, not by calendar age.</strong> An age-based rule (&ldquo;skip if newer than a week&rdquo;) measures the wrong variable: a quiet week wastes a full run, and a week that lands a 500-test branch reports &ldquo;fresh, skip&rdquo; while the map is already 50% out.</li>
- <li><strong>Three new things:</strong> the incremental refresh (default), <code>make store-test-durations-force</code> (<code>stdf</code>) for a full re-measure, and a stabilisation pass that keeps any value which has not meaningfully moved — cutting the file&rsquo;s diff by ~95%. Plus a fourth we needed anyway: the refresh now <strong>prunes dead entries</strong>, making the existing <code>test_test_durations_paths</code> gate self-healing.</li>
- <li><strong>Nothing about CI changed.</strong> Same map, same eight shards, same <code>gha-tests</code>. Only how the map gets maintained.</li>
-</ul>
-</div>
-
-<h2>1. What the map actually does</h2>
-
-<p class="lede"><code>.test_durations</code> is a committed JSON map of <code>pytest node id &rarr; seconds</code> — currently 10,633 entries covering about 2,740 seconds of test time. Its only consumer is <a href="https://github.com/jerry-git/pytest-split">pytest-split</a>, which uses it to divide the suite across eight free GitHub runners instead of one large paid machine.</p>
-
-<p>Two workflows do this: <code>tests-check.yml</code> on PRs to <code>dev</code> (floor Python only) and <code>tests-full-check.yml</code> on PRs to <code>main</code> (four versions &times; eight shards = 32 jobs). Both call the same target with <code>SPLITS=8 GROUP=&lt;n&gt;</code>. Locally those variables are unset, the flags expand to nothing, and the map is ignored entirely.</p>
-
-<p>The detail that makes the rest of this document make sense: pytest-split&rsquo;s default algorithm is <code>duration_based_chunks</code>, and it is <strong>contiguous</strong>. It walks the tests in collection order and cuts whenever accumulated duration crosses one eighth of the total. Each shard is a consecutive slice of the collection — not a cherry-picked set. So a wrong duration does not just mis-size one test; it moves every cut after it.</p>
-
-<div class="callout">
-<p>Within a shard, <code>-n auto --dist=worksteal</code> rebalances across the runner&rsquo;s own cores. So intra-shard distribution is self-correcting and the map only ever buys us <em>inter</em>-shard balance.</p>
-</div>
-
-<h2>2. The measurement that changed the design</h2>
-
-<p>We simulated the real eight-way split over the actual collection order (10,568 node ids), using the freshest durations as ground truth, and compared what a 17-day-old map does against a current one.</p>
-
-<figure>
-<svg viewBox="0 0 900 350" role="img" aria-label="Bar chart of per-shard test time under a fresh map versus a 17-day-old map. The fresh map produces eight shards all near 340 seconds. The stale map produces one shard of 560 seconds and another of 262 seconds.">
- <line x1="70" y1="280" x2="880" y2="280" stroke="var(--line)" stroke-width="1"/>
- <line x1="70" y1="20" x2="70" y2="280" stroke="var(--line)" stroke-width="1"/>
-
- <g font-size="11" fill="var(--muted)" font-family="ui-sans-serif, system-ui, sans-serif">
- <line x1="70" y1="280" x2="880" y2="280" stroke="var(--grid)"/>
- <text x="62" y="284" text-anchor="end">0</text>
- <line x1="70" y1="193.3" x2="880" y2="193.3" stroke="var(--grid)" stroke-dasharray="2 3"/>
- <text x="62" y="197" text-anchor="end">200s</text>
- <line x1="70" y1="106.7" x2="880" y2="106.7" stroke="var(--grid)" stroke-dasharray="2 3"/>
- <text x="62" y="110" text-anchor="end">400s</text>
- <line x1="70" y1="20" x2="880" y2="20" stroke="var(--grid)" stroke-dasharray="2 3"/>
- <text x="62" y="24" text-anchor="end">600s</text>
- </g>
-
- <line x1="70" y1="132.9" x2="880" y2="132.9" stroke="var(--accent)" stroke-width="1.5" stroke-dasharray="6 4"/>
- <text x="876" y="128" text-anchor="end" font-size="11" fill="var(--accent)" font-family="ui-sans-serif, system-ui, sans-serif">perfect balance — 339.5s</text>
-
- <g>
- <rect x="88" y="131.5" width="34" height="148.5" fill="var(--good)" opacity="0.85" rx="2"/>
- <rect x="189" y="132.8" width="34" height="147.2" fill="var(--good)" opacity="0.85" rx="2"/>
- <rect x="290" y="132.2" width="34" height="147.8" fill="var(--good)" opacity="0.85" rx="2"/>
- <rect x="391" y="132.7" width="34" height="147.3" fill="var(--good)" opacity="0.85" rx="2"/>
- <rect x="492" y="132.4" width="34" height="147.6" fill="var(--good)" opacity="0.85" rx="2"/>
- <rect x="593" y="132.5" width="34" height="147.5" fill="var(--good)" opacity="0.85" rx="2"/>
- <rect x="694" y="132.8" width="34" height="147.2" fill="var(--good)" opacity="0.85" rx="2"/>
- <rect x="795" y="136.2" width="34" height="143.8" fill="var(--good)" opacity="0.85" rx="2"/>
- </g>
- <g>
- <rect x="124" y="37.2" width="34" height="242.8" fill="var(--bad)" opacity="0.85" rx="2"/>
- <rect x="225" y="136.5" width="34" height="143.5" fill="var(--bad)" opacity="0.85" rx="2"/>
- <rect x="326" y="148.1" width="34" height="131.9" fill="var(--bad)" opacity="0.85" rx="2"/>
- <rect x="427" y="139.9" width="34" height="140.1" fill="var(--bad)" opacity="0.85" rx="2"/>
- <rect x="528" y="143.8" width="34" height="136.2" fill="var(--bad)" opacity="0.85" rx="2"/>
- <rect x="629" y="149.6" width="34" height="130.4" fill="var(--bad)" opacity="0.85" rx="2"/>
- <rect x="730" y="166.6" width="34" height="113.4" fill="var(--bad)" opacity="0.85" rx="2"/>
- <rect x="831" y="141.4" width="34" height="138.6" fill="var(--bad)" opacity="0.85" rx="2"/>
- </g>
-
- <text x="141" y="30" text-anchor="middle" font-size="12" font-weight="700" fill="var(--bad)" font-family="ui-sans-serif, system-ui, sans-serif">560s</text>
- <text x="747" y="159" text-anchor="middle" font-size="12" font-weight="700" fill="var(--bad)" font-family="ui-sans-serif, system-ui, sans-serif">262s</text>
-
- <g font-size="11" fill="var(--muted)" text-anchor="middle" font-family="ui-sans-serif, system-ui, sans-serif">
- <text x="123" y="298">shard 1</text>
- <text x="224" y="298">2</text>
- <text x="325" y="298">3</text>
- <text x="426" y="298">4</text>
- <text x="527" y="298">5</text>
- <text x="628" y="298">6</text>
- <text x="729" y="298">7</text>
- <text x="830" y="298">8</text>
- </g>
-
- <g font-size="12" font-family="ui-sans-serif, system-ui, sans-serif">
- <rect x="70" y="322" width="12" height="12" fill="var(--good)" opacity="0.85" rx="2"/>
- <text x="88" y="332" fill="var(--ink)">fresh map — every shard within 1% of ideal</text>
- <rect x="420" y="322" width="12" height="12" fill="var(--bad)" opacity="0.85" rx="2"/>
- <text x="438" y="332" fill="var(--ink)">17-day-old map — shard 1 runs 65% long, everyone waits for it</text>
- </g>
-</svg>
-<figcaption>Real per-shard test time, simulated over the actual collection order. CI wall clock is set by the <em>slowest</em> shard, so the tall red bar is the whole cost — the seven short bars are runners sitting idle.</figcaption>
-</figure>
-
-<p>That is the symptom. The interesting part is the cause, which we isolated by decomposing the stale map into its two independent failure modes:</p>
-
-<div class="tbl-wrap">
-<table>
-<thead><tr><th>Scenario</th><th class="num">Slowest shard</th><th class="num">Overshoot</th></tr></thead>
-<tbody>
-<tr><td>Fresh map, exact values</td><td class="num">342.6s</td><td class="num good-txt">0.9%</td></tr>
-<tr><td>17-day-old map, as-is</td><td class="num">560.3s</td><td class="num bad-txt">65.0%</td></tr>
-<tr><td>17-day-old <em>values</em>, but coverage complete</td><td class="num">365.2s</td><td class="num good-txt">7.6%</td></tr>
-<tr><td>Current <em>values</em>, but the same entries missing</td><td class="num">524.6s</td><td class="num bad-txt">54.5%</td></tr>
-</tbody>
-</table>
-</div>
-
-<div class="callout key">
-<p><strong>Stale values are nearly free. Missing coverage is ruinous.</strong> Essentially all the damage from an old map comes from tests it has never heard of — not from the tests it has, whose timings drifted.</p>
-</div>
-
-<p>The staleness curve is also sharply non-linear, which is why &ldquo;refresh every release&rdquo; felt like it was working right up until it wasn&rsquo;t:</p>
-
-<div class="tbl-wrap">
-<table>
-<thead><tr><th>Map age</th><th class="num">Entries missing</th><th class="num">Overshoot</th></tr></thead>
-<tbody>
-<tr><td>1 release (1 day)</td><td class="num">36</td><td class="num good-txt">2.7%</td></tr>
-<tr><td>4 releases (17 days)</td><td class="num">1,208</td><td class="num bad-txt">65.0%</td></tr>
-<tr><td>6 releases (30 days)</td><td class="num">2,488</td><td class="num bad-txt">50.2%</td></tr>
-</tbody>
-</table>
-</div>
-
-<h2>3. Why the mean is the villain</h2>
-
-<p>When pytest-split meets a node id it has never seen, it imputes the <strong>mean</strong> of the durations it does know. Our suite&rsquo;s distribution makes that a catastrophic default:</p>
-
-<figure>
-<svg viewBox="0 0 900 190" role="img" aria-label="Logarithmic number line of test durations. The median sits at 0.0022 seconds while the mean sits at 0.248 seconds, about a hundred times higher, because a small number of very slow tests drag the mean up.">
- <g font-size="11" fill="var(--muted)" font-family="ui-sans-serif, system-ui, sans-serif" text-anchor="middle">
- <line x1="80" y1="110" x2="872" y2="110" stroke="var(--line)" stroke-width="1.5"/>
- <line x1="80" y1="105" x2="80" y2="115" stroke="var(--line)"/><text x="80" y="132">0.1ms</text>
- <line x1="212" y1="105" x2="212" y2="115" stroke="var(--line)"/><text x="212" y="132">1ms</text>
- <line x1="343" y1="105" x2="343" y2="115" stroke="var(--line)"/><text x="343" y="132">10ms</text>
- <line x1="475" y1="105" x2="475" y2="115" stroke="var(--line)"/><text x="475" y="132">100ms</text>
- <line x1="607" y1="105" x2="607" y2="115" stroke="var(--line)"/><text x="607" y="132">1s</text>
- <line x1="738" y1="105" x2="738" y2="115" stroke="var(--line)"/><text x="738" y="132">10s</text>
- <line x1="870" y1="105" x2="870" y2="115" stroke="var(--line)"/><text x="870" y="132">100s</text>
- </g>
-
- <rect x="198" y="98" width="278" height="24" fill="var(--accent)" opacity="0.14" rx="3"/>
- <text x="337" y="152" text-anchor="middle" font-size="11" fill="var(--muted)" font-family="ui-sans-serif, system-ui, sans-serif">middle 50% of all tests (p25&ndash;p75)</text>
-
- <g font-family="ui-sans-serif, system-ui, sans-serif">
- <circle cx="257" cy="110" r="5.5" fill="var(--good)"/>
- <line x1="257" y1="104" x2="257" y2="72" stroke="var(--good)" stroke-width="1.5"/>
- <text x="257" y="64" text-anchor="middle" font-size="12" font-weight="700" fill="var(--good)">median 0.0022s</text>
- <text x="257" y="48" text-anchor="middle" font-size="11" fill="var(--muted)">what a typical new test really costs</text>
-
- <circle cx="527" cy="110" r="5.5" fill="var(--bad)"/>
- <line x1="527" y1="104" x2="527" y2="72" stroke="var(--bad)" stroke-width="1.5"/>
- <text x="527" y="64" text-anchor="middle" font-size="12" font-weight="700" fill="var(--bad)">mean 0.248s</text>
- <text x="527" y="48" text-anchor="middle" font-size="11" fill="var(--muted)">what pytest-split charges an unknown test</text>
- </g>
-
- <path d="M 268 92 Q 392 74 516 92" stroke="var(--muted)" stroke-width="1.2" fill="none" stroke-dasharray="3 3"/>
- <text x="392" y="176" text-anchor="middle" font-size="12" font-weight="600" fill="var(--ink)" font-family="ui-sans-serif, system-ui, sans-serif">&asymp; 100&times; over-charged</text>
-</svg>
-<figcaption>The distribution is dominated by a handful of very slow tests, so the mean sits roughly a hundred times above the typical test. Every unknown test is billed at the red marker.</figcaption>
-</figure>
-
-<p>A block of newly added fast tests is therefore charged about a hundred times its real cost — and because the chunks are contiguous, that phantom weight shoves every boundary after it. Genuinely slow new tests break it from the other direction: they are billed at 0.248s while really costing seconds, and land somewhere the balancer thinks is cheap.</p>
-
-<details>
-<summary>We tried to dodge the measurement entirely. It doesn&rsquo;t work.</summary>
-<p>If the fallback value is the problem, the obvious fix is to top up unknown entries with something saner than the mean before pytest-split sees them — no test run required. We tried the median, the 25th percentile, and a value between. All three stayed above <strong>56% overshoot</strong> on the 17-day map, against 65% for doing nothing.</p>
-<p>The reason is that the missing tests carried about <strong>401 seconds</strong> of real time — 15% of the whole suite — spread unevenly across the collection. No single fill value can put that time in the right <em>places</em>. Coverage genuinely has to be measured. That negative result is what forced the incremental design rather than a pure post-processing trick.</p>
-</details>
-
-<h2>4. What we shipped</h2>
-
-<div class="tabs">
- <input type="radio" name="shipped" id="ship1" checked>
- <input type="radio" name="shipped" id="ship2">
- <input type="radio" name="shipped" id="ship3">
- <div class="tab-labels">
- <label for="ship1">Incremental refresh</label>
- <label for="ship2">Stabilisation</label>
- <label for="ship3">Pruning</label>
- </div>
- <div class="tab-panels">
- <div class="tab-panel">
- <p><strong>The default target now measures only what is missing.</strong> It collects the suite, diffs the collected node ids against the map, and runs pytest over the difference. When nothing is missing it measures nothing at all and exits after the collection.</p>
- <p>This is legitimate rather than a partial overwrite because <code>--store-durations</code> <strong>merges</strong> into the existing file — only <code>--clean-durations</code>, which we do not use, replaces wholesale. That single fact in pytest-split&rsquo;s <code>plugin.py</code> is what makes the whole approach possible.</p>
- <p>Guard rail: if more than 40% of the suite is missing, it re-measures everything instead. At that point the incremental path buys little and the node-id argument vector gets unwieldy.</p>
- </div>
- <div class="tab-panel">
- <p><strong>Every duration is rounded to 4 decimals, and a recorded value is kept whenever the new measurement is within <code>max(30% &times; stored, 0.05s)</code> of it.</strong></p>
- <p>Both terms earn their place. The relative term spares slow tests, where a fixed floor would be far too tight — a 1s swing on a 10s test is noise. The absolute floor spares the thousands of sub-millisecond tests, whose relative jitter between runs is enormous and meaningless.</p>
- <p>Rounding happens on <em>both</em> sides of the comparison, and the rounded stored value is what gets kept. Keeping the raw spelling instead would be self-defeating: an in-tolerance entry would preserve its original long float forever and the file would never converge.</p>
- </div>
- <div class="tab-panel">
- <p><strong>Entries whose test <em>file</em> no longer exists are dropped.</strong> We needed this because <code>--store-durations</code> only ever merges — before this change, nothing could clear a dead entry, so the existing <code>test_test_durations_paths</code> gate could fail with no command able to fix it. Its error message even said &ldquo;regenerate&rdquo;, which would not have worked.</p>
- <p>The criterion is deliberately the filesystem and never the collected set. A marker-filtered collection legitimately hides a large slice of the suite (most of <code>tests/e2e</code>), so pruning against it would delete live entries. A vanished file, by contrast, cannot come back under any marker.</p>
- </div>
- </div>
-</div>
-
-<h2>5. The refresh pipeline</h2>
-
-<figure>
-<svg viewBox="0 0 900 300" role="img" aria-label="Flow diagram of the refresh. Collect the suite, then branch: if nothing is missing, skip straight to post-processing and write a zero-line diff; otherwise measure the missing tests and let pytest-split merge them, then post-process.">
- <defs>
- <marker id="ar" markerWidth="9" markerHeight="9" refX="7.5" refY="3" orient="auto">
- <path d="M0,0 L0,6 L8,3 z" fill="var(--muted)"/>
- </marker>
- </defs>
- <g font-family="ui-sans-serif, system-ui, sans-serif" font-size="12.5">
-
- <rect x="20" y="118" width="130" height="52" rx="7" fill="var(--panel)" stroke="var(--line)"/>
- <text x="85" y="139" text-anchor="middle" fill="var(--ink)" font-weight="600">collect</text>
- <text x="85" y="156" text-anchor="middle" fill="var(--muted)" font-size="11">~8 seconds</text>
-
- <path d="M150 144 L 186 144" stroke="var(--muted)" marker-end="url(#ar)"/>
-
- <polygon points="270,110 340,144 270,178 200,144" fill="var(--accent-soft)" stroke="var(--accent)"/>
- <text x="270" y="140" text-anchor="middle" fill="var(--ink)" font-weight="600" font-size="11.5">anything</text>
- <text x="270" y="154" text-anchor="middle" fill="var(--ink)" font-weight="600" font-size="11.5">missing?</text>
-
- <path d="M270 110 L 270 66 L 606 66" stroke="var(--muted)" marker-end="url(#ar)" fill="none"/>
- <text x="300" y="58" fill="var(--good)" font-size="11.5" font-weight="600">no &mdash; measure nothing</text>
-
- <path d="M340 144 L 386 144" stroke="var(--muted)" marker-end="url(#ar)"/>
- <text x="363" y="136" text-anchor="middle" fill="var(--warn)" font-size="11.5" font-weight="600">yes</text>
-
- <rect x="390" y="118" width="150" height="52" rx="7" fill="var(--warn-soft)" stroke="var(--line)"/>
- <text x="465" y="139" text-anchor="middle" fill="var(--ink)" font-weight="600">measure the gap</text>
- <text x="465" y="156" text-anchor="middle" fill="var(--muted)" font-size="11">pytest merges results in</text>
-
- <path d="M540 144 L 600 144 L 600 108" stroke="var(--muted)" marker-end="url(#ar)" fill="none"/>
-
- <rect x="606" y="44" width="272" height="130" rx="7" fill="var(--panel)" stroke="var(--line)" stroke-dasharray="4 3"/>
- <text x="742" y="64" text-anchor="middle" fill="var(--muted)" font-size="11" font-weight="600">POST-PROCESSING</text>
- <rect x="622" y="74" width="240" height="30" rx="5" fill="var(--bg)" stroke="var(--line)"/>
- <text x="742" y="93" text-anchor="middle" fill="var(--ink)">prune entries whose file is gone</text>
- <rect x="622" y="116" width="240" height="30" rx="5" fill="var(--bg)" stroke="var(--line)"/>
- <text x="742" y="135" text-anchor="middle" fill="var(--ink)">keep values that barely moved</text>
- <path d="M742 104 L 742 112" stroke="var(--muted)" marker-end="url(#ar)"/>
-
- <path d="M742 174 L 742 208" stroke="var(--muted)" marker-end="url(#ar)"/>
- <rect x="620" y="212" width="244" height="52" rx="7" fill="var(--good-soft)" stroke="var(--good)"/>
- <text x="742" y="233" text-anchor="middle" fill="var(--ink)" font-weight="600">write .test_durations</text>
- <text x="742" y="250" text-anchor="middle" fill="var(--muted)" font-size="11">zero-line diff when nothing was missing</text>
-
- </g>
-</svg>
-<figcaption>The common case is the top path: collect, find nothing missing, prune and stabilise, write a file identical to the one already committed.</figcaption>
-</figure>
-
-<h2>6. What you actually run</h2>
-
-<pre><code>make store-test-durations # alias: std — incremental, the one you want
-make store-test-durations-force # alias: stdf — re-measure everything</code></pre>
-
-<div class="tbl-wrap">
-<table>
-<thead><tr><th>Situation</th><th>Command</th><th class="num">Roughly costs</th></tr></thead>
-<tbody>
-<tr><td>Release time, nothing much added</td><td><code>make std</code></td><td class="num">~8s, no diff</td></tr>
-<tr><td>After a branch that added tests</td><td><code>make std</code></td><td class="num">seconds</td></tr>
-<tr><td>Recorded values no longer comparable<br><span style="color:var(--muted);font-size:.9em">(machine changed, suite reshaped)</span></td><td><code>make stdf</code></td><td class="num">full suite</td></tr>
-</tbody>
-</table>
-</div>
-
-<div class="callout good">
-<p><strong>Run it more often than you used to.</strong> The incremental refresh is nearly free when nothing is missing, so there is no reason to save it for release day. Running it right after a branch that adds a lot of tests is now the cheap, correct move — and that is exactly the moment the map degrades.</p>
-</div>
-
-<p>Both targets regenerate the CI-profile test-model fixtures first, then hand off to <code>pipelex-dev store-test-durations</code>. While wiring that up we also hoisted the CI marker expression into a single <code>GHA_PYTEST_MARKERS</code> variable shared with <code>gha-tests</code>; it had been duplicated, which meant the map could in principle have been measured against a different selection than CI runs.</p>
-
-<h2>7. Stabilisation, and why the diff mattered</h2>
-
-<p>Re-measuring the suite rewrites essentially every line, because timings never repeat exactly. The old full refresh produced a diff of over <strong>21,000 changed lines</strong> — and that is not merely noisy. On release PR #1117 it helped push the branch past the size limits of two automated reviewers: Greptile declined on file count, Cubic on reviewable changed lines, most of them this file. <em>Neither posted a single comment.</em> The near-silence on that PR was evidence of a diff too large to read, not of clean code.</p>
-
-<p>Here is what the options cost, measured the same way as everything else:</p>
-
-<div class="tbl-wrap">
-<table>
-<thead><tr><th>Policy</th><th class="num">Lines changed</th><th class="num">Overshoot</th></tr></thead>
-<tbody>
-<tr><td>Raw values (what we had)</td><td class="num bad-txt">10,532</td><td class="num">0.9%</td></tr>
-<tr><td>Round to 0.05</td><td class="num">2,204</td><td class="num">1.0%</td></tr>
-<tr><td>Round to 0.1</td><td class="num">1,711</td><td class="num">0.9%</td></tr>
-<tr><td>Round to 0.25</td><td class="num">1,218</td><td class="num warn-txt">4.3%</td></tr>
-<tr><td><strong>Keep unless moved &gt;30% or &gt;0.05s</strong></td><td class="num good-txt">470</td><td class="num">1.7%</td></tr>
-</tbody>
-</table>
-</div>
-
-<p>Plain rounding plateaus around 1,700 lines — the residue is genuinely noisy slow tests whose timing moves more than any sane grid. The stateful policy gets to 470 for eight tenths of a point of balance. And in practice it does better than that, because with complete coverage the incremental refresh re-measures nothing at all, so the steady-state diff is <strong>zero lines</strong>.</p>
-
-<div class="callout warn">
-<p><strong>One-time cost, already paid in this branch.</strong> The first run normalised all 10,633 entries onto the rounded grid — a single large diff, visible in the staged changes, which also shrank the file from 1.87 MB to 1.73 MB. Every refresh after it is small. Don&rsquo;t be alarmed by the diff size on this particular commit; that is the last one.</p>
-</div>
-
-<h2>8. How we verified it</h2>
-
-<p>Every claim above is measured rather than reasoned about. The behavioural ones were checked end to end:</p>
-
-<ul class="tight">
- <li><strong>Steady state really is a zero-line diff.</strong> Two consecutive runs on a complete map: <code>0 added, 0 rewritten, 0 pruned</code>, and <code>git diff</code> empty.</li>
- <li><strong>Incremental cost is real.</strong> The run that measured our own 21 new tests took <strong>15 seconds</strong> end to end, against several minutes for the full suite.</li>
- <li><strong>Self-healing works.</strong> We injected a dead entry, watched <code>test_test_durations_paths</code> go red, ran the refresh, watched it prune the entry by name and the gate go green.</li>
- <li><strong>The force path was exercised</strong> on a narrow marker selection, confirming it runs the whole selection rather than a node-id list.</li>
- <li><strong>The new tests were mutation-tested.</strong> Five mutations of the implementation — dropping the relative term, dropping the absolute floor, removing rounding, a naive node-id split, disabling pruning — each reddened the intended test. One test turned out too weak to catch the missing-rounding mutation and was replaced with a grid invariant that does.</li>
-</ul>
-
-<p>Gates: <code>make agent-check</code> fully green (pyright, mypy over 2,564 files, ledgers, keyword-only, hub-layering, drift), full <code>make agent-test</code> passed, <code>make docs-check</code> builds with only the pre-existing anchor INFO in <code>orchestrator-plugins.md</code>.</p>
-
-<h2>9. Things worth knowing</h2>
-
-<details>
-<summary>Incremental measurements are taken under different conditions</summary>
-<p>Tests measured incrementally run in a smaller batch, under less parallel contention, than they would in a full-suite run. So their recorded values are not measured under conditions identical to the rest of the map.</p>
-<p>Given how little precision is worth — stale values across weeks cost about 7% — this is a good trade for turning a multi-minute step into a multi-second one. <code>make stdf</code> is the remedy if the accumulated inconsistency ever looks like it matters. This is written down in the docs page too, not just here.</p>
-</details>
-
-<details>
-<summary>Stabilisation introduces a small one-directional bias</summary>
-<p>Keeping a value that moved slightly means the stored number lags reality. Across the whole map that showed up as a total of 2,654s against a true 2,719s — about 2.4% low. It is bounded per test by the tolerance and self-corrects whenever a test crosses it, so it does not compound. Worth knowing it exists.</p>
-</details>
-
-<details>
-<summary>Dead node ids still accumulate; dead file paths do not</summary>
-<p>Pruning is on the file path. If a test is renamed but its file survives, the old node id stays in the map. That is deliberate and benign — pytest-split simply imputes any id it does not recognise, and pinning node ids would need a full unfiltered collection plus a tolerance policy for legitimate parametrization drift. The cost is a little file size, not balance.</p>
-</details>
-
-<details>
-<summary>How much is all of this actually worth in CI wall clock?</summary>
-<p>Less than you might think, and that is an argument <em>for</em> the design rather than against it. The gap between a perfectly fresh map and a one-release-stale one is about 6 seconds of shard time — and since each shard runs <code>-n auto</code> on a 4-vCPU runner, we estimate roughly 1.5s of actual wall clock.</p>
-<p>At release cadence the old full-suite regeneration was buying almost nothing. It is the multi-week gaps that bite, hard and non-linearly. So the right move was never &ldquo;refresh more thoroughly&rdquo; — it was to make the refresh cheap enough and correctly-triggered enough that the gap never opens.</p>
-</details>
-
-<h2>10. Where the code lives</h2>
-
-<div class="tbl-wrap">
-<table>
-<thead><tr><th>File</th><th>What it holds</th></tr></thead>
-<tbody>
-<tr><td><code>pipelex/cli/dev_cli/commands/duration_map.py</code></td><td><strong>New.</strong> Pure logic — load/write, coverage diff, pruning, stabilisation, and the policy constants with their rationale.</td></tr>
-<tr><td><code>pipelex/cli/dev_cli/commands/store_test_durations_cmd.py</code></td><td><strong>New.</strong> Orchestration — collect, decide, shell out to pytest, post-process, report.</td></tr>
-<tr><td><code>tests/unit/pipelex/cli/dev/test_duration_map.py</code></td><td><strong>New.</strong> Unit tests for the pure logic, mutation-checked.</td></tr>
-<tr><td><code>docs/contribute/test-duration-map.md</code></td><td><strong>New.</strong> The contributor-facing page, in the MkDocs nav.</td></tr>
-<tr><td><code>Makefile</code></td><td>Both targets, plus the hoisted <code>GHA_PYTEST_MARKERS</code>.</td></tr>
-<tr><td><code>tests/unit/repo/test_test_durations_paths.py</code></td><td>Prose and remediation message updated — the gate is self-healing now.</td></tr>
-<tr><td><code>.claude/skills/release/SKILL.md</code></td><td>Step 8b rewritten: it is no longer a full suite run, and a no-op is the expected outcome.</td></tr>
-<tr><td><code>.github/workflows/tests-check.yml</code></td><td>Comment corrected — it advised regenerating &ldquo;every few months&rdquo;, which is precisely the cadence that breaks the map.</td></tr>
-</tbody>
-</table>
-</div>
-
-<hr class="soft">
-<p style="color:var(--muted);font-size:.9rem;">Status: implemented and gated green, landing in <strong>v0.46.1</strong> via a PR stacked on <code>release/v0.46.1</code>. The changelog entry is part of that release&rsquo;s notes.</p>
-
-</main>
-</body>
-</html>
diff --git a/wip/ts-emission-gate-coverage-deferrals.md b/wip/ts-emission-gate-coverage-deferrals.md
deleted file mode 100644
index ad8bc7b73..000000000
--- a/wip/ts-emission-gate-coverage-deferrals.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# Deferred: two coverage gaps in the TypeScript emission gates
-
-Deferred from the pre-landing review of PR [#1184](https://github.com/Pipelex/pipelex/pull/1184) (2026-09-02). Both are defense-in-depth rather than defects: the gate that decides whether a branch merges runs, and runs correctly.
-
-## The release gate to `main` does not run the emission gates
-
-`.github/workflows/tests-check.yml` grew the `Tests (ts emission gates)` job, and `Tests (all)` requires it. `.github/workflows/tests-full-check.yml` — the gate on PRs targeting `main`, i.e. the release PRs — has only `matrix-test-full` and its aggregator, so the emission gates do not run there.
-
-Left alone because a `dev -> main` release PR carries only commits that already passed the gate on their own PR into `dev`, so the second run would re-prove what the first proved. It becomes worth adding the moment anything can reach `main` without having passed through `tests-check.yml`.
-
-## `AGENTS.md` does not carry the `make test-ts-gates` warning
-
-The warning was added to `pipelex/kit/agent_rules/commands.md`, which `index.toml` merges into `CLAUDE.md`. `AGENTS.md` is built from a different set, headed by `codex_commands.md`, which the change did not touch — `pipelex-dev check-rules` passes, so this is the sets working as declared, not drift.
-
-The gap that leaves: an agent working from `AGENTS.md` and editing `pipelex/codegen/emitters/` is told to verify with `make agent-test`, and is not told that `make agent-test` does not read the emitted TypeScript at all. That is the environment class the three original defects came from.
-
-Left alone because `codex_commands.md` is deliberately the slimmer variant — it already omits the hang-debugging section and the with-prints section — and because a cloud sandbox may have no npm reach, which makes the provisioning half of the instruction useless there. The right shape is probably the warning without the provisioning command: *"`make agent-test` does not cover the TypeScript emission; a change under `pipelex/codegen/emitters/` is verified by the `Tests (ts emission gates)` CI job, not by the suite you can run here."* Worth writing the next time that file is edited for another reason.
diff --git a/wip/ts-emission-gate-pin-enforcement.md b/wip/ts-emission-gate-pin-enforcement.md
deleted file mode 100644
index a62269786..000000000
--- a/wip/ts-emission-gate-pin-enforcement.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# Deferred: should the TypeScript emission gate enforce its own prettier pin?
-
-Deferred from PR [#1184](https://github.com/Pipelex/pipelex/pull/1184) review round 1 (2026-09-02). Raised by cubic, running locally against `origin/dev` — it left no PR thread, so this note is its only record.
-
-## The issue as reported
-
-`Makefile:35` declares the toolchain pins with `?=`:
-
-```make
-TS_TOOLCHAIN_PRETTIER_VERSION ?= 3.9.6
-TS_TOOLCHAIN_ZOD_VERSION ?= 4.5.4
-```
-
-Make treats an environment variable as already-defined, so `TS_TOOLCHAIN_PRETTIER_VERSION=3.0.0 make test-ts-gates` installs and gates against a formatter other than the one the emitter is calibrated to, while the mandatory gate still reports green.
-
-## The sharper version, found while verifying it
-
-The `?=` is not the widest door. `resolve_prettier()` in `tests/helpers/ts_toolchain.py` takes whatever `prettier` is first on `PATH` and never compares it to the pin. `make test-ts-gates` prepends the provisioned binary, so the target is safe — but running the codegen suite directly with `PIPELEX_REQUIRE_TS_GATES=1` and an ambient prettier gates the emission against an arbitrary version. The dangerous direction is a false pass: a prettier that accepts bytes the pinned one would rewrite.
-
-## Why it deferred
-
-- `?=` is this repo's own idiom for an overridable default (`PYTHON_VERSION ?= 3.13`, `HEARTBEAT_INTERVAL ?= 20`, `LINT_PYTHON_VERSION ?=`), and here it is the deliberate hook for probing a newer prettier before moving the pin — which is exactly the workflow the pin's documentation asks for.
-- CI sets neither variable and always goes through `make test-ts-gates`, so the gate that decides whether a branch merges always runs the pin. The exposure is a developer's local run, where a false pass is caught by CI on push.
-- Closing it means a third environment variable carrying the pin from the Makefile into Python plus a version-comparison branch, to guard a case the layering already handles. That is a guard on a state that cannot occur where it would matter.
-
-## The shape of the fix, if it is ever wanted
-
-Keep the Makefile as the single source of the pin and pass it down — `PIPELEX_PRETTIER_VERSION_PIN=$(TS_TOOLCHAIN_PRETTIER_VERSION)` beside the two variables the target already exports — then have `resolve_prettier()` compare `prettier --version` against it and refuse **only in required mode**. Duplicating the version into Python instead would create a second source of truth and is the wrong trade.
-
-Worth revisiting if the gate ever produces a confusing result that turns out to be a version mismatch, or if a second consumer starts running these gates outside the make target.
-
-## The same hole on the zod side
-
-Raised in the pre-landing review of the same PR (2026-09-02). Everything above reasons about prettier, but `resolve_zod_package()` has the identical shape: with `PIPELEX_ZOD_PACKAGE` unset it falls back to `npm root -g` plus `zod` and never compares what it finds against `TS_TOOLCHAIN_ZOD_VERSION`. The deferral reasoning carries over unchanged — CI always goes through `make test-ts-gates`, which names the provisioned package explicitly — and the exposure is milder still: the round trip *executes* the schema, so a zod far enough from the pin to matter fails loudly rather than passing on bytes the pinned one would reject. If the fix above is ever taken, it should carry both pins down, not just prettier's.
diff --git a/wip/ts-zod-wire-null/plan.md b/wip/ts-zod-wire-null/plan.md
deleted file mode 100644
index 82b0e54b9..000000000
--- a/wip/ts-zod-wire-null/plan.md
+++ /dev/null
@@ -1,182 +0,0 @@
----
-status: landed
-item: L-260820-ee327d
----
-
-# ts-zod projection: accept the wire's explicit nulls
-
-Ledger item: L-260820-ee327d. Branch: `fix/Zod-codegen` (worktree `_zod`).
-
-## The problem
-
-The ts-zod emitter projects a non-required concept field as `.optional()`, which in zod means `T | undefined` and rejects `null`. The runtime serializes an unset optional field as an explicit `null`: the generated runtime class annotates every non-required field `X | None` (`pipelex/core/concepts/structure_generation/generator.py`, `_generate_field_line`), and the transport dump keeps nulls deliberately — `dump_for_transport()` is `model_dump(serialize_as_any=True)` with no `exclude_none` (`pipelex/core/memory/working_memory.py`), and the composer even spells `exclude_none=False` at every dump site (`pipelex/pipe_operators/compose/structured_content_composer.py`). So the generated `Schema.parse` rejects the very payload the runtime produces — live evidence in the ledger item: a successful hosted `PipeImgGen` run fails `ImageSchema.parse` with one issue per nulled optional.
-
-## Decision: fix the projection, not the wire
-
-Emit a null-tolerant zod modifier for non-required fields. The alternative — dumping the transport payload with `exclude_none=True` so absent means absent — is rejected:
-
-- The runtime keeps nulls **on purpose**: `exclude_none=False` is written out explicitly at the composer's dump sites. The transport dict also feeds the Temporal data converter and the hydrator; changing its shape is a wire redesign with its own review, not a codegen bug fix.
-- The Python projections already accept both spellings — `python-pydantic` and `python-structures` both render non-required fields as `X | None = Field(default=None)`. ts-zod is the one projection that disagrees with the runtime; this is a parity fix.
-- The wire genuinely carries both spellings of "unset" (a key omitted by a partial payload versus a key the runtime nulled). A projection should describe the wire honestly, and `.nullish()` is exactly that description. No `.transform()` to fold `null` into `undefined`: the binder uses one schema for both `parse` and `serialize`, and a transform would make them asymmetric.
-
-Consumer cost: parsed values are `T | null | undefined` instead of `T | undefined`; `??` covers both.
-
-## Phase 1 — emitter change
-
-All in `pipelex/codegen/emitters/ts_zod.py`:
-
-- `_render_field`: non-required without default → `.nullish()` (today `.optional()`); non-required **with** default → `.nullable().default(...)` (today `.default(...)` alone, which rejects null even though the runtime type is `X | None = Field(default=…)` and a producer can set it to `None` explicitly). The blueprint validator rejects `required = true` beside a default (E3), so every defaulted field is non-required — the `.default(...)` branch always needs `.nullable()`.
-- `_render_type_field` (the explicit-type path for recursive concepts): widen every non-required field's type with `| null`; keep the `?` marker only for the no-default case, as today. The declared type must match the schema's inferred output (`.nullish()` → `field?: T | null`; `.nullable().default(…)` → `field: T | null`) or the `z.ZodType<Name>` annotation stops typechecking.
-- Prettier-width modeling: `.nullish()` is shorter than `.optional()` — no risk there — but `.nullable().default(...)` adds width to a branch `_break_zod_expr` only models for `z.enum`. Extend the crate fixtures (Phase 2) so the width guard exercises the new form; if `test_emitted_ts_lines_fit_the_print_width` or the prettier-clean test reds, extend `_break_zod_expr` to model prettier's member-chain break for the overflowing shape rather than loosening the guard.
-
-`.nullish()` and `.nullable()` exist in both zod 3 and zod 4, so the emitted `import { z } from "zod"` contract is unchanged.
-
-## Phase 2 — tests
-
-- Update `tests/unit/pipelex/codegen/test_ts_zod_emitter.py`: the `.optional()` assertions become `.nullish()`; the defaulted assertions (`status`, `starts_on`, `recorded_at`) gain `.nullable()`. Add explicit coverage for both modifier branches and for the recursive-concept explicit-type path carrying `| null`.
-- Make sure the `every_type_kind_crate` fixture carries a non-required defaulted field, so the always-on width/whitespace guards and the local prettier-clean test exercise `.nullable().default(...)`.
-- New module `tests/unit/pipelex/codegen/test_ts_zod_wire_agreement.py` — the round-trip check the ledger item asks for, in three layers on one shared crate (non-required fields with and without defaults, nested concept, list/dict types):
- 1. **Wire pin (always on, pure Python).** Build the runtime class the way the runtime does (`ConceptFactory` / the structure generator, as `test_projection_agrees_with_runtime_base.py` already does), instantiate it with the optionals unset, dump via the transport idiom (`model_dump(serialize_as_any=True)`), and assert the unset keys are present with `None`. This pins the wire truth the projection must accept; if the transport dump ever flips to `exclude_none`, this test reds and forces the projection decision to be revisited together with it.
- 2. **Projection pin (always on).** Emit ts-zod for the same crate and assert every non-required field's expression is null-tolerant. Paired with (1), the cross-language contract is encoded in this repo even where CI has no node.
- 3. **Executable round-trip (local-only, skip-gated like `test_emitted_ts_is_prettier_clean`).** When `node` (≥ 22.6, for `--experimental-strip-types`) and a globally installed `zod` (`npm root -g`) are available: write the emitted `types.ts` plus a tiny driver into a tmp dir, symlink the global `zod` into a local `node_modules`, feed the JSON from (1) through `Schema.parse`, and assert success and that nulls survive as nulls. Skip otherwise — the always-on pins hold the line in CI.
-
-## Phase 3 — docs and changelog
-
-- `docs/under-the-hood/codegen-projections.md`: state the optionality contract in one place — the runtime serializes unset optionals as explicit `null`, every projection must accept both spellings, and per target that means `X | None` (Python) and `.nullish()` / `.nullable().default(…)` with `| null` types (ts-zod).
-- `CHANGELOG.md` under `## [Unreleased]`: breaking for generated TypeScript artifacts — regenerate; parsed optional fields now type as `T | null | undefined`.
-
-## Phase 4 — landing and follow-through
-
-- Run `make agent-check` and `make agent-test`; PR against `dev` with `Closes L-260820-ee327d` in the body.
-- File the consumer cleanup now, blocked on this item: a `pipelex-starter-js`-owned item to delete `src/lib/wireOutput.ts` (`dropWireNulls`) and regenerate `src/generated/` once a pipelex release carrying this fix is deployed to the hosted codegen route. The workaround silently strips legitimate nulls inside opaque fields, so it should not outlive the fix.
-- Note for L-260830-344594 (pipelex-integrate skill): its plan carries a pre-ship re-check of this item — once this ships in the hosted engine, the skill never writes the wireOutput helper into user projects. Drop a `ledger note` on that item when this merges.
-
-The fix reaches consumers only through a pipelex release plus an api-dev deploy (the starter consumes the projection via hosted `POST /v1/codegen`); the release itself rides the normal release train and is not scheduled by this plan.
-
-## Checkpoint — Phases 1–3 done, green locally
-
-**`_break_zod_expr` did need extending, and the reason is prettier's member-chain rule, not width.** The modifier was a single string; `.nullable().default(…)` is two member calls, and once prettier breaks a member chain it puts *every* call on its own line — so the emitted overflow form had to become `z\n .enum([…])\n .nullable()\n .default("…")`. The fix is to carry the presence modifiers as a **list** end to end: `_presence_modifiers(concept_field)` returns the chain, `_render_field` joins it flat, and `_break_zod_expr` renders one member per line. Nothing else about the break logic changed — `z.enum([...])` is still the only expression that can genuinely overflow.
-
-Verified for real rather than reasoned about, with prettier and typescript installed into the session scratchpad (neither is on this machine's PATH, so both skip-gated tests skip in an ordinary run):
-
-- `prettier --check` is clean on the `every_type_kind_crate` emission carrying the new `fallback_state` field — the exact multi-member chain break above.
-- `tsc --strict` is clean on a recursive crate whose `Node` carries a nullish concept ref, a nullish list, a nullish enum, a nullish record, a defaulted text field and a required int. Dropping ` | null` from one declared type reproduces the failure the widening exists to prevent: *`Node | null | undefined` is not assignable to `Node | undefined`* on the `z.ZodType<Node>` annotation. The widening is load-bearing, not cosmetic.
-
-**The node round-trip gate keys on two things**, both probed at test time: `node --version` parsed and compared against 22.6 (`--experimental-strip-types`, which is what lets node run the emitted `.ts` directly), and a `zod` package with a readable `package.json` under `npm root -g`, symlinked into a tmp `node_modules`. A tmp `package.json` carrying `{"type": "module"}` silences node's typeless-package reparse warning. Anything missing skips; the two always-on pins carry CI. Note this session ran `npm install -g zod` to make the gate open locally — a machine without it simply skips.
-
-**The wire pin needed one thing the plan did not anticipate.** A concept reference is generated as a *quoted forward ref*, so instantiating the runtime class raises `PydanticUserError: not fully defined` until the classes are rebuilt against a shared namespace. The fixture mirrors what the library manager does on load (`_rebuild_models_with_forward_refs`) rather than working around it, which keeps the pin faithful to the runtime path.
-
-**Mutation-tested.** Reverting `_presence_modifiers` to `.optional()` / bare `.default(…)` reddens both the projection pin and the executable round-trip, the latter with zod's own *"expected record, received null"* on the runtime's own payload — the ledger item's failure, reproduced in this repo.
-
-## Checkpoint — pre-landing review, two stamp defects found and fixed
-
-Reviewing the branch with a real prettier (3.9.6, installed into the session scratchpad — it is not on this machine's PATH, so the skip-gated prettier test never runs here) turned up two ways the emitted `types.ts` was not prettier-stable. Both break the same thing: a consumer's formatter run changes the bytes and `pipelex codegen check` reports an untouched artifact as `[hand-edited]`.
-
-**1. The `.nullable()` widening pushed ordinary defaulted fields past the print width, and only `z.enum` was modelled.** `_break_zod_expr`'s premise — "only `z.enum([...])` can genuinely overflow" — was already wrong and this change made it reachable on the commonest shape: the *field name* and the *default literal* are authored and unbounded, and neither is part of `expr`. Measured on one crate carrying a field named `default_summary_style` defaulting to `"a concise executive summary"`: 75 columns on this branch's merge-base and prettier-clean, 86 columns here and rewritten. `_render_field` detected the overflow and handed it to `_break_zod_expr`, which returned the identical flat string.
-
-Probing prettier across every shape `_zod_type` can produce showed the real rule is simpler than the deferred declared-type case, and keys on **call count, not expression**: two or more calls in the chain and prettier breaks the whole chain (`z` alone on the property line, one call per line); a single call has no chain to break, so it explodes that call's arguments in place. `_break_zod_expr` now splits the expression into its member chain (`_split_member_chain`, on depth-zero dots — every literal in the emitted grammar sits inside a bracket) and renders that rule, keeping the enum-member explosion for a call still too wide after the break. The emission is now byte-identical to prettier's own output for the defaulted `z.string()`, `z.record(…)` + `.nullish()`, `z.number().int()` + `.nullish()`, `z.lazy(…)` + `.nullish()`, `z.array(…)` + `.nullish()`, bare enum, enum + `.nullish()`, and enum + `.nullable().default(…)`.
-
-Two fields were added to `every_type_kind_crate` for it — a defaulted text field and a nested dict — so the **always-on** width guard carries the shape in CI where there is no node. Mutation-tested: restoring the enum-only break reddens `test_emitted_ts_lines_fit_the_print_width` naming both lines.
-
-**2. A dict-valued default was rendered as JSON, which prettier rewrites at any width.** `_format_default_value` was `json.dumps(..., sort_keys=True)`, so a default emitted as `{"alpha": "first"}` while prettier writes `{ alpha: "first" }` — braces padded, and quotes dropped per key from every key that is a plain identifier (a key like `per-reviewer` keeps them). No line-width involvement at all: one dict default anywhere in a crate was enough. This is **pre-existing and independent of this campaign**, and `test_dict_defaults_are_canonical` was actively pinning the JSON bytes. Defaults now render through `_ts_literal` / `_ts_object_key`, the test pins the TypeScript spelling, and `every_type_kind_crate` gained a `quotas` default carrying both key spellings.
-
-**3. An exploded choice list was split on every comma, in every target.** Re-reading the rewritten `_break_zod_expr` turned this up: the member split was `str.split(",")`, so a choice like `"blocked, awaiting the owner"` became two unterminated string literals. Not a formatting difference — the emission stops being TypeScript. The same defect sat in `python_common._split_top_level`, which explodes a `Literal[...]` annotation the same way, so both Python targets emitted unparseable Python on the same input; the Python half also has to walk *both* quote styles, because `escape_py_string` falls back to a single-quoted `repr` for a choice containing a `"`. Both splits now walk the string literals.
-
-The Python half was already well guarded — reverting it reddens the ruff and line-length-stability tests loudly. The TypeScript half was guarded by **nothing**, and that is the lesson: the broken form is a run of *short* lines, so the print-width guard cannot see it, and no always-on test parses the emitted TypeScript (the prettier gate skips in CI and on this machine). `test_an_exploded_choice_keeps_its_own_commas` is the direct assertion that closes it, mutation-tested.
-
-**4. A string carrying a `"` was always emitted double-quoted with escapes, and both formatters normalize it away.** `escape_py_string` deliberately converted repr's single-quoted form to double, and `json.dumps` always double-quotes; but ruff and prettier share one rule — double by default, single only where that **strictly reduces** the escape count — so `"marked \"urgent\""` is rewritten to `'marked "urgent"'` on the consumer's first format run, at any width, in all three targets. Probing ruff and prettier across the mixed, tied and backslash-adjacent cases pinned the rule exactly, and both emitters now implement it; every case round-trips back to the authored value, and the emission is byte-identical to what each formatter produces.
-
-**The same blind spot appeared twice, and it is the thing to carry forward.** For defects 3 and 4 the Python half was caught loudly by the always-on ruff and line-length-stability guards, and the TypeScript half was caught by **nothing** — reverting either TS fix left the suite green. `test_emitted_ts_lines_fit_the_print_width` only measures *width*, and the prettier gate skips both in CI and on any machine without a node toolchain, which is every machine here. So the TypeScript target has no always-on guard on its *content*, only on its line lengths; each TS fix needed a direct byte assertion written for it. Worth a proper fix — a vendored TS parse, or making the prettier gate non-optional in CI — rather than another round of hand-written assertions. Filed as [L-260901-26da36](http://localhost:4747/i/L-260901-26da36).
-
-### One defect found and deliberately deferred
-
-The print-width guard exercises `_render_field` but never `_render_type_field`, because no fixture crate is recursive — so the whole declared-type path is unmeasured. Probing it turned up a real, reachable defect rather than a mere coverage hole: a recursive concept with an ordinary four-choice enum field emits a declared-type line at **118 characters**, prettier rewrites it to the leading-`|` broken form, and the resulting byte change makes `pipelex codegen check` report an untouched file as `[hand-edited]`.
-
-It is **pre-existing and orthogonal to this campaign**: the same line measures 111 characters on this branch's parent commit, so the ` | null` widening makes the overflow easier to reach but does not cause it.
-
-It is not a one-liner, which is why it was not folded in here. Probing prettier 3.9.6 across every shape `_ts_type` can produce: a literal union breaks in three tiers (flat, then break after the `?:`, then leading-`|` one per line); `Record<string, X> | null` and `Array<union> | null` explode the type-argument list; but `Array<atom> | null` and a bare long atom **stay flat past 80**. Those last two are the trap — prettier tolerates them, so the always-on width guard is *stricter* than prettier on this path, and simply adding a recursive fixture to it reddens shapes that are already prettier-clean. A correct fix models the union tiers and the type-argument explosion together, and teaches the guard the same distinction.
-
-Filed as [L-260901-47759d](http://localhost:4747/i/L-260901-47759d) (owner `pipelex`), carrying the repro, the probe matrix and the parent-commit measurement.
-
-## Checkpoint — review round 2, two splitter defects fixed and one deferred
-
-Round 2 ran with no usable PR input: the branch's only review thread was already answered and resolved in round 1, and greptile has not re-reviewed since. The whole round came from the two reviewers run locally against `origin/dev` — cubic and Codex — which is exactly the case they exist for.
-
-**Both fixed defects are the same mistake in two places, and both emit TypeScript that does not parse.** The round-1 fix introduced `_ts_string`, which spells a string single-quoted where that strictly reduces escapes; before it, every string went through `json.dumps` and was always double-quoted. Two new splitters were written in that same commit and neither was taught the new spelling.
-
-1. **`_split_enum_members` walked only `"`.** Raised independently by cubic and Codex. A choice carrying both a `"` and a comma — `'say "hi", then continue'` — is spelled single-quoted and then cut at its own comma into two unterminated literals. *Not* a regression: the round-1 baseline split on every comma, so this input was broken there too. It was admitted under round 2's ship-blocker clause, because the consumer's build breaks rather than merely its stamp, and because the changelog already claimed the split walked the literals.
-
-2. **`_split_member_chain` counted brackets inside literals.** Found in verification; neither bot named it, and it is the round's clean regression. Inside `z.enum([…])` the base depth is 2, so a choice list carrying two net-unmatched closers before a `.` walks the depth to zero mid-literal and cuts the member chain there. Plain enumerated prose does it: `["a) strongly agree with the proposal", "b) agree. with some reservations", "c unsure"]`. **The baseline emitter, on the identical input, emits valid TypeScript** — valid to invalid across round 1, since `_split_member_chain` is entirely new there.
-
-Both now track the enclosing quote before counting anything, which is what `python_common._split_top_level` already did — the Python half was right all along and only the TypeScript half was left behind. Verified with prettier 3.9.6 installed into the session scratchpad: both shapes parse and are prettier-clean, and the skip-gated prettier test passes when run with it on PATH. Mutation-tested: reverting either splitter reddens its own byte assertion *and* the new class invariant.
-
-**The blind spot got a cheap always-on guard at last.** `test_emitted_ts_never_breaks_a_line_inside_a_string_literal` scans each emitted code line and asserts none ends inside an unterminated literal. It needs no node toolchain, so it runs in CI, and it reddens on all three defects of this class rather than on the two that happened to be found — which is the point, since hand-written byte assertions have now missed this class three times. It is a stopgap, not the fix: a real parse or a non-optional prettier gate is still [L-260901-26da36](http://localhost:4747/i/L-260901-26da36). Note the guard skips comment lines deliberately — an authored description may hold an apostrophe, and the first draft failed on `/** The reviewer's answer */`.
-
-### Deferred — `_ts_object_key` bypasses the quote rule
-
-`_ts_object_key` renders a non-identifier object key with `json.dumps` rather than `_ts_string`, so a dict-default key carrying more `"` than `'` is emitted double-quoted with escapes and prettier rewrites it:
-
-```
-- .default({ "marked \"urgent\"": 3 }),
-+ .default({ 'marked "urgent"': 3 }),
-```
-
-Reachable — `default_value = { 'marked "urgent"' = 3 }` is legal TOML on a `type = "dict"` field — but narrow: `per-reviewer` and `it's` are both already spelled the way prettier wants. Raised by cubic; Codex reviewed the same diff and did not flag it.
-
-**Deferred under the round-2 bar, deliberately.** It is a stamp instability only — the emission is valid TypeScript — and it is *not* a regression: the round-1 baseline rendered the whole dict as JSON and prettier rewrote both the brace padding and the quote, so round 1 made it strictly narrower and never worse. The fix looks like one word (`json.dumps(text)` → `_ts_string(text)`), which is precisely why it was left alone: the bar exists to stop a converging PR from taking on work that is neither a regression nor a blocker. It should be picked up in the follow-up that closes [L-260901-26da36](http://localhost:4747/i/L-260901-26da36), where a real TS parse would catch the whole family at once.
-
-## Checkpoint — review round 3, one regression fixed
-
-`/review` against `dev` with a real prettier (3.9.6, scratchpad install) found one defect and confirmed one known deferral.
-
-**The chain break exploded an enum's members even when the enum fitted on its own line — a regression this branch introduces.** `_break_zod_expr`'s new member-chain path ran `_explode_enum_call` on any `.enum([…])` in the chain, unconditionally. Prettier does not: once the chain is broken it re-measures each call at its new indent and leaves flat any that fits, and the threshold is exact — probed member by member, `indent + len(call) <= 80` stays on the line, `81` explodes.
-
-The shape that reaches it is ordinary, not contrived: `escalation_severity: z.enum(["low", "medium", "high"]).nullable().default("medium"),` is 86 columns flat, so it breaks; the `.enum([…])` is then 36 columns at indent 4 and prettier folds it straight back. **It is a regression rather than a pre-existing defect**, because `.nullable()` is what pushes the line over: the same field emits 75 columns on this branch's merge-base, stays flat, and is prettier-clean there. Verified both directions by emitting the same crate with the merge-base emitter.
-
-`_render_broken_call` now applies the measurement, `every_type_kind_crate` carries the shape (`escalation_severity`, deliberately just inside the width where `fallback_state` is past it), and `test_a_broken_chain_keeps_a_call_that_fits_on_its_own_line` is the byte assertion. Mutation-tested: restoring the unconditional explode reddens it. The whole fixture emission is prettier-clean for real, and `test_emitted_ts_is_prettier_clean` passes with prettier on PATH rather than skipping.
-
-**The deferred `_ts_object_key` case was re-confirmed and left deferred.** A dict-default key carrying more `"` than `'` is still emitted `{ "marked \"urgent\"": 3 }` and prettier rewrites it to `{ 'marked "urgent"': 3 }`. It remains a stamp instability on valid TypeScript, not a regression, and belongs with [L-260901-26da36](http://localhost:4747/i/L-260901-26da36).
-
-## Checkpoint — review round 4, nothing found, and the round-3 fix verified against real prettier
-
-This pass reviewed the code that landed *after* the previous agent-comment round — the `_render_broken_call` fix and the `origin/dev` merge — which no reviewer had seen. It changed no product code. (It is this branch's fourth review pass but carries the `round=3` stamp on the PR, because one earlier pass was run by `/review` rather than by the agent-comment skill, and only the latter stamps.)
-
-**The PR's own threads contributed nothing again.** The single greptile thread was answered and resolved in round 1, and greptile's "Last reviewed commit" still names a commit several behind the branch head, so there has been no re-review. The whole round came from the two reviewers run locally against `origin/dev`.
-
-**Codex reviewed the branch diff and found nothing.** cubic raised three, none of which clears the bar:
-
-1. **The hand-rolled scanners are duplicated across `ts_zod.py` and `python_common.py`** and cubic would rather see the zod expression kept structural until final rendering. A design concern with no defect behind it, and the same concern already filed as [L-260901-26da36](http://localhost:4747/i/L-260901-26da36) — it belongs there, not in this PR.
-2. **`sorted(pairs)` in `_ts_literal` crashes on a dict default with mixed key types.** Adjudicated as unreachable — the argument is below.
-3. **`_ts_object_key` bypasses `_ts_string`.** The known deferral, re-raised for the third time; unchanged in status.
-
-### `sorted(pairs)` — why the mixed-key crash is unreachable
-
-Recorded in full because cubic is stateless and will raise it again, and a local-only finding has no PR thread to carry its adjudication.
-
-cubic is right on the narrow point: nothing *validates* the key types. `default_value` is typed `Any | None` (`pipelex/core/concepts/concept_structure_blueprint.py:70`) and the `DICT` branch of `_validate_default_value_type` checks only `isinstance(self.default_value, dict)`. So `{1: "a", "b": 2}` would reach `sorted(pairs)` and raise `TypeError: '<' not supported between instances of 'str' and 'int'`.
-
-It cannot get there. Both ingress formats guarantee string keys — a TOML table key is a bare or quoted key, a JSON object key is a string — and `clean_json_content` copies keys through verbatim without coercing them (`pipelex/tools/misc/json_utils.py`: `cleaned[key] = clean_json_content(content_dict[key])`, keys untouched). A dict whose keys are *uniformly* non-string sorts fine and is then handled by `_ts_object_key`; only the mixed case would crash, and no authored bundle can produce it.
-
-Worth naming the inconsistency underneath, since it is what made the finding look reachable: `_ts_object_key`'s docstring says it stringifies a non-string key because "a crash here would be a worse answer than the spelling the emitter has always produced" — and `sorted()`, one line earlier, defeats that promise for the mixed case. That defence is pre-existing and is itself the over-engineering; extending it to satisfy the finding would add a second guard on a state neither guard can be reached in. Left alone deliberately.
-
-### The round-3 fix now has empirical backing, not just a probe record
-
-`_render_broken_call` rests entirely on a claim about prettier's behaviour, and on this machine `test_emitted_ts_is_prettier_clean` skips — prettier is not on PATH — so the claim had never been executed here. Installing prettier 3.9.6 into the session scratchpad and putting it on PATH makes the whole `tests/unit/pipelex/codegen/` suite run with **no skips**: the prettier gate and the node round-trip in `test_ts_zod_wire_agreement.py` both execute (node v24.17.0 and a global `zod` are present on this machine) and all pass.
-
-**Mutation-tested against real prettier.** Restoring the unconditional explode reddens exactly two tests, and the second is the one that matters: `test_emitted_ts_is_prettier_clean` fails with prettier's own *"Code style issues found"* on the emitted `types.ts`, alongside the byte assertion `test_a_broken_chain_keeps_a_call_that_fits_on_its_own_line`. The fix is confirmed by the formatter it models, not only by an assertion written from a probe.
-
-One more reading of the threshold, checked independently rather than taken from the commit message: `indent + len(call) <= TS_PRINT_WIDTH` is exact because the trailing comma never lands on an enum. `_zod_type` emits `.enum([…])` only for a top-level `LITERAL`; a nested one is wrapped, so its member call spells `.array(…)` or `.record(…)` and `_is_enum_call` does not match it. An enum is therefore always the *first* call in a broken chain and never the last one that carries the `,`, so the measured width is the rendered width.
-
-## Checkpoint — landed
-
-The campaign merged as `pipelex#1177`, squashed onto `dev` as `fc9bc8891ce9d3b4174d7dca4946f6b7f7335d72`. Every check on the pull request passed: the eight py3.11 test shards and the `Tests (all)` aggregate, `Lint (all)` with its ruff/plxt, keyword-only, hub-layering, config-sync, agent-rules and drift-contracts jobs, `Typecheck (py3.11)`, `uv-lock-check`, `doc-check`, and the MTHDS standard conformance job.
-
-All four phases landed as planned. Phase 1's emitter change is `pipelex/codegen/emitters/ts_zod.py::_presence_modifiers`, which returns `[".nullable()", ".default(…)"]` for a defaulted non-required field and `[".nullish()"]` otherwise; the `.optional()` branch the ledger item reported is gone. Phase 2's three-layer contract is `tests/unit/pipelex/codegen/test_ts_zod_wire_agreement.py`. Phase 3's optionality contract is stated in `docs/under-the-hood/codegen-projections.md`, and the changelog entry sits under `## [Unreleased]` — no version was cut by this campaign.
-
-Phase 4's follow-through is complete on both counts. The consumer cleanup was filed as [L-260901-3bd51e](http://localhost:4747/i/L-260901-3bd51e), owned by `pipelex-starter-js` and blocked on this campaign's item; closing that item released it. The `pipelex-integrate` item [L-260830-344594](http://localhost:4747/i/L-260830-344594) carries a ledger note recording the merge and what it does and does not yet permit.
-
-**The fix is merged but not delivered, and the distinction matters for both dependents.** The merge is on `dev` and has not reached `main`, so no release carries it yet; `pipelex` has one open release item, [L-260828-f4e88c](http://localhost:4747/i/L-260828-f4e88c), cut for the input-form work, and a release train that departs after this merge would carry this fix too. Neither dependent can act on the merge alone: both the starter cleanup and the skill's helper-removal consume the projection through the hosted `POST /v1/codegen` route, so the real gate is a `pipelex` release plus an api-dev deploy, not this merge.
-
-**Two defects found during the campaign were deliberately not fixed in it, and both remain open.** [L-260901-47759d](http://localhost:4747/i/L-260901-47759d) is the recursive concept's declared-type line overflowing prettier's print width, which makes `codegen check` flag an untouched file as hand-edited; it is pre-existing, and the deferral argument is in the pre-landing review checkpoint above. [L-260901-26da36](http://localhost:4747/i/L-260901-26da36) is the structural one — the TypeScript target still has no always-on guard that *parses* its emission. This campaign advanced it rather than closing it: `test_emitted_ts_never_breaks_a_line_inside_a_string_literal` now runs in CI with no node toolchain and reddens on the whole unterminated-literal class, but the real gate, `test_emitted_ts_is_prettier_clean`, is still skipped wherever prettier is absent, which is CI and every machine here. The `_ts_object_key` deferral recorded in round 2 belongs with it.
-
-**Follow-up: the structural one is now closed.** [L-260901-26da36](http://localhost:4747/i/L-260901-26da36) was completed by `pipelex#1184`, squashed onto `dev` as `753737d459ddcdebbdaafd8eb53ecd7aa314ece7`. `make test-ts-gates` provisions a pinned prettier and zod into a gitignored `.ts-toolchain/` and runs the codegen suite with `PIPELEX_REQUIRE_TS_GATES=1`, under which the two toolchain-dependent gates fail instead of skipping; the `Tests (ts emission gates)` CI job runs that target behind `actions/setup-node`, and `Tests (all)` requires it. The `_ts_object_key` deferral recorded in round 2 was picked up in the same PR — the new gate reddened on it before the fix was written. [L-260901-47759d](http://localhost:4747/i/L-260901-47759d), the recursive-concept print-width overflow, is still open, and the deliberate absence of a `tsc --strict` gate is recorded with it in `docs/contribute/typescript-emission-gates.md`.
diff --git a/wip/two-gateways/review-deferrals.md b/wip/two-gateways/review-deferrals.md
deleted file mode 100644
index 93948a4a5..000000000
--- a/wip/two-gateways/review-deferrals.md
+++ /dev/null
@@ -1,68 +0,0 @@
----
-status: active
-item: L-260825-577e2d
----
-
-# Two managed gateways — review deferrals
-
-Items surfaced by the automated review of the pull request that introduced the manifold dialect, verified against the code and deliberately not fixed in that pull request. Each one records what is actually wrong, what the reporting bot got wrong about it, and why it waited — so the session that picks it up does not have to re-derive any of it.
-
-## D1 — `preprocess_test_models_cmd` reads a managed backend's TOML as a catalog
-
-`_fetch_managed_gateway_models()` omits a backend's key entirely when its remote section is absent (`pipelex/cli/dev_cli/commands/preprocess_test_models_cmd.py:139-144`, a bare `continue`), so `managed_backends` is keyed by **fetch outcome** rather than by configuration. The membership test at `:179-180` then lets that backend fall through to `_extract_models_from_backend_toml` and emits its per-backend TOML as a model catalog.
-
-That is the wrong predicate, and for a reason deeper than the report gives: for a managed backend the per-backend TOML is **never** a catalog. `pipelex/cogt/model_backends/backend_library.py:499-506` feeds that same file to `GatewayConfigMerger.merge` as *overrides* on top of the remote specs, keeping only `sdk` and `structure_method`. Reading it with `_group_handles_by_model_type` is a category error regardless of whether the backend is enabled.
-
-Two corrections to the report, both worth carrying forward:
-
-- **The trigger it names is unreachable for `pipelex_gateway`.** `backend_model_specs` is a required declared field on `RemoteConfig` (`pipelex/system/pipelex_service/remote_config.py:29`), so any fetch that validated carries it and the section lookup can never return `None` for the legacy gateway. The absent-section branch is reachable only for a section arriving through `extra="allow"`, which today means the manifold one.
-- **The regression the pull request actually introduced is a different one.** The version before it was an unconditional `if backend_name == "pipelex_gateway": continue`; the change made that conditional on the fetch outcome. So a user who *disables* the gateway — a product-supported state, `disable_managed_gateway_backends()` in `pipelex/cli/commands/init/backends.py` — now gets `pipelex_gateway.toml` read as a catalog. Note that the fix the bot proposes would not restore this, because `enabled_managed_gateway_sections` excludes disabled backends by design.
-
-**Why it waited.** This is a development-only fixture generator with no shipped runtime behind it. Both managed backend TOML files are comment-only today, so `_extract_models_from_backend_toml` returns empty lists for both and the emit site guards on non-empty — nothing is produced. `_generated_model_sets.py` is gitignored and `.pipelex-dev/model_availability.json` is not committed, so no artifact exhibits the bad pairing. When it does fire, the failure mode is a loud red integration test rather than a silent false pass. Decisively, the one-line fix closes only the latent absent-section half; the disabled-gateway half needs a different predicate, and fixing half a latent trap was not worth another lap of the pull request.
-
-**What the fix looks like.** In `_fetch_managed_gateway_models`, keep the key and let the value be empty rather than skipping the backend, so membership means "this backend's TOML is an override file" rather than "the fetch produced something". Then decide separately whether a *disabled* managed backend should also be excluded from local discovery — that is the second predicate question, and this command ignores `enabled` uniformly for every ordinary backend, so changing it is a deliberate choice rather than an obvious repair.
-
-**One trap for whoever takes it.** `tests/unit/pipelex/cli/dev/test_preprocess_test_models_cmd.py:72` currently pins the present shape, asserting that a backend whose section is absent is excluded from the returned mapping. That assertion has to be flipped, not added beside.
-
-## D2 — managed-backend-blind user-facing strings
-
-Several user-facing strings still name the Portkey-cloud service specifically, on paths that now serve either managed backend:
-
-- `pipelex/cli/commands/doctor_cmd.py:1092-1094` gates on `enabled_managed_gateway_sections()` but reports the hardcoded "Pipelex Gateway is enabled but terms have not been accepted", which is wrong on a manifold-only machine.
-- The terms panel itself asks about "the Pipelex Gateway terms of service" wherever it is raised, including now for a manifold-only selection.
-- `AGENT_ERROR_HINTS["GatewayTermsNotAcceptedError"]` (`pipelex/cli/agent_cli/commands/agent_output.py:134`) recommends `pipelex init config` to accept the terms and suggests disabling `pipelex_gateway` — the first does not prompt, and the second is already off in the case that produces the error.
-- `RemoteConfigFetcher._build_unavailable_error` (`pipelex/system/pipelex_service/remote_config_fetcher.py:196-204`) reports "Pipelex Gateway is enabled but the remote configuration is unreachable" and recommends disabling `pipelex_gateway` — reachable on a manifold-only machine whose first offline dry-run finds no cache, where the backend it names is already off.
-
-This is the same family as the backend attribution the pull request added to `GatewayUnknownModelError`: a message that assumes there is one managed service. It was left out of that change deliberately, as a coherent wording sweep rather than something bundled into a correctness fix, and because the naming a second dialect deserves in user-facing copy is a product decision rather than a mechanical rename.
-
-## D3 — the search worker indexes source dicts raw
-
-`ManifoldSearchWorker._search_sourced_answer` (`pipelex/providers/manifold/manifold_search_worker.py:82-93`) checks `answer` carefully — `isinstance(answer, str)`, then a `ManifoldSearchResponseError` carrying a category and a user action — and then builds `sources` by indexing each entry directly: `source["name"]`, `source["url"]`, `source["snippet"]`, after a `cast` that asserts a shape nothing verified. A `sources` list carrying an entry that is not an object, or an object missing one of those three keys, raises a bare `KeyError` or `TypeError`.
-
-That is precisely the failure mode `ManifoldNativeClient`'s own docstring names as the thing to avoid (`pipelex/providers/manifold/manifold_native_client.py:88-92`): an exception that is neither a `PipelexError` nor annotated with the model escapes the Temporal error bridge and is retried against a search that has already been paid for.
-
-**Two corrections to keep in view.** This is not new and it is not manifold-specific: `GatewaySearchWorker._search_sourced_answer` (`pipelex/providers/gateway/gateway_search_worker.py:86-95`) does the identical thing, and additionally reads `result_dict["answer"]` unguarded where the manifold worker guards it. So the manifold path is strictly the better of the two, and a fix belongs to both or to a shared helper — which is also why it was not bundled into a pull request whose whole shape is "the manifold package imports nothing from the gateway one".
-
-**Why it waited.** It needs a malformed response from our own service to fire, the pull request already raised the bar for the response fields it touched, and the honest fix is a sweep across both workers rather than a patch to the new one — which would leave the shipped path worse than the beta path.
-
-**What the fix looks like.** A `ManifoldSearchSource` pydantic model beside the request schemas in `manifold_schemas.py`, validated per entry, with a malformed entry raising `ManifoldSearchResponseError` the way a missing `answer` already does. The gateway worker gets the same treatment against its own exception class when the sweep happens.
-
-## D4 — init decides managed-ness by name, the boot by declaration
-
-The boot's question is structural: a backend is a managed gateway backend when it declares a `model_specs_section` (`pipelex/cogt/model_backends/backend.py:52-68`, `resolve_model_specs_section`; the field is `InferenceBackendBlueprint.model_specs_section`, `pipelex/cogt/model_backends/backend_factory.py:19`, read off the raw `backends.toml` table with no allow-list on the name). `enabled_managed_gateway_sections` (`pipelex/system/pipelex_service/pipelex_service_config.py:78`) answers it, and both the boot's terms gate and `pipelex init agreement` (`_init_agreement`) ask it. The other init sites ask by name instead, through `MANAGED_GATEWAY_BACKEND_NAMES` (`backend.py:49`): `_check_gateway_terms_if_needed` (`pipelex/cli/commands/init/command.py:168`), `customize_backends_config`'s prompt and decline-removal (`pipelex/cli/commands/init/backends.py:152,163`), `disable_managed_gateway_backends` (`backends.py:92`), and the agent flow's `accept_gateway_terms` handling (`pipelex/cli/agent_cli/commands/init_cmd.py:221`).
-
-The consequence, for a backend that declares a section under a name the constant does not list: the boot puts the installation behind the terms, `pipelex init agreement` prompts for them, but declining leaves that backend enabled — `disable_managed_gateway_backends` iterates the constant, so its own docstring's promise, *"has to leave no managed backend enabled"*, is not kept — and the next inference boot refuses with `GatewayTermsNotAcceptedError`. `pipelex init config` and `pipelex-agent init` prompt for nothing on such an installation while still marking inference setup complete.
-
-A second, name-independent mismatch sits on the same lines: `get_selected_backend_keys` (`backends.py:70`) counts a backend as enabled only on a literal `enabled = true`, defaulting to disabled when the key is absent, whereas the boot reads truthiness with default-enabled (`pipelex_service_config.py:106`, and the loader it mirrors). A `[pipelex_manifold]` table with `enabled = 1`, or with no `enabled` key, is live to the boot and invisible to the init terms prompt even though its name is in the constant.
-
-**What the reporting bot got wrong.** It said init "provides no way to accept" the terms for such a backend. `pipelex init agreement` is that way, and it asks the boot's question — pinned by `tests/unit/pipelex/cli/commands/test_init_agreement_any_managed_gateway.py`. The gap is in the disable-after-refusal path and in the two flows that prompt during setup, not in acceptance.
-
-**Why it waited.** No product path declares a third section: the published configuration carries two, and a future one lands in this repository together with the constant. The kit template always writes literal booleans, so the truthiness mismatch bites only a hand-edited file. And the constant was the deliberate shape of the round-1 fix for callers that hold only backend names — the picker's selection, the agent request's `backends` list — so replacing it is a design change rather than a repair.
-
-**What the fix looks like.** A helper in `init/backends.py` that derives the managed backend names from the tomlkit document the init code already holds, by applying `resolve_model_specs_section` to each table, so the four sites ask the boot's question over the same file and the constant retires from init. `get_selected_backend_keys` reads `enabled` the loader's way. The trap: make the code match `disable_managed_gateway_backends`'s docstring, not the reverse.
-
-## Declined
-
-### `ManifoldCompletionsFactory.make_simple_messages` duplicates the OpenAI message builder
-
-Verified and declined. The override (`pipelex/providers/manifold/manifold_completions_factory.py:47-104`) re-states the base class's system-text, user-text and image handling to change seven lines of document encoding, and `OpenAICompletionsFactory` exposes no narrower seam for it. But it is byte-identical to `GatewayCompletionsFactory`'s override save for three comments, `PortkeyCompletionsFactory` carries a third copy on `dev`, and the module docstring (lines 3-14) records why subclassing the gateway factory was rejected: inheriting the Portkey extract parsing and header build would make retiring that package an untangling rather than a deletion. `tests/unit/pipelex/providers/manifold/test_manifold_completions_messages.py:148-178` is an explicit drift guard asserting the manifold and gateway overrides produce equal messages. A `_make_document_part` hook in `OpenAICompletionsFactory` that the three subclasses override would collapse the copies; it is a cleanup across `openai/`, `gateway/`, `portkey/` and `manifold/`, and the moment for it is the Portkey path's retirement, when two of the three copies disappear anyway.