Answer product-owner round 1: 0 🔴, 3 🟡 (0 misread); comment before the scores are set, score no issue whose work has landed, and say after which issues one starts

This commit is contained in:
Lilleman
2026-11-20 15:14:14 +01:00
parent 6c406b2609
commit 4557dced58
8 changed files with 45 additions and 22 deletions
+5 -6
View File
@@ -9,7 +9,7 @@ from do_epic.parked import file_of, Parked, parked_chunks, SLOT
from do_epic.repo_pick import LabelRepos
from agent_cycle import tmux
UNSCORED = ", after each issue that holds scores, since it holds none"
UNSCORED = ", after each issue that holds every score, since it doesn't"
def since(folder: pathlib.Path, chunk: Parked) -> str:
@@ -20,8 +20,8 @@ def since(folder: pathlib.Path, chunk: Parked) -> str:
return ""
def lines(key: str, home: pathlib.Path, issues: list[EpicIssue], team: LabelRepos, unblocking: tuple[str, ...], run: tmux.Tmux) -> list[str] | Failure:
"""A line per open issue of the epic called key, in the tracker's rank order: that its chunk runs or asks the human, or why it waits. It doesn't start anything or check any limit, so the line of a chunk that has yet to start doesn't say which limit holds it back."""
def lines(key: str, home: pathlib.Path, issues: list[EpicIssue], team: LabelRepos, unblocking: tuple[str, ...], run: tmux.Tmux, order: tuple[str, ...] = ()) -> list[str] | Failure:
"""A line per open issue of the epic called key, in the tracker's rank order: that its chunk runs or asks the human, or why it waits. order holds the keys of the issues that start by score, as planning.start_order puts them; a chunk it leaves out says that it starts after them. It doesn't start anything or check any limit, so the line of a chunk that has yet to start doesn't say which limit holds it back."""
found, waits = chunks(issues, team, unblocking)
folder = home / STATE / key
parked = parked_chunks(folder)
@@ -32,9 +32,8 @@ def lines(key: str, home: pathlib.Path, issues: list[EpicIssue], team: LabelRepo
live = {window.name: window for window in windows if not window.dead}
again = f"run `do-epic {key}` to start it again"
reasons = {wait.issue: wait.reason for wait in waits}
# Where no chunk's issue holds scores, each starts in the tracker's rank order, and no line says more.
scored = {issue.key for issue in issues if issue.scores}
bare = {chunk.issue for chunk in found if chunk.issue not in scored} if any(chunk.issue in scored for chunk in found) else set()
# Where no issue starts by score, each starts in the tracker's rank order, which needs no reason.
bare = {chunk.issue for chunk in found if chunk.issue not in order} if order else set()
for chunk in found:
if chunk.issue in parked:
shown = live[chunk.issue].awaits if chunk.issue in live else ""