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

# Create Predeploy Run

> Pre-deploy bias testing: screen a batch of candidate decisions with
declared attributes BEFORE the agent goes live. The stored result is the
citable artifact; packs reference it by id.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/vishwas/predeploy-runs
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/vishwas/predeploy-runs:
    post:
      tags:
        - vishwas
      summary: Create Predeploy Run
      description: |-
        Pre-deploy bias testing: screen a batch of candidate decisions with
        declared attributes BEFORE the agent goes live. The stored result is the
        citable artifact; packs reference it by id.
      operationId: create_predeploy_run_api_v1_vishwas_predeploy_runs_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PredeployRunIn'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Create Predeploy Run Api V1 Vishwas Predeploy Runs
                  Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PredeployRunIn:
      properties:
        agent_id:
          type: string
          title: Agent Id
        label:
          type: string
          maxLength: 200
          title: Label
        data_source:
          anyOf:
            - type: string
              maxLength: 400
            - type: 'null'
          title: Data Source
          description: provenance of the batch (dataset name, extract date, system)
        rows:
          items:
            $ref: '#/components/schemas/PredeployRow'
          type: array
          maxItems: 100000
          minItems: 1
          title: Rows
      type: object
      required:
        - agent_id
        - label
        - rows
      title: PredeployRunIn
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PredeployRow:
      properties:
        declared:
          additionalProperties:
            type: string
          type: object
          title: Declared
        approved:
          type: boolean
          title: Approved
      type: object
      required:
        - approved
      title: PredeployRow
    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.

````