# METHOD_ID_REGISTRY

## Purpose
Provide a single source of truth for test method identifiers used across skills.

## Format
- Recommended output format: `Mxx|方法名`
- Routing key: `Mxx`
- Display name: 方法名

## B.1 Black-box Methods (M01-M12)
| Method ID | 方法名 | 推荐占位符 | Route Skill |
| --- | --- | --- | --- |
| M01 | 功能分解 | {{return_value}}, {{state_change}} | generate-test-cases-blackbox |
| M02 | 等价类划分 | {{return_value}}, {{error_message}} | generate-test-cases-blackbox |
| M03 | 边界值分析 | {{return_value}}, {{precision_tolerance}} | generate-test-cases-blackbox |
| M04 | 判定表 | {{state_change}}, {{sequence_event}} | generate-test-cases-blackbox |
| M05 | 因果图 | {{error_message}}, {{error_handling}} | generate-test-cases-blackbox |
| M06 | 场景法 | {{sequence_event}}, {{state_change}} | generate-test-cases-blackbox |
| M07 | 功能图法 | {{state_change}}, {{sequence_event}} | generate-test-cases-blackbox |
| M08 | 随机测试 | {{resource_usage}}, {{time_constraint}} | generate-test-cases-blackbox |
| M09 | 猜错法 | {{error_message}}, {{error_handling}} | generate-test-cases-blackbox |
| M10 | 正交试验法 | {{return_value}}, {{data_persistence}} | generate-test-cases-blackbox |
| M11 | 组合测试法 | {{return_value}}, {{sequence_event}} | generate-test-cases-blackbox |
| M12 | 蜕变测试法 | {{pass_criteria}}, {{precision_tolerance}} | generate-test-cases-blackbox |

## B.2 White-box Methods (M13-M18)
| Method ID | 方法名 | 证据锚点 | Route Skill |
| --- | --- | --- | --- |
| M13 | 控制流测试 | 路径编号 | generate-test-cases-whitebox |
| M14 | 数据流测试 | DU对编号 | generate-test-cases-whitebox |
| M15 | 程序变异 | 变异体编号 | generate-test-cases-whitebox |
| M16 | 程序插桩 | 插桩点编号 | generate-test-cases-whitebox |
| M17 | 域测试 | 域编号 | generate-test-cases-whitebox |
| M18 | 符号求值 | 约束表达式编号 | generate-test-cases-whitebox |

## Routing Rules
1. Use Method ID (`Mxx`) as the only routing key.
2. `M01-M12` route to `generate-test-cases-blackbox`.
3. `M13-M18` route to `generate-test-cases-whitebox`.
4. Unknown IDs should be recorded in `method_alignment_report.gaps`.

## Backward Compatibility
- If input methods are provided as plain method names, map them to Method IDs before routing.
- Keep Chinese method names for readability in `case_summary`.
