From 41b8b2a3d98571d176fcfc05b03949ef8001394d Mon Sep 17 00:00:00 2001 From: Lilleman Date: Mon, 30 Nov 2026 16:06:19 +0100 Subject: [PATCH] File item 561: clean up a merged do-epic chunk without a running slot --- todo.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/todo.md b/todo.md index db2d8ccc..b24a0272 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 0.1` -`Next ID = 561` +`Next ID = 562` ## Items @@ -15,6 +15,7 @@ | 560 | 0.17.0 | | question | **Decide whether goal 1 still says "out of Claude Code", and what goal 3 backs up now that others install the setup.** | 1 | 2 | 1 | 2 | 1 | 1 by 1 | 0.4 | | 480 | 0.18.0 | | owner | **Resolve every path the tools use in one module: the release root (the folder the running code ships in), the config folder, the state folder and the Claude home. Then only that module names `~/.claude`, and the loop still runs from `~/.claude`.** | 3 | 2 | 3 | 6 | 6 | 1.6 by 3, code health by 3 | 1.9 | | 481 | 0.18.0 | 480 | owner | **Put the release's tools on `PATH` for every session the loop starts and every hook it runs, name them bare in the prose in place of `~/.claude/bin/`, and refuse the old spelling in new prose.** | 3 | 2 | 3 | 6 | 6 | 1.4 by 2, 2 by 2, code health by 2 | 1.5 | +| 561 | 0.18.0 | | | **Clean up a do-epic chunk whose pull request has merged without waiting for a running slot, and close its window.** | 2 | 2 | 2 | 4 | 3 | 1.5 by 2 | 0.5 | | 482 | 0.19.0 | 481 | owner | **Install the setup with `uv tool install` from a release tag, with `build-release` and `build-epic` on `PATH`, and replace `deploy-release` with `build-release self-update`.** | 3 | 2 | 3 | 6 | 7 | 1.6 by 4, 1.3 by 3, 2 by 6 | 1.6 | | 485 | 0.19.0 | 482 | owner | **Rename `loop-claude` to `build-release`, and keep `loop-claude` as an alias that warns, for one release.** | 2 | 2 | 3 | 5 | 4 | 1.3 by 2, 5 by 2 | 2.5 | | 483 | 0.19.0 | 482 | owner | **Run every claude the loop starts in a Claude home the install generates from the release, with hooks that point into it and `build-release login` to sign in there, so the human's `~/.claude` stays theirs.** | 4 | 2 | 3 | 7 | 7 | 1.6 by 6, 2 by 8 | 0.9 | @@ -125,6 +126,12 @@ Part of the standalone-install plan lilleman approved on 2026-11-20. Today about Part of the standalone-install plan lilleman approved on 2026-11-20. About 70 places in `CLAUDE.md`, `rules/`, `skills/` and `agents/` name a tool by its path in `~/.claude/bin/`. Keeping the tools on `PATH` only inside the loop's sessions keeps short names such as `wait-for` out of the human's shell. And prose that names no install folder works under every harness. +### 561. Clean up a do-epic chunk whose pull request has merged without waiting for a running slot, and close its window. + +Today a parked chunk whose pull request is no longer open (`gates.Unopened`, `bin/do_epic/gates.py`) gets news for its worker to remove the worktree (`parking.news_after`). That worker needs a running slot, so behind the epic's `**Max parallel chunks:**` cap or the repo's `parallel-chunks`, the chunk stays parked with "it may be merged or closed already, but the chunk stays parked", and its window lingers for days. On a team epic, the issue of one such chunk was already Done while its window still read "awaits a slot". The person reads that as stuck work, and once a slot frees, a whole worker run goes to `chunk-pr clean`. + +Fix: where the pull request has merged and the worktree holds nothing the branch on origin lacks, do-epic runs `chunk-pr clean` in the worktree itself, finishes the chunk as a merged one, starts what it unblocks, and closes the window, taking no slot. A pull request closed unmerged, or a worktree with unpushed work, still goes to a worker as today. + ### 482. Install the setup with `uv tool install` from a release tag, with `build-release` and `build-epic` on `PATH`, and replace `deploy-release` with `build-release self-update`. Part of the standalone-install plan lilleman approved on 2026-11-20. Add a `pyproject.toml` that ships the Markdown as package data. `uv tool install` keeps each tool in an environment of its own, so `build-release self-update` reinstalls it from the newest tag, and reinstalling an older tag rolls it back.