Repository navigation
Description
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
- A topic of more than 50 characters fails at the end of the scaffold.
scaffold-project.pysetsxf-project-<id>on each repository withgh repo edit --add-topic(_set_topics,:1679-1688, throughrun, which raises on any non-zero exit). It is called last (:1947), after_create_remotes(:1935),_seed_legsand_build_assembly_root, so the three repositories exist and hold their first commits when it fails. GitHub's documented limit on a topic is 50 characters; the prefix is 11 (TOPIC_PREFIX,scripts/repo_shape.py:71), so an id over 39 would fail. Nothing bounds the id:PROJECT_ID_REis^[a-z0-9][a-z0-9-]*$(scripts/repo_shape.py:70), the naming contract'stopic.patternandtopic.id_patternhave no length (contracts/repository-naming.yaml:479-484), and the default id is the project lowercased (topic_for,scripts/repo_shape.py:2216). So a project name of 40 to 95 characters passes setup-project.py: a refused value names the check it failed, a project name over 95 characters is refused before step (4), and the prompt takes the spaces off a typed name, soAtlasno longer hides in step (4) (#777) #811's bound and, by the documentation, fails here.adopt-project.py(execute,:11123) andscripts/family.py(init,:2124, with the family's own id,:1588) run the same--add-topic; read, not run. Direction: ask in the plan, where a GitHub repository will be made: the topic the id gives is at most 50 characters, refusing with--idas the remedy where the id was derived (a shorter id keeps a long name), besidescaffold-name-too-long(scaffold-project.py:1798) andadopt-name-too-long(adopt-project.py:10718). Decide where the number lives: the tools' plans (no re-pin) or the contract'sid_pattern(every project's validators then refuse it, which re-pinsrepo_shape.py). First confirm the 50 against a realgh(lane 1); setup-project.py: a refused value names the check it failed, a project name over 95 characters is refused before step (4), and the prompt takes the spaces off a typed name, soAtlasno longer hides in step (4) (#777) #811's author expects the bound to be 39 for the default id. -
scaffold-project.pyandadopt-project.pyrun directly have no bound for the repository names. setup-project.py: a refused value names the check it failed, a project name over 95 characters is refused before step (4), and the prompt takes the spaces off a typed name, soAtlasno longer hides in step (4) (#777) #811's check is insetup-project.pyonly. The plans of the other two ask the disk:scripts/shape_materialize.py:4914(NAME_MAX = 255), whichscaffold-name-too-longandadopt-name-too-longreport. A--projectof 96 to 250 characters therefore passesplanand--dry-runand meets GitHub's 100-character limit on<Project>-specat the firstgh repo create(_create_remotesmakes spec and code first, so nothing exists yet; that is a cheap failure, and a refusal in the plan still says why before the first call). setup-project.py: a refused project name gets one sentence that explains only a leading-, a trailing space passes where a leading one is refused and hides in step (4)'s report, and a name of 101 to 255 characters passes the prompt, to end at step (5) or at GitHub #777's own second line offered "a check in the scaffold's plan besidescaffold-name-too-long" as the alternative, and setup-project.py: a refused value names the check it failed, a project name over 95 characters is refused before step (4), and the prompt takes the spaces off a typed name, soAtlasno longer hides in step (4) (#777) #811 took the other. Direction: the same check, once, in the helper that asks the disk's limit, asked only where a GitHub repository will be made (not under--local-remote-dir, where the limit is the disk's), sosetup-project.py's own check and the plans agree on one number. Say in the plan what the topic line above bounds too. -
--orghas GitHub's own limit and nothing asks it. GitHub keeps a user or organisation name to 39 characters (documented). The--orgof the three tools passes the shared name pattern of up to 255 (setup-project.py:455-456:"--org": ("org", checked_value)), so a 40 to 255-character--orgpasses the plan and fails at the firstgh repo create, with nothing created. Direction: the same plan check, only where a GitHub repository will be made. If the organisation is detected (gh api userororgs) and not typed, there is nothing to ask. -
--helpfor--projectdoes not state the bound (setup-project.py: a refused value names the check it failed, a project name over 95 characters is refused before step (4), and the prompt takes the spaces off a typed name, soAtlasno longer hides in step (4) (#777) #811's "Left out").setup-project.py:133(--project <Project> the assembly-root name: ONE CamelCase token, no ...),docs/cli.md:69and:204forsetup-project.pyand:278forscaffold-project.py(--project PROJECT the assembly-root name, e.g. Atlas) say what a name is and not how long. setup-project.py: a refused value names the check it failed, a project name over 95 characters is refused before step (4), and the prompt takes the spaces off a typed name, soAtlasno longer hides in step (4) (#777) #811 left it because a help change regeneratesdocs/cli.md(scripts/render-cli-reference.py), which README, AGENTS.md, docs/cli.md and the handbook:pipx install openreposhapeis the second way in and the first on native Windows, git-filter-repo is installed in install.sh's order and never with a barepip install, and a first draft of the v1.1.0 release notes (#563) #630, bootstrap.py: a validator's exit 2 endsbootstrap REFUSED, exit 2, an unreadable upstream path, cache or pin is no answer and a reftable leg's cherry-pick or revert is read from its ref store, so no traceback or ended pick follows (#764) #815, adopt-project.py: a--source, or a plan'ssource.local_path, that names no repository's top level is refused by name before git reads anything else in it, so a file, a directory inside a repository, an unknown~user, an empty value,owner/.gitand a lost blob no longer end in a traceback, plan a subtree or reachgh(#796) #831 and adopt-project.py:planasks whether it can write--outwith its flags, before any work, and refuses a folder, a pipe, a missing folder or one nobody can write in asadopt-out-unwritable, and saysplan written toonce the plan is on disk, so a mistyped--outno longer ends in a traceback after the whole plan is built (#799) #833 regenerate too. Direction: after the first three lines settle the numbers, one sentence in each of the three tools' help (the longest name, the longest id, the organisation), regenerated once, in the pull request that lands last of those that editdocs/cli.md.
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
brettheap commentedon Oct 17, 2026
CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-17T18:55:07Z, for #838
Logged in
lanes/log/openRepoShape-5.mdat3bef3c8b402ba423014a5de3d9bcedea3258759b.The three reads (lane-collision-protocol Rule 1):
adopt-project.py: a leg GitHub will not create, named after a source …
tests: three more hand-worked `GIT_CONFIG_COUNT` appends go through `…
adopt-project.py: a root over 100 characters, which no GitHub reposit…
scaffold-project.py, adopt-project.py and setup-project.py: the plan …
docs/release-notes/v1.1.1.md: the v1.1.1 notes take RV883's NIT list …