---
name: 工作流模板包规则
scope:
  - '*'
products:
  - '*'
id: ka-hard-rule-工作流模板包规则
asset_kind: hard_rule
lifecycle_status: active
authority: canonical
owner_mechanism_id: mc-workflow-template-pack
routes:
  - code_execution
  - multi_stage_plan
primary_triggers:
  - 模板消费
  - 工作流模板
secondary_triggers: []
negative_triggers: []
priority: P1
specificity: 4
consumes:
  - ka-hard-rule-核心工程执行原则
hard_blocks:
  - 模板消费卡在中间状态
  - 消费证据缺失
  - 未注册直接注入
fallback: manual_required
required_evidence:
  - template_pipeline_status
  - consumption_trace_log
version: 1.0.0
last_reviewed: '2026-05-24'
---

# 工作流模板包规则

## 硬规则

1. **模板消费 pipeline 必须完整** — missing → file_created → indexed → registered → injected → consumed → verified
2. **不可停在中间状态** — 模板消费不可卡在 registered 而不 injected
3. **消费证据必须记录** — 每次状态推进都需要证据

## 检查项

- [ ] 模板消费 pipeline 完整
- [ ] 无中间状态停滞
- [ ] 消费证据已记录
