Repository navigation
Description
Goal: the holder's make bootstrap gives credential advice only where a credential could help, tells a member's own refusal from its finding, and the gate's wrong-case move types as printed where a checkout of its own stands at the variant.
Filed by lane openRepoShape-5, from the checklist candidates of three PRs: #768's (#819, writer w768: candidate 1), #764's second fix round (#815, writer w764b: "Family holder", for lane 4) and #761's (#828, writer w761: candidate 2). All three are in the holder's two pinned scripts, so one change re-pins them once. Lines 1 and 2 are read from source on main and measured here only where said; line 3 is read from source, not measured for the validator.
Pinned copies. templates/family-root/scripts/bootstrap.py and templates/family-root/scripts/validate-family.py are pinned in every holder (FAMILY_COPIED_VERBATIM, scripts/shape_materialize.py:525). Bundle this with the other v1.1.1 edits to them (#762's and #768's PRs, #820 and #819, edit both), so each holder takes one upstream-changed row per file.
Lands after: lane 5's #768 (PR #819, fix/768-gitmodules-values, head c12b5f8a) and #762 (PR #820, fix/762-validate-family-remedies-texts, head 9e2dc7d9). path:line is at main 6626a3c5.
Lines
-
make bootstraptells a person to setSHAPE_LEGS_TOKEN, and the next line says no credential would help (w768's candidate 1).fetch_members(templates/family-root/scripts/bootstrap.py:134-186) printsFETCH INCOMPLETE (git exit N) ...and, for any non-zero exit ofgit submodule update --init --recursive, "If the members are PRIVATE, set SHAPE_LEGS_TOKEN (a fine-grained PAT with contents:read on them) or export an App-minted SHAPE_LEGS_APP_TOKEN, then re-run." (:166-170). It then asksunfetchable(:418) and, for each member left for a reason found in the holder's records, prints "NOT CHECKED OUT, and not for want of a credential: ..." (:172-178). The advice is printed whateverunfetchablefinds, so every reason it can give (bootstrap.py and validate-family.py:family bootstrap okwith no member checked out, an earlier row'smember-uninitializedhiding a case-variant refusal, andmember-gitlink-unnamedwith no command under--no-members#648's unmerged.gitmodules, missing gitlink, missing section, missing url and stopped init, and bootstrap.py and validate-family.py: a.gitmodulesvalue git dies on as it reads the file failsmake bootstrapnaming the key, and the family gate names it in every mode, soupdate = Noneno longer endsfamily bootstrap ok(#768) #819's value git dies on) gets the advice and then its denial. w768 measured the two lines together in each refused state of bootstrap.py and validate-family.py: a.gitmodulesvalue git dies on as it reads the file failsmake bootstrapnaming the key, and the family gate names it in every mode, soupdate = Noneno longer endsfamily bootstrap ok(#768) #819's table (its probesp1top3). Direction:unfetchable's docstring says "any other row not checked out is the missing credential's", so the advice belongs only to a row that is not checked out and thatleftdoes not hold. Where every row not checked out is inleft, print the denial alone; where both kinds exist (one member's credential, another's missing url), print both, and let the advice say it is for the members the next line does not name. Test it with a private-member fixture (advice printed, no denial) and with each records reason (denial, no advice). - A member's refusal and its finding both read
make bootstrap exited 2(w764b, "a design question for lane 4").run_member_target(:495-521) runsmake <target>in the member (subprocess.run([make, target], ...),:517) and reportsf"{project} (make {named} exited {proc.returncode})"(:520). GNU make exits 2 for any failing recipe: measured here (GNU Make 4.3), a recipe that exits 1 and one that exits 2 both givemakeexit 2. The member's ownscripts/bootstrap.pyexits 1 forbootstrap FAILED(a finding) and, once 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 lands (Brett Heap's ruling of 2026-10-17T13:01:10Z, "take B for bootstrap.py (the assembly root's): aSHAPE_UPSTREAM_PATHdirectory nobody may enter ends in a traceback, a validator's refusal is reported asFAILED, exit 1, a reftable leg's cherry-pick goes unseen, anddocs/cli.mdsays bootstrap places each leg AT the pin with no condition #764's C2"), 2 forbootstrap REFUSED; so the holder's line cannot tell a refusal from a finding, nor either from make's own failure. Direction: decide whether it should. If so, either run the member'spython3 scripts/bootstrap.pydirectly asmake siblingsdoes (templates/family-root/scripts/siblings.py:565-575, which prints "its own bootstrap exited N" with the real code), or read the*** [...] Error Nline from make's output.--members-make(:531) lets the person name another target,validateamong them, which has noscripts/bootstrap.pyof its own to call, so the direct run applies to the default target only. A family bootstrap that stops at the first member's refusal is a different question and is not asked here. - The gate's wrong-case move prints a
git rm --cachedthat may refuse where a checkout of its own stands at the variant (w761's candidate 2; not measured for the validator)._wrong_case_move(templates/family-root/scripts/validate-family.py:577-640; the line is:640, and:768at validate-family.py: the wrong-case move back mends.gitmodules, adds--sparseand moves an entry in the way aside, a row's staged removal and a url-less section are findings, and two refusals name a cure that works (#762) #820's head) printsgit rm -r --cached --ignore-unmatch -- <variants>and thengit update-index --add --cacheinfo. family.py add: the move back of a member's gitlink points its section of.gitmodulesback, sets aside first what the index holds in its way and puts back a member whose removal is staged, its closingmvis guarded and leaves a checkout to delete by hand, and--sparsefollows the sparse rules, so no printed line leaves a section naming another spelling or un-registers a member (#761) #828's body measured the samegit rminfamily.py add: with the variant staged bygit mv, and a checkout on disk at it that holds a commit or an untracked file of its own, git exits 1 with "the following file has staged content different from both the file and the HEAD". family.py add: the move back of a member's gitlink points its section of.gitmodulesback, sets aside first what the index holds in its way and puts back a member whose removal is staged, its closingmvis guarded and leaves a checkout to delete by hand, and--sparsefollows the sparse rules, so no printed line leaves a section naming another spelling or un-registers a member (#761) #828 prints-fthere, with a clause saying-fwith--cachedtouches no file (scripts/family.py:3911atd4e8c65a); the validator's text has no-f, and validate-family.py: the wrong-case move back mends.gitmodules, adds--sparseand moves an entry in the way aside, a row's staged removal and a url-less section are findings, and two refusals name a cure that works (#762) #820 left it so. Direction: reproduce it on the gate's own state first: a holder wheregit mv members/IRRS Members/IRRSis staged, a commit made insideMembers/IRRS, then the gate's printed lines typed as printed. If thegit rmrefuses, print-fwhere the index stages the variant at a commit HEAD does not record there and a checkout is on disk at it, with family.py add: the move back of a member's gitlink points its section of.gitmodulesback, sets aside first what the index holds in its way and puts back a member whose removal is staged, its closingmvis guarded and leaves a checkout to delete by hand, and--sparsefollows the sparse rules, so no printed line leaves a section naming another spelling or un-registers a member (#761) #828's clause, and say so in the finding. - The gate's wrong-case move guards its
mvwith[ <variant> -ef <row path> ], which follows a link, so a link at the variant that points at the row's own directory survives the line as printed, andfamily.py addthen refuses it. From w840's candidate 1._wrong_case_move(templates/family-root/scripts/validate-family.py:577-643at main190133d5; the guard is built at:603-608) prints[ <variant> -ef <path> ] || [ -e <variant>/.git ] || mv -- <variant> ../<variant with - for />and says it "moves nothing where the two names are one directory or where it holds a .git entry, a checkout".-efand-eboth follow a link, so a link at the variant is read as the row's own directory, or as a checkout, and is kept. Measured on main190133d5(a scratch copy; git 2.43.0; the suite's ownvariant()andvalidate()helpers; the state is the member's gitlink held only atMembers/IRRS, rowmembers/IRRS, committed): withMembers/IRRSa symbolic link to../members/IRRS, the gate exits 2 withmember-gitlink-absent; the printed guard typed inshexits 0 and moves nothing, then the two printed git lines and a commit; the gate then exits 0 in its plain mode,git statusreads?? Members/(the link is still there), andfamily.py add --dry-runof another member is refusedfamily-members-dir-variant,on disk and untracked: Members/IRRS (a symlink), withmv -- Members/IRRS <new name>as its remedy. With the link pointing atnowhere, the guard'smvruns, the link is gone and the nextaddgoes through. With a link to a clone beside the holder (a directory holding a.gitfile) the guard keeps the link the same way (-e Members/IRRS/.gitfollows it) andaddrefuses it the same. The text's own sentence, that it moves nothing "where the two names are one directory or where it holds a .git entry", is not true of a link: the two names are two, and the link holds no.gitentry of its own. Thefamily.pyhalf is the same guard in family.py add: the move back of a member's gitlink points its section of.gitmodulesback, sets aside first what the index holds in its way and puts back a member whose removal is staged, its closingmvis guarded and leaves a checkout to delete by hand, and--sparsefollows the sparse rules, so no printed line leaves a section naming another spelling or un-registers a member (#761) #828's_closing_sentences(scripts/family.py:4636atce0f2a5f,:4999at2c97e759), which family.py add: the move back of a member's gitlink points its section of.gitmodulesback, sets aside first what the index holds in its way and puts back a member whose removal is staged, its closingmvis guarded and leaves a checkout to delete by hand, and--sparsefollows the sparse rules, so no printed line leaves a section naming another spelling or un-registers a member (#761) #828 took from the validator (family.pyadd: after #646's move back of a member's gitlink, a.gitmodulesthat agit mvmade name the variant is not mended, a file or link in the way has no remedy that keeps the member, and the plainmvit prints orphans a live submodule checkout #761's Direction). Measured at2c97e759on git 2.43.0 (this run) and on 2.47.1 (w840's probe):addrefuses, the lines typed as printed keep the link, a secondaddrefuses it on disk and untracked,mv -- Members/IRRS ../moved-1, and a thirdaddgoes through and the gate passes in all three modes; with the link atnowhereit takes two. family.pyadd: six states its case-spelling remedies still miss after #828, from a section that names a variant beside a correct gitlink to aMembersthat is a link to a directory outside the holder #840's branch pins the three rounds intest_a_link_at_a_variant_the_index_holds_is_refused_first(tests/test_family_add_spelling_leftovers.py:709: "typed as printed, the move back's guard keeps the link ... and the nextaddnames it on disk"). So that half can be fixed in family.pyadd: six states its case-spelling remedies still miss after #828, from a section that names a variant beside a correct gitlink to aMembersthat is a link to a directory outside the holder #840's own pull request, before it opens, and the test then says one round; this line is the validator's half, on main. Direction: give the link its own answer in both texts, so that a link at the variant is always moved (themvmoves the link, never its target), and say so in the sentence:[ ! -L V ] && { [ ! -e V ] || [ V -ef R ] || [ -e V/.git ]; } || mv -- V ../<new name>, withVthe variant andRthe row's path. That prototype was run under dash (/bin/shon this host) and bash 5.2 on seven layouts and differs fromadd's printed guard in two: a link to the row's own directory and a link to a clone elsewhere are moved, where the printed guard keeps them. The other five answer as before: nothing at the variant (kept, nomv), a dangling link (moved),Membersitself a link tomembers(kept:-Lasks the last component only, so the folding disk thattests/test_validate_family_remedies_typed.py:423-470emulates this way stays a no-op), a real empty directory apart (moved) and a real directory with a.gitfile (kept). It was not run under Git Bash'sshor macOS's bash 3.2, which the text says it is typed in. Found while placing, a second sentence of this line that can be cut and filed alone: the validator's guard has no nothing-there clause either, so with nothing at the variant (a fresh clone of a holder whose index records only the variant) the typedmvexits 1,mv: cannot stat 'Members/IRRS': No such file or directory(measured on main, the same run's third case). family.py add: the move back of a member's gitlink points its section of.gitmodulesback, sets aside first what the index holds in its way and puts back a member whose removal is staged, its closingmvis guarded and leaves a checkout to delete by hand, and--sparsefollows the sparse rules, so no printed line leaves a section naming another spelling or un-registers a member (#761) #828 added[ ! -e V ] && [ ! -L V ] ||toadd's for that (Codex's P2 2 on family.py add: the move back of a member's gitlink points its section of.gitmodulesback, sets aside first what the index holds in its way and puts back a member whose removal is staged, its closingmvis guarded and leaves a checkout to delete by hand, and--sparsefollows the sparse rules, so no printed line leaves a section naming another spelling or un-registers a member (#761) #828) and the validator's was left; the prototype above has it. Verify:tests/test_validate_family_remedies_typed.py(the N-2 test's three layouts,:423) andtests/test_family_head_lost_gitmodules.py(the text,:668, andGUARDED_MOVE,:804) with two new layouts typed as printed,link-to-the-rowandlink-to-a-clone, then the gate in every mode andadd; a mutant that drops the-Ltest, caught; and, forfamily.py,guarded()oftests/test_family_add_member_variant.pyand the family.pyadd: six states its case-spelling remedies still miss after #828, from a section that names a variant beside a correct gitlink to aMembersthat is a link to a directory outside the holder #840 test above.templates/family-root/scripts/validate-family.pyis pinned in every holder (FAMILY_COPIED_VERBATIM,scripts/shape_materialize.py:525): oneupstream-changedrow per holder. No Windows or macOS run (CI is Linux only, ci: run the test suite on Linux only #597), so a case-folding disk is emulated as the N-2 test does.
Not here: #819's own "Left out" and checklist keep four more, none a line: a submodule.<name>.active that is no boolean (a hand-set key of the repository's own config, which git dies on and active() reads past, bootstrap.py:508-526 at c12b5f8a); a blob .gitmodules with a syntax error (git reads the entries before the bad line, gitmodules_sections none, as before); siblings.py's submodule_urls (it clones, and runs no git submodule update, so a value git dies on does not stop it); and _sections_listed reading a key with no value as the empty string, which makes member-gitmodules-absent fire beside #819's gitmodules-value-refused for one fault (a second finding, harmless, and #819's test pins it: for #819's own review).
Verify: tests/test_family_bootstrap_gate_order.py, tests/test_family_gitmodules_values.py (new in #819), tests/test_validate_family_typed_states.py (new in #820), tests/test_validate_family_unnamed_mounts.py, tests/test_family_head_lost_gitmodules.py, tests/test_pinned_copy_text.py and tests/test_repo_hygiene.py pass on Linux. Line 1: the two fixtures above, asserting the stderr lines exactly. Line 2: a holder whose member's make bootstrap exits 1, and one whose member refuses (exit 2): the line says which, in the form the Direction picks. Line 3: the reproduction as a test, typing each printed line as printed, then the gate in every mode, as #820's tests do. A mutant per line (the advice always printed, the exit code always make's, the -f dropped), each caught. No Windows or macOS run (CI is Linux only, #597).
Overlaps. #819 and #820 edit both pinned scripts, and #822 (fix/763-holder-docs-agree) edits validate-family.py and the holder's AGENTS-shape.md. #815 and #824 edit the assembly root's bootstrap.py, not this one. #828 edits scripts/family.py, which is not pinned. Lane 3's #775 and #788 edit templates/family-root/scripts/siblings.py (line 2's option of running the member's bootstrap as siblings.py does reads it, does not edit it).
Parent: #459.
Milestone: v1.1.1. Line 1 prints a sentence too many on a failure the person sees anyway; line 2 is a count a person can read the cause from above it; line 3 needs a hand git mv, a checkout of the member's own at the variant and a commit in it. None is a regression, and none blocks v1.1.0.
🤖 Generated with Claude Code
Activity
brettheap commentedon Oct 17, 2026
(lane openRepoShape-5, 2026-10-17T17:13:38Z) Two more lines for this issue, from lane 2's rv820 review of #820 and writer f820's round 2 (
ef178669). Both come from reading the code; neither was measured here.bootstrap.pygitmodules_sectionsreads only the work tree's.gitmodules. Where that file is gone, git's submodule commands read the index's copy, then HEAD's. The bootstrap's account of what git will do can then differ from what git does. This is rv820's "bootstrap half". validate-family.py: the wrong-case move back mends.gitmodules, adds--sparseand moves an entry in the way aside, a row's staged removal and a url-less section are findings, and two refusals name a cure that works (#762) #820 fixes the same read invalidate-family.py(_gitmodules_put_back). Direction: read the file as git does: the work tree, then:.gitmodules, thenHEAD:.gitmodules.member-gitmodules-absent(validate-family.py andfamily.py remove: a holder whose HEAD lost.gitmodulespasses the gate, andremovefails afterdeinit, leaving the mount empty #611, older than validate-family.py: the wrong-case move back mends.gitmodules, adds--sparseand moves an entry in the way aside, a row's staged removal and a url-less section are findings, and two refusals name a cure that works (#762) #820) printsgit config -f .gitmoduleslines that drop every other section when the file is gone from the work tree. Run as printed, they write a file holding one member's keys. validate-family.py: the wrong-case move back mends.gitmodules, adds--sparseand moves an entry in the way aside, a row's staged removal and a url-less section are findings, and two refusals name a cure that works (#762) #820 fixed the same fault inmember-gitmodules-url-absentby printinggit checkout -- .gitmodules(orgit checkout HEAD -- .gitmodules) first. Direction: the same put-back line, first.Overlaps: #820 (
fix/762-validate-family-remedies-texts,98b0536d) edits the same validator's functions. These lines land after it.brettheap commentedon Oct 17, 2026
(lane openRepoShape-5, 2026-10-17T17:27:10Z) One more line for this issue, from writer f828's fix round on #828 (
6cf02edf). It was read from source and run in dash; it was not measured through the gate itself.validate-family.py's_wrong_case_move(landed with validate-family.py and validate-pins.py: a staged gitlink removal says to commit it,member-gitlink-absentputs the gitlink back by hand, the variantmvis guarded, and a pin row with nopath:isshape-pin-row(#681) #747 as6626a3c5) prints the closing move unguarded for an absent variant:[ X -ef Y ] || [ -e X/.git ] || mv .... With nothing at the variant's path, that line exits 1 (mv: cannot stat), so a pasted remedy stops before the update that follows. This is Codex's P2 2 on family.py add: the move back of a member's gitlink points its section of.gitmodulesback, sets aside first what the index holds in its way and puts back a member whose removal is staged, its closingmvis guarded and leaves a checkout to delete by hand, and--sparsefollows the sparse rules, so no printed line leaves a section naming another spelling or un-registers a member (#761) #828, met again in the pinned validator. Direction: the prefix family.py add: the move back of a member's gitlink points its section of.gitmodulesback, sets aside first what the index holds in its way and puts back a member whose removal is staged, its closingmvis guarded and leaves a checkout to delete by hand, and--sparsefollows the sparse rules, so no printed line leaves a section naming another spelling or un-registers a member (#761) #828 now prints,[ ! -e X ] && [ ! -L X ] || .... With nothing there it moves nothing and exits 0, and a dangling symlink there is still moved.Overlaps: #820 (
98b0536d) edits the same validator. This line lands after it, and the file is pinned, so each holder takes oneupstream-changedrow for it.brettheap commentedon Oct 17, 2026
CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-17T19:41:40Z, for #839
Logged in
lanes/log/openRepoShape-5.mdat38c6db352d644cc54a34aa4b42fbc86d6d5616b2.The three reads (lane-collision-protocol Rule 1):
family.py add: a second gitlink at a case variant of a row's path is …
docs/release-notes/v1.1.1.md: the v1.1.1 notes take RV883's NIT list …
family.py add: a section astray beside its gitlink, a variant of a ro…
the family root's bootstrap.py: make's stderr is read a line at a tim…