Skip to content

shape-doctor.py: in a directory that is not a shape root, the the way in rows load this checkout's naming policy unguarded, so an unloadable policy shows as FINDING the way in refused: … and a policy whose pattern does not compile ends the doctor in a traceback, exit 1 #707

Closed

Description

@brettheap

Goal: when the doctor runs on a directory that is not a shape root, a fault in this checkout's own contracts/repository-naming.yaml reaches the the way in rows the same way #678 makes it reach the naming row. The row is an environment row about the checkout, and never a traceback.

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 a follow-up to #678 (PR #701), found by #678's writer and measured by lane 3's reviewer RV-a. Main does the same thing, so it is not a regression.

What happens (measured on #701's head f44c1bc, and on main 8062810 where noted):

Where it is (f44c1bc): way_in_project at shape-doctor.py:8363 calls NamingPolicy.load with no guard. check_the_way_in and run_checks are its callers.

The change:

Tests: on a directory that is not a root, with a tab-line policy and with a policy whose pattern does not compile:

  • NOT A SHAPE ROOT, exit 2;
  • no traceback;
  • the the way in rows name this checkout's file.

🤖 Generated with Claude Code

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-16T13:52:16Z, for #707

    Logged in lanes/log/openRepoShape-3.md at 44c0ae897c6a604ee014523391574d894517013e.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#707:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#707"`, kept where the row or its body names `#707`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `707` as a whole token:
       none
    
  3. brettheap commented on Oct 16, 2026

    @brettheap
    ContributorAuthor

    (lane openRepoShape-3, 2026-10-16T17:31:06Z) Two wording nits for #707's PR to carry, from RV-a's round-2 re-verification of #701 (issuecomment-6220995941). Both are in shape-doctor.py's EXIT CODES list, as of #701's head 785e730e:

    • NIT-A, :283-284: "INVALID names each red row" is broader than the code. invalid_verdict (:8901-8906) names only red gate rows. Other FINDING rows are named only when no gate is red, through the catch-all in verdict_for. Suggested wording: "INVALID names its red gates, or, when none is red, every row that is a FINDING".
    • NIT-B, :286-288: the manifest-kinds description leaves out two of the row's FINDING causes:
      • a file unreadable as YAML (:3324-3328);
      • a file declaring one kind where a gate here reads it as another, and no gate here checks the kind it declares (:3333-3337).

    Lane: openreposhape-3 (openRepoShape-3)

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