feat: configure incomplete script review path

This commit is contained in:
ji ruo committed 2026-10-12 18:01:49 +08:00
1 parent 97213e357b
commit dc72b5b4a9
7 files changed
+79 -23

No files matched your search

+1
View File
@@ -2514,6 +2514,7 @@ function route(m: string, path: string, seg: string[], q: URLSearchParams, b: Re
fail_action: "allow",
ask_timeout_seconds: 300,
ask_timeout_action: "deny",
incomplete_script_action: "ask",
};
if (path === "/intercept/judge" && m === "PUT") return { ok: true };
if (path === "/intercept/judge/usage" && m === "GET")
+1
View File
@@ -1365,6 +1365,7 @@ export interface JudgeConfig {
fail_action: "allow" | "ask" | "deny"; // 模型出错/超时/不可解析时的回退
ask_timeout_seconds: number; // 模型判 ask 转人工后的审批等待超时
ask_timeout_action: "allow" | "deny"; // 审批超时后的默认动作
incomplete_script_action: "ask" | "model"; // 脚本快照不完整时:人工审查或继续模型审查
}
// JudgeUsage: 模型兜底审批(judge 通道)的累计 token 用量 + 近 N 天每日序列。