Skip to content

adopt-project.py and the assembly-root template: follow-ups from RV1105's and RV1121's reviews of #1105 and #1121 (make bootstrap in the template, a kept GNUmakefile/ directory, python3 on Windows, GNU_MAKE_READS twice, stale follow-ups) #1132

Closed

Description

@brettheap

(lane openRepoShape-4, 2026-10-21T15:24:08Z)

These are follow-ups from two independent reviews:

None of them blocks either PR. Each PR's own fix round is under way, and #1105's adopts #1121's wording ("has them"), which settles RV1105's NIT 1 and RV1121's NIT-3.

  1. The assembly-root template still says make bootstrap with no caveat (RV1105's NIT 6, RV1121's NIT-4). RV1121 cites templates/assembly-root/AGENTS-shape.md line 19 and its five-commands table, and templates/assembly-root/README.md lines 17 and 34. Each gives make bootstrap for a root where GNU make may read a kept GNUmakefile or makefile first, and then finds no bootstrap rule.
  2. A kept directory named GNUmakefile/ or makefile/ gets a NOTE that cannot be true of a directory (RV1121's NIT-1). GNU make stops on it with "Is a directory. Stop." _makefile_follow_up says the same. No row covers the case, and RV1121's mutant X1 (the lookup drops the directory form) survives.
    • Fix: in all three texts, name a kept directory as one that GNU make stops on, and add a row.
  3. NEXT prints python3, but the template's scripts/bootstrap.py says "python on Windows" (RV1121's NIT-2). Main already prints python3 this way for a kept Makefile, in 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's NOTE.
    • Fix: name both, as the script's docstring does.
  4. GNU_MAKE_READS is defined twice (RV1105's NIT 5): in adopt-project.py and in scripts/shape_materialize.py, with a test holding the two equal. adopt-project.py already imports from shape_materialize. Once shape_materialize.py and the pinned AGENTS-shape.md: where the root keeps a GNUmakefile or a makefile, which GNU make reads first, the Makefile collision follow-up no longer says the shape's make targets arrive with the merge, and the pinned file says make reads the first of the three and the block reaches it only once that file holds it (#1048) #1105 and adopt-project.py: execute's NEXT prints python3 scripts/bootstrap.py where GNU make at the root reads a kept GNUmakefile or makefile, and its NOTE names that file and what it takes for make bootstrap to run there (#1047) #1121 land, the lookup of the first of GNUmakefile and makefile that the root keeps is also written three times: in _makefile_follow_up, _predict_collisions and _next_steps.
    • Fix: after both PRs land, import the tuple, and serve all three lookups from one helper.
  5. Follow-ups go stale after a hand edit of the plan (RV1105's NIT 8, older than shape_materialize.py and the pinned AGENTS-shape.md: where the root keeps a GNUmakefile or a makefile, which GNU make reads first, the Makefile collision follow-up no longer says the shape's make targets arrive with the merge, and the pinned file says make reads the first of the three and the block reaches it only once that file holds it (#1048) #1105). The plan writes its follow-ups once. A hand move of GNUmakefile to a leg, which contracts/path-classification.yaml invites, leaves a line naming a file the root no longer keeps.
    • Fix: have check and execute work out the follow-ups from the plan as it stands, or check the written ones against it.

Lane: openreposhape-4 (openRepoShape-4)

Activity

  1. brettheap commented on Oct 22, 2026

    @brettheap
    ContributorAuthor

    (lane openRepoShape-4, 2026-10-22T12:26:09Z)

    RV1105b's independent review of #1105's fix round (b28f40de, on top of 5a4de7f7) found READY, with no MUST and no SHOULD: pull/1105#issuecomment-6321479057. Its five NITs are follow-ups to the ones above (RV1105's) and are added here. They are numbered NIT-1 to NIT-5 as RV1105b numbered them. Measured with GNU make 4.3 in 174 scratch states, and on a scratch merge of main 4ed7c7bf5 and #1105.

    1. NIT-1: the comments still say the merge alone brings the targets "only where that file includes Makefile", which is untrue where the file is a symlink to Makefile.

      • RV1105's SHOULD-1 named this case: "or is a link to it".
      • With Makefile and GNUmakefile -> Makefile (and the same with makefile), make bootstrap exits 2 before the merge. After the merge alone it runs the shape's recipe, and make contracts-dir prints the path. The file includes nothing. The printed follow-up is true there, because through the link X "has them".
      • The places are the SHAPE_MAKE_TARGETS comment, the collision_follow_up docstring ("exits 2 with the same No rule where it does not"), the ADOPTED_SENTENCES comment and the test module's docstring.
      • Fix: "only where that file includes Makefile or is a link to it".
    2. NIT-2 (older than shape_materialize.py and the pinned AGENTS-shape.md: where the root keeps a GNUmakefile or a makefile, which GNU make reads first, the Makefile collision follow-up no longer says the shape's make targets arrive with the merge, and the pinned file says make reads the first of the three and the block reaches it only once that file holds it (#1048) #1105): the branch with no reads_first still says "neither make bootstrap nor python3 scripts/bootstrap.py runs the shape's bootstrap before both merges are made", which is untrue of python3 scripts/bootstrap.py.

    3. NIT-3: two docstrings are left with claims that are not true on main.

    4. NIT-4: no row ties the template's new clause to what make does.

      • RV1105b's mutant K9 puts the template and ADOPTED_SENTENCES back to "and never the shape's Makefile", together, and all 118 rows pass. The clone rows already show make reading the shape's Makefile through include Makefile where the source keeps makefile or GNUmakefile alone.
      • Fix (optional): in that branch, also assert that the pinned file does not say "never the shape's Makefile".
    5. NIT-5 (cosmetic): the template paragraph was not rewrapped, and a test docstring breaks mid-sentence.

      • The template paragraph leaves a short line, "does. A SCAFFOLDED". The new test's docstring breaks mid-sentence: "The tail says what the / script's merge does".
      • Fix: every byte change to the template makes each project re-pin, so leave the template one for the next template change, and rewrap the test docstring now.

    Lane: openreposhape-4 (openRepoShape-4)

  2. brettheap commented on Oct 22, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-22T20:05:31Z, for #1132

    Logged in lanes/log/openRepoShape-5.md at 1a3e45baee233936006903e4b164fa66827f8149.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1132:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1132"`, kept where the row or its body names `#1132`:
    1155	docs/release-notes/v1.2.0.md: the v1.2.0 release notes, a first draft for Brett Heap to amend before the tag	docs/v1.2.0-release-notes	MERGED
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1132` as a whole token:
       none
    
  3. added this to the v1.2.1 milestone on Oct 23, 2026
  4. added 2 commits that reference this issue on Oct 23, 2026
  5. added 2 commits that reference this issue on Nov 8, 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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions