Run do-epic <EPIC-KEY>: a tmux window per chunk, under the epic's cap and each repo's parallel-chunks, never beside loop-claude

This commit is contained in:
2026-11-18 20:49:12 +01:00
parent c4d06c55b5
commit 38e39c93d1
17 changed files with 961 additions and 67 deletions
+17 -2
View File
@@ -28,10 +28,10 @@ Each verdict then moves the rung by one rule, and the rung never falls. The rung
| interrupt or quoted answer without one | holds | holds | holds |
"""
import dataclasses
import typing
from agent_cycle import escalation_mark
from agent_cycle.verdicts import Interrupt, QuotedAnswer, Unfinished
from plan.todo_table import Item
from model_routing.ladder import Ladder, ProjectRung, Rung
from model_routing.route import Route
@@ -42,7 +42,22 @@ ESCALATION_CAP = 2
JUDGE_REPLAYED = ("claude-opus-5-5",)
def first_route(project: ProjectRung, item: Item | None) -> Route:
class Scored(typing.Protocol):
"""What routes a chunk: a plan item under loop-claude, an epic's issue under do-epic."""
@property
def id(self) -> int:
"""The number a Route keeps as its item."""
@property
def likelihood(self) -> int:
"""Its L."""
@property
def escape_and_impact(self) -> int:
"""Its E + I."""
def first_route(project: ProjectRung, item: Scored | None) -> Route:
"""The route a chunk starts on: the rung its item's L picks from the project's rung, or the project's rung without an item."""
if item is None:
return Route(project.rung)