> ## 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.

# Publish a complete verified checkpoint

> Checks ordered base plus overlay pages, expanded file bounds, chained symlinks, compatible history, all verified objects and native input/effect coverage. Only the committed manifest advances recovery.



## OpenAPI

````yaml https://raw.githubusercontent.com/agentsfleet/agentsfleet/main/public/openapi.json patch /v1/runners/me/leases/{lease_id}/tasks/checkpoints/{checkpoint_id}
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/checkpoints/{checkpoint_id}:
    patch:
      tags:
        - Runners
      summary: Publish a complete verified checkpoint
      description: >-
        Checks ordered base plus overlay pages, expanded file bounds, chained
        symlinks, compatible history, all verified objects and native
        input/effect coverage. Only the committed manifest advances recovery.
      operationId: runner_checkpoint_commit
      parameters:
        - name: lease_id
          in: path
          description: Native lease UUIDv7.
          required: true
          schema:
            type: string
        - name: checkpoint_id
          in: path
          description: Native checkpoint UUIDv7.
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckpointCommitInput'
        required: true
      responses:
        '200':
          description: Native checkpoint result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckpointPlan'
        '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'
        '413':
          description: The request body exceeds this endpoint's size limit
          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:
    CheckpointCommitInput:
      type: object
      description: Commit only after complete pages and registered objects verify.
      required:
        - fencing_token
        - task
        - pin_id
        - manifest_root
        - history_digest
        - covered_input_sequence
        - effect_watermark
      properties:
        covered_input_sequence:
          type: integer
          format: int64
          description: Inputs included in the saved state.
          minimum: 0
        effect_watermark:
          type: integer
          format: int64
          description: >-
            Confirmed effects incorporated locally, never merely observed
            remotely.
          minimum: 0
        fencing_token:
          type: integer
          format: int64
          description: Existing lease fence.
          minimum: 0
        history_digest:
          type: string
          description: Complete compatible conversation digest.
        manifest_root:
          type: string
          description: Canonical ordered page-root digest.
        pin_id:
          type: string
          description: Current writer pin.
        task:
          $ref: '#/components/schemas/DecisionTaskVersion'
          description: Current task version.
      additionalProperties: false
    CheckpointPlan:
      type: object
      description: Native recovery descriptor, bounded independently of manifest size.
      required:
        - checkpoint_id
        - generation
        - mode
        - repository
        - format_version
        - toolbox_digest
        - page_ids
        - base_page_ids
        - covered_input_sequence
        - effect_watermark
        - expires_at
        - pin
        - replayed
      properties:
        base_commit_oid:
          type:
            - string
            - 'null'
          description: Exact base commit, independent of a later published branch head.
        base_id:
          type:
            - string
            - 'null'
          description: Retained base identity when present.
        base_manifest_root:
          type:
            - string
            - 'null'
          description: Ordered retained-base root, checked before overlaying local changes.
        base_page_ids:
          type: array
          items:
            type: string
          description: >-
            Verified retained base pages, read through the same scoped page
            resource.
        checkpoint_id:
          type: string
          description: Native task-bound plan.
        covered_input_sequence:
          type: integer
          format: int64
          description: Inputs actually incorporated in this state.
          minimum: 0
        effect_watermark:
          type: integer
          format: int64
          description: Confirmed outcomes incorporated in this state.
          minimum: 0
        expires_at:
          type: string
          format: date-time
          description: Deadline established once when the plan is created.
        format_version:
          type: integer
          format: int32
          description: Required restore format.
          minimum: 0
        generation:
          type: integer
          format: int64
          description: Checkpoint ordering, distinct from the task generation.
          minimum: 0
        history_digest:
          type:
            - string
            - 'null'
          description: History state bound to the same file generation.
        manifest_root:
          type:
            - string
            - 'null'
          description: Absent until native verification commits.
        mode:
          $ref: '#/components/schemas/CheckpointMode'
          description: Base or incremental state.
        page_ids:
          type: array
          items:
            type: string
          description: Complete ordered pages; never an unbounded inline manifest.
        pin:
          $ref: '#/components/schemas/CheckpointPin'
          description: Current writer/reader pin.
        replayed:
          type: boolean
          description: Immutable plan replay.
        repository:
          type: string
          description: Repository identity selected by native task authority.
        toolbox_digest:
          type: string
          description: Host-local toolbox compatibility.
    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.
    DecisionTaskVersion:
      type: object
      description: Task identity and generation supplied from the native lease context.
      required:
        - task_id
        - generation
      properties:
        generation:
          type: integer
          format: int64
          description: >-
            Expected current task generation, without resetting cumulative
            usage.
          minimum: 0
        task_id:
          type: string
          description: >-
            The current lease's objective; not another task selected by model
            text.
      additionalProperties: false
    CheckpointMode:
      type: string
      description: A verified base is retained separately from task recovery pointers.
      enum:
        - retain_base
        - incremental
    CheckpointPin:
      type: object
      description: >-
        One capture or restore operation, renewed without extending its
        deadline.
      required:
        - id
        - resource_version
        - operation_deadline
        - expires_at
      properties:
        expires_at:
          type: string
          format: date-time
          description: Current liveness deadline.
        id:
          type: string
          description: Native pin identity.
        operation_deadline:
          type: string
          format: date-time
          description: Hard operation deadline.
        resource_version:
          type: integer
          format: int64
          description: Compare-and-swap version for renewal.
          minimum: 0
  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.