---
name: mainline-integration-verification
scope:
  - '*'
products:
  - '*'
id: ka-procedure-主链路接入验证流程
asset_kind: procedure
lifecycle_status: active
authority: supporting
owner_mechanism_id: mc-main-path-integration
routes:
  - code_change
primary_triggers:
  - 主链路接入验证流程
secondary_triggers: []
negative_triggers: []
priority: P1
specificity: 5
consumes:
  - mc-main-path-integration
emits:
  - mainline_integration_report
  - module_accessibility_status
required_evidence:
  - execution_evidence
version: 1.1.0
last_reviewed: '2026-06-01'
type: procedure
when: 主链路接入验证流程
stages: ["编码与单元测试", "联调验证"]
---
# 主链路接入验证流程

## 步骤

1. 识别新增模块 (changed_files 中 src/ 下的文件)
2. 扫描谁导入了该模块 (scanModuleImporters)
3. 从入口点追踪可达性 (traceModuleReachability)
4. 收集可观测证据 (collectModuleObservability)
5. 查找集成测试 (findIntegrationTests)
6. 判断接入状态 (integrated / implemented_not_integrated / ...)
7. 运行 orphanGate 和 validateMainPathIntegration

## 接入标准

- **integrated**: 有生产调用 + 有入口链路
- **implemented_not_integrated**: 无生产调用或无入口链路
- **experimental_isolated**: 明确标注为实验性

## 注意事项

- barrel export 不算生产调用
- registry 声明不算接入
- type reference 不算接入
