You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
adopt-project.py: a source whose default branch is not main is adopted with both legs pushed, then its pull request is refused (--base main), and the printed way out repeats --base main #479
(lane openRepoShape-3, 2026-10-12T22:00Z) Found by lane 3's v1.0.0 acceptance pass: an assistant following AGENTS.md's "Adopting an existing repository" literally, on Linux, standard at 36538fd. GitHub was emulated: a stub gh and local bare repositories behind a url.insteadOf, the route tests/test_adopt_github_exits.py uses. Lane 3 claims it.
What is wrong. A source whose default branch is not main (an ordinary master or trunk repository) is adopted all the way, with both legs created and pushed, the split pushed and verified. Then the pull request is refused. The way out the tool prints repeats the same refused command.
Reproduction.
A source whose default branch is trunk, with a second branch develop.
Run plan --source testorg/Beacon --project Beacon. The plan records default_branch: trunk but tracking_branch: main.
Answer the questions; check says plan ok, exit 0.
Run execute --yes. It exits 2 after everything is pushed:
REFUSED opening the pull request ... gh pr create --repo testorg/Beacon --base main ...
pull request create failed: GraphQL: Base ref must be a branch
The branch IS pushed. Open the pull request by hand: gh pr create ... --base main ...
The printed by-hand command fails the same way.
AGENTS.md step 7 tells the assistant to finish with exactly that printed command, so following the documentation leads nowhere. The plan's own follow-up says the split goes "against the source's default branch", but execute uses --base <tracking_branch>, and that defaults to main whatever the source's default branch is (adopt-project.py:5960, :1450, :4478, :4744-4745 at 36538fd). AGENTS.md never mentions --tracking-branch. plan … --tracking-branch trunk works around it: --base trunk, exit 0.
Proposed fix (for review on the PR).
plan defaults tracking_branch to the source's own default branch, which it already reads into default_branch:. Then the root and both legs track the branch the source already uses, and the pull request's base is a branch that exists.
An explicit --tracking-branch still wins.
check names it as a finding when the plan's base is not a branch of the repository the pull request goes to. Then a hand-edited plan fails before anything is created, not after.
Tests: adopt a master source and a trunk source end to end in GitHub mode, so the pull request opens against that branch; an explicit --tracking-branch still wins; a plan whose base does not exist is a check finding.
Why v1.0.0. Adopting a repository whose default branch is master is about as ordinary as adoption gets, and it fails after pushing two new repositories. Proposed P1.
CLAIMED — lane openRepoShape-3, session 20b4ae33-927d-4b5d-a856-e7e467ea11b2@Eagle, 2026-10-12T22:04:46Z, for #479
Logged in lanes/log/openRepoShape-3.md at 8d191cec29d4ab233b4241f0b1e0d766dd3dbe12.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#479:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#479"`, kept where the row or its body names `#479`:
none
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `479` as a whole token:
none
Activity
brettheap commentedon Oct 12, 2026
CLAIMED — lane openRepoShape-3, session 20b4ae33-927d-4b5d-a856-e7e467ea11b2@Eagle, 2026-10-12T22:04:46Z, for #479
Logged in
lanes/log/openRepoShape-3.mdat8d191cec29d4ab233b4241f0b1e0d766dd3dbe12.The three reads (lane-collision-protocol Rule 1):
adopt-project.py: `execute` asks the assembly's remote for the tracki…
tests/test_ruleset_hint_tracking_branch.py: an adoption's source has …
adopt-project.py: the tracking-branch lookup that `execute` makes of …
tests/test_adopt_split_branch.py: `test_execute_refuses_a_repository_…
adopt-project.py: `plan` takes the tracking branch from the source's …
Merge origin/main (56713e2) into fix/scaffold-reuse-seeded-legs
tests: test_template_text_placeholders.py's adoption read-back gives …
templates: `project.yaml`, the leg pins and `family.yaml` quote their…
Merge origin/main af01068 into fix/adopt-root-kept-symlinks: `_entry_…
Merge main cc8f2da into fix/adopt-plan-quote-yaml-keywords (#181)
adopt-project.py: #181's misread gate names a tracking branch only wh…
tests: a misread tracking branch the source has as its own and its fe…
adopt-project.py: #181's misread gate asks a pin's product of the tab…
Merge origin/main d41cc29 into fix/adopt-root-kept-symlinks: #435's t…
adopt-project.py: with #514 and #516 merged, `--pin null@<commit>`, `…
Merge origin/main (de428f5) into fix/418-adopt-submodule-url-answers
adopt-project.py: `plan` refuses `--id ''` and `--elected-by ''` by n…
adopt-project.py: `_default_branch` keeps a branch name's byte that i…