Skip to content

family.py, the family root's siblings.py, shape-doctor.py and shape_advisory.py: a name in the root that is a link into a folder this user cannot search is still read as absent at twelve sites (follow-up of #430 slice Z) #1110

Closed

Description

@brettheap

(lane openRepoShape-1, 2026-10-21T12:52:01Z)

Found by: w430z, writing #430's closing slice Z (tests/test_path_guard_hygiene.py, branch fix/430-path-guard-hygiene at 3c292362). Its scan of the 25 shipped tools finds sites where a name in the root that is a link into a folder this user cannot search is still read as absent. There are eleven: w430z found five, and r1111's independent review of #1111 (issuecomment-6317431355) found six more, which the fix round f1111 moved from the allowlist to KNOWN_OPEN at b4484647. Slice Z lists all eleven in its KNOWN_OPEN table under this issue, so the hygiene test passes while they stay open. They are a follow-up of #430, outside v1.2.0 by Brett Heap's ruling of 2026-10-21T10:32:04Z ("leave the follow-ups out of v1.2.0").

Sites

  • scripts/family.py _gitmodules_names (measured).
    • Python 3.12 raises PermissionError out of remove.
    • A 3.14-like shim, where is_file answers False to any OSError, returns "no section". So remove --dry-run says nothing is removed.
    • A fix needs a new refusal threaded through remove and its rollback.
  • scripts/family.py _sections_giving. Same file and same case: the file is read as giving the path to no section.
  • templates/family-root/scripts/siblings.py submodule_urls. Same case, in a pinned copy. A fix changes the pin.
  • shape-doctor.py check_agent_files ((ctx.root / name).is_file()). The file reads as "absent" in a note. It does not change the verdict.
  • shape-doctor.py check_what_is_here ((root / name).exists()). The file reads as "absent" in an n/a row. It does not change the verdict.

Six more, found by r1111. Each asks (root / ".git").exists(), which follows a .git that is a link into a folder this user cannot search. Line numbers are at #1111's head.

  • shape-doctor.py check_the_way_in (line 11476, measured). The .git is read as no repository.
    • On a 3.14-like shim, the way-in row sends the person to setup.sh to scaffold three new repositories.
    • On 3.12, the row says .git: cannot be read.
  • shape-doctor.py check_the_other_way_in (line 11599, (ctx.root / ".git").exists()). The same .git drops the way-in-scaffold row on 3.14.
  • shape-doctor.py origin_org (line 11008, measured). The same .git gives None on 3.14, the answer for a folder that is not a repository. 3.12 raises PermissionError.
  • shape-doctor.py repo_local_origin_name (line 10977, measured). The same .git gives None on 3.14, so the naming row checks the folder's name alone and drops the origin's. 3.12 raises PermissionError.
  • scripts/shape_advisory.py repository_names (line 495, measured). The same .git drops the origin's name from the Triad advice on 3.14: ['Atlas'], not ['Atlas', 'Orbit']. 3.12 raises PermissionError.
  • scripts/shape_advisory.py _read (line 779, measured). The same .git makes read() answer not-a-repository on 3.14, so the Triad advisory row is left out.

One more, found by r1144 (the review of #1144, S1; #1144 issuecomment-6328153279). It is not a bare guard, so the hygiene test does not list it.

The rule they should follow is #430's own. Stat the path. ENOENT, ENOTDIR, EBADF and ELOOP (and Windows 21, 123 and 1921) mean absent. Any other OSError is refused by name, <path>: cannot be read (<strerror>), with the chmod cure.

When a site is fixed, take its entry out of KNOWN_OPEN in tests/test_path_guard_hygiene.py. Its stale-entry check fails until that is done.

Lane: openreposhape-1 (openRepoShape-1)

Progress (lane openRepoShape-1, 2026-11-10): all twelve sites are mended on main. The eight in shape-doctor.py and scripts/shape_advisory.py were mended by #1144 (b1f45fa), _leg_by_agents_md by #1159 (46fe6ac), and the three .gitmodules sites (_gitmodules_names, _sections_giving, submodule_urls) by #1164 (370a23c). KNOWN_OPEN in tests/test_path_guard_hygiene.py is empty. The note of 2026-11-09 kept _leg_by_agents_md open in error: #1159 had mended it on 2026-11-08.

Activity

  1. changed the title [-]family.py, the family root's siblings.py and shape-doctor.py: a name in the root that is a link into a folder this user cannot search is still read as absent at five sites (follow-up of #430 slice Z)[/-] [+]family.py, the family root's siblings.py, shape-doctor.py and shape_advisory.py: a name in the root that is a link into a folder this user cannot search is still read as absent at eleven sites (follow-up of #430 slice Z)[/+] on Oct 21, 2026
  2. brettheap commented on Oct 21, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-1, session 300f8f46-004a-4e72-8587-4f192be2e108@Eagle, 2026-10-21T21:11:17Z, for #1110

    Logged in lanes/log/openRepoShape-1.md at 807fb631be96aaf97186782b685fb546e9d16435.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1110:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1110"`, kept where the row or its body names `#1110`:
    1111	tests/test_path_guard_hygiene.py and shape-doctor.py: a bare is_file/is_dir/exists guard in a shipped tool fails by file and line unless its `_is_a` or a reasoned allowlist covers it, and a `project.yaml` linked into an unsearchable folder is `yaml-unreadable` (#430)	fix/430-path-guard-hygiene	MERGED
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1110` as a whole token:
       none
    
  3. changed the title [-]family.py, the family root's siblings.py, shape-doctor.py and shape_advisory.py: a name in the root that is a link into a folder this user cannot search is still read as absent at eleven sites (follow-up of #430 slice Z)[/-] [+]family.py, the family root's siblings.py, shape-doctor.py and shape_advisory.py: a name in the root that is a link into a folder this user cannot search is still read as absent at twelve sites (follow-up of #430 slice Z)[/+] on Oct 21, 2026
  4. added this to the v1.2.1 milestone on Oct 23, 2026
  5. brettheap commented on Nov 10, 2026

    @brettheap
    ContributorAuthor

    (lane openRepoShape-1, 2026-11-10T03:49:10Z) All twelve sites are mended on main, so lane 1 is closing this issue as completed.

    The progress note of 2026-11-09 kept _leg_by_agents_md open in error. The body now ticks it. Each of the three PRs is logged LANDED against #1110 in lane 1's register log.

    Lane: openreposhape-1 (openRepoShape-1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions