Skip to main content

Discovery coverage

Company discovery, OAuth metadata, versions, and extensions (§3). Upstream: personalagentprotocol.org/docs/spec.

53 entries: 51 implemented, 1 partial, 1 not-applicable. Each row is one atomic statement of the upstream text, with the SDK symbols that implement it (Python; TypeScript mirrors them), the tests and shared conformance cases that show it, and its status.

IDSectionLevelRoleRequirementSDK symbolTestsStatus
PAP-3-01§3MUSTcompanyA Company MUST publish its poppy.json document at https://{domain}/.well-known/poppy.json over HTTPS, where {domain} is the Company's domain or a subdomain it controls.CompanyService.discovery_documenttest_company_end_to_end.py::test_a_user_and_a_company_from_question_to_confirmed_exchangeimplemented
PAP-3-02§3MUSTpersonal-agentPersonal Agents MUST follow redirects, and every redirect MUST be to an HTTPS URL.DiscoveryClient._get_jsontest_fixtures.py::test_local_fixture_case
protocol.organization-domain-after-redirect
protocol.organization-domain-redirect-www
security.discovery-redirect-followed
implemented
PAP-3-03§3MUSTpersonal-agentPersonal Agents MUST follow redirects, and every redirect MUST be to an HTTPS URL.DiscoveryClient._get_json
PublicUrlSafetyPolicy.assert_safe
test_fixtures.py::test_local_fixture_case
security.discovery-redirect-to-http
security.discovery-redirect-followed
implemented
PAP-3-05§3MUSTbothEvery URL this protocol defines or exchanges MUST be an HTTPS URL: in poppy.json, in authorization server and protected resource metadata, in client metadata documents (4.1), in extensions, and in assertions, Session JWTs, and responses._https_url
FeedbackDescriptor
McpServerMetadata
CompanyService.discovery_document
test_fixtures.py::test_local_fixture_case
test_mcp_and_web.py::test_the_company_advertises_its_mcp_server_and_its_issuer
protocol.tasks-endpoint-https
implemented
PAP-3-06§3MUST NOTpersonal-agentPersonal Agents MUST NOT use a URL from a Company that has another scheme._https_url
DeviceAuthorizationResponse
McpServerMetadata
SessionHttpClient
test_fixtures.py::test_local_fixture_case
test_mcp_and_web.py::test_a_token_for_the_mcp_server_comes_from_a_refresh_with_its_url
protocol.tasks-endpoint-https
implemented
PAP-3-07§3MUSTcompanyCompanies MUST reject one from a Personal Agent.ClientMetadata.validate_urls
ClientMetadata.validate_redirects
verify_assertion
test_identity.py::test_fetches_metadata_and_public_jwks
test_models.py::test_client_metadata_requires_same_domain_for_security_urls
implemented
PAP-3-08§3MUST NOTpersonal-agentIf the token, revocation, or device authorization endpoint, an API, {browser_session_endpoint}/authorize, or a conversation, tasks, feedback, or extension endpoint answers with a redirect, the Personal Agent MUST NOT send a token, Session JWT, assertion, or credentials to the new URL.refuse_redirect
SessionHttpClient
SessionClient
RefreshTokenClient
DeviceSignInClient
DirectSignInClient
McpClient
test_transport.py::test_session_ended_restarts_once_with_a_fresh_jwt_and_a_redirect_gets_nothing
test_transport.py::test_refuses_cross_origin_redirect_and_protected_headers
test_sessions.py::test_a_redirect_at_the_token_endpoint_gets_nothing
test_mediated.py::test_a_redirect_never_carries_the_credentials_elsewhere
test_published_04.py::test_with_no_response_the_agent_carries_on_as_if_nothing_were_listed
implemented
PAP-3-09§3MUST NOTpersonal-agentPersonal Agents and Companies MUST NOT connect to a loopback, private, or link-local address for a URL the other party gave them, unless they were configured to on purpose.PublicUrlSafetyPolicy
ResolvingTransport
create_resolving_client
test_discovery.py::test_rejects_private_discovery_address
test_security_review.py::test_finding_13_a_host_resolving_to_nat64_loopback_is_refused
test_fixtures.py::test_local_fixture_case
implemented
PAP-3-10§3MUST NOTcompanyPersonal Agents and Companies MUST NOT connect to a loopback, private, or link-local address for a URL the other party gave them, unless they were configured to on purpose.build_company
AgentIdentityClient
PublicUrlSafetyPolicy
test_company_rules.py::test_the_company_never_fetches_an_agent_on_a_private_addressimplemented
PAP-3-11§3MUSTpersonal-agentA redirect MAY go to another host, but Personal Agents MUST use the document only when the last URL's path is exactly /.well-known/poppy.json and it has no query.DiscoveryClient.discovertest_draft_03.py::test_a_discovery_document_off_the_well_known_path_is_refused
test_fixtures.py::test_local_fixture_case
protocol.redirect-ends-off-the-well-known-path
protocol.redirect-ends-with-a-query
implemented
PAP-3.1-01§3.1MUST NOTpersonal-agentA Personal Agent uses the document only if the version is compatible with one it implements (3.4), and if none is, it MUST NOT use any of them.DiscoveryDocument.validate_version_used
choose_protocol_version
SUPPORTED_PROTOCOL_VERSIONS
AVAILABLE_PROTOCOL_VERSIONS
implemented_protocol_versions
DiscoveryClient.discover
test_fixtures.py::test_local_fixture_case
test_draft_04.py::test_versions_are_compatible_by_major_and_before_1_0_by_minor
test_draft_10.py::test_a_published_document_is_used_only_by_an_agent_that_implements_it
test_draft_10.py::test_an_agent_on_the_default_uses_no_company_that_serves_only_the_published_version
protocol.major-version-unsupported
protocol.minor-version-newer
protocol.older-version-unsupported
protocol.version-not-major-minor
protocol.no-compatible-version
protocol.supported-versions-newest-compatible
implemented
PAP-3.1-02§3.1MUSTpersonal-agentdomain MUST be the host that serves the document, after any redirects. Domains are compared ignoring case, with no other normalization.DiscoveryClient.discovertest_fixtures.py::test_local_fixture_case
protocol.organization-domain-www
protocol.organization-domain-after-redirect
protocol.organization-domain-redirect-www
protocol.organization-domain-case-insensitive
implemented
PAP-3.1-03§3.1MUSTbothauth.issuer is the Company's OAuth issuer identifier, naming the one Personal Agents use (3.2). It MUST be in that list.DiscoveryClienttest_fixtures.py::test_local_fixture_case
protocol.several-authorization-servers-need-auth-issuer
protocol.several-authorization-servers-auth-issuer-listed
protocol.several-authorization-servers-auth-issuer-unlisted
implemented
PAP-3.1-04§3.1MUSTbothWith one authorization server, the Company MAY leave it out, and if it includes it, it MUST name that server.DiscoveryClienttest_fixtures.py::test_local_fixture_case
protocol.one-authorization-server-auth-issuer-other
implemented
PAP-3.2-01§3.2MUSTcompanyThe issuer MUST publish OAuth Authorization Server Metadata (RFC 8414), at the URL RFC 8414 §3.1 defines.CompanyService.oauth_metadatatest_company_end_to_end.py::test_a_user_and_a_company_from_question_to_confirmed_exchangeimplemented
PAP-3.2-02§3.2MUSTcompanyIts protected_resources (RFC 9728 §4) MUST list https://{domain} for every domain whose issuer it is, with no path, port, or trailing slash.CompanyService.oauth_metadatatest_company_end_to_end.py::test_a_user_and_a_company_from_question_to_confirmed_exchangeimplemented
PAP-3.2-03§3.2MUSTpersonal-agentBefore using a Company's poppy.json, the Personal Agent fetches the metadata and MUST check that its issuer exactly matches the issuer it found, character for character.DiscoveryClient.discover
AuthCapabilities.validate_issuer
test_discovery.py::test_discovers_and_authenticates_company
test_fixtures.py::test_local_fixture_case
protocol.multi-domain-issuer
protocol.issuer-mismatch
protocol.issuer-compared-exactly
implemented
PAP-3.2-04§3.2MUSTpersonal-agentIt MUST also check that protected_resources includes https://{organization.domain}, compared as RFC 9728 §3.3 describes except that the host is compared ignoring case (3.1).DiscoveryClient.discover
OAuthServerMetadata.lists_resource
test_discovery.py::test_rejects_issuer_that_does_not_authorize_domain
test_draft_03.py::test_the_issuer_lists_the_grants_and_scopes_it_offers
test_fixtures.py::test_local_fixture_case
protocol.multi-domain-issuer
protocol.issuer-not-claiming-domain
protocol.protected-resource-trailing-slash
protocol.protected-resource-with-a-path
protocol.protected-resource-host-case
protocol.issuer-with-a-path
implemented
PAP-3.2-06§3.2MUSTcompanySeveral domains MAY have the same issuer ... The Company MUST select that same issuer on each domain.CompanyService.discovery_documenttest_discovery.py::test_an_alias_publishes_the_companys_discovery_and_its_issuer_lists_itimplemented
PAP-3.2-31§3.2MUSTcompanyThe Company MUST give each scope the same authorization meaning across these domains.CompanyService.discovery_documenttest_discovery.py::test_an_alias_publishes_the_companys_discovery_and_its_issuer_lists_itimplemented
PAP-3.2-32§3.2SHOULDcompanyThe Company SHOULD publish the same scope descriptions and hints across these domains, but MAY expose different scopes or capabilities.CompanyService.discovery_documenttest_discovery.py::test_an_alias_publishes_the_companys_discovery_and_its_issuer_lists_itimplemented
PAP-3.2-07§3.2MUSTcompanyAn issuer MUST represent exactly one Company.CompanyConfig
CompanyService.oauth_metadata
_metadata_url
test_discovery.py::test_an_alias_publishes_the_companys_discovery_and_its_issuer_lists_it
test_fixtures.py::test_local_fixture_case
protocol.issuer-with-a-path
implemented
PAP-3.2-08§3.2MUSTcompanyA provider that hosts several Companies MUST give each its own issuer, such as https://auth.provider.example/shop-a, even when they share servers.CompanyService—not-applicable: The reference company is one Company per CompanyService, its issuer its own base URL; it hosts no other Company. Personal agents find an issuer with a path at its RFC 8414 URL (discovery._metadata_url, protocol.issuer-with-a-path).
PAP-3.2-20§3.2MUSTcompanygrant_types_supported lists the grant types the token endpoint accepts. Required, and it MUST include refresh_token (4.4).CompanyService.oauth_metadata
OAuthServerMetadata
test_draft_03.py::test_the_issuer_lists_the_grants_and_scopes_it_offersimplemented
PAP-3.2-22§3.2SHOULDcompanyscopes_supported lists the scopes the issuer supports. A Company that offers sign-in SHOULD list every scope a Personal Agent can request here, in scopes_supported of its protected resource metadata (above), or in both (4.7).CompanyService.oauth_metadatatest_draft_03.py::test_scopes_are_the_companys_described_and_never_poppy
test_fixtures.py::test_local_fixture_case
test_published_04.py::test_the_reference_company_lists_its_scopes_in_both_and_says_it_reads_cimd
protocol.scopes-supported-optional
implemented
PAP-3.2-23§3.2MUSTcompanyA Company that offers sign-in MUST have an OAuth issuer.DiscoveryClient
DiscoveredCompany.require_oauth
CompanyConfig
test_issuerless.py::test_no_issuer_is_refused_for_a_company_that_offers_sign_in
test_issuerless.py::test_sign_in_is_refused_locally
test_fixtures.py::test_local_fixture_case
test_conformance.py::test_python_agent_python_company_with_no_issuer_over_tls
protocol.website-without-issuer
no-issuer.no-oauth-server
no-issuer.signed-out-interfaces
no-issuer.sign-in-refused-locally
implemented
PAP-3.2-24§3.2MUSTbothIf the Company publishes this metadata, its resource MUST be exactly https://{organization.domain}, and its authorization_servers, when nonempty, names the issuer.DiscoveryClienttest_fixtures.py::test_local_fixture_case
protocol.issuer-from-protected-resource-metadata
protocol.resource-metadata-names-another-resource
protocol.several-authorization-servers-need-auth-issuer
implemented
PAP-3.2-25§3.2MUSTbothThe Company's identifier is its issuer when it has one, and otherwise https://{organization.domain}, with the host in lowercase and no trailing slash. Session JWTs MUST use this identifier as their audience, and User IDs and Agent IDs are scoped by it.DiscoveredCompany.identifier
CompanyConfig.identifier
test_issuerless.py::test_no_issuer_is_found_and_the_identifier_is_the_domain
test_issuerless.py::test_with_an_issuer_the_identifier_is_the_issuer
test_issuerless.py::test_the_companys_identifier_is_its_lowercase_domain
test_conformance.py::test_python_agent_python_company_with_no_issuer_over_tls
no-issuer.discovery
no-issuer.session-audience
implemented
PAP-3.2-26§3.2MUSTpersonal-agentHTTP 404, or valid metadata with authorization_servers absent or empty, means the Company has no issuer. This is valid only when auth.issuer is absent and the Company offers no sign-in; otherwise the Personal Agent MUST NOT use the Company.DiscoveryClient.discover
DiscoveryDocument.needs_issuer
test_issuerless.py::test_no_issuer_is_found_and_the_identifier_is_the_domain
test_issuerless.py::test_no_issuer_is_refused_for_a_company_that_offers_sign_in
test_fixtures.py::test_local_fixture_case
test_conformance.py::test_python_agent_python_company_with_no_issuer_over_tls
protocol.feedback-needs-no-auth
no-issuer.discovery
no-issuer.metadata-without-servers
no-issuer.sign-in-offered-without-issuer
implemented
PAP-3.2-27§3.2MUST NOTpersonal-agentA Personal Agent MUST NOT use the domain fallback after a timeout, another error status, invalid metadata, or a failure to verify an issuer.DiscoveryClient.discovertest_issuerless.py::test_another_status_is_never_the_domain_fallback
test_issuerless.py::test_a_timeout_is_never_the_domain_fallback
test_issuerless.py::test_invalid_metadata_is_never_the_domain_fallback
test_issuerless.py::test_an_issuer_that_fails_to_verify_is_never_the_domain_fallback
test_conformance.py::test_python_agent_python_company_with_no_issuer_over_tls
no-issuer.no-fallback-server-error
no-issuer.no-fallback-timeout
no-issuer.no-fallback-invalid-metadata
no-issuer.no-fallback-unverified-issuer
implemented
PAP-3.2-28§3.2MUST NOTpersonal-agentIt MUST NOT fall back for a Company whose issuer it already knows unless a successful discovery explicitly establishes that the issuer was removed.DiscoveryClient.discovertest_issuerless.py::test_a_known_issuer_is_never_lost_to_an_errorimplemented
PAP-3.2-29§3.2MUSTcompanyA Company that lists signed_in MUST have an issuer.DiscoveryDocument.needs_issuer
DiscoveryClient.discover
test_issuerless.py::test_no_issuer_is_refused_for_a_company_that_offers_sign_in
no-issuer.sign-in-offered-without-issuer
implemented
PAP-3.2-30§3.2MUSTpersonal-agentPersonal Agents MUST ignore unknown values of access and handle them as an absent hint. The hint grants no permission: runtime challenges and authorization events remain authoritative.AgentProtocol.account_accesstest_fixtures.py::test_local_fixture_case
protocol.access-hint
implemented
PAP-3.2-33§3.2MUSTpersonal-agentAdding or changing an issuer can change that identifier. If it changes, Personal Agents MUST use new User IDs, Agent IDs, and Sessions for the new identifier.DiscoveredCompany.identifier
SqlitePairwiseUserIdStore
test_issuerless.py::test_user_ids_are_scoped_by_the_identifierimplemented
PAP-3.2-34§3.2MUST NOTpersonal-agentA Personal Agent MUST NOT start Direct, Device, or Mediated Sign-In with a Company that sets auth.disabled.DiscoveryDocument.sign_in_disabled
DiscoveredCompany.require_oauth
test_company_rules.py::test_a_company_that_turned_sign_in_off_is_used_signed_outimplemented
PAP-3.2-35§3.2MUST NOTcompanyA Company that sets auth.disabled MUST NOT list the Mediated Sign-In extension or signed_in access.CompanyConfig.sign_in_disabledtest_company_rules.py::test_a_company_that_turned_sign_in_off_is_used_signed_outimplemented
PAP-3.2-36§3.2MUST NOTcompanyA Company that lists signed_in MUST NOT set auth.disabled.CompanyConfig.sign_in_disabledtest_company_rules.py::test_a_company_that_turned_sign_in_off_is_used_signed_outimplemented
PAP-3.3-01§3.3MUSTbothAnyone else MUST start an extension's name with a domain they control, such as example.com/gift-wrap.extension_name_kind
negotiate_extensions
test_fixtures.py::test_local_fixture_case
protocol.third-party-extension-name
implemented
PAP-3.3-02§3.3MUSTpersonal-agentPersonal Agents and Companies MUST ignore extensions and versions they don't support and fields they don't recognize, so either side can work with the other under this specification alone.negotiate_extensions
operations_negotiated
test_operations.py::test_operations_are_used_only_when_both_sides_list_version_2
test_fixtures.py::test_local_fixture_case
protocol.unknown-extension-ignored
protocol.extension-version-mismatch
protocol.extension-recognized-from-the-request
implemented
PAP-3.3-03§3.3MUSTcompanyPersonal Agents and Companies MUST ignore extensions and versions they don't support and fields they don't recognize, so either side can work with the other under this specification alone.CompanyService._client
ClientMetadata
test_conformance.py::test_python_agent_python_company_over_tls
test_company_refusals.py::test_an_agent_without_the_extension_gets_no_operations
protocol.extension-required-company
implemented
PAP-3.3-04§3.3MUSTpersonal-agentPersonal Agents and Companies MUST ignore extensions and versions they don't support and fields they don't recognize, so either side can work with the other under this specification alone.ProtocolModeltest_models.py::test_discovery_fixture_round_trips_and_preserves_extensions
test_fixtures.py::test_local_fixture_case
protocol.minor-version-newer
protocol.unknown-fields-ignored
protocol.unknown-api-type
protocol.unknown-conversation-protocol
protocol.third-party-extension-name
protocol.unknown-event-type
protocol.unknown-operation-fields
implemented
PAP-3.3-05§3.3MUSTcompanyPersonal Agents and Companies MUST ignore extensions and versions they don't support and fields they don't recognize, so either side can work with the other under this specification alone.ProtocolModel
CompanyService._token
—partial: The company parses requests with the same extra-tolerant models and ignores unknown form fields, but no test sends it unknown fields.
PAP-3.4-01§3.4MUSTcompanyEach URL in supported_versions MUST be an HTTPS URL on the host that served poppy.json, after any redirects.CompanyConfig.version_document_url
CompanyService.discovery_document
test_draft_04.py::test_the_company_serves_its_other_versions_documents
protocol.supported-versions-published
implemented
PAP-3.4-02§3.4MUST NOTpersonal-agentThe Personal Agent MUST NOT use a document whose URL is on another host, and MUST NOT follow a redirect from it.DiscoveryClient._version_document
DiscoveryClient._fetch
test_fixtures.py::test_local_fixture_case
protocol.supported-versions-other-host
protocol.supported-versions-redirect
implemented
PAP-3.4-03§3.4MUST NOTpersonal-agentThe document there has the protocol_version it is listed under, and no supported_versions. The Personal Agent MUST NOT use it if its protocol_version is another one.DiscoveryClient._version_documenttest_fixtures.py::test_local_fixture_case
protocol.supported-versions-version-mismatch
protocol.supported-versions-lists-more
implemented
PAP-3.4-04§3.4MUSTcompanyEvery document a Company serves at the same time MUST have the same organization.domain and select the same issuer (3.2), so that a new version doesn't change the Company's identifier, and with it User IDs and refresh tokens.CompanyService.discovery_document
DiscoveryClient._version_document
test_draft_04.py::test_the_company_serves_its_other_versions_documents
test_fixtures.py::test_local_fixture_case
protocol.supported-versions-published
protocol.supported-versions-other-issuer
implemented
PAP-3.4-05§3.4MUST NOTpersonal-agentTwo versions are compatible when they have the same major version and, before 1.0, the same minor version. The Personal Agent chooses the newest version, among protocol_version and the versions in supported_versions, that is compatible with one it implements, and uses that version's document. If none is, it MUST NOT use any of them.compatible_versions
choose_protocol_version
DiscoveryDocument.chosen_version
DiscoveryDocument.choose_version
DiscoveryClient.discover
test_draft_04.py::test_versions_are_compatible_by_major_and_before_1_0_by_minor
test_fixtures.py::test_local_fixture_case
test_draft_10.py::test_a_company_that_serves_both_versions_is_used_at_the_newest_the_agent_implements
protocol.supported-versions-newest-compatible
protocol.no-compatible-version
implemented
PAP-3.4-07§3.4MUSTpersonal-agentOn every request with the Session header (5.2), the Personal Agent sends the protocol version it implements, compatible with the chosen one, in Poppy-Version, as major.minor. When it uses extensions with the Company, it also sends Poppy-Extensions, an RFC 9651 List of Strings, each the name of an extension in the chosen document, with the version it uses as a String in the v parameter. The Personal Agent MUST send the same values on every request in a Session, and starts a new Session to change them.PapSession
SessionClient.start
DiscoveredCompany.session_version
implemented_version_for
session_headers
VERSION_HEADER
format_extensions_header
negotiate_extensions
test_draft_04.py::test_every_request_with_the_session_header_names_the_sessions_version
test_draft_10.py::test_a_session_names_the_version_given_else_the_companys_else_the_default_one
test_draft_04.py::test_a_session_declares_the_extensions_it_uses_with_the_company
test_fixtures.py::test_local_fixture_case
protocol.extensions-header
protocol.unknown-extension-ignored
implemented
PAP-3.4-08§3.4MUSTcompanyAn endpoint that verifies the Session header (5.3) MUST also check Poppy-Version.CompanyService._caller
CompanyConfig.serves_version
test_draft_04.py::test_a_request_without_poppy_version_or_in_an_unserved_one_is_refused
protocol.version-header-required
protocol.version-unserved
implemented
PAP-3.4-09§3.4MUST NOTcompanyIt rejects a request without it, or with a version that isn't compatible with one the Company serves, with version_unsupported (HTTP 400, JSON body), and MUST NOT handle the request under another version.CompanyService._callertest_draft_04.py::test_a_request_without_poppy_version_or_in_an_unserved_one_is_refused
protocol.version-header-required
protocol.version-unserved
implemented
PAP10-3.1-01§3.1 (1.0)MUSTbothdomain MUST be the host that serves the document, after any redirects, with its port when that isn't 443. Personal Agents use a Company on another port only when configured to on purpose, such as for testing (section 3).split_domain
DiscoveryDocument.validate_version_fields
DiscoveryClient.discover
CompanyConfig
test_published_10.py::test_a_domain_names_its_port_when_that_isnt_443_from_10_only
test_published_10.py::test_an_agent_uses_a_company_on_another_port_only_when_configured_to
protocol.organization-domain-port
protocol.organization-domain-port-not-allowed
protocol.organization-domain-port-other-domain
implemented
PAP10-3.4-01§3.4 (1.0)MUST NOTcompanyThe Company MUST NOT send the Personal Agent a field, value, or event that only a minor version later than the request's Poppy-Version defines.CompanyService.discovery_documenttest_published_10.py::test_the_reference_company_describes_its_agent_at_10_and_not_at_04
test_published_10.py::test_nothing_of_10_goes_into_a_04_exchange
protocol.agent-protocols-described
implemented
PAP10-3.4-02§3.4 (1.0)MUST NOTpersonal-agentThe Personal Agent MUST NOT send the Company one that only a version later than the chosen document's protocol_version defines.ConversationClient._outgoing_message
clears_context
DiscoveryDocument.validate_version_fields
test_published_10.py::test_nothing_of_10_goes_into_a_04_exchange
test_published_10.py::test_a_10_document_needs_a_description_for_each_conversation_protocol
protocol.agent-protocol-description-not-in-04
protocol.organization-domain-port-04
implemented

Conformance case IDs name protocol/fixtures/conformance cases; see the conformance report for their outcome in every language pairing.