Sort the imports the move reordered
This commit is contained in:
@@ -18,7 +18,6 @@ from transcript_archive.read import last_spent
|
||||
from agent_cycle.routing import next_route, step_up, StepUp
|
||||
from transcript_archive import outcomes
|
||||
from model_routing.ladder import ProjectRung, Rung
|
||||
from agent_cycle.worker_prompts import WorkerPrompts
|
||||
from claude_code.transcript import read_transcript
|
||||
from agent_cycle.retry import retried
|
||||
from model_routing.route import Route
|
||||
@@ -26,6 +25,7 @@ from agent_cycle import spend
|
||||
from agent_cycle.stop import Stop
|
||||
from agent_cycle.tmux import Window
|
||||
from model_routing import worker_rungs
|
||||
from agent_cycle.worker_prompts import WorkerPrompts
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
|
||||
@@ -5,9 +5,9 @@ An entry point, such as loop-claude, words the prompts of its own workflow and n
|
||||
import dataclasses
|
||||
import typing
|
||||
|
||||
from claude_code.transcript import Typed
|
||||
from model_routing.ladder import ProjectRung
|
||||
from model_routing.route import Route
|
||||
from claude_code.transcript import Typed
|
||||
|
||||
# Opens typed's prompt, with the answer on the line after it, so typed_answer finds the answer at the prompt's start, whatever the question holds.
|
||||
TYPED_HERE = "The human answered your question at loop-claude's terminal:"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
from loop_claude.cycle.prompts import ANSWER_DESTINATIONS
|
||||
from claude_code.entries import Entry
|
||||
from agent_cycle import escalation_mark
|
||||
from failure import Failure
|
||||
from agent_cycle.judge import Grounds, judge_rules, TASK_HEADING, TRANSCRIPT_HEADING
|
||||
from claude_code.transcript import human_answers
|
||||
from agent_cycle.worker_prompts import typed_answer
|
||||
from loop_claude.cycle.prompts import ANSWER_DESTINATIONS
|
||||
|
||||
|
||||
def grounds_of(prompt: str, entries: list[Entry]) -> Grounds | Failure:
|
||||
|
||||
@@ -53,6 +53,7 @@ import pathlib
|
||||
import sys
|
||||
import typing
|
||||
|
||||
from loop_claude.cycle.prompts import ANSWER_DESTINATIONS
|
||||
from transcript_archive.location import archive_root, transcript_of
|
||||
from transcript_archive.read import archived_outcomes
|
||||
from rung_replay.archive import archiving, print_report, replay_folder
|
||||
@@ -69,7 +70,6 @@ from transcript_archive.judge_run import JudgeRun
|
||||
from model_routing.ladder import Ladder, ProjectRung, REVIEW_STEPS, Rung
|
||||
from claude_code.reply import Limited
|
||||
from model_routing.ladder_file import read_ladder, SHIPPED
|
||||
from loop_claude.cycle.prompts import ANSWER_DESTINATIONS
|
||||
from loop_claude.project.premises import read_premises
|
||||
from loop_claude.project.records import read_records
|
||||
from claude_code.transcript import read_transcript
|
||||
|
||||
@@ -9,6 +9,7 @@ import unittest
|
||||
|
||||
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
|
||||
|
||||
from loop_claude.cycle.prompts import ANSWER_DESTINATIONS
|
||||
from transcript_archive.outcomes import ANSWERED, FINISHED, INTERRUPTED, UNFINISHED
|
||||
from claude_code.entries import AssistantTurn, HumanTurn, LoopPrompt, Text
|
||||
from judge_replay.replay import Case, case_from, report, reproduced, sample, verdict_kind
|
||||
@@ -18,7 +19,6 @@ from loop_effects.effects import Effects
|
||||
from failure import Failure
|
||||
from agent_cycle.verdicts import Finished, Interrupt, QuotedAnswer, Unfinished
|
||||
from judge_replay.archived_prompt import grounds_of
|
||||
from loop_claude.cycle.prompts import ANSWER_DESTINATIONS
|
||||
from agent_cycle.judge import judge_archived, judge_rules, Rejected, TASK_HEADING, TRANSCRIPT_HEADING
|
||||
from judge_replay import main
|
||||
from rung_replay.search import Miss, Replay, Tried
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""What loop-claude says to the worker each cycle. model_routing.review_choice chooses where the reviews run. review_launches and reruns put that choice into sentences, and escalation says where escalated subagents run; rung_sentences returns the sentences of all three. In a chunk's first prompt, routed_by places them after its routing sentences where an item routed the chunk, and fresh places them alone otherwise. rungs_held repeats them at the end of a prompt after a step-up or an unfinished verdict."""
|
||||
from model_routing.review_choice import chosen, ReviewChoice
|
||||
from agent_cycle.worker_prompts import answers_recorded, WorkerPrompts
|
||||
from model_routing.review_choice import chosen, ReviewChoice
|
||||
from loop_claude.cycle.chunk_items import CHUNK_ITEMS
|
||||
from model_routing.route import ESCALATION_MARKER, Route
|
||||
from agent_cycle.routing import escalation_rungs
|
||||
|
||||
@@ -7,7 +7,6 @@ from release_plan.release_standing import DefaultPlan, project_plan, UNSEEN_RELE
|
||||
from loop_effects.effects import Effects, say
|
||||
from failure import Failure
|
||||
from agent_cycle.routing import first_route, kept
|
||||
from loop_claude.routed_item import routed_item
|
||||
from loop_claude.loop.chunk_windows import held_beside, item_of
|
||||
from chunk_preflight.main import ITEM
|
||||
from plan.todo_table import Item
|
||||
@@ -18,6 +17,7 @@ from plan_store.plans import Plan
|
||||
from model_routing.ladder import ProjectRung, Rung
|
||||
from loop_claude.cycle import prompts
|
||||
from model_routing.route import Route, route_from
|
||||
from loop_claude.routed_item import routed_item
|
||||
from claude_code.session import session_open, transcript_file
|
||||
|
||||
# Seconds routing waits for origin to name its default branch, asked only where the checkout records none; past them, the chunk runs on the project's rung.
|
||||
|
||||
@@ -3,11 +3,11 @@ import pathlib
|
||||
import typing
|
||||
|
||||
from transcript_archive.location import archive_root, project_archive
|
||||
from loop_claude.cycle import chunk_items, prompts
|
||||
from loop_claude.loop.chunk_start import archived_route, chunk_start, plan_item, routed, scored_plan
|
||||
from loop_claude.loop.routing_check import check_routing
|
||||
from loop_claude.project.checkout import checkout_root
|
||||
from loop_claude.loop.chunk_windows import CHUNK_FLAG, chunk_session, item_of, start_chunks
|
||||
from loop_claude.cycle import chunk_items, prompts
|
||||
from loop_claude.loop.close import closed_cycle
|
||||
from agent_cycle.run import Cycle, run_cycle
|
||||
from loop_claude.loop.reload import decode_handed, exec_if_edited, fingerprint, LoopRun, RELOAD_FLAG
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
"""The plan item that routes a fresh chunk of loop-claude's: agent_cycle/routing.py's first_route picks the worker's rung from its L."""
|
||||
from release_plan.release_standing import chunk_item, LastCut, Next
|
||||
from failure import Failure
|
||||
from plan.todo_table import Item, NoItemsTable
|
||||
from plan_store.plans import Plan
|
||||
from release_plan.release_standing import chunk_item, LastCut, Next
|
||||
|
||||
|
||||
def routed_item(plan: Plan | Failure, cut: LastCut, item_id: int | None = None) -> Item | Failure | None:
|
||||
|
||||
@@ -32,9 +32,8 @@ from failure import Failure
|
||||
from agent_cycle.verdicts import Finished, Interrupt, Judged, QuotedAnswer, TakenIn, Unfinished
|
||||
from git_cli.git_repo import git
|
||||
from agent_cycle import interrupt, judge, retry, run, spend, states, worker, worker_prompts
|
||||
import loop_claude.routed_item
|
||||
from loop_claude.cycle import prompts
|
||||
from claude_code.reply import Limited
|
||||
import loop_claude.routed_item
|
||||
from loop_claude.loop import main, reload, routing_check, this_loop, usage
|
||||
from machine_load import memory
|
||||
from release_plan import next_chunk
|
||||
@@ -43,6 +42,7 @@ from loop_state import paths
|
||||
from plan_store.todo_md import plan_of
|
||||
from transcript_archive.location import project_archive
|
||||
from model_routing.ladder import ProjectRung, Rung
|
||||
from loop_claude.cycle import prompts
|
||||
from model_routing.ladder_file import read_ladder, SHIPPED
|
||||
from model_routing.route import Route, route_from, WorkerLine
|
||||
from agent_cycle import routing
|
||||
|
||||
Reference in New Issue
Block a user