Answer product-owner round 1: 1 🔴, 1 🟡 (0 misread); say when planning stops at a missing repo, mark what the dry run would do, and reword its text and docs (the stability and prose answers are in this commit too)

This commit is contained in:
Lilleman
2026-11-20 09:53:06 +01:00
parent 2c0673f5bf
commit 5630c3ba2e
5 changed files with 41 additions and 20 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
"""What `do-epic <EPIC-KEY> --dry-run` runs planning and the scheduler on, in place of Jira and tmux: an in-memory copy of the epic that records each write, and a tmux that starts no window. Reads of the epic and of tmux's windows are real, so the run sees the epic and the chunks as they are now."""
"""What `do-epic <EPIC-KEY> --dry-run` runs planning and the scheduler on, in place of Jira, tmux and git: an in-memory copy of the epic that records each write, a tmux that starts no window and a git that clones no repo. The copy starts as the epic is in Jira, and tmux's windows are read as they are, so the run sees the epic and the chunks as they are now."""
import dataclasses
import subprocess
@@ -16,7 +16,7 @@ STARTS = ("new-session", "new-window")
@dataclasses.dataclass
class DryEpic(MemoryEpic):
"""The epic as `store` holds it. A sub-task it files gets a key no Jira issue has, such as ABC-new1, since Jira alone gives the next number."""
"""An in-memory epic. A sub-task it files gets a key no Jira issue has, such as ABC-new1, since Jira alone gives the next number."""
filed: int = 0
def next_key(self) -> str:
@@ -34,7 +34,7 @@ def seeded(store: EpicStore) -> DryEpic | Failure:
def recording(real: Tmux) -> Tmux:
"""real for each read; a command that starts a window is answered as if it had, and the window shows in every later listing, as a window that runs. Any other command, which would change a window, is answered as done."""
"""real for each read. A command that starts a window is answered as if it had, and the window then shows in each later listing as a window that runs. Any other command, which would change a session or a window, is answered as done."""
started: list[tuple[str, str, str]] = []
def run(args: list[str]) -> subprocess.CompletedProcess[str]:
@@ -62,7 +62,7 @@ def without_clones(real: Git) -> Git:
"""real, except that a command with `clone` among its words fails, so that no repo is cloned."""
def run(*args: str, cwd: str | None = None, timeout: float | None = None, guarded: bool = False, errors: str = "strict") -> str | Failure:
if "clone" in args:
return Failure("a dry run clones nothing")
return Failure("a dry run doesn't clone a repo, but a real run would")
return real(*args, cwd=cwd, timeout=timeout, guarded=guarded, errors=errors)
return run