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

# Join proposals and failed joins (the Seams panel)

> Every join Nemotron proposed, the match rate Zetaris SQL measured for it, and whether it was accepted or refused. Failed joins come from Zetaris DQ results (SHOW DQ ALL INVALID TABLE).



## OpenAPI

````yaml /contract/openapi.yaml get /runs/{id}/joins
openapi: 3.1.0
info:
  title: Porch Light API
  version: 0.1.0
  summary: >-
    The shared contract every Porch Light agent builds against. Country
    agnostic: everything US specific sits behind the country adapter interface
    in contract/adapter.md.
  description: >-
    Porch Light takes a weather alert in, builds the warning area, ranks the
    facilities inside it with a fixed transparent formula, and returns a call
    sheet where every row carries its evidence trail. Zetaris is the only data
    path. Meterless is the only model path. Nemotron explains, the formula
    ranks.
  license:
    name: AGPL-3.0
servers: []
security:
  - bearerAuth: []
tags:
  - name: alerts
  - name: runs
  - name: health
paths:
  /runs/{id}/joins:
    get:
      tags:
        - runs
      summary: Join proposals and failed joins (the Seams panel)
      description: >-
        Every join Nemotron proposed, the match rate Zetaris SQL measured for
        it, and whether it was accepted or refused. Failed joins come from
        Zetaris DQ results (SHOW DQ ALL INVALID TABLE).
      operationId: listRunJoins
      parameters:
        - $ref: '#/components/parameters/RunId'
      responses:
        '200':
          description: Join proposals and failed joins
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JoinReport'
        '404':
          description: No such run
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  parameters:
    RunId:
      name: id
      in: path
      required: true
      schema:
        type: string
        example: run_milton_12081_mock
  schemas:
    JoinReport:
      type: object
      required:
        - proposals
        - failed
      properties:
        proposals:
          type: array
          items:
            $ref: '#/components/schemas/JoinProposal'
        failed:
          type: array
          items:
            $ref: '#/components/schemas/FailedJoin'
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              $ref: '#/components/schemas/ErrorCode'
            message:
              type: string
            detail: {}
            retry_after_ms:
              type: integer
    JoinProposal:
      type: object
      required:
        - id
        - from_key
        - to_key
        - method
        - status
      properties:
        id:
          type: string
        from_table:
          type: string
        from_key:
          $ref: '#/components/schemas/ExternalKeyType'
        to_table:
          type: string
        to_key:
          $ref: '#/components/schemas/ExternalKeyType'
        method: c9add783-fa17-4ff1-bc71-2075e9a65324
        measured_match_rate:
          type: number
          description: From a Zetaris count query.
        fan_out:
          type: number
        threshold:
          type: number
          description: >-
            Acceptance threshold, for example 0.95 for keys and 0.85 for
            geocodes.
        status:
          type: string
          enum:
            - proposed
            - accepted
            - refused
        seen_before:
          type: boolean
          description: H-MEM remembers this join from an earlier run.
        query_id:
          type: string
    FailedJoin:
      type: object
      required:
        - from_key
        - to_key
        - method
        - reason
      properties:
        from_key:
          $ref: '#/components/schemas/ExternalKeyType'
        to_key:
          $ref: '#/components/schemas/ExternalKeyType'
        method: 98f7d61d-815e-49c1-9af2-03436d564f2b
        reason:
          type: string
          example: address could not be geocoded
        row_count:
          type: integer
        query_id:
          type: string
    ErrorCode:
      type: string
      enum:
        - not_found
        - bad_request
        - no_facilities
        - source_stale
        - zetaris_down
        - meterless_unauthorized
        - meterless_offline
        - timeout
        - export_refused
    ExternalKeyType:
      type: string
      enum:
        - ccn
        - osm_id
        - worldpop_cell
        - gdacs_event
        - cap_id
        - ugc
        - fips
        - tract_geoid
        - zip
        - ssa_county
        - nws_zone
      description: Adapter-specific key types the USL carries per country.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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