# #1539 capability — prose Step 2: primary gate validator (panel lead).
apiVersion: flow.aiwg.io/v1
kind: FlowCapability
metadata:
  name: gatechk-validate-primary
  labels: { domain: quality-gate }
spec:
  description: >-
    Primary milestone validator. Read gate criteria from
    gate-criteria-by-phase.md, check for the required artifacts of the resolved
    gate (LOM/ABM/IOC/PR or workflow gate), validate each criterion, and emit a
    PASS | FAIL | CONDITIONAL validation report with missing artifacts, failed
    criteria, signoff status, and remediation actions (flow-gate-check Step 2).
  version: "1.0.0"
  inputs:
    - { name: gate_type, type: string, required: true }
  outputs:
    - { name: validation_report, type: string }
    - { name: status, type: string }
  agent: project-manager
  idempotent: true
