API-AI-040:Runtime 输出校验与业务规则二次校验 #204

Closed
opened 2026-06-11 21:50:59 +08:00 by wangdl · 0 comments
Owner

目标

Runtime 输出虽已通过 schema 校验,API 必须进行业务规则二次校验。

校验内容

jobId 是否匹配;userId 是否匹配;targetId 是否有权限;estimatedMinutes 是否超过约束;question count 是否超过限制;difficulty 是否合法;sourceBlockIds/knowledgePointIds 是否属于目标资料;不允许 Runtime 生成越权数据

验收

实现 RuntimeOutputBusinessValidator;不合法输出不落业务表;校验失败 job 标记 failed 或 partial_failed;校验错误可被 Admin 诊断

## 目标 Runtime 输出虽已通过 schema 校验,API 必须进行业务规则二次校验。 ## 校验内容 jobId 是否匹配;userId 是否匹配;targetId 是否有权限;estimatedMinutes 是否超过约束;question count 是否超过限制;difficulty 是否合法;sourceBlockIds/knowledgePointIds 是否属于目标资料;不允许 Runtime 生成越权数据 ## 验收 实现 RuntimeOutputBusinessValidator;不合法输出不落业务表;校验失败 job 标记 failed 或 partial_failed;校验错误可被 Admin 诊断
wangdl added this to the M-API-AI-RUNTIME:API AI Runtime 调度与落库 milestone 2026-06-11 21:50:59 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wangdl/api-server#204
No description provided.