Merge origin/main into item-451, refiling its two plan items as 457 and 458
CI / tests (pull_request) Has been cancelled
CI / tests (pull_request) Has been cancelled
This commit is contained in:
@@ -6,21 +6,19 @@
|
||||
|
||||
`Bar = 0.1`
|
||||
|
||||
`Next ID = 458`
|
||||
`Next ID = 459`
|
||||
|
||||
## Items
|
||||
|
||||
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|
||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||
| 448 | 0.13.0 | | | **Read a team's own repo labels as do-epic's picks, through a label table in its config, and treat an item that has sub-tasks as split, so planning never files sub-tasks beside the team's own.** | 3 | 2 | 2 | 5 | 4 | 1.6 by 8 | 2.2 |
|
||||
| 452 | 0.13.0 | | | **Make do-epic's view of the Jira workflow settings: the statuses at which an issue unblocks the issues it blocks, and the moves the team's own automation makes, so do-epic makes none of those.** | 3 | 2 | 2 | 5 | 5 | 1.6 by 7, 1.5 by 3 | 2.1 |
|
||||
| 449 | 0.13.0 | 448 | | **Record do-epic's repo picks and sub-task summaries in the team's own spelling, such as `core-4` and `core-4: Bygg …`, as its config sets them.** | 2 | 2 | 2 | 4 | 3 | 1.6 by 6 | 2.0 |
|
||||
| 449 | 0.13.0 | | | **Record do-epic's repo picks and sub-task summaries in the team's own spelling, such as `core-4` and `core-4: Bygg …`, as its config sets them.** | 2 | 2 | 2 | 4 | 3 | 1.6 by 6 | 2.0 |
|
||||
| 451 | 0.13.0 | | | **Add a project setting `merge = "human"`, under which a chunk leaves its pull request ready for a person to merge, and a do-epic chunk parks until the pull request is merged.** | 3 | 2 | 3 | 6 | 5 | 1.6 by 7 | 1.4 |
|
||||
| 457 | 0.13.0 | 451 | | **Resume a chunk whose pull request awaits a person's merge once it no longer merges cleanly into the default branch, so the worker brings it level again.** | 3 | 2 | 2 | 5 | 4 | 1.6 by 4, 1.5 by 3 | 1.9 |
|
||||
| 458 | 0.13.0 | 451 | | **Resume a chunk whose pull request awaits a person's merge once it no longer merges cleanly into the default branch, so the worker brings it level again.** | 3 | 2 | 2 | 5 | 4 | 1.6 by 4, 1.5 by 3 | 1.9 |
|
||||
| 453 | 0.13.0 | | | **Make the issue types that do-epic and `todo-item add` file in Jira settings, since a Jira project such as TW has no Task type.** | 2 | 2 | 1 | 3 | 2 | 1.6 by 5 | 1.8 |
|
||||
| 456 | 0.13.0 | 451 | | **Keep loop-claude from starting a chunk for an item whose pull request is ready and awaits a person's merge under `merge = "human"`.** | 3 | 2 | 2 | 5 | 5 | 1.6 by 5, 1.4 by 3 | 1.7 |
|
||||
| 457 | 0.13.0 | 451 | | **Keep loop-claude from starting a chunk for an item whose pull request is ready and awaits a person's merge under `merge = "human"`.** | 3 | 2 | 2 | 5 | 5 | 1.6 by 5, 1.4 by 3 | 1.7 |
|
||||
| 450 | 0.13.0 | | | **Add `do-epic <EPIC-KEY> --dry-run`, which prints every Jira write planning would make and each chunk that would start, and makes none of them.** | 2 | 2 | 2 | 4 | 3 | 1.6 by 5 | 1.6 |
|
||||
| 455 | 0.13.0 | | | **Let a chunk file a follow-up issue that its own issue blocks, with `do-epic --file --blocked-by` and `--parent`, so a change a repo ships as two pull requests gets an issue for each.** | 2 | 2 | 1 | 3 | 2 | 1.6 by 4 | 1.4 |
|
||||
| 454 | 0.13.0 | | | **Start a do-epic chunk's issue as the team's board expects, by settings: assigned to the account do-epic works as, moved by a start transition and added to a board's active sprint.** | 3 | 2 | 2 | 5 | 4 | 1.6 by 4 | 1.1 |
|
||||
| 446 | 0.14.0 | | question | **Kill the process a stuck check names where its verdict is `stuck`, once the human says the recorded verdicts match what they would have done.** | 2 | 2 | 3 | 5 | 3 | 1.5 by 3 | 1.0 |
|
||||
| 77 | 0.14.0 | | | **Teach `bin/metric-bench` Go and TypeScript, rerun it once two projects' comprehension histories name places, and bring into review only a metric that tracks the panel.** | 4 | 2 | 1 | 5 | 6 | 1.1 by 7, 1.4 by 7 | 2.1 |
|
||||
@@ -37,6 +35,7 @@
|
||||
| 149 | 0.14.0 | | decision | **Fill each release by priority up to a capacity it states, in place of the bar, and move what does not fit to a later release.** | 4 | 2 | 3 | 7 | 5 | 1.1 by 7 | 1.6 |
|
||||
| 165 | 0.14.0 | | | **Make this repo's tests assert the facts a prompt or help text carries in place of its sentences, and drop the tests that scan source or assert a constant.** | 3 | 2 | 1 | 4 | 5 | 1.1 by 4, 1.4 by 3 | 1.6 |
|
||||
| 392 | 0.14.0 | | owner | **Group bin/'s packages by concern into seven folders (plan, records, integrations, loop, review, forge and host), so a newcomer finds a tool's neighbours in one place.** | 3 | 1 | 3 | 5 | 7 | code health by 4 | 1.6 |
|
||||
| 456 | 0.14.0 | | | **Make the child-shell stop test pass under load, so a full test run doesn't fail on a race.** | 2 | 2 | 2 | 4 | 2 | 1.1 by 2, 1.5 by 2 | 1.6 |
|
||||
| 151 | 0.14.0 | | decision | **Keep 10 to 20 settled decisions per project as its goals' test set, and rerun them after a goal changes.** | 3 | 2 | 2 | 5 | 5 | 1.2 by 7 | 1.6 |
|
||||
| 68 | 0.14.0 | | principle | **Test `workflow-bench/compare.py`'s blinding and `bench.py`'s run plan.** | 2 | 1 | 1 | 2 | 4 | 1.1 by 5 | 1.5 |
|
||||
| 102 | 0.14.0 | | | **Give loop-claude's retry delay, and the file it reads the machine's memory from, environment overrides, so the black-box test stops replacing `time.sleep` and `machine_load.memory.MEMINFO` through `sitecustomize`.** | 1 | 1 | 2 | 2 | 3 | 1.1 by 4 | 1.5 |
|
||||
@@ -79,32 +78,6 @@
|
||||
|
||||
## Details
|
||||
|
||||
### 448. Read a team's own repo labels as do-epic's picks, through a label table in its config, and treat an item that has sub-tasks as split, so planning never files sub-tasks beside the team's own.
|
||||
|
||||
do-epic reads an item's repo only from a `repo:<name>` label. A team that labels each issue with its repo's name, or with a short name such as `twu-4` for `tenant-web-ui-4`, gets no issue counted as placed. Planning then predicts every open item's repos again and can file sub-tasks beside the ones the team filed, and the team's own sub-tasks never run. On TW-13503, nine items with 40 sub-tasks between them would have been split again, two of them under issues with open pull requests. docs/decisions.md → `do-epic: drives one Jira epic …` already says that on the first machine, an item's label that equals a repo's name names that repo.
|
||||
|
||||
- A table in do-epic's config.toml maps a team's label to a repo's name, such as `[repo-labels]` with `twu-4 = "tenant-web-ui-4"`. A label the table maps records a pick, as `repo:<name>` does, wherever a pick is read: planning, the scheduler, human tasks, findings, finishing and the chunk's own run.
|
||||
- An open item that has any sub-task counts as split. Planning never predicts its repos or files a sub-task under it, and the scheduler works it through its sub-tasks, as it does an item labelled `split-by-repo`.
|
||||
- Test it on the in-memory backend with an epic shaped as TW-13503: parents whose sub-tasks carry the team's labels, and an item labelled with a short name.
|
||||
- `scheduler.chunks` sits next to `start_chunks`, a place the comprehension seats found hard to follow; leave `chunks` easier to read than it was.
|
||||
|
||||
Touches:
|
||||
|
||||
- `bin/do_epic/repo_pick.py`: `recorded`, `of_label`
|
||||
- `bin/do_epic/split.py`: `split`, `finished`
|
||||
- `bin/do_epic/planning.py`: `planned`, `placed`, `answered`, `ranked_keys`
|
||||
- `bin/do_epic/scheduler.py`: `chunks`, `held_up`
|
||||
- `bin/do_epic/human_tasks.py`: `notifier_checkout` (small)
|
||||
- `bin/do_epic/finish.py`: `repo_of` (small)
|
||||
- `bin/do_epic/findings.py`: `written` (small)
|
||||
- `bin/do_epic/main.py`: `chunk_run` (small), `chunk_root` (small), `split_items_closed` (small)
|
||||
- `bin/do_epic/config.py`: `DoEpicConfig`, `load`
|
||||
- `bin/do_epic/test_repo_pick.py`
|
||||
- `bin/do_epic/test_split.py`
|
||||
- `bin/do_epic/test_planning.py`
|
||||
- `bin/do_epic/test_scheduler.py`
|
||||
- `README.md`: `### Set up a project` (small)
|
||||
|
||||
### 452. Make do-epic's view of the Jira workflow settings: the statuses at which an issue unblocks the issues it blocks, and the moves the team's own automation makes, so do-epic makes none of those.
|
||||
|
||||
do-epic counts an issue as done only where Jira's status category is done, and moves a finished chunk's issue to done itself, by `jira-finish-transition`. On a team whose CI moves issues through the workflow, both are wrong. On TW, CI moves an issue to Code Review when its pull request opens, to Release Ready when it merges, and to Done when it is deployed. So do-epic would move an issue to Done before it is deployed, and would hold every blocked issue until the blocker is deployed, though the team wants blocked work to start once the blocker's pull request merges.
|
||||
@@ -168,7 +141,7 @@ Touches:
|
||||
- `bin/do_epic/test_main.py`
|
||||
- `README.md`: `### Set up a project` (small), `## Tools` (small)
|
||||
|
||||
### 457. Resume a chunk whose pull request awaits a person's merge once it no longer merges cleanly into the default branch, so the worker brings it level again.
|
||||
### 458. Resume a chunk whose pull request awaits a person's merge once it no longer merges cleanly into the default branch, so the worker brings it level again.
|
||||
|
||||
Under `merge = "human"` a pull request stays ready for hours or days while the default branch moves. A conflict, such as each branch holding its own changelog bullet or plan edit, or a branch protection that requires an up-to-date branch, then blocks the person who would merge it. Yet `gate` in `bin/do_epic/gates.py` reads only the draft state, the checks, the review decision and the waiting threads, so the window and `--status` keep saying `awaits your merge`, and nothing resumes the chunk unless a reviewer comments.
|
||||
|
||||
@@ -202,7 +175,7 @@ Touches:
|
||||
- `bin/do_epic/backend/test_jira.py`
|
||||
- `README.md`: `### Set up a project` (small)
|
||||
|
||||
### 456. Keep loop-claude from starting a chunk for an item whose pull request is ready and awaits a person's merge under `merge = "human"`.
|
||||
### 457. Keep loop-claude from starting a chunk for an item whose pull request is ready and awaits a person's merge under `merge = "human"`.
|
||||
|
||||
Under `merge = "human"`, `chunk-pr merge` leaves a chunk's pull request ready, with its item finished only on the branch. Until a person merges it, the default branch's plan still holds the item, so `chunk-preflight` names it as the next item again. loop-claude then starts a cycle that can only run `chunk-pr merge` once more and end, and it does so every cycle until the merge.
|
||||
|
||||
@@ -239,23 +212,6 @@ Touches:
|
||||
- `bin/do_epic/test_planning.py`
|
||||
- `README.md`: `## Tools` (small)
|
||||
|
||||
### 455. Let a chunk file a follow-up issue that its own issue blocks, with `do-epic --file --blocked-by` and `--parent`, so a change a repo ships as two pull requests gets an issue for each.
|
||||
|
||||
One epic issue is one chunk and one pull request. Some repos ship a change as two pull requests in two releases, as Timewave's legacy repos do: first a pull request that pins and isolates today's behaviour, then the one that changes it, each with its own ticket and the first blocking the second. A chunk in such a repo can't file the second issue so that it waits for the first, so the human must split those issues by hand before the run.
|
||||
|
||||
- `do-epic <EPIC-KEY> --file` takes `--blocked-by <KEY>`, which links the new issue as blocked by that issue of the epic, so a chunk files its second step and finishes its own.
|
||||
- `--file` also files a sub-task, with `--parent <KEY>`, where the chunk's issue is a sub-task of a split item, so the second step stays under the same item.
|
||||
- The chunk's instructions say when to use it: where the repo's rules ask for a change to ship as more than one pull request.
|
||||
|
||||
Touches:
|
||||
|
||||
- `bin/do_epic/findings.py`: `parsed`, `written`, `instructions`, `USAGE`, `HELP`
|
||||
- `bin/do_epic/backend/protocol.py`: `EpicStore` (small)
|
||||
- `bin/do_epic/backend/jira.py`: `JiraEpic.file`
|
||||
- `bin/do_epic/backend/fake.py`: `MemoryEpic.file` (small)
|
||||
- `bin/do_epic/test_findings.py`
|
||||
- `README.md`: `## Tools` (small)
|
||||
|
||||
### 454. Start a do-epic chunk's issue as the team's board expects, by settings: assigned to the account do-epic works as, moved by a start transition and added to a board's active sprint.
|
||||
|
||||
When a do-epic chunk starts, its issue stays as Jira holds it: unassigned, in New and outside the sprint. A team whose board shows who works on what, such as TW, where an issue being worked is assigned to the person, In Progress and in the active sprint, then sees nothing of the loop's work. Today each worker would have to do this by hand, from rules only some machines hold.
|
||||
@@ -413,6 +369,19 @@ Group `bin/` by concern, one package level per group, with the launchers left at
|
||||
|
||||
`repo_checks` stays at the root, since it tests the repo, not a tool. The README's `bin/` list then becomes seven short groups. That list is a place the comprehension seats found hard (`README.md` → the `bin/` package list): make it easier to read.
|
||||
|
||||
### 456. Make the child-shell stop test pass under load, so a full test run doesn't fail on a race.
|
||||
|
||||
Found in a full `bin/run-tests` run on 2026-11-19, on a loaded machine: `ChildShells.test_stops_a_shell_and_the_process_it_started_and_no_other` (`bin/loop_effects/test_effects.py:243`) failed at line 249 with `AssertionError: 0 != -15`, and its file passed alone right after (36 passed). The branch changed nothing under `bin/loop_effects`.
|
||||
|
||||
The race, as far as reading shows: `child_shells.stop` sends SIGTERM to the shell's descendants first and to the shell last. The test's shell runs `sleep 60; true`. Once `sleep` dies, bash goes on to `true` and exits 0. When the test's process is descheduled between the two `os.kill` calls, bash has already exited, and the SIGTERM to its zombie does nothing, so `wait` returns 0. The same window is open in production: a shell running a loop, such as `until false; do sleep 60; done`, can start its next child between the kills, and that child outlives the stop, against `stop`'s docstring. `stop` is called by loop-claude's lingering-worker check (`bin/agent_cycle/lingering_workers.py:29`, through `bin/loop_effects/effects.py:106`).
|
||||
|
||||
So the fix likely belongs in `stop`, not only in the test: signal the shell before its descendants, or SIGSTOP it first, so it can't run anything after its child dies. Make the test fail on the old order deterministically, for example with a shell whose loop restarts its child, rather than relying on timing.
|
||||
|
||||
Touches:
|
||||
|
||||
- `bin/loop_effects/child_shells.py`: `stop` (small)
|
||||
- `bin/loop_effects/test_effects.py`: `ChildShells.test_stops_a_shell_and_the_process_it_started_and_no_other`
|
||||
|
||||
### 151. Keep 10 to 20 settled decisions per project as its goals' test set, and rerun them after a goal changes.
|
||||
|
||||
Each case is a question the project settled and the answer it chose. A fresh-context agent given only the README's premises answers each case; a case it answers differently says the goals no longer decide it. Written guidance can fail to change behaviour, which is why the goals get a test.
|
||||
|
||||
Reference in New Issue
Block a user