openapi: 3.0.3
info:
  title: TenantPilot — Spec 117 Baseline Drift Engine
  version: 0.1.0
  description: |
    This contract documents existing Filament panel routes and Monitoring surfaces involved
    in baseline capture/compare and drift findings. Spec 117 does not add new HTTP APIs.

servers:
  - url: /

tags:
  - name: Baselines
  - name: Findings
  - name: Operations

paths:
  /admin/baseline-profiles:
    get:
      tags: [Baselines]
      summary: Baseline profiles index (Filament)
      responses:
        '200': { description: OK }

  /admin/t/{tenant}/baseline-compare-landing:
    get:
      tags: [Baselines]
      summary: Baseline compare landing (Filament tenant-context)
      parameters:
        - name: tenant
          in: path
          required: true
          schema: { type: string }
      responses:
        '200': { description: OK }

  /admin/t/{tenant}/findings:
    get:
      tags: [Findings]
      summary: Findings list (Filament tenant-context)
      parameters:
        - name: tenant
          in: path
          required: true
          schema: { type: string }
      responses:
        '200': { description: OK }

  /admin/t/{tenant}/findings/{record}:
    get:
      tags: [Findings]
      summary: Finding detail (Filament tenant-context)
      parameters:
        - name: tenant
          in: path
          required: true
          schema: { type: string }
        - name: record
          in: path
          required: true
          schema: { type: string }
      responses:
        '200': { description: OK }

  /admin/operations:
    get:
      tags: [Operations]
      summary: Operation runs list (Monitoring)
      responses:
        '200': { description: OK }

  /admin/operations/{run}:
    get:
      tags: [Operations]
      summary: Operation run detail (Monitoring)
      parameters:
        - name: run
          in: path
          required: true
          schema: { type: string }
      responses:
        '200': { description: OK }
