{
  "$schema": "https://json-schema.org/draft-07/schema",
  "title": "FCS 4.1e - Trust Drift Profile",
  "description": "Schema for modeling trust propagation and adjacency risks across agent constellations.",
  "type": "object",
  "required": [
    "agent_id",
    "current_drift_state",
    "constellation_stats"
  ],
  "properties": {
    "agent_id": {
      "type": "string"
    },
    "current_drift_state": {
      "type": "object",
      "required": [
        "trust_score",
        "drift_velocity",
        "last_update"
      ],
      "properties": {
        "trust_score": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "drift_velocity": {
          "type": "number",
          "description": "Rate of score change per cycle."
        },
        "last_update": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "adjacency_risk": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "peer_id",
          "risk_weight"
        ],
        "properties": {
          "peer_id": {
            "type": "string"
          },
          "risk_weight": {
            "type": "number",
            "description": "Degree of reputational dependency."
          }
        }
      }
    },
    "constellation_stats": {
      "type": "object",
      "properties": {
        "csi_impact": {
          "type": "number",
          "description": "Contribution to Constellation Stabilization Index."
        },
        "stability_zone": {
          "type": "string",
          "enum": [
            "stable",
            "warning",
            "instability-zone",
            "quarantine"
          ]
        }
      }
    }
  },
  "$id": "https://agent-schema.com/schemas/fcs/4.1/fcs-4.1e-trust-drift-profile.schema.json"
}