---
name: intent-routing-workflow
scope:
  - '*'
products:
  - '*'
id: ka-procedure-意图路由流程
asset_kind: procedure
lifecycle_status: active
authority: supporting
owner_mechanism_id: mc-intent-router
routes:
  - code_change
primary_triggers:
  - 意图路由流程
secondary_triggers: []
negative_triggers: []
priority: P1
specificity: 5
consumes:
  - mc-classifier
emits:
  - route_decision
required_evidence:
  - route_decision
  - execution_shape
version: 1.1.0
last_reviewed: '2026-06-01'
type: procedure
when: 意图路由流程
stages: ["任务规划", "编码与单元测试"]
---
# 意图路由流程

## 步骤

1. 接收用户意图 (intent)
2. 调用 routeIntent(intent) 获取 route_decision
3. 检查 route_decision.route 是否为有效路由
4. 检查 route_decision.execution_shape 是否匹配路由
5. 将 route_decision 传递给 classifier 和 intent_expander
6. 如果 degraded=true，记录降级日志

## 注意事项

- classifier 只提供兼容字段，不能修改 route_decision
- intent_expander 必须基于 route_decision 生成 prompt
