Skip to content

family.py add compares --member with the existing rows case-sensitively, so --member inkrouter/irrs on a family that already pins InkRouter/IRRS mounts the same repository again as members/irrs, both gates pass a family that pins one project twice, and bump --member irss's refusal recommends exactly that add #206

Closed

Description

@brettheap

Lane: openreposhape-4 (openRepoShape-4)

Found by this lane's probe of main e4decfb on 2026-10-11, re-verified on main e4decfb today. Not claimed.

What is wrong. cmd_add in scripts/family.py asks family.member(project) whether the member is already there, and Family.member compares the project: field with ==. GitHub resolves owner/repo case-insensitively, which is the reason repo_shape.same_repository folds case for a forge name ("the row was typed by a human and is case-insensitive at the forge", #149, PR #156). So --member inkrouter/irrs on a family that already pins InkRouter/IRRS passes the check, mounts the same repository a second time at members/irrs, and writes a second row with the same id: irrs. Neither validate-family.py nor the doctor refuses two rows with one id, so both pass a family that pins one project twice. bump and remove look the member up the same way, so bump --member irss refuses member-unknown and its remediation recommends exactly that duplicate add.

# a family holder $H made by `family.py init`, members IRRS and IRSS added, all in local bare remotes
ln -s $T/remotes/IRRS.git $T/remotes/irrs.git      # local stand-in for GitHub's case-insensitive owner/repo
python3 scripts/family.py add --family-root $H --member inkrouter/irrs --local-remote-dir $T/remotes
#   exit 0   committed: .gitmodules, members/irrs, family.yaml
grep -E "project:|id:|repository:" $H/family.yaml
#   project: IRRS  id: irrs  repository: InkRouter/IRRS
#   project: IRSS  id: irss  repository: InkRouter/IRSS
#   project: irrs  id: irrs  repository: inkrouter/irrs
(cd $H && python3 scripts/validate-family.py)    # family ok: InkRouter (inkrouter), 3 member(s)   exit 0
python3 shape-doctor.py --root $H                # COMPLIANT   exit 0
python3 scripts/family.py bump --family-root $H --member irss --to <a commit of IRSS>
#   exit 2   REFUSED member-unknown: irss is not a member of InkRouter
#            Remediation: `family.py add --member <org>/irss` puts it in the family first.

What the docs promise. cmd_add's own member-already-present remediation: "Adding it twice is not a way to move it." AGENTS.md, "Creating a family, and adding a member", item 3: each of add, bump and remove "writes ONE commit moving the gitlink and the pin together", one gitlink and one pin per member. The case rule for forge names is same_repository's (#149, #155, PR #156).

What would fix it. In cmd_add, refuse member-already-present when an existing row's repository names the same forge repository case-insensitively (same_repository), or when the mounted member's project.yaml id equals an existing row's id. validate-family.py should refuse two members: rows with one id. Family.member, as cmd_bump and cmd_remove use it, should match case-insensitively and name the row it found, rather than recommend an add.

Activity

  1. brettheap commented on Oct 11, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session 566fec94-6fde-4579-947f-ec4fda5ce14f@Eagle, 2026-10-11T16:20:25Z, for #206

    Logged in lanes/log/openRepoShape-3.md at 93e3202dd7cf4e46f06998ff99a00c1d9b840788.

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

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