diff --git a/todo.md b/todo.md index eb49e9e0..55bc531a 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 0.1` -`Next ID = 548` +`Next ID = 549` ## Items @@ -14,6 +14,7 @@ |---|---|---|---|---|---|---|---|---|---|---|---| | 477 | 0.17.0 | | question | **Rewrite `## Goals` and `## Audience` for a setup others install and run apart from their own `~/.claude`.** | 1 | 1 | 2 | 2 | 2 | | 0.0 | | 478 | 0.17.0 | | question | **Name the project, its repo and its two commands, today proposed as `do-release` and `do-epic`.** | 1 | 1 | 2 | 2 | 1 | | 0.0 | +| 548 | 0.17.0 | | defect | **Treat a chunk whose recorded base is origin's default branch as merging into that branch, so `chunk-pr merge` honours `merge = "human"` and `wait-for-approval` there.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 3 | 1.3 | | 546 | 0.17.0 | | | **Have stability-reviewer check a change's setup steps for an outside service against the service's current documentation, and each command against the service against every state the service may be in.** | 1 | 2 | 2 | 3 | 2 | 1.1 by 3 | 1.2 | | 542 | 0.17.0 | | | **Make chunk-preflight report a project whose code is space-indented with no `.editorconfig` or formatter setting that says so, and narrow the tabs principle to explicit overrides.** | 2 | 2 | 3 | 5 | 4 | 1.1 by 4 | 1.2 | | 523 | 0.17.0 | | | **Make the security pass and stability-reviewer check that a new secret's docs name its scope and its reach, such as the other repositories its account can use.** | 1 | 1 | 2 | 2 | 1 | 1.1 by 2 | 0.9 | @@ -121,6 +122,17 @@ Part of the standalone-install plan lilleman approved on 2026-11-20. `do-release Part of the standalone-install plan lilleman approved on 2026-11-20. Later items say `do-release` and `do-epic` for the names this item picks. The names set the install folders, such as `~/.config/do-release/`, so items 482, 485 and 496, and every item they block, wait for them. +### 548. Treat a chunk whose recorded base is origin's default branch as merging into that branch, so `chunk-pr merge` honours `merge = "human"` and `wait-for-approval` there. + +`base_of` in `bin/chunk_pr/main.py` returns `to_epic=True` for any branch whose `branch..chunk-base` is set in git's config. In a project that sets `epic-branch`, a chunk that goes into the default branch instead of the epic's working branch can still record `chunk-base = main`. Then `chunk-pr merge` skips `merge = "human"` and `wait-for-approval` and runs `gh pr merge` into `main`. In one chunk, only the repo's branch protection stopped that merge. A repo without protection would have merged into its default branch with no person involved. + +The fix: where the recorded base equals origin's default branch, `base_of` returns `Base(default, False)`. Write the test first: a checkout that records `chunk-base` as the default branch under `merge = "human"` leaves the pull request unmerged. + +Touches: + +- `bin/chunk_pr/main.py`: `base_of` (small) +- `bin/chunk_pr/test_chunk_pr.py` + ### 546. Have stability-reviewer check a change's setup steps for an outside service against the service's current documentation, and each command against the service against every state the service may be in. An outside auto-reviewer found three faults in one chunk that our passes missed. The chunk wrote the steps to set up a package registry's trusted publisher, and a workflow command that publishes to that registry. The steps left out a permission the registry's current docs require: the registry had changed a default some months before. And two commands failed where the registry already held a higher version, a state no reviewer enumerated.