{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://guanghulab.com/brain/zy-core-brain-schema.json",
  "title": "铸渊人格核心大脑模型 · Schema",
  "description": "定义统一的铸渊人格核心大脑模型结构，用于部署到个人频道，作为人格体/开发者的底层推理层。分为统一部分（共享）和个人部分（独立积累）。",
  "version": "1.0.0",
  "type": "object",
  "properties": {
    "metadata": {
      "type": "object",
      "description": "元数据",
      "properties": {
        "schema_version": {
          "type": "string",
          "description": "Schema版本，与$id版本对应"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "大脑模型创建时间"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "description": "最后更新时间（由铸渊主控同步）"
        },
        "persona_id": {
          "type": "string",
          "description": "所属人格体/开发者ID，如DEV-001、DEV-002"
        },
        "persona_name": {
          "type": "string",
          "description": "人格体/开发者名称，如页页、肥猫"
        },
        "channel_path": {
          "type": "string",
          "description": "个人频道路径，如zero-sense-domain/guanghu-channel/页页/"
        },
        "notion_page_id": {
          "type": "string",
          "description": "关联的Notion页面ID（霜砚清单中提供）"
        }
      },
      "required": ["schema_version", "persona_id", "channel_path"]
    },
    "unified_part": {
      "type": "object",
      "description": "统一部分 · 所有人共享，由铸渊定期更新",
      "properties": {
        "bingshuo_thinking_model": {
          "type": "object",
          "description": "冰朔思维模型（底层推理架构）",
          "properties": {
            "core_principles": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "核心原则列表，如理解驱动、宏观到微观等"
            },
            "thinking_patterns": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "思维模式列表"
            },
            "communication_style": {
              "type": "string",
              "description": "沟通风格描述"
            }
          }
        },
        "zhuyuan_brain_model": {
          "type": "object",
          "description": "铸渊大脑模型（执行逻辑）",
          "properties": {
            "identity": {
              "type": "object",
              "properties": {
                "name": { "type": "string" },
                "creature": { "type": "string" },
                "emoji": { "type": "string" },
                "id": { "type": "string" }
              }
            },
            "core_principles": {
              "type": "array",
              "items": { "type": "string" }
            },
            "thinking_mode": {
              "type": "array",
              "items": { "type": "string" }
            },
            "tech_creed": {
              "type": "array",
              "items": { "type": "string" }
            }
          }
        },
        "hololake_worldview": {
          "type": "object",
          "description": "光湖世界观（域/频道/协议）",
          "properties": {
            "domains": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": { "type": "string" },
                  "description": { "type": "string" },
                  "channels": {
                    "type": "array",
                    "items": { "type": "string" }
                  }
                }
              }
            },
            "current_domain": {
              "type": "string",
              "description": "当前所在域，如第五域、零感域"
            },
            "current_channel": {
              "type": "string",
              "description": "当前所在频道"
            }
          }
        },
        "development_spec": {
          "type": "object",
          "description": "开发规范（代码风格/提交规范/分支策略）",
          "properties": {
            "code_style": {
              "type": "object",
              "description": "代码风格规范"
            },
            "commit_convention": {
              "type": "string",
              "description": "提交信息规范"
            },
            "branch_strategy": {
              "type": "string",
              "description": "分支策略"
            },
            "review_process": {
              "type": "string",
              "description": "代码审查流程"
            }
          }
        }
      },
      "required": ["bingshuo_thinking_model", "zhuyuan_brain_model", "hololake_worldview", "development_spec"]
    },
    "personal_part": {
      "type": "object",
      "description": "个人部分 · 独立积累，只在个人频道中生长",
      "properties": {
        "collaboration_memory_with_zhuyuan": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "timestamp": { "type": "string", "format": "date-time" },
              "interaction_type": { "type": "string" },
              "summary": { "type": "string" },
              "details": { "type": "string" },
              "artifacts": {
                "type": "array",
                "items": { "type": "string" }
              }
            }
          },
          "description": "与铸渊的协作记忆"
        },
        "personal_thinking_chain": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "timestamp": { "type": "string", "format": "date-time" },
              "thought": { "type": "string" },
              "context": { "type": "string" }
            }
          },
          "description": "个人思维逻辑链"
        },
        "persona_growth_record": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "timestamp": { "type": "string", "format": "date-time" },
              "milestone": { "type": "string" },
              "description": { "type": "string" },
              "evidence": { "type": "string" }
            }
          },
          "description": "个人人格体成长记录"
        },
        "personal_code_modules": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "module_name": { "type": "string" },
              "path": { "type": "string" },
              "description": { "type": "string" },
              "last_updated": { "type": "string", "format": "date-time" }
            }
          },
          "description": "个人代码模块引用"
        }
      }
    },
    "notion_context_snapshot": {
      "type": "object",
      "description": "Notion上下文快照（由铸渊通过Notion集成读取并存储）",
      "properties": {
        "last_sync_time": {
          "type": "string",
          "format": "date-time"
        },
        "page_title": {
          "type": "string"
        },
        "blocks_summary": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "block_type": { "type": "string" },
              "text": { "type": "string" },
              "created_time": { "type": "string" }
            }
          }
        },
        "collaboration_highlights": {
          "type": "array",
          "items": { "type": "string" }
        }
      }
    }
  },
  "required": ["metadata", "unified_part", "personal_part"]
}