Skip to content

shape-doctor.py: in a root that lost scripts/repo_shape.py, the agent-files row's WHY still says to run the root's own validate-pins.py "to confirm the digest", a line that exits 1 with ModuleNotFoundError #776

Closed

Description

@brettheap

Goal: in a root that has lost scripts/repo_shape.py, no row tells the reader to run a command that cannot run. The doctor gives the agent-files row's WHY the same treatment that #737 gives the own-copy validator rows and #750 (#771) gives the lockstep NEXT.

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"). It is the one item left from lane 3's reviewer RV-a's sweep of #771 (S1, #771 (comment)). The PR's writer had flagged it as not settled. Main does the same, so it is not a regression.

What happens (measured on main e3137010 and on #771's head c90a137c):

Fix: where the root's own copy cannot import repo_shape (imports_repo_shape), do one of these:

Where the root has no own validate-pins.py, name the standard's copy, as the validator rows do (validator_for).

Tests: in tests/test_doctor_validator_rows.py (#737's file, beside #771's #750 section).

  • The root above: the agent-files WHY names no validate-pins.py line that dies. Assert this by pasting what it names, or by asserting the cure's words.
  • A root with repo_shape.py intact: the WHY is unchanged, byte for byte.

Lands after #771 (#750), which it builds on.

Activity

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

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-17T01:20:55Z, for #776

    Logged in lanes/log/openRepoShape-3.md at 209b20f856c4057089d04bf5af857fb04f7eed2f.

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

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