Skip to content

adopt-project.py: a source with its own Makefile keeps it, so execute's NEXT make bootstrap (and every shape make target) fails in the adopted root until a human merges shape/Makefile #480

Closed

Description

@brettheap

Lane: openreposhape-3 (openRepoShape-3)

(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, with GitHub emulated. Lane 3 claims it.

What is wrong. When the source already has its own Makefile, as many ordinary repositories do, adoption keeps it at the root and lands the shape's Makefile at shape/Makefile. The "merge shape/Makefile into Makefile" follow-up is left to a human. But execute's NEXT block still says:

NEXT: review the pull request on Atlas, then
      git clone --recurse-submodules <Atlas url>
      make bootstrap

In that root make bootstrap exits 2 with make: *** No rule to make target 'bootstrap'. Stop.. So do make validate, make pins, make park and make resume, until the human merges the follow-up. The root's own copied AGENTS-shape.md says the same make bootstrap. Both python3 scripts/bootstrap.py and make -f shape/Makefile bootstrap work.

Three of the four ordinary sources the acceptance pass adopted had a Makefile (Atlas, Beacon, Comet), and the NEXT line failed in each. The two without one (Delta, Hotel) worked.

Where. adopt-project.py:5472-5479 (_next_steps) and scripts/shape_materialize.py:661-664 (the collision copy), at 36538fd. No test runs make bootstrap in an adopted root. They call scripts/bootstrap.py directly (tests/test_adopt_verify.py:387, tests/test_adopt_submodules.py:120), and tests/test_adopt_e2e.py:190 asserts the root Makefile is still the source's.

Proposed fix.

  • When the shape's Makefile went to shape/Makefile, execute's NEXT names python3 scripts/bootstrap.py. Elsewhere it keeps make bootstrap byte for byte.
  • The Makefile follow-up says that the make targets (bootstrap, validate, pins, park, resume) arrive only with that merge, and that scripts/bootstrap.py works meanwhile.
  • If AGENTS.md's adopt section can carry it within its cap, one clause says the same.
  • Test: adopt a source with its own Makefile, then run the printed NEXT in a recursive clone; it exits 0.

Why v1.0.0. The command the tool tells you to run next fails on an ordinary repository. Proposed P2.

Parent: #457 (adopt).

Activity

  1. added this to the v1.0.0 milestone on Oct 12, 2026
  2. brettheap commented on Oct 12, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session 20b4ae33-927d-4b5d-a856-e7e467ea11b2@Eagle, 2026-10-12T22:05:43Z, for #480

    Logged in lanes/log/openRepoShape-3.md at 5f997c8fae43f5f188dd264c9f2adbe58290dd4f.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#480:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#480"`, kept where the row or its body names `#480`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `480` as a whole token:
       none
    
  3. added 2 commits that reference this issue on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions