Repository navigation
[P16] release: 0.13.0 - #355
Merged
Merged
Conversation
Names the release that carries the 2026-07-28 work: 0.13.0. The work breaks source compatibility (`docs/migration.md`), and under the package's 0.x rules (`VERSIONING.md`) the minor number plays the role of the major, so the version after 0.12 is 0.13.0. The installation snippets depend on it with `.upToNextMinor(from: "0.13.0")`, and the migration guide, roadmap, design notes and dependency policy name the version instead of "this major version". The package manifest takes swift-docc-plugin by version instead of its `main` branch. No library code changes.
- Lower the swift-docc-plugin floor from 1.4.6 to 1.4.0, the oldest release that works with current DocC (1.3.0 and earlier pass `--index`, which `docc convert` rejects); Package.resolved stays at 1.4.6, and the dependency policy notes why 1.4.0 is the floor. - State in the dependency policy that SwiftPM refuses a version-based requirement on a package whose manifest has branch- or revision-based dependencies, the binding reason for banning them.
- Record the originHash of the current Package.swift in Package.resolved. SwiftPM computes it as the SHA-256 of the root manifest, so lowering the swift-docc-plugin floor to 1.4.0 left the hash of the 1.4.6 manifest. `swift package resolve` does not rewrite the hash while the pins are unchanged, so the value is set to the checksum SwiftPM computes; the pins are unchanged. - Say 0.13.0, not 1.x or 1.0.0, in the design overview, in the versioning note on the release that serves 2026-07-28, and in the migration guide's entry in the docs index.
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rel/1.0.0in order (previous: P15 (#356) · next: P17 (#354))conformance/p16-versionconformance/p15-interop(stacked: GitHub retargets this PR torel/1.0.0when the previous part merges)7cfb3eerelease: 0.13.06bed974release: review fixesd126644release: third-pass review fixesSummary
There is no 0.13.0 release: P22 (#349) retargets this text to 1.0.0, so this PR is a milestone of
the stack, not a release.
Names the release that carries the 2026-07-28 work: 0.13.0. The work breaks source
compatibility (
docs/migration.md), and under the package's 0.x rules (VERSIONING.md) theminor number plays the role of the major, so the version after 0.12 is 0.13.0. The
installation snippets depend on it with
.upToNextMinor(from: "0.13.0"), and the migrationguide, roadmap, design notes and dependency policy name the version instead of "this major
version". The package manifest takes swift-docc-plugin by version instead of its
mainbranch. No library code changes.
Motivation
README.mdanddocs/quick_start.mdtold users to depend onbranch: "main". A releaseneeds a version they can pin, and
VERSIONING.mdasks for.upToNextMinor(from:)while thepackage is 0.x.
release". Once released, the text should name the versions it compares: 0.12 (commit
2a44bfdonmain) and 0.13.0.Package.swifttook swift-docc-plugin frombranch: "main".Changes
README.src.md,docs/src/quick_start.src.md.package(url: ..., .upToNextMinor(from: "0.13.0")); the quick start explains whyupToNextMinorwhile 0.xdocs/src/migration.src.md2a44bfd) and 0.13.0, and says why 0.13.0 is the major versionROADMAP.mddesign/design.md,design/auth.md,DEPENDENCY_POLICY.mdREADME.md,docs/*.mdscripts/weave.swiftReview fixes
Dependencies (
Package.swift,Package.resolved,DEPENDENCY_POLICY.md)branch: "main", which moves under everyone who buildsthe package. It is now
from: "1.4.6", the revision already resolved (e977f65);Package.resolvedrecords the version.DEPENDENCY_POLICY.md: the table row; the ruleagainst
branch:andrevision:requirements now covers build tools too; the swift-cryptorow lists DPoP proofs.
Migration guide (
docs/src/migration.src.md)V0.12.xrelease line, which has no tag or branch. It now starts fromcommit
2a44bfd.docs/migration.mdregenerated.Diagram
flowchart LR A["0.12, main 2a44bfd"] --> B["P0 (#371) to P15 (#356): 2026-07-28, fixes, docs, interop"] B --> C["P16 (#355): name the version"] C --> D["tag 0.13.0 on main"]Release notes for 0.13.0
Ordered as
VERSIONING.mdasks: breaking changes, features, fixes, dependency changes,deprecations.
docs/migration.mdhas the details, with before and after code.Breaking changes
Source:
MCPError: new cases (resourceNotFound(uri:),headerMismatch,missingRequiredClientCapabilities,unsupportedProtocolVersion),dataon errors, and athird associated value on
serverError. -32000 and -32001 decode asserverError; -32602with
data.uridecodes asresourceNotFound.HTTPResponse:.dataand.errorhave new associated values.Client.Capabilities.experimentalis[String: Value]?(was[String: String]?).OAuthAuthorizationErrorhas eight new cases;OAuthConfiguration.GrantTypehas.jwtBearer.HTTPClientAuthorizer.authorizationHeader(for:)becameauthorizationHeaders(for:method:), applied afterrequestModifier.Behavior:
Serverserves 2026-07-28 requests by default;Clientconnects at 2026-07-28 by default(
ProtocolMode.automatic), with a fallback toinitialize.Version.supportedlists2026-07-28.
.stateless(version)no longer retries with another version..automaticfalls back toinitializeonly on a JSON-RPC error, an HTTP 400/404/405 refusal or no answer withindiscoveryTimeout(10 s); other transport errors are thrown.initializeHookrefuses stateless requests (-32022) unless it also sets astatelessRequestHook.Server.ConfigurationandClient.Configurationgained properties; a missing key decodes toits default, so saved JSON still decodes.
.none(clientID:)with a plain client ID is treated as pre-registered: no dynamicregistration. Pass
""to register.streams, a bounded replay store.
HTTPClientTransport: 64 connections per host by default; a POST response stream that endsearly is resumed with its own
Last-Event-IDat 2025-11-25 and fails its request at2026-07-28.
Features
ServerandClient:server/discover, per-request_meta,resultType, cache hints, the stateless HTTPtransport, standard and custom request headers (SEP-2243),
subscriptions/listen(SEP-2575), multi round-trip requests with sealed request state (SEP-2322).
application_type(SEP-837), authorization servermigration (SEP-2352), enterprise-managed authorization (SEP-990: RFC 8693 token exchange and
the RFC 7523 jwt-bearer grant), workload identity federation (SEP-1933), DPoP-bound tokens
(RFC 9449, SEP-1932) with any
DPoPSigningKey, including Secure Enclave keys.docs/generated from compiled, tested snippets, designnotes in
design/,ROADMAP.md,VERSIONING.md,DEPENDENCY_POLICY.md,CONTRIBUTING.md,examples under
Examples/.matrix against the Go and Python SDKs (
scripts/run-interop.sh).Fixes
From the review of the stack, with tests:
requests run at most
maxConcurrentServerRequests(4) at once, with 64 queued, duplicate idsrefused; a response waits only for its own queued progress; input requests are bounded
(
maxInputRequests, 16) and their rounds end oncancelRequestanddisconnect; onebackground listen stream, reopened with backoff.
strictand the initialize hook; stateless exchanges bufferat most 1024 messages and cancel the handler when the client goes away;
Mcp-Param-*schemas are cached and checked fail-closed; listen streams send keep-alive comments and are
capped (
maxSubscriptionStreams,maxResourceSubscriptions), with an authorizer andtargeted
notify(_:to:); request state is single-use; the replay store is bounded per streamand in bytes (16 MiB).
MCP origin's endpoints; a refresh token goes only to the server that issued it; concurrent
challenges run one at a time and
InMemoryTokenStorageis thread-safe; jwt-bearerassertions go only to a configured authorization server, or have their
audchecked;private IP literals are parsed with
inet_pton; the Linux redirect guard applies to everyOAuth request; DPoP nonces are read from every response for the origin of the request.
retryis clamped and the GET stream backs off; cancelled and disconnectedrequests release their state.
status; the interop matrix pins the Python side by commit and hashes, and flags crashed cells.
Earlier fixes:
stream at 2025-11-25.
HTTPClientTransport: no deadlock of concurrent calls waiting for server-to-client requests;no request waiting forever after its response stream ends.
send;withBatchuses the same path assend.and sessionless servers handle
initializecorrectly.private_key_jwt(Linux), redirect and registrationendpoint checks, a resource server's
use_dpop_nonceretried once per request.Dependency changes
swift-crypto("3.0.0"..<"5.0.0"), for request state sealing, PKCE,private_key_jwtand DPoP on all platforms.
swift-docc-plugin:from: "1.4.6"(wasbranch: "main"). A build plugin; no product dependson it.
Deprecations
API changes
None in this PR.
Behavior changes
None in this PR.
Conformance
Unchanged: tier score 100% for client and server at 2025-11-25 and 2026-07-28. Default leg
baseline: 25 server entries (the tasks extension, planned), 0 client entries.
Tests
No test changes. 860 swift-testing tests pass, plus XCTest.
Review notes
VERSIONING.md, and thisrelease has not been verified on Linux.
0.13.0onmain. The tag is what.upToNextMinor(from: "0.13.0")resolves to; until it exists, the installation snippetdoes not resolve.
Verification
Every branch of the stack builds and passes
swift test; on this branch, 853 swift-testingtests plus XCTest. DocC builds with
--warnings-as-errors. All conformance legs pass at theirbaselines; the tier score is 100% for client and server at 2025-11-25 and 2026-07-28.
scripts/run-interop.sh --check(added in P17 (#354)) passes at the top of the stack.AI usage disclosure: the changes, the tests, the commit messages and this description were written with Claude Opus 5.5 and reviewed by the authors.