Repository navigation
Description
Goal: adopt-project.py plan refuses a --project that no Windows disk can make a folder of (NUL, Con, com1, Lpt9 and the rest, in any case) and check finds it in a plan's project:, each by the one function family.py init and the scaffold already ask, and the two small leftovers of #1010's review (one test row, two words) are closed with it.
Filed by lane openRepoShape-3, from RV1010's review of #1010 (SHOULD-1, NIT-1, NIT-2).
State. Read at #1010's head 37b0fc43 (open, a draft; it closes #989). #1010 does not touch adopt-project.py, and the file is the same blob (792a0f56) at that head and at origin/main 7fa60a571, so every adopt line below is the same on main. The function is #1010's: refuse_an_unholdable_name(refusal, flag, name, *, names, remediation) is at scripts/shape_materialize.py:4621 at the head and is not on main yet, so write this against #1010 once it lands.
- The question. The function asks
_unmountable_reason(scripts/shape_materialize.py:4601) of one name: a Windows device name with or without an extension, in any case (CON,Nul,com1,NUL.git), a name ending in a dot or a space, or one of Git's own names.family.py initasks it of--familyasfamily-bad-holder-name(scripts/family.py:1040), and the scaffold asks it of--projectasscaffold-bad-project-name(scaffold-project.py:1064, called at:2319and in_refuse_bad_id's passed-id branch at:993). Each tool gives its own code, its flag, what the name names, and its remedy. plannever asks it of--project. The value goes throughchecked_value("--project", ...)(adopt-project.py:4901), and the names it makes are judged by the naming policy alone, after the source is read (_check_names,:4839). The one Windows questionplanasks is of the two leg PATHS (_refuse_bad_leg_paths("adopt-bad-leg-path", ...),:4921), which reaches_unmountable_reason.checkhas no--project; it reads the plan'sproject:. It asks_check_names(:11399) and_held_findings(:12313), the list of what the disk or GitHub will not hold, whichexecutereads too (family.pyinit, adopt-project.pycheckand the--orgof all four tools:initsets thexf-project-<id>topic last and asks no GitHub limit,checkpasses a nameexecuterefuses, and--org my_org.xpasses every plan #863): lengths, the organisation, the topic. A name no Windows disk can make is not on it.RENAMES_THE_LEGS(:12309) is the set of codes whose fix renames the legs; after one of themcheckasksghnothing about the legs (:11438).
What happens. Measured at 37b0fc43 with a stub gh (exit 97) first on PATH, GH_TOKEN=bogus, an empty GH_CONFIG_DIR and GIT_SSH_COMMAND=false, on a one-commit local repository <dir>/src:
adopt-project.py plan --source <dir>/src --project NUL --org acme --elected-by X --out <dir>/plan-NUL.yaml
plan written to <dir>/plan-NUL.yaml
project NUL (nul) in acme, mode in-place exit 0
--project Con, com1 and Lpt9 the same, exit 0 each, a plan written for each
--project Nullable, Console, Auxo exit 0 each (the controls: a device name is the whole name)
the stub gh was never called by `plan`, in any of the seven
adopt-project.py check --plan <dir>/plan-NUL.yaml --source <dir>/src --work-dir <dir>/work
assembly NUL project-leg/assembly
spec NUL-spec project-leg/spec
code NUL-code project-leg/code
...
plan ok exit 0
the plans of Con, com1 and Lpt9: the same, exit 0 each
the stub gh logged `repo view acme/NUL-spec` and `repo view acme/NUL-code`, the legs
- RV1010's SHOULD-1. scaffold-project.py:
--project NULand--project Conare taken and the three repositories and their folders are made, wherefamily.py initrefuses the same names asfamily-bad-holder-name#989 measured this half (plan --project NULandConexit 0), and scaffold-project.py, family.py and shape_materialize.py: the scaffold refuses a --project no Windows disk can make a folder of, by the one question init asks of --family, and the five folder flags' --help say what an empty value and . mean (#989, part of #999) #1010, which closes scaffold-project.py:--project NULand--project Conare taken and the three repositories and their folders are made, wherefamily.py initrefuses the same names asfamily-bad-holder-name#989, leaves it out as "a follow-up pull request". No issue tracked it: searches found only scaffold-project.py:--project NULand--project Conare taken and the three repositories and their folders are made, wherefamily.py initrefuses the same names asfamily-bad-holder-name#989 and the Tracking: setup, scaffold, family and the shared helpers, creating projects and families #459 tracker, which predates it. Soplanwrites, andcheckpasses, a plan for an assembly root named asinitand the scaffold (from scaffold-project.py, family.py and shape_materialize.py: the scaffold refuses a --project no Windows disk can make a folder of, by the one question init asks of --family, and the five folder flags' --help say what an empty value and . mean (#989, part of #999) #1010) refuse.executewas not run. - RV1010's NIT-1. scaffold-project.py, family.py and shape_materialize.py: the scaffold refuses a --project no Windows disk can make a folder of, by the one question init asks of --family, and the five folder flags' --help say what an empty value and . mean (#989, part of #999) #1010's decision 2, "the name speaks before a passed id's alphabet", is held by no test. RV1010's mutant C moves the device question from
scaffold-project.py:2319to just afterchecked_value("--id")(:2323), and it survivestests/test_scaffold_device_names.py(48 passed) andtests/test_derived_id_refusals.py(62 passed). What it changes:--project NUL --idgivennuland a line break (bash$'nul\n'), the one idPROJECT_ID_RE.matchlets through, isscaffold-bad-project-nameat the head andunsafe-valueunder the mutant. Both refuse before anything is made. - RV1010's NIT-2. "whatever the id" at
scaffold-project.py:1060-1061, and in the docstring oftest_a_name_the_policy_refuses_too_is_refused_by_the_policy(tests/test_scaffold_device_names.py:175, the words at:179), is not true with no--id. Measured at the head,--project NUL.gitand--project Nul.with no--idarescaffold-bad-idfor the derived id (--id (not given, so --project lowercased) is 'nul.git'), notnaming-unclassified; with--id fooor--id foo_barthey arenaming-unclassified.initsaysfamily-bad-idfor the same name with no--id, so the tools agree. The words are wrong, not the behavior.
Evidence.
- RV1010's review of scaffold-project.py, family.py and shape_materialize.py: the scaffold refuses a --project no Windows disk can make a folder of, by the one question init asks of --family, and the five folder flags' --help say what an empty value and . mean (#989, part of #999) #1010 at head
37b0fc43: READY, no MUST. SHOULD-1 is the filing of this issue; NIT-1 and NIT-2 are the two above. scaffold-project.py, family.py and shape_materialize.py: the scaffold refuses a --project no Windows disk can make a folder of, by the one question init asks of --family, and the five folder flags' --help say what an empty value and . mean (#989, part of #999) #1010's body named the follow-up as "a follow-up pull request" and no issue. - scaffold-project.py:
--project NULand--project Conare taken and the three repositories and their folders are made, wherefamily.py initrefuses the same names asfamily-bad-holder-name#989's own measurement ofplan(project NUL (nul) in acme), and its Direction: "Decide with this whetheradopt-project.py planandcheckask it of--project... the shared function makes it a few lines." - No test in
tests/passes a device name as adopt's--project(grep at the head).tests/test_adopt_leg_paths.py:99-104asks device names of the leg PATHS only. - The NIT-1 row, run in a scratch copy of the head: with
"nul\n"added to@pytest.mark.parametrize("passed", ["foo_bar", ""])attests/test_derived_id_refusals.py:276,test_a_name_no_root_can_have_on_windows_speaks_before_a_passed_idpasses at the head (3 passed). With mutant C applied it fails on that row alone (1 failed, 2 passed):REFUSED unsafe-value: --id is 'nul\n'where the row assertsREFUSED scaffold-bad-project-name: --project is 'NUL'. So the row is the whole of NIT-1's fix.
Direction.
planasksshape_materialize.refuse_an_unholdable_nameof--project: a code of adopt's own (for exampleadopt-bad-project-name; the writer chooses it), the flag--project,names=what adopt makes of the name, and a remedy in--project's terms, as_refuse_bad_id's derived-id remedy is (adopt-project.py:4701). The order is the one scaffold-project.py and family.py init: a flag passed empty is refused by name, a passed --id is told what an id may hold once the name passes, and an empty folder this user cannot list is told the permission (#911, #930) #972 set for the scaffold andinit: the naming refusal first, then this one, then a passed--id's sentence, and before anything is made, a plan file included. In adopt the naming refusal (_check_names,:4839) is asked after the source is read; the writer settles where this goes and says so in the pull request.checkasks it of the plan'sproject:. One place that fits:_held_findings's list (:12313, whichexecutereads too, family.pyinit, adopt-project.pycheckand the--orgof all four tools:initsets thexf-project-<id>topic last and asks no GitHub limit,checkpasses a nameexecuterefuses, and--org my_org.xpasses every plan #863), under a code inRENAMES_THE_LEGS, socheckfinds it,executerefuses it, and neither asksghabout the legs of a name that has to change.- NIT-1: add
"nul\n"to@pytest.mark.parametrize("passed", ["foo_bar", ""])attests/test_derived_id_refusals.py:276. The row's asserts stay as they are. - NIT-2: say "whatever id is passed" at
scaffold-project.py:1060-1061and in the docstring attests/test_scaffold_device_names.py:175. Comments only. adopt-project.pyis not a pinned copy, and neither arescripts/shape_materialize.py,scripts/family.pyorscaffold-project.py, so no project re-pins.
Verify.
adopt-project.py plan --projectwithNUL,Con,com1andLpt9each exit 2 with the new code and write no plan;checkof a plan whoseproject:is each of them finds it under the same code (exit 1). Neither makes aghcall, and nothing is made: no plan file, no leg, no clone (checkcreates a missing--work-dir, empty, before it reads the plan, as at the head).Nullable,ConsoleandAuxostill plan and check (exit 0,plan ok), as at the head.- Rows for
planand forcheck, for each of the seven names, under a stubghthat exits 97 and logs its calls: the four refused with nothing made and an empty log, the three controls taken. - The NIT-1 row kills mutant C: it fails with the device question after
checked_value("--id"), and passes at the head. tests/test_adopt_leg_paths.py,tests/test_scaffold_device_names.py,tests/test_derived_id_refusals.py, the docs guards (tests/test_agents_md_codes.py,tests/test_cli_reference.py,tests/test_update_add_codes_documented.py,tests/test_repo_hygiene.py),tests/test_shape_doctor.py,tests/test_scaffold_leg_path_collisions.pyandtests/test_no_auto_maintenance.pypass, one file at a time under a stubgh.
Size. S: one call in plan, one in check's list, one code, rows for both tools, one test row and two comment wordings.
Lane: openreposhape-3 (openRepoShape-3)
Activity
scaffold-project.py, family.py and shape_materialize.py: the scaffold…
brettheap commentedon Oct 20, 2026
CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-20T05:04:30Z, for #1014
Logged in
lanes/log/openRepoShape-3.mdat7cfa23953d077cc00badf0955814820d85859c5c.The three reads (lane-collision-protocol Rule 1):
tests/test_adopt_device_names.py: the device-name question comes firs…