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.
| ID | Section | Level | Role | Requirement | SDK symbol | Tests | Status |
|---|---|---|---|---|---|---|---|
OPS-2-01 | Ops §2 | MUST NOT | company | The 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_answerCompanyService._replyCompanyService._mcp_toolCompanyService._supports_operations | test_operations.py::test_an_agent_listing_version_1_is_not_sent_an_operationtest_company_refusals.py::test_an_agent_without_the_extension_gets_no_operationstest_operations_v3.py::test_a_request_that_declares_operations_2_gets_no_operationprotocol.extension-required-errorprotocol.extension-required-at-an-apiprotocol.extension-required-company | implemented |
OPS-2-02 | Ops §2 | MUST | company | A 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_documentoperations_endpoint | test_website_operations.py::test_the_company_lists_the_endpoint_with_its_browser_session_endpoint | implemented |
OPS-3-01 | Ops §3 | MUST | company | Everything 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. | ProposedOperation | test_operations.py::test_a_request_is_refused_with_the_operation_and_nothing_is_donetest_operations_v3.py::test_a_company_sends_terms_always_and_a_summary_when_it_has_oneoperations.approval-required | partial: The terms are the Company's own: the SDK carries them and can't tell whether they are complete. |
OPS-3-02 | Ops §3 | MUST NOT | company | It MUST NOT give two different sets of terms the same revision, so an approval of one revision never applies to other terms. | CompanyService._revision_forCompanyService.revise | test_draft_04.py::test_a_reworded_summary_keeps_the_revision_and_new_terms_change_ittest_operations.py::test_new_terms_from_the_action_are_a_new_revision_of_the_same_operationtest_operations.py::test_the_companys_revision_withdraws_the_earlier_onesoperations.same-request-same-revisionoperations.new-revision-on-changed-terms | implemented |
OPS-3-03 | Ops §3 | MUST NOT | company | The Company MUST NOT start the action before it receives an approval for it. | CompanyService._decide | test_operations.py::test_a_request_is_refused_with_the_operation_and_nothing_is_doneoperations.approval-required | implemented |
OPS-3-04 | Ops §3 | MUST | company | The Company MUST perform only what the approved revision describes. | CompanyService._performCompanyService._approves | test_operations.py::test_the_executor_gets_the_revision_approved_with_its_accountoperations.approved-performed | implemented |
OPS-3-05 | Ops §3 | MUST NOT | company | operation_id identifies the action: the Company MUST NOT use it for another action. | CompanyService._revision_forCompanyService._open_operation | test_operations.py::test_a_new_request_after_the_action_is_a_new_operation | implemented |
OPS-3-06 | Ops §3 | MUST NOT | personal-agent | The Personal Agent MUST NOT render links, images, or HTML in a summary, and shows them as text. | inert_summaryPapConfirm | test_ui.py::test_the_summary_is_shown_as_text_its_links_images_and_html_inert | implemented |
OPS-3-07 | Ops §3 | SHOULD | company | expires_at SHOULD leave the User long enough to read the terms and decide, unless the Company can't hold the terms that long. | CompanyConfig | test_operations.py::test_the_default_expiry_leaves_the_user_fifteen_minutes | implemented |
OPS-4-01 | Ops §4 | MUST | personal-agent | The 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.referenceBrowserSessionClient.joined_sessions | test_website_operations.py::test_a_reference_is_taken_only_from_a_joined_sessiontest_website_operations.py::test_the_header_is_a_dictionary_of_two_strings | implemented |
OPS-5-01 | Ops §5 | MUST NOT | personal-agent | When a request returns an operation, the Personal Agent MUST NOT treat the action as done. | ApiResponseMcpToolResultOperationsClient.send | test_operations.py::test_a_new_revision_for_a_first_send_is_for_the_usertest_operations.py::test_a_tool_returns_an_error_result_and_the_same_call_with_the_approval_performs | implemented |
OPS-5-02 | Ops §5 | MUST | personal-agent | The 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_userApprovalSurfacePapConfirm | test_operations.py::test_the_user_is_asked_with_the_company_the_summary_and_any_differencetest_operations.py::test_without_a_surface_nothing_is_approvedtest_operations_v3.py::test_the_user_is_shown_the_terms_values_when_there_is_no_summary | implemented |
OPS-5-03 | Ops §5 | MUST NOT | personal-agent | It MUST NOT treat text from the Company, such as a conversation message, as the User's approval. | OperationsClient.ask_user | test_operations.py::test_only_true_from_the_users_surface_approvestest_operations.py::test_a_messages_text_approves_nothing_whatever_it_saysoperations.message-is-not-approval | implemented |
OPS-5-06 | Ops §5 | SHOULD | personal-agent | Before 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_differencesOperationsClient.ask_user | test_operations.py::test_the_terms_check_points_out_a_summary_that_says_otherwisetest_operations.py::test_the_terms_check_compares_what_was_asked_for | implemented |
OPS-5-07 | Ops §5 | MUST | personal-agent | It 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_agentAgentInstruction | test_operations_v3.py::test_the_agent_approves_only_what_the_users_instruction_covers | partial: 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-08 | Ops §5 | MUST | personal-agent | Before approving, the Personal Agent MUST check the revision's terms against that instruction, and approve only if the instruction covers them. | OperationsClient.approve_as_agent | test_operations_v3.py::test_the_agent_approves_only_what_the_users_instruction_covers | implemented |
OPS-5-09 | Ops §5 | MUST NOT | personal-agent | If 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_agentOperationsClient.sendWebsiteOperations.record | test_operations_v3.py::test_new_terms_after_an_agent_approval_are_the_users_to_approvetest_website_operations.py::test_an_agent_approval_makes_the_next_revision_the_users | implemented |
OPS-6-01 | Ops §6 | MUST | company | After 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_targetCompanyService._settledCompanyService._approves | test_operations.py::test_any_session_of_the_account_approves_and_a_signed_out_one_gets_a_challengetest_operations.py::test_an_operation_returned_signed_out_is_approved_in_any_signed_out_sessiontest_operations.py::test_an_operation_is_the_conversations_owntest_draft_04.py::test_the_approving_request_is_compared_by_meaning_from_any_sessiontest_draft_04.py::test_an_approval_of_earlier_terms_the_user_prefers_is_still_acceptedoperations.approved-performedoperations.malformed-approval-header-ignoredoperations.any-session-of-the-account-approvesoperations.signed-out-session-gets-a-challengeoperations.another-user-cannot-approveoperations.mcp-approvaloperations.conversation-approval | implemented |
OPS-6-02 | Ops §6 | MUST | company | Companies MUST ignore members of Poppy-Approval they don't recognize, so later versions can add members. | parse_approval_headerapproval_from_meta | test_operations.py::test_the_header_parses_as_a_dictionary_ignoring_unknown_memberstest_operations.py::test_the_mcp_approval_is_read_from_meta_ignoring_unknown_membersoperations.approval-unknown-members-ignored | implemented |
OPS-6-03 | Ops §6 | MUST NOT | company | A 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_for | test_operations.py::test_a_failed_check_3_answers_a_new_revision_never_the_one_namedtest_operations.py::test_a_failed_check_in_a_conversation_is_a_message_with_a_new_revisionoperations.new-revision-on-changed-termsoperations.approval-of-a-revision-never-returnedoperations.approval-of-another-requestoperations.expired | implemented |
OPS-6-04 | Ops §6 | SHOULD | personal-agent | It SHOULD include approved_at and input_type with user. | OperationsClient.ask_userapproval_headerMcpClient.call_tool | test_operations.py::test_the_user_is_asked_with_the_company_the_summary_and_any_differencetest_draft_04.py::test_an_approval_says_when_and_how_the_user_gave_ittest_operations_v3.py::test_a_user_approval_says_user_how_and_under_which_reference | implemented |
OPS-6-05 | Ops §6 | MUST NOT | personal-agent | The Personal Agent MUST NOT put personal data, or anything that identifies the User or their device, in input_type or reference. | ApprovalOperationsClient.ask_user | test_draft_04.py::test_an_approval_says_when_and_how_the_user_gave_it | implemented |
OPS-6-06 | Ops §6 | MUST NOT | company | A 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. | Approvalparse_approval_header | test_draft_04.py::test_an_approval_says_when_and_how_the_user_gave_ittest_operations_v3.py::test_an_approval_with_only_its_approver_is_acted_ontest_operations_v3.py::test_the_company_performs_an_agent_approval_and_records_who_approvedoperations.agent-approval | implemented |
OPS-6-07 | Ops §6 | MUST | personal-agent | An 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. | Approvalapproval_headerparse_approval_header | test_operations_v3.py::test_an_approval_names_its_approver_and_the_header_carries_every_membertest_operations_v3.py::test_an_approval_without_a_valid_approver_is_no_approvaltest_operations_v3.py::test_a_version_2_approval_approves_nothingoperations.approval-without-approver | implemented |
OPS-6-08 | Ops §6 | MUST NOT | personal-agent | input_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. | Approvalapproval_header | test_operations_v3.py::test_an_agent_approval_never_carries_an_input_type | implemented |
OPS-6-09 | Ops §6 | MUST NOT | personal-agent | The 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_referenceOperationsClient.new_reference | test_operations_v3.py::test_a_reference_is_opaque_random_and_never_the_same_twice | partial: 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-10 | Ops §6 | MUST NOT | company | The Company MUST NOT record a declined approval, so a website never finds it for a later request. | CompanyConfigDeclineDeclineRequest | test_operations_v3.py::test_manzanita_declines_an_agent_approval_of_a_return_and_takes_the_userstest_operations_v3.py::test_a_tool_declines_with_an_error_resulttest_operations_v3.py::test_a_conversation_declines_in_a_later_message_without_erroroperations.approval-declined | implemented |
OPS-6-11 | Ops §6 | MUST NOT | company | The Company MUST NOT put anything in reason that the Session couldn't already see. | Decline | test_operations_v3.py::test_manzanita_declines_an_agent_approval_of_a_return_and_takes_the_users | not-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-12 | Ops §6 | MUST NOT | personal-agent | When 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.sendOperationsClient.approve_as_agentdeclined_from | test_operations_v3.py::test_a_declined_approval_is_final_and_never_sent_againtest_operations_v3.py::test_a_decline_is_read_from_each_interface | implemented |
OPS-6-13 | Ops §6 | MUST NOT | company | The 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_targetCompanyService._operations_endpoint | test_website_operations.py::test_a_website_approval_is_never_accepted_at_the_apitest_website_operations.py::test_the_endpoint_refuses_what_the_session_cannot_use | implemented |
OPS-6-14 | Ops §6 | MUST | company | The 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._recordCompanyService._website_decide | test_website_operations.py::test_a_website_operation_is_approved_at_the_endpoint_and_performed_oncetest_website_operations.py::test_an_approval_of_another_revision_gets_the_operation_and_a_decline_is_not_kept | implemented |
OPS-7-01 | Ops §7 | MUST | company | The Company MUST perform each operation at most once, however many times its approval is sent. | CompanyService._performCompanyStore | test_operations.py::test_the_same_request_with_the_approval_is_performed_oncetest_operations.py::test_two_requests_at_once_perform_it_oncetest_company_store.py::test_a_company_restarted_over_its_store_continues_every_flowoperations.retry-after-the-outcomeoperations.retry-before-the-outcomeoperations.mcp-approvaloperations.conversation-approvaloperations.lost-answer-same-approvaloperations.failed-partial-result | implemented |
OPS-7-02 | Ops §7 | MUST | company | The Company MUST remember that it performed an operation at least until the approved revision's expires_at, and while it is being performed. | StoredOperation | test_operations.py::test_the_same_request_with_the_approval_is_performed_oncetest_security_demonstrations.py::test_restart_is_safeoperations.retry-after-the-outcome | implemented |
OPS-7-03 | Ops §7 | MUST NOT | company | While an operation is being performed, or the Company doesn't know whether it took effect, the Company MUST NOT respond as if it failed. | OperationOutcomeUnknownCompanyService._api_decisionCompanyService._mcp_decision | test_operations.py::test_while_it_is_performed_a_retry_gets_503_and_retry_after_never_a_failuretest_operations.py::test_a_tool_still_being_performed_answers_503operations.retry-before-the-outcome | implemented |
OPS-7-04 | Ops §7 | MUST NOT | personal-agent | It 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.sendApprovalSent | test_operations.py::test_a_new_operation_in_answer_to_a_retry_says_nothing_of_the_firsttest_operations.py::test_still_unknown_after_every_attemptoperations.lost-answer-same-approval | implemented |
Conformance case IDs name protocol/fixtures/conformance cases; see the conformance report for their outcome in every language pairing.