From 3c522160c95e9d35d567d9cf1d0b8b44fa8ab7ff Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 15 Nov 2026 23:44:52 +0100 Subject: [PATCH 01/12] Re-score item 359 at L 4, S 7 --- docs/reading-cost.md | 15 +++++++++++++++ todo.md | 10 +++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/docs/reading-cost.md b/docs/reading-cost.md index 4e3f01f1..f1872c59 100644 --- a/docs/reading-cost.md +++ b/docs/reading-cost.md @@ -2283,3 +2283,18 @@ Read most (opens and searches): - `rules/todo-items.md` 4 - `bin/project_config/main.py` 3 - `bin/chunk_pr/approval.py` 2 + +## Reading cost, chunk 0851f830bb67, finished 2026-11-15T22:41:58Z + +50560 new input tokens before the first commit. + +Read most (opens and searches): + +- `README.md` 1 +- `bin/project_config/main.py` 1 +- `bin/project_config/settings.py` 1 +- `bin/project_record/main.py` 1 +- `bin/project_record/test_project_record.py` 1 +- `docs/decisions.md` 1 +- `rules/decisions.md` 1 +- `settings.json` 1 diff --git a/todo.md b/todo.md index 2a13e0fb..674b2868 100644 --- a/todo.md +++ b/todo.md @@ -12,10 +12,10 @@ | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| -| 359 | 0.11.0 | | | **Tie a project's releases to what its config names: semver tags, Jira Fix Versions, sprints, or none.** | 3 | 2 | 3 | 6 | 4 | 1.6 by 3 | 0.8 | | 382 | 0.11.0 | | | **Edit a Jira issue the loop filed, and score an unscored issue a teammate filed with a comment saying why.** | 4 | 2 | 3 | 7 | 4 | 1.6 by 3 | 0.8 | | 384 | 0.11.0 | | | **Rank an issue the loop files in Jira by its score among the issues the loop filed, a security finding first.** | 3 | 2 | 2 | 5 | 3 | 1.6 by 2 | 0.7 | | 375 | 0.11.0 | | decision | **Run up to the project's configured number of chunks at once, each in its own window of one tmux session named for the project, mark a window whose chunk waits for the human, and refuse to start without tmux at the needed version.** | 4 | 2 | 3 | 7 | 7 | 1.5 by 7 | 0.6 | +| 359 | 0.11.0 | | | **Tie a project's releases to what its config names: semver tags, Jira Fix Versions, sprints, or none.** | 4 | 2 | 3 | 7 | 7 | 1.6 by 3 | 0.2 | | 319 | 0.12.0 | | | **Start a fresh session with a brief of the chunk when a rung step changes the worker's model, in place of resuming the old session.** | 3 | 2 | 3 | 6 | 4 | 1.1 by 2, 1.4 by 2 | 1.2 | | 309 | 0.12.0 | | | **Run a scoring run's second pass on one head with two seats in place of four, once `larv-review agreement` shows the seats agree with each other more than a run agrees with its rerun.** | 2 | 2 | 2 | 4 | 2 | 1.4 by 3 | 1.2 | | 299 | 0.12.0 | | | **Replay the archived judge verdicts through code rules and a classifier trained locally on the archive, and file an item for each verdict kind one of them decides with no missed interrupt.** | 2 | 2 | 2 | 4 | 3 | 1.4 by 3 | 1.0 | @@ -77,10 +77,6 @@ ## Details -### 359. Tie a project's releases to what its config names: semver tags, Jira Fix Versions, sprints, or none. - -lilleman's call, 2026-11-12: what a release is differs per client. With none, items name no release, and the architecture and principles passes the release review runs need another trigger, which this item settles and records. Readers: `rank_todo.py`'s release order, chunk-preflight's next release, loop-claude's "release ready to cut", larv-review's release review, `CLAUDE.md` → "Working loop". Cutting a release stays the human's. - ### 382. Edit a Jira issue the loop filed, and score an unscored issue a teammate filed with a comment saying why. Split from item 352 on 2026-11-15; lilleman's calls, 2026-11-12. The loop edits the summary, description and scores of issues it created, which the `Filed by` mark in the `plan-item` property tells apart, and never the summary or description of an issue a person filed. An issue a teammate files without scores gets scored like any item, with a short comment saying it was scored and why; its scope stays as written. The comment reaches the client's team, so it is in the project's `language`, and its reason comes from whoever scores: `PlanStore.edit` and `todo-item edit` gain a way to pass it, whose spelling a bench of readers picks. Say in `docs/decisions.md` whether the loop may re-score or move a person's issue that already holds scores; the calls name neither. @@ -117,6 +113,10 @@ Before starting anything — a worktree, a session, a window — loop-claude che The config key for the parallel limit is a syntax users write, so a panel seated from the README's audience picks its spelling (`CLAUDE.md` → "Working loop" → "Bench a syntax"). run-heavy already sizes its slots from the machine, at one per 4 CPUs and with memory from `MemTotal`, so a larger VM runs more heavy commands at once without a change here. +### 359. Tie a project's releases to what its config names: semver tags, Jira Fix Versions, sprints, or none. + +lilleman's call, 2026-11-12: what a release is differs per client. With none, items name no release, and the architecture and principles passes the release review runs need another trigger, which this item settles and records. Readers: `rank_todo.py`'s release order, chunk-preflight's next release, loop-claude's "release ready to cut", larv-review's release review, `CLAUDE.md` → "Working loop". Cutting a release stays the human's. + ### 319. Start a fresh session with a brief of the chunk when a rung step changes the worker's model, in place of resuming the old session. On SWE-bench Verified with Haiku 4.5 and Opus 4.7, handing the strong model the weak model's transcript solved 69.2% at $1.61 a task; starting the strong model fresh solved 79.2% at $0.90 (arXiv 2608.24358, The Handoff Tax). A model switch also rereads the whole context uncached (Claude Code prompt caching docs). A worker that steps from Sonnet 5.5 to Opus 5.5 by `--resume` is the raw handoff; an effort-only step within one model keeps the cache and isn't. The escalated subagent, which starts fresh with the trigger's evidence, already follows the pattern that won. -- 2.52.0 From 4447e89e48ebacf530b79d2987067f1d83bb823b Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 16 Nov 2026 00:59:20 +0100 Subject: [PATCH 02/12] Reword item 359: releases stay semver, and the loop keeps working when someone else cuts one --- bin/plan_store/jira_epic.py | 2 +- docs/decisions.md | 2 +- todo.md | 17 ++++++++++++----- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/bin/plan_store/jira_epic.py b/bin/plan_store/jira_epic.py index 2ea50986..b3a2221c 100644 --- a/bin/plan_store/jira_epic.py +++ b/bin/plan_store/jira_epic.py @@ -350,7 +350,7 @@ def item(issue: Issue, project: str, ids: set[int]) -> Item | Failure: """The item an issue holds, without its detail. It is blocked by each of its blockers among ids, the plan's items: a blocker that is done or lies outside the epic doesn't make the item wait.""" release = earliest_release(issue.fix_versions) if release is None: - # Until a project can tie its releases to something other than semver versions, an item with no release cannot be placed in the plan. + # A release is a semver version in every project, so an item with no release cannot be placed in the plan. return Failure(f"{issue.key} names no Fix Version that is a semver version, such as 1.2.0; set one in Jira") scored = scores(issue.key, issue.scores) if isinstance(scored, Failure): diff --git a/docs/decisions.md b/docs/decisions.md index ce810584..c56ae338 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -335,7 +335,7 @@ Messages keep each file's usual name, such as `todo.md`, as its label, since the - **A bench of readers picked the spelling.** Three fresh readers, seated as the person who writes a client's `config.toml`, each picked `plan = "jira:https:///browse/"` over the bare address, a `jira:` beside a `jira-site` key, and a `[plan]` table. Each also picked one pair of env-file keys, `ATLASSIAN_EMAIL` and `ATLASSIAN_API_TOKEN`, for Jira and Confluence over a pair for each, since one account's token opens both. - **An item's ID stays a whole number: the issue's number in the epic's Jira project.** About 30 modules read an ID as an int, and the `branch` and title templates already spell a ticket's name, as `ABC-{id}`. So the store refuses a child issue from another Jira project, and counts a blocker only among the plan's own items (`bin/plan_store/jira_epic.py`). - **The scores sit in one issue property, `plan-item`**, which needs no Jira admin (lilleman, 2026-11-12). An issue without it reads as an item nobody scored. -- **The release is the earliest Fix Version named as a semver version**, and an issue with none fails the read, naming it, until todo.md's item 359 ties releases to something else. +- **The release is the earliest Fix Version named as a semver version**, and an issue with none fails the read, naming it. - **The loop files an item as a Task under the epic, and marks it as its own** (lilleman's calls of 2026-11-12). `"Filed by": "loop"` in the `plan-item` property tells such an issue from one a person filed, whose summary and description the loop never edits. Task is an issue type every Jira Software project template has; a project without it refuses the issue, saying so. The issue takes the project's Fix Version named as the release, with a leading v or without, and the store refuses an item whose release the project has no Fix Version for, before it files anything. A security finding also gets the label `security`, and its text never holds a secret's value. Jira ranks the new issue last, and no bar or goals check applies, until todo.md's item 384 says where a plan in Jira states its formula. Jira takes a blocker's link only after the issue exists, so the store first checks that each blocker is an open child. A link Jira still refuses leaves the issue filed: the write counts as landed, with a note naming the link to make by hand. A failed create says the issue may exist all the same, since a lost answer doesn't tell. - **The store reads, files and finishes, and doesn't edit an issue** until todo.md's item 382. It finishes an item with the transition that the config's `jira-finish-transition` names, which must lead to the status `jira-finish-status` names, since each Jira workflow differs (lilleman's call, 2026-11-12); any open child of the epic may move. It refuses a status outside Jira's done status category: the read counts an issue as finished only in that category, so the item would stay in the plan. Where the issue's present status has no direct transition to the status `jira-finish-status` names, `todo-item finish` fails and a person moves the issue in Jira: the store never walks an issue through other statuses to reach it. lilleman answered on 2026-11-15: "If it is possible to move it to done without a transisiont, that should happen. If not, fail." The implementer read "without a transition" as "without a transition in between". `rank_todo.py` refuses to rank a plan in Jira, and its `--check` passes, since Jira's backlog ranks it; rule-hook's rank check skips it. Each read first asks Jira for the epic itself, since a search under an epic the account cannot see answers no issues, as a finished plan does. diff --git a/todo.md b/todo.md index 674b2868..5c2cd5bf 100644 --- a/todo.md +++ b/todo.md @@ -14,8 +14,8 @@ |---|---|---|---|---|---|---|---|---|---|---|---| | 382 | 0.11.0 | | | **Edit a Jira issue the loop filed, and score an unscored issue a teammate filed with a comment saying why.** | 4 | 2 | 3 | 7 | 4 | 1.6 by 3 | 0.8 | | 384 | 0.11.0 | | | **Rank an issue the loop files in Jira by its score among the issues the loop filed, a security finding first.** | 3 | 2 | 2 | 5 | 3 | 1.6 by 2 | 0.7 | +| 359 | 0.11.0 | | | **Keep working when someone else cuts a release, with items still open in it or commits of theirs in it.** | 3 | 2 | 3 | 6 | 5 | 1.6 by 3 | 0.6 | | 375 | 0.11.0 | | decision | **Run up to the project's configured number of chunks at once, each in its own window of one tmux session named for the project, mark a window whose chunk waits for the human, and refuse to start without tmux at the needed version.** | 4 | 2 | 3 | 7 | 7 | 1.5 by 7 | 0.6 | -| 359 | 0.11.0 | | | **Tie a project's releases to what its config names: semver tags, Jira Fix Versions, sprints, or none.** | 4 | 2 | 3 | 7 | 7 | 1.6 by 3 | 0.2 | | 319 | 0.12.0 | | | **Start a fresh session with a brief of the chunk when a rung step changes the worker's model, in place of resuming the old session.** | 3 | 2 | 3 | 6 | 4 | 1.1 by 2, 1.4 by 2 | 1.2 | | 309 | 0.12.0 | | | **Run a scoring run's second pass on one head with two seats in place of four, once `larv-review agreement` shows the seats agree with each other more than a run agrees with its rerun.** | 2 | 2 | 2 | 4 | 2 | 1.4 by 3 | 1.2 | | 299 | 0.12.0 | | | **Replay the archived judge verdicts through code rules and a classifier trained locally on the archive, and file an item for each verdict kind one of them decides with no missed interrupt.** | 2 | 2 | 2 | 4 | 3 | 1.4 by 3 | 1.0 | @@ -105,6 +105,17 @@ Touches: - `bin/todo_item/main.py`: the help's lines on `add` in a Jira epic - `docs/decisions.md`: "project config: `plan` may name a Jira Cloud epic …" +### 359. Keep working when someone else cuts a release, with items still open in it or commits of theirs in it. + +lilleman's calls. 2026-11-12: what a release is differs per client. 2026-11-16: a release stays a semver version in every project; an earlier wording of this item, which named sprints and projects without releases, misread that. What differs per client is who cuts the release and what lands in it: a teammate may cut it, and teammates' commits land towards it beside the loop's. + +Today the loop sees a cut from a `v` tag on the default branch or a dated `CHANGELOG.md` heading, whoever made it, and counts every commit since as work landed. Two gaps: + +- Where the cut release still holds open items, chunk-preflight stops with "ask the human which release they belong to" (`bin/chunk_preflight/choices.py`). The loop should proceed instead. Recommended: treat those items as the next release's, say so in the chunk's opening line, and move them in the plan where the backend allows; which release they move to is the human's to confirm once, as a working rule. +- A client may mark the cut somewhere else: a tag spelled otherwise, or a Jira Fix Version marked released with no tag. Settle with lilleman which of these the loop reads, and read them. + +Readers: `release_standing.next_release` and `Cut`, chunk-preflight's choices, loop-claude's "release ready to cut", larv-review's `landed_towards`, `CLAUDE.md` → "Working loop". Item 368 covers calling a release review due for a plan outside the checkout. Cutting a release stays the human's or their team's, never the loop's. + ### 375. Run up to the project's configured number of chunks at once, each in its own window of one tmux session named for the project, mark a window whose chunk waits for the human, and refuse to start without tmux at the needed version. lilleman's call, 2026-11-13, splitting item 361. lilleman knows tmux and prefers it. loop-claude runs each chunk in its own window of one tmux session named for the project, such as session `loop-claude-config` with windows `item-372` and `item-373`. It runs up to the number of chunks the project's config allows at once, with 1 as the default, and starts the next chunk item 373's pass allows as each one merges. It uses tmux even at 1, so every project runs the same workflow (goal 1.3). Each window holds a loop-claude for its one chunk, so the interrupt and `/talk` work there as on any terminal. When a chunk waits for the human, loop-claude marks its window, renaming it to end in ` ?` and ringing the bell so tmux's status bar shows it, and clears the mark once it is answered. The DM each interrupt sends names the session and window to answer in, such as `loop-claude-config:item-372`, so the human goes straight to it. @@ -113,10 +124,6 @@ Before starting anything — a worktree, a session, a window — loop-claude che The config key for the parallel limit is a syntax users write, so a panel seated from the README's audience picks its spelling (`CLAUDE.md` → "Working loop" → "Bench a syntax"). run-heavy already sizes its slots from the machine, at one per 4 CPUs and with memory from `MemTotal`, so a larger VM runs more heavy commands at once without a change here. -### 359. Tie a project's releases to what its config names: semver tags, Jira Fix Versions, sprints, or none. - -lilleman's call, 2026-11-12: what a release is differs per client. With none, items name no release, and the architecture and principles passes the release review runs need another trigger, which this item settles and records. Readers: `rank_todo.py`'s release order, chunk-preflight's next release, loop-claude's "release ready to cut", larv-review's release review, `CLAUDE.md` → "Working loop". Cutting a release stays the human's. - ### 319. Start a fresh session with a brief of the chunk when a rung step changes the worker's model, in place of resuming the old session. On SWE-bench Verified with Haiku 4.5 and Opus 4.7, handing the strong model the weak model's transcript solved 69.2% at $1.61 a task; starting the strong model fresh solved 79.2% at $0.90 (arXiv 2608.24358, The Handoff Tax). A model switch also rereads the whole context uncached (Claude Code prompt caching docs). A worker that steps from Sonnet 5.5 to Opus 5.5 by `--resume` is the raw handoff; an effort-only step within one model keeps the cache and isn't. The escalated subagent, which starts fresh with the trigger's evidence, already follows the pattern that won. -- 2.52.0 From 8b649682dc8f5e4aa41918e48f24daf8b4306055 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 16 Nov 2026 01:05:47 +0100 Subject: [PATCH 03/12] Count a cut release's open items as the next release's --- CLAUDE.md | 1 + bin/chunk_preflight/choices.py | 9 ++++++--- bin/chunk_preflight/facts.py | 10 ++++++++++ bin/chunk_preflight/gathered.py | 11 +++++++++++ bin/chunk_preflight/test_chunk_preflight.py | 15 +++++++++++++-- bin/release_plan/release_standing.py | 18 +++++++++++++++--- bin/release_plan/test_release_standing.py | 20 ++++++++++++++++++++ todo.md | 8 +++++--- 8 files changed, 81 insertions(+), 11 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 53f22091..1eb2fdad 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -9,6 +9,7 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The - **Read and change the plan's items only with `~/.claude/bin/todo-item`**, which lists, shows, files, edits, moves and finishes them; `todo-item --help` says how. It reads a plan in Jira as it does a file, and there it files and finishes an item but doesn't edit or move one yet. Two open the file itself: whoever plans a release, to compare Scores across releases, which `todo-item list` doesn't print; and whoever edits `## Scoring` or `## Renamed`, or reshapes an old table. - **When the next release has no items and no work has landed towards it, plan it as this chunk.** Move the highest-scoring items of later releases into it, and get the human's approval of that set before writing any code. - **When the next release has no items left and work has landed towards it, its release review is the chunk** (`larv-review` §3 → "Release review"). **Once that has merged and the release holds no item, the release is finished: stop.** Report what it holds and that it is ready to cut. Under `/loop`, this ends the loop. Until the human cuts it, only a security fix, or an item its release review filed, lands, into that release; never start a later release's items or plan a new one. +- **Where someone cut a release that still holds items, those items are the next release's:** the earliest the plan names after the cut. Move them there as the chunk's first change and say so in its opening line. Where the plan names no later release, ask the human which one they belong to. - **Open every chunk with one line:** the last version cut, how many changes are unreleased (the entries under `CHANGELOG.md` → `## Unreleased`, or else the commits since the last tag), and the release this chunk ships into. A repo that doesn't publish anything says so once. - **A client project's `CLAUDE.md` and `AGENTS.md` in its repo belong to its team.** Read both at the start of each chunk there. Propose each change that aligns them with this setup in a pull request of its own, never inside a chunk's; the one edit a chunk makes there is a decision's title in `AGENTS.md`. Until the team accepts a proposal, and after it declines or doesn't answer, follow the team's rule unless it breaks one of the project's goals. Record each such conflict as a decision in the `decisions` record, as `rules/decisions.md` asks: which rule you follow, why, and the open proposal's PR. Then nobody is asked twice. - **Read the goals file's `## Goals` and `## Audience` before starting a chunk, unless your prompt quotes them.** The chunk's items set its scope. The goals choose between ways to deliver those items, and never add to them. diff --git a/bin/chunk_preflight/choices.py b/bin/chunk_preflight/choices.py index b8ec48a1..2bced0c0 100644 --- a/bin/chunk_preflight/choices.py +++ b/bin/chunk_preflight/choices.py @@ -1,9 +1,9 @@ """The pure choices the preflight's steps act on.""" import pathlib -from release_plan.release_standing import chunk_item, Cut, dated_cut, LastCut, ReadyToCut, ReviewDue, Unknown, Unplanned +from release_plan.release_standing import carried, chunk_item, Cut, dated_cut, LastCut, ReadyToCut, ReviewDue, Unknown, Unplanned from failure import Failure -from chunk_preflight.gathered import Forge, NoItem, Plan +from chunk_preflight.gathered import CarriedOver, Forge, NoItem, Plan from release_plan.todo_table import NoItemsTable from plan_store import stores as plan_stores from release_plan.release import version @@ -52,7 +52,10 @@ def planned(todo: plan_stores.Plan | Failure, cut: LastCut, default: str, branch first = pick.item if first is None: return NoItem(f"every item of release {version(pick.release)} in {where} waits." if pick.release is not None else f"{where}'s items table holds no item.") - return Plan(found, first, f"{first.tagline}\n\n{first.detail}".strip(), branch) + moved = [(was, now) for was, now in zip(found, carried(found, cut)) if was.release != now.release] + # Every carried item takes one release, the next; the newest release they were filed under names the cut. + over = CarriedOver(max(was.release for was, _ in moved), moved[0][1].release, tuple(was.id for was, _ in moved)) if moved else None + return Plan(carried(found, cut), first, f"{first.tagline}\n\n{first.detail}".strip(), branch, over) def worktree_on(porcelain: str, branch: str) -> pathlib.Path | None: diff --git a/bin/chunk_preflight/facts.py b/bin/chunk_preflight/facts.py index 74e80acb..947658dc 100644 --- a/bin/chunk_preflight/facts.py +++ b/bin/chunk_preflight/facts.py @@ -46,6 +46,7 @@ def item_lines(plan: str, item: ItemFacts) -> list[str]: worktree = item.worktree.reason if isinstance(item.worktree, Failure) else f"{item.worktree.path}, {item.worktree.how}" return [ f"- The earliest release in {plan}: {version(first.release)}. Its first item that does not wait: item {first.id}, {levels(first)}.", + *carried_lines(item.plan), f"- Worktree: {worktree}", f"- Open pull requests from {item.plan.branch}: {pulls_text(item.pulls, item.plan.branch)}", *bundled(item.plan), @@ -57,6 +58,15 @@ def item_lines(plan: str, item: ItemFacts) -> list[str]: ] +def carried_lines(plan: Plan) -> list[str]: + """What the worker does about the items of a release someone cut while it held them.""" + over = plan.carried + if over is None: + return [] + items, count, them = (f"Items {listed([str(id_) for id_ in over.ids], 'and')} are", "they count", "them") if len(over.ids) > 1 else (f"Item {over.ids[0]} is", "it counts", "it") + return [f"- {items} filed under release {version(over.cut)}, which is cut, so {count} as release {version(over.into)}'s, the next. Move {them} there in this chunk, with `~/.claude/bin/todo-item` where it moves this plan's items, and say so in the chunk's opening line."] + + def joining_details(plan: Plan) -> list[str]: """The detail of each of the first JOINING_DETAILS items that may join the chunk, in the table's order, and what the worker lacks: an item with no detail, or the items left out.""" joining = bundle_candidates(plan.items, plan.first) diff --git a/bin/chunk_preflight/gathered.py b/bin/chunk_preflight/gathered.py index bdc18fef..62c78475 100644 --- a/bin/chunk_preflight/gathered.py +++ b/bin/chunk_preflight/gathered.py @@ -5,6 +5,7 @@ import typing from failure import Failure from release_plan.todo_table import Item +from release_plan.release import Release from release_plan.release_standing import LastCut from project_config import templates @@ -20,6 +21,14 @@ class Ran: stderr: str +@dataclasses.dataclass(frozen=True) +class CarriedOver: + """The items, by ID in the plan's order, that the plan files under `cut`, a release already cut, and that count as `into`'s, the next release: release_standing.carried.""" + cut: Release + into: Release + ids: tuple[int, ...] + + @dataclasses.dataclass(frozen=True) class Plan: """The default branch's plan items, each with its detail, and `first`: the item the next chunk takes first.""" @@ -28,6 +37,8 @@ class Plan: # first's tagline and detail. text: str branch_template: str + # The items of a release already cut, which `items` and `first` hold as the next release's; None where the plan files none under one. + carried: CarriedOver | None = None @property def branch(self) -> str: diff --git a/bin/chunk_preflight/test_chunk_preflight.py b/bin/chunk_preflight/test_chunk_preflight.py index afb30b6c..2204fd96 100644 --- a/bin/chunk_preflight/test_chunk_preflight.py +++ b/bin/chunk_preflight/test_chunk_preflight.py @@ -13,7 +13,7 @@ from project_config.templates import BRANCH from chunk_preflight import choices from failure import Failure from chunk_preflight.choices import forge_of, worktree_add -from chunk_preflight.gathered import Gathered, ItemFacts, NamedPath, NoItem, Ran, Worktree +from chunk_preflight.gathered import CarriedOver, Gathered, ItemFacts, NamedPath, NoItem, Ran, Worktree from test_env import isolated_env from release_plan.release_standing import LastCut, UNSEEN_RELEASES from chunk_preflight.main import line_count, ran, seconds, TIMEOUT @@ -54,6 +54,8 @@ Change `src/app.py`'s `run` and the files under `src`, not `gone.py`. SHIPPED = TODO.replace("| 3 | 0.2.0 | | | **Do the next thing.** | 2 | 2 | 3 | 5 | 3 | 1 by 9 | 56.2 |\n", "").replace("| 7 | 0.2.0 | 3 |", "| 7 | 0.2.0 | |").replace("### 3. Do the next thing.", "### 7. Do the thing after.") # The plan once release 0.2.0 has shipped all its items: only release 0.3.0's item 9 is left. LATER = TODO[:TODO.index("| 5 |")] + "| 9 | 0.3.0 | | | **Do a later thing.** | 1 | 1 | 1 | 1 | 1 | 1 by 9 | 90.0 |\n" +# Item 9's row, the only one under release 0.3.0. +NINTH = "| 9 | 0.3.0 | | | **Do a later thing.** | 1 | 1 | 1 | 1 | 1 | 1 by 9 | 90.0 |\n" # An items table that holds no row. EMPTY = TODO[:TODO.index("| 5 |")] CHANGELOG = "# Changelog\n\n## Unreleased\n\n- One.\n - A nested line.\n- Two.\n\n## 0.1.0\n\n- Old.\n" @@ -576,8 +578,17 @@ class Plans(unittest.TestCase): def test_takes_the_earliest_release_where_no_earlier_one_was_named_since_the_last_cut(self): self.assertEqual(planned(LATER, LastCut("v0.1.0", "", 4, [LATER]), "origin/main", BRANCH).first.id, 9) + def test_counts_the_items_of_a_release_already_cut_as_the_next_releases_and_says_to_move_them(self): + plan = planned(TODO, LastCut("v0.2.0", "", 4, []), "origin/main", BRANCH) + self.assertEqual((plan.first.id, plan.first.release), (3, (0, 3, 0))) + self.assertEqual({item.release for item in plan.items}, {(0, 3, 0)}) + self.assertEqual(plan.carried, CarriedOver((0, 2, 0), (0, 3, 0), (5, 3, 7, 8))) + said = rendered(dataclasses.replace(item_facts(), plan=plan), LastCut("v0.2.0", "", 4, [])) + self.assertIn("- Items 5, 3, 7 and 8 are filed under release 0.2.0, which is cut, so they count as release 0.3.0's, the next. Move them there in this chunk, with `~/.claude/bin/todo-item` where it moves this plan's items, and say so in the chunk's opening line.", said) + self.assertNotIn("which is cut", rendered(item_facts())) + def test_says_the_plan_files_items_under_a_release_already_cut(self): - why = planned(TODO, LastCut("v0.2.0", "", 4, []), "origin/main", BRANCH).why + why = planned(TODO.replace(NINTH, ""), LastCut("v0.2.0", "", 4, []), "origin/main", BRANCH).why self.assertIn("release 0.2.0", why) self.assertIn("v0.2.0", why) self.assertIn("not after", why) diff --git a/bin/release_plan/release_standing.py b/bin/release_plan/release_standing.py index ae22c9a8..886bcd62 100644 --- a/bin/release_plan/release_standing.py +++ b/bin/release_plan/release_standing.py @@ -156,18 +156,30 @@ def todos_since(tag: str | None | Failure, ref: str, plan: str | None, cwd: str, def chunk_item(found: list[Item], cut: LastCut) -> Pick: """The pick from todo.md's items, weighed against the last cut. Routing and chunk-preflight both pick with it, so they name one item.""" upcoming = next_release(found, cut) - return standing(upcoming, next_item(found), cut.reviewed) if isinstance(upcoming, Upcoming) else upcoming + return standing(upcoming, next_item(carried(found, cut)), cut.reviewed) if isinstance(upcoming, Upcoming) else upcoming + + +def carried(found: list[Item], cut: LastCut) -> list[Item]: + """found, with each item filed under the last cut's version or earlier filed under the next release instead: the earliest the plan names after the cut. + + Someone cut a release while it held those items, and the loop works on: lilleman's call, 2026-11-16. found itself where nothing is cut, where no item is so filed, and where the plan names no release after the cut, since naming one is the human's. + """ + version = cut_version(cut) + later = min((item.release for item in found if version is not None and item.release > version), default=None) + if version is None or later is None or all(item.release > version for item in found): + return found + return [dataclasses.replace(item, release=max(item.release, later)) for item in found] def next_release(found: list[Item], cut: LastCut) -> Upcoming | Cut | Unknown: """The next release after cut, and whether work has landed towards it. found holds the plan's items. - Cut where the plan files items under the last cut's version or earlier, and Unknown where the tags, or todo.md's texts since the cut, cannot be read. + Cut where the plan files items under the last cut's version or earlier and names no later release for carried to file them under, and Unknown where the tags, or todo.md's texts since the cut, cannot be read. Where the branch has no tag, todos_since holds every version of todo.md, so a release todo.md named whose items are all done still reads as the next release. """ if isinstance(cut.tag, Failure): return Unknown() - earliest = min((item.release for item in found), default=None) + earliest = min((item.release for item in carried(found, cut)), default=None) version = cut_version(cut) if version is None: return Upcoming(earliest, True, has_unreleased(cut)) diff --git a/bin/release_plan/test_release_standing.py b/bin/release_plan/test_release_standing.py index a4d0da8e..43eb705f 100644 --- a/bin/release_plan/test_release_standing.py +++ b/bin/release_plan/test_release_standing.py @@ -77,6 +77,26 @@ class NextRelease(unittest.TestCase): self.assertEqual(release_standing.next_release([one((1, 3, 0))], cut(Failure("count unreadable"))), release_standing.Upcoming((1, 3, 0), True, Failure("count unreadable"))) +class Carried(unittest.TestCase): + def test_files_each_item_of_a_release_already_cut_under_the_earliest_release_the_plan_names_after_the_cut(self): + held = [dataclasses.replace(one((1, 2, 3)), id=1), dataclasses.replace(one((1, 2, 0)), id=2), dataclasses.replace(one((1, 4, 0)), id=3), dataclasses.replace(one((1, 3, 0)), id=4)] + carried = release_standing.carried(held, release_standing.LastCut("v1.2.3", "", 4, [])) + self.assertEqual([(item.id, item.release) for item in carried], [(1, (1, 3, 0)), (2, (1, 3, 0)), (3, (1, 4, 0)), (4, (1, 3, 0))]) + + def test_leaves_the_plan_as_it_is_where_nothing_is_cut_or_it_names_no_release_after_the_cut(self): + held = [one((1, 2, 3))] + for tag in ("v1.2.3", "v1.2.2", None, Failure("tags unreadable")): + with self.subTest(tag=tag): + self.assertIs(release_standing.carried(held, release_standing.LastCut(tag, "", 4, [])), held) + + def test_takes_the_cut_releases_item_first_as_the_next_releases(self): + held = [dataclasses.replace(one((1, 2, 3)), id=1), dataclasses.replace(one((1, 3, 0)), id=2)] + cut = release_standing.LastCut("v1.2.3", "", 4, []) + self.assertEqual(release_standing.chunk_item(held, cut), release_standing.Next((1, 3, 0), dataclasses.replace(held[0], release=(1, 3, 0)))) + self.assertEqual(release_standing.next_release(held, cut), release_standing.Upcoming((1, 3, 0), True, True)) + self.assertEqual(release_standing.next_release(held[:1], cut), release_standing.Cut((1, 2, 3))) + + class ChunkItem(unittest.TestCase): def test_takes_the_earliest_release_where_it_is_the_next_and_else_says_whether_the_next_is_ready_to_cut_or_to_plan(self): cases = ( diff --git a/todo.md b/todo.md index 5c2cd5bf..10c44330 100644 --- a/todo.md +++ b/todo.md @@ -109,10 +109,12 @@ Touches: lilleman's calls. 2026-11-12: what a release is differs per client. 2026-11-16: a release stays a semver version in every project; an earlier wording of this item, which named sprints and projects without releases, misread that. What differs per client is who cuts the release and what lands in it: a teammate may cut it, and teammates' commits land towards it beside the loop's. -Today the loop sees a cut from a `v` tag on the default branch or a dated `CHANGELOG.md` heading, whoever made it, and counts every commit since as work landed. Two gaps: +Today the loop sees a cut from a `v` tag on the default branch or a dated `CHANGELOG.md` heading, whoever made it, and counts every commit since as work landed. Where the cut release still holds open items, chunk-preflight stops with "ask the human which release they belong to". -- Where the cut release still holds open items, chunk-preflight stops with "ask the human which release they belong to" (`bin/chunk_preflight/choices.py`). The loop should proceed instead. Recommended: treat those items as the next release's, say so in the chunk's opening line, and move them in the plan where the backend allows; which release they move to is the human's to confirm once, as a working rule. -- A client may mark the cut somewhere else: a tag spelled otherwise, or a Jira Fix Version marked released with no tag. Settle with lilleman which of these the loop reads, and read them. +lilleman's answers, 2026-11-16: + +- The loop proceeds: the cut release's open items count as the next release's, the earliest the plan names after the cut. The chunk moves them in the plan and says so in its opening line. +- The loop reads no other mark of a cut yet, such as a tag spelled otherwise or a Jira Fix Version marked released. lilleman returns to that later. Readers: `release_standing.next_release` and `Cut`, chunk-preflight's choices, loop-claude's "release ready to cut", larv-review's `landed_towards`, `CLAUDE.md` → "Working loop". Item 368 covers calling a release review due for a plan outside the checkout. Cutting a release stays the human's or their team's, never the loop's. -- 2.52.0 From b89ac805d39a05bd0cfe7ad0d2040bd12f9d1285 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 16 Nov 2026 01:08:13 +0100 Subject: [PATCH 04/12] Route on a cut release's carried item --- bin/chunk_preflight/choices.py | 2 +- bin/chunk_preflight/gathered.py | 2 +- bin/chunk_preflight/test_chunk_preflight.py | 2 +- bin/loop_claude/test_loop_claude.py | 6 ++++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/bin/chunk_preflight/choices.py b/bin/chunk_preflight/choices.py index 2bced0c0..b70d30ac 100644 --- a/bin/chunk_preflight/choices.py +++ b/bin/chunk_preflight/choices.py @@ -2,8 +2,8 @@ import pathlib from release_plan.release_standing import carried, chunk_item, Cut, dated_cut, LastCut, ReadyToCut, ReviewDue, Unknown, Unplanned -from failure import Failure from chunk_preflight.gathered import CarriedOver, Forge, NoItem, Plan +from failure import Failure from release_plan.todo_table import NoItemsTable from plan_store import stores as plan_stores from release_plan.release import version diff --git a/bin/chunk_preflight/gathered.py b/bin/chunk_preflight/gathered.py index 62c78475..0bc5305c 100644 --- a/bin/chunk_preflight/gathered.py +++ b/bin/chunk_preflight/gathered.py @@ -5,8 +5,8 @@ import typing from failure import Failure from release_plan.todo_table import Item -from release_plan.release import Release from release_plan.release_standing import LastCut +from release_plan.release import Release from project_config import templates # The CLI that lists a forge's pull requests: gh for a github.com origin, tea for any other. diff --git a/bin/chunk_preflight/test_chunk_preflight.py b/bin/chunk_preflight/test_chunk_preflight.py index 2204fd96..d27fd905 100644 --- a/bin/chunk_preflight/test_chunk_preflight.py +++ b/bin/chunk_preflight/test_chunk_preflight.py @@ -10,10 +10,10 @@ import unittest sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1])) from project_config.templates import BRANCH +from chunk_preflight.gathered import CarriedOver, Gathered, ItemFacts, NamedPath, NoItem, Ran, Worktree from chunk_preflight import choices from failure import Failure from chunk_preflight.choices import forge_of, worktree_add -from chunk_preflight.gathered import CarriedOver, Gathered, ItemFacts, NamedPath, NoItem, Ran, Worktree from test_env import isolated_env from release_plan.release_standing import LastCut, UNSEEN_RELEASES from chunk_preflight.main import line_count, ran, seconds, TIMEOUT diff --git a/bin/loop_claude/test_loop_claude.py b/bin/loop_claude/test_loop_claude.py index 970149d3..46eae312 100644 --- a/bin/loop_claude/test_loop_claude.py +++ b/bin/loop_claude/test_loop_claude.py @@ -984,7 +984,9 @@ class Routing(unittest.TestCase): def test_routes_on_no_item_where_the_release_after_the_last_cut_has_none(self): self.assertEqual(routed_item(TODO, LastCut("v0.1.0", "", 3, [TODO])).id, 3) - self.assertIsNone(routed_item(TODO, LastCut("v0.2.0", "", 3, [TODO]))) + # Someone cut 0.2.0 while it held items: they count as 0.3.0's, the next the plan names, and where it names none, no item routes. + self.assertEqual(routed_item(TODO, LastCut("v0.2.0", "", 3, [TODO])).id, 3) + self.assertIsNone(routed_item(re.sub(r"(?m)^\| \d+ \| 0\.3\.0 \|.*\n", "", TODO), LastCut("v0.2.0", "", 3, [TODO]))) later_only = TODO[:TODO.index("| 7 |")] + TODO[TODO.index("| 1 | 0.3.0 |"):] self.assertIsNone(routed_item(later_only, LastCut("v0.1.0", "", 3, [TODO]))) self.assertIsNone(routed_item(later_only, LastCut("v0.1.0", "", 0, [TODO]))) @@ -1125,7 +1127,7 @@ class RouteSources(unittest.TestCase): def test_routes_on_the_plan_item_and_says_why_it_routes_on_the_projects_rung(self): self.assertIsNone(chunk_start.plan_item(DefaultPlan(plan_of(""), NO_CUT), FakeEffects().effects())) self.assertEqual(chunk_start.plan_item(DefaultPlan(plan_of(TODO), LastCut("v0.1.0", "", 3, [TODO])), FakeEffects().effects()).id, 3) - self.assertIsNone(chunk_start.plan_item(DefaultPlan(plan_of(TODO), LastCut("v0.2.0", "", 3, [TODO])), FakeEffects().effects())) + self.assertIsNone(chunk_start.plan_item(DefaultPlan(plan_of(TODO), LastCut("v0.3.0", "", 3, [TODO])), FakeEffects().effects())) unreadable = Failure("git show origin/main:todo.md printed text that is not UTF-8") for plan, said in ((DefaultPlan(plan_of(TODO.replace("| 4 | 2 | 3 |", "| x | 2 | 3 |")), NO_CUT), "routing on the project's rung: item 3's L 'x' is not a whole number from 1 to 4\n"), (DefaultPlan(unreadable, NO_CUT), f"routing on the project's rung: {unreadable.reason}\n"), (Failure("no origin remote"), "routing on the project's rung: no origin remote\n")): with self.subTest(said=said): -- 2.52.0 From 55ad029df2a1c8062ab68be003aec4199fb9cd94 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 16 Nov 2026 01:14:47 +0100 Subject: [PATCH 05/12] Test the singular and plural move lines --- bin/chunk_preflight/test_chunk_preflight.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/chunk_preflight/test_chunk_preflight.py b/bin/chunk_preflight/test_chunk_preflight.py index d27fd905..54c1344b 100644 --- a/bin/chunk_preflight/test_chunk_preflight.py +++ b/bin/chunk_preflight/test_chunk_preflight.py @@ -56,6 +56,8 @@ SHIPPED = TODO.replace("| 3 | 0.2.0 | | | **Do the next thing.** | 2 | 2 | 3 | LATER = TODO[:TODO.index("| 5 |")] + "| 9 | 0.3.0 | | | **Do a later thing.** | 1 | 1 | 1 | 1 | 1 | 1 by 9 | 90.0 |\n" # Item 9's row, the only one under release 0.3.0. NINTH = "| 9 | 0.3.0 | | | **Do a later thing.** | 1 | 1 | 1 | 1 | 1 | 1 by 9 | 90.0 |\n" +# A plan whose release 0.2.0 holds item 3 alone, before release 0.3.0's item 9. +SHIPPED_BUT_3 = TODO[:TODO.index("| 5 |")] + "| 3 | 0.2.0 | | | **Do the next thing.** | 2 | 2 | 3 | 5 | 3 | 1 by 9 | 56.2 |\n" + NINTH # An items table that holds no row. EMPTY = TODO[:TODO.index("| 5 |")] CHANGELOG = "# Changelog\n\n## Unreleased\n\n- One.\n - A nested line.\n- Two.\n\n## 0.1.0\n\n- Old.\n" @@ -587,6 +589,14 @@ class Plans(unittest.TestCase): self.assertIn("- Items 5, 3, 7 and 8 are filed under release 0.2.0, which is cut, so they count as release 0.3.0's, the next. Move them there in this chunk, with `~/.claude/bin/todo-item` where it moves this plan's items, and say so in the chunk's opening line.", said) self.assertNotIn("which is cut", rendered(item_facts())) + def test_says_to_move_one_or_two_items_of_a_release_already_cut_in_the_singular_or_the_plural(self): + cut = LastCut("v0.2.0", "", 4, []) + for todo, ids, said in ((SHIPPED_BUT_3, (3,), "- Item 3 is filed under release 0.2.0, which is cut, so it counts as release 0.3.0's, the next. Move it there in this chunk,"), (SHIPPED_BUT_3 + NINTH.replace("| 9 | 0.3.0 |", "| 4 | 0.1.0 |"), (3, 4), "- Items 3 and 4 are filed under release 0.2.0, which is cut, so they count as release 0.3.0's, the next. Move them there in this chunk,")): + with self.subTest(ids=ids): + plan = planned(todo, cut, "origin/main", BRANCH) + self.assertEqual(plan.carried, CarriedOver((0, 2, 0), (0, 3, 0), ids)) + self.assertIn(said, rendered(dataclasses.replace(item_facts(), plan=plan), cut)) + def test_says_the_plan_files_items_under_a_release_already_cut(self): why = planned(TODO.replace(NINTH, ""), LastCut("v0.2.0", "", 4, []), "origin/main", BRANCH).why self.assertIn("release 0.2.0", why) -- 2.52.0 From 58055f0fac66464f8e95706448c5af7ee9f6f771 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 16 Nov 2026 01:15:23 +0100 Subject: [PATCH 06/12] =?UTF-8?q?Answer=20overrides=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20the=20overr?= =?UTF-8?q?ide=20of=20the=20rank=20check=20is=20accepted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From 30129051adacdccee5c54a01373902a3a7706676 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 16 Nov 2026 01:15:54 +0100 Subject: [PATCH 07/12] =?UTF-8?q?Answer=20security=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20no=20findin?= =?UTF-8?q?gs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From 37078cffa9e3d0c6a12966066f1ec09bb6722345 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 16 Nov 2026 01:26:49 +0100 Subject: [PATCH 08/12] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=204=20=F0=9F=9F=A1=20(0=20misread);=20carry=20int?= =?UTF-8?q?o=20a=20release=20named=20since=20the=20cut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CLAUDE.md | 4 ++-- bin/chunk_preflight/choices.py | 9 +++++---- bin/chunk_preflight/facts.py | 4 ++-- bin/chunk_preflight/gathered.py | 5 ++--- bin/chunk_preflight/main.py | 4 +++- bin/chunk_preflight/test_chunk_preflight.py | 12 +++++++----- bin/loop_claude/test_loop_claude.py | 4 ++-- bin/plan_store/jira_epic.py | 1 - bin/release_plan/release_standing.py | 14 ++++++++------ bin/release_plan/test_release_standing.py | 13 +++++++++++-- todo.md | 2 +- 11 files changed, 43 insertions(+), 29 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 1eb2fdad..617d4f78 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -9,7 +9,7 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The - **Read and change the plan's items only with `~/.claude/bin/todo-item`**, which lists, shows, files, edits, moves and finishes them; `todo-item --help` says how. It reads a plan in Jira as it does a file, and there it files and finishes an item but doesn't edit or move one yet. Two open the file itself: whoever plans a release, to compare Scores across releases, which `todo-item list` doesn't print; and whoever edits `## Scoring` or `## Renamed`, or reshapes an old table. - **When the next release has no items and no work has landed towards it, plan it as this chunk.** Move the highest-scoring items of later releases into it, and get the human's approval of that set before writing any code. - **When the next release has no items left and work has landed towards it, its release review is the chunk** (`larv-review` §3 → "Release review"). **Once that has merged and the release holds no item, the release is finished: stop.** Report what it holds and that it is ready to cut. Under `/loop`, this ends the loop. Until the human cuts it, only a security fix, or an item its release review filed, lands, into that release; never start a later release's items or plan a new one. -- **Where someone cut a release that still holds items, those items are the next release's:** the earliest the plan names after the cut. Move them there as the chunk's first change and say so in its opening line. Where the plan names no later release, ask the human which one they belong to. +- **Where someone cut a release that still holds items, those items are the next release's.** Move them there as the chunk's first change and say so in its opening line; where `todo-item` cannot move this plan's items, as in a Jira plan, ask the human in the chunk's summary to move them. Where the plan names no later release, ask the human which one they belong to. - **Open every chunk with one line:** the last version cut, how many changes are unreleased (the entries under `CHANGELOG.md` → `## Unreleased`, or else the commits since the last tag), and the release this chunk ships into. A repo that doesn't publish anything says so once. - **A client project's `CLAUDE.md` and `AGENTS.md` in its repo belong to its team.** Read both at the start of each chunk there. Propose each change that aligns them with this setup in a pull request of its own, never inside a chunk's; the one edit a chunk makes there is a decision's title in `AGENTS.md`. Until the team accepts a proposal, and after it declines or doesn't answer, follow the team's rule unless it breaks one of the project's goals. Record each such conflict as a decision in the `decisions` record, as `rules/decisions.md` asks: which rule you follow, why, and the open proposal's PR. Then nobody is asked twice. - **Read the goals file's `## Goals` and `## Audience` before starting a chunk, unless your prompt quotes them.** The chunk's items set its scope. The goals choose between ways to deliver those items, and never add to them. @@ -139,7 +139,7 @@ Claude Code reads this section by its heading when it compacts a conversation. K - **premises** — the goals and audience under `## Goals` and `## Audience` in the project's goals file, with code health ("Shared goal") first among the goals unless the goals file voids it. - **project's rung** — the cheapest rung on loop-claude's routing ladder of the project's model, which is the model loop-claude's prompt names as the project's, or else your own. - **project record** — one of five documents a project keeps beside its plan, each where its config names it: `decisions`, `score-anchors`, `comprehension-history`, `reading-cost` and `changelog`. -- **release** — a semver version the human cuts. +- **release** — a semver version the human cuts, or in a client's project someone on its team. - **release review** — a release's last chunk: the architecture and principles passes over the whole project, before the release is ready to cut; `larv-review` §3 → "Release review". - **reviewer** — a reporter of findings: an agent under `~/.claude/agents/`, `/security-review` or a forge's auto-reviewer. - **round cap** — the rounds one pass may take per chunk; `larv-review` §3 → "Round cap". diff --git a/bin/chunk_preflight/choices.py b/bin/chunk_preflight/choices.py index b70d30ac..30a76c73 100644 --- a/bin/chunk_preflight/choices.py +++ b/bin/chunk_preflight/choices.py @@ -52,10 +52,11 @@ def planned(todo: plan_stores.Plan | Failure, cut: LastCut, default: str, branch first = pick.item if first is None: return NoItem(f"every item of release {version(pick.release)} in {where} waits." if pick.release is not None else f"{where}'s items table holds no item.") - moved = [(was, now) for was, now in zip(found, carried(found, cut)) if was.release != now.release] - # Every carried item takes one release, the next; the newest release they were filed under names the cut. - over = CarriedOver(max(was.release for was, _ in moved), moved[0][1].release, tuple(was.id for was, _ in moved)) if moved else None - return Plan(carried(found, cut), first, f"{first.tagline}\n\n{first.detail}".strip(), branch, over) + held = carried(found, cut) + moved = [(was, now) for was, now in zip(found, held) if was.release != now.release] + # Every carried item takes one release, the next. + over = CarriedOver(moved[0][1].release, tuple(was.id for was, _ in moved)) if moved else None + return Plan(held, first, f"{first.tagline}\n\n{first.detail}".strip(), branch, over) def worktree_on(porcelain: str, branch: str) -> pathlib.Path | None: diff --git a/bin/chunk_preflight/facts.py b/bin/chunk_preflight/facts.py index 947658dc..be957712 100644 --- a/bin/chunk_preflight/facts.py +++ b/bin/chunk_preflight/facts.py @@ -45,7 +45,7 @@ def item_lines(plan: str, item: ItemFacts) -> list[str]: first = item.plan.first worktree = item.worktree.reason if isinstance(item.worktree, Failure) else f"{item.worktree.path}, {item.worktree.how}" return [ - f"- The earliest release in {plan}: {version(first.release)}. Its first item that does not wait: item {first.id}, {levels(first)}.", + f"- The {'next release, after the last cut, that ' + plan + ' names' if item.plan.carried else 'earliest release in ' + plan}: {version(first.release)}. Its first item that does not wait: item {first.id}, {levels(first)}.", *carried_lines(item.plan), f"- Worktree: {worktree}", f"- Open pull requests from {item.plan.branch}: {pulls_text(item.pulls, item.plan.branch)}", @@ -64,7 +64,7 @@ def carried_lines(plan: Plan) -> list[str]: if over is None: return [] items, count, them = (f"Items {listed([str(id_) for id_ in over.ids], 'and')} are", "they count", "them") if len(over.ids) > 1 else (f"Item {over.ids[0]} is", "it counts", "it") - return [f"- {items} filed under release {version(over.cut)}, which is cut, so {count} as release {version(over.into)}'s, the next. Move {them} there in this chunk, with `~/.claude/bin/todo-item` where it moves this plan's items, and say so in the chunk's opening line."] + return [f"- {items} filed under a release already cut, so {count} as release {version(over.into)}'s, the next. Move {them} there as this chunk's first change, with `~/.claude/bin/todo-item move`, and say so in the chunk's opening line. Where todo-item cannot move this plan's items, as in a Jira plan, leave {them} and ask the human, in the chunk's summary, to move {them}."] def joining_details(plan: Plan) -> list[str]: diff --git a/bin/chunk_preflight/gathered.py b/bin/chunk_preflight/gathered.py index 0bc5305c..e7c118b2 100644 --- a/bin/chunk_preflight/gathered.py +++ b/bin/chunk_preflight/gathered.py @@ -23,8 +23,7 @@ class Ran: @dataclasses.dataclass(frozen=True) class CarriedOver: - """The items, by ID in the plan's order, that the plan files under `cut`, a release already cut, and that count as `into`'s, the next release: release_standing.carried.""" - cut: Release + """The items, by ID in the plan's order, that the plan files under a release already cut, and that count as `into`'s, the next release: release_standing.carried.""" into: Release ids: tuple[int, ...] @@ -37,7 +36,7 @@ class Plan: # first's tagline and detail. text: str branch_template: str - # The items of a release already cut, which `items` and `first` hold as the next release's; None where the plan files none under one. + # The items of a release already cut, which `items` and `first` hold as the next release's. None where every item's release is after the last cut. carried: CarriedOver | None = None @property diff --git a/bin/chunk_preflight/main.py b/bin/chunk_preflight/main.py index ef9f7ba8..6d66449c 100644 --- a/bin/chunk_preflight/main.py +++ b/bin/chunk_preflight/main.py @@ -27,7 +27,9 @@ and prints that the release reviews and the cuts are the human's to call. It pri commits since the cut) and no commit titled `Release review of ` followed the tag, finished and ready to cut once one did, and else to be planned first. On a branch with no tag, such a commit counts only where its is after the version under the dated heading. - Where todo.md's earliest release is x.y.z or earlier, it says todo.md files items under a release + Where todo.md files items under x.y.z or earlier, someone cut a release that still held them: + they count as the next release, the earliest after x.y.z that todo.md names or has named + since the cut, and a line says to move them there. Where there is no such release, it says todo.md files items under a release already cut; - with --worktree, the item's worktree: a sibling of the checkout named -, each / of the branch a dash, on the branch the config's `branch` template names, which is diff --git a/bin/chunk_preflight/test_chunk_preflight.py b/bin/chunk_preflight/test_chunk_preflight.py index 54c1344b..5c41cf0c 100644 --- a/bin/chunk_preflight/test_chunk_preflight.py +++ b/bin/chunk_preflight/test_chunk_preflight.py @@ -584,17 +584,19 @@ class Plans(unittest.TestCase): plan = planned(TODO, LastCut("v0.2.0", "", 4, []), "origin/main", BRANCH) self.assertEqual((plan.first.id, plan.first.release), (3, (0, 3, 0))) self.assertEqual({item.release for item in plan.items}, {(0, 3, 0)}) - self.assertEqual(plan.carried, CarriedOver((0, 2, 0), (0, 3, 0), (5, 3, 7, 8))) + self.assertEqual(plan.carried, CarriedOver((0, 3, 0), (5, 3, 7, 8))) said = rendered(dataclasses.replace(item_facts(), plan=plan), LastCut("v0.2.0", "", 4, [])) - self.assertIn("- Items 5, 3, 7 and 8 are filed under release 0.2.0, which is cut, so they count as release 0.3.0's, the next. Move them there in this chunk, with `~/.claude/bin/todo-item` where it moves this plan's items, and say so in the chunk's opening line.", said) - self.assertNotIn("which is cut", rendered(item_facts())) + self.assertIn("- Items 5, 3, 7 and 8 are filed under a release already cut, so they count as release 0.3.0's, the next.", said) + self.assertIn("`~/.claude/bin/todo-item move`", said) + self.assertIn("- The next release, after the last cut, that origin/main's todo.md names: 0.3.0. Its first item that does not wait: item 3,", said) + self.assertNotIn("already cut", rendered(item_facts())) def test_says_to_move_one_or_two_items_of_a_release_already_cut_in_the_singular_or_the_plural(self): cut = LastCut("v0.2.0", "", 4, []) - for todo, ids, said in ((SHIPPED_BUT_3, (3,), "- Item 3 is filed under release 0.2.0, which is cut, so it counts as release 0.3.0's, the next. Move it there in this chunk,"), (SHIPPED_BUT_3 + NINTH.replace("| 9 | 0.3.0 |", "| 4 | 0.1.0 |"), (3, 4), "- Items 3 and 4 are filed under release 0.2.0, which is cut, so they count as release 0.3.0's, the next. Move them there in this chunk,")): + for todo, ids, said in ((SHIPPED_BUT_3, (3,), "- Item 3 is filed under a release already cut, so it counts as release 0.3.0's, the next. Move it there"), (SHIPPED_BUT_3 + NINTH.replace("| 9 | 0.3.0 |", "| 4 | 0.1.0 |"), (3, 4), "- Items 3 and 4 are filed under a release already cut, so they count as release 0.3.0's, the next. Move them there")): with self.subTest(ids=ids): plan = planned(todo, cut, "origin/main", BRANCH) - self.assertEqual(plan.carried, CarriedOver((0, 2, 0), (0, 3, 0), ids)) + self.assertEqual(plan.carried, CarriedOver((0, 3, 0), ids)) self.assertIn(said, rendered(dataclasses.replace(item_facts(), plan=plan), cut)) def test_says_the_plan_files_items_under_a_release_already_cut(self): diff --git a/bin/loop_claude/test_loop_claude.py b/bin/loop_claude/test_loop_claude.py index 46eae312..d5bc624c 100644 --- a/bin/loop_claude/test_loop_claude.py +++ b/bin/loop_claude/test_loop_claude.py @@ -984,9 +984,9 @@ class Routing(unittest.TestCase): def test_routes_on_no_item_where_the_release_after_the_last_cut_has_none(self): self.assertEqual(routed_item(TODO, LastCut("v0.1.0", "", 3, [TODO])).id, 3) - # Someone cut 0.2.0 while it held items: they count as 0.3.0's, the next the plan names, and where it names none, no item routes. + # Someone cut 0.2.0 while it held items: they count as 0.3.0's, the next release, and where no later release is known, no item routes. self.assertEqual(routed_item(TODO, LastCut("v0.2.0", "", 3, [TODO])).id, 3) - self.assertIsNone(routed_item(re.sub(r"(?m)^\| \d+ \| 0\.3\.0 \|.*\n", "", TODO), LastCut("v0.2.0", "", 3, [TODO]))) + self.assertIsNone(routed_item(re.sub(r"(?m)^\| \d+ \| 0\.3\.0 \|.*\n", "", TODO), LastCut("v0.2.0", "", 3, []))) later_only = TODO[:TODO.index("| 7 |")] + TODO[TODO.index("| 1 | 0.3.0 |"):] self.assertIsNone(routed_item(later_only, LastCut("v0.1.0", "", 3, [TODO]))) self.assertIsNone(routed_item(later_only, LastCut("v0.1.0", "", 0, [TODO]))) diff --git a/bin/plan_store/jira_epic.py b/bin/plan_store/jira_epic.py index b3a2221c..ac4cdecc 100644 --- a/bin/plan_store/jira_epic.py +++ b/bin/plan_store/jira_epic.py @@ -350,7 +350,6 @@ def item(issue: Issue, project: str, ids: set[int]) -> Item | Failure: """The item an issue holds, without its detail. It is blocked by each of its blockers among ids, the plan's items: a blocker that is done or lies outside the epic doesn't make the item wait.""" release = earliest_release(issue.fix_versions) if release is None: - # A release is a semver version in every project, so an item with no release cannot be placed in the plan. return Failure(f"{issue.key} names no Fix Version that is a semver version, such as 1.2.0; set one in Jira") scored = scores(issue.key, issue.scores) if isinstance(scored, Failure): diff --git a/bin/release_plan/release_standing.py b/bin/release_plan/release_standing.py index 886bcd62..5fbb4bc4 100644 --- a/bin/release_plan/release_standing.py +++ b/bin/release_plan/release_standing.py @@ -160,21 +160,23 @@ def chunk_item(found: list[Item], cut: LastCut) -> Pick: def carried(found: list[Item], cut: LastCut) -> list[Item]: - """found, with each item filed under the last cut's version or earlier filed under the next release instead: the earliest the plan names after the cut. + """found, with the release of each item that the plan files under the last cut's version, or an earlier one, replaced by the next release: the earliest after the cut that the plan holds or todo.md has named since it. - Someone cut a release while it held those items, and the loop works on: lilleman's call, 2026-11-16. found itself where nothing is cut, where no item is so filed, and where the plan names no release after the cut, since naming one is the human's. + Someone cut a release while it held those items, and the loop works on: lilleman's call, 2026-11-16. found itself where nothing is cut, and where no release after the cut is known, since naming one is the human's. """ version = cut_version(cut) - later = min((item.release for item in found if version is not None and item.release > version), default=None) - if version is None or later is None or all(item.release > version for item in found): + named = named_releases(cut.todos_since) + known = {item.release for item in found} | (set() if isinstance(named, Failure) else named) + after = set() if version is None else {release for release in known if release > version} + if not after or all(item.release >= min(after) for item in found): return found - return [dataclasses.replace(item, release=max(item.release, later)) for item in found] + return [dataclasses.replace(item, release=max(item.release, min(after))) for item in found] def next_release(found: list[Item], cut: LastCut) -> Upcoming | Cut | Unknown: """The next release after cut, and whether work has landed towards it. found holds the plan's items. - Cut where the plan files items under the last cut's version or earlier and names no later release for carried to file them under, and Unknown where the tags, or todo.md's texts since the cut, cannot be read. + Cut where the plan files items under the last cut's version or earlier and no later release is known for carried to file them under, and Unknown where the tags, or todo.md's texts since the cut, cannot be read. Where the branch has no tag, todos_since holds every version of todo.md, so a release todo.md named whose items are all done still reads as the next release. """ if isinstance(cut.tag, Failure): diff --git a/bin/release_plan/test_release_standing.py b/bin/release_plan/test_release_standing.py index 43eb705f..b1f564c7 100644 --- a/bin/release_plan/test_release_standing.py +++ b/bin/release_plan/test_release_standing.py @@ -89,6 +89,13 @@ class Carried(unittest.TestCase): with self.subTest(tag=tag): self.assertIs(release_standing.carried(held, release_standing.LastCut(tag, "", 4, [])), held) + def test_files_them_under_a_release_todo_md_named_since_the_cut_though_the_plan_holds_no_item_of_it(self): + held = [one((1, 2, 3)), dataclasses.replace(one((1, 4, 0)), id=2)] + cut = release_standing.LastCut("v1.2.3", "", 4, naming({(1, 2, 3), (1, 3, 0)})) + self.assertEqual([item.release for item in release_standing.carried(held, cut)], [(1, 3, 0), (1, 4, 0)]) + self.assertEqual(release_standing.chunk_item(held, cut), release_standing.Next((1, 3, 0), dataclasses.replace(held[0], release=(1, 3, 0)))) + self.assertEqual(release_standing.carried(held[:1], dataclasses.replace(cut, todos_since=Failure("log unreadable"))), held[:1]) + def test_takes_the_cut_releases_item_first_as_the_next_releases(self): held = [dataclasses.replace(one((1, 2, 3)), id=1), dataclasses.replace(one((1, 3, 0)), id=2)] cut = release_standing.LastCut("v1.2.3", "", 4, []) @@ -111,7 +118,8 @@ class ChunkItem(unittest.TestCase): (Failure("tags unreadable"), 4, (0, 2, 0), set(), release_standing.Unknown()), (Failure("tags unreadable"), 4, None, set(), release_standing.Unknown()), ("v1.2.3", 4, (1, 2, 3), set(), release_standing.Cut((1, 2, 3))), - ("v1.2.3", 4, (1, 2, 2), {(1, 2, 4)}, release_standing.Cut((1, 2, 2))), + ("v1.2.3", 4, (1, 2, 2), set(), release_standing.Cut((1, 2, 2))), + ("v1.2.3", 4, (1, 2, 2), {(1, 2, 4)}, release_standing.Next((1, 2, 4), one((1, 2, 4)))), ("v1.2.3", 4, (1, 3, 0), {(1, 2, 4), (1, 3, 0)}, release_standing.ReadyToCut((1, 2, 4))), ("v0.9.2", 4, (1, 0, 0), {(0, 9, 3)}, release_standing.ReadyToCut((0, 9, 3))), ("v1.2.3", 4, (1, 4, 0), {(1, 2, 2), (1, 3, 0)}, release_standing.ReadyToCut((1, 3, 0))), @@ -160,7 +168,8 @@ class ChunkItem(unittest.TestCase): self.assertNotEqual(release_standing.chunk_item([], without_unreleased), release_standing.ReviewDue((0, 0, 1)), "0.0.1 is cut under its dated heading") later = [HEADER + ROW.format(id=1, release="0.0.1") + ROW.format(id=2, release="0.1.0"), HEADER + ROW.format(id=2, release="0.1.0")] self.assertEqual(release_standing.chunk_item(plan_under((0, 1, 0)), release_standing.LastCut(None, changelog, 4, later)), release_standing.Next((0, 1, 0), one((0, 1, 0)))) - self.assertEqual(release_standing.chunk_item(plan_under((0, 0, 1)), release_standing.LastCut(None, changelog, 4, later)), release_standing.Cut((0, 0, 1))) + self.assertEqual(release_standing.chunk_item(plan_under((0, 0, 1)), release_standing.LastCut(None, changelog, 4, later)), release_standing.Next((0, 1, 0), one((0, 1, 0)))) + self.assertEqual(release_standing.chunk_item(plan_under((0, 0, 1)), release_standing.LastCut(None, changelog, 4, history)), release_standing.Cut((0, 0, 1))) def test_counts_neither_an_undated_heading_nor_a_heading_behind_a_tag_as_cut(self): history = [HEADER + ROW.format(id=1, release="0.0.1"), HEADER] diff --git a/todo.md b/todo.md index 10c44330..e7bcdd58 100644 --- a/todo.md +++ b/todo.md @@ -113,7 +113,7 @@ Today the loop sees a cut from a `v` tag on the default branch or a dated lilleman's answers, 2026-11-16: -- The loop proceeds: the cut release's open items count as the next release's, the earliest the plan names after the cut. The chunk moves them in the plan and says so in its opening line. +- The loop proceeds: the cut release's open items count as the next release's. The chunk moves them in the plan and says so in its opening line; in a Jira plan, where `todo-item` moves no item yet, it asks the human to. - The loop reads no other mark of a cut yet, such as a tag spelled otherwise or a Jira Fix Version marked released. lilleman returns to that later. Readers: `release_standing.next_release` and `Cut`, chunk-preflight's choices, loop-claude's "release ready to cut", larv-review's `landed_towards`, `CLAUDE.md` → "Working loop". Item 368 covers calling a release review due for a plan outside the checkout. Cutting a release stays the human's or their team's, never the loop's. -- 2.52.0 From 0f0ba7fa430aef469d684da17bf0c0c1536cb8a1 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 16 Nov 2026 01:26:49 +0100 Subject: [PATCH 09/12] =?UTF-8?q?Answer=20product-owner=20round=201:=200?= =?UTF-8?q?=20=F0=9F=94=B4,=202=20=F0=9F=9F=A1=20(0=20misread);=20say=20wh?= =?UTF-8?q?at=20to=20do=20in=20a=20Jira=20plan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From 1210f8cd683aa27f31655b21c4ee62905f7973eb Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 16 Nov 2026 01:26:49 +0100 Subject: [PATCH 10/12] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=205=20=F0=9F=9F=A1=20(0=20misread);=20name=20no?= =?UTF-8?q?=20cut=20release=20in=20the=20move=20line?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From 9dd8441f3bee64289d9255149867ff5408a8e5e9 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 16 Nov 2026 01:32:41 +0100 Subject: [PATCH 11/12] Finish item 359 --- CHANGELOG.md | 1 + todo.md | 14 -------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c75121b4..b969f95c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- A release someone else cut while it still held plan items no longer stops the loop: those items count as the next release's, `chunk-preflight` tells the worker to move them there, and `loop-claude` routes on them. Where the plan names no later release and `todo.md` named none since the cut, the loop still asks which release they belong to. - `project-record open` now writes the copy of a record kept outside a file under a folder of the worktree that ran it, `~/.local/state/project-record///`, so two chunks of one project no longer overwrite each other's unsaved edit. It also removes the folders of worktrees git no longer lists. - `chunk-pr merge` merges the chunks of one project on a machine one at a time, and `--finish ` finishes each plan item in the chunk's turn, so `todo.md` and `CHANGELOG.md` no longer conflict between open chunks. A pull request that waits for an approval leaves the queue while it waits, and merge stops where a reviewer's comment waits for an answer. - Two loop-claude runs in one project now work side by side, each on its own chunk. Each loop holds a slot of the project, a locked file under `~/.local/state/loop-claude//`, and names its session after it: the first loop's session keeps its name, `A loop-claude`, and the second's is `A loop-claude 2`. A rerun resumes a chunk left open first. A commit in the config's folder now takes only the file it changed, as `git commit -m -- <file>`. diff --git a/todo.md b/todo.md index e7bcdd58..a6872a59 100644 --- a/todo.md +++ b/todo.md @@ -14,7 +14,6 @@ |---|---|---|---|---|---|---|---|---|---|---|---| | 382 | 0.11.0 | | | **Edit a Jira issue the loop filed, and score an unscored issue a teammate filed with a comment saying why.** | 4 | 2 | 3 | 7 | 4 | 1.6 by 3 | 0.8 | | 384 | 0.11.0 | | | **Rank an issue the loop files in Jira by its score among the issues the loop filed, a security finding first.** | 3 | 2 | 2 | 5 | 3 | 1.6 by 2 | 0.7 | -| 359 | 0.11.0 | | | **Keep working when someone else cuts a release, with items still open in it or commits of theirs in it.** | 3 | 2 | 3 | 6 | 5 | 1.6 by 3 | 0.6 | | 375 | 0.11.0 | | decision | **Run up to the project's configured number of chunks at once, each in its own window of one tmux session named for the project, mark a window whose chunk waits for the human, and refuse to start without tmux at the needed version.** | 4 | 2 | 3 | 7 | 7 | 1.5 by 7 | 0.6 | | 319 | 0.12.0 | | | **Start a fresh session with a brief of the chunk when a rung step changes the worker's model, in place of resuming the old session.** | 3 | 2 | 3 | 6 | 4 | 1.1 by 2, 1.4 by 2 | 1.2 | | 309 | 0.12.0 | | | **Run a scoring run's second pass on one head with two seats in place of four, once `larv-review agreement` shows the seats agree with each other more than a run agrees with its rerun.** | 2 | 2 | 2 | 4 | 2 | 1.4 by 3 | 1.2 | @@ -105,19 +104,6 @@ Touches: - `bin/todo_item/main.py`: the help's lines on `add` in a Jira epic - `docs/decisions.md`: "project config: `plan` may name a Jira Cloud epic …" -### 359. Keep working when someone else cuts a release, with items still open in it or commits of theirs in it. - -lilleman's calls. 2026-11-12: what a release is differs per client. 2026-11-16: a release stays a semver version in every project; an earlier wording of this item, which named sprints and projects without releases, misread that. What differs per client is who cuts the release and what lands in it: a teammate may cut it, and teammates' commits land towards it beside the loop's. - -Today the loop sees a cut from a `v<x.y.z>` tag on the default branch or a dated `CHANGELOG.md` heading, whoever made it, and counts every commit since as work landed. Where the cut release still holds open items, chunk-preflight stops with "ask the human which release they belong to". - -lilleman's answers, 2026-11-16: - -- The loop proceeds: the cut release's open items count as the next release's. The chunk moves them in the plan and says so in its opening line; in a Jira plan, where `todo-item` moves no item yet, it asks the human to. -- The loop reads no other mark of a cut yet, such as a tag spelled otherwise or a Jira Fix Version marked released. lilleman returns to that later. - -Readers: `release_standing.next_release` and `Cut`, chunk-preflight's choices, loop-claude's "release ready to cut", larv-review's `landed_towards`, `CLAUDE.md` → "Working loop". Item 368 covers calling a release review due for a plan outside the checkout. Cutting a release stays the human's or their team's, never the loop's. - ### 375. Run up to the project's configured number of chunks at once, each in its own window of one tmux session named for the project, mark a window whose chunk waits for the human, and refuse to start without tmux at the needed version. lilleman's call, 2026-11-13, splitting item 361. lilleman knows tmux and prefers it. loop-claude runs each chunk in its own window of one tmux session named for the project, such as session `loop-claude-config` with windows `item-372` and `item-373`. It runs up to the number of chunks the project's config allows at once, with 1 as the default, and starts the next chunk item 373's pass allows as each one merges. It uses tmux even at 1, so every project runs the same workflow (goal 1.3). Each window holds a loop-claude for its one chunk, so the interrupt and `/talk` work there as on any terminal. When a chunk waits for the human, loop-claude marks its window, renaming it to end in ` ?` and ringing the bell so tmux's status bar shows it, and clears the mark once it is answered. The DM each interrupt sends names the session and window to answer in, such as `loop-claude-config:item-372`, so the human goes straight to it. -- 2.52.0 From bad76b07c85fff8a3ff4c24c6c7ac5bfe923c69d Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv <lilleman@larvit.se> Date: Mon, 16 Nov 2026 01:33:15 +0100 Subject: [PATCH 12/12] =?UTF-8?q?Answer=20overrides=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20both=20over?= =?UTF-8?q?rides=20of=20the=20rank=20check=20are=20accepted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0