---
name: delivery-completeness
type: review_rule
when: '代码审查, review, 交付检查, 上线前检查, 提交检查, 终局宣言'
scope:
  - backend
  - frontend
products:
  - '*'
id: ka-review-rule-交付完备性审查规则
asset_kind: review_rule
lifecycle_status: active
authority: supporting
routes:
  - code_change
primary_triggers:
  - 交付完备性审查规则
secondary_triggers: []
negative_triggers: []
priority: P1
specificity: 5
required_evidence:
  - execution_evidence
version: 1.0.0
last_reviewed: '2026-05-22'
migration_note: 知识资产标准化迁移
status: active
---

## DEL-01: 交付物缺少终局宣言签名
pattern: /SoloForge Audit: PASS/
severity: critical
scope: [backend, frontend]
description: 所有交付物末尾必须包含 [SoloForge Audit: PASS - 已通过三重深度推演，确认无潜在隐患]。缺少此签名的交付视为无效

## DEL-02: 验收项缺少边界值覆盖
pattern: //
severity: warning
scope: [backend, frontend]
check: boundary_coverage
description: 验收项应覆盖空值(null/undefined)、极端值(MAX_VALUE/空字符串)、异常输入场景，而非仅 happy path

## DEL-03: 涉及外部调用但无异常处理验收
pattern: /(?:feign|http|restTemplate|webClient|fetch|axios)\s*\(/i
severity: warning
scope: [backend, frontend]
description: 涉及外部 HTTP 调用的代码必须有超时、异常格式、降级场景的验收覆盖

## DEL-04: 涉及状态变更但无事务/幂等验收
pattern: /(?:@Transactional|save\(|insert\(|update\(|delete\()/i
severity: warning
scope: backend
description: 涉及数据库状态变更的代码必须有事务一致性、幂等性验收覆盖

## DEL-05: 测试断言精度不足（疑似自己证明自己）
pattern: /(?:toBeTruthy|toBeFalsy|toBeDefined|toBeUndefined|toBeDefined)\s*\(/
severity: info
scope: [backend, frontend]
description: 大量使用模糊断言(toBeTruthy等)视为测试有效性风险，必须补充精确断言(toBe/toEqual/toThrow)

## SEL-01: 技术选型无行业基准支撑
pattern: //
severity: critical
scope: [backend, frontend]
check: selection_benchmark
description: 技术选型必须通过 sf_explore 检索至少 3 个行业标准方案。禁止凭空推荐方案

## SEL-02: 推荐方案未说明致命缺点规避策略
pattern: //
severity: warning
scope: [backend, frontend]
check: selection_mitigation
description: 最优解宣誓必须明确说明如何规避其他方案的致命缺点。无规避说明视为不完整选型

## TRA-01: 审查发现未按信任分级路由
pattern: //
severity: info
scope: [backend, frontend]
check: trust_classification
description: sf_review 结果应按白盒(可跳过)/灰盒(建议审查)/黑盒(强制审查)三级分类展示，禁止平铺所有发现

## TRA-02: 审查报告缺少认知透明度标注
pattern: //
severity: info
scope: [backend, frontend]
check: transparency_label
description: 审查结果应标注熔断触发状态、变异检测结果、漂移检测结果，确保人类能看到系统内部决策
