{
  "metadata": {
    "generated_at": "2026-05-22T16:57:29.917806+08:00",
    "source_reports": {
      "apply_prep_md": "/root/.openclaw/workspace/talent-review-system/docs/roadmap/ASSESSMENT_TEMPLATE_HARDCODED_RULES_REGISTRY_APPLY_PREP.md",
      "apply_prep_json": "/root/.openclaw/workspace/talent-review-system/docs/roadmap/assessment_template_hardcoded_rules_registry_apply_prep.json",
      "refactor_preview_md": "/root/.openclaw/workspace/talent-review-system/docs/roadmap/ASSESSMENT_TEMPLATE_HARDCODED_RULES_REFACTOR_PREVIEW.md",
      "refactor_preview_json": "/root/.openclaw/workspace/talent-review-system/docs/roadmap/assessment_template_hardcoded_rules_refactor_preview.json",
      "asset_migration_md": "/root/.openclaw/workspace/talent-review-system/docs/roadmap/ASSESSMENT_TEMPLATE_ASSET_MIGRATION_PLAN.md",
      "asset_migration_json": "/root/.openclaw/workspace/talent-review-system/docs/roadmap/assessment_template_asset_migration_plan.json",
      "schema_registry": "/var/www/talent-review/outputs/assessment_template_schema_registry_v1.json",
      "permission_policy_registry": "/var/www/talent-review/outputs/assessment_template_permission_policy_registry_v1.json",
      "assessment_config_summary": "/var/www/talent-review/outputs/assessment_template_config_center_summary_v1.json"
    },
    "stage": "P0_HARDCODED_RULES_REGISTRY",
    "purpose": "沉淀测评模板相关高风险硬编码规则、risk rule 候选、result mapping 候选、目标 schema 映射、重构阶段和红线，用于后续预览、shadow validation、迁移设计和 controlled refactor 参考。",
    "warning": "只读 registry，不接入真实业务执行链路；不得替换硬编码逻辑，不得修改 active 模板，不得发放真实测评任务。",
    "writes_database": false,
    "modifies_code": false,
    "replaces_hardcoded_logic": false,
    "modifies_active_template": false,
    "modifies_results": false,
    "modifies_validation": false,
    "modifies_org_capability_score": false,
    "modifies_people_action_constraint": false,
    "modifies_permission_visibility": false,
    "sends_real_assignment": false,
    "schema_migration_required": false,
    "shadow_validation_required_before_refactor": true
  },
  "registry_summary": {
    "high_risk_hardcoded_asset_count": 95,
    "risk_rule_candidate_count": 1009,
    "result_mapping_candidate_count": 114,
    "hardcoded_type_count": 4,
    "p0_priority_type_count": 7,
    "registry_phase": "Phase_0_hardcoded_inventory",
    "schema_registry_available": true,
    "schema_registry_path": "/outputs/assessment_template_schema_registry_v1.json",
    "permission_policy_registry_available": true,
    "permission_policy_registry_path": "/outputs/assessment_template_permission_policy_registry_v1.json"
  },
  "hardcoded_type_taxonomy": [
    {
      "type_id": "hardcoded_threshold",
      "type_name": "hardcoded_threshold",
      "description": "写死分数阈值、风险线、低分线、高分线",
      "target_schema_object": "assessment_risk_rule",
      "business_risk": "high",
      "p0_priority": true,
      "requires_manual_review": true,
      "requires_permission_approval": false,
      "shadow_validation_required": true,
      "direct_refactor_allowed": false
    },
    {
      "type_id": "hardcoded_weight",
      "type_name": "hardcoded_weight",
      "description": "写死维度权重、评价人权重、算法映射权重",
      "target_schema_object": "assessment_weight_rule",
      "business_risk": "high",
      "p0_priority": true,
      "requires_manual_review": true,
      "requires_permission_approval": false,
      "shadow_validation_required": true,
      "direct_refactor_allowed": false
    },
    {
      "type_id": "hardcoded_result_mapping",
      "type_name": "hardcoded_result_mapping",
      "description": "写死结果进入算法、画像、干部 validation、组织能力、人事动作约束的映射",
      "target_schema_object": "assessment_result_mapping",
      "business_risk": "high",
      "p0_priority": true,
      "requires_manual_review": true,
      "requires_permission_approval": false,
      "shadow_validation_required": true,
      "direct_refactor_allowed": false
    },
    {
      "type_id": "hardcoded_evaluator_relationship",
      "type_name": "hardcoded_evaluator_relationship",
      "description": "写死自评、上级、同事、下级、HR、HRBP、Boss、外部评价人的关系",
      "target_schema_object": "assessment_evaluator_relationship",
      "business_risk": "medium",
      "p0_priority": false,
      "requires_manual_review": true,
      "requires_permission_approval": false,
      "shadow_validation_required": true,
      "direct_refactor_allowed": false
    },
    {
      "type_id": "hardcoded_template_type",
      "type_name": "hardcoded_template_type",
      "description": "写死模板类型、测评场景、适用周期",
      "target_schema_object": "assessment_template",
      "business_risk": "medium",
      "p0_priority": false,
      "requires_manual_review": true,
      "requires_permission_approval": false,
      "shadow_validation_required": true,
      "direct_refactor_allowed": false
    },
    {
      "type_id": "hardcoded_one_vote_veto",
      "type_name": "hardcoded_one_vote_veto",
      "description": "写死一票否决规则、价值观否决、红线触发",
      "target_schema_object": "assessment_risk_rule",
      "business_risk": "high",
      "p0_priority": true,
      "requires_manual_review": true,
      "requires_permission_approval": true,
      "shadow_validation_required": true,
      "direct_refactor_allowed": false
    },
    {
      "type_id": "hardcoded_risk_tag",
      "type_name": "hardcoded_risk_tag",
      "description": "写死风险标签、高潜标签、关键人才标签、淘汰风险",
      "target_schema_object": "assessment_risk_rule",
      "business_risk": "high",
      "p0_priority": true,
      "requires_manual_review": true,
      "requires_permission_approval": false,
      "shadow_validation_required": true,
      "direct_refactor_allowed": false
    },
    {
      "type_id": "hardcoded_org_capability_mapping",
      "type_name": "hardcoded_org_capability_mapping",
      "description": "写死组织能力评分、组织健康度维度、组织风险",
      "target_schema_object": "assessment_result_mapping",
      "business_risk": "high",
      "p0_priority": true,
      "requires_manual_review": true,
      "requires_permission_approval": false,
      "shadow_validation_required": true,
      "direct_refactor_allowed": false
    },
    {
      "type_id": "hardcoded_people_action_constraint",
      "type_name": "hardcoded_people_action_constraint",
      "description": "写死人事动作限制，例如晋升、调岗、转正、淘汰限制",
      "target_schema_object": "assessment_result_mapping",
      "business_risk": "high",
      "p0_priority": true,
      "requires_manual_review": true,
      "requires_permission_approval": true,
      "shadow_validation_required": true,
      "direct_refactor_allowed": false
    },
    {
      "type_id": "hardcoded_permission_signal",
      "type_name": "hardcoded_permission_signal",
      "description": "写死权限信号、字段可见性、角色可见性或 reviewer scope",
      "target_schema_object": "assessment_permission_policy",
      "business_risk": "high",
      "p0_priority": true,
      "requires_manual_review": true,
      "requires_permission_approval": true,
      "shadow_validation_required": true,
      "direct_refactor_allowed": false
    },
    {
      "type_id": "hardcoded_external_mapping",
      "type_name": "hardcoded_external_mapping",
      "description": "写死飞书 / 外部系统字段映射",
      "target_schema_object": "assessment_result_mapping",
      "business_risk": "medium",
      "p0_priority": false,
      "requires_manual_review": true,
      "requires_permission_approval": true,
      "shadow_validation_required": true,
      "direct_refactor_allowed": false
    }
  ],
  "p0_priority_rules": [
    {
      "type_id": "one_vote_veto",
      "priority_rank": 1,
      "target_schema_object": "assessment_risk_rule",
      "why_priority": "直接影响价值观红线、干部判断和人事动作禁入，必须先进入只读 registry。",
      "affected_centers": [
        "Talent Review OS",
        "干部档案",
        "组织画布",
        "人事动作"
      ],
      "manual_review_required": true,
      "permission_approval_required": true,
      "recommended_phase": "P0_registry"
    },
    {
      "type_id": "result_mapping",
      "priority_rank": 2,
      "target_schema_object": "assessment_result_mapping",
      "why_priority": "决定结果如何进入算法、画像、干部 validation、组织能力评分和动作约束。",
      "affected_centers": [
        "算法配置",
        "员工画像",
        "干部档案",
        "组织能力诊断"
      ],
      "manual_review_required": true,
      "permission_approval_required": false,
      "recommended_phase": "P0_registry"
    },
    {
      "type_id": "risk_threshold",
      "priority_rank": 3,
      "target_schema_object": "assessment_risk_rule",
      "why_priority": "阈值写死会导致风险判断不可审计、不可回滚。",
      "affected_centers": [
        "测评模板配置",
        "Talent Review OS"
      ],
      "manual_review_required": true,
      "permission_approval_required": false,
      "recommended_phase": "P0_registry"
    },
    {
      "type_id": "weight_rule",
      "priority_rank": 4,
      "target_schema_object": "assessment_weight_rule",
      "why_priority": "权重影响综合分、九宫格和标签结果，需要版本化与审批。",
      "affected_centers": [
        "算法配置",
        "Talent Review OS"
      ],
      "manual_review_required": true,
      "permission_approval_required": false,
      "recommended_phase": "P0_registry"
    },
    {
      "type_id": "people_action_constraint",
      "priority_rank": 5,
      "target_schema_object": "assessment_result_mapping",
      "why_priority": "影响晋升、调岗、转正、淘汰等动作，需强审计。",
      "affected_centers": [
        "组织画布",
        "人事动作"
      ],
      "manual_review_required": true,
      "permission_approval_required": true,
      "recommended_phase": "P0_registry"
    },
    {
      "type_id": "org_capability_mapping",
      "priority_rank": 6,
      "target_schema_object": "assessment_result_mapping",
      "why_priority": "影响组织能力评分和组织健康度热力图，需单独治理。",
      "affected_centers": [
        "组织能力诊断",
        "组织画布"
      ],
      "manual_review_required": true,
      "permission_approval_required": false,
      "recommended_phase": "P0_registry"
    },
    {
      "type_id": "permission_signal",
      "priority_rank": 7,
      "target_schema_object": "assessment_permission_policy",
      "why_priority": "影响字段可见性、角色范围和 reviewer scope，必须防止权限扩张。",
      "affected_centers": [
        "权限中心",
        "审计中心"
      ],
      "manual_review_required": true,
      "permission_approval_required": true,
      "recommended_phase": "P0_registry"
    }
  ],
  "target_schema_mapping": [
    {
      "target_schema_object": "assessment_risk_rule",
      "accepts_hardcoded_types": [
        "hardcoded_threshold",
        "hardcoded_one_vote_veto",
        "hardcoded_risk_tag"
      ],
      "migration_risk": "very_high",
      "shadow_validation_method": "同一批历史结果同时跑原逻辑与 registry 规则，比较风险标签、一票否决和推荐动作差异。",
      "rollback_requirement": "替换前必须保留原规则路径和版本指针，异常时回退原逻辑。",
      "audit_requirement": "任何启用都需要 HR 负责人复核、Boss/高管审批和审计记录。"
    },
    {
      "target_schema_object": "assessment_result_mapping",
      "accepts_hardcoded_types": [
        "hardcoded_result_mapping",
        "hardcoded_org_capability_mapping",
        "hardcoded_people_action_constraint",
        "hardcoded_external_mapping"
      ],
      "migration_risk": "high",
      "shadow_validation_method": "对算法输入、画像字段、干部 validation、组织能力评分、人事动作约束做映射差异检查。",
      "rollback_requirement": "保留旧 mapping 输出和新 registry 输出的双轨日志。",
      "audit_requirement": "影响人事动作、组织画布或外部系统时必须审批。"
    },
    {
      "target_schema_object": "assessment_weight_rule",
      "accepts_hardcoded_types": [
        "hardcoded_weight"
      ],
      "migration_risk": "high",
      "shadow_validation_method": "比较原综合分、维度分、九宫格位置和算法标签差异。",
      "rollback_requirement": "权重 registry 必须版本化并可恢复旧权重。",
      "audit_requirement": "权重变更必须记录差异、原因和审批人。"
    },
    {
      "target_schema_object": "assessment_evaluator_relationship",
      "accepts_hardcoded_types": [
        "hardcoded_evaluator_relationship"
      ],
      "migration_risk": "medium",
      "shadow_validation_method": "校验评价人范围、匿名性、最小评价人数和 fallback 规则。",
      "rollback_requirement": "保留原 reviewer scope 规则。",
      "audit_requirement": "评价关系影响数据范围时进入权限审计。"
    },
    {
      "target_schema_object": "assessment_template",
      "accepts_hardcoded_types": [
        "hardcoded_template_type"
      ],
      "migration_risk": "medium",
      "shadow_validation_method": "校验模板类型、场景、周期和适用阶段不改变现有任务。",
      "rollback_requirement": "registry 不直接覆盖 active template。",
      "audit_requirement": "模板类型变更只在 preview 阶段登记。"
    },
    {
      "target_schema_object": "assessment_applicable_scope",
      "accepts_hardcoded_types": [
        "hardcoded_template_type",
        "hardcoded_evaluator_relationship"
      ],
      "migration_risk": "medium",
      "shadow_validation_method": "校验部门、岗位、职级、角色、人群范围差异。",
      "rollback_requirement": "不得影响现有 assignments。",
      "audit_requirement": "范围变化必须做影响预览。"
    },
    {
      "target_schema_object": "assessment_permission_policy",
      "accepts_hardcoded_types": [
        "hardcoded_permission_signal"
      ],
      "migration_risk": "very_high",
      "shadow_validation_method": "权限模拟器比较新旧字段可见性、动作权限、数据范围和 reviewer scope。",
      "rollback_requirement": "不得扩大权限；任何 apply 另开 gate。",
      "audit_requirement": "高危权限双人控制、审计和可回滚。"
    },
    {
      "target_schema_object": "assessment_audit_version",
      "accepts_hardcoded_types": [
        "all_high_risk_hardcoded_types"
      ],
      "migration_risk": "high",
      "shadow_validation_method": "每次 registry 抽取记录 diff、来源、理由、审批状态和回滚引用。",
      "rollback_requirement": "每个条目必须有 rollback_ref 或 legacy_ref。",
      "audit_requirement": "作为后续受控重构的审计证据。"
    }
  ],
  "risk_rule_candidate_groups": {
    "candidate_total": 1009,
    "by_source_file_top": [
      [
        "/root/.openclaw/workspace/talent-review-system/backend/routers/feishu_browser_oauth_fallback.py",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/backend/routers/algorithm_inputs.py",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/backend/routers/assessments.py",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/backend/services/db_store.py",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/backend/services/navigation_menu_service.py",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/backend/services/algorithm_run_service.py",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/backend/services/assessment_service.py",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/backend/services/algorithm_input_service.py",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/samples/sample_employee_input_template.csv",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/samples/sample_batch_template_official.csv",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/rubric/rubric_v1.yaml",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/project_memory/HRMS_NEXT_EXECUTION_PLAN_2026-05-14.md",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/project_memory/HRMS_PROJECT_BASELINE_2026-05-14.md",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/project_memory/HRMS_CURRENT_PROGRESS_2026-05-14.md",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/project_memory/HRMS_BLUEPRINT_MODULE_MAP_2026-05-14.md",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/roadmap/hrms_org_change_apply_visibility_sop_v1.json",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/roadmap/hrms_assessment_normalized_business_run_apply_retry_sop_v1.json",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/roadmap/hrms_org_canvas_drag_drop_post_apply_review_v1.json",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/roadmap/hrms_global_capability_inventory_and_engineering_roadmap_v2.md",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/roadmap/hrms_assessment_normalized_business_run_apply_retry_sop_v1.md",
        1
      ]
    ],
    "by_target_schema_object": {
      "risk_rules": 1009
    },
    "by_business_domain": {
      "Talent Review OS": 336,
      "员工画像 / 干部档案": 252,
      "组织能力诊断": 201,
      "组织画布 / 人事动作": 220
    },
    "by_migration_priority": {
      "P0": 1009
    },
    "by_hardcoded_risk": {
      "high": 58,
      "low": 586,
      "medium": 365
    },
    "by_requires_manual_review": {
      "manual_review_required": 1009
    },
    "top_categories": [
      "risk_threshold",
      "one_vote_veto",
      "values_risk",
      "low_score_dimension",
      "abnormal_pattern",
      "recommended_action"
    ],
    "p0_candidate_groups": [
      "one_vote_veto",
      "risk_threshold",
      "values_risk",
      "people_action_constraint"
    ],
    "manual_review_groups": [
      "one_vote_veto",
      "cadre_validation",
      "people_action_constraint",
      "permission_signal"
    ],
    "exclude_groups": [
      "Gate",
      "Preview",
      "Result",
      "Readiness",
      "Regression",
      "Diagnostic"
    ],
    "recommended_handling": "Phase 0 先只读收编到 registry，Phase 1 做 shadow mapping，不替换原逻辑。"
  },
  "result_mapping_candidate_groups": {
    "candidate_total": 114,
    "by_source_file_top": [
      [
        "/root/.openclaw/workspace/talent-review-system/docs/roadmap/hrms_formal_cadre_conclusion_schema_apply_v1.json",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/roadmap/hrms_formal_cadre_conclusion_schema_prep_v1.json",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/roadmap/hrms_permission_cadre_conclusion_field_apply_sop_v1.json",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/roadmap/hrms_80_percent_progress_recalc_after_profile_cadre_ui_v1.json",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/roadmap/hrms_algorithm_profile_demo_chain_sop_v1.json",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/docs/roadmap/hrms_permission_cadre_conclusion_field_apply_sop_v1.md",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/scripts/scoring/04_score_and_tag_profile.py",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/data/normalized/E002_scored_profile.json",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/data/normalized/E003_scored_profile.json",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/data/normalized/E001_scored_profile.json",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/data/outputs/employee_assessment_profile_page_v1.html",
        1
      ],
      [
        "/root/.openclaw/workspace/talent-review-system/data/outputs/employee_assessment_profile_v1.json",
        1
      ],
      [
        "/var/www/talent-review/manager-profile-summary-view.html",
        1
      ],
      [
        "/var/www/talent-review/feishu-department-mapping.html",
        1
      ],
      [
        "/var/www/talent-review/formal-cadre-conclusion-schema-approval-card.html",
        1
      ],
      [
        "/var/www/talent-review/cadre-profile-refresh-dry-run.html",
        1
      ],
      [
        "/var/www/talent-review/boss-cadre-validation-summary.html",
        1
      ],
      [
        "/var/www/talent-review/permission-cadre-conclusion-field-role-matrix.html",
        1
      ],
      [
        "/var/www/talent-review/employee-profile-normalized-detail.html",
        1
      ],
      [
        "/var/www/talent-review/employee-profile-normalized-score-card.html",
        1
      ]
    ],
    "by_target_schema_object": {
      "result_mapping": 114
    },
    "by_business_domain": {
      "Talent Review OS": 38,
      "员工画像 / 干部档案": 28,
      "组织能力诊断": 22,
      "组织画布 / 人事动作": 26
    },
    "by_migration_priority": {
      "P0": 114
    },
    "by_hardcoded_risk": {
      "low": 68,
      "high": 13,
      "medium": 33
    },
    "by_requires_manual_review": {
      "manual_review_required": 114
    },
    "top_categories": [
      "risk_threshold",
      "one_vote_veto",
      "values_risk",
      "low_score_dimension",
      "abnormal_pattern",
      "recommended_action"
    ],
    "p0_candidate_groups": [
      "one_vote_veto",
      "risk_threshold",
      "values_risk",
      "people_action_constraint"
    ],
    "manual_review_groups": [
      "one_vote_veto",
      "cadre_validation",
      "people_action_constraint",
      "permission_signal"
    ],
    "exclude_groups": [
      "Gate",
      "Preview",
      "Result",
      "Readiness",
      "Regression",
      "Diagnostic"
    ],
    "recommended_handling": "Phase 0 先只读收编到 registry，Phase 1 做 shadow mapping，不替换原逻辑。",
    "mapping_categories": [
      "result_to_algorithm_input",
      "result_to_profile_field",
      "result_to_cadre_validation",
      "result_to_org_capability_score",
      "result_to_people_action_constraint",
      "result_to_permission_signal",
      "result_to_external_mapping"
    ],
    "high_risk_groups": [
      "cadre_validation",
      "people_action_constraint",
      "permission_signal",
      "external_mapping"
    ]
  },
  "refactor_phases": [
    {
      "phase_id": "Phase_0",
      "phase_name": "Hardcoded Inventory",
      "goal": "建立只读清单、类型分类、目标 schema 映射和红线。",
      "writes_database": false,
      "modifies_code": false,
      "replaces_logic": false,
      "affects_active_template": false,
      "requires_manual_gate": false,
      "rollback_requirement": "删除或恢复 registry JSON 即可。",
      "exit_criteria": "registry JSON 可解析，计数与 preview 一致。"
    },
    {
      "phase_id": "Phase_1",
      "phase_name": "Registry Extraction",
      "goal": "将高风险硬编码逻辑抽象为 registry 条目，但不接业务执行。",
      "writes_database": false,
      "modifies_code": false,
      "replaces_logic": false,
      "affects_active_template": false,
      "requires_manual_gate": true,
      "rollback_requirement": "恢复 registry 版本。",
      "exit_criteria": "registry 与 schema registry、permission policy registry 互相引用。"
    },
    {
      "phase_id": "Phase_2",
      "phase_name": "Shadow Validation",
      "goal": "原逻辑与 registry 结果并行校验，输出差异报告。",
      "writes_database": false,
      "modifies_code": "limited_preview_only",
      "replaces_logic": false,
      "affects_active_template": false,
      "requires_manual_gate": true,
      "rollback_requirement": "关闭 shadow job / 恢复只读 registry。",
      "exit_criteria": "关键样本差异可解释，权限影响可接受。"
    },
    {
      "phase_id": "Phase_3",
      "phase_name": "Controlled Refactor",
      "goal": "经人工审批后小范围替换，回归验证，可回滚，再逐步扩大。",
      "writes_database": "controlled_only_after_gate",
      "modifies_code": "controlled_only_after_gate",
      "replaces_logic": "partial_after_shadow_validation",
      "affects_active_template": "only_after_approval",
      "requires_manual_gate": true,
      "rollback_requirement": "代码、配置、schema、业务结果均需可回滚。",
      "exit_criteria": "单模板/单规则成功替换且业务结果无未解释差异。"
    }
  ],
  "redlines": [
    "must_not_replace_hardcoded_logic_directly",
    "must_not_silently_change_algorithm_result",
    "must_not_change_cadre_validation",
    "must_not_change_org_capability_score",
    "must_not_affect_org_canvas_constraints",
    "must_not_change_permission_visibility",
    "must_not_modify_active_template",
    "must_not_send_real_assignment",
    "must_not_affect_normalized_assessment_chain",
    "shadow_validation_required_before_any_refactor",
    "rollback_required_before_any_refactor"
  ],
  "validation_rules": [
    "registry_is_readonly",
    "json_load_required",
    "high_risk_count_must_be_95",
    "risk_rule_candidate_count_must_be_1009",
    "result_mapping_candidate_count_must_be_114",
    "no_database_write",
    "no_code_change",
    "no_logic_replacement",
    "no_active_template_change",
    "no_result_change",
    "no_validation_change",
    "no_permission_change"
  ]
}
