Generalise stability-replay to review-replay of any pass, and route each pass on its own rung so a replay may lower one pass alone

This commit is contained in:
2026-10-18 17:04:33 +02:00
parent 2911d3f4cc
commit fc13a1100e
26 changed files with 279 additions and 189 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
"""What judge-replay's and stability-replay's commands share: the argument, the projects on its model, the candidate rungs and the exits."""
"""What judge-replay's and review-replay's commands share: the projects on a model and the exits, and judge-replay's argument and candidate rungs."""
import pathlib
import sys
@@ -28,7 +28,7 @@ def projects_on(model: str, home: pathlib.Path) -> list[str] | Failure:
def down_from(top: Rung) -> list[Rung]:
"""top, the project's rung, and each rung below it, highest first, down to the lowest rung a worker routes to: no route uses a rung below it, so a replay there could change no routing."""
"""top, the project's rung, and each rung below it, highest first, down to the lowest rung a worker routes to: judge-replay has no route below it to change."""
return list(LADDER[position(lowest_worker_rung(top)):position(top) + 1])[::-1]