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

# Set Response Policy

> Append-only like envelopes: a change is a new version. Provenance pin
is deliberately absent — that is a human recovery decision made during
the investigation, never a standing automatic response.



## OpenAPI

````yaml /api-reference/openapi.json put /api/v1/bound/agents/{agent_id}/response-policy
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/agents/{agent_id}/response-policy:
    put:
      tags:
        - bound
      summary: Set Response Policy
      description: |-
        Append-only like envelopes: a change is a new version. Provenance pin
        is deliberately absent — that is a human recovery decision made during
        the investigation, never a standing automatic response.
      operationId: set_response_policy_api_v1_bound_agents__agent_id__response_policy_put
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResponsePolicyIn'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsePolicyOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ResponsePolicyIn:
      properties:
        response:
          type: string
          enum:
            - halt
            - safe_mode
          title: Response
        safe_envelope_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Safe Envelope Id
          description: >-
            Designated conservative envelope for safe mode; omitted = everything
            routes sync_review
        note:
          anyOf:
            - type: string
              maxLength: 500
            - type: 'null'
          title: Note
      type: object
      required:
        - response
      title: ResponsePolicyIn
    ResponsePolicyOut:
      properties:
        id:
          type: string
          title: Id
        agent_id:
          type: string
          title: Agent Id
        response:
          type: string
          title: Response
        safe_envelope_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Safe Envelope Id
        note:
          anyOf:
            - type: string
            - type: 'null'
          title: Note
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - agent_id
        - response
        - safe_envelope_id
        - note
        - created_by
        - created_at
      title: ResponsePolicyOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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.

````