Answer prose round 1: 0 🔴, 3 🟡; say what the rule checks and what the decision question names, and tighten the help and comments
This commit is contained in:
@@ -30,7 +30,7 @@ def interrupt(root: str, session_id: uuid.UUID, worker: Rung, path: str, questio
|
||||
|
||||
|
||||
def hand_over(rung: Rung, args: list[str], root: str, paths: Paths, env: dict[str, str], effects: Effects) -> Failure | None:
|
||||
"""Runs claude on the terminal in root on rung with env added to its environment, the checkout and each of its worktrees first marked trusted; the failure is why claude could not start."""
|
||||
"""Marks the checkout and each of its worktrees trusted, then runs claude on the terminal in root, on rung, with env added to its environment; the failure is why claude could not start."""
|
||||
trust(paths.claude_json, worktrees(root, effects))
|
||||
try:
|
||||
effects.claude_on_terminal([*rung.flags(), "--permission-mode", "bypassPermissions", *args], root, env)
|
||||
|
||||
@@ -34,7 +34,7 @@ class Rung:
|
||||
return Rung(model, effort)
|
||||
return Rung(family.model, effort) if effort else family
|
||||
|
||||
# The one spelling of a rung. The archive and the worker's environment store it, and parse reads it back, so a change re-routes archived chunks.
|
||||
# The one spelling of a rung. The archive and the worker's environment store it, and parse reads it back. Changing it routes every archived chunk afresh, since parse no longer reads their rungs.
|
||||
def __str__(self) -> str:
|
||||
return f"{self.model} at {self.effort} effort" if self.effort else self.model
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ subagent. The rules:
|
||||
|
||||
{rules}
|
||||
|
||||
A file a Bash command writes, such as through `cat > Dockerfile`, is not checked. An Agent call takes no override.
|
||||
A file a Bash command writes, such as through `cat > Dockerfile`, is not checked. The reviewer-rung rule takes no override.
|
||||
|
||||
A call overrides a rule with `# rule-override <rule>: <reason>`:
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Hold each Agent call that launches a review to the rung loop-claude hands its worker: docs/decisions.md → `routing:`."""
|
||||
"""Refuse an Agent call that launches a review below the rung it needs, worked out from the two rungs loop-claude hands its worker: docs/decisions.md → `routing:`."""
|
||||
import pathlib
|
||||
import typing
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ RuleName = typing.Literal["action-pin", "commit-one-line", "ignorefile-sorted",
|
||||
class Rule:
|
||||
holds: str
|
||||
checked: str
|
||||
# False where no marker can waive the rule, since its call's text is not scanned for one.
|
||||
# False where no marker waives the rule: overrides() grants none for it.
|
||||
overridable: bool = True
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ RULES: dict[RuleName, Rule] = {
|
||||
# A rung is not a judgment call, and the refusal names the arguments to pass, so no marker waives it.
|
||||
"reviewer-rung": Rule(
|
||||
"a reviewer, a comprehension seat or the security pass's subagent runs on the rung loop-claude names for it: the project's rung, or for a reviewer the worker's rung where that is higher, so a worker below the project's rung cannot hand a review to its own cheaper model",
|
||||
"an Agent call that launches a reviewer type, a comprehension seat, or the security pass, whose prompt opens with the sentence larv-review's Security section sets, in a worker loop-claude started",
|
||||
"an Agent call, in a claude loop-claude started, whose subagent type is an agent under agents/, or whose prompt opens with seat-prompts.md's opening sentence or the one larv-review's Security section sets",
|
||||
overridable=False,
|
||||
),
|
||||
"round-title-counts": Rule(
|
||||
|
||||
Reference in New Issue
Block a user