Skip to content

1.1.0a1: a pre-release with upstream's draft 1.1 additions, off until turned on - #29

Merged
echarles merged 10 commits into
mainfrom
feat/poppy-1.1
Nov 25, 2026
Merged

echarles merged 10 commits into
mainfrom
feat/poppy-1.1

Conversation

@echarles

Copy link
Copy Markdown
Member

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 589743a, 18 November 2026), in both SDKs. The draft can change until upstream publishes 1.1, and so can this.

Nothing changes on the wire unless a caller turns it on

  • The default protocol version stays 1.0 as published: Poppy-Version: 1.0, protocol_version 1.0.
  • Draft 1.1 is a named version (protocol_versions=("1.1",)), as 0.4 is. Each side sends only what the other's version defines (spec 3.4).
  • A request that names 1.1 at a company that serves 1.0 is compatible, and handled as 1.0 defines.

The additions

Addition (draft) Switch Default
offline_access in a sign-in and a narrowed refresh (4.4, 4.7) scopes_supported on Direct and Device begin and on the refresh context; offline_access=True on Mediated Sign-In not sent
A company whose refresh tokens need it CompanyConfig.offline_access off
Operator signatures at the PAR, token, device authorization and revocation endpoints, over Content-Digest (5.3) WebBotAuthSigner(..., oauth_endpoints=True) not signed
Accepting the agents a verified operator speaks for a client policy with allows_operator (OperatorVerifiedAgents) no one
Replacing a User ID (5.1) replace_user_id; keyed-hash IDs with a counter never
A limit on new User IDs by client_id CompanyConfig.new_user_ids_per_client no limit
Listed tasks in feedback (9, 9.3) CompanyConfig.feedback_tasks, with both sides naming 1.1 not sent

Release workflow

A pre-release tag (vX.Y.ZaN) publishes to PyPI as a pre-release, to npm as X.Y.Z-alpha.N under the dist-tag alpha (never latest), and marks the GitHub release a pre-release.

Tests

  • Python: 1792 passed. TypeScript: 1151 passed, 1 skipped.
  • Conformance: 182 of 182 in the four language pairings at 1.0; the suite also passes at 0.4 and at draft 1.1 in each SDK.

…rator signatures at the authorization server, replacing a User ID, listed tasks in feedback
… operator signatures at the authorization server, replacing a User ID, listed tasks in feedback; 1.1.0
…itions off until turned on; pre-release publishing (PyPI pre-release, npm dist-tag alpha, GitHub pre-release); changelog, compatibility, conformance report
Copilot AI balanced review requested due to automatic review settings November 25, 2026 10:50
…s pins, since no release accepts a pre-release

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Stale or concurrent User ID replacement can rotate the currently stored ID while leaving its sessions, refresh tokens, and keys unchecked and uncleared.

6 open issues
What changed in this PR

Introduces an opt-in prerelease of the Python and TypeScript SDKs with upstream’s draft Poppy 1.1 additions, while retaining protocol 1.0 as the default.

Changes:

  • Adds offline-access scope handling, OAuth operator signatures, operator trust policies, and User ID replacement support.
  • Adds version-gated listed-task feedback and extends conformance coverage.
  • Updates package versions, release automation, and documentation for prerelease publishing without changing stable install defaults.
