Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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)
Expand Down
43 changes: 29 additions & 14 deletions HANDOFF.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
10 changes: 7 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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.
17 changes: 17 additions & 0 deletions SLICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
29 changes: 26 additions & 3 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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

Expand Down
Loading