GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Tags · mthds-ai/mthds-python

Tags

v0.29.0

Toggle v0.29.0's commit message
Release v0.29.0 (#114)

## Release v0.29.0

Bumps version from `0.28.0` to `0.29.0`. Promotes `dev` → `main`.

### Changelog


### Added

- **`unit` and `aggregate` on a `number` node**: the input-form and
output-form descriptors carry the facts MTHDS `9.2.0` authors on a
number: `NumberField.unit`, the site's effective unit, carried as
written, and `aggregate` (`Aggregate`: `sum` or `average`).
- **Choice options on an `enum` node**: `EnumField.options` lists one
`ChoiceOption` per value of `choices`, in the same order, with its
optional `label`, `description` and `tone` (`OptionTone`: `positive`,
`caution`, `negative`, `neutral`), and is present only when at least one
option carries a word. An `options` list that does not follow `choices`,
or whose options carry no word, fails the parse.
- **The intent-hint vocabularies of `9.2.0`**:
`mthds.protocol.intent_hints` names the `hints` keys (`HintKey`), the
`intent` words including `code`, `identifier`, `question`, `photo`,
`screenshot` and `scan` (`IntentWord`), the `role` words for an input
slot (`RoleWord`) and the `part` words for a structure field
(`PartWord`), for a consumer reading a hint by name; a `hints` map is
still carried as written, unknown words included.
- **`result_line` and `examples` in a manifest**: `MethodsManifest`
reads the optional `result_line` template and `examples` file list of
`[package]`, and `serialize_manifest_to_toml` writes them back. A
`result_line` or a non-empty `examples` without `main_pipe`, and an
empty or blank `result_line`, refuse the manifest, and
`ManifestValidationError.reason` then names the `method.package_invalid`
reason as a `ManifestPackageReason` (`result_line_without_main_pipe`,
`examples_without_main_pipe`, `result_line_invalid`), which
`manifest_rule_reason` also reads from a `ValidationError`; parsing the
template and checking the example files are left to the runtime.

### Changed

- **Standard version `9.2.0` and core error registry `9.2.0`
(Breaking)**: `MTHDS_STANDARD_VERSION` moved from `9.0.0` to `9.2.0`, so
a manifest's `mthds_version` of `>=9.2.0`, as the standard's own
examples now read, passes while an exact `9.0.0` or a `~9.1.0` no longer
does; and `CORE_ERROR_REGISTRY_VERSION` moved from `9.0.0` to `9.2.0`,
with `mthds.protocol.problem.registry` generated from the standard's
`v9.2.0` registry, which adds `method.contract_fact_invalid`
(`MethodContractFactInvalidParams`: `fact`, `field_path` and a `reason`
among `inapplicable`, `not_value_slot`, `malformed`, `contradictory`,
`value_breaks_contract` and `duplicate_option`) and the warning
`method.choice_option_dubious` (`field_path`, and a `reason` of
`empty_value` or `duplicate_value`), and gives `method.hint_invalid`'s
`reason` the values `unknown_role`, `inapplicable_role`, `unknown_part`,
`inapplicable_part` and `duplicate_part`. `PROTOCOL_VERSION` stays at
`2.0.1`, and the pinned native set is still the one pinned at `9.0.0`.
- **Descriptor contract-fact slots are typed (Breaking)**: a text node's
`format` takes a `ContractFormat`, the language's formats `email`,
`uri`, `date-time`, `uuid`, `hostname`, `ipv4` and `ipv6` plus `time`,
so any other format, such as `phone`, fails the parse where it was an
open string; `min_length` and `max_length` must be non-negative JSON
integers, never a boolean or a string; and `examples` must be a
non-empty list of strings and numbers, where it took any list.
- **A `JSON` slot's compact inputs template is the bare object
(Breaking)**: `project_inputs_template` and `render_inputs_template`
with `explicit=False` now render a `native.JSON` slot, a slot of a
concept refining it and each element of a `JSON[]` slot as the object it
carries, `{}`, in place of the `{"concept": "native.JSON", "content":
{"json_obj": {}}}` envelope, matching the reference projection and the
runtime's input shaper, which reads a bare object at a `JSON` position
literally; the explicit shape is unchanged.

### Security

- **`PipelexRunner.execute` refuses a pipe code outside the
pipe-reference grammar**: a `pipe_code` must be a bare, domain-qualified
or package-qualified pipe reference (`answer`, `legal.contracts.answer`,
`docproc->extraction.extract_text`, a package alias always followed by a
domain, every part matching `[a-z][a-z0-9_]*`), or the runner raises
`PipelexRunnerError` before anything is written or the `pipelex` CLI
runs, so a code starting with `-` can no longer be read by the CLI as
one of its options; `pipelex run pipe` now also receives the code last,
behind `--`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_017AfvxiyuREr7bk5QxMg9q3


<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Release v0.29.0, promoting `dev` to `main` and bumping the package from
`0.28.0` to `0.29.0`. This release speaks MTHDS standard 9.2.0, adds a
compact-template breaking change for `JSON` slots, and hardens the local
runner against pipe-code option injection.

**Breaking changes**

- A manifest's `mthds_version` is now evaluated against `9.2.0`; an
exact `9.0.0` or `~9.1.0` no longer satisfies it.
- A compact inputs template renders a `JSON` slot as the bare object
(`{}`) instead of the `{concept, content: {json_obj}}` envelope; the
explicit shape is unchanged.
- A descriptor `format` outside the language's set (`email`, `uri`,
`date-time`, `uuid`, `hostname`, `ipv4`, `ipv6`, `time`) fails the
parse, and `min_length`/`max_length` must be non-negative JSON integers.

**Added**

- Number descriptors carry `unit` and `aggregate`; enum descriptors
carry `options` with label, description, and tone.
- The 9.2.0 intent-hint vocabularies are typed in
`mthds.protocol.intent_hints`.
- Manifests read and write `result_line` and `examples`, with validation
reasons named by `ManifestPackageReason`.
- The core error registry is regenerated from the vendored 9.2.0
snapshot, adding `method.contract_fact_invalid` and the
`method.choice_option_dubious` warning.

**Security**

