Repository navigation
Description
Goal: what the scaffold's and family.py init's plan and NOTEs say about remotes and visibility goes only by what GitHub answered, says so before anything is created when a read failed, and names the tracking branch and visibility a person is approving.
Filed by lane openRepoShape-3, from its triage of #459 at the v1.1.1 release commit 5017830. It groups #459's lines U163 and U167 (L2-92, L2-96), U164 (L2-93), U166 (L2-95), U168 (L2-97), U010 (AT-scaffold N3) and U060 (L2-61), with U039 (L2-23 and its family addition) as a section that needs a ruling, one pull request's worth.
An unread visibility is taken as the run's, and the root is read twice (U163, U167)
State. _reused_leg_visibility ends return seen or args.visibility (scaffold-project.py:1522). _leg_visibility reads the root at :1302 and returns reused_visibility or "private" at :1309, with no word when the read fails. _create_remotes reads the root again at :1484.
What happens. The leg NOTE and the Free-plan hint go by a value GitHub did not give, so a true hint is hidden or a false NOTE is printed. Legs are created private with no word, --dry-run included, and the two reads of the root can disagree. Lane 2 measured both with a stub gh answering HTTP 502 (L2-92 and L2-96, at 3615b27).
Evidence. The lines above at 5017830.
Direction. Read the root once and carry the answer to _create_remotes; have _reused_leg_visibility return None for a failed read; say ROOT_VISIBILITY_UNREAD's words, or a leg twin of them, before the plan, so the person can pass --visibility before any leg exists.
Free-plan words for an internal root (U164)
State. FREE_PLAN_UNREAD (scripts/shape_materialize.py:1795-1798) says "... {root} is {visibility}, so it applies when {org} is on the GitHub Free plan", and it is used for private and internal roots alike (:1913-1915).
What happens. An internal root, on an enterprise organisation whose plan a member who is not an owner cannot read, is told the hint applies when the organisation is on the Free plan, which an organisation with internal repositories cannot be. Only the words are wrong.
Evidence. The lines above at 5017830; L2-93.
Direction. For an internal root, leave out the Free-plan condition. No behaviour changes.
No credential NOTE for a public holder (U166)
State. scripts/family.py:2956 prints the members' credential NOTE only if visibility in ("private", "internal"), the holder's visibility. repository_visibility is called only at :2953, so add never reads a member's.
What happens. A public holder whose members are private is never told it needs SHAPE_LEGS_APP_ID / SHAPE_LEGS_APP_PRIVATE_KEY or SHAPE_LEGS_TOKEN, and its validate check then cannot check those members out.
Evidence. The lines above at 5017830; L2-95.
Direction. Print the NOTE at init for every holder, worded about the members ("a private or internal member you add needs ..."), or print it from add for a private or internal member.
Test gap: the not-found-on-stdout-alone row (U168)
State. The row is ((1, NOT_FOUND_BODY, f"gh: {BAD_GATEWAY}\n"), None) (tests/test_free_plan_hint_reads.py:312, id at :316). gh_said_not_found reads words in (probe.stderr or "") (scripts/shape_materialize.py:1721), and NOT_FOUND_BODY does not hold Not Found (HTTP 404).
What happens. A reading that also searched stdout still passes the row; lane 2 made that mutant at 3615b27 and the file stayed at 50 passed.
Evidence. The lines above at 5017830; L2-97.
Direction. Give the row's stdout gh: Not Found (HTTP 404)\n, and keep the body row as it is.
The plan names no tracking branch, and no visibility in local mode (U010)
State. _print_plan (scaffold-project.py:1321-1361) has no tracking-branch row, and _print_plan_actions (:1387-1399) names the visibility only as gh repo create --<visibility>; local mode prints "bare repositories on disk (no network)". Setup's step (5) shows this same plan.
What happens. The plan a person approves names neither the branch the three repositories are created on nor, under --local-remote-dir, the visibility the manifest records. v1.0.0's notes list it as a known limit (docs/release-notes/v1.0.0.md:470).
Evidence. The lines above at 5017830.
Direction. Add a tracking-branch row and, in local mode, a visibility row.
A private repository the token cannot see reads as absent (U060)
State. refuse_unless_not_found (scripts/shape_materialize.py:1724-1742) reads gh's not-found words as absent. GitHub gives those same words for a private repository the token cannot see.
What happens. The plan and the dry run say nothing exists; the real run creates the legs first and then fails at gh repo create for the existing root. Only README's "If it fails part-way" box covers it. Adopt's twin is a v1.1.1 known limit (docs/release-notes/v1.1.1.md:921); the scaffold's and init's are not listed. Read, not run: it needs a token without access to an existing private repository.
Evidence. The lines above at 5017830; L2-61.
Direction. The two cases cannot be told apart from gh's answer, so word the plan's remote lines as what this token can see, or list it as a known limit as adopt's is.
Needs a ruling: what visibility: records (U039)
State. scaffold-project.py:1964 fills "VISIBILITY": args.visibility; an explicit --visibility overrides a reused root (:1310-1318), and reused legs keep their own (:1517-1522). The template comment says "For a scaffolded project this is all three repositories' visibility" (templates/assembly-root/project.yaml:57-58). The family's family.yaml is filled from args.visibility too (scripts/family.py:2665; comment at templates/family-root/family.yaml:43-46).
What happens. In rv565's 256-run matrix the comment was untrue in 216 runs. For a reused holder, family.yaml's visibility: contradicts the run's own NOTE: a reused PUBLIC holder under the default --visibility private records private.
Evidence. The lines above at 5017830; L2-23 and its addition of 2026-10-16T19:50:18Z.
Direction (needs a ruling). Either record each reused repository's own visibility, or reword the template comments and docs to "the visibility this run asked for".
Size: M.
Lane: openreposhape-3 (openRepoShape-3)
Activity
brettheap commentedon Oct 18, 2026
CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-18T17:05:50Z, for #913
Logged in
lanes/log/openRepoShape-3.mdat75d10b9944df039c1449c147bf98a5909d004506.The three reads (lane-collision-protocol Rule 1):
scaffold-project.py and `family.py init`: the NOTE for two reused leg…
scaffold-project.py, `family.py init` and shape_materialize.py: the p…
brettheap commentedon Oct 21, 2026
(lane openRepoShape-3, 2026-10-21T10:43:37Z) Ruling on U039: option 2. Brett Heap, 2026-10-21T10:39:44Z: "U039 and U037: take your recommendations".
visibility:is the visibility the run asked for (--visibility, by defaultprivate). They also say what a reused repository keeps, as the code does it.visibility:is one field, and a project's three repositories, or a family's members, can differ. Recording "each repository's own" would change the schema, not the words.l3-913-visibility-words) is writing it. The PR closes scaffold-project.py,family.py initand shape_materialize.py: the plan and the visibility NOTEs go by values GitHub did not give, misword an internal root, skip a public holder's credential NOTE, and name no tracking branch #913.Lane: openreposhape-3 (openRepoShape-3)
templates/assembly-root/project.yaml and tests/test_visibility_field_…
templates: the `visibility:` comments in project.yaml and family.yaml…