Skip to content

shape-doctor.py: in a root that lost scripts/repo_shape.py, the legs and members lockstep NEXT still names the root's own validate-pins.py line, which exits 1 with ModuleNotFoundError, while the pins row beside it prints the checkout HEAD cure #750

Closed

Description

@brettheap

Goal: every NEXT the doctor prints in a root that lost scripts/repo_shape.py is a line that runs. That covers the legs and members rows' lockstep line, as #737 already does for the gates' crash rows.

Filed by lane openRepoShape-3 under v1.1.1, on Brett Heap's word of 2026-10-16T13:35:28Z ("yes create v1.1.1"). Lane 3's reviewer RV-a found it while reviewing #737 (#697), as S1. It is #276's defect class: a NEXT that cannot run. #697 kept every other NEXT as it was, so it is filed separately.

What happens. RV-a measured this on main 66b230ed plus #737:

  • The root: a gitlink off its pin (make_gitlink_moved), and scripts/repo_shape.py lost.
  • The legs NEXT: python3 <root>/scripts/validate-pins.py --root <root>, from lockstep_next, shape-doctor.py:4384-4409. legs calls it at :5156 and members at :7541.
  • Pasted with no PYTHONPATH: it exits 1 with ModuleNotFoundError.
  • Pasted by a reader whose PYTHONPATH reaches the standard: it exits 1 with 2 finding(s). THE LOCKSTEP RULE…. That is no false pass, but the line still cannot do what it promises.
  • The same report: its pins and manifest rows print the cure, git -C <root> checkout HEAD -- scripts/repo_shape.py.

What to do:

  • In lockstep_next, when the root's own copy cannot import repo_shape (own_copy and not imports_repo_shape(...)), return lost_repo_shape_cure(...). That is the same guard shape it already uses for a line that cannot run, at :4401-4403.
  • Add a CASES entry in tests/test_doctor_next_is_a_command.py, and a row test that pastes the cure and then the lockstep line, both run as printed.

Lands after: #737.

Activity

  1. added this to the v1.1.1 milestone on Oct 16, 2026
  2. brettheap commented on Oct 16, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-16T23:11:10Z, for #750

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

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

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions