• Joined on 2026-05-02
wangdl pushed to main at wangdl/api-server 2026-06-21 10:26:54 +08:00
5108a9a250 fix: queue-definitions.spec.ts 显式导入 QUEUE_AI_INTERACTIVE/QUEUE_AI_BACKGROUND
wangdl commented on issue wangdl/api-server#295 2026-06-21 10:24:10 +08:00
[M-AI-03-GATE] 统一 Job Engine、Registry 与 Outbox 最终验收

M-AI-03 GATE 最终验收报告

结论:CONDITIONAL PASS

代码层全部验收通过。完整 E2E 集成测试(19 场景中的 15 个需真实 MySQL/Redis/BullMQ/Mock AI…

wangdl pushed to main at wangdl/api-server 2026-06-21 10:17:39 +08:00
d407d89cf6 test: M-AI-03 Synthetic E2E — API 层 JWT/环境门控验证
wangdl commented on issue wangdl/api-server#294 2026-06-21 10:12:50 +08:00
[M-AI-03] 建立 Synthetic Job Definition 与真实端到端测试

开发完成评论

完成内容

  • Synthetic Job Definitionsynthetic-job-definition.ts):
    • jobType: synthetic_job,queue=ai-interactive,projectorKey=synthetic_projector …
wangdl pushed to main at wangdl/api-server 2026-06-21 10:11:18 +08:00
2cf9579935 feat: M-AI-03 Synthetic Job Definition + 环境门控 + 测试
wangdl commented on issue wangdl/api-server#293 2026-06-21 10:09:23 +08:00
[M-AI-03] 实现 Job 查询、取消、Admin 重试与运行可观测性

开发完成评论

完成内容

  • AiJobController:用户 API(JWT Guard 隔离)
    • GET /api/ai/jobs/:jobId — 查询状态(不含 validatedOutput/internalErrorMessage/Snapsho…
wangdl pushed to main at wangdl/api-server 2026-06-21 10:08:59 +08:00
c91a290536 feat: M-AI-03 Job 查询/取消/Admin/可观测性
wangdl pushed to main at wangdl/api-server 2026-06-21 09:51:11 +08:00
e89c0fbd6b fix: B1 — 无 Projector 路径调用 markSucceeded 防止 Job 卡在 running
wangdl commented on issue wangdl/api-server#292 2026-06-21 09:49:48 +08:00
[M-AI-03] 实现 Result Projector 与 Artifact 原子提交框架

开发完成评论

完成内容

  • ResultProjector 接口result-projector.interface.ts):ADR-003 §6.1 冻结
    • project(tx, context) → ArtifactReference[]
    • `RESULT_PROJE…
wangdl pushed to main at wangdl/api-server 2026-06-21 09:49:26 +08:00
4cfcb7afe5 feat: M-AI-03 Result Projector 与 Artifact 原子提交框架
wangdl pushed to main at wangdl/api-server 2026-06-20 18:44:36 +08:00
aa1ce45d80 fix: N1-N3 — crypto 顶层导入 + 移除冗余 AbortController + _def 重命名
wangdl pushed to main at wangdl/api-server 2026-06-20 18:42:23 +08:00
cdcf056ba5 fix: B1 — lockJob 原子递增 attemptCount + Engine 重试解锁逻辑
wangdl commented on issue wangdl/api-server#291 2026-06-20 18:31:59 +08:00
[M-AI-03] 实现统一 AiJob Worker Execution Engine

开发完成评论

完成内容

  • AiJobExecutionEngineImplai-job-execution-engine.ts):完整 5 阶段管线
    • PREPARE:read Job → terminal check → cancel check →…
wangdl pushed to main at wangdl/api-server 2026-06-20 18:30:06 +08:00
d82ae8ba71 feat: M-AI-03 统一 AiJob Worker Execution Engine
wangdl commented on issue wangdl/api-server#290 2026-06-20 18:27:26 +08:00
[M-AI-03] 实现 Outbox Dispatcher 与幂等 BullMQ 入队

开发完成评论

完成内容

  • OutboxDispatcheroutbox-dispatcher.service.ts):
    • onModuleInit 时启动,每 5s 轮询 OutboxEvent
    • 算法(ADR-003 §4.3):…
wangdl closed issue wangdl/api-server#289 2026-06-20 18:22:42 +08:00
[M-AI-03] 实现事务化 AiJob 创建、Snapshot 与 Enqueue Outbox
wangdl pushed to main at wangdl/api-server 2026-06-20 18:22:42 +08:00
471aa2b872 fix: #289 检修 — TOCTOU 幂等 + promptKey 传递 + require 清理
wangdl pushed to main at wangdl/api-server 2026-06-20 18:20:25 +08:00
6668bba9b4 feat: M-AI-03 Outbox Dispatcher — 可靠投递 ai.job.enqueue 到 BullMQ
wangdl commented on issue wangdl/api-server#289 2026-06-20 18:15:00 +08:00
[M-AI-03] 实现事务化 AiJob 创建、Snapshot 与 Enqueue Outbox

开发完成评论

完成内容

  • AiJobCreationServiceai-job-creation.service.ts):
    • createJob(input): 完整创建流程:Registry获取Definition → 幂等检查 →…
wangdl pushed to main at wangdl/api-server 2026-06-20 18:13:18 +08:00
f0183c03c4 feat: M-AI-03 事务化 AiJob 创建、Snapshot 与 Enqueue Outbox