File Description
src/​user-ids.ts Adds User ID replacement orchestration.
src/​tasks.ts Exposes version-gated listed tasks.
src/​sessions.ts Handles account scopes and signed token requests.
src/​reactor.ts Extends operator signing contracts and bumps version.
src/​profile.ts Separates published and draft protocol versions.
src/​pairwise.ts Adds keyed-hash IDs with replacement counters.
src/​models.ts Adds draft models and version negotiation helpers.
src/​mediated.ts Adds opt-in offline access.
src/​index.ts Exports new SDK APIs.
src/​feedback.ts Adds reports using listed task IDs.
src/​discovery.ts Retains caller-selected protocol versions.
src/​device.ts Adds offline access and signed authorization requests.
src/​demo/​manzanita.ts Configures example feedback tasks.
src/​company/​testing.ts Adds User ID record samples.
src/​company/​store.ts Extends identity, operator, and feedback records.
src/​company/​points.ts Adds operator-backed client policy.
src/​company/​index.ts Bumps company plugin version.
src/​auth.ts Adds offline access and signed pushed requests.
src/​accounts.ts Updates narrowed refresh and revocation requests.
src/​__tests__/​support/​world.mjs Allows extra test-host contributions.
src/​__tests__/​support/​conformance.mjs Adds draft feedback and scope checks.
src/​__tests__/​published-04.test.mjs Updates no-tasks configuration.
src/​__tests__/​profile.test.mjs Checks cross-SDK protocol constants.
src/​__tests__/​feedback.test.mjs Updates feedback-disabled configuration.
src/​__tests__/​draft-10.test.mjs Checks defaults and draft negotiation.
src/​__tests__/​conformance-pairing.test.mjs Adds draft 1.1 pairing coverage.
src/​__tests__/​conformance-fixtures.test.mjs Checks OAuth signature vectors.
scripts/​conformance_report.py Distinguishes default and draft report versions.
RELEASE.md Documents prerelease publishing.
protocol/​fixtures/​conformance/​protocol.json Adds listed-feedback conformance cases.
protocol/​fixtures/​conformance/​operator.json Adds OAuth signature vectors.
protocol/​fixtures/​conformance/​lifecycle.json Adds offline-access isolation checks.
personal_agent_protocol/​user_ids.py Adds User ID replacement orchestration.
personal_agent_protocol/​tasks.py Exposes version-gated listed tasks.
personal_agent_protocol/​sessions.py Filters offline access and signs token requests.
personal_agent_protocol/​reactor.py Extends signing requests and bumps version.
personal_agent_protocol/​profile.py Separates published and draft versions.
personal_agent_protocol/​operator_signatures.py Adds body-digest signing and trust checks.
personal_agent_protocol/​models.py Adds draft models and negotiation helpers.
personal_agent_protocol/​mediated.py Adds opt-in offline access.
personal_agent_protocol/​feedback.py Adds listed-task report validation and sending.
personal_agent_protocol/​discovery.py Retains implemented protocol versions.
personal_agent_protocol/​device.py Adds offline access and request signing.
personal_agent_protocol/​demo/​manzanita.py Configures example feedback tasks.
personal_agent_protocol/​demo/​ledgerly.py Passes issuer scopes to device sign-in.
personal_agent_protocol/​demo/​conformance.py Clarifies the default-version comment.
personal_agent_protocol/​conformance.py Adds draft feedback and scope checks.
personal_agent_protocol/​company/​testing.py Adds User ID record samples.
personal_agent_protocol/​company/​store.py Extends records and serialization.
personal_agent_protocol/​company/​points.py Adds operator-backed client policy.
personal_agent_protocol/​company/​__init__.py Exports policy and bumps plugin version.
personal_agent_protocol/​cli_host.py Records issuer offline-access support.
personal_agent_protocol/​cli_commands.py Passes issuer scope support through sign-in.
personal_agent_protocol/​auth.py Adds offline access and signed pushed requests.
personal_agent_protocol/​actions.py Supplies offline-access metadata for refresh.
personal_agent_protocol/​accounts.py Updates narrowed refresh and revocation requests.
personal_agent_protocol/​__version__.py Sets the Python prerelease version.
personal_agent_protocol/​__tests__/​test_published_04.py Updates no-tasks configuration.
personal_agent_protocol/​__tests__/​test_profile.py Validates prerelease versions and documentation.
personal_agent_protocol/​__tests__/​test_fixtures.py Checks OAuth signature vectors.
personal_agent_protocol/​__tests__/​test_feedback.py Updates feedback-disabled configuration.
personal_agent_protocol/​__tests__/​test_draft_10.py Checks defaults and draft negotiation.
personal_agent_protocol/​__init__.py Exports new SDK APIs.
package.json Sets the npm alpha version.
docs/​docs/​releases/​compatibility.mdx Documents prerelease installation and opt-ins.
docs/​docs/​protocol/​coverage/​sign-in.mdx Maps offline-access requirement coverage.
docs/​docs/​protocol/​coverage/​operational-guidance.mdx Maps new draft guidance coverage.
docs/​docs/​protocol/​coverage/​identity-sessions.mdx Maps ID replacement and signing coverage.
docs/​docs/​protocol/​coverage/​feedback.mdx Maps listed-feedback coverage.
docs/​docs/​protocol/​coverage.mdx Updates coverage totals.
docs/​docs/​protocol/​conformance-report.mdx Updates reported cases and pairing results.
CHANGELOG.md Summarizes prerelease additions and defaults.
.github/​workflows/​release.yaml Maps prerelease versions and publishing tags.

Review effort: Balanced

Comment thread src/user-ids.ts Resolved
Comment thread personal_agent_protocol/sessions.py Resolved
Comment thread personal_agent_protocol/user_ids.py Resolved
Comment thread src/pairwise.ts Resolved
Comment thread src/sessions.ts Resolved
Comment thread src/user-ids.ts Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/pairwise.ts Resolved
Comment thread src/user-ids.ts Resolved
…he store replaces only the ID it is given), whitespace-only scopes grant nothing, no token store needed without refresh tokens, the keyed-hash store copies its key
…om or stored by; the host's part in reserving an ID during a replacement is stated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Accepted identifiers containing lone surrogates can produce identical HMAC inputs, causing distinct users to share company-side identities and state.

3 open issues
2 previously missed issues

In code that hasn't changed since last review

Medium severity Reject sparse task ID arrays

src/​feedback.ts:120

Array.prototype.some skips empty slots, so task_ids: new Array<string>(1) passes validation despite containing no valid ID. Spreading it produces undefined, which FeedbackClient sends as JSON null. Validate a materialized array so holes are rejected.

Medium severity Include protocol versions in the task cache key

src/​tasks.ts:199

Cache hits return before this version check, and the cache key contains neither protocol version. If a company's document changes from 1.1 to 1.0 while the same Session and endpoint are reused, cached listedTasks remain exposed even though the current document no longer defines them. Include both versions in the cache identity while preserving Session-wide invalidation; the same issue occurs in personal_agent_protocol/tasks.py:167–169.

6 resolved since last review

Review effort: Balanced

Comment thread personal_agent_protocol/user_ids.py Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because omitted findings identify a critical user-ID collision risk and inconsistent Unicode length validation across SDKs.

No open issues 🎉

3 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed for an unpublished Unicode-length edge case that can reject valid emoji-containing tasks and discard the entire tasks response.

No open issues 🎉

Review effort: Balanced

@echarles
echarles merged commit 9dd4eee into main Nov 25, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants