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
20 changes: 19 additions & 1 deletion .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,25 @@ jobs:
- name: Install this SDK with the latest Agent Runtimes release
if: env.AGENT_RUNTIMES_REF == ''
# `ui`: the AG-UI adapter its sign-in-display example draws through.
run: uv pip install "agent-runtimes[a2a,ui]>=1.3.114" .
#
# A pre-release of this SDK (X.Y.ZaN, bN, rcN) is accepted by no released Agent
# Runtimes: a pin such as `<1.1` leaves out 1.1.0a1 (PEP 440), and a release never
# depends on a pre-release. A pre-release adds to the API without breaking it, so
# the latest Agent Runtimes release is installed with the SDK release it pins, and
# this checkout then replaces that SDK alone: its applications are built on the
# pre-release's code. A release (X.Y.Z) is resolved together with Agent Runtimes,
# so a pin that refuses it fails here.
run: |
set -euo pipefail
version="$(python -c "import re;print(re.search(r'__version__\s*=\s*[\"\']([^\"\']+)', open('personal_agent_protocol/__version__.py').read())[1])")"
if [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
uv pip install "agent-runtimes[a2a,ui]>=1.3.114" .
else
echo "personal-agent-protocol $version is a pre-release: installed over the release Agent Runtimes pins"
uv pip install "agent-runtimes[a2a,ui]>=1.3.114"
uv pip install --no-deps --reinstall-package personal-agent-protocol .
python -c "from importlib.metadata import version; assert version('personal-agent-protocol') == '$version', version('personal-agent-protocol')"
fi
- name: Build every Agent Runtimes PAP application of that release
if: env.AGENT_RUNTIMES_REF == ''
run: |
Expand Down
59 changes: 49 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
# Each registry trusts this workflow through its own GitHub environment; the
# PyPI distributions carry attestations and the npm package provenance. The
# tag must name both package versions; versions already published are skipped.
# See RELEASE.md.
# A pre-release tag (vX.Y.ZaN, bN or rcN: the Python version, as PEP 440 writes
# it) names the npm version X.Y.Z-alpha.N, -beta.N or -rc.N: PyPI takes it as a
# pre-release, npm publishes it under the dist-tag alpha, beta or rc, never
# latest, and the GitHub release is marked a pre-release. See RELEASE.md.

name: Release

Expand All @@ -27,6 +30,8 @@ jobs:
outputs:
python: ${{ steps.plan.outputs.python }}
typescript: ${{ steps.plan.outputs.typescript }}
npm_version: ${{ steps.versions.outputs.npm_version }}
dist_tag: ${{ steps.versions.outputs.dist_tag }}
steps:
- uses: actions/checkout@v6

Expand All @@ -44,14 +49,34 @@ jobs:
run: npm install --global npm@latest

- name: Check the tag names both package versions
id: versions
run: |
set -euo pipefail
tag="${GITHUB_REF_NAME#v}"
python_version="$(python -c "import re;print(re.search(r'__version__\s*=\s*[\"\']([^\"\']+)', open('personal_agent_protocol/__version__.py').read())[1])")"
typescript_version="$(node -p "require('./package.json').version")"
echo "tag=$tag python=$python_version typescript=$typescript_version"
# The tag is the Python version. A release is X.Y.Z on both registries; a
# pre-release X.Y.ZaN, bN or rcN is X.Y.Z-alpha.N, -beta.N or -rc.N on npm,
# published under that dist-tag so `latest` stays the last release.
if [[ "$tag" =~ ^([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then
npm_version="$tag"
dist_tag="latest"
elif [[ "$tag" =~ ^([0-9]+\.[0-9]+\.[0-9]+)(a|b|rc)([0-9]+)$ ]]; then
case "${BASH_REMATCH[2]}" in
a) dist_tag="alpha" ;;
b) dist_tag="beta" ;;
rc) dist_tag="rc" ;;
esac
npm_version="${BASH_REMATCH[1]}-$dist_tag.${BASH_REMATCH[3]}"
else
echo "the tag $GITHUB_REF_NAME names no release (vX.Y.Z) or pre-release (vX.Y.ZaN, bN, rcN)"
exit 1
fi
echo "tag=$tag python=$python_version typescript=$typescript_version npm=$npm_version dist-tag=$dist_tag"
test "$tag" = "$python_version"
test "$tag" = "$typescript_version"
test "$npm_version" = "$typescript_version"
echo "npm_version=$npm_version" >> "$GITHUB_OUTPUT"
echo "dist_tag=$dist_tag" >> "$GITHUB_OUTPUT"

- name: Find which packages need publishing
id: plan
Expand All @@ -66,11 +91,12 @@ jobs:
echo "PyPI: personal-agent-protocol $version will be published"
echo "python=yes" >> "$GITHUB_OUTPUT"
fi
if npm view "@datalayer/personal-agent-protocol@$version" version --json >/dev/null 2>&1; then
echo "npm: @datalayer/personal-agent-protocol $version is already published, skipping"
npm_version="${{ steps.versions.outputs.npm_version }}"
if npm view "@datalayer/personal-agent-protocol@$npm_version" version --json >/dev/null 2>&1; then
echo "npm: @datalayer/personal-agent-protocol $npm_version is already published, skipping"
echo "typescript=" >> "$GITHUB_OUTPUT"
else
echo "npm: @datalayer/personal-agent-protocol $version will be published"
echo "npm: @datalayer/personal-agent-protocol $npm_version will be published"
echo "typescript=yes" >> "$GITHUB_OUTPUT"
fi

Expand Down Expand Up @@ -177,9 +203,13 @@ jobs:
name: npm
path: npm-dist
# Trusted publishing (OIDC, no token) with a provenance statement naming
# this workflow run and tag.
# this workflow run and tag. The dist-tag is `latest` for a release and
# `alpha`, `beta` or `rc` for a pre-release, which `npm install` without a
# tag never picks.
- name: Publish with npm trusted publishing and provenance
run: npm publish ./npm-dist/*.tgz --access public --provenance
run: npm publish ./npm-dist/*.tgz --access public --provenance --tag "$DIST_TAG"
env:
DIST_TAG: ${{ needs.build.outputs.dist_tag }}

release:
name: GitHub release
Expand All @@ -200,8 +230,17 @@ jobs:
run: |
version="${GITHUB_REF_NAME#v}"
gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1 && exit 0
gh release create "$GITHUB_REF_NAME" --title "Release $version" --generate-notes \
title="Release $version"
flags=()
if [ "$DIST_TAG" != "latest" ]; then
# A pre-release: marked as one, and never the repository's latest release.
title="Pre-release $version"
flags=(--prerelease --latest=false)
fi
gh release create "$GITHUB_REF_NAME" --title "$title" --generate-notes "${flags[@]}" \
--notes "- [PyPI personal-agent-protocol](https://pypi.org/project/personal-agent-protocol/$version/)
- [npm @datalayer/personal-agent-protocol](https://www.npmjs.com/package/@datalayer/personal-agent-protocol/v/$version)"
- [npm @datalayer/personal-agent-protocol](https://www.npmjs.com/package/@datalayer/personal-agent-protocol/v/$NPM_VERSION)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DIST_TAG: ${{ needs.build.outputs.dist_tag }}
NPM_VERSION: ${{ needs.build.outputs.npm_version }}
52 changes: 52 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,58 @@

# Changelog

## 1.1.0a1 (2026-11-25)

A pre-release (PyPI `1.1.0a1`, npm `1.1.0-alpha.1` under the dist-tag `alpha`): `pip install`
and `npm install` without a version keep giving 1.0.4. It adds what upstream's unpublished
draft 1.1 adds to Poppy 1.0 (upstream commit `589743a`, 18 November 2026), in both SDKs. The
draft says of itself that it can change until 1.1 is published, and so can this.

Nothing changes on the wire unless a caller turns it on. The default protocol version stays
1.0 as published: a Personal Agent names `Poppy-Version: 1.0` and a Company publishes
`protocol_version` `1.0`. A request that names 1.1 is compatible with 1.0 and is handled as
1.0 defines (spec 3.4).

- **Draft 1.1 as a named version.** `DRAFT_PROTOCOL_VERSION` is `1.1`; a Personal Agent
(`DiscoveryClient(protocol_versions=("1.1",))`) or a Company
(`CompanyConfig(protocol_versions=("1.1",))`) uses it only when it names it. Each side
sends only what the other's version defines: an agent that names 1.1 names 1.0 at a
Company whose document is 1.0. `PUBLISHED_PROTOCOL_VERSION` is `1.0`, the default.
- **`offline_access` (draft 4.4, 4.7).** Some authorization servers issue a refresh token
only when a sign-in asks for this scope. Give the sign-in clients the issuer's
`scopes_supported` (`DirectSignInClient.begin`, `DeviceSignInClient.begin`,
`RefreshTokenContext`; `offline_access=True` for Mediated Sign-In): when it lists
`offline_access`, the request includes it, pushed or not, and so does a refresh that asks
for fewer scopes. It is never one of the scopes granted: a sign-in that grants nothing else
is a decline. A company whose refresh tokens need it sets `CompanyConfig.offline_access`,
which lists it in the issuer's metadata only, never in a resource's metadata, a challenge
or an `authorization` event.
- **Operator signatures at the authorization server (draft 5.3).** With
`WebBotAuthSigner(..., oauth_endpoints=True)` the agent also signs its requests to the
pushed authorization request, token, device authorization and revocation endpoints, over
their `Content-Digest` (RFC 9530), which binds the signature to the client assertion in the
body. A company accepts the agents a verified operator speaks for with a client policy
that has `allows_operator`, such as `OperatorVerifiedAgents`, beside its allowlist and
blocklist; the client assertion is verified all the same. Require Pushed Authorization
Requests with it, so the company decides before its sign-in page is shown.
- **Replacing a User ID (draft 5.1).** `replace_user_id` replaces one User's ID at one
Company when the User asks, or once it went unused for 28 days with no refresh token held:
between tasks, signing out first, discarding the old ID's DPoP and delegated keys and what
the host holds under it (`UserIdData`), the new ID last. `SqlitePairwiseUserIdStore` gains
`replace`, `mark_used` and `last_used` (Python); `derive_pairwise_user_id` and
`DerivedPairwiseUserIds` derive IDs with a keyed hash and replace one with a counter. A
company limits how many new User IDs a `client_id` sends with
`CompanyConfig.new_user_ids_per_client`.
- **Listed tasks in feedback (draft 9, 9.3).** Only between two sides that name 1.1: a
company lists up to 50 tasks it already knows can't be done (`CompanyConfig.feedback_tasks`,
sent as `feedback.tasks`), the agent reads them (`SessionTasks.listed_tasks`) and reports a
match by ID (`FeedbackReport.listed(...)`), several in one report; the company answers 202,
ignores IDs it doesn't list, and counts the others (`feedback_task_counts`). A report with
both forms or neither is `invalid_request`.
- **The release workflow** publishes a pre-release tag (`vX.Y.ZaN`) to PyPI as a pre-release,
to npm as `X.Y.Z-alpha.N` under the dist-tag `alpha`, and marks the GitHub release a
pre-release.

## 1.0.4 (2026-11-24)

The follow-up to 1.0.3, in the Python SDK, from the review of its fix. The TypeScript SDK
Expand Down
10 changes: 10 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ is published. For such a release:
1. After the tag, release Agent Runtimes with the new pin, then empty
`AGENT_RUNTIMES_REF` so the job tests the released package again.

## A pre-release

A pre-release is tagged with its Python version, as PEP 440 writes it: `vX.Y.ZaN`, `vX.Y.ZbN`
or `vX.Y.ZrcN`. `package.json` and the TypeScript plugin manifests carry the same version as
semver writes it: `X.Y.Z-alpha.N`, `-beta.N` or `-rc.N`. The workflow checks both, publishes
to PyPI (a pre-release there by its version, which `pip install` skips unless asked), to npm
under the dist-tag `alpha`, `beta` or `rc` and never `latest`, and marks the GitHub release
a pre-release. The compatibility page keeps describing the stable release, and says what the
pre-release is.

## Trusted publishing

- PyPI project `personal-agent-protocol`: owner `datalayer`, repository
Expand Down
17 changes: 11 additions & 6 deletions docs/docs/protocol/conformance-report.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ title: Compatibility and conformance report

# Compatibility and conformance report

SDK version **1.0.4**, PAP profile **0.4** (as published 2026-11-10), Operations extension **v3**; the pairings run at protocol version **1.0**, the default (1.0 as published 2026-11-14); the suite also runs at 0.4 in every pairing. Each pairing runs every positive, negative and recovery fixture case over real TCP and TLS, the personal agent in one language and the reference company (Manzanita) in the other. A case is skipped, never passed, when a side lacks what it needs; the reason is listed below.
SDK version **1.1.0a1**, PAP profile **0.4** (as published 2026-11-10), Operations extension **v3**; the pairings run at protocol version **1.0**, the default (1.0 as published 2026-11-14); the suite also runs at 0.4 in every pairing, and in each SDK at upstream's unpublished draft 1.1, used only when named. Each pairing runs every positive, negative and recovery fixture case over real TCP and TLS, the personal agent in one language and the reference company (Manzanita) in the other. A case is skipped, never passed, when a side lacks what it needs; the reason is listed below.

## Pairings

| Personal agent | Company | Passed | Failed | Skipped |
| --- | --- | ---: | ---: | ---: |
| Python | Python | 178 | 0 | 0 |
| Python | TypeScript | 178 | 0 | 0 |
| TypeScript | Python | 178 | 0 | 0 |
| TypeScript | TypeScript | 178 | 0 | 0 |
| Python | Python | 182 | 0 | 0 |
| Python | TypeScript | 182 | 0 | 0 |
| TypeScript | Python | 182 | 0 | 0 |
| TypeScript | TypeScript | 182 | 0 | 0 |

## Protocol

Expand All @@ -27,6 +27,9 @@ SDK version **1.0.4**, PAP profile **0.4** (as published 2026-11-10), Operations
| `protocol.extension-required-company` | negative | OPS-2-01, PAP-3.3-03 | pass | pass | pass | pass |
| `protocol.tasks-per-session` | positive | PAP-9-01 | pass | pass | pass | pass |
| `protocol.feedback-report` | positive | PAP-9.3-01, PAP-9.3-06 | pass | pass | pass | pass |
| `protocol.feedback-listed-tasks` | positive | PAP11-9.3-01, PAP11-9.3-02, PAP11-9.3-03 | pass | pass | pass | pass |
| `protocol.feedback-report-forms` | negative | PAP11-9.3-03 | pass | pass | pass | pass |
| `protocol.listed-tasks-not-at-10` | positive | PAP11-9.3-03, PAP-3.4-08 | pass | pass | pass | pass |
| `protocol.ucp-profile` | positive | UCP-4-03, UCP-4-04 | pass | pass | pass | pass |
| `protocol.agent-protocols-described` | positive | PAP10-8.1-01, PAP10-3.4-01 | pass | pass | pass | pass |

Expand Down Expand Up @@ -75,6 +78,7 @@ SDK version **1.0.4**, PAP profile **0.4** (as published 2026-11-10), Operations
| --- | --- | --- | --- | --- | --- | --- |
| `lifecycle.signed-out-session` | positive | GUIDE-co-lifetimes-01 | pass | pass | pass | pass |
| `lifecycle.signed-out-challenge` | positive | | pass | pass | pass | pass |
| `lifecycle.offline-access-kept-from-resources` | positive | PAP11-4.4-01, PAP11-4.4-03, PAP11-4.4-04 | pass | pass | pass | pass |
| `lifecycle.resource-not-served` | negative | PAP-7-02 | pass | pass | pass | pass |
| `lifecycle.stale-resource-metadata` | recovery | PAP-7-02 | pass | pass | pass | pass |
| `lifecycle.parallel-sessions` | positive | PAP-5.1-01 | pass | pass | pass | pass |
Expand Down Expand Up @@ -221,7 +225,7 @@ SDK version **1.0.4**, PAP profile **0.4** (as published 2026-11-10), Operations

## Decided by each SDK alone

91 fixture cases need no company: parsing, extension negotiation, URL safety and bounded discovery. Python runs them in `test_fixtures.py` and TypeScript in `conformance-fixtures.test.mjs`; a case marked for one SDK only is listed with it.
92 fixture cases need no company: parsing, extension negotiation, URL safety and bounded discovery. Python runs them in `test_fixtures.py` and TypeScript in `conformance-fixtures.test.mjs`; a case marked for one SDK only is listed with it.

| Case | Kind | Check | SDKs |
| --- | --- | --- | --- |
Expand Down Expand Up @@ -316,5 +320,6 @@ SDK version **1.0.4**, PAP profile **0.4** (as published 2026-11-10), Operations
| `dpop.mcp-proof-from-the-servers-metadata` | positive | dpop_mcp_token | python, typescript |
| `operator.draft-vector` | positive | operator_signature_base | python, typescript |
| `operator.signed-vector` | positive | operator_signature_sign | python, typescript |
| `operator.oauth-signed-vector` | positive | operator_signature_oauth | python, typescript |

The runners' JSON reports (schema 1) carry each case's requirements and messages; see the [conformance guide](/guides/conformance/).
8 changes: 4 additions & 4 deletions docs/docs/protocol/coverage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ changes, applied at 1.0; one marked `(0.4)` holds at 0.4 only.
| Area | Entries | Implemented | Partial | Open | Not applicable |
| --- | ---: | ---: | ---: | ---: | ---: |
| [Discovery](/protocol/coverage/discovery/) | 53 | 51 | 1 | 0 | 1 |
| [Identity and Sessions](/protocol/coverage/identity-sessions/) | 62 | 58 | 2 | 0 | 2 |
| [Sign-in and OAuth tokens](/protocol/coverage/sign-in/) | 30 | 23 | 6 | 1 | 0 |
| [Identity and Sessions](/protocol/coverage/identity-sessions/) | 70 | 66 | 2 | 0 | 2 |
| [Sign-in and OAuth tokens](/protocol/coverage/sign-in/) | 34 | 27 | 6 | 1 | 0 |
| [Browser](/protocol/coverage/browser/) | 19 | 16 | 1 | 1 | 1 |
| [APIs](/protocol/coverage/apis/) | 6 | 6 | 0 | 0 | 0 |
| [Conversations](/protocol/coverage/conversations/) | 22 | 21 | 0 | 0 | 1 |
| [Task coverage](/protocol/coverage/feedback/) | 21 | 14 | 6 | 0 | 1 |
| [Task coverage](/protocol/coverage/feedback/) | 24 | 17 | 6 | 0 | 1 |
| [Security considerations](/protocol/coverage/security-considerations/) | 10 | 5 | 2 | 0 | 3 |
| [Operations](/protocol/coverage/operations/) | 35 | 31 | 3 | 0 | 1 |
| [Mediated Sign-In](/protocol/coverage/mediated-sign-in/) | 12 | 10 | 0 | 1 | 1 |
| [UCP](/protocol/coverage/ucp/) | 13 | 10 | 0 | 1 | 2 |
| [Browser Control](/protocol/coverage/browser-control/) | 9 | 9 | 0 | 0 | 0 |
| [Operational guidance](/protocol/coverage/operational-guidance/) | 120 | 93 | 14 | 6 | 7 |
| [Operational guidance](/protocol/coverage/operational-guidance/) | 124 | 97 | 14 | 6 | 7 |

{/* coverage:end */}

Expand Down
Loading
Loading