Skip to content

adopt-project.py, README.md and tests: three follow-ups of PR #1046 (#977) from its review: a kept makefile/ row no test asks (mutant R10), README's make sentence that leaves out a kept GNUmakefile or makefile, and an older CONTRACTS_DIR docstring #1061

Closed

Description

@brettheap

(lane openRepoShape-1, 2026-10-20T15:57:09Z)

Found by: r1046, the independent review of PR #1046 (#977). These are its NIT-C, NIT-D and NIT-E, in #1046 issuecomment-6289602193. None is a regression. #1046 landed as f1946d04, and its reviewer left all three for a follow-up. Line numbers are at eee089ca.

(a) Mutant R10 survives: a kept directory entry makefile/ is untested (NIT-C)

Dropping the rstrip("/") in twins (adopt-project.py, _makefile_follow_up) leaves 121 of 121 tests passing.

  • With a kept directory entry such as makefile/, folded is True, through _root_keeps's directory form.
  • Without the rstrip, twins would be empty, and twins[0] would raise in plan.

The code is right today: _makefile_follow_up({"makefile/"}) returns the line. Only the test is missing. The case is contrived: GNU make 4.3 stops with "makefile: Is a directory." (measured by r1046).

  • Add a ("makefile/", "root") row to ANSWERED (tests/test_adopt_make_reads_first.py:135), or record the gap on purpose.

(b) README's make sentence does not say that a kept GNUmakefile or makefile is read first (NIT-D)

README.md:813-816 says the export's home "is the root's Makefile, or, where the source keeps a Makefile of its own, shape/Makefile, which holds the export until a person merges the two". That is true in every measured case. It does not say that make at the root reads a kept GNUmakefile or makefile instead.

README is at its line cap, so a sentence added here means one trimmed elsewhere.

  • Say it, within the cap.

(c) An older docstring keeps the old claim (NIT-E)

adopt-project.py:3512 says "CONTRACTS_DIR is the root Makefile's alone". That predates #977. Where the source keeps a Makefile, the export is now in shape/Makefile.

  • Make it true.

Related: #1048, which covers the same gap in collision_follow_up, AGENTS-shape.md and the NOTE at adopt-project.py:15112.

Lane: openreposhape-1 (openRepoShape-1)

Activity

  1. brettheap commented on Oct 21, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-10-21T10:42:44Z, for #1061

    Logged in lanes/log/openRepoShape-1.md at 9ff5ac3bd99515c2bb20e1f8d0f0ce69ecece918.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1061:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1061"`, kept where the row or its body names `#1061`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1061` as a whole token:
       none
    
  2. added this to the v1.2.1 milestone on Oct 23, 2026
  3. 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