> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentsfleet.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Recover publications after a checkpoint watermark

> Pages native task-local effect order, including unresolved and newly confirmed effects. A replacement worker needs no previously returned effect ID.



## OpenAPI

````yaml https://raw.githubusercontent.com/agentsfleet/agentsfleet/main/public/openapi.json get /v1/runners/me/leases/{lease_id}/tasks/effects
openapi: 3.1.0
info:
  title: agentsfleet API
  description: API for managing workspaces, fleets, triggers, and runs.
  contact:
    name: agentsfleet
    url: https://agentsfleet.net
  license:
    name: MIT
    identifier: MIT
  version: 1.0.0
servers:
  - url: https://api.agentsfleet.net
    description: Production
security: []
paths:
  /v1/runners/me/leases/{lease_id}/tasks/effects:
    get:
      tags:
        - Runners
      summary: Recover publications after a checkpoint watermark
      description: >-
        Pages native task-local effect order, including unresolved and newly
        confirmed effects. A replacement worker needs no previously returned
        effect ID.
      operationId: runner_list_task_effects
      parameters:
        - name: lease_id
          in: path
          description: Current lease UUIDv7.
          required: true
          schema:
            type: string
        - name: fencing_token
          in: path
          description: Current lease fence.
          required: true
          schema:
            type: integer
            format: int64
            minimum: 0
        - name: task_id
          in: path
          description: Selected current task.
          required: true
          schema:
            type: string
        - name: ordinal_after
          in: path
          description: Checkpoint's last confirmed effect.
          required: true
          schema:
            type: integer
            format: int64
            minimum: 0
        - name: starting_after
          in: path
          description: Last native ordinal returned by the preceding page.
          required: true
          schema:
            type:
              - string
              - 'null'
        - name: limit
          in: path
          description: Maximum effects in one response.
          required: true
          schema:
            type: integer
            format: int32
            minimum: 0
      responses:
        '200':
          description: Ordered recoverable publication states
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskEffectsPage'
        '400':
          description: The request is invalid
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '401':
          description: Authentication is missing, invalid, or not accepted by this endpoint
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '403':
          description: You do not have permission for this action
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '404':
          description: The resource was not found or is not accessible to you
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '409':
          description: The request conflicts with the resource's current state
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '429':
          description: A request or capacity limit has been reached
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '500':
          description: An internal server error occurred
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '503':
          description: A required service is unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
      security:
        - RunnerBearerAuth: []
components:
  schemas:
    TaskEffectsPage:
      type: object
      description: Ordered complete effect recovery page.
      required:
        - effects
      properties:
        effects:
          type: array
          items:
            $ref: '#/components/schemas/TaskEffect'
          description: Includes unresolved and newly confirmed publications.
        next_cursor:
          type:
            - string
            - 'null'
          description: Native ordinal cursor when more rows remain.
    ProblemBody:
      type: object
      description: The body every refusal carries, under `application/problem+json`.
      required:
        - docs_uri
        - title
        - detail
        - error_code
        - request_id
      properties:
        action_id:
          type:
            - string
            - 'null'
          description: 'On that 409 only: the action the gate held.'
        current_state:
          type:
            - string
            - 'null'
          description: 'On a 409 only: the state that forbade the transition.'
        detail:
          type: string
          description: One sentence on what was refused and why.
        docs_uri:
          type: string
          description: Where the error code is documented.
        error_code:
          type: string
          description: The registry code, stable across releases.
        etag:
          type:
            - string
            - 'null'
          description: >-
            On a 412 only: the resource's current entity tag, to refetch and
            retry.
        gate_id:
          type:
            - string
            - 'null'
          description: 'On an answered approval gate''s 409 only: the gate that was answered.'
        outcome:
          type:
            - string
            - 'null'
          description: 'On that 409 only: the answer that stands.'
        request_id:
          type: string
          description: The request this refusal answers, for support.
        resolved_at:
          type:
            - string
            - 'null'
          format: date-time
          description: 'On that 409 only: when the standing answer was given.'
        resolved_by:
          type:
            - string
            - 'null'
          description: 'On that 409 only: who gave it.'
        title:
          type: string
          description: A short name for the refusal, safe to show a person.
        user_message:
          type:
            - string
            - 'null'
          description: A curated sentence for end users, where the code has one.
    TaskEffect:
      type: object
      description: No token or arbitrary remote response is exposed in this receipt.
      required:
        - effect_id
        - ordinal
        - state
        - expected_head
        - tested_tree
        - pull_request_url
      properties:
        commit:
          type:
            - string
            - 'null'
          description: Confirmed commit only after native readback.
        effect_id:
          type: string
          description: >-
            Native effect `UUIDv7` discoverable after replacement-worker
            recovery.
        expected_head:
          type: string
          description: Recorded expected branch head.
        ordinal:
          type: integer
          format: int64
          description: Task-local publication order, independent of response delivery.
          minimum: 0
        pull_request_url:
          type: string
          description: Exact accepted PR URL.
        state:
          $ref: '#/components/schemas/TaskEffectState'
          description: Native state.
        tested_tree:
          type: string
          description: Verified candidate tree.
    TaskEffectState:
      type: string
      description: Native publication state, retained independently of a runner response.
      enum:
        - prepared
        - issued
        - confirmed
        - unknown
        - refused
  securitySchemes:
    RunnerBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: agt_r
      description: >-
        Runner token beginning with agt_r, returned once by POST
        /v1/admin/runners

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.