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

# Review test cases

> Every verdict of the period run as a test against today's memory and measurement, with the failing ones.



## OpenAPI

````yaml openapi/en/cell.json GET /v1/review/cases
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-2
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/review/cases:
    get:
      tags:
        - governance
      summary: Review test cases
      description: >-
        Each verdict of the period as a test run against today's memory and
        measurement.


        **Authentication.** Console person token with the `review` role (or
        admin), or a source key with the `admin` scope.
      operationId: review_cases_v1_review_cases_get
      parameters:
        - in: query
          name: days
          required: false
          schema:
            default: 90
            maximum: 365
            minimum: 1
            title: Days
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReviewCases'
          description: The tallies per target and the failing cases.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    ReviewCases:
      additionalProperties: false
      description: >-
        Every verdict is a test of the space: it runs against today's memory and
        measurement, so a new

        extractor or new measurement rules show at once which judged cases they
        now get wrong.
      properties:
        failing:
          description: The cases that fail today, newest first, up to 50.
          items:
            $ref: '#/components/schemas/ReviewCase'
          title: Failing
          type: array
        since:
          format: date-time
          title: Since
          type: string
        tallies:
          items:
            $ref: '#/components/schemas/CaseTally'
          title: Tallies
          type: array
      required:
        - since
        - tallies
        - failing
      title: ReviewCases
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    ReviewCase:
      additionalProperties: false
      properties:
        now:
          description: >-
            What the system says today: `marked` or `not_marked` for a signal,
            `active` or `gone` for a fact or an open item, `not_measured` or
            `unknown` when there is nothing to compare.
          title: Now
          type: string
        passes:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Whether today's answer agrees with the verdict; null when unknown.
          title: Passes
        sample_id:
          format: uuid
          title: Sample Id
          type: string
        target:
          title: Target
          type: string
        target_id:
          title: Target Id
          type: string
        verdict:
          title: Verdict
          type: string
      required:
        - sample_id
        - target
        - target_id
        - verdict
        - now
        - passes
      title: ReviewCase
      type: object
    CaseTally:
      additionalProperties: false
      properties:
        cases:
          title: Cases
          type: integer
        failing:
          title: Failing
          type: integer
        passing:
          title: Passing
          type: integer
        target:
          description: '`fact`, `open_item` or `signal:<name>`.'
          title: Target
          type: string
      required:
        - target
        - cases
        - passing
        - failing
      title: CaseTally
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````