{
  "metadata": {
    "generated_at": "2026-05-27T17:50:26+08:00",
    "stage": "P1_POSITION_CAPABILITY_TEST_FIXTURE",
    "purpose": "File-based sandbox test fixture definition for future position capability sandbox runthrough dry-run / preview.",
    "warning": "This JSON defines sandbox test fixture records only. It does not create database records, real test positions, real employees, real tasks, assessment runs, algorithm runs, people actions, or Feishu writeback.",
    "sandbox_run": true,
    "test_fixture": true,
    "tenant_id": "sandbox",
    "business_effective": false,
    "not_for_people_action": true,
    "not_for_feishu_writeback": true,
    "resettable": true,
    "writes_database": false,
    "creates_test_data": true,
    "creates_test_data_note": "creates_test_data=true only means creating a file-based test fixture definition, not database records.",
    "creates_database_records": false,
    "modifies_formal_records": false,
    "formal_records_touched": 0,
    "feishu_writeback_required": false,
    "people_action_execution_allowed": false
  },
  "test_scope": {
    "tenant_id": "TEST_TENANT_001",
    "org_unit_id": "TEST_ORG_001",
    "department_id": "TEST_DEPT_001",
    "fixture_prefix": "TEST_",
    "allowed_environment": "sandbox_only",
    "production_scope_allowed": false
  },
  "test_org_units": [
    {
      "org_id": "TEST_ORG_001",
      "org_name": "Sandbox Test Org",
      "sandbox_run": true,
      "business_effective": false,
      "resettable": true
    },
    {
      "org_id": "TEST_DEPT_001",
      "org_name": "Sandbox Test Department",
      "parent_org_id": "TEST_ORG_001",
      "sandbox_run": true,
      "business_effective": false,
      "resettable": true
    },
    {
      "org_id": "TEST_SUB_DEPT_001",
      "org_name": "Sandbox Test Sub Department",
      "parent_org_id": "TEST_DEPT_001",
      "sandbox_run": true,
      "business_effective": false,
      "resettable": true
    }
  ],
  "test_positions": [
    {
      "position_id": "TEST_POSITION_MANAGER_001",
      "position_code": "TEST_POS_MGR_001",
      "position_name": "测试管理岗",
      "job_family": "TEST_JOB_FAMILY_MANAGEMENT",
      "grade_refs": [
        "TEST_GRADE_M1"
      ],
      "capability_model_ref": "TEST_CAPABILITY_MODEL_MANAGER",
      "permission_bundle_ref": "TEST_PERMISSION_BUNDLE_MANAGER",
      "people_action_constraint_ref": "TEST_PEOPLE_ACTION_CONSTRAINT_MANAGER",
      "sandbox_run": true,
      "business_effective": false,
      "resettable": true
    },
    {
      "position_id": "TEST_POSITION_SPECIALIST_001",
      "position_code": "TEST_POS_SPEC_001",
      "position_name": "测试专业岗",
      "job_family": "TEST_JOB_FAMILY_SPECIALIST",
      "grade_refs": [
        "TEST_GRADE_P1",
        "TEST_GRADE_P2"
      ],
      "capability_model_ref": "TEST_CAPABILITY_MODEL_SPECIALIST",
      "permission_bundle_ref": "TEST_PERMISSION_BUNDLE_EMPLOYEE",
      "people_action_constraint_ref": "TEST_PEOPLE_ACTION_CONSTRAINT_SPECIALIST",
      "sandbox_run": true,
      "business_effective": false,
      "resettable": true
    },
    {
      "position_id": "TEST_POSITION_KEY_ROLE_001",
      "position_code": "TEST_POS_KEY_001",
      "position_name": "测试关键岗位",
      "job_family": "TEST_JOB_FAMILY_KEY_ROLE",
      "grade_refs": [
        "TEST_GRADE_M1"
      ],
      "capability_model_ref": "TEST_CAPABILITY_MODEL_KEY_ROLE",
      "permission_bundle_ref": "TEST_PERMISSION_BUNDLE_POSITION_ADMIN",
      "people_action_constraint_ref": "TEST_PEOPLE_ACTION_CONSTRAINT_KEY_ROLE",
      "sandbox_run": true,
      "business_effective": false,
      "resettable": true
    }
  ],
  "test_grades": [
    "TEST_GRADE_P1",
    "TEST_GRADE_P2",
    "TEST_GRADE_M1"
  ],
  "test_capability_models": [
    "TEST_CAPABILITY_MODEL_SPECIALIST",
    "TEST_CAPABILITY_MODEL_MANAGER",
    "TEST_CAPABILITY_MODEL_KEY_ROLE"
  ],
  "test_employees": [
    "TEST_EMPLOYEE_001",
    "TEST_EMPLOYEE_002",
    "TEST_MANAGER_001",
    "TEST_HRBP_001",
    "TEST_HR_OWNER_001",
    "TEST_OD_OWNER_001",
    "TEST_BOSS_001",
    "TEST_AUDITOR_001"
  ],
  "test_roles": [
    "Employee",
    "Manager",
    "HRBP",
    "HR Owner",
    "OD Owner",
    "Boss / Executive",
    "Auditor",
    "Position Config Admin"
  ],
  "test_permission_bundles": [
    "TEST_PERMISSION_BUNDLE_EMPLOYEE",
    "TEST_PERMISSION_BUNDLE_MANAGER",
    "TEST_PERMISSION_BUNDLE_HRBP",
    "TEST_PERMISSION_BUNDLE_POSITION_ADMIN"
  ],
  "test_assessment_templates": [
    "TEST_ASSESSMENT_COMPETENCY",
    "TEST_ASSESSMENT_VALUES",
    "TEST_ASSESSMENT_PROMOTION",
    "TEST_ASSESSMENT_ORG_CAPABILITY"
  ],
  "test_tasks": [
    "TEST_TASK_ASSESSMENT_001",
    "TEST_TASK_TRAINING_001",
    "TEST_TASK_CERTIFICATION_001",
    "TEST_TASK_PROMOTION_READINESS_001",
    "TEST_TASK_REASSESSMENT_001"
  ],
  "test_algorithm_inputs": [
    "capability_gap_input",
    "promotion_readiness_input",
    "key_position_successor_input",
    "people_action_constraint_input",
    "permission_signal_input"
  ],
  "test_expected_outputs": [
    "test_talent_review_output",
    "test_employee_profile_output",
    "test_cadre_validation_only_output",
    "test_org_capability_score",
    "test_org_canvas_draft",
    "test_people_action_draft",
    "test_permission_impact_preview"
  ],
  "runthrough_scenarios": [
    {
      "scenario_id": "basic_position_fit_runthrough",
      "scenario_name": "基础岗位匹配跑通",
      "goal": "测试岗位基础配置、人岗匹配、测评联动和画像输出。",
      "required_test_data": [
        "TEST_TENANT_001",
        "TEST_ORG_001",
        "TEST_POSITION_SPECIALIST_001",
        "TEST_EMPLOYEE_001",
        "TEST_ASSESSMENT_COMPETENCY"
      ],
      "expected_steps": [
        "load_file_based_fixture_json",
        "validate_sandbox_flags",
        "prepare_sandbox_only_inputs",
        "produce_preview_only_expected_outputs",
        "record_reset_targets"
      ],
      "expected_outputs": [
        "test_talent_review_output",
        "test_employee_profile_output",
        "test_permission_impact_preview",
        "reset_targets"
      ],
      "forbidden_outputs": [
        "formal_record_update",
        "business_effective_output",
        "feishu_writeback",
        "people_action_execution",
        "database_record_creation"
      ],
      "validation_points": [
        "all_ids_start_with_TEST_",
        "sandbox_run_true",
        "business_effective_false",
        "not_for_people_action_true",
        "not_for_feishu_writeback_true",
        "resettable_true"
      ],
      "reset_targets": [
        "test_tasks",
        "test_results",
        "test_outputs",
        "test_people_action_drafts",
        "test_permissions",
        "test_external_mappings"
      ],
      "risk_level": "medium",
      "pass_criteria": [
        "formal_records_touched=0",
        "feishu_writeback_required=false",
        "people_action_execution_allowed=false",
        "reset_targets_recorded=true"
      ],
      "blocking_criteria": [
        "non_TEST_id_detected",
        "formal_scope_detected",
        "business_effective_true",
        "reset_target_missing",
        "database_write_attempted"
      ]
    },
    {
      "scenario_id": "capability_gap_to_training_runthrough",
      "scenario_name": "能力差距到培训认证建议跑通",
      "goal": "测试能力差距如何触发培训 / 认证任务建议。",
      "required_test_data": [
        "TEST_TENANT_001",
        "TEST_ORG_001",
        "TEST_POSITION_SPECIALIST_001",
        "TEST_EMPLOYEE_001",
        "TEST_ASSESSMENT_COMPETENCY"
      ],
      "expected_steps": [
        "load_file_based_fixture_json",
        "validate_sandbox_flags",
        "prepare_sandbox_only_inputs",
        "produce_preview_only_expected_outputs",
        "record_reset_targets"
      ],
      "expected_outputs": [
        "test_talent_review_output",
        "test_employee_profile_output",
        "test_permission_impact_preview",
        "reset_targets"
      ],
      "forbidden_outputs": [
        "formal_record_update",
        "business_effective_output",
        "feishu_writeback",
        "people_action_execution",
        "database_record_creation"
      ],
      "validation_points": [
        "all_ids_start_with_TEST_",
        "sandbox_run_true",
        "business_effective_false",
        "not_for_people_action_true",
        "not_for_feishu_writeback_true",
        "resettable_true"
      ],
      "reset_targets": [
        "test_tasks",
        "test_results",
        "test_outputs",
        "test_people_action_drafts",
        "test_permissions",
        "test_external_mappings"
      ],
      "risk_level": "medium",
      "pass_criteria": [
        "formal_records_touched=0",
        "feishu_writeback_required=false",
        "people_action_execution_allowed=false",
        "reset_targets_recorded=true"
      ],
      "blocking_criteria": [
        "non_TEST_id_detected",
        "formal_scope_detected",
        "business_effective_true",
        "reset_target_missing",
        "database_write_attempted"
      ]
    },
    {
      "scenario_id": "promotion_readiness_runthrough",
      "scenario_name": "晋升准备度跑通",
      "goal": "测试岗位要求、测评结果、绩效输入、认证状态如何生成晋升准备度和晋升约束。",
      "required_test_data": [
        "TEST_TENANT_001",
        "TEST_ORG_001",
        "TEST_POSITION_SPECIALIST_001",
        "TEST_EMPLOYEE_001",
        "TEST_ASSESSMENT_COMPETENCY"
      ],
      "expected_steps": [
        "load_file_based_fixture_json",
        "validate_sandbox_flags",
        "prepare_sandbox_only_inputs",
        "produce_preview_only_expected_outputs",
        "record_reset_targets"
      ],
      "expected_outputs": [
        "test_talent_review_output",
        "test_employee_profile_output",
        "test_permission_impact_preview",
        "reset_targets"
      ],
      "forbidden_outputs": [
        "formal_record_update",
        "business_effective_output",
        "feishu_writeback",
        "people_action_execution",
        "database_record_creation"
      ],
      "validation_points": [
        "all_ids_start_with_TEST_",
        "sandbox_run_true",
        "business_effective_false",
        "not_for_people_action_true",
        "not_for_feishu_writeback_true",
        "resettable_true"
      ],
      "reset_targets": [
        "test_tasks",
        "test_results",
        "test_outputs",
        "test_people_action_drafts",
        "test_permissions",
        "test_external_mappings"
      ],
      "risk_level": "high",
      "pass_criteria": [
        "formal_records_touched=0",
        "feishu_writeback_required=false",
        "people_action_execution_allowed=false",
        "reset_targets_recorded=true"
      ],
      "blocking_criteria": [
        "non_TEST_id_detected",
        "formal_scope_detected",
        "business_effective_true",
        "reset_target_missing",
        "database_write_attempted"
      ]
    },
    {
      "scenario_id": "key_position_successor_runthrough",
      "scenario_name": "关键岗位继任跑通",
      "goal": "测试关键岗位、继任候选、干部 validation、组织画布断点。",
      "required_test_data": [
        "TEST_TENANT_001",
        "TEST_ORG_001",
        "TEST_POSITION_SPECIALIST_001",
        "TEST_EMPLOYEE_001",
        "TEST_ASSESSMENT_COMPETENCY"
      ],
      "expected_steps": [
        "load_file_based_fixture_json",
        "validate_sandbox_flags",
        "prepare_sandbox_only_inputs",
        "produce_preview_only_expected_outputs",
        "record_reset_targets"
      ],
      "expected_outputs": [
        "test_talent_review_output",
        "test_employee_profile_output",
        "test_permission_impact_preview",
        "reset_targets"
      ],
      "forbidden_outputs": [
        "formal_record_update",
        "business_effective_output",
        "feishu_writeback",
        "people_action_execution",
        "database_record_creation"
      ],
      "validation_points": [
        "all_ids_start_with_TEST_",
        "sandbox_run_true",
        "business_effective_false",
        "not_for_people_action_true",
        "not_for_feishu_writeback_true",
        "resettable_true"
      ],
      "reset_targets": [
        "test_tasks",
        "test_results",
        "test_outputs",
        "test_people_action_drafts",
        "test_permissions",
        "test_external_mappings"
      ],
      "risk_level": "high",
      "pass_criteria": [
        "formal_records_touched=0",
        "feishu_writeback_required=false",
        "people_action_execution_allowed=false",
        "reset_targets_recorded=true"
      ],
      "blocking_criteria": [
        "non_TEST_id_detected",
        "formal_scope_detected",
        "business_effective_true",
        "reset_target_missing",
        "database_write_attempted"
      ]
    },
    {
      "scenario_id": "permission_bundle_runthrough",
      "scenario_name": "岗位权限包跑通",
      "goal": "测试岗位权限包如何影响页面、数据、字段、动作权限。",
      "required_test_data": [
        "TEST_TENANT_001",
        "TEST_ORG_001",
        "TEST_POSITION_SPECIALIST_001",
        "TEST_EMPLOYEE_001",
        "TEST_ASSESSMENT_COMPETENCY"
      ],
      "expected_steps": [
        "load_file_based_fixture_json",
        "validate_sandbox_flags",
        "prepare_sandbox_only_inputs",
        "produce_preview_only_expected_outputs",
        "record_reset_targets"
      ],
      "expected_outputs": [
        "test_talent_review_output",
        "test_employee_profile_output",
        "test_permission_impact_preview",
        "reset_targets"
      ],
      "forbidden_outputs": [
        "formal_record_update",
        "business_effective_output",
        "feishu_writeback",
        "people_action_execution",
        "database_record_creation"
      ],
      "validation_points": [
        "all_ids_start_with_TEST_",
        "sandbox_run_true",
        "business_effective_false",
        "not_for_people_action_true",
        "not_for_feishu_writeback_true",
        "resettable_true"
      ],
      "reset_targets": [
        "test_tasks",
        "test_results",
        "test_outputs",
        "test_people_action_drafts",
        "test_permissions",
        "test_external_mappings"
      ],
      "risk_level": "high",
      "pass_criteria": [
        "formal_records_touched=0",
        "feishu_writeback_required=false",
        "people_action_execution_allowed=false",
        "reset_targets_recorded=true"
      ],
      "blocking_criteria": [
        "non_TEST_id_detected",
        "formal_scope_detected",
        "business_effective_true",
        "reset_target_missing",
        "database_write_attempted"
      ]
    },
    {
      "scenario_id": "people_action_constraint_runthrough",
      "scenario_name": "人事动作约束跑通",
      "goal": "测试一票否决、测评过期、认证缺失、绩效不足如何阻断转正 / 晋升 / 调岗 / 淘汰。",
      "required_test_data": [
        "TEST_TENANT_001",
        "TEST_ORG_001",
        "TEST_POSITION_SPECIALIST_001",
        "TEST_EMPLOYEE_001",
        "TEST_ASSESSMENT_COMPETENCY"
      ],
      "expected_steps": [
        "load_file_based_fixture_json",
        "validate_sandbox_flags",
        "prepare_sandbox_only_inputs",
        "produce_preview_only_expected_outputs",
        "record_reset_targets"
      ],
      "expected_outputs": [
        "test_talent_review_output",
        "test_employee_profile_output",
        "test_permission_impact_preview",
        "reset_targets"
      ],
      "forbidden_outputs": [
        "formal_record_update",
        "business_effective_output",
        "feishu_writeback",
        "people_action_execution",
        "database_record_creation"
      ],
      "validation_points": [
        "all_ids_start_with_TEST_",
        "sandbox_run_true",
        "business_effective_false",
        "not_for_people_action_true",
        "not_for_feishu_writeback_true",
        "resettable_true"
      ],
      "reset_targets": [
        "test_tasks",
        "test_results",
        "test_outputs",
        "test_people_action_drafts",
        "test_permissions",
        "test_external_mappings"
      ],
      "risk_level": "high",
      "pass_criteria": [
        "formal_records_touched=0",
        "feishu_writeback_required=false",
        "people_action_execution_allowed=false",
        "reset_targets_recorded=true"
      ],
      "blocking_criteria": [
        "non_TEST_id_detected",
        "formal_scope_detected",
        "business_effective_true",
        "reset_target_missing",
        "database_write_attempted"
      ]
    }
  ]
}
