Answer architecture round 1: 3 🔴, 4 🟡; hand interrupts the rungs, derive the rung rule once, and give each rung one spelling

This commit is contained in:
2026-10-16 06:46:38 +02:00
parent 5c65e725fc
commit e07c20bd60
18 changed files with 192 additions and 51 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ def main(argv: list[str], stdin: str) -> int:
def breaches_of(call: Call, home: str, environ: typing.Mapping[str, str]) -> tuple[str, str, list[Breach]] | None:
"""The text that may carry an override, what the log names the call by, and its breaches; None for a call no rule checks."""
if call.tool == "Agent":
return "", text(call.given, "subagent_type"), reviewer_breaches(call, environ)
return text(call.given, "prompt"), text(call.given, "subagent_type"), reviewer_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)