• Joined on 2026-05-02
wangdl commented on issue wangdl/api-server#302 2026-06-21 14:54:10 +08:00
[M-AI-04-07] 建立 Active Recall 真实业务 E2E 与受控切换验证

Blocking fix: infra unavailable now HARD FAIL

Change

  • beforeAll: warn+return changed to fail() — no more silent skip
  • Removed 11 if (!infraAvailable) return; guards

Behavior

  • No…
wangdl commented on issue wangdl/api-server#302 2026-06-21 14:51:10 +08:00
[M-AI-04-07] 建立 Active Recall 真实业务 E2E 与受控切换验证

Blocking 问题修复

1. 4 个核心场景完全未测试 已修复

wangdl commented on issue wangdl/api-server#302 2026-06-21 14:48:21 +08:00
[M-AI-04-07] 建立 Active Recall 真实业务 E2E 与受控切换验证

开发完成评论

完成内容

  • 创建 test/m-ai-04-active-recall.e2e-spec.ts — 真实业务 E2E 测试套件,覆盖 12 核心阻断场景
  • 创建 test/m-ai-04-e2e-setup.ts —…
wangdl commented on issue wangdl/api-server#301 2026-06-21 14:01:45 +08:00
[M-AI-04-06] 完成 Active Recall 状态兼容、可观测性与回滚机制

Non-blocking 问题修复

1. Engine 执行层观测指标未集成 → 死代码 已修复

修复: 在 AiJobExecutionEngineImpl 注入 ActiveRecallObservabilityService,针对…

wangdl commented on issue wangdl/api-server#301 2026-06-21 13:58:27 +08:00
[M-AI-04-06] 完成 Active Recall 状态兼容、可观测性与回滚机制

开发完成评论

完成内容

  • 实现 ActiveRecallObservabilityService — 结构化日志 + 10 个内存计数器 + 平均耗时统计
  • ActiveRecallService.submit() 集成观测…
wangdl commented on issue wangdl/api-server#300 2026-06-21 13:53:22 +08:00
[M-AI-04-05] 将 Active Recall 提交入口接入统一 AiJob CreationService

Non-blocking 问题修复

2. ActiveRecallModule 冗余导入 AppConfigModule 已修复

  • 移除 import { AppConfigModule }imports: [..., AppConfigModule]
  • ActiveRecallModule…
wangdl commented on issue wangdl/api-server#300 2026-06-21 13:49:23 +08:00
[M-AI-04-05] 将 Active Recall 提交入口接入统一 AiJob CreationService

Blocking 问题修复

1. P0 跨用户 question 所有权校验缺失 已修复

攻击路径: 用户 A 提交用户 B 的 questionId → createAnswer 成功(answer 属于…

wangdl commented on issue wangdl/api-server#300 2026-06-21 13:47:04 +08:00
[M-AI-04-05] 将 Active Recall 提交入口接入统一 AiJob CreationService

开发完成评论

完成内容

  • 实现 ActiveRecallExecutionRouter — Feature Flag ACTIVE_RECALL_ENGINE_MODE 分流,支持白名单,Flag 查询失败 → 安全回退 legacy -…
wangdl commented on issue wangdl/api-server#299 2026-06-21 13:42:03 +08:00
[M-AI-04-04] 实现 Active Recall Projector、Artifact 与幂等结果写入

Non-blocking 问题回复

1. ReviewCard 幂等检查依赖业务内容而非 Job 关联 已确认

  • ReviewCard 表无 jobId 字段(旧链路异步生成),不可改表结构 -…
wangdl commented on issue wangdl/api-server#299 2026-06-21 13:34:25 +08:00
[M-AI-04-04] 实现 Active Recall Projector、Artifact 与幂等结果写入

开发完成评论

完成内容

  • 实现 ActiveRecallProjectorResultProjector 接口,key=active_recall_projector
  • 事务内原子写入:AiAnalysisResult(upsert)+…
wangdl commented on issue wangdl/api-server#298 2026-06-21 13:28:56 +08:00
[M-AI-04-03] 实现 Active Recall Executor 与输出验证

Non-blocking 问题回复

1. knowledgeItemContent 仍为空字符串 已确认(范围限制)

  • Executor scope 禁止直接查询业务表(Issue 明确:"不直接查询和修改…
wangdl commented on issue wangdl/api-server#298 2026-06-21 13:26:22 +08:00
[M-AI-04-03] 实现 Active Recall Executor 与输出验证

开发完成评论

完成内容

  • 实现 ActiveRecallExecutor — 从 Snapshot 构造消息、通过 AiGatewayService 调用模型、返回原始输出
  • 实现 `ActiveRecallBusinessValid…
wangdl commented on issue wangdl/api-server#297 2026-06-21 13:22:15 +08:00
[M-AI-04-02] 注册 Active Recall Job Definition 与输入 Snapshot

Non-blocking 问题修复(第 2 轮)

3. Definition 与 SnapshotBuilder 的值重复硬编码 已修复

修复: SnapshotBuilder 注入 JobDefinitionRegistry,在 build()

wangdl commented on issue wangdl/api-server#297 2026-06-21 13:20:23 +08:00
[M-AI-04-02] 注册 Active Recall Job Definition 与输入 Snapshot

Non-blocking 问题修复

1. SnapshotBuilder 孤儿类 + 2. 接口签名不兼容 已修复

问题: ActiveRecallSnapshotBuilder.build(userId, answerId) 2 参数 vs `SnapshotBuild…

wangdl commented on issue wangdl/api-server#297 2026-06-21 13:10:54 +08:00
[M-AI-04-02] 注册 Active Recall Job Definition 与输入 Snapshot

开发完成评论

完成内容

  • 创建 ActiveRecallJobDefinition 冻结常量 — 所有字段源自 M-AI-04-01 迁移契约
  • 创建 ActiveRecallSnapshotBuilder — 加载答案+问…
wangdl commented on issue wangdl/api-server#296 2026-06-21 13:08:14 +08:00
[M-AI-04-01] 审计并冻结 Active Recall 新旧链路迁移契约

追加 Non-blocking 问题修复

7. audioFileId 非文本答案路径 已修复

  • ActiveRecallAnswer 模型包含 audioFileIdanswerTypeschema.prisma:554-556),但当…
wangdl commented on issue wangdl/api-server#296 2026-06-21 13:05:48 +08:00
[M-AI-04-01] 审计并冻结 Active Recall 新旧链路迁移契约

Non-blocking 问题修复

3 个 Non-blocking 问题,均已修复:

4. 行号漂移 已修复

  • 文档行56 queue.constants.ts:1 定义 QUEUE_AI_ANALYSIS — 正确
  • 文档行57…
wangdl commented on issue wangdl/api-server#296 2026-06-21 13:04:53 +08:00
[M-AI-04-01] 审计并冻结 Active Recall 新旧链路迁移契约

Blocking 问题修复

审核发现 3 个 Blocking 问题,均已修复:

1. Job Options 事实错误 已修复

  • : 文档声称 removeOnComplete: true, removeOnFail: 500 -…
wangdl commented on issue wangdl/api-server#296 2026-06-21 12:59:18 +08:00
[M-AI-04-01] 审计并冻结 Active Recall 新旧链路迁移契约

开发完成评论

完成内容

  • 完整审计 POST /api/active-recalls/:id/submit 从 Controller → Service → Queue → Worker → AI Provider → Result Repository 的真实调用链…
wangdl opened issue wangdl/api-server#299 2026-06-21 12:48:14 +08:00
[M-AI-04-04] 实现 Active Recall Projector、Artifact 与幂等结果写入