Answer stability round 1: 0 🔴, 4 🟡 (0 misread); refuse a security skill in a subagent not launched as the security pass, split skill_breaches out, tell a subagent by agent_id

This commit is contained in:
2026-10-30 13:22:25 +01:00
parent 89aae3030c
commit 2ee9df2e07
6 changed files with 66 additions and 28 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ from failure import Failure
from rule_hook.override_log import Log, log_path, logged, print_overrides, write_override
from rule_hook.repeat_read import read_breaches
from rule_hook.reviewer_report import report_breaches
from rule_hook.reviewer_rung import reviewer_breaches
from rule_hook.reviewer_rung import reviewer_breaches, skill_breaches
from rule_hook.round_cap import round_cap_breaches
from shell_command import simple_commands
from rule_hook.todo_check import todo_breaches
@@ -77,7 +77,7 @@ def breaches_of(call: Call, home: str, environ: typing.Mapping[str, str]) -> tup
if call.tool == "Agent":
return text(call.given, "prompt"), text(call.given, "subagent_type"), reviewer_breaches(call, environ)
if call.tool == "Skill":
return text(call.given, "args"), text(call.given, "skill"), reviewer_breaches(call, environ)
return text(call.given, "args"), text(call.given, "skill"), skill_breaches(call, environ)
if call.tool == "Bash":
command = text(call.given, "command")
return command, command.split("\n", 1)[0], bash_breaches(command, call.cwd, home) + read_breaches(call, home)