Skip to main content

Operations coverage

The Operations extension, version 3. Upstream: personalagentprotocol.org/docs/extensions/operations.

35 entries: 31 implemented, 3 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
OPS-2-01Ops §2MUST NOTcompanyThe extension is used only when the Company lists operations with version "3" and the request declares that version. A Company MUST NOT return operations in response to a request that doesn't declare it.CompanyService._api_answer
CompanyService._reply
CompanyService._mcp_tool
CompanyService._supports_operations
test_operations.py::test_an_agent_listing_version_1_is_not_sent_an_operation
test_company_refusals.py::test_an_agent_without_the_extension_gets_no_operations
test_operations_v3.py::test_a_request_that_declares_operations_2_gets_no_operation
protocol.extension-required-error
protocol.extension-required-at-an-api
protocol.extension-required-company
implemented
OPS-2-02Ops §2MUSTcompanyA Company that asks for approval on its website lists endpoint, the HTTPS URL where the Personal Agent gets operations its website returned and sends their approvals (4, 6). It MUST list web.browser_session_endpoint with it (spec 6), because only a browser joined to a Session gets operations.CompanyService.discovery_document
operations_endpoint
test_website_operations.py::test_the_company_lists_the_endpoint_with_its_browser_session_endpointimplemented
OPS-3-01Ops §3MUSTcompanyEverything that affects the action, such as what it changes, any amount, date, or recipient, or a condition for cancelling, MUST be in the revision's terms, and in summary if present.ProposedOperationtest_operations.py::test_a_request_is_refused_with_the_operation_and_nothing_is_done
test_operations_v3.py::test_a_company_sends_terms_always_and_a_summary_when_it_has_one
operations.approval-required
partial: The terms are the Company's own: the SDK carries them and can't tell whether they are complete.
OPS-3-02Ops §3MUST NOTcompanyIt MUST NOT give two different sets of terms the same revision, so an approval of one revision never applies to other terms.CompanyService._revision_for
CompanyService.revise
test_draft_04.py::test_a_reworded_summary_keeps_the_revision_and_new_terms_change_it
test_operations.py::test_new_terms_from_the_action_are_a_new_revision_of_the_same_operation
test_operations.py::test_the_companys_revision_withdraws_the_earlier_ones
operations.same-request-same-revision
operations.new-revision-on-changed-terms
implemented
OPS-3-03Ops §3MUST NOTcompanyThe Company MUST NOT start the action before it receives an approval for it.CompanyService._decidetest_operations.py::test_a_request_is_refused_with_the_operation_and_nothing_is_done
operations.approval-required
implemented
OPS-3-04Ops §3MUSTcompanyThe Company MUST perform only what the approved revision describes.CompanyService._perform
CompanyService._approves
test_operations.py::test_the_executor_gets_the_revision_approved_with_its_account
operations.approved-performed
implemented
OPS-3-05Ops §3MUST NOTcompanyoperation_id identifies the action: the Company MUST NOT use it for another action.CompanyService._revision_for
CompanyService._open_operation
test_operations.py::test_a_new_request_after_the_action_is_a_new_operationimplemented
OPS-3-06Ops §3MUST NOTpersonal-agentThe Personal Agent MUST NOT render links, images, or HTML in a summary, and shows them as text.inert_summary
PapConfirm
test_ui.py::test_the_summary_is_shown_as_text_its_links_images_and_html_inertimplemented
OPS-3-07Ops §3SHOULDcompanyexpires_at SHOULD leave the User long enough to read the terms and decide, unless the Company can't hold the terms that long.CompanyConfigtest_operations.py::test_the_default_expiry_leaves_the_user_fifteen_minutesimplemented
OPS-4-01Ops §4MUSTpersonal-agentThe Personal Agent MUST take a reference only from the Poppy-Operation header of a response that its own browser received, never from page content or a message, and only when sid names a Session it joined that browser to.WebsiteOperations.reference
BrowserSessionClient.joined_sessions
test_website_operations.py::test_a_reference_is_taken_only_from_a_joined_session
test_website_operations.py::test_the_header_is_a_dictionary_of_two_strings
implemented
OPS-5-01Ops §5MUST NOTpersonal-agentWhen a request returns an operation, the Personal Agent MUST NOT treat the action as done.ApiResponse
McpToolResult
OperationsClient.send
test_operations.py::test_a_new_revision_for_a_first_send_is_for_the_user
test_operations.py::test_a_tool_returns_an_error_result_and_the_same_call_with_the_approval_performs
implemented
OPS-5-02Ops §5MUSTpersonal-agentThe Personal Agent MUST show the User the Company's name and the revision's terms, and MUST take the User's answer through its own interface.OperationsClient.ask_user
ApprovalSurface
PapConfirm
test_operations.py::test_the_user_is_asked_with_the_company_the_summary_and_any_difference
test_operations.py::test_without_a_surface_nothing_is_approved
test_operations_v3.py::test_the_user_is_shown_the_terms_values_when_there_is_no_summary
implemented
OPS-5-03Ops §5MUST NOTpersonal-agentIt MUST NOT treat text from the Company, such as a conversation message, as the User's approval.OperationsClient.ask_usertest_operations.py::test_only_true_from_the_users_surface_approves
test_operations.py::test_a_messages_text_approves_nothing_whatever_it_says
operations.message-is-not-approval
implemented
OPS-5-06Ops §5SHOULDpersonal-agentBefore approving, the Personal Agent SHOULD check that terms agree with what it asked for, and with the summary if there is one, and point out any difference to the User when it asks them.terms_differences
OperationsClient.ask_user
test_operations.py::test_the_terms_check_points_out_a_summary_that_says_otherwise
test_operations.py::test_the_terms_check_compares_what_was_asked_for
implemented
OPS-5-07Ops §5MUSTpersonal-agentIt MUST rest on an instruction the User gave the Personal Agent. Content from the Company, a website, or anything else the Personal Agent read isn't one, even when it says it comes from the User.OperationsClient.approve_as_agent
AgentInstruction
test_operations_v3.py::test_the_agent_approves_only_what_the_users_instruction_coverspartial: An agent approval is made only on an AgentInstruction the host holds; that the host took it from the User through its own interface, and from nothing the agent read, is the host's to ensure.
OPS-5-08Ops §5MUSTpersonal-agentBefore approving, the Personal Agent MUST check the revision's terms against that instruction, and approve only if the instruction covers them.OperationsClient.approve_as_agenttest_operations_v3.py::test_the_agent_approves_only_what_the_users_instruction_coversimplemented
OPS-5-09Ops §5MUST NOTpersonal-agentIf the Company answers the Personal Agent's agent approval with a new revision (6), or a website returns a new operation for the action after recording it, the Personal Agent MUST NOT approve the new one on the same instruction.OperationsClient.approve_as_agent
OperationsClient.send
WebsiteOperations.record
test_operations_v3.py::test_new_terms_after_an_agent_approval_are_the_users_to_approve
test_website_operations.py::test_an_agent_approval_makes_the_next_revision_the_users
implemented
OPS-6-01Ops §6MUSTcompanyAfter the Session header checks and the token checks, the Company MUST make the following checks before performing the action, and respond as the first one that fails says, whatever order it makes them in internally: the Session can approve the operation, else it handles the request as if it had no approval; the operation hasn't been performed already; the revision is one the Company returned for this operation, it hasn't expired, and the request asks for exactly what it describes.CompanyService._approval_target
CompanyService._settled
CompanyService._approves
test_operations.py::test_any_session_of_the_account_approves_and_a_signed_out_one_gets_a_challenge
test_operations.py::test_an_operation_returned_signed_out_is_approved_in_any_signed_out_session
test_operations.py::test_an_operation_is_the_conversations_own
test_draft_04.py::test_the_approving_request_is_compared_by_meaning_from_any_session
test_draft_04.py::test_an_approval_of_earlier_terms_the_user_prefers_is_still_accepted
operations.approved-performed
operations.malformed-approval-header-ignored
operations.any-session-of-the-account-approves
operations.signed-out-session-gets-a-challenge
operations.another-user-cannot-approve
operations.mcp-approval
operations.conversation-approval
implemented
OPS-6-02Ops §6MUSTcompanyCompanies MUST ignore members of Poppy-Approval they don't recognize, so later versions can add members.parse_approval_header
approval_from_meta
test_operations.py::test_the_header_parses_as_a_dictionary_ignoring_unknown_members
test_operations.py::test_the_mcp_approval_is_read_from_meta_ignoring_unknown_members
operations.approval-unknown-members-ignored
implemented
OPS-6-03Ops §6MUST NOTcompanyA Company MUST NOT answer an approval with the revision it names, so a Personal Agent never retries the same approval in a loop.CompanyService._revision_fortest_operations.py::test_a_failed_check_3_answers_a_new_revision_never_the_one_named
test_operations.py::test_a_failed_check_in_a_conversation_is_a_message_with_a_new_revision
operations.new-revision-on-changed-terms
operations.approval-of-a-revision-never-returned
operations.approval-of-another-request
operations.expired
implemented
OPS-6-04Ops §6SHOULDpersonal-agentIt SHOULD include approved_at and input_type with user.OperationsClient.ask_user
approval_header
McpClient.call_tool
test_operations.py::test_the_user_is_asked_with_the_company_the_summary_and_any_difference
test_draft_04.py::test_an_approval_says_when_and_how_the_user_gave_it
test_operations_v3.py::test_a_user_approval_says_user_how_and_under_which_reference
implemented
OPS-6-05Ops §6MUST NOTpersonal-agentThe Personal Agent MUST NOT put personal data, or anything that identifies the User or their device, in input_type or reference.Approval
OperationsClient.ask_user
test_draft_04.py::test_an_approval_says_when_and_how_the_user_gave_itimplemented
OPS-6-06Ops §6MUST NOTcompanyA Company MAY record approver, approved_at, input_type, and reference, and MUST NOT reject or decline an approval because an optional member is missing or because it doesn't recognize the input_type.Approval
parse_approval_header
test_draft_04.py::test_an_approval_says_when_and_how_the_user_gave_it
test_operations_v3.py::test_an_approval_with_only_its_approver_is_acted_on
test_operations_v3.py::test_the_company_performs_an_agent_approval_and_records_who_approved
operations.agent-approval
implemented
OPS-6-07Ops §6MUSTpersonal-agentAn approval names the operation_id and the revision, and says in approver how it was approved (5): user for a user approval, or agent for an agent approval. The Personal Agent MUST include approver.Approval
approval_header
parse_approval_header
test_operations_v3.py::test_an_approval_names_its_approver_and_the_header_carries_every_member
test_operations_v3.py::test_an_approval_without_a_valid_approver_is_no_approval
test_operations_v3.py::test_a_version_2_approval_approves_nothing
operations.approval-without-approver
implemented
OPS-6-08Ops §6MUST NOTpersonal-agentinput_type, only with user: how the User gave their answer, as a short string, such as tap, typed, or voice. The Personal Agent MUST NOT include it with agent, and a Company ignores it there.Approval
approval_header
test_operations_v3.py::test_an_agent_approval_never_carries_an_input_typeimplemented
OPS-6-09Ops §6MUST NOTpersonal-agentThe Personal Agent MUST NOT send the same reference to two Companies, so that Companies can't use it to link the User's approvals at one Company to their approvals at another.new_approval_reference
OperationsClient.new_reference
test_operations_v3.py::test_a_reference_is_opaque_random_and_never_the_same_twicepartial: A reference the SDK makes is random for each approval, so never the same twice; a host that sends its own ledger's IDs keeps them apart by Company itself.
OPS-6-10Ops §6MUST NOTcompanyThe Company MUST NOT record a declined approval, so a website never finds it for a later request.CompanyConfig
Decline
DeclineRequest
test_operations_v3.py::test_manzanita_declines_an_agent_approval_of_a_return_and_takes_the_users
test_operations_v3.py::test_a_tool_declines_with_an_error_result
test_operations_v3.py::test_a_conversation_declines_in_a_later_message_without_error
operations.approval-declined
implemented
OPS-6-11Ops §6MUST NOTcompanyThe Company MUST NOT put anything in reason that the Session couldn't already see.Declinetest_operations_v3.py::test_manzanita_declines_an_agent_approval_of_a_return_and_takes_the_usersnot-applicable: The reason is the company's own words, returned by its decline hook (CompanyConfig.decline): the SDK carries them as they are.
OPS-6-12Ops §6MUST NOTpersonal-agentWhen an approval is declined, the Personal Agent MUST NOT send that approval again, and MUST NOT approve a new revision for the same action without asking the User (5).OperationsClient.send
OperationsClient.approve_as_agent
declined_from
test_operations_v3.py::test_a_declined_approval_is_final_and_never_sent_again
test_operations_v3.py::test_a_decline_is_read_from_each_interface
implemented
OPS-6-13Ops §6MUST NOTcompanyThe Company MUST NOT accept an approval of a website's operation at an API, MCP server, or conversation, or an approval of another interface's operation at endpoint.CompanyService._approval_target
CompanyService._operations_endpoint
test_website_operations.py::test_a_website_approval_is_never_accepted_at_the_api
test_website_operations.py::test_the_endpoint_refuses_what_the_session_cannot_use
implemented
OPS-6-14Ops §6MUSTcompanyThe Company MUST keep a recorded approval that isn't used up until the approved revision's expires_at, and MUST NOT apply it to requests from a Session that can't approve the operation.CompanyService._record
CompanyService._website_decide
test_website_operations.py::test_a_website_operation_is_approved_at_the_endpoint_and_performed_once
test_website_operations.py::test_an_approval_of_another_revision_gets_the_operation_and_a_decline_is_not_kept
implemented
OPS-7-01Ops §7MUSTcompanyThe Company MUST perform each operation at most once, however many times its approval is sent.CompanyService._perform
CompanyStore
test_operations.py::test_the_same_request_with_the_approval_is_performed_once
test_operations.py::test_two_requests_at_once_perform_it_once
test_company_store.py::test_a_company_restarted_over_its_store_continues_every_flow
operations.retry-after-the-outcome
operations.retry-before-the-outcome
operations.mcp-approval
operations.conversation-approval
operations.lost-answer-same-approval
operations.failed-partial-result
implemented
OPS-7-02Ops §7MUSTcompanyThe Company MUST remember that it performed an operation at least until the approved revision's expires_at, and while it is being performed.StoredOperationtest_operations.py::test_the_same_request_with_the_approval_is_performed_once
test_security_demonstrations.py::test_restart_is_safe
operations.retry-after-the-outcome
implemented
OPS-7-03Ops §7MUST NOTcompanyWhile an operation is being performed, or the Company doesn't know whether it took effect, the Company MUST NOT respond as if it failed.OperationOutcomeUnknown
CompanyService._api_decision
CompanyService._mcp_decision
test_operations.py::test_while_it_is_performed_a_retry_gets_503_and_retry_after_never_a_failure
test_operations.py::test_a_tool_still_being_performed_answers_503
operations.retry-before-the-outcome
implemented
OPS-7-04Ops §7MUST NOTpersonal-agentIt MUST NOT approve a new operation for the same action, or ask the User to, until it knows whether the first one was performed.OperationsClient.send
ApprovalSent
test_operations.py::test_a_new_operation_in_answer_to_a_retry_says_nothing_of_the_first
test_operations.py::test_still_unknown_after_every_attempt
operations.lost-answer-same-approval
implemented

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