合入 W2-b 口径账本内核:sql_semantics 的参数绑定与等价证明(绑定只当启发,等价只由 explain_sql_diff 判,执行守门进语料);探索运行封存后在后台比对口径,结果存 caliber_match 工件并追加封存后事件 ledger.matched,启动补比;逐个数的口径标签与整题判断(GET /api/runs/{id}/ledger、证据片段、报告导出的「口径」一步);运行与问数据轮次、画布来源的封存链接;报告导出留审计;E1–E4 统计

This commit is contained in:
ThearchyHelios
2026-10-16 15:38:11 +08:00
31 changed files with 3698 additions and 23 deletions
+13 -2
View File
@@ -240,8 +240,14 @@ export const api = {
workflows: {
list: (opts?: RequestOptions) => get<Workflow[]>('/workflows', opts),
get: (id: string) => get<Workflow>(`/workflows/${id}`),
create: (body: { name: string; description?: string; graph?: GraphSpec; tags?: string[] }) =>
post<Workflow>('/workflows', body),
/**
* origin:新工作流出自哪次运行、哪段对话、哪一轮(问数据的「在画布里打开」带上,next-round 02 做法 9)。服务端核对运行
* 读得到、对话用得了、这一轮属于这段对话,对不上回 422(workflow_origin_invalid)
*/
create: (body: {
name: string; description?: string; graph?: GraphSpec; tags?: string[]
origin?: { run_id: string; conversation_id?: string; turn_id?: string }
}) => post<Workflow>('/workflows', body),
update: (id: string, body: Partial<Workflow> & { note?: string }) =>
patch<Workflow>(`/workflows/${id}`, body),
remove: (id: string) => del(`/workflows/${id}`),
@@ -622,6 +628,11 @@ export const api = {
run_class?: 'formal' | 'exploratory'; version?: number
/** 运行来源(X3):客户端只能声明 chat、canvas、launcher、api(不传按 api 记),其余由服务端写 */
origin?: 'chat' | 'canvas' | 'launcher' | 'api'
/**
* 问数据的运行属于哪段对话、哪一轮(只在 origin 是 chat 时收,next-round 02 做法 9):服务端核对后写进运行来源、在封存
* 范围内。对话、轮次对不上回 422(origin_ref_invalid)
*/
origin_ref?: { conversation_id: string; turn_id: string }
}) => post<Run>('/runs', body),
artifacts: (id: string) => get<any[]>(`/runs/${id}/artifacts`),
/** 从失败的节点接着跑。graph 只能带改过配置的同一张图,结构必须一致 */