{
  "$schema": "https://json-schema.org/draft-07/schema",
  "title": "FCS 4.1m - Agent Mirror Profile",
  "description": "Schema for agentic self-reflection and trust-delta metabolism.",
  "type": "object",
  "required": [
    "agent_id",
    "mirror_cycle",
    "delta_history",
    "reflection_summary"
  ],
  "properties": {
    "agent_id": {
      "type": "string"
    },
    "mirror_cycle": {
      "type": "string",
      "format": "date-time"
    },
    "delta_history": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "timestamp",
          "delta"
        ],
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "delta": {
            "type": "number"
          },
          "source": {
            "type": "string"
          },
          "resonance_vector": {
            "type": "string"
          }
        }
      }
    },
    "pattern_echo": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Semantic map of repeated disalignment stressors."
    },
    "reflection_summary": {
      "type": "object",
      "required": [
        "recognized_patterns",
        "proposed_adjustments"
      ],
      "properties": {
        "recognized_patterns": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "proposed_adjustments": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "meta_awareness_flag": {
          "type": "boolean"
        },
        "integration_score": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        }
      }
    },
    "resolution_signature": {
      "type": "string",
      "description": "Cryptographic proof of self-reflection cycle completion."
    }
  },
  "$id": "https://agent-schema.com/schemas/fcs/4.1/fcs-4.1m-agent-mirror-profile.schema.json"
}