Answer prose round 1: 0 🔴, 9 🟡 (0 misread); say what each docstring's code does, give the outage step in plain words and keep each choice in one place
CI / tests (pull_request) Successful in 2m31s

This commit is contained in:
2026-11-15 19:42:51 +01:00
parent a62992d877
commit d2133c410f
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -18,12 +18,12 @@ def environment(project: Rung | None, route: Route) -> dict[str, str]:
def hands_rungs(environ: typing.Mapping[str, str]) -> bool:
"""Whether the environment names a project's and a worker's rung, as loop-claude's does for a project on its ladder. A reader asks before it reads the project's ladder, which handed needs."""
"""Whether the environment names a project's and a worker's rung, as loop-claude sets them for a project on its ladder. Where it names neither, no review launch is checked, so the caller skips reading the project's ladder."""
return bool(environ.get(PROJECT_RUNG) and environ.get(WORKER_RUNG))
def handed(environ: typing.Mapping[str, str], ladder: Ladder) -> tuple[Rung | None, Rung | None, int]:
"""The project's and the worker's rungs, each None when unset or not on ladder, the project's ladder, and the reviews' E + I, 0 when unset or not a whole number. An older loop-claude hands no E + I, and 0 steps no review up."""
"""The project's and the worker's rungs, each None when unset or not on ladder, and the reviews' E + I, 0 when unset or not a whole number. ladder is the project's. An older loop-claude hands no E + I, and 0 steps no review up."""
escape_and_impact = environ.get(ESCAPE_AND_IMPACT, "")
return on_the_ladder(environ.get(PROJECT_RUNG), ladder), on_the_ladder(environ.get(WORKER_RUNG), ladder), int(escape_and_impact) if escape_and_impact.isdecimal() else 0
+1 -1
View File
@@ -20,7 +20,7 @@ Place = str | pathlib.Path
@dataclasses.dataclass(frozen=True)
class Unnamed(Failure):
"""No config names a checkout here: none names the one asked for, or git finds no checkout. A reader of the routing ladder takes the shipped one there, as in a third party's clone; a config that is faulty or cannot be read is a plain Failure."""
"""No config names a checkout here: none names the one asked for, or git fails there, as outside a checkout. A config that is faulty or cannot be read is a plain Failure."""
@dataclasses.dataclass(frozen=True)
+1 -1
View File
@@ -74,7 +74,7 @@ class Call:
def calls(ladder: Ladder, figures: Figures) -> list[Call]:
"""Each routing change the figures call for, comparing the rungs on ladder, which is the shipped one: the figures span every project, and a project's own ladder ranks only its own chunks."""
"""Each routing change the figures call for, comparing the rungs on ladder."""
compared = sorted((rung for rung, chunks in figures.routed.items() if len(chunks) >= MEASURED_AT_LEAST and ladder.position(rung) >= 0), key=ladder.position)
found = []
for lower, upper in zip(compared, compared[1:]):