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

# Evaluate Action

> Route one intended action through the agent's active envelope. Every
call is persisted — routing itself is evidence (paras 60–63).



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/bound/evaluate
openapi: 3.1.0
info:
  title: Sakshi — Agent Governance API
  description: >-
    Registry (KYA), decision flight recorder, bounded autonomy, evidence packs,
    fairness screens. Auth: bearer ingest keys create evidence; OIDC JWTs with
    governance roles mutate state.
  version: 0.1.0
servers:
  - url: https://demo.rotavision.com
    description: Public demo (read-only, synthetic data)
  - url: https://{host}
    description: Your Sakshi deployment (single-tenant, in your environment)
    variables:
      host:
        default: sakshi.your-company.internal
security:
  - bearerAuth: []
paths:
  /api/v1/bound/evaluate:
    post:
      tags:
        - bound
      summary: Evaluate Action
      description: |-
        Route one intended action through the agent's active envelope. Every
        call is persisted — routing itself is evidence (paras 60–63).
      operationId: evaluate_action_api_v1_bound_evaluate_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EvaluateRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EvaluationOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EvaluateRequest:
      properties:
        agent_id:
          type: string
          title: Agent Id
        signals:
          $ref: '#/components/schemas/Signals'
        client_ref:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Client Ref
      type: object
      required:
        - agent_id
        - signals
      title: EvaluateRequest
    EvaluationOut:
      properties:
        id:
          type: string
          title: Id
        agent_id:
          type: string
          title: Agent Id
        envelope_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Envelope Id
        envelope_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Envelope Version
        client_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Ref
        signals:
          additionalProperties: true
          type: object
          title: Signals
        outcome:
          type: string
          title: Outcome
        matched_rule:
          anyOf:
            - type: string
            - type: 'null'
          title: Matched Rule
        trace:
          items: {}
          type: array
          title: Trace
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - agent_id
        - envelope_id
        - envelope_version
        - client_ref
        - signals
        - outcome
        - matched_rule
        - trace
        - created_at
      title: EvaluationOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Signals:
      properties:
        action:
          type: string
          maxLength: 120
          minLength: 1
          title: Action
        stakes:
          anyOf:
            - type: number
            - type: 'null'
          title: Stakes
          description: e.g. amount in INR
        confidence:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Confidence
        novelty:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Novelty
      type: object
      required:
        - action
      title: Signals
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Ingest API key or OIDC JWT. See /authentication.

````