feat(agent): add executor gatekeeper hook
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
- `input_summary`
|
||||
- `output_summary`
|
||||
- `evidence_level`
|
||||
- `gatekeeper_result`:Executor 结构化输出的确定性校验结果,包含 `status`、`failed_rules`、`warnings`、`errors`
|
||||
- `retry_context`:第二轮可选输入;若为空,按首轮处理
|
||||
|
||||
## 任务步骤
|
||||
@@ -88,6 +89,11 @@
|
||||
|
||||
### 步骤四:生成 verdict
|
||||
严格使用以下判定矩阵:
|
||||
0. 若 `gatekeeper_result.status="fail"`
|
||||
- 不得输出 `PASS`
|
||||
- 若 `failed_rules` 包含 `evidence.invocation_ref`,倾向 `REJECT`
|
||||
- 否则至少输出 `LOW_CONFID`
|
||||
|
||||
1. 若任一关键事实(`is_critical=true`)为 `contradicted`
|
||||
- `verdict = "REJECT"`
|
||||
- `groundedness_score = 0.0`
|
||||
|
||||
Reference in New Issue
Block a user