Skip to content

RULESET_HINT hard-codes main as the local branch and as --base, so under --tracking-branch trunk the hint's git push -u origin main:seed/scaffold names a branch the work clone does not have and its gh pr create --base main opens against the wrong base #324

Closed

Description

@brettheap

Lane: openreposhape-3 (openRepoShape-3)

What happens. The hint printed when a leg or root push is refused says:

git -C <work> push -u origin main:seed/scaffold
gh pr create --repo org/Atlas-spec --base main --head seed/scaffold --title 'Seed the spec leg' ...

scaffold-project.py --tracking-branch trunk creates the work clones with git init -b trunk and pushes trunk. Measured on be2790e, in a clone made with git init -b trunk that already pushed trunk: the hint's push exits 1 with error: src refspec main does not match any. The --base main names a branch the repository does not have. Measured for the scaffold's path; not run for the other callers (below), which pass the same constant.

Where. scripts/shape_materialize.py:RULESET_HINT (:578-592). Printed from scaffold-project.py:_seed_legs (:1027) and _build_assembly_root (:1142), scripts/family.py:_create_holder_worktree (:732), adopt-project.py:_extract_leg (:2517) and _seed_leg (:2565).

Why it matters. It is the advice a person follows when a ruleset has just refused a direct push, the case the hint exists for, and for a non-main tracking branch it fails on the first command. #209 (closed) fixed the same wrong main in update-shape.py's gh pr create. #177 (open) is about the same constant's origin advice and its "listed above"; parameterising the hint for #177 can take the branch too.

Source. PR #218, ## Left out, first bullet.

Activity

  1. brettheap commented on Oct 12, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session b2cc9e59-4dc8-4f43-b01b-81cb99c8b07e@Eagle, 2026-10-12T10:59:03Z, for #324

    Logged in lanes/log/openRepoShape-3.md at af0696751898a195a9096b685309e18332c9a5f3.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#324:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#324"`, kept where the row or its body names `#324`:
       none
    3. `git ls-remote --heads git@github.com:opensoft/openRepoShape` branches naming `324` as a whole token:
       none
    
  2. added 2 commits that reference this issue on Oct 13, 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