Repository navigation
Description
Goal: the family holder's gate (templates/family-root/scripts/validate-family.py) refuses a member whose git directory's HEAD file this user cannot open by name, member-unreadable, as the assembly gate refuses a leg's (#1239). The gate then no longer says the pinned commit is missing, and no longer advises a fetch.
Filed by lane openRepoShape-3 on Brett Heap's word "file follow-ups 7 and 8" (2026-11-08T15:32:43Z). Two independent reviews by lane 5 found it, and neither PR covers it:
- rv1248, reviewing shape-doctor.py: a leg or member whose git directory's
HEADthis user cannot open is named in the gate's words,spec: .git/modules/spec/HEAD: cannot be read (<reason>)orspec/.git/HEAD: ..., so thelegsandmembersrows read INVALID with the gate's line and never DRIFTED, andplacementnever calls the leg "not a git repository" (#1222) #1248 (validate-pins.py and shape-doctor.py: a leg's git-directoryHEADfile at mode 000 passes the gate'sstatof HEAD and endspin-commit-unresolvable, and the doctor reads the leg DRIFTED, where both should name the file this user cannot open #1222's doctor half) at2dd144f5, its N2 (shape-doctor.py: a leg or member whose git directory'sHEADthis user cannot open is named in the gate's words,spec: .git/modules/spec/HEAD: cannot be read (<reason>)orspec/.git/HEAD: ..., so thelegsandmembersrows read INVALID with the gate's line and never DRIFTED, andplacementnever calls the leg "not a git repository" (#1222) #1248 issuecomment-6723136323): "For the member, the verdict isINVALID (family), but the holder's gate (validate-family.py) still saysREFUSED member-commit-unresolvable: ... not in that member's object store." - rv1246, reviewing validate-family.py: a member whose
.gitfile this user cannot open, or whose git directory (its own.git, or the one its gitfile names) this user cannot search, is refusedmember-unreadablenaming that part, and no longermember-commit-unresolvable, which said the pinned commit was missing and prescribed a fetch (#1221) #1246 (validate-family.py: a member whose.gitfile or git directory this user cannot read passes_checked_outand is refusedmember-commit-unresolvable, which says the pinned commit is missing, wherevalidate-pins.pynames the unreadable part #1221) at2eada679(validate-family.py: a member whose.gitfile this user cannot open, or whose git directory (its own.git, or the one its gitfile names) this user cannot search, is refusedmember-unreadablenaming that part, and no longermember-commit-unresolvable, which said the pinned commit was missing and prescribed a fetch (#1221) #1246 issuecomment-6722447037): "HEADat 000 is out of scope: I measured it, and it is stillmember-commit-unresolvable, as validate-pins.py and shape-doctor.py: a leg's git-directoryHEADfile at mode 000 passes the gate'sstatof HEAD and endspin-commit-unresolvable, and the doctor reads the leg DRIFTED, where both should name the file this user cannot open #1222's area." - validate-family.py: a member whose
.gitfile this user cannot open, or whose git directory (its own.git, or the one its gitfile names) this user cannot search, is refusedmember-unreadablenaming that part, and no longermember-commit-unresolvable, which said the pinned commit was missing and prescribed a fetch (#1221) #1246 asks only the member's.git(a gitfile, a.gitdirectory, and the directory a gitfile names). validate-pins.py: a leg git directory'sHEADthis user cannot open, under.git/modules/<leg>or in a.gitdirectory, is refusedpin-submodule-unreadableby name, where it endedpin-commit-unresolvable(#1222) #1239 is the assembly gate's leg check (validate-pins.py), and shape-doctor.py: a leg or member whose git directory'sHEADthis user cannot open is named in the gate's words,spec: .git/modules/spec/HEAD: cannot be read (<reason>)orspec/.git/HEAD: ..., so thelegsandmembersrows read INVALID with the gate's line and never DRIFTED, andplacementnever calls the leg "not a git repository" (#1222) #1248 is the doctor. - validate-pins.py and shape-doctor.py: a leg's git-directory
HEADfile at mode 000 passes the gate'sstatof HEAD and endspin-commit-unresolvable, and the doctor reads the leg DRIFTED, where both should name the file this user cannot open #1222's Direction named this gap: "The same open ofHEADbelongs invalidate-family.py's member check".
The member check asks HEAD by stat alone
State (read from the code at the heads named; nothing was run for this issue):
- validate-family.py: a member whose
.gitfile this user cannot open, or whose git directory (its own.git, or the one its gitfile names) this user cannot search, is refusedmember-unreadablenaming that part, and no longermember-commit-unresolvable, which said the pinned commit was missing and prescribed a fetch (#1221) #1246 (head0deac3a6, READY, not landed) brings_refuse_an_unreadable_git_dir,_member_git_dirand_gitfile_opensintovalidate-family.py. They are copied word for word from the assembly gate's_refuse_an_unreadable_git_dir,_leg_git_dirand_gitfile_opens; rv1246 compared them byast.unparse. So a member'sHEADis asked bystatonly, as a leg's was before validate-pins.py: a leg git directory'sHEADthis user cannot open, under.git/modules/<leg>or in a.gitdirectory, is refusedpin-submodule-unreadableby name, where it endedpin-commit-unresolvable(#1222) #1239. - validate-pins.py: a leg git directory's
HEADthis user cannot open, under.git/modules/<leg>or in a.gitdirectory, is refusedpin-submodule-unreadableby name, where it endedpin-commit-unresolvable(#1222) #1239 (headfff42145, READY) adds the open ofHEADto the assembly gate. After thestat,HEADis opened through_gitfile_openswhere it is a regular file, and a refused open ispin-submodule-unreadablenaming the file. - shape-doctor.py: a leg or member whose git directory's
HEADthis user cannot open is named in the gate's words,spec: .git/modules/spec/HEAD: cannot be read (<reason>)orspec/.git/HEAD: ..., so thelegsandmembersrows read INVALID with the gate's line and never DRIFTED, andplacementnever calls the leg "not a git repository" (#1222) #1248 (head2dd144f5, READY) makes the doctor'smembersrow INVALID (family), with theHEADline, for this same case.
What happens: take a member whose .git/modules/members/<name>/HEAD, or its own .git/HEAD, is at mode 000.
- With shape-doctor.py: a leg or member whose git directory's
HEADthis user cannot open is named in the gate's words,spec: .git/modules/spec/HEAD: cannot be read (<reason>)orspec/.git/HEAD: ..., so thelegsandmembersrows read INVALID with the gate's line and never DRIFTED, andplacementnever calls the leg "not a git repository" (#1222) #1248, the doctor says INVALID (family), naming thatHEAD. - The holder's gate says
REFUSED member-commit-unresolvable: ... not in that member's object storeand advises a fetch, which cannot help.
Direction. No command and no flag. This lands after #1246, which brings the helpers, and after #1239, whose change it mirrors.
-
The open. In
validate-family.py's_refuse_an_unreadable_git_dir, after thestatofHEAD, nameHEADand open it where it is a regular file, through_gitfile_opens, as validate-pins.py: a leg git directory'sHEADthis user cannot open, under.git/modules/<leg>or in a.gitdirectory, is refusedpin-submodule-unreadableby name, where it endedpin-commit-unresolvable(#1222) #1239 does. Refusemember-unreadablenaming the file,<named>: cannot be read (<reason>), with the member checkout's remedy. A git directory with noHEADstays git's, and a FIFO is not opened. -
The copy. Keep the helpers word for word with
validate-pins.py's after validate-pins.py: a leg git directory'sHEADthis user cannot open, under.git/modules/<leg>or in a.gitdirectory, is refusedpin-submodule-unreadableby name, where it endedpin-commit-unresolvable(#1222) #1239, and extend the existing comparison to them. -
The pin.
validate-family.pyis a pinned copy of the family root, so the change moves its bytes and holders see anupstream-changedrow. -
The rows go in
tests/test_validate_family_unreadable.py(validate-family.py: a member whose.gitfile this user cannot open, or whose git directory (its own.git, or the one its gitfile names) this user cannot search, is refusedmember-unreadablenaming that part, and no longermember-commit-unresolvable, which said the pinned commit was missing and prescribed a fetch (#1221) #1246's file), beside its controltest_a_member_git_directory_with_no_head_is_left_to_git. -
A member whose git directory's
HEADis at mode 000, for a gitfile member and a.git-directory member:validate-family.pyrefusesmember-unreadablenaming theHEADfile, exit 2, and notmember-commit-unresolvable. Each row fails before and passes after. -
A member git directory with no
HEADis still git's answer, and a FIFOHEADis not opened. -
A readable member is unchanged.
-
The mode rows are skipped where a mode cannot be refused (root, Windows), and an in-process stand-in covers those hosts.
-
The copied helpers stay word for word with
validate-pins.py's. -
One mutant, the open dropped, fails a row; each mutant run is restored and checked with
cmp.
Placement. As for #1247: this joins v1.2.1 if its PR is READY before v1.2.1's last steps, and otherwise goes to the next milestone. Lane 3 claims it.
Related: #1221 with #1246 (the member's .git), #1222 with #1239 and #1248 (the HEAD open for legs, in the gate and the doctor), and #968 and #919.
Size: S.
Lane: openreposhape-3 (openRepoShape-3)
Activity
brettheap commentedon Nov 8, 2026
CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-11-08T15:36:30Z, for #1256
Logged in
lanes/log/openRepoShape-3.mdat0623472970b8410ef9083a444120d56edf74a961.The three reads (lane-collision-protocol Rule 1):
shape-doctor.py: a leg or member whose git directory's `HEAD` this us…