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, 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
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.
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
Activity
brettheap commentedon Oct 21, 2026
CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-10-21T10:42:44Z, for #1061
Logged in
lanes/log/openRepoShape-1.mdat9ff5ac3bd99515c2bb20e1f8d0f0ce69ecece918.The three reads (lane-collision-protocol Rule 1):
README.md, adopt-project.py and the handbook: README says that `make`…
scripts/shape_materialize.py: `adopt_makefile_block`'s docstring says…
Merge main 9729315 into #1138's branch
Merge main 9729315 (#1123) into fix/1132-template-bootstrap: #1123's …