Sort the added imports and type the parallel-chunks value for mypy

This commit is contained in:
2026-11-16 12:02:41 +01:00
parent 3fd7e15255
commit 4e02971bfe
5 changed files with 23 additions and 22 deletions
+1 -1
View File
@@ -7,9 +7,9 @@ from release_plan.release_standing import DefaultPlan, project_plan, UNSEEN_RELE
from loop_effects.effects import Effects, say
from failure import Failure
from loop_claude.routing import first_route, kept, routed_item
from plan_store.stores import held_at, Plan, store as plan_store
from loop_claude.loop.chunk_windows import held_beside, item_of
from chunk_preflight.main import ITEM
from plan_store.stores import held_at, Plan, store as plan_store
from release_plan.todo_table import Item
from model_routing.ladder import Ladder, Rung
from transcript_archive.read import latest_worker
+14 -14
View File
@@ -5,21 +5,21 @@ import pathlib
import re
import typing
from chunk_preflight.choices import planned
from chunk_preflight.gathered import NoItem, Plan
from claude_code.session import Session, session_named, transcript_file
from claude_code.transcript import read_transcript
from failure import Failure
from git_cli.git_repo import default_ref
from loop_claude import tmux
from loop_claude.cycle import chunk_items
from loop_claude.loop.reload import LoopRun
from loop_effects.effects import Effects, say
from loop_state.paths import Paths
from project_config.main import located
from release_plan.release_standing import project_plan
from touch_predictions.beside import Beside, chunks_beside
from loop_claude.cycle import chunk_items
from git_cli.git_repo import default_ref
from loop_effects.effects import Effects, say
from failure import Failure
from project_config.main import located
from loop_claude.loop.reload import LoopRun
from chunk_preflight.gathered import NoItem, Plan
from loop_state.paths import Paths
from chunk_preflight.choices import planned
from transcript_archive.project_key import project_key
from release_plan.release_standing import project_plan
from claude_code.transcript import read_transcript
from claude_code.session import Session, session_named, transcript_file
from loop_claude import tmux
# Under the home folder, a folder per project key holds LOCK.
STATE = ".local/state/loop-claude"
@@ -62,7 +62,7 @@ def starting(home: pathlib.Path, key: str) -> typing.Iterator[None]:
def held_items(chunks: typing.Iterable[str], key: str, claude_code_transcripts: pathlib.Path) -> set[int]:
"""The plan items these chunks hold: the one each started from, and those its worker names on its latest `Chunk items:` line so far. A chunk whose transcript cannot be read holds the item it started from."""
held = set()
held: set[int] = set()
for chunk in chunks:
held.update(filter(None, [item_of(chunk)]))
transcript = transcript_file(chunk_session(key, chunk, claude_code_transcripts))
+3 -3
View File
@@ -6,11 +6,13 @@ from transcript_archive.location import archive_root, project_archive
from loop_claude.loop.chunk_start import archived_route, chunk_start, fetched_todo, routed
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, start_chunks
from loop_claude.loop.close import closed_cycle
from loop_claude.cycle.run import Cycle, run_cycle
from loop_claude.loop.reload import decode_handed, exec_if_edited, fingerprint, LoopRun, RELOAD_FLAG
from loop_effects.effects import Effects, say
from failure import Failure
from loop_claude.verdicts import Finished
from loop_claude.project.model_choice import get_or_ask_models
from git_cli.git_repo import Git
from loop_claude.loop.usage import HELP
@@ -20,11 +22,9 @@ from transcript_archive.project_key import project_key
from model_routing.ladder_file import project_ladder_file, read_ladder, SHIPPED
from loop_claude.project.premises import read_premises
from loop_claude.project.records import read_records
from loop_claude.loop.chunk_windows import CHUNK_FLAG, chunk_session, start_chunks
from loop_claude import tmux
from loop_claude.verdicts import Finished
from loop_claude.stop import Stop
from loop_claude.direct_message import tell
from loop_claude import tmux
def main(argv: list[str], env: typing.Mapping[str, str], paths: Paths, launcher: pathlib.Path, cwd: pathlib.Path, effects: Effects) -> int: