{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peopleprincipia-com/json-schema/peopleprincipia-com-relationship-evidence-request-schema.json",
  "title": "RelationshipEvidenceRequest",
  "description": "PRN-065 — a construct→outcome relationship effect size observed in real\nclient deployments (aggregated, anonymized, consented). The\nprimary-evidence sibling of a literature EffectSize.\n",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peopleprincipia-com-openapi.yaml#/components/schemas/RelationshipEvidenceRequest",
  "type": "object",
  "required": [
    "from_construct_id",
    "predicate",
    "to_construct_id",
    "source",
    "value",
    "n_observations",
    "n_orgs",
    "collected_at"
  ],
  "properties": {
    "from_construct_id": {
      "type": "string",
      "description": "Source construct (CanonicalVariable.variable_id)."
    },
    "predicate": {
      "$ref": "#/$defs/Predicate"
    },
    "to_construct_id": {
      "type": "string",
      "description": "Target construct / outcome (CanonicalVariable.variable_id)."
    },
    "source": {
      "type": "string",
      "enum": [
        "primary-deployment",
        "reincarnation",
        "survey_respondent",
        "preference_modeler",
        "manual"
      ],
      "description": "Provenance label. `primary-deployment` is the RECOMMENDED Living-layer tag (publication-bias-free by construction); the upstream measurement-source literals are also accepted."
    },
    "value": {
      "type": "number",
      "description": "Observed correlation r in (-1, 1)."
    },
    "ci_lower": {
      "type": "number"
    },
    "ci_upper": {
      "type": "number"
    },
    "n_observations": {
      "type": "integer",
      "minimum": 1,
      "description": "Pooled respondent count across contributing deployments."
    },
    "n_orgs": {
      "type": "integer",
      "minimum": 1,
      "description": "Distinct organizations contributing — the convenience-sample honesty signal."
    },
    "collected_at": {
      "type": "string",
      "format": "date-time"
    },
    "moderators": {
      "type": "object",
      "description": "PRN-065 population moderators. Absent keys = pooled over that dimension.",
      "properties": {
        "industry": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "region": {
          "type": "string"
        },
        "era": {
          "type": "string",
          "description": "Time window, e.g. \"2018-2024\"."
        }
      }
    },
    "context": {
      "type": "object",
      "properties": {
        "study_id": {
          "type": "string"
        },
        "population": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        }
      }
    },
    "toolbox_deployment_id": {
      "type": "string"
    }
  },
  "$defs": {
    "Predicate": {
      "type": "string",
      "enum": [
        "predicts",
        "moderates",
        "mediates",
        "correlates",
        "causes"
      ]
    }
  }
}