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

# Explain Trajectory

> What stopped this agent, in the terms of what it actually read.

**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.



## OpenAPI

````yaml /api/openapi.json get /v1/trajectories/{trajectory_id}/explain
openapi: 3.1.0
info:
  title: RotaGrant API
  version: 0.1.0
  description: >-
    The HTTP API of a RotaGrant deployment, made from the product's own route
    definitions at the commit named in `x-rotascale-source`. Nothing here is
    written by hand.


    There is no shared endpoint. RotaGrant runs in your environment, and your
    deployment serves its own copy of this description at `/api/docs`. That copy
    is the authority on what your version has and which features are switched
    on; this one is the reference for one commit of the main line. The version
    is 0.1.0: routes and shapes can still change.


    Every route says who may call it. Most need a bearer token from the identity
    provider your deployment uses, held by a person with the role named. The
    routes an SDK calls also accept a workspace API key. A few are open, and say
    why.
servers:
  - url: https://{deployment}
    description: Your own deployment. There is no shared endpoint.
    variables:
      deployment:
        default: rotagrant.internal.example
        description: The host your deployment answers on.
security: []
paths:
  /v1/trajectories/{trajectory_id}/explain:
    get:
      tags:
        - Evidence
      summary: Explain Trajectory
      description: >-
        What stopped this agent, in the terms of what it actually read.


        **Who may call it:** any role. A workspace API key is refused here: this
        is an act that belongs to a named person.
      operationId: explain_trajectory_v1_trajectories__trajectory_id__explain_get
      parameters:
        - name: trajectory_id
          in: path
          required: true
          schema:
            type: string
            title: Trajectory Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExplainOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerToken: []
components:
  schemas:
    ExplainOut:
      properties:
        trajectory_id:
          type: string
          title: Trajectory Id
        blocked:
          items:
            $ref: '#/components/schemas/BlockedOut'
          type: array
          title: Blocked
          default: []
        explains:
          type: boolean
          title: Explains
          default: false
      type: object
      required:
        - trajectory_id
      title: ExplainOut
      description: Why this trajectory was stopped, and what would unblock it.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BlockedOut:
      properties:
        ordinal:
          type: integer
          title: Ordinal
        outcome:
          type: string
          title: Outcome
        reason:
          type: string
          title: Reason
        gate:
          anyOf:
            - type: string
            - type: 'null'
          title: Gate
        caused_by:
          items:
            $ref: '#/components/schemas/CauseOut'
          type: array
          title: Caused By
          default: []
        unblock:
          items:
            $ref: '#/components/schemas/UnblockOut'
          type: array
          title: Unblock
          default: []
      type: object
      required:
        - ordinal
        - outcome
        - reason
      title: BlockedOut
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    CauseOut:
      properties:
        source_kind:
          type: string
          title: Source Kind
        means:
          type: string
          title: Means
        source_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Ref
        introduced_at_step:
          anyOf:
            - type: integer
            - type: 'null'
          title: Introduced At Step
        introduced_by_step_kind:
          anyOf:
            - type: string
            - type: 'null'
          title: Introduced By Step Kind
      type: object
      required:
        - source_kind
        - means
      title: CauseOut
      description: One untrusted read that put a label on the context.
    UnblockOut:
      properties:
        action:
          type: string
          title: Action
        detail:
          type: string
          title: Detail
        weakens_control:
          type: boolean
          title: Weakens Control
          default: false
      type: object
      required:
        - action
        - detail
      title: UnblockOut
  securitySchemes:
    bearerToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A token from the identity provider your deployment federates with. It
        identifies a person; their roles in the workspace decide what they may
        do.

````

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