api-server/docs/architecture/m-ai-06-gate-audit.md
wangdl 7fafa1b0cb
All checks were successful
Deploy API Server / build-and-unit (push) Successful in 36s
Deploy API Server / current-integration (push) Successful in 30s
Deploy API Server / backward-compat (push) Successful in 0s
Deploy API Server / deploy (push) Successful in 1m1s
fix(M-AI-06): resolve P2-01 — modelName already corrected to deepseek-v4-flash
Root cause: modelName was 'deepseek-chat' in early Definition draft.
Fixed in M-AI-06-03 review (555717b) to 'deepseek-v4-flash' matching ModelRouter.
GATE doc P2-01 was stale — updated to reflect resolved status.

No actual model routing change occurred.
Both Legacy and Unified resolve cheap tier via ModelRouter → deepseek-v4-flash.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-22 20:17:55 +08:00

105 lines
2.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# M-AI-06 GATE 独立审核报告
> 审核日期2026-06-22
> 角色:独立审核代理
> 基线M-AI-05 PASS (`a14f490`)
> HEAD`297c4c1`
---
## 1. Commit 范围
```
Base: a14f490 (M-AI-05 PASS)
HEAD: 297c4c1
Commits: f1e529b feat → 555717b fix → 6ab6267 ci → 297c4c1 docs
Files: 21 changed, +4450/-351
Untracked: 0
Prisma/Migration: 0
```
---
## 2. 八项结果
| 维度 | 结论 | 关键证据 |
|------|:---:|------|
| CHILD-CREATION | **PASS** | `feynman-projector.ts:281` `createInTransaction(tx, ...)` 同事务 |
| CHILD-IDEMPOTENCY | **PASS** | `review-card:feynman:<parentJobId>` + check-before-create |
| DEFINITION-SNAPSHOT | **PASS** | queue=ai-background, cheap tier, 16 fields, 无敏感 |
| EXECUTOR-VALIDATION | **PASS** | AiGateway only, legacy-compatible, 10 rules |
| CARD-PROJECTOR | **PASS** | tx atomic, L1-L4 chain, P2002, parent isolation |
| MODE-EXCLUSIVITY | **PASS** | FEYNMAN_REVIEW_CARD_MODE, child_job/legacy_event 互斥 |
| FAILURE-ISOLATION | **PASS** | Parent succeeded + Child failed 是合法状态 |
| REAL-CI | **PASS** | build 36s ✅ integration 30s ✅ compat 0s ✅ deploy 62s ✅ |
---
## 3. Parent/Child 运行证据
CI `current-integration` 通过,包含 Parent→Child 全链路验证。
---
## 4. 测试统计
```
Passed: 118 (M-AI-06) + 91 (Active Recall regression)
Failed: 0
Skipped: 0
Todo: 0
Pending: 0
```
---
## 5. Legacy 与回滚
| 检查项 | 状态 |
|--------|:---:|
| legacy_event 路径保留 | ✅ ReviewCardSubscriber / ReviewCardGenerationWorkflow 未删除 |
| child_job 不触发 Legacy | ✅ FeynmanProjector 不发布 ai.analysis.completed |
| 双生成 | 无 |
| 回滚 child_job→legacy_event | ✅ E2E 场景 14 |
| 已创建 Child 不重复 | ✅ idempotencyKey |
---
## 6. 问题列表
### P0
**无。**
### P1
**无。**
### P2
| ID | 问题 |
|----|------|
| P2-01 | ~~`modelName: 'deepseek-chat'`~~ → 已在 M-AI-06-03 review 中修正为 `deepseek-v4-flash``555717b`),与 ModelRouter `cheap` tier 一致 |
| P2-02 | Engine `if (jobType === 'review_card_generation')` 分派硬编码 |
### P3
Worker SIGKILL、多 Dispatcher 压测、性能优化。**不阻塞。**
---
## 7. 无法确认项
无。CI 全绿,代码完整,范围清洁。
---
## 8. 最终结论
```
M-AI-06-GATEPASS
是否允许进入下一里程碑:是
是否允许生产白名单 child_job
是否允许删除 Legacy Subscriber
```