From 5a68aa84f635afd2bcad9d1b1ba3bbb0f977435c Mon Sep 17 00:00:00 2001 From: Ayla Croft Date: Sun, 29 Nov 2026 15:22:07 -0500 Subject: [PATCH] Release 0.11.0: freeze-readiness and a security floor; two documented breaks The version; release_markers!("0.11.0") on docs/public-api.txt wrote nothing, since no public function moved. The CHANGELOG's [0.11.0] heading, dated, with a paragraph naming the two breaks (the request's context under :mcp in dispatch's third argument; schema_version 4 and the resource_template node kind, with bytes at 3 still verifying), the security floor (the optional Bandit requirement from 0.10.1's ~> 1.5 to ~> 1.15), and the road: the host contract changed, so 0.12.0 is the quiet minor in which this surface must stand, then 1.0.0. README: ~> 0.11.0, six breaks at the minor, and the requirement test refusing 0.10.1 across the breaks. UPGRADING: the pin, a 0.11.0 row, a paragraph, and the road list, the line that put 1.0.0 after 0.10.0 superseded by an appended sentence and not edited. SECURITY: 0.11.x supported, 0.10.x superseded, and the Bandit advice for a host still on 0.10.x. api-stability's example and pin; provenance's examples at 0.11.0, the first release built under tools/hex-version; the roadmap; HANDOFF; "the release after 0.10.1" becomes 0.11.0 in graph.ex and the canonical page; SLICES.md gains 0.10.1 and 0.11.0. The 1.15 security entry now says 0.10.1 shipped ~> 1.5, since the 1.13 floor beside it was never released alone. The wire recording's ten version lines and the two wire hashes re-pinned from one leg, by the rule in wire_bytes_test.exs; nothing else moved. Signed-off-by: Ayla Croft --- CHANGELOG.md | 21 ++++++++++++-- HANDOFF.md | 43 +++++++++++++++++++--------- README.md | 12 ++++---- SECURITY.md | 10 +++++-- SLICES.md | 17 +++++++++++ UPGRADING.md | 29 +++++++++++++++++-- docs/api-stability.md | 4 +-- docs/connectome-canonical.md | 2 +- docs/provenance.md | 7 +++-- docs/roadmap.md | 27 +++++++++++------ lib/beam_mcp/connectome/graph.ex | 2 +- mix.exs | 2 +- test/beam_mcp/readme_claims_test.exs | 18 +++++++----- test/beam_mcp/wire_bytes_test.exs | 4 +-- test/fixtures/wire/pre-017.json | 20 ++++++------- 15 files changed, 156 insertions(+), 62 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 134b3822..c7c564f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,21 @@ All notable changes to this project are documented here. The format follows ## [Unreleased] +## [0.11.0] - 2026-11-29 + +Freeze-readiness, and a security floor. Two documented breaks, each with how to tell whether +you are affected: the request's context reaches dispatch under a reserved `:mcp` key (the host +contract), and resource templates become nodes, so the canonical bytes move to +`schema_version` `4` (the exported bytes; bytes at `3` still verify). Beside them: the wire's +bytes no longer depend on the OTP release, a growth table says which value sets may grow, and +the optional `Bandit` requirement rises from `0.10.1`'s `~> 1.5` to `~> 1.15`, for the sixteen +advisories fixed in 1.13, 1.14 and 1.15 (both Security entries below). No public function was added, removed or renamed (`docs/public-api.txt` did not move). +Because the host contract changed, the stand `1.0.0` waits for restarts here: `0.12.0` is the +quiet minor in which this surface must stand unchanged, then `1.0.0`. Move with +`{:beam_mcp, "~> 0.11.0"}` after reading the two breaks. `beam_mcp_signer` `0.3.0` +(requirement `~> 0.7`) resolves beside it, and the `BeamMCP.Signer` behaviour it implements is +unchanged. + ### Changed (BREAKING, the host contract): the request's context reaches dispatch under `:mcp` - The host's dispatch function receives, in its third argument, its own `dispatch_opts` @@ -101,8 +116,10 @@ All notable changes to this project are documented here. The format follows ### Security: Bandit 1.15 or later -- The optional requirement moves from `{:bandit, "~> 1.13"}` to `{:bandit, "~> 1.15"}`. `Bandit` - published fourteen advisories against 1.13 after it shipped. Twelve, fixed in 1.14.0, cover +- The optional requirement moves to `{:bandit, "~> 1.15"}`, from the `~> 1.13` of the entry + below, which was set first and is released only with this one: from `0.10.1`, the + requirement moves from `~> 1.5` to `~> 1.15`. `Bandit` published fourteen advisories against + 1.13 after it shipped. Twelve, fixed in 1.14.0, cover HTTP/2 flow control and the stream count, HPACK and SETTINGS work, 1-byte chunked and WebSocket frames, chunk extensions that smuggle a request, `Content-Length` parsing, and the body read timeout reset by control frames. GHSA-pxjf-g536-7r93 (1-byte HTTP/2 DATA frames) diff --git a/HANDOFF.md b/HANDOFF.md index 58e62fef..0b4d9f2d 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -3,10 +3,10 @@ SPDX-FileCopyrightText: 2026 Sudo Apt Holdings LLC SPDX-License-Identifier: Apache-2.0 --> -# HANDOFF: beam_mcp, release 0.10.1 prepared (a security patch); publish and tag are the owner's +# HANDOFF: beam_mcp, release 0.11.0 prepared (freeze-readiness and a security floor); publish and tag are the owner's Tag and publish are owner steps: never `mix hex.publish`, never push a tag, never bump the -version in `mix.exs`. For 0.10.1 the version bump is this release commit, reviewed like any +version in `mix.exs`. For 0.11.0 the version bump is this release commit, reviewed like any other change; publishing and tagging remain the owner's, in the order the runbook below gives. The slice records (plans, findings, lane reports, signoffs, archived gate runs) live in the @@ -15,6 +15,24 @@ happened. ## State +- **`0.11.0` is freeze-readiness and a security floor, with two documented breaks.** The host + contract: dispatch's third argument carries a reserved `:mcp` key (the request's `_meta`, the + client's capabilities, the revision it is served under). The exported bytes: resource + templates are `:resource_template` nodes and the canonical bytes move to `schema_version` `4`, + with `3` bytes kept as goldens and still verifying. Beside them: every map on the wire is + written with sorted keys, so the wire's bytes no longer depend on the OTP release (a + cross-leg sha256 pins them); `docs/api-stability.md` gains the growth table, held by a census + over the compiled types; will-not-implement entry 13 (no change notification advertised that + is not delivered); a request the HTTP adapter rejects is the adapter's to answer. The + security floor: the optional `Bandit` requirement is `~> 1.15` (`0.10.1` shipped `~> 1.5`), + for the advisories fixed in 1.13, 1.14 and 1.15, and the lock is off every advised version. + On that floor no control frame holds an HTTP/2 body read (measured per frame kind and pinned + by a test each); `connection_timeout:` stays as the backstop. `docs/public-api.txt` did not + move (`release_markers!("0.11.0")` wrote nothing). `mix.exs` says `0.11.0`; the README + recommends `~> 0.11.0` and the requirement test refuses `0.10.1` across the breaks. Because + the host contract changed, the stand `1.0.0` waits for restarts: `0.12.0` is the quiet minor, + then `1.0.0`. The first release built under `tools/hex-version` (Hex 2.5.3): install it + before publishing (`mix local.hex 2.5.3 --force`, from inside the clone). - **`0.10.1` is a security patch on `0.10.0`**: the project's own security review (three independent lanes, every finding reproduced first) found JSON booleans and `null` reaching dispatch as strings, the advertised schema enforced at the top level only, stdio fault @@ -128,10 +146,10 @@ happened. ## What is next -**`1.0.0`**, once this minor has stood: the README's condition, that the public API and the -stated threat model have each survived a full minor release unchanged. `0.10.0` moved no public -entry, and its one threat-model edit corrects a status (provenance and the SBOM shipped), not -what the model defends. The freeze is `docs/public-api.txt` as it stands; `docs/api-stability.md`'s +**`0.12.0`, the quiet minor**, then **`1.0.0`** once it has stood: the README's condition, that +the public API and the stated threat model have each survived a full minor release unchanged. +`0.11.0` changed the host contract and the threat model's HTTP/2 row, so the stand starts +again at `0.12.0`. The freeze is `docs/public-api.txt` as it stands; `docs/api-stability.md`'s 1.x rules take effect. After it, as additions at the minor: the federation seam (held on another board's answer), effective connectivity, the Tasks extension. A compiler-tracer census (module-body code run at compile time) is scheduled with its lift measured. Sign-aware @@ -141,13 +159,10 @@ workaround in `tools/sbom.sh` goes when an upstream release reads it). ## Owner decisions still open -1. **Subscriptions.** `resources/subscribe` is not in `2026-07-28` (`subscriptions/listen` - replaced it, a long-lived stream the stateless HTTP transport cannot hold); the capability - is advertised with `subscribe: false`. Whether to build `subscriptions/listen` on stdio, the - legacy pair on the legacy era only, or neither and say so on the will-not-implement page. -2. **A resource template in the declared connectome.** The builder reads a `uri` per entry; a - template has a `uri_template` and is enumerated as unreadable: true and unflattering. - Whether a template is a node, and of what kind. +1. **Subscriptions.** Decided in `0.11.0`: neither, and said so: will-not-implement entry 13 + (never advertise `listChanged` or `subscribe` without serving `subscriptions/listen`). +2. **A resource template in the declared connectome.** Decided in `0.11.0`: a node of the kind + `:resource_template`, identified by its uri template (`schema_version` `4`). 3. **`tools/list` pagination.** The cursor exists and both resource lists and `prompts/list` use it; adopting it on `tools/list` changes an existing result and waits for the word. 4. **The diff encode's cost follows the caller's heap.** Measured while rebuilding the @@ -177,7 +192,7 @@ workaround in `tools/sbom.sh` goes when an upstream release reads it). - The `2025-11-25` revision is served on stdio only; over HTTP the conformance row for it is 0 / 30 by design, and the README says so beside the number. -## The release steps, the runbook (followed for 0.6.0 to 0.9.0; the same for 0.10.0) +## The release steps, the runbook (followed for 0.6.0 to 0.10.1; the same for 0.11.0) 1. The release PR merged to `main` by rebase (the ruleset requires two green checks); `main` is then the release commit. diff --git a/README.md b/README.md index f1fe7afd..423059ce 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,12 @@ and refuses one that is not; what a tool *does* is the host's business. ```elixir def deps do - [{:beam_mcp, "~> 0.10.0"}] + [{:beam_mcp, "~> 0.11.0"}] end ``` -**`~> 0.10.0`, not the more usual `~> 0.10`.** While this package is `0.x` it documents breaks -at the **minor** position, and it has used that position five times: `0.2.0` removed two +**`~> 0.11.0`, not the more usual `~> 0.11`.** While this package is `0.x` it documents breaks +at the **minor** position, and it has used that position six times: `0.2.0` removed two fields from results for legacy-declared requests, `0.3.0` added the HTTP transport and the `ttlMs`/`cacheScope` fields `2026-07-28` requires on `tools/list`, `0.4.0` replaced the catalog behaviour a host implements (`BeamMCP.ToolCatalog` by `BeamMCP.Catalog`), a break in @@ -30,11 +30,13 @@ the host contract rather than on the wire, and `0.5.0` reads a request's `_meta` writes and moves `schema_version` to `2` (in the exported bytes), and requires a catalog's `resources` and `prompts` lists to hold the package's structs (the host contract), and `0.6.0` names the canonical envelope's algorithm in its bytes and moves `schema_version` to `3` (in the +exported bytes), and `0.11.0` hands dispatch the request's context under a reserved `:mcp` key +(the host contract) and makes resource templates nodes, moving `schema_version` to `4` (the exported bytes), each with a how-to-tell sentence in the changelog (`0.7.0` is an addition at the minor, the signer seam; `0.8.0` a quiet minor in which no public entry moved; `0.9.0` two additions at the minor, the `:server` seam and the scheme beside the signature; `0.10.0` a -quiet minor again; none a break). `~> 0.10` would admit a `0.11.0`, so it -would carry you across the next such break on a routine `mix deps.update`; `~> 0.10.0` does not. The tighter form is deliberate and is not an over-pin to be tidied away. What the pin +quiet minor again; none a break). `~> 0.11` would admit a `0.12.0`, so it +would carry you across the next such break on a routine `mix deps.update`; `~> 0.11.0` does not. The tighter form is deliberate and is not an over-pin to be tidied away. What the pin buys is written down: [`docs/api-stability.md`](docs/api-stability.md) says what is public (what ex_doc lists, `docs/public-api.txt` line by line), how a deprecation runs (three steps, three minors), and what a `0.x` break must say; a census holds the surface to that record. diff --git a/SECURITY.md b/SECURITY.md index 7a14b355..c8e28950 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -110,7 +110,8 @@ entry says so when it does. | version | supported | |---|---| -| `0.10.x` | yes | +| `0.11.x` | yes | +| `0.10.x` | no, superseded | | `0.9.x` | no, superseded | | `0.8.x` | no, superseded | | `0.7.x` | no, superseded | @@ -121,8 +122,11 @@ entry says so when it does. | `0.2.x` | no, superseded | | `0.1.x` | no, superseded | -Within `0.10.x`, take `0.10.1` or later: `0.10.0` and earlier carry the defects its CHANGELOG -entry lists. +A host that serves the HTTP transport should be on `Bandit` 1.15 or later: every release +before it carries published advisories (two fixed in 1.13, twelve in 1.14.0, one each in 1.14.1 +and 1.15.0), and `0.11.0` requires `~> 1.15`. A host still on `0.10.x` should take `0.10.1` +(`0.10.0` and earlier carry the defects its CHANGELOG entry lists) and raise its own `Bandit` +requirement to `~> 1.15`, which `0.10.1`'s `~> 1.5` admits. This table names what a single maintainer can actually keep. Read it with the acknowledgement and assessment windows above, which are the commitments that matter more. diff --git a/SLICES.md b/SLICES.md index 56a28e7e..976aba44 100644 --- a/SLICES.md +++ b/SLICES.md @@ -81,6 +81,23 @@ CHANGELOG entry of the release it shipped in. | 042 | README's schedule follows the road to 1.0.0 | [#73](https://github.com/ScriptKittyOS/beam_mcp/pull/73) | | 043 | Release 0.10.0 | [#73](https://github.com/ScriptKittyOS/beam_mcp/pull/73) | +## 0.10.1 and 0.11.0 + +| slice | what it committed | pull request | +|---|---|---| +| 044 | Release 0.10.1, the fixes from the project's own security review | none: fixed privately under `SECURITY.md`, release commit `289dbdb` | +| 045 | The adapter's exceptions go back to the adapter; Bandit 1.13; one Hex for the release tarball | [#89](https://github.com/ScriptKittyOS/beam_mcp/pull/89) | +| 046 | Every leg at its line's patched OTP floor; FIPS on x86_64 and aarch64 | [#90](https://github.com/ScriptKittyOS/beam_mcp/pull/90) | +| 047 | Freeze-readiness: the `:mcp` request context, `schema_version` 4, sorted wire keys, the growth table | [#92](https://github.com/ScriptKittyOS/beam_mcp/pull/92) | +| 049 | The conformance suite on x86_64 and aarch64, held to one baseline | [#91](https://github.com/ScriptKittyOS/beam_mcp/pull/91) | +| 051 | Every CI runner named by its image; the box leg on Ubuntu 26.04's arm64 runner | [#93](https://github.com/ScriptKittyOS/beam_mcp/pull/93) | +| 052 | Every gate leg prints the OpenSSL its `:crypto` linked | [#94](https://github.com/ScriptKittyOS/beam_mcp/pull/94) | +| 054 | A reported timing flake measured; the large integers in a tool written with separators | [#86](https://github.com/ScriptKittyOS/beam_mcp/pull/86) | +| 055 | A weekly hunt for flaky tests, every run replayable by its seed | [#95](https://github.com/ScriptKittyOS/beam_mcp/pull/95) | +| 056 | The flake hunt reads Elixir 1.20's test summary | [#96](https://github.com/ScriptKittyOS/beam_mcp/pull/96) | +| 060 | Bandit 1.15 as the security floor, and the lock off every advised version | [#106](https://github.com/ScriptKittyOS/beam_mcp/pull/106) | +| 061 | Release 0.11.0 | this pull request | + Work that was not a numbered slice (the OpenSSF Best Practices pages, continuity, dependency updates) is in the pull requests and the CHANGELOG. A slice that lands later is added here in the pull request that lands it. diff --git a/UPGRADING.md b/UPGRADING.md index c8c2f927..85a553c4 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -13,8 +13,8 @@ says **BREAKING**, which the census requires. ## The rule for `0.x` -Breaks land at the **minor** position and nowhere else. Pin `~> 0.10.0` (the current minor, -three numbers), not `~> 0.10`: the tighter pin stops at the next minor, which is where the +Breaks land at the **minor** position and nowhere else. Pin `~> 0.11.0` (the current minor, +three numbers), not `~> 0.11`: the tighter pin stops at the next minor, which is where the next documented break can be, so a routine `mix deps.update` never carries you across one. To move a minor: read the release's rows below and their CHANGELOG entries, apply each "how to tell" sentence to your host, then raise the pin. @@ -29,6 +29,7 @@ to tell" sentence to your host, then raise the pin. | `0.5.0` | the wire, the exported bytes, the host contract | "Changed (BREAKING): the request `_meta` …", "Changed (BREAKING): the sign vocabulary …", and the structs requirement under the "Added: the resources primitive" and "Added: the prompts primitive" entries | a request's `_meta` is read at `params._meta` and refused at the top level; the sign vocabulary renames the one sign the package writes and `schema_version` becomes `2`; a catalog's `resources` and `prompts` lists must hold the package's structs | | `0.6.0` | the exported bytes | "Changed (BREAKING, the exported bytes): the canonical envelope names its algorithm; `schema_version` 3 …" | a verifier that pins `schema_version: 2` or hashes without reading the algorithm must be updated (`docs/connectome-canonical.md`, "Versions") | | `0.9.0` | nothing breaks: two additions placed at the minor by policy | "Added: the server seam, `:server` on both transports, a module above the core" and "Added: the scheme beside the signature, `scheme:` and `key_id:` in `signature/3`'s return" | a host that passes no `:server` and reads no `scheme:` changes nothing; a host putting a wrapper above the core passes its module under `:server` (`@behaviour BeamMCP.Server`; HTTP reaches `new/1` and `handle_message/2`, stdio those and `shutdown?/1`); a host matching `signature/3`'s return exactly reads five members now, the two new ones `nil` unless it passed them | +| `0.11.0` | the host contract, the exported bytes | "Changed (BREAKING, the host contract): the request's context reaches dispatch under `:mcp`" and "Changed (BREAKING, the exported bytes): `schema_version` 4 and the `resource_template` node kind" | rename any `:mcp` key in your `dispatch_opts`, and match or fetch the keys your dispatch reads rather than its whole third argument; a verifier that pins `schema_version` `3`, or matches a node's kind exhaustively, accepts `4` and `resource_template` (bytes at `3` still verify, `docs/connectome-canonical.md`, "Versions"); a host serving the HTTP transport resolves `Bandit` `~> 1.15` | `0.6.0` also restates the OTP floor's reason (OTP 27's trace sessions, which the connectome tracer now runs in), not a new floor (27 was already the floor), and changes what the tracer @@ -80,6 +81,18 @@ arrived as strings); a host that compared against `"true"` compares against `tru keyword, where it had been advertised and ignored. No public entry moved; `~> 0.10.0` admits the patch. Take `beam_mcp_signer` `0.2.1` beside it. +**`0.11.0` breaks two things, and raises a security floor.** Dispatch's third argument is your +`dispatch_opts` followed by one reserved key, `:mcp`, holding the request's `_meta`, the +client's capabilities and the revision it is served under: a host whose `dispatch_opts` has +its own `:mcp`, or whose dispatch matches, compares or closed-validates that argument whole, is +affected (the CHANGELOG entry's how-to-tell sentence lists the shapes). Resource templates are +nodes of the kind `:resource_template`, and the canonical bytes move to `schema_version` `4`; a +graph with no template differs from its `3` bytes in the version alone, and `3` bytes still +verify. The optional `Bandit` requirement is `~> 1.15` (it was `~> 1.5` in `0.10.1`), for the +advisories fixed in 1.13, 1.14 and 1.15; if `mix deps.get` reports a conflict, raise your own. +No public function was added, removed or renamed. Raise the pin to `~> 0.11.0`. +`beam_mcp_signer` `0.3.0` (requirement `~> 0.7`) resolves beside it. + ## The road to `1.0.0`, in order Stated here so nobody infers it from a plan's label or a folder's name: @@ -100,9 +113,19 @@ Stated here so nobody infers it from a plan's label or a folder's name: 4. **`0.9.0`**: the `:server` seam on both transports and `scheme:`/`key_id:` beside the signature. Two additions, no break; four public entries added; the clock the README's condition names restarts here. -5. **`0.10.0`**, this release, the quiet minor again: instruments and pages (the suite in FIPS +5. **`0.10.0`**, the quiet minor again: instruments and pages (the suite in FIPS mode in CI, an attested SBOM at release, the em-dash sweep), no public entry moved. 6. **`1.0.0`**, after `0.10.0` has stood: the surface frozen as `docs/api-stability.md` says. + *Superseded 2026-11-29, appended not edited:* `0.10.0` stood, but the freeze-readiness + work had to land first, so that `1.0.0` freezes this package's own call surface and nothing + a shared contract or a sibling system may still move; it changed the host contract, so the + clock restarts at `0.11.0`. +7. **`0.11.0`**, this release: freeze-readiness and a security floor. Two documented breaks + (the host contract, the exported bytes), the wire's bytes stable across OTP releases, the + growth table, and `Bandit` `~> 1.15`. +8. **`0.12.0`**, the quiet minor: the "full minor release unchanged" for `0.11.0`'s surface, + measured by `docs/public-api.txt` not moving. +9. **`1.0.0`**, after `0.12.0` has stood: the surface frozen as `docs/api-stability.md` says. ## What `1.0` will ask diff --git a/docs/api-stability.md b/docs/api-stability.md index 6774b464..5922586e 100644 --- a/docs/api-stability.md +++ b/docs/api-stability.md @@ -44,7 +44,7 @@ removes a callable arity and is a change to the entry), then markers: `R` is a release number, or the word `Unreleased` while the change waits in the CHANGELOG's Unreleased section; the release that ships it writes its number in -(`MIX_ENV=test mix run -e 'BeamMCP.PublicAPI.release_markers!("0.10.0")'`, one step of cutting +(`MIX_ENV=test mix run -e 'BeamMCP.PublicAPI.release_markers!("0.11.0")'`, one step of cutting a release), and the census refuses a leftover `Unreleased` once that section is empty. That step is the one place that knows the release's number, so it holds the three rules the census cannot: with a `removed_in=Unreleased` line in the file it refuses a patch number, and on @@ -83,7 +83,7 @@ From the release this page ships in, a break is a CHANGELOG heading carrying the census holds the Unreleased section to that), and `UPGRADING.md` lists them. Earlier releases documented their breaks under headings of their own wording (`0.2.0`'s "two fields are REMOVED", `0.4.0`'s "BREAKING, and it breaks a host contract"); `UPGRADING.md` names each with -its CHANGELOG heading. That is why the README recommends the current minor at three numbers (`~> 0.10.0`) rather than two (`~> 0.10`): the +its CHANGELOG heading. That is why the README recommends the current minor at three numbers (`~> 0.11.0`) rather than two (`~> 0.11`): the tighter pin stops at the next minor, which is where the next documented break can be. A patch release carries no break to the public surface, the wire, the exported bytes or the host contract, a rule the census cannot check (it does not know which number the next release diff --git a/docs/connectome-canonical.md b/docs/connectome-canonical.md index ce5d2da1..44f031ab 100644 --- a/docs/connectome-canonical.md +++ b/docs/connectome-canonical.md @@ -148,7 +148,7 @@ at an edge and found nothing governing it had no `ungoverned` to write, so its h was `unknown` too, and the bytes do not say which case a given `unknown` was. A reader must not narrow a version-1 `unknown` to `unset`; it is "one of the two, unrecorded which". -**`4`** (the release after 0.10.1): the node kind `resource_template` joins the vocabulary, a +**`4`** (`0.11.0`): the node kind `resource_template` joins the vocabulary, a resource template named by its uri template in a key space of its own; the envelope's shape is `3`'s, unchanged, so the only byte that differs for a graph with no template is the version itself. That is the rule this page keeps for every shared encoding: it grows by a new version diff --git a/docs/provenance.md b/docs/provenance.md index 9d037801..3561b5dc 100644 --- a/docs/provenance.md +++ b/docs/provenance.md @@ -32,7 +32,7 @@ So the release tarball is built by one script on every seat: CI, the publisher, reproducing it: ```sh -RELEASE_HEX=2.5.1 tools/release_tarball.sh v0.10.1 beam_mcp-0.10.1.tar # 0.10.1 was built with Hex 2.5.1 +tools/release_tarball.sh v0.11.0 beam_mcp-0.11.0.tar # with the Hex tools/hex-version names ``` It `git archive`s the ref with `tar.umask=022` (every file `644` whatever the machine's umask, @@ -53,7 +53,7 @@ failure, not as a pass. ## Verify a published tarball ```sh -v=0.10.1 +v=0.11.0 curl -fsSLO "https://repo.hex.pm/tarballs/beam_mcp-${v}.tar" gh attestation verify "beam_mcp-${v}.tar" --repo ScriptKittyOS/beam_mcp \ --signer-workflow ScriptKittyOS/beam_mcp/.github/workflows/provenance.yml @@ -137,7 +137,8 @@ Hex is what packages it, which is why Hex is pinned: 2.4.0 and 2.5.1 gave byte-i tarballs of one commit (measured), but 2.5.2 (hex_core 0.20) sorts the tarball's entries and its metadata `files` list, so the same commit has a different checksum under 2.5.1 and under 2.5.2 or later (measured 2026-10-19). **Releases up to and including 0.10.1 were built with Hex 2.5.1** -and reproduce byte for byte only under it: +and reproduce byte for byte only under it; from 0.11.0, the first release cut under the pin, +with Hex 2.5.3: ```sh mix local.hex 2.5.1 --force # from inside the clone: a version manager keeps one Hex per Elixir diff --git a/docs/roadmap.md b/docs/roadmap.md index 545c72e4..9bb9ede5 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -10,18 +10,29 @@ gathers what `UPGRADING.md`, the README and `docs/will-not-implement.md` already place. The order is firm; the dates are not promised. When this page and one of those disagree, those are the record and this page is corrected. -## Now: `0.10.1`, a security patch on `0.10.0` +## Now: `0.11.0`, freeze-readiness and a security floor -The fixes from the project's own security review (the CHANGELOG's 0.10.1 entry); no public -entry moved, so `0.10.0`'s standing toward `1.0.0` is unchanged. +So that `1.0.0` freezes this package's own call surface and nothing a shared contract or a +sibling system may still move: the request's context reaches dispatch under a reserved `:mcp` +key, resource templates are nodes (`schema_version` `4`), the wire's bytes no longer depend on +the OTP release, and a growth table marks which value sets may grow. Two documented breaks +(`UPGRADING.md`'s row). Beside them, the optional `Bandit` requirement rises to `~> 1.15` for the +advisories published against earlier releases. -## Before: `0.10.0`, the quiet minor +## Before: `0.10.1` and `0.10.0` -Instruments and pages, no public entry added, removed or changed: the suite in FIPS mode in CI -on the validated OpenSSL FIPS provider (`docs/fips.md`, "Measured"); a CycloneDX SBOM -attested to each release tarball (`docs/provenance.md`); the documentation free of em dashes. +`0.10.1`, the fixes from the project's own security review; `0.10.0`, the quiet minor: +instruments and pages, no public entry added, removed or changed (the suite in FIPS mode in CI +on the validated OpenSSL FIPS provider, a CycloneDX SBOM attested to each release tarball, the +documentation free of em dashes). -## Next: `1.0.0`, the freeze +## Next: `0.12.0`, the quiet minor + +`0.11.0` changed the host contract, so the stand the README's `1.0.0` condition asks for starts +again: a minor in which no public entry is added, removed or changed, measured by +`docs/public-api.txt` not moving. + +## Then: `1.0.0`, the freeze `1.0.0` follows once the public API and the stated threat model have each survived a full minor release unchanged (the README's condition). From `1.0.0`, `docs/public-api.txt` is diff --git a/lib/beam_mcp/connectome/graph.ex b/lib/beam_mcp/connectome/graph.ex index 76a07dc3..1377bb68 100644 --- a/lib/beam_mcp/connectome/graph.ex +++ b/lib/beam_mcp/connectome/graph.ex @@ -27,7 +27,7 @@ defmodule BeamMCP.Connectome.Graph do # bytes at 1 and bytes at 2 read their signs against different vocabularies. 3 since the # release after: the canonical envelope names its algorithm as a fourth top-level member, # and bytes at 1 and 2, which name none, are SHA-256 by the page's rule for those versions. - # 4 since the release after 0.10.1: the node vocabulary gained `resource_template`, so bytes + # 4 since 0.11.0: the node vocabulary gained `resource_template`, so bytes # at 3 and bytes at 4 read their node kinds against different vocabularies; the envelope's # shape is 3's. Growth is a new version, never an edit of an old one (docs/api-stability.md). @schema_version 4 diff --git a/mix.exs b/mix.exs index d7c866ee..77e67163 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule BeamMCP.MixProject do use Mix.Project - @version "0.10.1" + @version "0.11.0" @source_url "https://github.com/ScriptKittyOS/beam_mcp" # The oldest OTP this project supports. Mix has an `elixir:` key but none for OTP, so the diff --git a/test/beam_mcp/readme_claims_test.exs b/test/beam_mcp/readme_claims_test.exs index ca04d841..1a5cc16e 100644 --- a/test/beam_mcp/readme_claims_test.exs +++ b/test/beam_mcp/readme_claims_test.exs @@ -137,7 +137,7 @@ defmodule BeamMCP.ReadmeClaimsTest do describe "the dependency requirement the README hands a consumer" do test "it does not span the wire break this release documents" do - requirement = "~> 0.10.0" + requirement = "~> 0.11.0" claims("{:beam_mcp, \"#{requirement}\"}") version = Mix.Project.config()[:version] @@ -145,20 +145,24 @@ defmodule BeamMCP.ReadmeClaimsTest do assert Version.match?(version, requirement), "the README's requirement must admit the version being shipped" + refute Version.match?("0.10.1", requirement), + "0.10.1 is on the far side of the breaks 0.11.0 documented: a dispatch that " <> + "matched its third argument exactly, or a verifier that pins schema_version 3, " <> + "carried across them by a routine deps.update would fail, or read the new bytes " <> + "as malformed, which is what the minor bump was chosen to prevent." + refute Version.match?("0.9.0", requirement), - "0.9.0 is the minor before this one; 0.10.0 is a quiet minor that moved no public " <> - "entry, and the pin still stops at the current minor by the 0.x rule -- the next " <> - "minor is where the next documented break can be." + "0.9.0 is two minors back; 0.10.0 was a quiet minor that moved no public entry." refute Version.match?("0.8.0", requirement), - "0.8.0 is two minors back; 0.9.0 added the :server seam and the scheme beside " <> + "0.8.0 is three minors back; 0.9.0 added the :server seam and the scheme beside " <> "the signature and broke nothing." refute Version.match?("0.7.0", requirement), - "0.7.0 is three minors back; 0.8.0 was a quiet minor that moved no public entry." + "0.7.0 is four minors back; 0.8.0 was a quiet minor that moved no public entry." refute Version.match?("0.6.0", requirement), - "0.6.0 is four minors back; 0.7.0 added the signer seam and broke nothing." + "0.6.0 is five minors back; 0.7.0 added the signer seam and broke nothing." refute Version.match?("0.5.0", requirement), "0.5.0 is on the far side of the break 0.6.0 documented in the exported " <> diff --git a/test/beam_mcp/wire_bytes_test.exs b/test/beam_mcp/wire_bytes_test.exs index 45eb20d6..7679172d 100644 --- a/test/beam_mcp/wire_bytes_test.exs +++ b/test/beam_mcp/wire_bytes_test.exs @@ -102,7 +102,7 @@ defmodule BeamMCP.WireBytesTest do test "tools/list with a 40-property schema is the same bytes on every OTP release" do assert sha256(post("tools/list", %{}, [])) == - "40d948fc723e22ad7b81a12c484403e22c80effd39dd212b148ff7a64a4abbf1" + "333969afe44262bbb34fa086165b38ace6ae52eb41bcce8e9dd351322bcf82d0" end test "a tools/call whose result has 40 keys is the same bytes on every OTP release" do @@ -110,7 +110,7 @@ defmodule BeamMCP.WireBytesTest do conn = post("tools/call", %{"name" => "wide", "arguments" => args}, [{"mcp-name", "wide"}]) assert sha256(conn) == - "0bc14b84b3506daf845f3ebcd28e93d3370633f3e2c6113c58dced61de1b9c7f" + "f2708ed1ef6970b2feef29b50bcc7b036d4b2edcae6fa6e56c5862ab9f9eeb75" end # A refusal is bytes on the wire too: which property it names, and in which order it lists diff --git a/test/fixtures/wire/pre-017.json b/test/fixtures/wire/pre-017.json index dce2388a..cf1718d1 100644 --- a/test/fixtures/wire/pre-017.json +++ b/test/fixtures/wire/pre-017.json @@ -7,7 +7,7 @@ "_meta": { "io.modelcontextprotocol/serverInfo": { "name": "fixture", - "version": "0.10.1" + "version": "0.11.0" } }, "cacheScope": "private", @@ -27,7 +27,7 @@ "_meta": { "io.modelcontextprotocol/serverInfo": { "name": "fixture", - "version": "0.10.1" + "version": "0.11.0" } }, "cacheScope": "private", @@ -50,7 +50,7 @@ "_meta": { "io.modelcontextprotocol/serverInfo": { "name": "fixture", - "version": "0.10.1" + "version": "0.11.0" } }, "cacheScope": "private", @@ -71,7 +71,7 @@ "_meta": { "io.modelcontextprotocol/serverInfo": { "name": "fixture", - "version": "0.10.1" + "version": "0.11.0" } }, "cacheScope": "private", @@ -95,7 +95,7 @@ "_meta": { "io.modelcontextprotocol/serverInfo": { "name": "fixture", - "version": "0.10.1" + "version": "0.11.0" } }, "cacheScope": "private", @@ -116,7 +116,7 @@ "_meta": { "io.modelcontextprotocol/serverInfo": { "name": "fixture", - "version": "0.10.1" + "version": "0.11.0" } }, "cacheScope": "private", @@ -140,7 +140,7 @@ "_meta": { "io.modelcontextprotocol/serverInfo": { "name": "fixture", - "version": "0.10.1" + "version": "0.11.0" } }, "cacheScope": "private", @@ -171,7 +171,7 @@ "_meta": { "io.modelcontextprotocol/serverInfo": { "name": "fixture", - "version": "0.10.1" + "version": "0.11.0" } }, "cacheScope": "private", @@ -204,7 +204,7 @@ "_meta": { "io.modelcontextprotocol/serverInfo": { "name": "fixture", - "version": "0.10.1" + "version": "0.11.0" } }, "cacheScope": "private", @@ -251,7 +251,7 @@ "_meta": { "io.modelcontextprotocol/serverInfo": { "name": "fixture", - "version": "0.10.1" + "version": "0.11.0" } }, "cacheScope": "private",