精简动作审查输入并支持审批来源定位 (#125)
* fix: 精简审查背景并区分人工消息与调度输入 * fix: 模型审查仅提交当前调用与选定背景 * feat: 审批来源定位原会话并移除 Worker 审查背景
This commit is contained in:
1 parent
0d6fa880b8
commit
04d25eb133
30 files changed
+1143
-465
No files matched your search
+3
-4
@@ -167,10 +167,9 @@ func auditFor(ctx context.Context, dec Decision, input []byte, status string) *d
|
||||
if a.Correlation != "exact" {
|
||||
a.ExecutionStatus = "unknown"
|
||||
}
|
||||
// Keep the exact bounded model input for EVERY model verdict, including
|
||||
// automatic allows. The larger raw transcript is redundant for those
|
||||
// events; the UI renders the actual input snapshot, not a reconstruction.
|
||||
// Rule-only allows keep their existing lightweight retention policy.
|
||||
// Keep the exact model input for EVERY model verdict, including automatic
|
||||
// allows. Raw audit history is not model input. Preserve the existing
|
||||
// lightweight allow-retention policy; render the saved input directly.
|
||||
a.UserMessage, a.UserTruncated = "", false
|
||||
a.Context, a.ContextTruncated = nil, false
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user