Skip to main content

Conversations coverage

Messages, events, streaming, handoff, Direct Conversations, and closing (§8). Upstream: personalagentprotocol.org/docs/spec.

22 entries: 21 implemented, 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-8.2-01§8.2MUSTcompanyA conversation belongs to the Personal Agent's client_id and the User ID that started it, and, once it uses the User's account, to that account too. The Company MUST reject any other request, as the table shows.CompanyService._ownedtest_company_end_to_end.py::test_the_conversation_streams_and_a_stranger_cannot_read_it
test_conformance.py::test_python_agent_python_company_over_tls
conversations.not-found-indistinguishable
conversations.signed-out-on-account-conversation
implemented
PAP-8.2-02§8.2MUST NOTbothBeyond these rules, the side that chooses an ID decides its format, and the other side MUST NOT depend on it.Message.validate_id
ConversationEventPage.validate_ids
test_models.py::test_shared_client_conversation_and_operation_fixturesimplemented
PAP-8.3-01§8.3MUSTpersonal-agentEvery POST body has an id, chosen by the Personal Agent, which MUST make it unique for the User across all its requests. A message's ID is its request's ID, so the message itself has no id.generate_request_id
ConversationClient._request_id
ConversationClient._outgoing_message
test_conversations.py::test_start_and_continue_preserve_message_ids_and_parse_waited_events
test_conversation_control.py::test_handoff_cancel_and_close_post_a_request_id
test_conformance.py::test_python_agent_python_company_over_tls
conversations.retry-replays
conversations.request-id-conflict
implemented
PAP-8.3-02§8.3MUSTcompanyEvery POST body has an id, chosen by the Personal Agent, which MUST make it unique for the User. If the Company has already accepted a request with that ID, path, and body, it returns the original response and doesn't act on the request again. If the path or body is different, the Company returns request_id_conflict. The Company keeps this check for as long as it keeps the conversation.CompanyService._replayed
CompanyService._claim
_request_digest
test_company_refusals.py::test_a_reused_request_id_with_new_text_conflicts_and_a_retry_replays
test_company_rules.py::test_repeated_handoff_and_close_change_nothing
conversations.retry-replays
conversations.request-id-conflict
implemented
PAP-8.9-01§8.9MUST NOTpersonal-agentThe Personal Agent learns which happened from handoff and responder, and MUST NOT depend on the cancel taking effect.ConversationClient.cancel_handoff
ConversationClient.read_until_done
test_conformance.py::test_python_agent_python_company_over_tls
conversations.handoff-cancel
implemented
PAP-8.12-01§8.12MUST NOTpersonal-agentA close doesn't wait its turn (8.3). The Company MAY act on any request it hasn't acted on yet, or MAY drop it, whether it accepted the request before or after the close. Which one happens can depend on timing, so the Personal Agent MUST NOT depend on either.ConversationClient.close
ConversationClient.read_until_done
test_conformance.py::test_python_agent_python_company_over_tls
test_company_rules.py::test_repeated_handoff_and_close_change_nothing
conversations.closed
implemented
PAP-8.4-01§8.4MUSTbothA message MUST have at least one of text, data, context, or extensions.Message.validate_contenttest_models.py::test_message_requires_content
test_fixtures.py::test_local_fixture_case
protocol.message-context-fields
implemented
PAP-8.4-02§8.4MUSTpersonal-agentWhen a Personal Agent shares one of these facts, it MUST use the field and format defined here.Message.validate_contexttest_fixtures.py::test_local_fixture_case
protocol.message-context-fields
implemented
PAP-8.4-03§8.4MUST NOTbothA side MUST NOT send an extension's content unless the other side uses that extension with the same version; the Company checks the request's Poppy-Extensions (3.4), and the Personal Agent checks the Company's document for the version it chose (3.1).CompanyService._reply
CompanyService._supports_extension
parse_extensions_header
operations_content
test_company_rules.py::test_extension_content_goes_only_to_an_agent_that_lists_the_extension
test_operations.py::test_a_session_without_the_operations_scopes_is_refused
implemented
PAP-8.4-04§8.4MUST NOTbothA message from a person at the Company, or written by the User, with author.type human, MUST NOT include either field.Message.validate_content
CompanyService.staff_reply
test_draft_04.py::test_only_an_ai_says_what_it_took_into_account
test_draft_04.py::test_the_company_agent_names_the_request_it_answered_and_people_do_not
conversations.as-of-request
implemented
PAP-8.4-05§8.4MUST NOTbothThe Company and the Personal Agent MUST NOT depend on either field being present, and treat each only as a hint for interpreting the message.Message
ConversationClient.read_until_done
test_draft_04.py::test_only_an_ai_says_what_it_took_into_account
conversations.as-of-request
implemented
PAP-8.5-01§8.5MUSTpersonal-agentPersonal Agents MUST skip event types they don't recognize, so later versions and extensions can add types.ConversationEvent.known
ConversationClient.events
test_fixtures.py::test_local_fixture_case
protocol.unknown-event-type
implemented
PAP-8.5-02§8.5MUST NOTpersonal-agentCursors are opaque, so the Personal Agent MUST NOT compare or sort them.ConversationClient.eventstest_conversations.py::test_events_recover_cursor_drain_backlog_and_suppress_duplicates
test_conformance.py::test_python_agent_python_company_over_tls
conversations.invalid-cursor
implemented
PAP-8.5-03§8.5MUSTcompanyEvery successful read MUST include conversation_id, events, cursor, has_more, and the state fields working, handoff, responder, and closed (8.7), with events empty when there are none.CompanyService._page_response
CompanyService._state_fields
ConversationEventPage
ConversationState
test_company_store.py::test_a_company_restarted_over_its_store_continues_every_flow
test_conformance.py::test_python_agent_python_company_over_tls
test_company_rules.py::test_a_read_without_its_fields_is_refused
test_security_review.py::test_o8_a_reply_is_complete_when_working_is_false
conversations.start-and-reply
conversations.has-more-drained
conversations.empty-read
conversations.read-fields
implemented
PAP-8.7-02§8.7MUSTcompanyEach Company message MUST also include author.type, with agent or human, to identify who wrote it.CompanyService._replytest_conformance.py::test_python_agent_python_company_over_tls
conversations.start-and-reply
conversations.attribution
implemented
PAP-8.8-01§8.8MUSTpersonal-agentOn the Personal Agent's side, the Personal Agent MUST set each message's author.type: agent when the Personal Agent wrote it, and human only when it carries the User's own words.Authortest_conversation_control.py::test_a_direct_conversation_names_its_parent_and_the_parent_points_to_it
test_conformance.py::test_python_agent_python_company_over_tls
conversations.attribution
implemented
PAP-8.10-01§8.10MUSTcompanyThe parent conversation MUST be open, belong to the same owner (8.2), and not be a Direct Conversation itself.CompanyService._start_conversationtest_company_refusals.py::test_a_direct_conversation_locks_its_parent_until_it_closes
test_company_refusals.py::test_each_parent_problem_has_its_own_error
test_conformance.py::test_python_agent_python_company_over_tls
conversations.direct-conversation
conversations.direct-of-direct-refused
implemented
PAP-8.10-02§8.10MUSTcompanyThe Company MUST reject a user_requested_event_id that doesn't name a user_requested event in that parent with invalid_request.CompanyService._accept_user_requesttest_company_refusals.py::test_the_company_speaks_first_in_a_direct_conversation_the_user_acceptedimplemented
PAP-8.10-03§8.10MUST NOTcompanyThe Personal Agent may observe every message in a Direct Conversation. The Company MUST NOT send information there that it cannot share with the Personal Agent.——not-applicable: What a Company may say to the User but not to the Personal Agent is the Company's policy; the reference companies' agents say nothing in a Direct Conversation they would not say to the agent.
PAP-8.11-01§8.11MUST NOTpersonal-agentThe Personal Agent MUST handle the event and matching challenge as one authorization need, and MUST NOT resubmit an accepted message because it received the challenge.ConversationClienttest_conversations.py::test_an_authorization_event_with_its_challenge_on_an_accepted_message_is_one_needimplemented
PAP10-8.1-01§8.1 (1.0)MUSTcompanyAn entry's description says, in plain language, what the agent at that endpoint can help with. The Company MUST include a description in every entry, and MAY say the agent can help with anything.CompanyConfig
CompanyService.discovery_document
AgentProtocol
DiscoveryDocument.validate_version_fields
test_published_10.py::test_a_10_document_needs_a_description_for_each_conversation_protocol
test_published_10.py::test_the_reference_company_describes_its_agent_at_10_and_not_at_04
protocol.agent-protocol-description-required
protocol.agent-protocols-described
implemented
PAP10-8.6-01§8.6 (1.0)MUSTpersonal-agentPersonal Agents MUST skip stream events with an SSE event name they don't recognize, so later versions and extensions can add them.ConversationClient.streamtest_published_10.py::test_a_stream_skips_event_names_it_doesnt_knowimplemented

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