Repository navigation
Description
Goal: every finding and remedy the holder's validate-family.py prints can be typed as printed, in the state it describes, and a malformed shape-pin row is refused by name.
Filed by lane openRepoShape-5 on Brett Heap's word of 2026-10-16T12:17:02Z ("#459's family lines (~38)"), from checklist lines on #459 (comment 6132014915, comment 6132803458, comment 6190666062), and from rv611c's nits N-1 and N-2 on #639 (its body, "Re-verify (rv611c, on 6aace42)").
Lands after: #639 (#611), which rewrites the same remedies (_check_member_gitlink, _gitlink_in_another_case, _check_gitlinks_named) and holds the code N-1 and N-2 are about; and lane 5's #648 (validate-family.py's check order).
Pinned copy. templates/family-root/scripts/validate-family.py is pinned in every holder (FAMILY_COPIED_VERBATIM, scripts/shape_materialize.py:514-535), and templates/assembly-root/scripts/validate-pins.py in every assembly root. Bundle this with #639's, #648's and #634's edits so each holder takes one upstream-changed row.
Lane 3's #460 lines. Lane 3 now owns #460's lines (R605's six, about siblings.py and the family-root README and AGENTS templates). If its fix of R605's template line lands first, rebase over it; it should not touch validate-family.py, but check on rebase.
Lines (line numbers at d4a7fab, except N-1 and N-2, at 08b6245b, #639's head)
- L20, a removal staged and not committed is named again.
_member_gitlinkslists HEAD's gitlinks as well as the index's (validate-family.py:893-935), so after the printedgit rm -- members/Strayand before the commit, a re-run prints the samemember-gitlink-unnamedfinding (:1136-1150), and typed againgit rm -- members/Straydiesfatal: pathspec 'members/Stray' did not match any files, exit 128 (probed on main: a gitlink mounted by hand and committed,git rm,validate-family.py --no-members). validate-family.py and family.py: a gitlink no section of HEAD's.gitmodulesgives ismember-gitmodules-absent,removerefuses a holder with no.gitmodulesbeforedeinit, and two gitlink remedies name what they missed (#611) #639 adds "and commit that removal" to the remedy and--ignore-unmatchonly tomember-gitlink-absent's. Direction: keep the listing (it reads inrecorded_gitlink's order), but where HEAD holds the gitlink and the index holds none at stage 0, word the finding "removal staged, commit it" and print nogit rm. (Lane 4: L4-04.) - L2-38, the
member-gitlink-absentremedy ends in anaddthat is refused. A row kept with its gitlink and.gitmodulessection removed bygit rmgetsfamily.py add ... --member <org>/IRSS(validate-family.py:414-428), andaddrefuses itmember-already-present(scripts/family.py:3365);family.py removedieserror: pathspec 'members/IRSS' did not match any file(s) known to gitatgit submodule deinit, exit 2, nothing removed (probed on main). Direction (recommended; Brett to confirm the pick): word the remedy for what the state is, a row whose gitlink was taken out by hand: put the gitlink back at the commit the row pins, in the index alone (git update-index --add --cacheinfo 160000,<pin>,<path>, the form validate-family.py and family.py: a gitlink no section of HEAD's.gitmodulesgives ismember-gitmodules-absent,removerefuses a holder with no.gitmodulesbeforedeinit, and two gitlink remedies name what they missed (#611) #639 gives the case-variant remedy) and write the.gitmodulessection back (asmember-gitmodules-absentprints it), commit; or delete the row by hand if the member is to go. The other two of the line's options (letaddrepair a kept row, letremovehandle a gitlink already gone) changefamily.py, and need a word from Brett if he wants a tool path rather than words. - L2-3, a shape-pin
files:row with nopath:reads as the pathNone._check_one_shape_fileasks onlyisinstance(row, dict)(validate-family.py:620-628,str(row.get("path"))), so a row- nopath: xisFINDING shape-copy-missing: contracts/shape-pin.yaml: None is pinned but absent(probed on main), whereupdate-shape.pyrefuses it by name asupdate-pin-row. The same intemplates/assembly-root/scripts/validate-pins.py:854. Direction: refuse a row whosepath:is absent, empty or not a string asshape-pin-row, as the same function's non-mapping branch does (:626), in both validators. validate-pins.py overlaps Pinned shape copies: one bump, so AGENTS-shape.md is true of every root, the scaffold's chain WARNING offers only its own sources and spells--pin-source, the root's not-used note spells it too, and THE LOCKSTEP RULE'sbumpruns (#610) #634. - N-1 (rv611c on validate-family.py and family.py: a gitlink no section of HEAD's
.gitmodulesgives ismember-gitmodules-absent,removerefuses a holder with no.gitmodulesbeforedeinit, and two gitlink remedies name what they missed (#611) #639), the printedmvleaves a live submodule checkout's.gitfile pointing nowhere._gitlink_in_another_case's remedy, for a directory left at a variant on a case-sensitive disk, printsmv -- <variant> ../<variant with / as ->(validate-family.py:496-499and:512-516at08b6245b). Where the variant is a hand-mounted live checkout (the 574/3 layout), its.gitfile readsgitdir: ../../.git/modules/Members/<P>, relative, and after themvgit saysfatal: not a git repository: .../Members-<P>/../../.git/modules/Members/<P>(probed with plain git:git submodule add ... Members/IRQS,mv -- Members/IRQS ../Members-IRQS,git -C ../Members-IRQS status). The files and any unpushed commit stay (the commit in the holder's.git/modules/Members/<P>). Re-pointing that.gitfile alone does not mend it: the module's config keepscore.worktree = ../../../../Members/IRQS, andgit -C ../Members-IRQS statusthen saysfatal: cannot chdir to '../../../../Members/IRQS'(probed). Direction: print themvonly for a directory with no.gitentry (the empty one a fresh clone leaves, or a plain one), and where the variant holds a.gitfile say it is a live checkout the move would orphan, and name what keeps its commits (they live in the holder's.git/modules/Members/<P>); prove the chosen step on a probe holder before the text says it. - N-2 (rv611c on validate-family.py and family.py: a gitlink no section of HEAD's
.gitmodulesgives ismember-gitmodules-absent,removerefuses a holder with no.gitmodulesbeforedeinit, and two gitlink remedies name what they missed (#611) #639), themv's condition is stated by OS, not by a check a person can run. The text says "On a case-sensitive disk, as Linux's usually is ... On macOS and Windows it is the row's own directory, so leave it" (:512-516at08b6245b). On a case-folding Linux mount (WSL's/mnt/c), typing themvmoves the member's own checkout out;git submodule update --init --recursiverestores it. Direction: give the check, for example[ Members/<P> -ef members/<P> ](true when both names are one directory; on this case-sensitive Linux disk it is false, probed; the case-folding side is reasoned, not run, so verify it on a case-folding mount first) and print themvas[ ... -ef ... ] || mv -- ..., or word it as "if the two names list the same entries, leave it".
Overlaps: #639 (validate-family.py, family.py remove; the whole second half of this issue edits its new text), #634 (validate-family.py's _lockstep line, validate-pins.py), lane 5's #648 (validate-family.py check order and member-gitlink-unnamed under --no-members). No open PR other than those touches the file.
Mark the three lines → this issue on #459 (L20, L2-38, L2-3), and tick them there when this closes. N-1 and N-2 are filed here only.
🤖 Generated with Claude Code
Activity
brettheap commentedon Oct 16, 2026
CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-16T14:05:12Z, for #681
Logged in
lanes/log/openRepoShape-5.mdatbab3e5fc19b286422abe0cfb6ecb8baccc430858.The three reads (lane-collision-protocol Rule 1):
validate-family.py: after `git rm --cached` of a hand mount the stage…
Merge #682's head 45c512e into fix/681-validate-family-remedies: `_ch…
Merge #682's second fix round 23e1105 (fix/648-bootstrap-and-gate-ord…
Merge #682's third fix round f74f640 (fix/648-bootstrap-and-gate-orde…
family.py: `add`'s refusal of a member's own gitlink held only under …
bootstrap.py and validate-family.py: a member no credential would che…
Merge main 64ec47c (#747, #817) into l3-733-ignored-sections
Merge origin/main (64ec47c) into l3-563-docs
docs/release-notes/v1.1.0.md: RV630's pre-review of the B2 stage, #747'…
Merge main bad05d2 into fix/712-validate-pins-contracts
family-root README.md and AGENTS-shape.md, and AGENTS.md: the holder'…
family.py add: the move back of a member's gitlink points its section…