- `PipelexRunner.execute` refuses pipe codes outside the pipe-reference
grammar before the CLI runs, so a code starting with `-` can no longer
be read as a CLI option; `pipelex run pipe` now receives the code last,
behind `--`.

<sup>Written for commit 2ea13cd.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/mthds-ai/mthds-python/pull/114?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/mthds-ai/mthds-python/114?returnTo=https%3A%2F%2Fgithub.com%2Fmthds-ai%2Fmthds-python%2Fpull%2F114&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->
  • Nov 28, 2026
  • 61add9c
  • zip
  • tar.gz
  • Notes
  • Downloads

v0.28.0

Toggle v0.28.0's commit message
Release v0.28.0 (#110)

## Release v0.28.0

Bumps version from `0.27.0` to `0.28.0`. Promotes `dev` → `main`.

### Changelog

## [v0.28.0] - 2026-11-15

### Changed

- **Standard version `9.0.0` and core error registry `9.0.0`
(Breaking)**: the package follows the standard's `v9.0.0` release, which
carries `v8.2.0` with it: `MTHDS_STANDARD_VERSION` moved from `8.1.0` to
`9.0.0`, so a manifest's `mthds_version` of `>=9.0.0`, as the standard's
own examples now read, passes while `^8.0.0`, `8.*`, `~8.2.0` or an
exact `8.2.0` no longer does, and a crate stamped with it materializes
the native set pinned at `9.0.0`, in which `native.Text`, `native.Html`
and `native.JSON` may carry a stored value at `url` with its `size`,
`mime_type` and `preview` in place of the inline `text`, `inner_html` or
`json_obj`, which are no longer required; and
`CORE_ERROR_REGISTRY_VERSION` moved from `8.1.0` to `9.0.0`, with
`mthds.protocol.problem.registry` generated from that release's
registry, whose codes did not change. `PROTOCOL_VERSION` stays at
`2.0.1`.


🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Release v0.28.0, promoting `dev` to `main`. The package moves
`MTHDS_STANDARD_VERSION` and `CORE_ERROR_REGISTRY_VERSION` from 8.1.0 to
9.0.0, following the standard's v9.0.0 release and its carried 8.2.0
cut; the registry's codes did not change, only its version and one
wording. `PROTOCOL_VERSION` stays at 2.0.1.

**Breaking**
- A manifest's `mthds_version` is now evaluated against 9.0.0, so
`^8.0.0`, `8.*`, `~8.2.0`, or an exact `8.2.0` no longer pass; move the
constraint to `>=9.0.0`.
- Crates stamped with 9.0.0 materialize the native set pinned at that
version, where `native.Text`, `native.Html`, and `native.JSON` may hold
their value in storage at a `url` instead of inline.

<sup>Written for commit 9bdbf32.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/mthds-ai/mthds-python/pull/110?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/mthds-ai/mthds-python/110?returnTo=https%3A%2F%2Fgithub.com%2Fmthds-ai%2Fmthds-python%2Fpull%2F110&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->
  • Nov 15, 2026
  • 876d858
  • zip
  • tar.gz
  • Notes
  • Downloads

v0.27.0

Toggle v0.27.0's commit message
Release v0.27.0 (#108)

## Release v0.27.0

Bumps version from `0.26.0` to `0.27.0`. Promotes `dev` → `main`.

### Changelog

### Added

- **`categories` in a manifest**: `MethodsManifest` reads the optional
`categories` key of `[package]`, the categories a catalog can offer a
method under, and `serialize_manifest_to_toml` writes them back as
written. An entry that does not match the standard's
`^[a-z0-9]+(-[a-z0-9]+)*$` as a whole refuses the manifest, while a
repeated entry, the order of the entries and a value no catalog knows
never do, and an empty array reads as leaving the key out.
`is_valid_category` checks one value.

### Changed

- **Standard version `8.1.0` and core error registry `8.1.0`
(Breaking)**: the package follows the standard's `v8.1.0` release:
`MTHDS_STANDARD_VERSION` moved from `8.0.1` to `8.1.0`, so a manifest's
`mthds_version` of `>=8.1.0`, as the standard's own examples now read,
passes while an exact `8.0.1` or a `~8.0.0` no longer does; and
`CORE_ERROR_REGISTRY_VERSION` moved from `8.0.1` to `8.1.0`, with
`mthds.protocol.problem.registry` generated from that release's
registry, whose codes did not change. `PROTOCOL_VERSION` stays at
`2.0.1`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_017AfvxhpA1RmS4zLrGb6kQc


<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Release `v0.27.0`: bumps the package version from `0.26.0` to `0.27.0`,
promotes `dev` to `main`, and follows MTHDS standard `8.1.0`, which adds
the `categories` key to a manifest.

**Breaking changes**

- `MTHDS_STANDARD_VERSION` and `CORE_ERROR_REGISTRY_VERSION` move from
`8.0.1` to `8.1.0`; the registry codes are unchanged and
`PROTOCOL_VERSION` stays at `2.0.1`.
- A manifest whose `mthds_version` excludes `8.1.0` — an exact `8.0.1`
or a `~8.0.0` — no longer satisfies `is_mthds_version_satisfied`. Widen
the constraint, for instance to `>=8.0.0`.

**New features**

- `MethodsManifest` reads the optional `categories` key of `[package]`;
each entry must match `^[a-z0-9]+(-[a-z0-9]+)*$` as a whole, while
repeats, order, and values no catalog knows are accepted and preserved
as written.
- An empty array reads as leaving the key out, and
`serialize_manifest_to_toml` writes the entries back as written.
- Adds `is_valid_category` and a new `docs/manifest.md` reference page.

<sup>Written for commit 4091969.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/mthds-ai/mthds-python/pull/108?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/mthds-ai/mthds-python/108?returnTo=https%3A%2F%2Fgithub.com%2Fmthds-ai%2Fmthds-python%2Fpull%2F108&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->
  • Nov 6, 2026
  • 325002d
  • zip
  • tar.gz
  • Notes
  • Downloads

v0.26.0

Toggle v0.26.0's commit message
Release v0.26.0 (#106)

## Release v0.26.0

Bumps version from `0.25.0` to `0.26.0`. Promotes `dev` → `main`.

### Changelog

### Changed

- **Standard version `8.0.1`, Protocol `2.0.1` and core error registry
`8.0.1` (Breaking)**: the package follows the standard's `v8.0.1`
release: `MTHDS_STANDARD_VERSION` moved from `8.0.0` to `8.0.1`, so a
manifest's `mthds_version` of `>=8.0.1`, as the standard's own examples
now read, passes while an exact `8.0.0` no longer does;
`PROTOCOL_VERSION` moved from `2.0.0` to `2.0.1`, the cut that states
the order of a files map's refusals, which `read_file_map` already
followed; and `CORE_ERROR_REGISTRY_VERSION` moved from `8.0.0` to
`8.0.1`, with `mthds.protocol.problem.registry` generated from that
release's registry. The titles of the codes a run can raise, and the
next steps they give a reader other than the method's author, are
reworded for someone following a run of a method they did not write:
`pipe.output_invalid`, for one, is now titled "A step's result does not
have the structure the method declares" where it read "A pipe's output
does not fit its concept". No code, domain, retry verdict, step kind or
status changes.
- **Dev tooling: the development Python is pinned in
`.python-version`**: the Makefile, uv and CI read the version from that
file, `PYTHON_VERSION=<version> make install` still builds `.venv` on
another supported version, and each job of the CI matrices now fails
unless its environment ran the version the job names. Nothing shipped
changes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_019TF9N1QfNEKCTsX1Q6NCf1


<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Releases v0.26.0, promoting the dev branch to main. The package follows
the MTHDS standard's v8.0.1 cut: `MTHDS_STANDARD_VERSION` moves to
`8.0.1`, `PROTOCOL_VERSION` to `2.0.1`, and
`CORE_ERROR_REGISTRY_VERSION` to `8.0.1`, with the vendored core error
registry regenerated from that release. Error titles and the next steps
they give a reader other than the method's author are reworded; no code,
domain, retry verdict, step kind or status changes. `read_file_map`
already followed the refusal order Protocol 2.0.1 states, so nothing
changed for it.

**Breaking changes**
- A manifest whose `mthds_version` pins exactly `8.0.0`, or caps at
`<=8.0.0`, is no longer satisfied; `>=8.0.0`, `^8.0.0` and `~8.0.0`
still pass, and `>=8.0.1` now passes.

**Other changes**
- The development Python is pinned to `3.13` in `.python-version`; the
Makefile, uv and CI read it, and each CI matrix job fails unless its
environment ran the version the job names.
- Every workflow sets `DO_NOT_TRACK=1`, which conformance's
usage-statistics rule R8 requires of every repository's CI.
- Version-check's PR branch names now come through the environment
rather than interpolated into the script, and the `actions/setup-python`
and `actions/checkout` pins were bumped.

<sup>Written for commit d249d73.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/mthds-ai/mthds-python/pull/106?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/mthds-ai/mthds-python/106?returnTo=https%3A%2F%2Fgithub.com%2Fmthds-ai%2Fmthds-python%2Fpull%2F106&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->
  • Oct 29, 2026
  • 59fffcf
  • zip
  • tar.gz
  • Notes
  • Downloads

v0.25.0

Toggle v0.25.0's commit message
Release v0.25.0 (#101)

## Release v0.25.0

Bumps version from `0.24.0` to `0.25.0`. Promotes `dev` → `main`.

### Changelog


### Added

- **The core error registry, generated**:
`mthds.protocol.problem.registry` is generated from the standard's core
error registry `8.0.0`, vendored byte for byte from the standard's
`v8.0.0` release in `vendor/mthds-error-registry/` with its source tag
and commit, and gives a constant per core code (`CoreCode`), a typed
parameters model per code, reading a number strictly as `JsonInteger`
and `JsonNumber` (`mthds.protocol.problem.json_types`) do, never from a
string or a boolean, each code's entry (`CORE_CODE_SPECS`) and the
readings a client falls back on; `CORE_ERROR_REGISTRY_VERSION` in
`mthds.protocol.protocol` declares the version, and `make
check-error-registry` fails when the vendored files, the declared
version and the generated module disagree.
- **`Problem` and `ProblemItem`**: `mthds.protocol.problem.models` reads
the protocol's problem document as received, its undeclared members on
`model_extra`, with `effective_domain` and `effective_step_kind` reading
a value the protocol does not list by the code's family,
`effective_retry` reading an unknown verdict as `no`, `is_retryable`
true only for a retry of `yes`, `outcome_is_unknown`, `params_as` to
read the parameters as the code's model, and each fault of `errors` and
its `suggested_fix` typed; `make_client_problem` in
`mthds.protocol.problem.client_problems` states a client's own problem
from the registry.

### Changed

- **Standard version `8.0.0` and Protocol `2.0.0` (Breaking)**:
`MTHDS_STANDARD_VERSION` moved from `7.0.0` to `8.0.0` and
`PROTOCOL_VERSION` from `1.0.0` to `2.0.0`, the release of the standard
in which every error is a problem document, so a manifest's
`mthds_version` is evaluated against `8.0.0`, and `^7.0.0`, `~7.0.0`,
`7.*` or an exact `7.0.0` no longer pass.
- **Every request error carries a problem (Breaking)**:
`PipelineRequestError(message, *, problem)` requires the failure as a
`Problem`, read on `exc.problem`, and every error this package raises
carries one under a registered code: an argument refused before any
request leaves, by `options`, `method_files` or the client, carries
`client.argument_invalid` naming the argument and the reason, and
`RunStillRunningError`, raised on a `202` from `execute` that names its
run, carries `client.follow_failed` with the run as the problem's
`pipeline_run_id`, while a `202` naming no run raises `ApiResponseError`
carrying `client.outcome_unknown`, since the run may exist.
`BlobUploadError`, raised when an upload target refuses a blob, carries
the target's own problem document, or else the problem its status names,
its message never quoting the target's body, which an object store's
refusal such as S3's `SignatureDoesNotMatch` fills with the presigned
signature and query that grant the write, while `response_body` keeps it
whole, and an upload that gets no usable answer raises it too, with
`status`, `status_text` and `response_body` `None`, carrying
`client.unreachable` or `client.timeout` as a request that creates
nothing does, since a blob's upload is safe to repeat, or
`client.response_unreadable` when the target is malformed, no URL the
client can send to or a header it cannot write, such as a value not in
ASCII or holding a line break, its headers never quoted, and a
`missing_blobs` answer naming a blob the request did not list raises
`ApiResponseError` carrying `client.response_unreadable`, as any success
that is not its route's answer does. A subclass built elsewhere passes a
problem to the constructor, and every error, the `PipelineRequestError`
that `make_argument_invalid_error` raises for a refused argument
included, ends `str(exc)` on the problem's next step, on a line of its
own.
- **`ApiResponseError` reads every answer as a problem by its code
(Breaking)**: a failed answer raises `ApiResponseError` carrying the
runtime's problem document, with `status` and `retry_after` filled from
the answer when the body leaves them out, and an answer that is no
problem document reads as `client.outcome_unknown` when it is a `5xx` on
`execute` or `start`, where a gateway may stand in front of a run that
started, as the problem its status names for `503` on a route that
creates nothing and for `405` on any route, and else as
`client.response_unreadable`. A success whose body is not the route's
answer reads as `client.response_unreadable` on a route that creates
nothing, and on `execute` or `start`, where the runtime accepted the
request and the run may exist, as `client.outcome_unknown`, naming the
run as its `pipeline_run_id` when the body gives the run's id as a
non-empty string; an `execute` or `start` answer whose `pipeline_run_id`
is empty names no run, so it reads as `client.outcome_unknown` naming
none, as a `202` on `execute` does. Neither raises a pydantic or JSON
error, and `str(exc)` then quotes the start of the body the server sent,
except a `missing_blobs` success's, whose upload URLs carry the
permission to write and which only `response_body` keeps. An error body
is decoded refusing `NaN`, `Infinity`, a number past the range of a
double and nesting deeper than `MAX_BODY_NESTING` (512 levels, checked
before parsing), and reads an integral number such as `2.0` as the
integer `2`, as a JavaScript client reads it, while a success body is
decoded from its bytes as `Response.json()` decodes it
(`decode_success_json`): strictly as UTF-8, so that a body that is not
UTF-8 is unreadable rather than read with its bytes replaced, refusing
`NaN` and `Infinity`, and otherwise within Python's own limits, so that
a run's output nested deeper or holding an integer past a double's range
reads whole and its numbers stay as written, a pipe output's `10.0`
reaching the caller as a float. The members `type_uri`, `title`,
`instance`, `server_message`, `error_type`, `error_domain`, `retryable`,
`user_action` and `validation_errors` are gone, read from `exc.problem`
instead, and so are `ProblemDocument` and `UserAction`, while
`request_id` stays, the problem's own `request_id` member or else the
`X-Request-ID` header; `mthds.runners.api.problem.read_error_answer`
reads an answer as an `AnswerReading`, its problem and whether that
problem is the body's own, as
`mthds.protocol.problem.answers.read_answer` does, and the protected
`_raise_api_response_error` receives the problem and
`problem_from_body`.
- **A request that gets no answer raises `ApiTransportError`
(Breaking)**: httpx's transport and decoding exceptions no longer escape
a route; the request raises `ApiTransportError`, carrying
`client.unreachable` when no request left, `client.timeout` when none
came back in time, and on `execute` and `start` `client.outcome_unknown`
once the request has left, since the run may exist. An answer whose body
cannot be read, such as one whose content encoding cannot be decoded, is
no usable answer either, whatever its status: it raises
`ApiTransportError` carrying `client.outcome_unknown` on `execute` and
`start` and `client.unreachable` on any other route, as the TypeScript
client reads it. The client never repeats a request by itself.
- **`ClientNotConfiguredError` replaces `ClientAuthenticationError`
(Breaking)**: the client raises it, a `PipelineRequestError` carrying
`client.not_configured` and the setting, when no API key or base URL
resolves at construction, when the API key holds a character an HTTP
header cannot carry, such as a line break or a space at its end, which
httpx would refuse to write at every request, when the base URL does not
make a valid URL or does not start with `http://` or `https://`, or when
`request_timeout_seconds` is set to anything but an `int` or a `float`,
never a `bool`, holding a finite number of seconds a float can hold,
never negative, each reading as a setting to fix rather than as an
unreachable runtime to retry; the key is never quoted, and neither is a
`user:password@` written in the base URL, which this error's message and
`client.unreachable` name without its userinfo, query and fragment.
- **The validate verdict's items are problem items (Breaking)**:
`InvalidValidationReport.errors` replaces `validation_errors`, each
fault a `ProblemItem` with its `code`, `detail`, `params`, `location`
and `suggested_fix`, both arms carry advisory `warnings` in the same
schema, and the invalid arm's `message` is optional; the reports are
generic over the item type, and `ValidationDiagnostic` is gone.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01MTPBJkbpj7cQMqEfePgfDU


<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Promotes `dev` to `main` for the v0.25.0 release: bumps the version to
0.25.0 and implements the MTHDS standard 8.0.0 and Protocol 2.0.0, in
which every error is a problem document. This is a breaking release.

**Breaking changes**
- `PipelineRequestError` now requires a `problem`; every error this
package raises carries one under a registered code.
- `ApiResponseError` reads any answer as a problem by code; run routes
that get a `202` naming no run, or an unreadable success, raise
`client.outcome_unknown`.
- Requests that get no usable answer raise `ApiTransportError`
(`client.unreachable`, `client.timeout`, or `client.outcome_unknown`)
instead of leaking httpx exceptions.
- `ClientAuthenticationError` is replaced by `ClientNotConfiguredError`,
carrying `client.not_configured`.
- A validate verdict's `validation_errors` become `errors` of
`ProblemItem`s; `ProblemDocument` and `UserAction` are removed.
- A manifest's `mthds_version` is now evaluated against `8.0.0`, so
`^7.0.0`, `~7.0.0`, `7.*`, and `7.0.0` no longer pass.

**New**
- Vendors the core error registry 8.0.0 and generates
`mthds.protocol.problem.registry`: a constant (`CoreCode`) and typed
parameters model per code, strict `JsonInteger`/`JsonNumber` reading,
and a `make check-error-registry` gate that fails when the vendored
files, declared version, and generated module disagree.
- `Problem` and `ProblemItem` read documents as received, keeping
undeclared members on `model_extra`.
- `BlobUploadError` now carries problems too: an object store's refusal,
an unrequested blob in a `missing_blobs` answer, or an upload target the
client cannot send to.

<sup>Written for commit 8b8a905.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/mthds-ai/mthds-python/pull/101?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/mthds-ai/mthds-python/101?returnTo=https%3A%2F%2Fgithub.com%2Fmthds-ai%2Fmthds-python%2Fpull%2F101&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->
  • Oct 18, 2026
  • fc7e3f6
  • zip
  • tar.gz
  • Notes
  • Downloads

v0.22.1

Toggle v0.22.1's commit message
Release v0.22.1 (#102)

## Release v0.22.1

Bumps version from `0.22.0` to `0.22.1` on the `maint/v0.22` maintenance
line, cut from `26b8e80` with the review fixes that apply to it and the
core error registry from MTHDS `v8.0.0`. The merge publishes `0.22.1` to
PyPI, and its GitHub Release is not marked latest, so `v0.25.0` stays
the latest release.

Advances L-261015-823ad2

### Changelog

#### Highlights

**The problem document on the 0.22 line.** This maintenance release
brings the problem work of `0.25.0` to consumers not yet on the files
map that `0.23.0` introduced: every error this package raises carries
the standard's problem document, read by its registry `code`, against
the core error registry `8.0.0`, while a method still travels as
`mthds_contents`. **Nothing of the files map comes with it**: no blob
routes, no `files` argument and no run inputs rule, so
`MTHDS_STANDARD_VERSION` stays `7.0.0` and `PROTOCOL_VERSION` stays
`1.0.0`, while `CORE_ERROR_REGISTRY_VERSION` is `8.0.0`.

#### Added

- **The core error registry, generated**:
`mthds.protocol.problem.registry` is generated from the standard's core
error registry `8.0.0`, vendored byte for byte from the standard's
`v8.0.0` release in `vendor/mthds-error-registry/` with its source tag
and commit, and gives a constant per core code (`CoreCode`), a typed
parameters model per code, reading a number strictly as `JsonInteger`
and `JsonNumber` (`mthds.protocol.problem.json_types`) do, never from a
string or a boolean, each code's entry (`CORE_CODE_SPECS`) and the
readings a client falls back on; `CORE_ERROR_REGISTRY_VERSION` in
`mthds.protocol.protocol` declares the version, and `make
check-error-registry` fails when the vendored files, the declared
version and the generated module disagree.
- **`Problem` and `ProblemItem`**: `mthds.protocol.problem.models` reads
the protocol's problem document as received, its undeclared members on
`model_extra`, with `effective_domain` and `effective_step_kind` reading
a value the protocol does not list by the code's family,
`effective_retry` reading an unknown verdict as `no`, `is_retryable`
true only for a retry of `yes`, `outcome_is_unknown`, `params_as` to
read the parameters as the code's model, and each fault of `errors` and
its `suggested_fix` typed; `make_client_problem` in
`mthds.protocol.problem.client_problems` states a client's own problem
from the registry.

#### Changed

- **Every request error carries a problem (Breaking)**:
`PipelineRequestError(message, *, problem)` requires the failure as a
`Problem`, read on `exc.problem`, and every error this package raises
carries one under a registered code: an argument refused before any
request leaves, by `options`, `method_files` or the client, carries
`client.argument_invalid` naming the argument and the reason, and
`RunStillRunningError`, raised on a `202` from `execute` that names its
run, carries `client.follow_failed` with the run as the problem's
`pipeline_run_id`, while a `202` naming no run raises `ApiResponseError`
carrying `client.outcome_unknown`, since the run may exist. A subclass
built elsewhere passes a problem to the constructor, and every error,
the `PipelineRequestError` that `make_argument_invalid_error` raises for
a refused argument included, ends `str(exc)` on the problem's next step,
on a line of its own.
- **`ApiResponseError` reads every answer as a problem by its code
(Breaking)**: a failed answer raises `ApiResponseError` carrying the
runtime's problem document, with `status` and `retry_after` filled from
the answer when the body leaves them out, and an answer that is no
problem document reads as `client.outcome_unknown` when it is a `5xx` on
`execute` or `start`, where a gateway may stand in front of a run that
started, as the problem its status names for `503` on a route that
creates nothing and for `405` on any route, and else as
`client.response_unreadable`. A success whose body is not the route's
answer reads as `client.response_unreadable` on a route that creates
nothing, and on `execute` or `start`, where the runtime accepted the
request and the run may exist, as `client.outcome_unknown`, naming the
run as its `pipeline_run_id` when the body gives the run's id as a
non-empty string; an `execute` or `start` answer whose `pipeline_run_id`
is empty names no run, so it reads as `client.outcome_unknown` naming
none, as a `202` on `execute` does. Neither raises a pydantic or JSON
error, and `str(exc)` then quotes the start of the body the server sent.
An error body is decoded refusing `NaN`, `Infinity`, a number past the
range of a double and nesting deeper than `MAX_BODY_NESTING` (512
levels, checked before parsing), and reads an integral number such as
`2.0` as the integer `2`, as a JavaScript client reads it, while a
success body is decoded from its bytes as `Response.json()` decodes it
(`decode_success_json`): strictly as UTF-8, so that a body that is not
UTF-8 is unreadable rather than read with its bytes replaced, refusing
`NaN` and `Infinity`, and otherwise within Python's own limits, so that
a run's output nested deeper or holding an integer past a double's range
reads whole and its numbers stay as written, a pipe output's `10.0`
reaching the caller as a float. The members `type_uri`, `title`,
`instance`, `server_message`, `error_type`, `error_domain`, `retryable`,
`user_action` and `validation_errors` are gone, read from `exc.problem`
instead, and so are `ProblemDocument` and `UserAction`, while
`request_id` stays, the problem's own `request_id` member or else the
`X-Request-ID` header; `mthds.runners.api.problem.read_error_answer`
reads an answer as an `AnswerReading`, its problem and whether that
problem is the body's own, as
`mthds.protocol.problem.answers.read_answer` does, and the protected
`_raise_api_response_error` receives the problem and
`problem_from_body`.
- **A request that gets no answer raises `ApiTransportError`
(Breaking)**: httpx's transport and decoding exceptions no longer escape
a route; the request raises `ApiTransportError`, carrying
`client.unreachable` when no request left, `client.timeout` when none
came back in time, and on `execute` and `start` `client.outcome_unknown`
once the request has left, since the run may exist. An answer whose body
cannot be read, such as one whose content encoding cannot be decoded, is
no usable answer either, whatever its status: it raises
`ApiTransportError` carrying `client.outcome_unknown` on `execute` and
`start` and `client.unreachable` on any other route, as the TypeScript
client reads it. The client never repeats a request by itself.
- **`ClientNotConfiguredError` replaces `ClientAuthenticationError`
(Breaking)**: the client raises it, a `PipelineRequestError` carrying
`client.not_configured` and the setting, when no API key or base URL
resolves at construction, when the API key holds a character an HTTP
header cannot carry, such as a line break or a space at its end, which
httpx would refuse to write at every request, when the base URL does not
make a valid URL or does not start with `http://` or `https://`, or when
`request_timeout_seconds` is set to anything but an `int` or a `float`,
never a `bool`, holding a finite number of seconds a float can hold,
never negative, each reading as a setting to fix rather than as an
unreachable runtime to retry; the key is never quoted, and neither is a
`user:password@` written in the base URL, which this error's message and
`client.unreachable` name without its userinfo, query and fragment.
- **The validate verdict's items are problem items (Breaking)**:
`InvalidValidationReport.errors` replaces `validation_errors`, each
fault a `ProblemItem` with its `code`, `detail`, `params`, `location`
and `suggested_fix`, both arms carry advisory `warnings` in the same
schema, and the invalid arm's `message` is optional; the reports are
generic over the item type, and `ValidationDiagnostic` is gone.



🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Publishes v0.22.1, a maintenance release that brings the problem
document work of 0.25.0 to the 0.22 line: every error now carries a
standard problem document read from the core error registry 8.0.0, while
`MTHDS_STANDARD_VERSION` stays 7.0.0 and `PROTOCOL_VERSION` stays 1.0.0.

**Breaking changes**

- `PipelineRequestError` now requires a `Problem`; every error raises
under a registered code, including `client.argument_invalid` for refused
arguments.
- `ApiResponseError` reads every answer as a problem by its code, with
fallbacks for non-problem bodies (status readings,
`client.response_unreadable`, `client.outcome_unknown`).
- Requests that get no usable answer raise `ApiTransportError`
(`client.unreachable`, `client.timeout`, or `client.outcome_unknown` on
run routes).
- `ClientNotConfiguredError` replaces `ClientAuthenticationError`,
covering API key, base URL, and timeout validation.
- `/validate` verdict errors and warnings are now `ProblemItem`s.

**Release infrastructure**

- Release checks now run on pull requests into `maint/v*`;
`version-check` requires a release into a maintenance line to carry an
`X.Y.Z` version.
- `publish.yml` builds and publishes from `maint/v0.22` and marks the
GitHub release as not latest, so `v0.25.0` stays the latest release.

<sup>Written for commit 2f1e657.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/mthds-ai/mthds-python/pull/102?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/mthds-ai/mthds-python/102?returnTo=https%3A%2F%2Fgithub.com%2Fmthds-ai%2Fmthds-python%2Fpull%2F102&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->
  • Oct 18, 2026
  • cac0503
  • zip
  • tar.gz
  • Notes
  • Downloads

v0.24.0

Toggle v0.24.0's commit message
Release v0.24.0 (#100)

## Release v0.24.0

Bumps version from `0.23.0` to `0.24.0`. Promotes `dev` → `main`.

### Changelog

### Changed

- **A run's inputs file is out of the method tree (Breaking)**:
`list_method_tree` and `list_method_tree_at_root` keep a regular file or
a symbolic link named exactly `inputs.json` or `inputs.toml`, at any
depth, out of every tree under the new `ExclusionRule.RUN_INPUTS`
(`run_inputs`), which a reference refused as not in the tree names in
`excluded_by`, while a directory of either name excludes nothing.
`read_file_map`, and `PipelexRunner` with it, refuses a key whose last
segment is either name as `excluded_name`, so a tree that held such a
file has a new digest, and a method ships example inputs under any other
name, such as `examples/invoice-inputs.json`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Release v0.24.0, promoting `dev` to `main` with a breaking change: a
run's inputs file (a regular file or symbolic link named exactly
`inputs.json` or `inputs.toml`, at any depth) is now kept out of every
method tree, so one run's real data never travels with the method.

**Breaking changes**

- A tree that held such a file has a new digest; ship example inputs
under any other name, such as `examples/invoice-inputs.json`, since
names match byte for byte (`Inputs.json`, `inputs.jsonc` are ordinary
members).
- `read_file_map`, and `PipelexRunner` with it, refuses a files-map key
whose last segment is either name as `excluded_name`; a directory of
either name excludes nothing.
- A refused reference names the new `run_inputs` rule in `excluded_by`;
the method-tree corpus is re-vendored from conformance dev to pin the
behavior.

<sup>Written for commit 3da975c.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/mthds-ai/mthds-python/pull/100?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/mthds-ai/mthds-python/100?returnTo=https%3A%2F%2Fgithub.com%2Fmthds-ai%2Fmthds-python%2Fpull%2F100&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->
  • Oct 17, 2026
  • 1eb9cec
  • zip
  • tar.gz
  • Notes
  • Downloads

v0.23.0

Toggle v0.23.0's commit message
Release v0.23.0 (#98)

## Release v0.23.0

Bumps version from `0.22.0` to `0.23.0`. Promotes `dev` → `main`.

### Changelog

### Added

- **Sending a method by hash**: `MthdsAPIClient.missing_blobs` and
`upload_blob` call the protocol's optional blob routes, typed by
`BlobRef`, `MissingBlobsRequest`, `MissingBlobsResult`, `MissingBlob`
and `UploadTarget`, and `prepare_files` and
`prepare_files_from_contents` build a request's `files` from a listed
tree or from bytes at hand: inline when the map, written as compact JSON
in UTF-8 so that Base64 counts as its encoded text, is at most
`DEFAULT_INLINE_TREE_MAX_BYTES` (256 KiB), or when the runner keeps no
blob store, and otherwise uploading only the blobs the runner lacks and
sending every file by hash. Files are read and hashed off the event
loop, an upload carries exactly its target's headers and never the API
key, and a refused one raises `BlobUploadError`, whose URL keeps no
userinfo, query or fragment.
- **`VersionInfo.blob_store`**: the `version()` handshake reads whether
the runner keeps a blob store, false when the runner does not say.
- **`EmptyMethodTreeError`**: `list_method_tree` and
`list_method_tree_at_root` refuse a directory whose own tree is empty
with this `MethodTreeRefusedError`, which also carries the listing's
`root`, `excluded_files`, `excluded_directories` and `raw_paths`, so a
caller that lists a directory to find the packages and repositories
nested in it learns them even when the directory holds nothing but
nested packages. The refusal's code stays `empty_tree` and its record
stays the conformance corpus's, so a caller catching
`MethodTreeRefusedError` is unaffected; its message now says when the
root is itself a virtual environment.
- **Resolving a file reference over a set of tree paths**:
`resolve_reference_in_paths` runs the standard's resolution steps, the
same implementation `resolve_reference` runs, in a set of tree paths
rather than a `MethodTree`, for a runtime that holds only a tree's
listing; with `holder=None` it resolves from the root a reference
written in no file of the tree, `is_one_file_tree` gives the one-file
tree's refusal, and a refusal as not in the tree names no membership
rule, which a set of paths does not record. Steps 1 and 3 in URL context
are public as `url_path_of` and `percent_decode_url_path`, which refuses
as `reference_invalid`, naming the path, what step 3 refuses, and
`lexical_join` takes `holder=None` to join from the root.

### Changed

- **A method travels as `files` (Breaking)**: `MthdsAPIClient.execute`,
`start` and `validate`, the `MTHDSProtocol` interface and
`PipelexRunner` take the method as `files`, a map from tree path to file
entry typed `MethodFiles`, in place of `mthds_contents`, and the
protected `_post_validate` seam takes `files` too; an empty map is
refused before any request. A runner that still accepts inline
`mthds_contents` receives it through `extra`, and `PipelexRunner` writes
the map out as a directory for `pipelex run bundle` and `pipelex
validate bundle`, refusing a hash entry.
- **Typed file entries (Breaking)**: `encode_file_entry` and
`encode_file_map` return `FileEntry` values, a `str`, a
`Base64FileEntry` or a `HashFileEntry`, instead of plain dictionaries,
and `pydantic_core.to_json` writes them in their wire form.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Promotes `mthds` to v0.23.0, the breaking release in which a method
travels as a `files` map of typed file entries instead of inline
`mthds_contents`, and the API client can send a tree by hash through the
protocol's optional blob routes.

**Breaking changes**
- `execute`, `start`, `validate`, `MTHDSProtocol`, and `PipelexRunner`
now take the method as `files`; inline `mthds_contents` is only passed
through `extra`.
- `encode_file_entry` and `encode_file_map` return typed `FileEntry`
values instead of plain dictionaries.

**Added**
- `prepare_files` sends a tree inline when its compact JSON is at most
256 KiB or the runner keeps no blob store, otherwise uploading only the
blobs the runner lacks and referencing each file by hash.
- `VersionInfo.blob_store` reports runner blob-store support; uploads
never send the API key, and a refused upload raises `BlobUploadError`.
- `EmptyMethodTreeError` carries the root and what the listing kept out.
- `resolve_reference_in_paths` resolves a reference over a set of tree
paths, with `url_path_of` and `percent_decode_url_path` public.

<sup>Written for commit 5140ba8.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/mthds-ai/mthds-python/pull/98?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/mthds-ai/mthds-python/98?returnTo=https%3A%2F%2Fgithub.com%2Fmthds-ai%2Fmthds-python%2Fpull%2F98&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->
  • Oct 16, 2026
  • 654db43
  • zip
  • tar.gz
  • Notes
  • Downloads

v0.22.0

Toggle v0.22.0's commit message
Release v0.22.0 (#93)

## Release v0.22.0

Bumps version from `0.21.0` to `0.22.0`. Promotes `dev` → `main`.

### Changelog

### Added

- **`mthds.method_tree`**: lists a method tree from a directory or a
`.mthds` file named alone (`list_method_tree`,
`list_method_tree_at_root`), rooted by Manifest Discovery and filtered
by the membership rule, the tree's own `.gitignore` files and `[package]
exclude` matched as git matches them, and computes its tree digest. A
refused tree raises `MethodTreeRefusedError`, whose `refusal.code` is
the conformance corpus's code, and `TreeLimits` stops a walk at a file
count, a total size or a file size before any file is hashed, raising
`TreeLimitError`.
- **File references and `PipeFunc` modules**: `resolve_reference`
resolves a reference written in a bundle field or a template URL by the
standard's resolution steps, the first failing step deciding the refusal
and a URL with a scheme, an authority or no path left as written, and
`locate_function` maps a `function_name` to its module, `<path>.py` or
`<path>/__init__.py`, refusing a segment that is not an identifier, is a
keyword or changes under NFKC.
- **File entries**: `read_file_map` reads a map of file entries from its
JSON text as a receiver of `files` does, against a `BlobStore`, refusing
a key given twice, non-canonical Base64 and a `size` written with a
fraction or an exponent, and `encode_file_map` writes one, with
`Base64FileEntry` and `HashFileEntry` as the strict models of the object
forms.
- **`[package] exclude`**: `MethodsManifest.exclude` reads and writes
the manifest's exclude patterns, refusing an entry holding a line break.
- **Reading a package's manifest at its root**:
`read_package_manifest_at` reads the regular file named exactly
`METHODS.toml` in one directory and never looks above it, and
`ManifestReadError` is the `ManifestError` raised when a manifest, or a
directory on the way to it, cannot be read, or when `METHODS.toml` is
not a regular file.

### Changed

- **Standard version `7.0.0` and Protocol `1.0.0` (Breaking)**:
`MTHDS_STANDARD_VERSION` moved from `5.0.0` to `7.0.0` and
`PROTOCOL_VERSION` from `0.7.0` to `1.0.0`, so a manifest's
`mthds_version` is evaluated against `7.0.0`, and `^5.0.0`, `~5.0.0`,
`5.*` or `6.0.0` no longer pass. `MthdsAPIClient` still sends a run's
bundles as `mthds_contents`, not yet as the protocol's `files`.
- **The lock records tree digests (Breaking)**: a `methods.lock` entry's
`hash` is now `digest`, the tree digest of the package's cached copy
read back as written, `LockedPackage.hash` is `LockedPackage.digest` and
`compute_directory_hash` is replaced by `compute_package_digest`. A lock
carrying `hash` is refused by `parse_lock_file` with a message saying
`lock` regenerates it, and its old hash is never verified.
- **The package cache holds the package's tree, in a new layout
(Breaking)**: `store_in_cache` writes the fetched package's method tree,
each file at its tree path and with its permission bits, rather than the
whole clone minus `.git/`, and refuses a package whose tree the standard
refuses, such as one holding a symbolic link. A copy is written into a
hidden sibling directory renamed into place once complete, so an
interrupted store is never taken for a cached package, and `write_tree`
refuses a destination already holding files. The cache's layout is
versioned, a package now living at
`{cache_root}/v2/{address}/{version}/`, so a copy written before is
never read back as a tree: the package is fetched again, and the old
copies under `{cache_root}/{address}/` can be deleted.
- **Manifest Discovery stops at any `.git` entry (Breaking)**:
`find_package_manifest` matches `METHODS.toml` and `.git` by their exact
names whatever the file system's letter case, and stops at a `.git` file
or symbolic link as it stops at a `.git` directory. It asks each
directory for those names and lists it only when one answers, so an
ancestor that may be searched but not read stands in the way only when
it holds such an entry, and that case raises `ManifestReadError`.
- **A dependency's manifest is read at its root only (Breaking)**: the
dependency resolver and `make_package_from_directory` read the regular
file named exactly `METHODS.toml` in the package's own directory, so a
`methods.toml` is no manifest, a linked `METHODS.toml` is refused as a
`DependencyResolveError` or a `ManifestError`, and the lookup never
walks up to the manifest of the package holding the dependency.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Promotes `dev` to `main` as release v0.22.0: version bumps to `0.22.0`,
and the package moves to standard `7.0.0` and protocol `1.0.0`.

**New Features**
- Adds `mthds.method_tree`, which lists a directory or a lone `.mthds`
file as a method tree per standard 7.0.0, matching `.gitignore` and
`[package] exclude` with a port of git's own matching, computes the tree
digest, reads maps of file entries, resolves file references, and
locates `PipeFunc` modules.
- Vendors the shared method-tree conformance corpus and runs its cases
as tests.
- `MethodsManifest.exclude` reads and writes `[package] exclude`.

**Migration**
- Regenerate `methods.lock` files: entries now record the tree `digest`
in place of `hash`, and a lock still carrying `hash` is refused.
- The package cache moves to `{cache_root}/v2/{address}/{version}/` and
holds the fetched method tree rather than the clone minus `.git/`;
copies written before this release are never read and can be deleted.
- A dependency's manifest is now read at its root only, and Manifest
Discovery stops at any `.git` entry.

<sup>Written for commit a38d7da.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/mthds-ai/mthds-python/pull/93?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/mthds-ai/mthds-python/93?returnTo=https%3A%2F%2Fgithub.com%2Fmthds-ai%2Fmthds-python%2Fpull%2F93&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->
  • Oct 15, 2026
  • 5a1fd30
  • zip
  • tar.gz
  • Notes
  • Downloads

v0.21.0

Toggle v0.21.0's commit message
Release v0.21.0 (#90)

## Release v0.21.0

Bumps version from `0.20.0` to `0.21.0`. Promotes `dev` → `main`.

### Changelog

### Changed

- **Standard version `5.0.0` (Breaking)**: `MTHDS_STANDARD_VERSION`
moved from `4.0.0` to `5.0.0`, the cut in which a PipeJudge judges the
evidence its `prompt` presents and asks its `question` or several
`questions`, yes/no criteria declare both answers, and the native set is
re-pinned at `5.0.0` with an optional `label` on `Rating`; this package
reads no PipeJudge field, and the inputs-template projection takes a
`Rating` slot's fields from the descriptor the runner sends, so the
claim is the only code that moves, and a compact `Rating` slot's
template carries `"label": "label_value"` between `level` and
`confidence` once the runner's descriptor states the new field. A
manifest's `mthds_version` is evaluated against `5.0.0`, so `>=4.0.0`
and `^5.0.0` pass while `^4.0.0`, `~4.0.0`, `4.*` or an exact `4.0.0` no
longer does, and `pipelex` stamps the crates it normalizes with `5.0.0`,
whose natives are the set pinned at `5.0.0`. `PROTOCOL_VERSION` is
unchanged.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01F4YC4Xavmx3QTxn7HwsQ29


<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Releases v0.21.0, claiming MTHDS standard `5.0.0` so `pipelex` can pin
the 5.0.0 native set and its conformance job turns green.

- Moves `MTHDS_STANDARD_VERSION` from `4.0.0` to `5.0.0`;
`PROTOCOL_VERSION` is unchanged.
- Manifests constrained to `^4.0.0`, `~4.0.0`, `4.*`, or an exact
`4.0.0` no longer satisfy `mthds_version`; `>=4.0.0` and `^5.0.0` still
pass.
- Adds the optional `Rating.label` to the inputs-template projection and
pins the rendered JSON byte-for-byte to match the TypeScript twin.
- Bumps package version in `pyproject.toml` and `uv.lock` and updates
the changelog and versioning doc.

**Migration**
- Manifests pinning an older 4.x constraint must be bumped to `>=5.0.0`
(or `^5.0.0`) to satisfy `mthds_version`.

<sup>Written for commit 5fb27fe.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/mthds-ai/mthds-python/pull/90?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/mthds-ai/mthds-python/90?returnTo=https%3A%2F%2Fgithub.com%2Fmthds-ai%2Fmthds-python%2Fpull%2F90&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->
  • Oct 10, 2026
  • b6b679f
  • zip
  • tar.gz
  • Notes
  • Downloads
PreviousNext
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.