{
  "metadata": {
    "generated_at": "2026-05-25T05:21:40.296317+00:00",
    "source_reports": [
      "/root/.openclaw/workspace/talent-review-system/docs/roadmap/ALGORITHM_SCHEMA_REGISTRY_APPLY_PREP.md",
      "/root/.openclaw/workspace/talent-review-system/docs/roadmap/algorithm_schema_registry_apply_prep.json",
      "/root/.openclaw/workspace/talent-review-system/docs/roadmap/ALGORITHM_SCHEMA_REGISTRY_PREVIEW.md",
      "/root/.openclaw/workspace/talent-review-system/docs/roadmap/algorithm_schema_registry_preview.json",
      "/root/.openclaw/workspace/talent-review-system/docs/roadmap/ALGORITHM_CONFIG_ASSET_AUDIT.md",
      "/root/.openclaw/workspace/talent-review-system/docs/roadmap/algorithm_config_asset_audit.json",
      "/var/www/talent-review/outputs/algorithm_config_center_summary_v1.json",
      "/var/www/talent-review/outputs/assessment_template_schema_registry_v1.json"
    ],
    "stage": "P0_ALGORITHM_SCHEMA_REGISTRY",
    "purpose": "只读算法配置统一 schema registry，用于后续权限策略、硬编码治理、影响预览和 shadow validation。",
    "warning": "不写数据库，不执行算法，不修改 active 算法，不生成 business-effective 结论。",
    "writes_database": false,
    "executes_algorithm": false,
    "modifies_active_algorithm": false,
    "modifies_assessment_results": false,
    "modifies_profile_or_cadre": false,
    "generates_business_effective_conclusion": false,
    "modifies_org_capability_score": false,
    "modifies_people_action": false,
    "expands_permission": false,
    "feishu_writeback_required": false,
    "schema_migration_required": false
  },
  "schema_summary": {
    "schema_object_count": 12,
    "supported_algorithm_type_count": 10,
    "migration_strategy": "P0_json_registry_only",
    "registry_phase": "Phase_0_algorithm_schema_registry",
    "assessment_template_schema_registry_available": true,
    "assessment_template_schema_registry_path": "/outputs/assessment_template_schema_registry_v1.json",
    "algorithm_config_center_summary_path": "/outputs/algorithm_config_center_summary_v1.json"
  },
  "schema_objects": [
    {
      "object_id": "ALG_SCHEMA_01",
      "object_name": "algorithm_config_base",
      "purpose": "算法主对象，统一描述算法类型、版本、状态、owner、风险级别、审计和回滚引用。",
      "key_fields": [
        "algorithm_id",
        "algorithm_name",
        "algorithm_type",
        "algorithm_version",
        "status",
        "applicable_scenario",
        "owner_role",
        "owner_department",
        "effective_from",
        "effective_to",
        "risk_level",
        "source_system",
        "created_by",
        "updated_by",
        "reviewed_by",
        "approved_by",
        "applied_by",
        "audit_id",
        "rollback_ref"
      ],
      "required_fields": [
        "algorithm_id",
        "algorithm_name",
        "algorithm_type",
        "algorithm_version",
        "status",
        "applicable_scenario",
        "owner_role",
        "owner_department"
      ],
      "optional_fields": [
        "effective_from",
        "effective_to",
        "risk_level",
        "source_system",
        "created_by",
        "updated_by",
        "reviewed_by",
        "approved_by",
        "applied_by",
        "audit_id",
        "rollback_ref"
      ],
      "related_current_assets": 118,
      "migration_complexity": "medium",
      "migration_risk": "high",
      "p0_registry_status": "readonly_registry_candidate",
      "p1_database_target": "algorithm_config_bases table or normalized registry-backed table",
      "saas_target": "tenant-scoped versioned algorithm config object with inheritance, override, audit and API/Webhook support",
      "depends_on": [],
      "maps_to_assessment_template_registry": false,
      "maps_to_permission_policy_future": false
    },
    {
      "object_id": "ALG_SCHEMA_02",
      "object_name": "algorithm_weight_config",
      "purpose": "配置化治理最终分、能力、潜力、绩效、价值观、组织能力和测评结果输入权重。",
      "key_fields": [
        "weight_config_id",
        "algorithm_id",
        "final_score_weights",
        "capability_score_weights",
        "potential_score_weights",
        "performance_score_weights",
        "values_score_weights",
        "key_person_calibration_weights",
        "organization_capability_weights",
        "evaluator_weight_mapping",
        "assessment_result_weight_mapping",
        "version",
        "status",
        "effective_scope"
      ],
      "required_fields": [
        "weight_config_id",
        "algorithm_id",
        "final_score_weights",
        "capability_score_weights",
        "potential_score_weights",
        "performance_score_weights",
        "values_score_weights",
        "key_person_calibration_weights"
      ],
      "optional_fields": [
        "organization_capability_weights",
        "evaluator_weight_mapping",
        "assessment_result_weight_mapping",
        "version",
        "status",
        "effective_scope"
      ],
      "related_current_assets": 912,
      "migration_complexity": "high",
      "migration_risk": "high",
      "p0_registry_status": "readonly_registry_candidate",
      "p1_database_target": "algorithm_weight_configs table or normalized registry-backed table",
      "saas_target": "tenant-scoped versioned algorithm config object with inheritance, override, audit and API/Webhook support",
      "depends_on": [
        "algorithm_config_base"
      ],
      "maps_to_assessment_template_registry": true,
      "maps_to_permission_policy_future": false
    },
    {
      "object_id": "ALG_SCHEMA_03",
      "object_name": "algorithm_threshold_config",
      "purpose": "配置化治理九宫格、最终分、风险线、晋升准备度、淘汰风险和组织能力风险阈值。",
      "key_fields": [
        "threshold_config_id",
        "algorithm_id",
        "nine_box_thresholds",
        "final_score_thresholds",
        "risk_rule_thresholds",
        "low_score_thresholds",
        "high_potential_thresholds",
        "promotion_readiness_thresholds",
        "elimination_risk_thresholds",
        "org_capability_risk_thresholds",
        "version",
        "status"
      ],
      "required_fields": [
        "threshold_config_id",
        "algorithm_id",
        "nine_box_thresholds",
        "final_score_thresholds",
        "risk_rule_thresholds",
        "low_score_thresholds",
        "high_potential_thresholds",
        "promotion_readiness_thresholds"
      ],
      "optional_fields": [
        "elimination_risk_thresholds",
        "org_capability_risk_thresholds",
        "version",
        "status"
      ],
      "related_current_assets": 82,
      "migration_complexity": "high",
      "migration_risk": "high",
      "p0_registry_status": "readonly_registry_candidate",
      "p1_database_target": "algorithm_threshold_configs table or normalized registry-backed table",
      "saas_target": "tenant-scoped versioned algorithm config object with inheritance, override, audit and API/Webhook support",
      "depends_on": [
        "algorithm_config_base"
      ],
      "maps_to_assessment_template_registry": true,
      "maps_to_permission_policy_future": false
    },
    {
      "object_id": "ALG_SCHEMA_04",
      "object_name": "nine_box_config",
      "purpose": "配置绩效轴、潜力轴、轴来源、阈值矩阵、标签和推荐动作。",
      "key_fields": [
        "nine_box_config_id",
        "algorithm_id",
        "performance_axis",
        "potential_axis",
        "axis_source",
        "threshold_matrix",
        "label_mapping",
        "recommended_action_mapping",
        "high_risk_cells",
        "critical_talent_cells",
        "version",
        "status"
      ],
      "required_fields": [
        "nine_box_config_id",
        "algorithm_id",
        "performance_axis",
        "potential_axis",
        "axis_source",
        "threshold_matrix",
        "label_mapping",
        "recommended_action_mapping"
      ],
      "optional_fields": [
        "high_risk_cells",
        "critical_talent_cells",
        "version",
        "status"
      ],
      "related_current_assets": 325,
      "migration_complexity": "high",
      "migration_risk": "high",
      "p0_registry_status": "readonly_registry_candidate",
      "p1_database_target": "nine_box_configs table or normalized registry-backed table",
      "saas_target": "tenant-scoped versioned algorithm config object with inheritance, override, audit and API/Webhook support",
      "depends_on": [
        "algorithm_config_base"
      ],
      "maps_to_assessment_template_registry": false,
      "maps_to_permission_policy_future": false
    },
    {
      "object_id": "ALG_SCHEMA_05",
      "object_name": "one_vote_veto_config",
      "purpose": "配置价值观、合规、文化、诚信等否决逻辑及干部池/人事动作/组织画布阻断。",
      "key_fields": [
        "veto_config_id",
        "algorithm_id",
        "veto_type",
        "values_veto",
        "compliance_veto",
        "culture_veto",
        "integrity_veto",
        "people_action_blocking",
        "cadre_pool_blocking",
        "org_canvas_constraint",
        "required_approval",
        "version",
        "status"
      ],
      "required_fields": [
        "veto_config_id",
        "algorithm_id",
        "veto_type",
        "values_veto",
        "compliance_veto",
        "culture_veto",
        "integrity_veto",
        "people_action_blocking"
      ],
      "optional_fields": [
        "cadre_pool_blocking",
        "org_canvas_constraint",
        "required_approval",
        "version",
        "status"
      ],
      "related_current_assets": 206,
      "migration_complexity": "high",
      "migration_risk": "critical",
      "p0_registry_status": "readonly_registry_candidate",
      "p1_database_target": "one_vote_veto_configs table or normalized registry-backed table",
      "saas_target": "tenant-scoped versioned algorithm config object with inheritance, override, audit and API/Webhook support",
      "depends_on": [
        "algorithm_config_base"
      ],
      "maps_to_assessment_template_registry": true,
      "maps_to_permission_policy_future": true
    },
    {
      "object_id": "ALG_SCHEMA_06",
      "object_name": "talent_tag_rule_config",
      "purpose": "配置高潜、关键人才、继任、晋升准备、保留风险等人才标签。",
      "key_fields": [
        "tag_rule_id",
        "algorithm_id",
        "tag_type",
        "trigger_condition",
        "threshold",
        "source_inputs",
        "high_potential",
        "key_talent",
        "successor_candidate",
        "promotion_ready",
        "retention_risk",
        "critical_role_ready",
        "development_required",
        "version",
        "status"
      ],
      "required_fields": [
        "tag_rule_id",
        "algorithm_id",
        "tag_type",
        "trigger_condition",
        "threshold",
        "source_inputs",
        "high_potential",
        "key_talent"
      ],
      "optional_fields": [
        "successor_candidate",
        "promotion_ready",
        "retention_risk",
        "critical_role_ready",
        "development_required",
        "version",
        "status"
      ],
      "related_current_assets": 178,
      "migration_complexity": "high",
      "migration_risk": "high",
      "p0_registry_status": "readonly_registry_candidate",
      "p1_database_target": "talent_tag_rule_configs table or normalized registry-backed table",
      "saas_target": "tenant-scoped versioned algorithm config object with inheritance, override, audit and API/Webhook support",
      "depends_on": [
        "algorithm_config_base"
      ],
      "maps_to_assessment_template_registry": false,
      "maps_to_permission_policy_future": false
    },
    {
      "object_id": "ALG_SCHEMA_07",
      "object_name": "risk_tag_rule_config",
      "purpose": "配置价值观风险、低绩效、能力缺口、组织能力风险和异常模式等风险标签。",
      "key_fields": [
        "risk_tag_rule_id",
        "algorithm_id",
        "risk_type",
        "trigger_condition",
        "severity",
        "values_risk",
        "low_performance_risk",
        "low_potential_risk",
        "capability_gap",
        "manager_effectiveness_risk",
        "org_capability_risk",
        "culture_health_risk",
        "inconsistent_rating",
        "expired_result",
        "abnormal_pattern",
        "version",
        "status"
      ],
      "required_fields": [
        "risk_tag_rule_id",
        "algorithm_id",
        "risk_type",
        "trigger_condition",
        "severity",
        "values_risk",
        "low_performance_risk",
        "low_potential_risk"
      ],
      "optional_fields": [
        "capability_gap",
        "manager_effectiveness_risk",
        "org_capability_risk",
        "culture_health_risk",
        "inconsistent_rating",
        "expired_result",
        "abnormal_pattern",
        "version",
        "status"
      ],
      "related_current_assets": 122,
      "migration_complexity": "high",
      "migration_risk": "high",
      "p0_registry_status": "readonly_registry_candidate",
      "p1_database_target": "risk_tag_rule_configs table or normalized registry-backed table",
      "saas_target": "tenant-scoped versioned algorithm config object with inheritance, override, audit and API/Webhook support",
      "depends_on": [
        "algorithm_config_base"
      ],
      "maps_to_assessment_template_registry": true,
      "maps_to_permission_policy_future": false
    },
    {
      "object_id": "ALG_SCHEMA_08",
      "object_name": "recommended_action_rule_config",
      "purpose": "配置晋升、发展、保留、轮岗、培训、降级、淘汰、复测等推荐动作。",
      "key_fields": [
        "action_rule_id",
        "algorithm_id",
        "action_type",
        "trigger_condition",
        "recommendation_text",
        "promote",
        "develop",
        "retain",
        "rotate",
        "transfer",
        "observe",
        "coach",
        "train",
        "certify",
        "demote",
        "eliminate",
        "require_reassessment",
        "version",
        "status"
      ],
      "required_fields": [
        "action_rule_id",
        "algorithm_id",
        "action_type",
        "trigger_condition",
        "recommendation_text",
        "promote",
        "develop",
        "retain"
      ],
      "optional_fields": [
        "rotate",
        "transfer",
        "observe",
        "coach",
        "train",
        "certify",
        "demote",
        "eliminate",
        "require_reassessment",
        "version",
        "status"
      ],
      "related_current_assets": 479,
      "migration_complexity": "high",
      "migration_risk": "high",
      "p0_registry_status": "readonly_registry_candidate",
      "p1_database_target": "recommended_action_rule_configs table or normalized registry-backed table",
      "saas_target": "tenant-scoped versioned algorithm config object with inheritance, override, audit and API/Webhook support",
      "depends_on": [
        "algorithm_config_base"
      ],
      "maps_to_assessment_template_registry": false,
      "maps_to_permission_policy_future": false
    },
    {
      "object_id": "ALG_SCHEMA_09",
      "object_name": "result_mapping_config",
      "purpose": "配置测评结果到算法输入、算法输出到画像、干部、组织能力、人事动作、权限信号和外部系统的映射。",
      "key_fields": [
        "mapping_id",
        "algorithm_id",
        "assessment_result_to_algorithm_input",
        "algorithm_output_to_profile",
        "algorithm_output_to_cadre_validation",
        "algorithm_output_to_org_capability",
        "algorithm_output_to_people_action_constraint",
        "algorithm_output_to_permission_signal",
        "algorithm_output_to_external_mapping",
        "mapping_version",
        "status"
      ],
      "required_fields": [
        "mapping_id",
        "algorithm_id",
        "assessment_result_to_algorithm_input",
        "algorithm_output_to_profile",
        "algorithm_output_to_cadre_validation",
        "algorithm_output_to_org_capability",
        "algorithm_output_to_people_action_constraint",
        "algorithm_output_to_permission_signal"
      ],
      "optional_fields": [
        "algorithm_output_to_external_mapping",
        "mapping_version",
        "status"
      ],
      "related_current_assets": 49,
      "migration_complexity": "high",
      "migration_risk": "critical",
      "p0_registry_status": "readonly_registry_candidate",
      "p1_database_target": "result_mapping_configs table or normalized registry-backed table",
      "saas_target": "tenant-scoped versioned algorithm config object with inheritance, override, audit and API/Webhook support",
      "depends_on": [
        "algorithm_config_base"
      ],
      "maps_to_assessment_template_registry": true,
      "maps_to_permission_policy_future": true
    },
    {
      "object_id": "ALG_SCHEMA_10",
      "object_name": "algorithm_lifecycle",
      "purpose": "配置 Draft/Preview/Review/Approve/Apply/Effective/Deprecated/Audit/Rollback 生命周期。",
      "key_fields": [
        "lifecycle_id",
        "algorithm_id",
        "state",
        "previous_state",
        "next_state",
        "allowed_operator_role",
        "requires_approval",
        "writes_database",
        "executes_algorithm",
        "business_effective",
        "audit_required",
        "rollback_allowed"
      ],
      "required_fields": [
        "lifecycle_id",
        "algorithm_id",
        "state",
        "previous_state",
        "next_state",
        "allowed_operator_role",
        "requires_approval",
        "writes_database"
      ],
      "optional_fields": [
        "executes_algorithm",
        "business_effective",
        "audit_required",
        "rollback_allowed"
      ],
      "related_current_assets": 2647,
      "migration_complexity": "medium",
      "migration_risk": "high",
      "p0_registry_status": "readonly_registry_candidate",
      "p1_database_target": "algorithm_lifecycles table or normalized registry-backed table",
      "saas_target": "tenant-scoped versioned algorithm config object with inheritance, override, audit and API/Webhook support",
      "depends_on": [
        "algorithm_config_base"
      ],
      "maps_to_assessment_template_registry": false,
      "maps_to_permission_policy_future": true
    },
    {
      "object_id": "ALG_SCHEMA_11",
      "object_name": "algorithm_permission_policy",
      "purpose": "配置算法页面、数据范围、敏感字段、critical 规则、动作和审批权限。",
      "key_fields": [
        "permission_policy_id",
        "algorithm_id",
        "who_can_view",
        "who_can_create",
        "who_can_edit",
        "who_can_submit_review",
        "who_can_approve",
        "who_can_apply",
        "who_can_rollback",
        "sensitive_field_visibility",
        "critical_rule_visibility",
        "data_scope_rules",
        "action_rules"
      ],
      "required_fields": [
        "permission_policy_id",
        "algorithm_id",
        "who_can_view",
        "who_can_create",
        "who_can_edit",
        "who_can_submit_review",
        "who_can_approve",
        "who_can_apply"
      ],
      "optional_fields": [
        "who_can_rollback",
        "sensitive_field_visibility",
        "critical_rule_visibility",
        "data_scope_rules",
        "action_rules"
      ],
      "related_current_assets": 1318,
      "migration_complexity": "medium",
      "migration_risk": "critical",
      "p0_registry_status": "readonly_registry_candidate",
      "p1_database_target": "algorithm_permission_policys table or normalized registry-backed table",
      "saas_target": "tenant-scoped versioned algorithm config object with inheritance, override, audit and API/Webhook support",
      "depends_on": [
        "algorithm_config_base"
      ],
      "maps_to_assessment_template_registry": false,
      "maps_to_permission_policy_future": true
    },
    {
      "object_id": "ALG_SCHEMA_12",
      "object_name": "algorithm_audit_version",
      "purpose": "配置算法版本、差异摘要、变更原因、审批、生效时间和回滚点。",
      "key_fields": [
        "version_id",
        "algorithm_id",
        "version",
        "diff_summary",
        "changed_by",
        "change_reason",
        "reviewed_by",
        "approved_by",
        "applied_by",
        "effective_from",
        "effective_to",
        "audit_id",
        "rollback_ref"
      ],
      "required_fields": [
        "version_id",
        "algorithm_id",
        "version",
        "diff_summary",
        "changed_by",
        "change_reason",
        "reviewed_by",
        "approved_by"
      ],
      "optional_fields": [
        "applied_by",
        "effective_from",
        "effective_to",
        "audit_id",
        "rollback_ref"
      ],
      "related_current_assets": 1063,
      "migration_complexity": "medium",
      "migration_risk": "high",
      "p0_registry_status": "readonly_registry_candidate",
      "p1_database_target": "algorithm_audit_versions table or normalized registry-backed table",
      "saas_target": "tenant-scoped versioned algorithm config object with inheritance, override, audit and API/Webhook support",
      "depends_on": [
        "algorithm_config_base"
      ],
      "maps_to_assessment_template_registry": false,
      "maps_to_permission_policy_future": false
    }
  ],
  "supported_algorithm_types": [
    {
      "algorithm_type": "talent_review_scoring",
      "purpose": "计算 Talent Review 综合判断输入。",
      "input_sources": [
        "assessment_template_result_mapping",
        "algorithm_config_objects",
        "talent_review_context"
      ],
      "output_targets": [
        "talent_review_os",
        "employee_profile",
        "cadre_archive",
        "org_capability_diagnosis",
        "org_canvas_people_action",
        "permission_center"
      ],
      "high_risk_default": false,
      "typical_config_objects": [
        "talent_tag_rule_config"
      ],
      "related_centers": [
        "assessment_template_config_center",
        "algorithm_config_center",
        "config_governance_center"
      ]
    },
    {
      "algorithm_type": "nine_box_placement",
      "purpose": "生成九宫格位置与格子标签。",
      "input_sources": [
        "assessment_template_result_mapping",
        "algorithm_config_objects",
        "talent_review_context"
      ],
      "output_targets": [
        "talent_review_os",
        "employee_profile",
        "cadre_archive",
        "org_capability_diagnosis",
        "org_canvas_people_action",
        "permission_center"
      ],
      "high_risk_default": false,
      "typical_config_objects": [
        "nine_box_config"
      ],
      "related_centers": [
        "assessment_template_config_center",
        "algorithm_config_center",
        "config_governance_center"
      ]
    },
    {
      "algorithm_type": "one_vote_veto",
      "purpose": "生成一票否决与红线阻断信号。",
      "input_sources": [
        "assessment_template_result_mapping",
        "algorithm_config_objects",
        "talent_review_context"
      ],
      "output_targets": [
        "talent_review_os",
        "employee_profile",
        "cadre_archive",
        "org_capability_diagnosis",
        "org_canvas_people_action",
        "permission_center"
      ],
      "high_risk_default": true,
      "typical_config_objects": [
        "one_vote_veto_config"
      ],
      "related_centers": [
        "assessment_template_config_center",
        "algorithm_config_center",
        "config_governance_center"
      ]
    },
    {
      "algorithm_type": "talent_tagging",
      "purpose": "生成人才标签。",
      "input_sources": [
        "assessment_template_result_mapping",
        "algorithm_config_objects",
        "talent_review_context"
      ],
      "output_targets": [
        "talent_review_os",
        "employee_profile",
        "cadre_archive",
        "org_capability_diagnosis",
        "org_canvas_people_action",
        "permission_center"
      ],
      "high_risk_default": false,
      "typical_config_objects": [
        "talent_tag_rule_config"
      ],
      "related_centers": [
        "assessment_template_config_center",
        "algorithm_config_center",
        "config_governance_center"
      ]
    },
    {
      "algorithm_type": "risk_tagging",
      "purpose": "生成风险标签。",
      "input_sources": [
        "assessment_template_result_mapping",
        "algorithm_config_objects",
        "talent_review_context"
      ],
      "output_targets": [
        "talent_review_os",
        "employee_profile",
        "cadre_archive",
        "org_capability_diagnosis",
        "org_canvas_people_action",
        "permission_center"
      ],
      "high_risk_default": false,
      "typical_config_objects": [
        "risk_tag_rule_config"
      ],
      "related_centers": [
        "assessment_template_config_center",
        "algorithm_config_center",
        "config_governance_center"
      ]
    },
    {
      "algorithm_type": "recommended_action",
      "purpose": "生成推荐动作。",
      "input_sources": [
        "assessment_template_result_mapping",
        "algorithm_config_objects",
        "talent_review_context"
      ],
      "output_targets": [
        "talent_review_os",
        "employee_profile",
        "cadre_archive",
        "org_capability_diagnosis",
        "org_canvas_people_action",
        "permission_center"
      ],
      "high_risk_default": false,
      "typical_config_objects": [
        "recommended_action_rule_config"
      ],
      "related_centers": [
        "assessment_template_config_center",
        "algorithm_config_center",
        "config_governance_center"
      ]
    },
    {
      "algorithm_type": "cadre_validation_mapping",
      "purpose": "映射干部 validation 输入与边界。",
      "input_sources": [
        "assessment_template_result_mapping",
        "algorithm_config_objects",
        "talent_review_context"
      ],
      "output_targets": [
        "talent_review_os",
        "employee_profile",
        "cadre_archive",
        "org_capability_diagnosis",
        "org_canvas_people_action",
        "permission_center"
      ],
      "high_risk_default": true,
      "typical_config_objects": [
        "algorithm_config_base",
        "result_mapping_config"
      ],
      "related_centers": [
        "assessment_template_config_center",
        "algorithm_config_center",
        "config_governance_center"
      ]
    },
    {
      "algorithm_type": "organization_capability_scoring",
      "purpose": "生成组织能力评分和风险。",
      "input_sources": [
        "assessment_template_result_mapping",
        "algorithm_config_objects",
        "talent_review_context"
      ],
      "output_targets": [
        "talent_review_os",
        "employee_profile",
        "cadre_archive",
        "org_capability_diagnosis",
        "org_canvas_people_action",
        "permission_center"
      ],
      "high_risk_default": true,
      "typical_config_objects": [
        "algorithm_config_base",
        "result_mapping_config"
      ],
      "related_centers": [
        "assessment_template_config_center",
        "algorithm_config_center",
        "config_governance_center"
      ]
    },
    {
      "algorithm_type": "people_action_constraint",
      "purpose": "生成人事动作约束信号。",
      "input_sources": [
        "assessment_template_result_mapping",
        "algorithm_config_objects",
        "talent_review_context"
      ],
      "output_targets": [
        "talent_review_os",
        "employee_profile",
        "cadre_archive",
        "org_capability_diagnosis",
        "org_canvas_people_action",
        "permission_center"
      ],
      "high_risk_default": true,
      "typical_config_objects": [
        "algorithm_config_base",
        "result_mapping_config"
      ],
      "related_centers": [
        "assessment_template_config_center",
        "algorithm_config_center",
        "config_governance_center"
      ]
    },
    {
      "algorithm_type": "permission_signal_mapping",
      "purpose": "生成权限可见性或字段信号。",
      "input_sources": [
        "assessment_template_result_mapping",
        "algorithm_config_objects",
        "talent_review_context"
      ],
      "output_targets": [
        "talent_review_os",
        "employee_profile",
        "cadre_archive",
        "org_capability_diagnosis",
        "org_canvas_people_action",
        "permission_center"
      ],
      "high_risk_default": true,
      "typical_config_objects": [
        "algorithm_permission_policy"
      ],
      "related_centers": [
        "assessment_template_config_center",
        "algorithm_config_center",
        "config_governance_center"
      ]
    }
  ],
  "p0_p1_saas_schema_layers": {
    "p0_logical_schema_items": [
      "algorithm_config_base",
      "algorithm_weight_config",
      "algorithm_threshold_config",
      "nine_box_config",
      "one_vote_veto_config",
      "talent_tag_rule_config",
      "risk_tag_rule_config",
      "recommended_action_rule_config",
      "result_mapping_config",
      "algorithm_lifecycle",
      "algorithm_permission_policy",
      "algorithm_audit_version"
    ],
    "p1_database_schema_items": [
      "algorithm_config_base table",
      "algorithm_weight_config table",
      "algorithm_threshold_config table",
      "nine_box_config table",
      "one_vote_veto_config table",
      "talent_tag_rule_config table",
      "risk_tag_rule_config table",
      "recommended_action_rule_config table",
      "result_mapping_config table",
      "algorithm_lifecycle table",
      "algorithm_permission_policy table",
      "algorithm_audit_version table"
    ],
    "saas_schema_items": [
      "tenant_id",
      "industry_template_id",
      "inheritance_policy",
      "override_policy",
      "simulation_run",
      "ab_test_group",
      "api_webhook_policy"
    ]
  },
  "asset_migration_mapping": [
    {
      "asset_group": "weight_config_assets",
      "target_schema_object": "algorithm_weight_config",
      "migration_action": "migrate_to_schema_registry",
      "requires_manual_review": true,
      "requires_permission_approval": true,
      "shadow_validation_required": true,
      "recommended_phase": "P0_registry_then_P1_shadow_validation"
    },
    {
      "asset_group": "threshold_config_assets",
      "target_schema_object": "algorithm_threshold_config",
      "migration_action": "migrate_to_schema_registry",
      "requires_manual_review": true,
      "requires_permission_approval": true,
      "shadow_validation_required": true,
      "recommended_phase": "P0_registry_then_P1_shadow_validation"
    },
    {
      "asset_group": "nine_box_assets",
      "target_schema_object": "nine_box_config",
      "migration_action": "migrate_to_schema_registry",
      "requires_manual_review": true,
      "requires_permission_approval": true,
      "shadow_validation_required": true,
      "recommended_phase": "P0_registry_then_P1_shadow_validation"
    },
    {
      "asset_group": "one_vote_veto_assets",
      "target_schema_object": "one_vote_veto_config",
      "migration_action": "high_risk_registry_and_shadow_validation",
      "requires_manual_review": true,
      "requires_permission_approval": true,
      "shadow_validation_required": true,
      "recommended_phase": "P0_registry_then_P1_shadow_validation"
    },
    {
      "asset_group": "talent_tag_assets",
      "target_schema_object": "talent_tag_rule_config",
      "migration_action": "migrate_to_schema_registry",
      "requires_manual_review": true,
      "requires_permission_approval": false,
      "shadow_validation_required": false,
      "recommended_phase": "P0_registry"
    },
    {
      "asset_group": "risk_tag_assets",
      "target_schema_object": "risk_tag_rule_config",
      "migration_action": "migrate_to_schema_registry",
      "requires_manual_review": true,
      "requires_permission_approval": true,
      "shadow_validation_required": true,
      "recommended_phase": "P0_registry_then_P1_shadow_validation"
    },
    {
      "asset_group": "recommended_action_assets",
      "target_schema_object": "recommended_action_rule_config",
      "migration_action": "migrate_to_schema_registry",
      "requires_manual_review": true,
      "requires_permission_approval": true,
      "shadow_validation_required": true,
      "recommended_phase": "P0_registry_then_P1_shadow_validation"
    },
    {
      "asset_group": "result_mapping_assets",
      "target_schema_object": "result_mapping_config",
      "migration_action": "high_risk_registry_and_shadow_validation",
      "requires_manual_review": true,
      "requires_permission_approval": true,
      "shadow_validation_required": true,
      "recommended_phase": "P0_registry_then_P1_shadow_validation"
    },
    {
      "asset_group": "lifecycle___audit_assets",
      "target_schema_object": "algorithm_lifecycle / algorithm_audit_version",
      "migration_action": "migrate_to_governance_schema",
      "requires_manual_review": true,
      "requires_permission_approval": false,
      "shadow_validation_required": false,
      "recommended_phase": "P0_registry"
    },
    {
      "asset_group": "permission_assets",
      "target_schema_object": "algorithm_permission_policy",
      "migration_action": "requires_permission_policy_preview",
      "requires_manual_review": true,
      "requires_permission_approval": true,
      "shadow_validation_required": false,
      "recommended_phase": "P0_permission_preview"
    },
    {
      "asset_group": "engineering_only_assets",
      "target_schema_object": "exclude_from_business_schema",
      "migration_action": "exclude",
      "requires_manual_review": false,
      "requires_permission_approval": false,
      "shadow_validation_required": false,
      "recommended_phase": "keep_as_reference"
    },
    {
      "asset_group": "hardcoded_high_risk_assets",
      "target_schema_object": "target schema by risk type",
      "migration_action": "registry_shadow_validation_manual_review",
      "requires_manual_review": true,
      "requires_permission_approval": true,
      "shadow_validation_required": true,
      "recommended_phase": "P1_shadow_validation_before_any_refactor"
    }
  ],
  "high_risk_hardcoded_governance": {
    "high_critical_hardcoded_risk_asset_count": 333,
    "risk_types": [
      "写死权重",
      "写死阈值",
      "写死九宫格线",
      "写死一票否决",
      "写死标签规则",
      "写死推荐动作",
      "写死组织能力评分规则",
      "写死人事动作约束",
      "写死权限信号",
      "写死外部系统映射",
      "写死 business-effective 判断"
    ],
    "target_schema_objects": [
      "algorithm_lifecycle",
      "algorithm_permission_policy",
      "algorithm_threshold_config",
      "algorithm_weight_config",
      "nine_box_config",
      "one_vote_veto_config",
      "recommended_action_rule_config",
      "result_mapping_config",
      "risk_tag_rule_config",
      "talent_tag_rule_config"
    ],
    "required_controls": [
      "manual_review",
      "permission_approval",
      "shadow_validation",
      "impact_preview",
      "audit",
      "rollback"
    ],
    "recommended_phase": "P0_registry_then_P1_shadow_validation",
    "manual_review_required": true,
    "permission_approval_required": true,
    "shadow_validation_required": true
  },
  "compatibility_rules": {
    "must_not_modify_active_algorithm": true,
    "must_not_execute_algorithm": true,
    "must_not_modify_assessment_results": true,
    "must_not_modify_profile_or_cadre": true,
    "must_not_generate_business_effective_conclusion": true,
    "must_not_modify_org_capability_score": true,
    "must_not_modify_people_action": true,
    "must_not_expand_permission": true,
    "must_not_feishu_writeback": true,
    "must_support_assessment_result_mapping_input": true,
    "must_support_talent_review_os_output": true,
    "must_support_org_capability_diagnosis": true,
    "must_support_org_canvas_people_action_constraints": true
  },
  "registry_relationships": {
    "config_governance_center_usage": "算法配置作为专项配置对象，后续变更必须进入治理生命周期。",
    "assessment_template_config_center_usage": "接收测评模板 result_mapping、维度、风险触发和 subject_type。",
    "talent_review_os_usage": "输出人才标签、九宫格、一票否决、推荐动作和结果解释。",
    "employee_profile_cadre_archive_usage": "输出画像字段和干部 validation 映射，但 registry 不生成正式结论。",
    "org_capability_diagnosis_usage": "输出组织能力评分和组织风险标签的配置对象。",
    "org_canvas_people_action_usage": "输出人事动作约束信号，但 registry 不执行人事动作。",
    "permission_center_usage": "定义 sensitive / critical 算法字段、权限信号和审批边界。"
  },
  "validation_rules": {
    "registry_is_readonly": true,
    "json_load_required": true,
    "object_count_must_be_12": true,
    "algorithm_type_count_must_be_10": true,
    "no_database_write": true,
    "no_algorithm_execution": true,
    "no_active_algorithm_change": true,
    "no_assessment_result_change": true,
    "no_profile_or_cadre_change": true,
    "no_business_effective_conclusion": true,
    "no_org_capability_change": true,
    "no_people_action_change": true,
    "no_permission_expansion": true,
    "no_feishu_writeback": true
  }
}
