Skip to content

scaffold-project.py, adopt-project.py and setup-project.py: nothing asks GitHub's topic and organisation limits, so an id over 39 characters fails --add-topic after all three repositories are seeded, and the direct tools pass a name over 95 #838

Closed

Description

@brettheap

Goal: a project name, an id and an organisation that GitHub will refuse are refused in the plan, before any repository exists, whichever of setup-project.py, scaffold-project.py and adopt-project.py was run, and --help says the bound.

Filed by lane openRepoShape-5, from the checklist candidates of #777's PR (#811, writer w777: candidates 1, 2, 4 and the --help line of its "Left out"). #777 (a refusal names the check it failed; a name over 95 characters is refused before step (4)) is not reopened: #811 does that for setup-project.py and says the 100 is "not measured". These are the limits it did not ask. Every GitHub limit below is from GitHub's documentation and none is measured here: no lane 5 run creates a real repository, so each number needs a probe against a real organisation, which is lane 1's. The code lines are read from source.

Lands after: lane 5's #777 (PR #811, fix/777-typed-name-edges, head b5def3f0, stacked on #756, fix/729-typed-project-name). It adds GITHUB_NAME_MAX and PROJECT_NAME_MAX = 95 and checked_project_length (setup-project.py:355-362 and :456-471 at that head). path:line below is at main 6626a3c5 unless it says b5def3f0.

Lines

Verify: tests/test_setup_project_name_edges.py (new in #811), tests/test_setup_project_py.py, tests/test_scaffold_manifest_values.py and tests/test_adopt_manifest_values.py (the two that assert the disk's scaffold-name-too-long and adopt-name-too-long), tests/test_scaffold_leg_path_collisions.py, tests/test_shape_doctor.py, tests/test_cli_reference.py and tests/test_repo_hygiene.py pass on Linux. One new case per tool and per line, asserting the refusal and that no process is started and nothing exists when it refuses: names of N and N+1 characters either side of each number, at the prompt, through --project, and through scaffold-project.py and adopt-project.py directly, local and not (the bound is asked only where GitHub is). A case that a name of 40 to 95 characters with a shorter --id still passes. No real gh run here; the three numbers need one (lane 1).

Overlaps. #811 edits setup-project.py (and #756 and #821, in other hunks) and adds tests/test_setup_project_name_edges.py. #731, #814 and #823 edit scaffold-project.py and scripts/shape_materialize.py (#731 the folder refusals, #814 the spelled paths); #817, #825, #829, #830, #831 and #833 edit adopt-project.py; #731, #795, #809, #813, #814, #816 and #828 edit scripts/family.py. #630, #815, #831 and #833 edit docs/cli.md, and #630 and #815 scripts/render-cli-reference.py. scripts/repo_shape.py (#817, #821, #823, #827 edit it) is a pinned copy in every project, and the naming contract is data it loads, so a bound placed there is a re-pin; a bound in the plans is not.

Parent: #459.

Milestone: v1.1.1. A name or an organisation GitHub refuses ends the run at a gh call with a message the person can read; the topic case ends it late, after the repositories exist, and a re-run reuses the legs it finds (#462). None is a regression, none blocks v1.1.0, and none is measured.

🤖 Generated with Claude Code

Activity

  1. added this to the v1.1.1 milestone on Oct 17, 2026
  2. brettheap commented on Oct 17, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-17T18:55:07Z, for #838

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

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

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