From 6f3fdcb9936f0f8527b5bfe2bc28892b8552aa13 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 20:37:47 +0200 Subject: [PATCH] Sort the replay's imports by their first binding --- bin/stability_replay/main.py | 14 +++++++------- bin/stability_replay/test_stability_replay.py | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/bin/stability_replay/main.py b/bin/stability_replay/main.py index 158aa594..c40f90e2 100644 --- a/bin/stability_replay/main.py +++ b/bin/stability_replay/main.py @@ -34,17 +34,17 @@ import sys import tempfile import typing -from claude_code.entries import hit_limit, limit_said, parse_entry, structured_output -from claude_code.transcript import first_timestamped_line, read_transcript +from transcript_archive.location import archive_root +from stability_replay.rounds import authored_by, replayed, report, reviewed_path, Round, round_from, sample, stamp_seconds +from project_key import checkout_of +from loop_claude.effects import Effects from failure import Failure from loop_claude.cycle.retry import first_reply, Limited -from loop_claude.effects import Effects +from claude_code.transcript import first_timestamped_line, read_transcript +from claude_code.entries import hit_limit, limit_said, parse_entry, structured_output +from model_routing.ladder import LADDER, picked, position, project_rung, Rung from loop_claude.project.model_choice import read_models_file from loop_claude.stop import Stop -from model_routing.ladder import LADDER, picked, position, project_rung, Rung -from project_key import checkout_of -from stability_replay.rounds import authored_by, replayed, report, reviewed_path, Round, round_from, sample, stamp_seconds -from transcript_archive.location import archive_root LATEST = 10 # Reviews replayed at once. diff --git a/bin/stability_replay/test_stability_replay.py b/bin/stability_replay/test_stability_replay.py index 603bf399..b4c08645 100644 --- a/bin/stability_replay/test_stability_replay.py +++ b/bin/stability_replay/test_stability_replay.py @@ -10,11 +10,11 @@ import unittest sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1])) -from loop_claude.cycle.retry import Limited +from stability_replay.rounds import authored_by, recorded_findings, Replay, replayed, report, reviewed_path, Round, round_from, sample, Tried from loop_claude.effects import Effects, system_effects -from model_routing.ladder import Rung +from loop_claude.cycle.retry import Limited from stability_replay import main -from stability_replay.rounds import authored_by, recorded_findings, replayed, report, reviewed_path, Round, round_from, sample, Replay, Tried +from model_routing.ladder import Rung TOOL = pathlib.Path(__file__).resolve().parents[1] / "stability-replay" REFERENCE = Rung("claude-opus-5-5", "medium")