Skip to content

Mission endpoint: no error for immediate proposal or update refusal #236

In review

Description

@joshuagay

draft-hardt-oauth-aauth-protocol.md at 28e8258:

  • L1358 (Mission Creation): "The PS MAY return a 202 Accepted deferred response (#deferred-responses) if human review, clarification, or approval is needed."
  • L1471 (Mission Update): "The PS MAY accept the update on its own, or return a 202 Accepted deferred response while the person reviews it."
  • L1538 (Mission Endpoint Errors): "| mission_terminated | 403 | This agent's mission, permanently ended (#mission-status-errors) |"
  • L1565 (Mission Status Errors): "The agent MUST stop acting on this mission."

A deferred proposal or update can end in denied (L2621), and the PS judges an update as it judged the proposal (L1483), but neither the Mission Endpoint Errors table (L1534-L1538) nor the state machine's initial-request branches (L2538-L2548) has a code for an immediate refusal. PSes will answer a refused proposal differently, so an agent cannot tell a terminal refusal from a transient failure. For an update it is worse: the refused update leaves the mission active, but the only 403 defined at a mission's URL is mission_terminated, which tells the agent to stop.

Ask: Register an immediate-refusal error for the mission endpoint that, for an update, leaves the mission active, or state that proposals and updates are refused only through 202 followed by denied.

POST {mission_endpoint}   (a proposal the PS's policy forbids; possible responses)
PS-1: 403 "mission_denied"     (not registered)
PS-2: 400 "invalid_request"    (registered for a malformed request, L1536)
PS-3: 202, then the poll returns 403 "denied"   (L1358, L2621)
POST {mission_endpoint}/{mission_s256}   {"action": "update", "description": "..."}
The PS refuses the update at once; the mission is still active.
A PS that reuses the only 403 defined here answers "mission_terminated" (L1538).
The agent applies L1565 and stops work on a live mission.

Activity

  1. joshuagay commented on Nov 4, 2026

    @joshuagay
    Author

    draft-hardt-oauth-aauth-protocol.md at 70d6737:

    • L1505 (Mission Completion): "The person either accepts — the PS terminates the mission with reason completed and returns 200 OK — or responds with follow-up questions via clarification chat (#clarification-chat), leaving the mission active."
    • L2621 (Polling Error Codes): "denied | 403 | User or approver explicitly denied the request"

    The same gap exists at completion. L1505 gives the person two outcomes: accept, which terminates the mission, or ask follow-up questions, which leaves it active. A person who judges the work unfinished and has no question for the agent has neither. If the PS answers the pending completion with denied, nothing says the mission stays active. An agent that reads a refusal at the mission's URL as terminal, the update case above, stops work the person wanted to continue.

    Ask: Cover completion in the same fix, for example: "If the person declines without a question, the pending URL answers 403 denied and the mission remains active."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions