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

# Get an extraction of an underwriting submission

> Reads one extraction of a submission. `status` is `queued` while it waits behind another extraction or its run has not started, then `running`, and `completed`, `failed` or `cancelled` once it is final; while it is not final the answer carries `Retry-After`.

`result` is null until it completes. It holds the documents read, the values proposed for the program's inputs (each `valid`, `invalid` with the problem, or in `conflict`), the facts found, the inputs still missing, and a cited summary. A conflict is a place the files, or the files and the underwriter, give different values for, waiting on the underwriter to choose one: an input's is in `conflicts`, a fact's in `factConflicts`, and the submission's `outstanding` asks for both. Every quote is checked against the document where its text can be read, and the result is compared with the extraction before it. A result that cannot be checked makes the extraction `failed` with `failure.code` `invalid_extraction`.

Anyone who reads the submission reads its extractions, whoever started them. `webUrl` is the run's page where the caller can open it, and null otherwise. Read-only and safe to retry. A submission the caller cannot read, or an extraction of another submission, is 404. Only where the workspace has underwriting turned on (403 `feature_not_enabled`).

Alpha: this operation may change or be removed without notice.



## OpenAPI

````yaml /openapi.json get /insurance/underwriting/submissions/{submissionId}/extractions/{extractionId}
openapi: 3.0.3
info:
  title: Effective API
  version: 2.0.0
  description: The public Effective REST API. Authenticate using an Effective API key.
servers:
  - url: https://api.canary.effectiveai.app/api/v2
    description: Canary
security:
  - bearerAuth: []
paths:
  /insurance/underwriting/submissions/{submissionId}/extractions/{extractionId}:
    get:
      tags:
        - Underwriting submissions
      summary: Get an extraction of an underwriting submission
      description: >-
        Reads one extraction of a submission. `status` is `queued` while it
        waits behind another extraction or its run has not started, then
        `running`, and `completed`, `failed` or `cancelled` once it is final;
        while it is not final the answer carries `Retry-After`.


        `result` is null until it completes. It holds the documents read, the
        values proposed for the program's inputs (each `valid`, `invalid` with
        the problem, or in `conflict`), the facts found, the inputs still
        missing, and a cited summary. A conflict is a place the files, or the
        files and the underwriter, give different values for, waiting on the
        underwriter to choose one: an input's is in `conflicts`, a fact's in
        `factConflicts`, and the submission's `outstanding` asks for both. Every
        quote is checked against the document where its text can be read, and
        the result is compared with the extraction before it. A result that
        cannot be checked makes the extraction `failed` with `failure.code`
        `invalid_extraction`.


        Anyone who reads the submission reads its extractions, whoever started
        them. `webUrl` is the run's page where the caller can open it, and null
        otherwise. Read-only and safe to retry. A submission the caller cannot
        read, or an extraction of another submission, is 404. Only where the
        workspace has underwriting turned on (403 `feature_not_enabled`).


        Alpha: this operation may change or be removed without notice.
      operationId: getUnderwritingSubmissionExtraction
      parameters:
        - schema:
            type: string
            format: uuid
            description: The submission’s id.
          required: true
          description: The submission’s id.
          name: submissionId
          in: path
        - schema:
            type: string
            format: uuid
            description: The extraction’s id.
          required: true
          description: The extraction’s id.
          name: extractionId
          in: path
      responses:
        '200':
          description: The extraction.
          headers:
            Retry-After:
              required: false
              schema:
                type: integer
                minimum: 0
              description: Seconds to wait before reading it again, while it is not final.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2UnderwritingSubmissionExtraction'
        '400':
          description: 'invalid_request: an invalid submission or extraction id.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '403':
          description: >-
            feature_not_enabled: underwriting is not enabled for the workspace.
            forbidden: the credential may not do this.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '404':
          description: >-
            not_found: no such submission or extraction, or the caller cannot
            read the submission.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
      security:
        - bearerAuth: []
components:
  schemas:
    V2UnderwritingSubmissionExtraction:
      type: object
      properties:
        authority:
          type: object
          properties:
            releaseVersion:
              type: integer
              nullable: true
            ordinary:
              oneOf:
                - type: object
                  properties:
                    allowed:
                      type: boolean
                      enum:
                        - true
                    role:
                      type: string
                  required:
                    - allowed
                    - role
                - type: object
                  properties:
                    allowed:
                      type: boolean
                      enum:
                        - false
                    reason:
                      type: string
                  required:
                    - allowed
                    - reason
            actions:
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                  kind:
                    type: string
                  permission:
                    oneOf:
                      - type: object
                        properties:
                          allowed:
                            type: boolean
                            enum:
                              - true
                          role:
                            type: string
                        required:
                          - allowed
                          - role
                      - type: object
                        properties:
                          allowed:
                            type: boolean
                            enum:
                              - false
                          reason:
                            type: string
                        required:
                          - allowed
                          - reason
                required:
                  - name
                  - kind
                  - permission
            decline:
              oneOf:
                - type: object
                  properties:
                    kind:
                      type: string
                      enum:
                        - record
                  required:
                    - kind
                - type: object
                  properties:
                    kind:
                      type: string
                      enum:
                        - act
                    act:
                      type: string
                    role:
                      type: string
                  required:
                    - kind
                    - act
                    - role
                - type: object
                  properties:
                    kind:
                      type: string
                      enum:
                        - unavailable
                    reason:
                      type: string
                  required:
                    - kind
                    - reason
            fields:
              type: object
              additionalProperties:
                oneOf:
                  - type: object
                    properties:
                      allowed:
                        type: boolean
                        enum:
                          - true
                      role:
                        type: string
                    required:
                      - allowed
                      - role
                  - type: object
                    properties:
                      allowed:
                        type: boolean
                        enum:
                          - false
                      reason:
                        type: string
                    required:
                      - allowed
                      - reason
          required:
            - releaseVersion
            - ordinary
            - actions
            - decline
            - fields
          description: >-
            Caller permissions on this submission’s release, provided by the
            detail read. The log checks each write.
        id:
          type: string
          format: uuid
        submissionId:
          type: string
          format: uuid
        status:
          type: string
          minLength: 1
          description: >-
            Extensible: `queued` while it waits behind another extraction or its
            run has not started, then `running`, and `completed`, `failed` or
            `cancelled` once it is final.
        program:
          type: object
          nullable: true
          properties:
            id:
              type: string
              minLength: 1
            releaseVersion:
              type: integer
              minimum: 0
              exclusiveMinimum: true
            contractDigest:
              type: string
              minLength: 1
          required:
            - id
            - releaseVersion
            - contractDigest
          description: >-
            The program and release whose inputs it proposes; null for a
            submission with no program, which gets facts only.
        documents:
          type: array
          items:
            type: object
            properties:
              artifactId:
                type: string
                format: uuid
              versionId:
                type: string
                minLength: 1
              sha256:
                type: string
                minLength: 1
            required:
              - artifactId
              - versionId
              - sha256
          description: >-
            The documents it reads, pinned to their versions; empty while it is
            queued.
        createdAt:
          type: string
          format: date-time
        createdBy:
          type: object
          properties:
            type:
              type: string
              enum:
                - user
                - system
            id:
              type: string
              minLength: 1
          required:
            - type
            - id
          description: >-
            Who started it. Its run acts as the extraction’s own service
            identity, never as this caller.
        finishedAt:
          type: string
          nullable: true
          format: date-time
        idempotencyExpiresAt:
          type: string
          format: date-time
          description: >-
            Until when the Idempotency-Key answers this extraction: the key of
            the start being answered, or on a read the key that first started
            it.
        failure:
          type: object
          nullable: true
          properties:
            code:
              type: string
              minLength: 1
            message:
              type: string
              minLength: 1
          required:
            - code
            - message
          description: >-
            Why a failed extraction failed; `invalid_extraction` when its result
            was refused.
        result:
          type: object
          nullable: true
          properties:
            version:
              type: number
              enum:
                - 1
            run:
              type: object
              properties:
                programId:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: The RSL program, as `/api/v2/rsl/{id}` names it.
                releaseVersion:
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                bundleId:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: The release’s bundle, as the contract route returns it.
                contractDigest:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: >-
                    The program’s hash, `contract.program.id`: the id a log
                    opened on the release is pinned to.
                profile:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: >-
                    The extraction profile’s name: which inputs are never
                    extracted.
                read:
                  type: array
                  items:
                    type: string
                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                    description: >-
                      The document’s name, as a log’s `attach` keeps it and a
                      cite names it: acord_125.
                  description: Each document the run read.
                unread:
                  type: array
                  items:
                    type: object
                    properties:
                      document:
                        type: string
                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                        description: >-
                          The document’s name, as a log’s `attach` keeps it and
                          a cite names it: acord_125.
                      reason:
                        type: string
                        minLength: 1
                        maxLength: 500
                    required:
                      - document
                      - reason
                    additionalProperties: false
                  description: Each document it could not read, and why.
                finishedAt:
                  type: string
                  format: date-time
                  description: When the run finished.
              required:
                - profile
                - read
                - unread
              additionalProperties: false
            documents:
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                    description: >-
                      The document’s name, as a log’s `attach` keeps it and a
                      cite names it: acord_125.
                  title:
                    type: string
                    minLength: 1
                    maxLength: 300
                    description: >-
                      The file’s name as it came: “ACORD 125 · Harbor
                      Point.pdf”.
                  artifactId:
                    type: string
                    format: uuid
                    description: The Effective artifact that holds the file.
                  versionId:
                    type: string
                    minLength: 1
                    maxLength: 200
                    description: The artifact version that was read.
                  sha256:
                    type: string
                    pattern: ^[0-9a-f]{64}$
                    description: The SHA-256 of the bytes that were read, in hex.
                  kind:
                    type: string
                    enum:
                      - pdf
                      - xlsx
                      - csv
                      - html
                      - zip
                      - png
                      - parquet
                      - email
                      - other
                required:
                  - name
                  - title
                  - artifactId
                  - versionId
                  - sha256
                  - kind
                additionalProperties: false
            proposals:
              type: array
              items:
                type: object
                properties:
                  path:
                    type: string
                    minLength: 1
                    maxLength: 500
                    description: >-
                      An input’s path under the program’s root record, each list
                      item by its key: locations[id="location-1"].state.
                  value:
                    anyOf:
                      - type: string
                      - type: number
                      - type: boolean
                      - nullable: true
                      - type: array
                        items:
                          nullable: true
                      - type: object
                        additionalProperties:
                          nullable: true
                  from:
                    anyOf:
                      - type: object
                        properties:
                          document:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            description: >-
                              The document’s name, as a log’s `attach` keeps it
                              and a cite names it: acord_125.
                          region:
                            type: string
                            minLength: 1
                            maxLength: 200
                            description: >-
                              Page, sheet and cell, or row: p3, 'SOV'!B4, row
                              12; body for an email.
                          quote:
                            type: string
                            minLength: 1
                            maxLength: 2000
                            description: The text read, exactly as the document has it.
                        required:
                          - document
                          - region
                          - quote
                        additionalProperties: false
                      - type: object
                        properties:
                          document:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            description: >-
                              The document’s name, as a log’s `attach` keeps it
                              and a cite names it: acord_125.
                          region:
                            type: string
                            maxLength: 200
                            pattern: ^p[1-9]\d*$/u
                          verification:
                            type: string
                            enum:
                              - visual
                            description: The value was verified on the rendered PDF page.
                        required:
                          - document
                          - region
                          - verification
                        additionalProperties: false
                  note:
                    type: string
                    minLength: 1
                    maxLength: 2000
                    description: >-
                      For the underwriter: what the files say or do not say
                      about the value, such as “The SOV and the ACORD disagree
                      on units.” Never an instruction, and no percentages.
                  status:
                    type: string
                    enum:
                      - valid
                      - invalid
                      - conflict
                      - ruled
                  problem:
                    type: string
                    minLength: 1
                    maxLength: 500
                    description: Why an invalid proposal does not fit.
                  since:
                    type: string
                    enum:
                      - new
                      - unchanged
                      - changed
                    description: >-
                      Against the previous run: new path, same value, or another
                      value. Absent on a first run.
                  previous:
                    anyOf:
                      - type: string
                      - type: number
                      - type: boolean
                      - nullable: true
                      - type: array
                        items:
                          nullable: true
                      - type: object
                        additionalProperties:
                          nullable: true
                    description: The previous run’s value, when it changed.
                  entered:
                    type: boolean
                    enum:
                      - true
                    description: >-
                      The underwriter already holds this value at this path:
                      nothing to accept.
                  ruling:
                    type: string
                    enum:
                      - accepted
                      - overridden
                      - dismissed
                    description: >-
                      With status `ruled`: what the underwriter did with this
                      value.
                required:
                  - path
                  - value
                  - from
                  - status
                additionalProperties: false
            facts:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                    maxLength: 100
                    pattern: ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
                    description: >-
                      The program’s note this fact is, by its path
                      (`insured_name`, `loss_claims`): one of the contract’s
                      `notes`.
                  item:
                    type: string
                    minLength: 1
                    maxLength: 500
                    description: >-
                      The program’s list item this fact is about, by its key:
                      locations[id="location-1"].
                  topic:
                    type: string
                    enum:
                      - account
                      - broker
                      - request
                      - operations
                      - locations
                      - losses
                      - other_carriers
                      - other
                  label:
                    type: string
                    minLength: 1
                    maxLength: 200
                    description: >-
                      What the fact is, in words: “Named insured”, “Incurred,
                      2024”.
                  value:
                    anyOf:
                      - type: string
                      - type: number
                      - type: boolean
                      - nullable: true
                      - type: array
                        items:
                          nullable: true
                      - type: object
                        additionalProperties:
                          nullable: true
                  from:
                    type: object
                    properties:
                      document:
                        type: string
                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                        description: >-
                          The document’s name, as a log’s `attach` keeps it and
                          a cite names it: acord_125.
                      region:
                        type: string
                        minLength: 1
                        maxLength: 200
                        description: >-
                          Page, sheet and cell, or row: p3, 'SOV'!B4, row 12;
                          body for an email.
                      quote:
                        type: string
                        minLength: 1
                        maxLength: 2000
                        description: The text read, exactly as the document has it.
                    required:
                      - document
                      - region
                      - quote
                    additionalProperties: false
                  note:
                    type: string
                    minLength: 1
                    maxLength: 2000
                    description: >-
                      For the underwriter: what the files say or do not say
                      about the value, such as “The SOV and the ACORD disagree
                      on units.” Never an instruction, and no percentages.
                  path:
                    type: string
                    minLength: 1
                    maxLength: 500
                    description: >-
                      The program’s `as note` input this fact answers, when it
                      holds one value (the contract’s `notes`). A row of a list
                      note, or a record note, is named by `key` alone.
                  problem:
                    type: string
                    minLength: 1
                    maxLength: 500
                    description: Why the fact can’t be relied on or kept at its `path`.
                  row:
                    type: string
                    minLength: 1
                    maxLength: 200
                    pattern: ^[^\x00-\x1f\x7f]+$
                    description: >-
                      For a note kept as a list, the row it fills, as a read
                      names it: the same id for the same row in every extraction
                      of the submission once a value of it is kept.
                required:
                  - topic
                  - label
                  - value
                  - from
                additionalProperties: false
            missing:
              type: array
              items:
                type: object
                properties:
                  path:
                    type: string
                    minLength: 1
                    maxLength: 500
                    description: >-
                      An input’s path under the program’s root record, each list
                      item by its key: locations[id="location-1"].state.
                  note:
                    type: string
                    minLength: 1
                    maxLength: 2000
                    description: >-
                      For the underwriter: what the files say or do not say
                      about the value, such as “The SOV and the ACORD disagree
                      on units.” Never an instruction, and no percentages.
                  found:
                    type: array
                    items:
                      type: object
                      properties:
                        value:
                          anyOf:
                            - type: string
                            - type: number
                            - type: boolean
                            - nullable: true
                            - type: array
                              items:
                                nullable: true
                            - type: object
                              additionalProperties:
                                nullable: true
                        from:
                          anyOf:
                            - type: object
                              properties:
                                document:
                                  type: string
                                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  description: >-
                                    The document’s name, as a log’s `attach`
                                    keeps it and a cite names it: acord_125.
                                region:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  description: >-
                                    Page, sheet and cell, or row: p3, 'SOV'!B4,
                                    row 12; body for an email.
                                quote:
                                  type: string
                                  minLength: 1
                                  maxLength: 2000
                                  description: >-
                                    The text read, exactly as the document has
                                    it.
                              required:
                                - document
                                - region
                                - quote
                              additionalProperties: false
                            - type: object
                              properties:
                                document:
                                  type: string
                                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  description: >-
                                    The document’s name, as a log’s `attach`
                                    keeps it and a cite names it: acord_125.
                                region:
                                  type: string
                                  maxLength: 200
                                  pattern: ^p[1-9]\d*$/u
                                verification:
                                  type: string
                                  enum:
                                    - visual
                                  description: >-
                                    The value was verified on the rendered PDF
                                    page.
                              required:
                                - document
                                - region
                                - verification
                              additionalProperties: false
                        problem:
                          type: string
                          minLength: 1
                          maxLength: 500
                      required:
                        - value
                        - from
                        - problem
                      additionalProperties: false
                    description: >-
                      Values read at this path that do not fit it, each with
                      why.
                required:
                  - path
                additionalProperties: false
            conflicts:
              type: array
              items:
                type: object
                properties:
                  path:
                    type: string
                    minLength: 1
                    maxLength: 500
                    description: >-
                      An input’s path under the program’s root record, each list
                      item by its key: locations[id="location-1"].state.
                  values:
                    type: array
                    items:
                      type: object
                      properties:
                        value:
                          anyOf:
                            - type: string
                            - type: number
                            - type: boolean
                            - nullable: true
                            - type: array
                              items:
                                nullable: true
                            - type: object
                              additionalProperties:
                                nullable: true
                        by:
                          type: string
                          enum:
                            - extraction
                            - underwriter
                        from:
                          anyOf:
                            - type: object
                              properties:
                                document:
                                  type: string
                                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  description: >-
                                    The document’s name, as a log’s `attach`
                                    keeps it and a cite names it: acord_125.
                                region:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  description: >-
                                    Page, sheet and cell, or row: p3, 'SOV'!B4,
                                    row 12; body for an email.
                                quote:
                                  type: string
                                  minLength: 1
                                  maxLength: 2000
                                  description: >-
                                    The text read, exactly as the document has
                                    it.
                              required:
                                - document
                                - region
                                - quote
                              additionalProperties: false
                            - type: object
                              properties:
                                document:
                                  type: string
                                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  description: >-
                                    The document’s name, as a log’s `attach`
                                    keeps it and a cite names it: acord_125.
                                region:
                                  type: string
                                  maxLength: 200
                                  pattern: ^p[1-9]\d*$/u
                                verification:
                                  type: string
                                  enum:
                                    - visual
                                  description: >-
                                    The value was verified on the rendered PDF
                                    page.
                              required:
                                - document
                                - region
                                - verification
                              additionalProperties: false
                          description: Where it was read; the underwriter’s may have none.
                        also:
                          type: array
                          items:
                            anyOf:
                              - type: object
                                properties:
                                  document:
                                    type: string
                                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    description: >-
                                      The document’s name, as a log’s `attach`
                                      keeps it and a cite names it: acord_125.
                                  region:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                    description: >-
                                      Page, sheet and cell, or row: p3,
                                      'SOV'!B4, row 12; body for an email.
                                  quote:
                                    type: string
                                    minLength: 1
                                    maxLength: 2000
                                    description: >-
                                      The text read, exactly as the document has
                                      it.
                                required:
                                  - document
                                  - region
                                  - quote
                                additionalProperties: false
                              - type: object
                                properties:
                                  document:
                                    type: string
                                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    description: >-
                                      The document’s name, as a log’s `attach`
                                      keeps it and a cite names it: acord_125.
                                  region:
                                    type: string
                                    maxLength: 200
                                    pattern: ^p[1-9]\d*$/u
                                  verification:
                                    type: string
                                    enum:
                                      - visual
                                    description: >-
                                      The value was verified on the rendered PDF
                                      page.
                                required:
                                  - document
                                  - region
                                  - verification
                                additionalProperties: false
                          description: >-
                            The other places the extraction read this same
                            value.
                        note:
                          type: string
                          minLength: 1
                          maxLength: 2000
                          description: >-
                            For the underwriter: what the files say or do not
                            say about the value, such as “The SOV and the ACORD
                            disagree on units.” Never an instruction, and no
                            percentages.
                      required:
                        - value
                        - by
                      additionalProperties: false
                    minItems: 2
                  settled:
                    type: boolean
                    enum:
                      - true
                    description: >-
                      The underwriter already chose here, and the files say
                      nothing new.
                required:
                  - path
                  - values
                additionalProperties: false
              description: >-
                The inputs the files, or the files and the underwriter, give
                different values for, each waiting on the underwriter to choose
                one. A conflict is the same for a fact (a note of the program),
                listed apart in `factConflicts`; a submission’s `outstanding`
                asks for both, as `conflict:` items.
            received:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                    maxLength: 100
                    pattern: ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
                    description: A document the profile expects, by its key.
                  document:
                    type: string
                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                    description: The file of the run that is it.
                  problem:
                    type: string
                    minLength: 1
                    maxLength: 500
                    description: 'Why it does not count: an unknown key or file.'
                required:
                  - key
                  - document
                additionalProperties: false
            absent:
              type: object
              properties:
                facts:
                  type: array
                  items:
                    type: object
                    properties:
                      key:
                        type: string
                        maxLength: 100
                        pattern: ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
                        description: >-
                          Lowercase words joined by `_`, parts by `.`:
                          insured_name, loss_runs.
                      field:
                        type: string
                        maxLength: 64
                        pattern: ^[a-z][a-z0-9_]*$
                        description: >-
                          A required field of the fact’s records that a found
                          record lacks.
                    required:
                      - key
                    additionalProperties: false
                documents:
                  type: array
                  items:
                    type: object
                    properties:
                      key:
                        type: string
                        maxLength: 100
                        pattern: ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
                        description: >-
                          Lowercase words joined by `_`, parts by `.`:
                          insured_name, loss_runs.
                    required:
                      - key
                    additionalProperties: false
              required:
                - facts
                - documents
              additionalProperties: false
              description: >-
                The facts and documents the profile expects that the run did not
                find.
            summary:
              type: object
              properties:
                headline:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: The account and the risk in a few words.
                sentences:
                  type: array
                  items:
                    type: object
                    properties:
                      text:
                        type: string
                        minLength: 1
                        maxLength: 600
                        description: >-
                          One sentence on the risk, with no figures and no
                          recommendation.
                      cites:
                        type: array
                        items:
                          type: object
                          properties:
                            document:
                              type: string
                              pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                              description: >-
                                The document’s name, as a log’s `attach` keeps
                                it and a cite names it: acord_125.
                            region:
                              type: string
                              minLength: 1
                              maxLength: 200
                              description: >-
                                Page, sheet and cell, or row: p3, 'SOV'!B4, row
                                12; body for an email.
                            quote:
                              type: string
                              minLength: 1
                              maxLength: 2000
                              description: The text read, exactly as the document has it.
                          required:
                            - document
                            - region
                            - quote
                          additionalProperties: false
                        minItems: 1
                        maxItems: 10
                        description: Each place in the files the sentence rests on.
                      problem:
                        type: string
                        minLength: 1
                        maxLength: 500
                        description: >-
                          Why a cite does not stand: the sentence is not shown
                          as supported.
                    required:
                      - text
                      - cites
                    additionalProperties: false
              required:
                - sentences
              additionalProperties: false
            request:
              type: object
              properties:
                businessType:
                  type: object
                  properties:
                    value:
                      type: string
                      enum:
                        - new
                        - renewal
                        - revised_ask
                        - endorsement
                    from:
                      type: object
                      properties:
                        document:
                          type: string
                          pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                          description: >-
                            The document’s name, as a log’s `attach` keeps it
                            and a cite names it: acord_125.
                        region:
                          type: string
                          minLength: 1
                          maxLength: 200
                          description: >-
                            Page, sheet and cell, or row: p3, 'SOV'!B4, row 12;
                            body for an email.
                        quote:
                          type: string
                          minLength: 1
                          maxLength: 2000
                          description: The text read, exactly as the document has it.
                      required:
                        - document
                        - region
                        - quote
                      additionalProperties: false
                    note:
                      type: string
                      minLength: 1
                      maxLength: 2000
                      description: >-
                        For the underwriter: what the files say or do not say
                        about the value, such as “The SOV and the ACORD disagree
                        on units.” Never an instruction, and no percentages.
                    problem:
                      type: string
                      minLength: 1
                      maxLength: 500
                      description: >-
                        Why the type can’t be relied on: its cite does not
                        stand.
                  required:
                    - value
                    - from
                  additionalProperties: false
              additionalProperties: false
              description: >-
                What the files say of the request itself, for its record: the
                type of request where a file states it. The underwriter accepts
                it on the record; nothing sets it for them.
            factConflicts:
              type: array
              items:
                type: object
                properties:
                  fact:
                    type: string
                    maxLength: 100
                    pattern: ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
                    description: 'The program’s note, by its path: loss_year_figures.'
                  row:
                    type: string
                    minLength: 1
                    maxLength: 200
                    pattern: ^[^\x00-\x1f\x7f]+$
                    description: 'For a note kept as a list: the row’s id.'
                  field:
                    type: string
                    maxLength: 64
                    pattern: ^[a-z][a-z0-9_]*$
                    description: 'For a fact given as a record: the field.'
                  values:
                    type: array
                    items:
                      type: object
                      properties:
                        value:
                          anyOf:
                            - type: string
                            - type: number
                            - type: boolean
                            - nullable: true
                            - type: array
                              items:
                                nullable: true
                            - type: object
                              additionalProperties:
                                nullable: true
                        by:
                          type: string
                          enum:
                            - extraction
                            - underwriter
                        from:
                          anyOf:
                            - type: object
                              properties:
                                document:
                                  type: string
                                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  description: >-
                                    The document’s name, as a log’s `attach`
                                    keeps it and a cite names it: acord_125.
                                region:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  description: >-
                                    Page, sheet and cell, or row: p3, 'SOV'!B4,
                                    row 12; body for an email.
                                quote:
                                  type: string
                                  minLength: 1
                                  maxLength: 2000
                                  description: >-
                                    The text read, exactly as the document has
                                    it.
                              required:
                                - document
                                - region
                                - quote
                              additionalProperties: false
                            - type: object
                              properties:
                                document:
                                  type: string
                                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  description: >-
                                    The document’s name, as a log’s `attach`
                                    keeps it and a cite names it: acord_125.
                                region:
                                  type: string
                                  maxLength: 200
                                  pattern: ^p[1-9]\d*$/u
                                verification:
                                  type: string
                                  enum:
                                    - visual
                                  description: >-
                                    The value was verified on the rendered PDF
                                    page.
                              required:
                                - document
                                - region
                                - verification
                              additionalProperties: false
                          description: Where it was read; the underwriter’s may have none.
                        also:
                          type: array
                          items:
                            anyOf:
                              - type: object
                                properties:
                                  document:
                                    type: string
                                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    description: >-
                                      The document’s name, as a log’s `attach`
                                      keeps it and a cite names it: acord_125.
                                  region:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                    description: >-
                                      Page, sheet and cell, or row: p3,
                                      'SOV'!B4, row 12; body for an email.
                                  quote:
                                    type: string
                                    minLength: 1
                                    maxLength: 2000
                                    description: >-
                                      The text read, exactly as the document has
                                      it.
                                required:
                                  - document
                                  - region
                                  - quote
                                additionalProperties: false
                              - type: object
                                properties:
                                  document:
                                    type: string
                                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    description: >-
                                      The document’s name, as a log’s `attach`
                                      keeps it and a cite names it: acord_125.
                                  region:
                                    type: string
                                    maxLength: 200
                                    pattern: ^p[1-9]\d*$/u
                                  verification:
                                    type: string
                                    enum:
                                      - visual
                                    description: >-
                                      The value was verified on the rendered PDF
                                      page.
                                required:
                                  - document
                                  - region
                                  - verification
                                additionalProperties: false
                          description: >-
                            The other places the extraction read this same
                            value.
                        note:
                          type: string
                          minLength: 1
                          maxLength: 2000
                          description: >-
                            For the underwriter: what the files say or do not
                            say about the value, such as “The SOV and the ACORD
                            disagree on units.” Never an instruction, and no
                            percentages.
                      required:
                        - value
                        - by
                      additionalProperties: false
                    minItems: 2
                required:
                  - fact
                  - values
                additionalProperties: false
              description: >-
                The facts (the program’s notes) the files, or the files and the
                underwriter, give different values for, held against what the
                submission holds now, each waiting on the underwriter to choose
                one, as an input’s conflict in `conflicts` does. On a read;
                never kept with a result.
            factProposals:
              type: array
              items:
                type: object
                properties:
                  fact:
                    type: string
                    maxLength: 100
                    pattern: ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
                    description: 'The program’s note, by its path: loss_year_figures.'
                  row:
                    type: string
                    minLength: 1
                    maxLength: 200
                    pattern: ^[^\x00-\x1f\x7f]+$
                    description: 'For a note kept as a list: the row’s id.'
                  field:
                    type: string
                    maxLength: 64
                    pattern: ^[a-z][a-z0-9_]*$
                    description: 'For a fact given as a record: the field.'
                  value:
                    anyOf:
                      - type: string
                      - type: number
                      - type: boolean
                      - nullable: true
                      - type: array
                        items:
                          nullable: true
                      - type: object
                        additionalProperties:
                          nullable: true
                  from:
                    anyOf:
                      - type: object
                        properties:
                          document:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            description: >-
                              The document’s name, as a log’s `attach` keeps it
                              and a cite names it: acord_125.
                          region:
                            type: string
                            minLength: 1
                            maxLength: 200
                            description: >-
                              Page, sheet and cell, or row: p3, 'SOV'!B4, row
                              12; body for an email.
                          quote:
                            type: string
                            minLength: 1
                            maxLength: 2000
                            description: The text read, exactly as the document has it.
                        required:
                          - document
                          - region
                          - quote
                        additionalProperties: false
                      - type: object
                        properties:
                          document:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            description: >-
                              The document’s name, as a log’s `attach` keeps it
                              and a cite names it: acord_125.
                          region:
                            type: string
                            maxLength: 200
                            pattern: ^p[1-9]\d*$/u
                          verification:
                            type: string
                            enum:
                              - visual
                            description: The value was verified on the rendered PDF page.
                        required:
                          - document
                          - region
                          - verification
                        additionalProperties: false
                  note:
                    type: string
                    minLength: 1
                    maxLength: 2000
                    description: >-
                      For the underwriter: what the files say or do not say
                      about the value, such as “The SOV and the ACORD disagree
                      on units.” Never an instruction, and no percentages.
                  status:
                    type: string
                    enum:
                      - valid
                      - invalid
                      - conflict
                      - ruled
                  problem:
                    type: string
                    minLength: 1
                    maxLength: 500
                    description: Why an invalid proposal does not fit.
                  since:
                    type: string
                    enum:
                      - new
                      - unchanged
                      - changed
                    description: >-
                      Against the previous run: new path, same value, or another
                      value. Absent on a first run.
                  previous:
                    anyOf:
                      - type: string
                      - type: number
                      - type: boolean
                      - nullable: true
                      - type: array
                        items:
                          nullable: true
                      - type: object
                        additionalProperties:
                          nullable: true
                    description: The previous run’s value, when it changed.
                  entered:
                    type: boolean
                    enum:
                      - true
                    description: >-
                      The underwriter already holds this value at this path:
                      nothing to accept.
                  ruling:
                    type: string
                    enum:
                      - accepted
                      - overridden
                      - dismissed
                    description: >-
                      With status `ruled`: what the underwriter did with this
                      value.
                required:
                  - fact
                  - value
                  - from
                  - status
                additionalProperties: false
              description: >-
                Each value the files give for a field of a fact the program
                keeps, by its address, with its status held against what the
                submission holds now: accepted, dismissed or overridden
                (`ruled`), or already held (`entered`). On a read; never kept
                with a result.
          required:
            - version
            - run
            - documents
            - proposals
            - facts
            - missing
            - conflicts
            - received
            - absent
          additionalProperties: false
          description: >-
            What was read, checked against the program’s contract and compared
            with the extraction before it; null until it completes.
        profile:
          type: object
          properties:
            name:
              type: string
              minLength: 1
              maxLength: 200
              description: The profile’s name, kept on each result.
            role:
              type: string
              pattern: ^[a-z_][a-z0-9_]{0,63}$
              description: The program role extraction answers as, such as intake.
            neverPropose:
              type: array
              items:
                type: object
                properties:
                  pattern:
                    type: string
                    pattern: ^[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*$
                    description: 'Field names joined by `.`: layers.policy.controls.'
                  why:
                    type: string
                    enum:
                      - judgment
                      - host
                      - program
                    description: >-
                      A person’s call, written by the host, or refused by the
                      program.
                  note:
                    type: string
                    minLength: 1
                    maxLength: 500
                    description: Why, in words, for the reader.
                required:
                  - pattern
                  - why
                  - note
                additionalProperties: false
              maxItems: 500
            reportMissing:
              type: array
              items:
                type: object
                properties:
                  pattern:
                    type: string
                    pattern: ^[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*$
                    description: 'Field names joined by `.`: layers.policy.controls.'
                  note:
                    type: string
                    minLength: 1
                    maxLength: 500
                required:
                  - pattern
                  - note
                additionalProperties: false
              maxItems: 500
              description: >-
                Inputs to list as missing though the contract does not require
                them, such as a list the program declines when empty.
            askedOnlyOn:
              type: object
              additionalProperties:
                type: array
                items:
                  type: string
                  enum:
                    - new
                    - renewal
                    - revised_ask
                    - endorsement
                minItems: 1
                maxItems: 4
              description: >-
                Inputs and notes asked only on these types of request, by field
                names: `expiring_premium: ["renewal"]`, since new business has
                no expiring policy. On a submission of another type nothing
                waits on them; on one whose type is not set, they are asked as
                usual. A value the files give is still kept.
            facts:
              type: array
              items:
                nullable: true
              maxItems: 200
              description: >-
                Ignored. Profiles saved before facts came from the contract’s
                notes listed them here; they still parse.
            expectedDocuments:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                    maxLength: 100
                    pattern: ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
                    description: >-
                      Lowercase words joined by `_`, parts by `.`: insured_name,
                      loss_runs.
                  label:
                    type: string
                    minLength: 1
                    maxLength: 200
                    description: 'What it is, in words: “Loss runs, 5 years”.'
                  required:
                    type: boolean
                    description: Whether a submission without it waits on it.
                  neededFor:
                    type: string
                    minLength: 1
                    maxLength: 200
                  note:
                    type: string
                    minLength: 1
                    maxLength: 500
                    description: How to know it, for the agent.
                required:
                  - key
                  - label
                  - required
                additionalProperties: false
              maxItems: 100
              description: >-
                The documents a submission should hold, each with a key a run
                names.
            hints:
              type: object
              additionalProperties:
                type: string
                minLength: 1
                maxLength: 1000
              description: >-
                How to find an input’s or a note’s value in the files, for the
                agent, by its field names: never what the value is (the contract
                says that).
            rowMatch:
              type: object
              additionalProperties:
                type: object
                properties:
                  match:
                    type: array
                    items:
                      type: string
                      maxLength: 64
                      pattern: ^[a-z][a-z0-9_]*$
                      description: 'A field of the fact’s records: incurred.'
                    minItems: 1
                    maxItems: 10
                    description: >-
                      The fields that say a later extraction’s row is one
                      already kept, such as a claim’s `claim_number`. A row with
                      one of them empty is the same row only when its whole
                      record is.
                required:
                  - match
                additionalProperties: false
              description: >-
                For a note kept as a list keyed by an id no file states
                (`loss_claims`): how to tell two rows apart. A row’s id is given
                when it is first read.
            valueLabels:
              type: object
              additionalProperties:
                type: object
                additionalProperties:
                  type: string
                  minLength: 1
                  maxLength: 200
              description: >-
                The words of each value an input or a note’s field takes from a
                fixed list, by its field names (`primary_retention.kind`). To
                remove once the contract carries enum labels.
            inputWords:
              type: object
              additionalProperties:
                type: object
                properties:
                  short:
                    type: string
                    minLength: 1
                    maxLength: 40
                  group:
                    type: string
                    minLength: 1
                    maxLength: 40
                  format:
                    type: string
                    enum:
                      - text
                      - number
                      - money
                      - date
                      - year
                      - boolean
                required:
                  - short
                additionalProperties: false
              description: >-
                The words of an input whose contract gives none, by its field
                names (`layers.policy.coverage.limit`): its label, the section
                it shows in and how its value reads. A rating library’s records
                carry no words yet. To remove once they do.
          required:
            - name
            - role
            - neverPropose
            - reportMissing
            - expectedDocuments
          additionalProperties: false
          description: >-
            The extraction profile it read with: the documents a submission
            should give, what the desk wants beyond what the program requires,
            and how to find and match values. The facts are the program’s notes,
            read from the release’s contract.
        values:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
                minLength: 1
                maxLength: 500
                description: >-
                  An input’s path under the program’s root record, each list
                  item by its key: locations[id="location-1"].state.
              value:
                anyOf:
                  - type: string
                  - type: number
                  - type: boolean
                  - nullable: true
                  - type: array
                    items:
                      nullable: true
                  - type: object
                    additionalProperties:
                      nullable: true
              from:
                anyOf:
                  - type: object
                    properties:
                      document:
                        type: string
                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                        description: >-
                          The document’s name, as a log’s `attach` keeps it and
                          a cite names it: acord_125.
                      region:
                        type: string
                        minLength: 1
                        maxLength: 200
                        description: >-
                          Page, sheet and cell, or row: p3, 'SOV'!B4, row 12;
                          body for an email.
                      quote:
                        type: string
                        minLength: 1
                        maxLength: 2000
                        description: The text read, exactly as the document has it.
                    required:
                      - document
                      - region
                      - quote
                    additionalProperties: false
                  - type: object
                    properties:
                      document:
                        type: string
                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                        description: >-
                          The document’s name, as a log’s `attach` keeps it and
                          a cite names it: acord_125.
                      region:
                        type: string
                        maxLength: 200
                        pattern: ^p[1-9]\d*$/u
                      verification:
                        type: string
                        enum:
                          - visual
                        description: The value was verified on the rendered PDF page.
                    required:
                      - document
                      - region
                      - verification
                    additionalProperties: false
              at:
                type: string
                format: date-time
                description: >-
                  When the answer in the submission’s log that holds it was
                  written.
              by:
                type: string
                minLength: 1
                description: The user who wrote it.
            required:
              - path
              - value
            additionalProperties: false
          description: >-
            The values the submission holds now by input path, accepted or set
            by the underwriter, which `result` is held against: each as its
            answer in the submission’s log was written, with the place it was
            read where it was taken from a file.
        factValues:
          type: array
          items:
            type: object
            properties:
              fact:
                type: string
                maxLength: 100
                pattern: ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
                description: 'The program’s note, by its path: loss_year_figures.'
              row:
                type: string
                minLength: 1
                maxLength: 200
                pattern: ^[^\x00-\x1f\x7f]+$
                description: 'For a note kept as a list: the row’s id.'
              field:
                type: string
                maxLength: 64
                pattern: ^[a-z][a-z0-9_]*$
                description: 'For a fact given as a record: the field.'
              value:
                anyOf:
                  - type: string
                  - type: number
                  - type: boolean
                  - nullable: true
                  - type: array
                    items:
                      nullable: true
                  - type: object
                    additionalProperties:
                      nullable: true
              from:
                anyOf:
                  - type: object
                    properties:
                      document:
                        type: string
                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                        description: >-
                          The document’s name, as a log’s `attach` keeps it and
                          a cite names it: acord_125.
                      region:
                        type: string
                        minLength: 1
                        maxLength: 200
                        description: >-
                          Page, sheet and cell, or row: p3, 'SOV'!B4, row 12;
                          body for an email.
                      quote:
                        type: string
                        minLength: 1
                        maxLength: 2000
                        description: The text read, exactly as the document has it.
                    required:
                      - document
                      - region
                      - quote
                    additionalProperties: false
                  - type: object
                    properties:
                      document:
                        type: string
                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                        description: >-
                          The document’s name, as a log’s `attach` keeps it and
                          a cite names it: acord_125.
                      region:
                        type: string
                        maxLength: 200
                        pattern: ^p[1-9]\d*$/u
                      verification:
                        type: string
                        enum:
                          - visual
                        description: The value was verified on the rendered PDF page.
                    required:
                      - document
                      - region
                      - verification
                    additionalProperties: false
              at:
                type: string
                format: date-time
                description: >-
                  When the answer in the submission’s log that holds it was
                  written.
              by:
                type: string
                minLength: 1
                description: The user who wrote it.
            required:
              - fact
              - value
            additionalProperties: false
          description: >-
            The values the submission holds now for its facts (the program’s
            notes), by fact, row and field, used or typed by the underwriter:
            each with when and by whom the note it is in was last written.
        rulings:
          type: array
          items:
            anyOf:
              - type: object
                properties:
                  path:
                    type: string
                    minLength: 1
                    maxLength: 500
                    description: >-
                      An input’s path under the program’s root record, each list
                      item by its key: locations[id="location-1"].state.
                  value:
                    anyOf:
                      - type: string
                      - type: number
                      - type: boolean
                      - nullable: true
                      - type: array
                        items:
                          nullable: true
                      - type: object
                        additionalProperties:
                          nullable: true
                    description: The proposed value ruled on.
                  decision:
                    type: string
                    enum:
                      - overridden
                      - dismissed
                    description: >-
                      `dismissed`: set aside, no value entered. `overridden`:
                      the underwriter holds another value at the path.
                  from:
                    anyOf:
                      - type: object
                        properties:
                          document:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            description: >-
                              The document’s name, as a log’s `attach` keeps it
                              and a cite names it: acord_125.
                          region:
                            type: string
                            minLength: 1
                            maxLength: 200
                            description: >-
                              Page, sheet and cell, or row: p3, 'SOV'!B4, row
                              12; body for an email.
                          quote:
                            type: string
                            minLength: 1
                            maxLength: 2000
                            description: The text read, exactly as the document has it.
                        required:
                          - document
                          - region
                          - quote
                        additionalProperties: false
                      - type: object
                        properties:
                          document:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            description: >-
                              The document’s name, as a log’s `attach` keeps it
                              and a cite names it: acord_125.
                          region:
                            type: string
                            maxLength: 200
                            pattern: ^p[1-9]\d*$/u
                          verification:
                            type: string
                            enum:
                              - visual
                            description: The value was verified on the rendered PDF page.
                        required:
                          - document
                          - region
                          - verification
                        additionalProperties: false
                    description: >-
                      Where the ruled value was read, so a reader can say what
                      was replaced without the old result.
                  note:
                    type: string
                    minLength: 1
                    maxLength: 2000
                    description: >-
                      For the underwriter: what the files say or do not say
                      about the value, such as “The SOV and the ACORD disagree
                      on units.” Never an instruction, and no percentages.
                  at:
                    type: string
                    format: date-time
                    description: When it was made.
                  by:
                    type: string
                    minLength: 1
                    description: The user who made it.
                required:
                  - path
                  - value
                  - decision
                  - at
                  - by
                additionalProperties: false
              - type: object
                properties:
                  fact:
                    type: string
                    maxLength: 100
                    pattern: ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
                    description: 'The program’s note, by its path: loss_year_figures.'
                  row:
                    type: string
                    minLength: 1
                    maxLength: 200
                    pattern: ^[^\x00-\x1f\x7f]+$
                    description: 'For a note kept as a list: the row’s id.'
                  field:
                    type: string
                    maxLength: 64
                    pattern: ^[a-z][a-z0-9_]*$
                    description: 'For a fact given as a record: the field.'
                  value:
                    anyOf:
                      - type: string
                      - type: number
                      - type: boolean
                      - nullable: true
                      - type: array
                        items:
                          nullable: true
                      - type: object
                        additionalProperties:
                          nullable: true
                    description: The value read and ruled on.
                  decision:
                    type: string
                    enum:
                      - overridden
                      - dismissed
                    description: >-
                      `dismissed`: set aside, no value entered. `overridden`:
                      the underwriter holds another value at the path.
                  from:
                    anyOf:
                      - type: object
                        properties:
                          document:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            description: >-
                              The document’s name, as a log’s `attach` keeps it
                              and a cite names it: acord_125.
                          region:
                            type: string
                            minLength: 1
                            maxLength: 200
                            description: >-
                              Page, sheet and cell, or row: p3, 'SOV'!B4, row
                              12; body for an email.
                          quote:
                            type: string
                            minLength: 1
                            maxLength: 2000
                            description: The text read, exactly as the document has it.
                        required:
                          - document
                          - region
                          - quote
                        additionalProperties: false
                      - type: object
                        properties:
                          document:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            description: >-
                              The document’s name, as a log’s `attach` keeps it
                              and a cite names it: acord_125.
                          region:
                            type: string
                            maxLength: 200
                            pattern: ^p[1-9]\d*$/u
                          verification:
                            type: string
                            enum:
                              - visual
                            description: The value was verified on the rendered PDF page.
                        required:
                          - document
                          - region
                          - verification
                        additionalProperties: false
                    description: Where the ruled value was read.
                  note:
                    type: string
                    minLength: 1
                    maxLength: 2000
                    description: >-
                      For the underwriter: what the files say or do not say
                      about the value, such as “The SOV and the ACORD disagree
                      on units.” Never an instruction, and no percentages.
                  at:
                    type: string
                    format: date-time
                    description: When it was made.
                  by:
                    type: string
                    minLength: 1
                    description: The user who made it.
                required:
                  - fact
                  - value
                  - decision
                  - at
                  - by
                additionalProperties: false
          description: >-
            The proposed values the underwriter set aside that stand now, on
            inputs (by `path`) and on facts’ values (by `fact`, `row` and
            `field`), made on this extraction or an earlier one, oldest first:
            `dismissed`, or `overridden` by the value held at the path. An
            accept is not listed: the value it took is in `values` or
            `factValues`, and a proposal of the value held is `ruled` and
            `accepted`.
        asks:
          type: object
          nullable: true
          properties:
            inputs:
              type: array
              items:
                type: object
                properties:
                  path:
                    type: string
                    minLength: 1
                  lapsed:
                    type: object
                    properties:
                      value:
                        nullable: true
                        description: The value the answer gave.
                      document:
                        type: string
                        minLength: 1
                        description: >-
                          The document it cited, by the name the result gives
                          it.
                    required:
                      - document
                    additionalProperties: false
                required:
                  - path
                additionalProperties: false
              description: >-
                Each input the program asks next, with the value that lapsed
                there, if one did.
            facts:
              type: array
              items:
                type: object
                properties:
                  fact:
                    type: string
                    maxLength: 100
                    pattern: ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
                    description: 'The program’s note, by its path: loss_year_figures.'
                  row:
                    type: string
                    minLength: 1
                    maxLength: 200
                    pattern: ^[^\x00-\x1f\x7f]+$
                    description: 'For a note kept as a list: the row’s id.'
                  field:
                    type: string
                    maxLength: 64
                    pattern: ^[a-z][a-z0-9_]*$
                    description: 'For a fact given as a record: the field.'
                  lapsed:
                    type: object
                    properties:
                      value:
                        nullable: true
                        description: The value the answer gave.
                      document:
                        type: string
                        minLength: 1
                        description: >-
                          The document it cited, by the name the result gives
                          it.
                    required:
                      - document
                    additionalProperties: false
                required:
                  - fact
                  - lapsed
                additionalProperties: false
              description: >-
                Each note whose value lapsed, by its fact, and its row and field
                where only those lapsed, with the value it gave.
          required:
            - inputs
            - facts
          additionalProperties: false
          description: >-
            What the submission’s log asks now, from its status: the inputs the
            program needs next, and the notes whose value lapsed when the
            document they cite was replaced, with what each was. Its
            `outstanding` follows it: an input the run did not find waits only
            while the program asks for it. Null while the submission has no log.
        procedureRunId:
          type: string
          nullable: true
          format: uuid
          description: Its procedure run; null while queued.
        webUrl:
          type: string
          nullable: true
          format: uri
          description: >-
            The run’s page in Effective, where the caller can open it; null
            otherwise.
      required:
        - id
        - submissionId
        - status
        - program
        - documents
        - createdAt
        - createdBy
        - finishedAt
        - idempotencyExpiresAt
        - failure
        - result
        - profile
        - values
        - factValues
        - rulings
        - asks
        - procedureRunId
        - webUrl
    V2CodedError:
      allOf:
        - $ref: '#/components/schemas/V2Error'
        - type: object
          properties:
            code:
              type: string
              minLength: 1
              description: Stable error code. Clients must tolerate unknown future codes.
            details:
              type: array
              items:
                type: object
                properties:
                  location:
                    type: string
                    enum:
                      - path
                      - query
                      - header
                      - body
                  path:
                    type: array
                    items:
                      type: string
                      maxLength: 64
                    maxItems: 12
                  code:
                    type: string
                    enum:
                      - required
                      - invalid_type
                      - invalid_value
                      - unknown_field
                  message:
                    type: string
                    minLength: 1
                    maxLength: 200
                required:
                  - location
                  - path
                  - code
                  - message
              minItems: 1
              maxItems: 20
              description: Bounded safe validation issues; may omit some invalid fields.
            requestId:
              type: string
              minLength: 1
              maxLength: 128
              description: >-
                Existing server correlation for this HTTP attempt, when
                available.
            dataset:
              type: string
              enum:
                - naic
                - osha
              description: Dataset needed for dataset_not_enabled.
            businessCode:
              type: string
              description: The rater’s own refusal code, for business_rejection.
            violations:
              type: array
              items:
                type: object
                properties:
                  code:
                    type: string
                    description: Authored or built-in constraint code
                  message:
                    type: string
                    description: Authored message for the failed constraint
                  path:
                    type: string
                    description: Input path of the offending value; empty for the request
                  value:
                    nullable: true
                    description: Offending input value, size-bounded by the runtime
                  constraint:
                    type: string
                    description: The constraint the value failed, as text
                  cite:
                    type: string
                    nullable: true
                    description: >-
                      Filing citation of the constraint, when the source cites
                      one
                required:
                  - code
                  - message
                  - path
                  - value
                  - constraint
                  - cite
                additionalProperties: false
              maxItems: 256
              description: >-
                Each input constraint the submission failed, for invalid_inputs
                and business_rejection.
            violationsTruncated:
              type: boolean
              description: >-
                True when the rater reported more violations than violations
                holds.
            executionId:
              type: string
              description: >-
                The recorded execution of a failed rating, for rater rating
                failures.
            accessUrl:
              type: string
              nullable: true
              format: uri
              description: Not currently returned.
          required:
            - code
    V2Error:
      type: object
      properties:
        error:
          type: string
          minLength: 1
          description: Human-readable explanation of the failure.
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Effective API key. Send Authorization: Bearer sk-eai-...'

````

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