Skip to content

adopt-project.py: a stale split branch in a source refs directory this user cannot list is refused source-unreadable by name, where check says plan ok because _branches_at and _branches_in read the directory as empty #1257

Closed

Description

@brettheap

Goal: wherever adopt-project.py looks for an earlier run's split branches, a source refs directory this user cannot list is refused source-unreadable by name, as #1252 (#1219) does for the default branch. A stale split branch there is then never read as absent, and check never says plan ok over it.

Filed by lane openRepoShape-3 on Brett Heap's word "file follow-ups 7 and 8" (2026-11-08T15:32:43Z). It comes from lane 3's RV1252, the independent review of #1252 (#1219) at 40b030cb, its S3 (#1252 issuecomment-6723262475): "_branches_at/_branches_in (adopt-project.py:9907, :10051) still read an unlistable directory as empty ... Outside #1219 as filed: name it under Out of scope and file an issue." #1252's body now names it under "Out of scope".

Two readers still take git's silence for "none"

State (line numbers at #1252's head 40b030cb):

What happens (measured by RV1252 at 40b030cb: uid 1000, git 2.43.0, Python 3.12.3, stub gh). Take a source with a stale adopt/three-repo-shape in refs/heads/adopt, at a commit outside main:

  • readable: check gives FINDING adopt-branch-exists, exit 1;
  • with refs/heads/adopt at mode 000: check says plan ok, exit 0.

Direction. No command and no flag. This lands after #1252, which brings _refuse_unlisted_refs.

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: #1219 with #1252 (the default-branch readers), and #1186 (_refused_git_path).

Size: S.

Lane: openreposhape-3 (openRepoShape-3)

Activity

  1. brettheap commented on Nov 8, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-11-08T15:37:32Z, for #1257

    Logged in lanes/log/openRepoShape-3.md at 505e05f38695aec60e8937b75a18d1434331b610.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1257:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1257"`, kept where the row or its body names `#1257`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1257` as a whole token:
       none
    
  2. added a commit that references this issue on Nov 8, 2026
  3. added a commit that references this issue on Nov 11, 2026
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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions